diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 19bdb5ee8..fb6856314 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -346,6 +346,38 @@ AM_CONDITIONAL(HAVE_POSTGRES, test x$postgres = xtrue) | |||
346 | AC_SUBST(POSTGRES_CPPFLAGS) | 346 | AC_SUBST(POSTGRES_CPPFLAGS) |
347 | AC_SUBST(POSTGRES_LDFLAGS) | 347 | AC_SUBST(POSTGRES_LDFLAGS) |
348 | 348 | ||
349 | # test for pcap | ||
350 | pcap=false | ||
351 | AC_MSG_CHECKING(for libpcap) | ||
352 | AC_ARG_WITH(pcap, | ||
353 | [ --with-pcap=PFX base of pcap installation], | ||
354 | [AC_MSG_RESULT("$with_pcap") | ||
355 | case $with_pcap in | ||
356 | no) | ||
357 | ;; | ||
358 | yes) | ||
359 | AC_CHECK_HEADERS(pcap.h, | ||
360 | pcap=true) | ||
361 | ;; | ||
362 | *) | ||
363 | LDFLAGS="-L$with_pcap/lib $LDFLAGS" | ||
364 | CPPFLAGS="-I$with_pcap/include $CPPFLAGS" | ||
365 | AC_CHECK_HEADERS(pcap.h, | ||
366 | EXT_LIB_PATH="-L$with_pcap/lib $EXT_LIB_PATH" | ||
367 | PCAP_LDFLAGS="-L$with_pcap/lib" | ||
368 | PCAP_CPPFLAGS="-I$with_pcap/include" | ||
369 | pcap=true) | ||
370 | LDFLAGS=$SAVE_LDFLAGS | ||
371 | CPPFLAGS=$SAVE_CPPFLAGS | ||
372 | ;; | ||
373 | esac | ||
374 | ], | ||
375 | [AC_MSG_RESULT([--with-pcap not specified]) | ||
376 | AC_CHECK_HEADERS(pcap.h, pcap=true)]) | ||
377 | AM_CONDITIONAL(HAVE_PCAP, test x$pcap = xtrue) | ||
378 | AC_SUBST(PCAP_CPPFLAGS) | ||
379 | AC_SUBST(PCAP_LDFLAGS) | ||
380 | |||
349 | 381 | ||
350 | # test for libz (maybe required for linking mysql) | 382 | # test for libz (maybe required for linking mysql) |
351 | zlib=1 | 383 | zlib=1 |