configure Problem with Debian/GNU Linux and 2.0.6

Carter Bullard carter at qosient.com
Tue Feb 17 12:24:16 EST 2004


Hey Guys,
   So, there is no need to test for "-l" if it doesn't
work on these machines.  It must be that that
style of comparison is shell dependant?  I grabbed
that style of comparison from some other configure.in
script, so my fault for borrowing from poor source.

   So could you guys try this patch from the original
to see if it works for both of you?

Carter

Index: aclocal.m4
===================================================================
RCS file: /usr/local/cvsroot/argus/aclocal.m4,v
retrieving revision 1.8
diff -r1.8 aclocal.m4
550c550
<           if test $libpcap = "-l" ; then
---
>           if test $libpcap = "-lpcap" ; then


-----Original Message-----
From: Dietmar Goldbeck [mailto:goldbeck at e-trend.de]
Sent: Tuesday, February 17, 2004 9:51 AM
To: Carter Bullard
Cc: 'Dietmar Goldbeck'; argus-info at lists.andrew.cmu.edu
Subject: Re: configure Problem with Debian/GNU Linux and 2.0.6

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