Changeset 4e65f42 for configure.in


Ignore:
Timestamp:
05/11/06 11:40:21 (14 years ago)
Author:
Shane Alcock <salcock@…>
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:
83445f0
Parents:
3fcb8b4
Message:

Fixed segmentation faults when trace_destroy is called on a trace that wasn't successfully created
libdl is now checked for and only linked against if available (BSD's don't have a libdl)
Fixed the libpacketdump .so's to use libtrace's generic protocol headers as well as trace_ether_ntoa
Added missing check for strlcpy
Added a couple of #defines to various tools that needed them under FreeBSD
Removed some needless #includes from the libpacketdump .so's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r77285d9 r4e65f42  
    3232AC_PROG_CXX
    3333AC_PROG_INSTALL
    34 AC_LIBTOOL_DLOPEN
     34#AC_LIBTOOL_DLOPEN
    3535AC_PROG_LIBTOOL
    3636
     
    4747# Checks for library functions.
    4848AC_PROG_GCC_TRADITIONAL
    49 AC_CHECK_FUNCS(socket strdup)
     49AC_CHECK_FUNCS(socket strdup strlcpy)
    5050
    5151AC_CHECK_SIZEOF([long int])
     
    132132             [AC_DEFINE(HAVE_GDC_H,1,[Conditional for building with libGDC support]) libtrace_gdc=true],
    133133             [AC_DEFINE(HAVE_GDC_H,0,[Conditional for building with libGDC support]) libtrace_gdc=false])
     134
     135# Check to see if we have libdl - *BSD has built-in libdl
     136AC_CHECK_LIB(dl, dlopen, libtrace_dl=true, libtrace_dl=false)
     137if test "$libtrace_dl" = true; then
     138        AC_DEFINE(HAVE_LIBDL,1,[Conditional for building with dynamic library support])
     139        ADD_LIBS="$ADD_LIBS -ldl"
     140else
     141        AC_DEFINE(HAVE_LIBDL,0,[Conditional for building with dynamic library support])
     142fi
    134143
    135144
Note: See TracChangeset for help on using the changeset viewer.