Changeset c04929c for configure.in
- Timestamp:
- 08/02/13 17:30:15 (8 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 3799f51
- Parents:
- 212faa13
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.in
rb87c9e8 rc04929c 374 374 #DAG_VERSION_NUM=$dag_drv_v 375 375 376 # Check for DPDK 377 AC_ARG_WITH(dpdk, 378 AS_HELP_STRING(--with-dpdk,include DPDK live capture support (Must set RTE_SDK/_TARGET enviroment variable)), 379 [ 380 if test "$withval" = no 381 then 382 want_dpdk=no 383 else 384 want_dpdk=ifpresent 385 fi 386 ],[ 387 # Default to building without DPDK format 388 want_dpdk=ifpresent 389 ]) 390 391 libtrace_dpdk=false 392 if test "$want_dpdk" != no; then 393 saved_ldflags="$LDFLAGS" 394 # Add to our libpath location 395 LDFLAGS="$LDFLAGS -L$RTE_SDK/$RTE_TARGET/lib/" 396 AC_CHECK_LIB(rte_eal, rte_eal_init, dpdk_found=1, dpdk_found=0, -lpthread -lrte_malloc -lethdev -lrte_mempool -lrte_ring) 397 # Revert back 398 LDFLAGS="$saved_ldflags" 399 if test "$dpdk_found" = 1; then 400 # Save these now so that they can be re-exported later 401 AC_SUBST([RTE_TARGET]) 402 AC_SUBST([RTE_SDK]) 403 LIBTRACE_LIBS="$LIBTRACE_LIBS -lrte_eal -lrte_pmd_e1000 -lrte_pmd_ixgbe" 404 LIBTRACE_LIBS="$LIBTRACE_LIBS -lethdev -lrte_mempool -lrte_ring -lrte_malloc" 405 LIBTRACE_LIBS="$LIBTRACE_LIBS -lrte_mbuf" 406 AC_DEFINE(HAVE_DPDK,1,[conditional for building with DPDK live capture support]) 407 libtrace_dpdk=true 408 fi 409 fi 376 410 377 411 # Checks for various "optional" libraries … … 389 423 # Check to see if we have libdl - *BSD has built-in libdl 390 424 AC_SEARCH_LIBS(dlopen,dl, dlfound=1,dlfound=0 ) 425 LIBS= 426 427 # Check for clock_gettime 428 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=1, have_clock_gettime=0) 391 429 LIBS= 392 430 … … 417 455 LIBPKTDUMP_LIBS="$LIBPKTDUMP_LIBS $ac_cv_search_getservent" 418 456 fi 457 fi 458 459 if test "$have_get_clocktime" = 1; then 460 LIBTRACE_LIBS="$LIBTRACE_LIBS -lrt" 419 461 fi 420 462 … … 558 600 AM_CONDITIONAL([HAVE_BPF_CAPTURE], [test "$ac_cv_have_decl_BIOCSETIF" = yes ]) 559 601 AM_CONDITIONAL([HAVE_DAG], [test "$libtrace_dag" = true]) 602 AM_CONDITIONAL([HAVE_DPDK], [test "$libtrace_dpdk" = true]) 560 603 AM_CONDITIONAL([DAG2_4], [test "$libtrace_dag_version" = 24]) 561 604 AM_CONDITIONAL([DAG2_5], [test "$libtrace_dag_version" = 25]) … … 632 675 AC_MSG_NOTICE([Compiled with DAG live capture support: No]) 633 676 fi 677 678 if test x"$libtrace_dpdk" = xtrue; then 679 AC_MSG_NOTICE([Compiled with DPDK live capture support: Yes]) 680 else 681 AC_MSG_NOTICE([Compiled with DPDK live capture support: No]) 682 fi 634 683 reportopt "Compiled with LLVM BPF JIT support" $JIT 635 684 reportopt "Building man pages/documentation" $libtrace_doxygen
Note: See TracChangeset
for help on using the changeset viewer.