|
|
|
@ -1133,6 +1133,15 @@ else
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for module in .
|
|
|
|
|
do
|
|
|
|
|
case "$module" in
|
|
|
|
|
gthread)
|
|
|
|
|
gtk_config_args="$gtk_config_args gthread"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if test x$gtk_config_exec_prefix != x ; then
|
|
|
|
|
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
|
|
|
|
|
if test x${GTK_CONFIG+set} != xset ; then
|
|
|
|
@ -1149,7 +1158,7 @@ fi
|
|
|
|
|
# Extract the first word of "gtk-config", so it can be a program name with args.
|
|
|
|
|
set dummy gtk-config; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1153: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1162: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1184,7 +1193,7 @@ fi
|
|
|
|
|
|
|
|
|
|
min_gtk_version=1.0.0
|
|
|
|
|
echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1188: checking for GTK - version >= $min_gtk_version" >&5
|
|
|
|
|
echo "configure:1197: checking for GTK - version >= $min_gtk_version" >&5
|
|
|
|
|
no_gtk=""
|
|
|
|
|
if test "$GTK_CONFIG" = "no" ; then
|
|
|
|
|
no_gtk=yes
|
|
|
|
@ -1201,17 +1210,18 @@ echo "configure:1188: checking for GTK - version >= $min_gtk_version" >&5
|
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
|
|
|
LIBS="$LIBS $GTK_LIBS"
|
|
|
|
|
LIBS="$GTK_LIBS $LIBS"
|
|
|
|
|
rm -f conf.gtktest
|
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
|
echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1211 "configure"
|
|
|
|
|
#line 1220 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
@ -1244,6 +1254,17 @@ main ()
|
|
|
|
|
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
|
|
|
|
|
printf("*** before re-running configure\n");
|
|
|
|
|
}
|
|
|
|
|
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
|
|
|
|
|
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
|
|
|
|
|
(gtk_minor_version != GTK_MINOR_VERSION) ||
|
|
|
|
|
(gtk_micro_version != GTK_MICRO_VERSION))
|
|
|
|
|
{
|
|
|
|
|
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
|
|
|
|
|
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
|
|
|
|
|
printf("*** library (version %d.%d.%d)\n",
|
|
|
|
|
gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
|
|
|
}
|
|
|
|
|
#endif /* defined (GTK_MAJOR_VERSION) ... */
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if ((gtk_major_version > major) ||
|
|
|
|
@ -1273,7 +1294,7 @@ main ()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
|
if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
|
then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
@ -1307,7 +1328,7 @@ fi
|
|
|
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
|
|
|
LIBS="$LIBS $GTK_LIBS"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1311 "configure"
|
|
|
|
|
#line 1332 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
@ -1317,7 +1338,7 @@ int main() {
|
|
|
|
|
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
echo "*** The test program compiled, but did not run. This usually means"
|
|
|
|
|
echo "*** that the run-time linker is not finding GTK or finding the wrong"
|
|
|
|
@ -1358,7 +1379,7 @@ rm -f conftest*
|
|
|
|
|
|
|
|
|
|
# Evidently, some systems have pcap.h, etc. in */include/pcap
|
|
|
|
|
echo $ac_n "checking for extraneous pcap header directories""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1362: checking for extraneous pcap header directories" >&5
|
|
|
|
|
echo "configure:1383: checking for extraneous pcap header directories" >&5
|
|
|
|
|
found_pcap_dir=""
|
|
|
|
|
for pcap_dir in /usr/include/pcap /usr/local/include/pcap
|
|
|
|
|
do
|
|
|
|
@ -1378,7 +1399,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# Pcap checks
|
|
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1382: checking how to run the C preprocessor" >&5
|
|
|
|
|
echo "configure:1403: checking how to run the C preprocessor" >&5
|
|
|
|
|
# On Suns, sometimes $CPP names a directory.
|
|
|
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
|
|
CPP=
|
|
|
|
@ -1393,13 +1414,13 @@ else
|
|
|
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
|
|
# not just through cpp.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1397 "configure"
|
|
|
|
|
#line 1418 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
Syntax Error
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
:
|
|
|
|
@ -1410,13 +1431,13 @@ else
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1414 "configure"
|
|
|
|
|
#line 1435 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
Syntax Error
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
:
|
|
|
|
@ -1427,13 +1448,13 @@ else
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
CPP="${CC-cc} -nologo -E"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1431 "configure"
|
|
|
|
|
#line 1452 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
Syntax Error
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
:
|
|
|
|
@ -1459,17 +1480,17 @@ echo "$ac_t""$CPP" 1>&6
|
|
|
|
|
|
|
|
|
|
ac_safe=`echo "net/bpf.h" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for net/bpf.h""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1463: checking for net/bpf.h" >&5
|
|
|
|
|
echo "configure:1484: checking for net/bpf.h" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1468 "configure"
|
|
|
|
|
#line 1489 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <net/bpf.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -1493,17 +1514,17 @@ fi
|
|
|
|
|
|
|
|
|
|
ac_safe=`echo "pcap.h" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for pcap.h""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1497: checking for pcap.h" >&5
|
|
|
|
|
echo "configure:1518: checking for pcap.h" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1502 "configure"
|
|
|
|
|
#line 1523 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <pcap.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -1526,7 +1547,7 @@ else
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for pcap_open_offline in -lpcap""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1530: checking for pcap_open_offline in -lpcap" >&5
|
|
|
|
|
echo "configure:1551: checking for pcap_open_offline in -lpcap" >&5
|
|
|
|
|
ac_lib_var=`echo pcap'_'pcap_open_offline | sed 'y%./+-%__p_%'`
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
@ -1534,7 +1555,7 @@ else
|
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
|
LIBS="-lpcap $LIBS"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1538 "configure"
|
|
|
|
|
#line 1559 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
|
|
|
@ -1545,7 +1566,7 @@ int main() {
|
|
|
|
|
pcap_open_offline()
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
|
else
|
|
|
|
@ -1576,7 +1597,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# Wiretap check
|
|
|
|
|
echo $ac_n "checking whether to include wiretap library""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1580: checking whether to include wiretap library" >&5
|
|
|
|
|
echo "configure:1601: checking whether to include wiretap library" >&5
|
|
|
|
|
# Check whether --with-wiretap or --without-wiretap was given.
|
|
|
|
|
if test "${with_wiretap+set}" = set; then
|
|
|
|
|
withval="$with_wiretap"
|
|
|
|
@ -1618,7 +1639,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether to enable ipv6 name resolution if available""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1622: checking whether to enable ipv6 name resolution if available" >&5
|
|
|
|
|
echo "configure:1643: checking whether to enable ipv6 name resolution if available" >&5
|
|
|
|
|
if test "x$enable_ipv6" = "xno" ; then
|
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1628,12 +1649,12 @@ else
|
|
|
|
|
v6lib=none
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1632: checking ipv6 stack type" >&5
|
|
|
|
|
echo "configure:1653: checking ipv6 stack type" >&5
|
|
|
|
|
for i in v6d toshiba kame inria zeta linux; do
|
|
|
|
|
case $i in
|
|
|
|
|
v6d)
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1637 "configure"
|
|
|
|
|
#line 1658 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
dnl
|
|
|
|
|
#include </usr/local/v6/include/sys/types.h>
|
|
|
|
@ -1653,7 +1674,7 @@ rm -f conftest*
|
|
|
|
|
;;
|
|
|
|
|
toshiba)
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1657 "configure"
|
|
|
|
|
#line 1678 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
dnl
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
@ -1673,7 +1694,7 @@ rm -f conftest*
|
|
|
|
|
;;
|
|
|
|
|
kame)
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1677 "configure"
|
|
|
|
|
#line 1698 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
dnl
|
|
|
|
|
#include <netinet/in.h>
|
|
|
|
@ -1693,7 +1714,7 @@ rm -f conftest*
|
|
|
|
|
;;
|
|
|
|
|
inria)
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1697 "configure"
|
|
|
|
|
#line 1718 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
dnl
|
|
|
|
|
#include <netinet/in.h>
|
|
|
|
@ -1711,7 +1732,7 @@ rm -f conftest*
|
|
|
|
|
;;
|
|
|
|
|
zeta)
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1715 "configure"
|
|
|
|
|
#line 1736 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
dnl
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
@ -1760,12 +1781,12 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1764: checking for ANSI C header files" >&5
|
|
|
|
|
echo "configure:1785: checking for ANSI C header files" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1769 "configure"
|
|
|
|
|
#line 1790 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
@ -1773,7 +1794,7 @@ else
|
|
|
|
|
#include <float.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -1790,7 +1811,7 @@ rm -f conftest*
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1794 "configure"
|
|
|
|
|
#line 1815 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <string.h>
|
|
|
|
|
EOF
|
|
|
|
@ -1808,7 +1829,7 @@ fi
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1812 "configure"
|
|
|
|
|
#line 1833 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
EOF
|
|
|
|
@ -1829,7 +1850,7 @@ if test "$cross_compiling" = yes; then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1833 "configure"
|
|
|
|
|
#line 1854 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <ctype.h>
|
|
|
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
|
@ -1840,7 +1861,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
|
|
|
exit (0); }
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
|
if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
|
then
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
@ -1867,17 +1888,17 @@ for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h stdarg.h
|
|
|
|
|
do
|
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1871: checking for $ac_hdr" >&5
|
|
|
|
|
echo "configure:1892: checking for $ac_hdr" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1876 "configure"
|
|
|
|
|
#line 1897 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <$ac_hdr>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -1908,17 +1929,17 @@ for ac_hdr in sys/sockio.h sys/types.h netinet/in.h
|
|
|
|
|
do
|
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1912: checking for $ac_hdr" >&5
|
|
|
|
|
echo "configure:1933: checking for $ac_hdr" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1917 "configure"
|
|
|
|
|
#line 1938 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <$ac_hdr>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -1958,7 +1979,7 @@ fi
|
|
|
|
|
SNMP_A=''
|
|
|
|
|
SNMP_O=''
|
|
|
|
|
echo $ac_n "checking whether to use SNMP library if available""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1962: checking whether to use SNMP library if available" >&5
|
|
|
|
|
echo "configure:1983: checking whether to use SNMP library if available" >&5
|
|
|
|
|
if test "x$enable_snmp" = "xno" ; then
|
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1967,17 +1988,17 @@ else
|
|
|
|
|
do
|
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1971: checking for $ac_hdr" >&5
|
|
|
|
|
echo "configure:1992: checking for $ac_hdr" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1976 "configure"
|
|
|
|
|
#line 1997 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <$ac_hdr>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:1981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
@ -2004,7 +2025,7 @@ fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for asn_parse_header in -lsnmp""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2008: checking for asn_parse_header in -lsnmp" >&5
|
|
|
|
|
echo "configure:2029: checking for asn_parse_header in -lsnmp" >&5
|
|
|
|
|
ac_lib_var=`echo snmp'_'asn_parse_header | sed 'y%./+-%__p_%'`
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
@ -2012,7 +2033,7 @@ else
|
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
|
LIBS="-lsnmp $LIBS"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2016 "configure"
|
|
|
|
|
#line 2037 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
|
|
|
@ -2023,7 +2044,7 @@ int main() {
|
|
|
|
|
asn_parse_header()
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
|
else
|
|
|
|
@ -2056,12 +2077,12 @@ fi
|
|
|
|
|
# for get_interface_list().
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2060: checking for sa_len in struct sockaddr" >&5
|
|
|
|
|
echo "configure:2081: checking for sa_len in struct sockaddr" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_ethereal_struct_sa_len'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2065 "configure"
|
|
|
|
|
#line 2086 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
@ -2069,7 +2090,7 @@ int main() {
|
|
|
|
|
struct sockaddr s; s.sa_len;
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
if { (eval echo configure:2094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
ac_cv_ethereal_struct_sa_len=yes
|
|
|
|
|
else
|
|
|
|
@ -2092,14 +2113,14 @@ fi
|
|
|
|
|
|
|
|
|
|
# We must know our byte order
|
|
|
|
|
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2096: checking whether byte ordering is bigendian" >&5
|
|
|
|
|
echo "configure:2117: checking whether byte ordering is bigendian" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
ac_cv_c_bigendian=unknown
|
|
|
|
|
# See if sys/param.h defines the BYTE_ORDER macro.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2103 "configure"
|
|
|
|
|
#line 2124 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
@ -2110,11 +2131,11 @@ int main() {
|
|
|
|
|
#endif
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
if { (eval echo configure:2135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
# It does; now see whether it defined to BIG_ENDIAN or not.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2118 "configure"
|
|
|
|
|
#line 2139 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
@ -2125,7 +2146,7 @@ int main() {
|
|
|
|
|
#endif
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
ac_cv_c_bigendian=yes
|
|
|
|
|
else
|
|
|
|
@ -2145,7 +2166,7 @@ if test "$cross_compiling" = yes; then
|
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2149 "configure"
|
|
|
|
|
#line 2170 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
main () {
|
|
|
|
|
/* Are we little or big endian? From Harbison&Steele. */
|
|
|
|
@ -2158,7 +2179,7 @@ main () {
|
|
|
|
|
exit (u.c[sizeof (long) - 1] == 1);
|
|
|
|
|
}
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
|
if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
|
then
|
|
|
|
|
ac_cv_c_bigendian=no
|
|
|
|
|
else
|
|
|
|
@ -2184,13 +2205,13 @@ fi
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
|
|
|
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2188: checking whether ${CC-cc} needs -traditional" >&5
|
|
|
|
|
echo "configure:2209: checking whether ${CC-cc} needs -traditional" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
ac_pattern="Autoconf.*'x'"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2194 "configure"
|
|
|
|
|
#line 2215 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <sgtty.h>
|
|
|
|
|
Autoconf TIOCGETP
|
|
|
|
@ -2208,7 +2229,7 @@ rm -f conftest*
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc_traditional = no; then
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2212 "configure"
|
|
|
|
|
#line 2233 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <termio.h>
|
|
|
|
|
Autoconf TCGETA
|
|
|
|
@ -2230,12 +2251,12 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for socket""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2234: checking for socket" >&5
|
|
|
|
|
echo "configure:2255: checking for socket" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2239 "configure"
|
|
|
|
|
#line 2260 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
|
|
which can conflict with char socket(); below. */
|
|
|
|
@ -2258,7 +2279,7 @@ socket();
|
|
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_func_socket=yes"
|
|
|
|
|
else
|
|
|
|
@ -2284,12 +2305,12 @@ fi
|
|
|
|
|
SNPRINTF_C=""
|
|
|
|
|
SNPRINTF_O=""
|
|
|
|
|
echo $ac_n "checking for snprintf""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2288: checking for snprintf" >&5
|
|
|
|
|
echo "configure:2309: checking for snprintf" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2293 "configure"
|
|
|
|
|
#line 2314 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
|
|
which can conflict with char snprintf(); below. */
|
|
|
|
@ -2312,7 +2333,7 @@ snprintf();
|
|
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_func_snprintf=yes"
|
|
|
|
|
else
|
|
|
|
@ -2342,6 +2363,65 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for strerror""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2368: checking for strerror" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2373 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
|
|
which can conflict with char strerror(); below. */
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
|
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
|
char strerror();
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
|
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
|
|
|
something starting with __ and the normal name is an alias. */
|
|
|
|
|
#if defined (__stub_strerror) || defined (__stub___strerror)
|
|
|
|
|
choke me
|
|
|
|
|
#else
|
|
|
|
|
strerror();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_func_strerror=yes"
|
|
|
|
|
else
|
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_func_strerror=no"
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest*
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
|
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
|
STRERROR_O=""
|
|
|
|
|
else
|
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
STRERROR_O="strerror.o" cat >> confdefs.h <<\EOF
|
|
|
|
|
#define NEED_STRERROR_H 1
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test "$ac_cv_func_strerror" = no ; then
|
|
|
|
|
STRERROR_C="strerror.c"
|
|
|
|
|
STRERROR_O="strerror.o"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2511,6 +2591,8 @@ s%@SNMP_A@%$SNMP_A%g
|
|
|
|
|
s%@SNMP_O@%$SNMP_O%g
|
|
|
|
|
s%@SNPRINTF_C@%$SNPRINTF_C%g
|
|
|
|
|
s%@SNPRINTF_O@%$SNPRINTF_O%g
|
|
|
|
|
s%@STRERROR_C@%$STRERROR_C%g
|
|
|
|
|
s%@STRERROR_O@%$STRERROR_O%g
|
|
|
|
|
s%@subdirs@%$subdirs%g
|
|
|
|
|
|
|
|
|
|
CEOF
|
|
|
|
|