Changeset 1813

Show
Ignore:
Timestamp:
04/16/07 12:20:06 (21 months ago)
Author:
aturner
Message:

whops. bad configure. really fixes #148

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r1812 r1813  
    295295trynetdir=no 
    296296have_libnet=no 
     297use_libnet=no 
    297298 
    298299AC_ARG_ENABLE(libnet, 
    299         AC_HELP_STRING([--enable-libnet], [Enable using the libnet 1.1.x library (unsupported)]), 
     300        AC_HELP_STRING([--enable-libnet], [Enable using the libnet 1.1.x library (deprecated)]), 
    300301        [ if test x$enableval = xyes; then 
    301                 trynetdir=yes 
     302                use_libnet=yes 
    302303                AC_MSG_WARN([Due to bugs in libnet, it is no longer officially supported]) 
    303304          fi] 
     
    308309    [trynetdir=$withval]) 
    309310 
    310 if test x$trynetdir = xyes ; then 
     311if test x$use_libnet = xyes ; then 
    311312        AC_MSG_CHECKING(for libnet) 
    312313 
    313         for testdir in $trypcapdir /usr/local /opt/local /usr ; do  
     314        for testdir in $trynetdir /usr/local /opt/local /usr ; do  
    314315        if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then 
    315316                LNETINC="${testdir}/include/libnet.h" 
     
    317318                if test $dynamic_link = yes; then 
    318319                                if test -f "${testdir}/lib/libnet.a" ; then 
    319                             LPCAPLIB="-L${testdir}/lib -lnet" 
     320                            LNETLIB="-L${testdir}/lib -lnet" 
    320321                                elif test -f "${testdir}/lib64/libnet.a" ; then 
    321                                         LPCAPLIB="-L${testdir}/lib64 -lnet" 
     322                                        LNETLIB="-L${testdir}/lib64 -lnet" 
    322323                                else 
    323324                                        AC_ERROR([Unable to find libnet in ${testdir}])