Changeset 1872

Show
Ignore:
Timestamp:
07/01/07 11:17:51 (19 months ago)
Author:
aturner
Message:

add config report to the end. fixes #155

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r1871 r1872  
    213213 
    214214dnl Use 64bits for packet counters 
     215use64bit_counters=no 
    215216AC_ARG_ENABLE(64bits, 
    216217    AC_HELP_STRING([--enable-64bits], [Use 64bit packet counters]), 
     
    218219         AC_DEFINE([ENABLE_64BITS], [1], [Use 64bit packet counters]) 
    219220         AC_MSG_NOTICE([Using u_int64_t for packet counters]) 
     221         use64bit_counters=yes 
    220222      else 
    221223         AC_MSG_NOTICE([Using u_int32_t for packet counters]) 
     
    595597    AC_MSG_ERROR([Libpcap versions < 0.7.2 are not supported 
    596598    Please upgrade to version 0.7.2 or better]) 
     599fi 
     600 
     601libpcap_version=unknown 
     602if test $libpcap_version_096 = yes ; then 
     603    libpcap_version=">= 0.9.6" 
     604elif test $libpcap_ver8 = yes ; then 
     605    libpcap_version=">= 0.8.0" 
     606elif test $libcap_ver7 = yes ; then 
     607    libpcap_version=">= 0.7.0" 
    597608fi 
    598609 
     
    9891000dnl ################################################## 
    9901001 
    991 td=no 
     1002tcpdump_path=no 
    9921003AC_ARG_WITH(tcpdump, 
    9931004    AC_HELP_STRING([--with-tcpdump=FILE], [Path to tcpdump binary]), 
    9941005    [ if test -x $withval ; then 
    9951006          td=$withval 
    996           AC_MSG_RESULT([Using tcpdump in $td]) 
     1007          AC_MSG_RESULT([Using tcpdump in $tcpdump_path]) 
    9971008      else 
    9981009          AC_MSG_RESULT([Error: $withval does not exist or is not executable]) 
    9991010      fi ], 
    1000     [ AC_PATH_PROG(td, tcpdump, "no", [$PATH:/usr/sbin:/sbin:/usr/local/sbin]) ]) 
     1011    [ AC_PATH_PROG(tcpdump_path, tcpdump, "no", [$PATH:/usr/sbin:/sbin:/usr/local/sbin]) ]) 
    10011012            
    10021013 
    1003 if test "$td" = "no"; then 
     1014if test "$tcpdump_path" = "no"; then 
    10041015    AC_MSG_WARN([Unable to find tcpdump.  Please specify --with-tcpdump. 
    10051016                 Disabling --verbose]) 
    10061017else 
    10071018    AC_DEFINE([HAVE_TCPDUMP], [1], [Do we have tcpdump?]) 
    1008     AC_DEFINE_UNQUOTED(TCPDUMP_BINARY, "$td", [The tcpdump binary initially used]) 
    1009 fi 
    1010  
    1011  
    1012 AM_CONDITIONAL([ENABLE_TCPDUMP], test "$td" != "no" -a x$have_pcap_dump_fopen = xyes) 
    1013 if test x$td != xno -a x$have_pcap_dump_fopen = xyes ; then 
     1019    AC_DEFINE_UNQUOTED(TCPDUMP_BINARY, "$tcpdump_path", [The tcpdump binary initially used]) 
     1020fi 
     1021 
     1022 
     1023AM_CONDITIONAL([ENABLE_TCPDUMP], test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes) 
     1024if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then 
    10141025        AC_DEFINE([ENABLE_VERBOSE], [1], [Do we have tcpdump and pcap_dump_fopen()?]) 
    10151026else 
     
    11211132           tcpreplay.spec]) 
    11221133 
     1134# Configuration results 
     1135AC_MSG_RESULT( 
     1136########################################################################## 
     1137             TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION}) 
     1138########################################################################## 
     1139libpcap:                    ${foundpcap} (${libpcap_version}) 
     1140libnet:                     ${foundnet} 
     1141autogen:                    ${AUTOGEN} 
     114264bit counter support:      ${use64bit_counters} 
     1143tcpdump binary path:        ${tcpdump_path} 
     1144tcpreplay edit support:     ${tcpreplay_edit} 
     1145tcpbridge support:          ${enable_tcpbridge} 
     1146 
     1147Supported Packet Injection Methods (*): 
     1148Linux PF_PACKET:            ${have_pf} 
     1149BSD BPF:                    ${have_bpf} 
     1150libnet:                     ${have_libnet} 
     1151pcap_inject:                ${have_pcap_inject} 
     1152pcap_sendpacket:            ${have_pcap_sendpacket} 
     1153 
     1154* In order of preference; see configure --help to override 
     1155) 
     1156 
     1157 
    11231158case $host in 
    11241159        *-apple-darwin*) 
    1125         AC_MSG_WARN([OS X <= 10.4.9 has a serious problem.  Please see: http://tcpreplay.synfin.net/trac/ticket/142]) 
     1160        AC_MSG_WARN([Apple OS X has a serious problem! 
     1161        Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details]) 
    11261162        ;; 
    11271163         
    11281164        *-*-cygwin) 
    1129         AC_MSG_WARN([Windows/Cygwin support is still somewhat experimental.  Please report any bugs!]) 
     1165        AC_MSG_WARN([Windows/Cygwin support is still somewhat experimental.  Please report any bugs! 
     1166        http://tcpreplay.synfin.net/trac/newticket]) 
    11301167        ;; 
    11311168esac 
     1169