Changeset b5236ad for configure.in


Ignore:
Timestamp:
06/17/05 15:38:06 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
7e9d51c
Parents:
db06c9d
Message:

fixes to makefile for documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    rc2f39fb rb5236ad  
    175175AM_CONDITIONAL(HAVE_DAG, test x$ac_cv_lbl_dag_api = xyes)
    176176
    177 
    178 # configure time options for selecting which libpcap and libz to use
    179 # this is provided to allow for systems whose default libraries don't support
    180 # large files - you can build your own and link using these options
    181 AC_ARG_WITH([pcap],
    182     AC_HELP_STRING([--with-pcap],
    183                                    [name of pcap library (default is pcap)]),
    184         [ac_cv_use_pcap=$withval],
    185     [ac_cv_use_pcap=pcap])
    186 
    187 
    188 AC_ARG_WITH([pcap-path],
    189     AC_HELP_STRING([--with-pcap-path],
    190                                    [location of pcap library (default is /usr/lib)]),
    191         [ac_cv_use_pcap_path=$withval],
    192     [ac_cv_use_pcap_path=/usr/lib])
    193 
    194 if test x"$ac_cv_use_pcap" != xno; then
    195     ADD_LIBS="$ADD_LIBS  -l$ac_cv_use_pcap"
    196    
    197     pcap_lib_file="${ac_cv_use_pcap_path}/lib${ac_cv_use_pcap}.so"
    198    
    199     # if the library is in /usr/lib, then just use
    200     # AC_CHECK_LIB.
    201     if test x"${ac_cv_use_pcap_path}" == x"/usr/lib"; then
    202             AC_CHECK_LIB(${ac_cv_use_pcap},pcap_open_live,
    203                          have_libpcap=yes,
    204                          have_libpcap=no)
    205 
    206             if test x"${have_libpcap}" == xno; then
    207                 AC_MSG_NOTICE([Cannot find pcap library $pcap_lib_file.])
    208                 AC_MSG_ERROR([Exiting]);
    209             fi
    210     else
    211         ADD_LDFLAGS="$ADD_LDFLAGS -L$ac_cv_use_pcap_path"
    212         # if it's not in /usr/lib/, check manually. This isn't nice,
    213         # and will probably break.
    214         if test ! -r "$ac_cv_use_pcap_path" -o ! -r "$pcap_lib_file"; then
    215                 AC_MSG_NOTICE([Cannot find pcap library $pcap_lib_file.])
    216                 AC_MSG_ERROR([Exiting]);
    217         fi 
    218     fi
    219     AC_DEFINE(HAVE_PCAP,1,[Conditional for building PCAP support])
    220 else
    221     AC_DEFINE(HAVE_PCAP,0,[Conditional for building PCAP support])
    222 fi
     177# The following is commented out because it seems you don't actually
     178# need it. libpcap 'just works' with large files, even under woody,
     179# although you probably need _FILE_OFFSET_BITS and LARGEFILE etc set
     180# properly - libtrace handles this however.
     181## configure time options for selecting which libpcap and libz to use
     182## this is provided to allow for systems whose default libraries don't support
     183## large files - you can build your own and link using these options
     184#AC_ARG_WITH([pcap],
     185#    AC_HELP_STRING([--with-pcap],
     186#                                  [name of pcap library (default is pcap)]),
     187#       [ac_cv_use_pcap=$withval],
     188#    [ac_cv_use_pcap=pcap])
     189#
     190#
     191#AC_ARG_WITH([pcap-path],
     192#    AC_HELP_STRING([--with-pcap-path],
     193#                                  [location of pcap library (default is /usr/lib)]),
     194#       [ac_cv_use_pcap_path=$withval],
     195#    [ac_cv_use_pcap_path=/usr/lib])
     196#
     197#if test x"$ac_cv_use_pcap" != xno; then
     198#    ADD_LIBS="$ADD_LIBS  -l$ac_cv_use_pcap"
     199#   
     200#    pcap_lib_file="${ac_cv_use_pcap_path}/lib${ac_cv_use_pcap}.so"
     201#   
     202#    # if the library is in /usr/lib, then just use
     203#    # AC_CHECK_LIB.
     204#    if test x"${ac_cv_use_pcap_path}" == x"/usr/lib"; then
     205#           AC_CHECK_LIB(${ac_cv_use_pcap},pcap_open_live,
     206#                        have_libpcap=yes,
     207#                        have_libpcap=no)
     208#
     209#           if test x"${have_libpcap}" == xno; then
     210#               AC_MSG_NOTICE([Cannot find pcap library $pcap_lib_file.])
     211#               AC_MSG_ERROR([Exiting]);
     212#           fi
     213#    else
     214#       ADD_LDFLAGS="$ADD_LDFLAGS -L$ac_cv_use_pcap_path"
     215#       # if it's not in /usr/lib/, check manually. This isn't nice,
     216#       # and will probably break.
     217#       if test ! -r "$ac_cv_use_pcap_path" -o ! -r "$pcap_lib_file"; then
     218#               AC_MSG_NOTICE([Cannot find pcap library $pcap_lib_file.])
     219#               AC_MSG_ERROR([Exiting]);
     220#       fi 
     221#    fi
     222#    AC_DEFINE(HAVE_PCAP,1,[Conditional for building PCAP support])
     223#else
     224#    AC_DEFINE(HAVE_PCAP,0,[Conditional for building PCAP support])
     225#fi
    223226
    224227
Note: See TracChangeset for help on using the changeset viewer.