configure Problem with Debian/GNU Linux and 2.0.6

Dietmar Goldbeck goldbeck at e-trend.de
Tue Feb 17 09:51:08 EST 2004


On Tue, Feb 17, 2004 at 08:30:53AM -0500, Carter Bullard wrote:
> Hey Dietmar,
> When the configure script detects that a system pcap
> library is going to be used, it looks in these directories
> for pcap.h:
> 
>    /usr/local/include/pcap /usr/include /usr/include/pcap
> 
> so the question is, are you sure that pcap.h is in
> one of these directories?

Absolutely sure, for 2 reasons: 
dietmar at pinguin:/usr/src/argus-2.0.6$ ls -la /usr/include/pcap.h
-rw-r--r--    1 root     root         7319 Nov 11 12:27 /usr/include/pcap.h
and 2.0.6beta14 builds with ./configure && make on this machine :-)

> 
> The code for doing this is in ./aclocal.m4, line 548.
> If you make a modifications, you will need to run
> autoconf, in order to generate a new ./configure
> script.
> 
> Please send mail soon if you're still having problems.
> 

It works with the following patch:
Under Debian configure finds $libpcap = "-lpcap" and 
then the check for pcap.h never even looks in the standard dirs.

 Ciao
      Dietmar

pinguin:/usr/src/argus-2.0.6# rcsdiff -u aclocal.m4
===================================================================
RCS file: RCS/aclocal.m4,v
retrieving revision 1.1
diff -u -r1.1 aclocal.m4
--- aclocal.m4  2004/02/17 14:31:12     1.1
+++ aclocal.m4  2004/02/17 14:41:13
@@ -547,7 +547,7 @@

        AC_MSG_CHECKING(for pcap.h)
        if test $pcapdir = FAIL; then
-          if test $libpcap = "-l" ; then
+          if test $libpcap = "-l" || test $libpcap = "-lpcap"; then
              for dir in /usr/local/include/pcap /usr/include /usr/include/pcap; do
                 if test -f $dir/pcap.h ; then
                    pcapdir=$dir


 
-- 
 Alles Gute / best wishes  
     Dietmar Goldbeck         E-Mail: dietmar.goldbeck at acm.org
Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western
Civilization?  Gandhi: I think it would be a good idea.



More information about the argus mailing list