Changeset 1813
- Timestamp:
- 04/16/07 12:20:06 (21 months ago)
- Files:
-
- 1 modified
-
trunk/configure.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r1812 r1813 295 295 trynetdir=no 296 296 have_libnet=no 297 use_libnet=no 297 298 298 299 AC_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)]), 300 301 [ if test x$enableval = xyes; then 301 trynetdir=yes302 use_libnet=yes 302 303 AC_MSG_WARN([Due to bugs in libnet, it is no longer officially supported]) 303 304 fi] … … 308 309 [trynetdir=$withval]) 309 310 310 if test x$ trynetdir= xyes ; then311 if test x$use_libnet = xyes ; then 311 312 AC_MSG_CHECKING(for libnet) 312 313 313 for testdir in $try pcapdir /usr/local /opt/local /usr ; do314 for testdir in $trynetdir /usr/local /opt/local /usr ; do 314 315 if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then 315 316 LNETINC="${testdir}/include/libnet.h" … … 317 318 if test $dynamic_link = yes; then 318 319 if test -f "${testdir}/lib/libnet.a" ; then 319 L PCAPLIB="-L${testdir}/lib -lnet"320 LNETLIB="-L${testdir}/lib -lnet" 320 321 elif test -f "${testdir}/lib64/libnet.a" ; then 321 L PCAPLIB="-L${testdir}/lib64 -lnet"322 LNETLIB="-L${testdir}/lib64 -lnet" 322 323 else 323 324 AC_ERROR([Unable to find libnet in ${testdir}])
