head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.54 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.52 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.48 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.46 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.44 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.42 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.40 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.38 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2-base:1.2 netbsd-1-4-PATCH002:1.1; locks; strict; comment @# @; 1.2 date 2000.04.15.13.58.27; author itojun; state dead; branches; next 1.1; 1.1 date 99.11.29.08.33.31; author itojun; state Exp; branches; next ; desc @@ 1.2 log @upgrade to use version 1.05 of master distribution. key changes in 1.02 -> 1.05: - portability fixes - cope with corrupted DNS configuration, where A/AAAA for MX is not found @ text @$NetBSD: patch-ba,v 1.1 1999/11/29 08:33:31 itojun Exp $ Index: configure =================================================================== RCS file: /cvsroot/apps/smtpfeed/configure,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 configure --- configure 1999/11/29 07:42:40 1.1.1.1 +++ configure 1999/11/29 08:21:12 @@@@ -1101,10 +1101,11 @@@@ ipv6type=unknown ipv6lib=none +v6trylibc=no if test "$ipv6" = "yes"; then echo $ac_n "checking for lib_exec""... $ac_c" 1>&6 -echo "configure:1108: checking for lib_exec" >&5 +echo "configure:1109: checking for lib_exec" >&5 if eval "test \"`echo '$''{'my_cv_path_lib_exec'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@@@ -1121,12 +1122,12 @@@@ echo "$ac_t""$lib_exec" 1>&6 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 -echo "configure:1125: checking ipv6 stack type" >&5 - for i in inria kame toshiba v6d zeta linux bsdi; do +echo "configure:1126: checking ipv6 stack type" >&5 + for i in inria kame toshiba v6d zeta linux-glibc linux-libinet6 bsdi; do case $i in inria) cat > conftest.$ac_ext < @@@@ -1145,7 +1146,7 @@@@ ;; kame) cat > conftest.$ac_ext < @@@@ -1159,6 +1160,7 @@@@ ipv6type=$i; ipv6lib=inet6; ipv6libdir=/usr/local/v6/lib; + v6trylibc=yes; IPV6_DEF="-DINET6" fi rm -f conftest* @@@@ -1166,7 +1168,7 @@@@ ;; toshiba) cat > conftest.$ac_ext < @@@@ -1187,7 +1189,7 @@@@ ;; v6d) cat > conftest.$ac_ext < @@@@ -1208,7 +1210,7 @@@@ ;; zeta) cat > conftest.$ac_ext < @@@@ -1227,12 +1229,32 @@@@ rm -f conftest* ;; - linux) - if test -d /usr/inet6; then + linux-glibc) + cat > conftest.$ac_ext < +#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 +yes +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + ipv6type=$i; + CFLAGS="-DINET6 $CFLAGS" +fi +rm -f conftest* + + ;; + linux-libinet6) + if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then ipv6type=$i ipv6lib=inet6 ipv6libdir=/usr/inet6/lib - IPV6_DEF="-DINET6 -I/usr/inet6/include" + ipv6trylibc=yes; + CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" fi ;; bsdi) @@@@ -1251,23 +1273,28 @@@@ break fi done - echo "$ac_t""$ipv6type" 1>&6 fi if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" + echo "$ac_t"""$ipv6type using lib$ipv6lib"" 1>&6 else - echo 'Fatal: no $ipv6lib library found. cannot continue.' - echo "You need to fetch lib$ipv6lib.a from appropriate" - echo 'ipv6 kit and compile beforehand.' - exit 1 - fi + if test "$v6trylibc" = "yes"; then + echo "$ac_t"""$ipv6type using libc"" 1>&6 + else + echo + echo "Fatal: no IPv6 library lib$v6lib.a found." + exit 1 + fi fi + else + echo "$ac_t"""$ipv6type using libc"" 1>&6 +fi echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 -echo "configure:1271: checking for main in -lnsl" >&5 +echo "configure:1298: checking for main in -lnsl" >&5 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@@@ -1275,14 +1302,14 @@@@ ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1313: \"$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 @@@@ -1310,12 +1337,12 @@@@ fi echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:1314: checking for connect" >&5 +echo "configure:1341: checking for connect" >&5 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes" else @@@@ -1356,7 +1383,7 @@@@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 -echo "configure:1360: checking for connect in -lsocket" >&5 +echo "configure:1387: checking for connect in -lsocket" >&5 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@@@ -1364,7 +1391,7 @@@@ ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1406: \"$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 @@@@ -1405,7 +1432,7 @@@@ fi echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6 -echo "configure:1409: checking for setproctitle in -lutil" >&5 +echo "configure:1436: checking for setproctitle in -lutil" >&5 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@@@ -1413,7 +1440,7 @@@@ ac_save_LIBS="$LIBS" LIBS="-lutil $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1455: \"$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 @@@@ -1454,10 +1481,10 @@@@ if test "$ipv6" = "yes"; then echo $ac_n "checking for IPv6 resolver type""... $ac_c" 1>&6 -echo "configure:1458: checking for IPv6 resolver type" >&5 +echo "configure:1485: checking for IPv6 resolver type" >&5 CPPFLAGS="${IPV6_DEF} ${CPPFLAGS}" cat > conftest.$ac_ext < #include @@@@ -1467,7 +1494,7 @@@@ _res_ext.nsaddr_list[0].__ss_family = 1; ; return 0; } EOF -if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define RESOLVER_KAME 1 @@@@ -1479,7 +1506,7 @@@@ cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < #include @@@@ -1489,7 +1516,7 @@@@ _res_ext.nsaddr_list[0].ss_family = 1; ; return 0; } EOF -if { (eval echo configure:1493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define RESOLVER_KAME 1 @@@@ -1501,7 +1528,7 @@@@ cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < #include @@@@ -1511,7 +1538,7 @@@@ _res.nsaddr_list_un[0].sin6.sin6_family = 1; ; return 0; } EOF -if { (eval echo configure:1515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define RESOLVER_OLDKAME 1 @@@@ -1523,7 +1550,7 @@@@ cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < #include @@@@ -1533,7 +1560,7 @@@@ _res.nsaddr_list[0].sin_family = 1; ; return 0; } EOF -if { (eval echo configure:1537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define RESOLVER_V4 1 @@@@ -1558,7 +1585,7 @@@@ if test "${bind8}" = "yes" ; then echo $ac_n "checking for inet_ntoa in -lbind""... $ac_c" 1>&6 -echo "configure:1562: checking for inet_ntoa in -lbind" >&5 +echo "configure:1589: checking for inet_ntoa in -lbind" >&5 ac_lib_var=`echo bind'_'inet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@@@ -1566,7 +1593,7 @@@@ ac_save_LIBS="$LIBS" LIBS="-lbind $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1608: \"$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 @@@@ -1593,7 +1620,7 @@@@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for __inet_aton in -lbind""... $ac_c" 1>&6 -echo "configure:1597: checking for __inet_aton in -lbind" >&5 +echo "configure:1624: checking for __inet_aton in -lbind" >&5 ac_lib_var=`echo bind'_'__inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@@@ -1601,7 +1628,7 @@@@ ac_save_LIBS="$LIBS" LIBS="-lbind $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1643: \"$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 @@@@ -1645,7 +1672,7 @@@@ elif test "${ipv6type}" != "v6d" ; then echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6 -echo "configure:1649: checking for main in -lresolv" >&5 +echo "configure:1676: checking for main in -lresolv" >&5 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@@@ -1653,14 +1680,14 @@@@ ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1691: \"$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 @@@@ -1688,7 +1715,7 @@@@ fi echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 -echo "configure:1692: checking for inet_aton in -lresolv" >&5 +echo "configure:1719: checking for inet_aton in -lresolv" >&5 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@@@ -1696,7 +1723,7 @@@@ ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1738: \"$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 @@@@ -1723,7 +1750,7 @@@@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6 -echo "configure:1727: checking for inet_aton in -l44bsd" >&5 +echo "configure:1754: checking for inet_aton in -l44bsd" >&5 ac_lib_var=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@@@ -1731,7 +1758,7 @@@@ ac_save_LIBS="$LIBS" LIBS="-l44bsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1773: \"$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 @@@@ -1776,12 +1803,12 @@@@ fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1780: checking for ANSI C header files" >&5 +echo "configure:1807: 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 < #include @@@@ -1789,7 +1816,7 @@@@ #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1820: \"$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* @@@@ -1806,7 +1833,7 @@@@ 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 @@@@ -1824,7 +1851,7 @@@@ 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 @@@@ -1845,7 +1872,7 @@@@ : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@@@ -1856,7 +1883,7 @@@@ exit (0); } EOF -if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@@@ -1883,17 +1910,17 @@@@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1887: checking for $ac_hdr" >&5 +echo "configure:1914: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1924: \"$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* @@@@ -1922,17 +1949,17 @@@@ ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 -echo "configure:1926: checking for netinet/in.h" >&5 +echo "configure:1953: checking for netinet/in.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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1963: \"$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* @@@@ -1949,7 +1976,7 @@@@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 cat > conftest.$ac_ext < EOF @@@@ -1972,12 +1999,12 @@@@ echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1976: checking for working const" >&5 +echo "configure:2003: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@@@ -2047,12 +2074,12 @@@@ fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:2051: checking for size_t" >&5 +echo "configure:2078: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@@@ -2080,12 +2107,12 @@@@ fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:2084: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:2111: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@@@ -2094,7 +2121,7 @@@@ struct tm *tp; ; return 0; } EOF -if { (eval echo configure:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@@@ -2117,13 +2144,13 @@@@ if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:2121: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:2148: 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 < Autoconf TIOCGETP @@@@ -2141,7 +2168,7 @@@@ if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < Autoconf TCGETA @@@@ -2163,12 +2190,12 @@@@ fi echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2167: checking return type of signal handlers" >&5 +echo "configure:2194: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@@@ -2185,7 +2212,7 @@@@ int i; ; return 0; } EOF -if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@@@ -2206,12 +2233,12 @@@@ for ac_func in strerror snprintf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2210: checking for $ac_func" >&5 +echo "configure:2237: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@@@ -2259,12 +2286,12 @@@@ done echo $ac_n "checking for setproctitle""... $ac_c" 1>&6 -echo "configure:2263: checking for setproctitle" >&5 +echo "configure:2290: checking for setproctitle" >&5 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_setproctitle=yes" else @@@@ -2308,12 +2335,12 @@@@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for pstat""... $ac_c" 1>&6 -echo "configure:2312: checking for pstat" >&5 +echo "configure:2339: checking for pstat" >&5 if eval "test \"`echo '$''{'ac_cv_func_pstat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_pstat=yes" else @@@@ -2358,17 +2385,17 @@@@ echo "$ac_t""no" 1>&6 ac_safe=`echo "sys/sysnews.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/sysnews.h""... $ac_c" 1>&6 -echo "configure:2362: checking for sys/sysnews.h" >&5 +echo "configure:2389: checking for sys/sysnews.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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2399: \"$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* Index: configure.in =================================================================== RCS file: /cvsroot/apps/smtpfeed/configure.in,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 configure.in --- configure.in 1999/11/29 07:42:40 1.1.1.1 +++ configure.in 1999/11/29 08:21:13 @@@@ -117,12 +117,13 @@@@ ipv6type=unknown ipv6lib=none +v6trylibc=no if test "$ipv6" = "yes"; then AC_CHECK_DIR_PATH(lib_exec, [$]libexecdir /usr/local/v6/sbin /usr/libexec /usr/lib) AC_MSG_CHECKING([ipv6 stack type]) dnl linux is checked later, as it does not have #define for IPv6 - for i in inria kame toshiba v6d zeta linux bsdi; do + for i in inria kame toshiba v6d zeta linux-glibc linux-libinet6 bsdi; do case $i in inria) dnl http://www.inria.fr/ @@@@ -144,6 +145,7 @@@@ [ipv6type=$i; ipv6lib=inet6; ipv6libdir=/usr/local/v6/lib; + v6trylibc=yes; IPV6_DEF="-DINET6"]) ;; toshiba) @@@@ -179,13 +181,24 @@@@ ipv6libdir=/usr/local/v6/lib; IPV6_DEF="-DINET6"]) ;; - linux) + linux-glibc) dnl http://www.v6.linux.or.jp/ - if test -d /usr/inet6; then + AC_EGREP_CPP(yes, [dnl +#include +#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 +yes +#endif], + [ipv6type=$i; + CFLAGS="-DINET6 $CFLAGS"]) + ;; + linux-libinet6) + dnl http://www.v6.linux.or.jp/ + if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then ipv6type=$i ipv6lib=inet6 ipv6libdir=/usr/inet6/lib - IPV6_DEF="-DINET6 -I/usr/inet6/include" + ipv6trylibc=yes; + CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" fi ;; bsdi) @@@@ -205,19 +218,24 @@@@ break fi done - AC_MSG_RESULT($ipv6type) fi if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" + AC_MSG_RESULT("$ipv6type using lib$ipv6lib") else - echo 'Fatal: no $ipv6lib library found. cannot continue.' - echo "You need to fetch lib$ipv6lib.a from appropriate" - echo 'ipv6 kit and compile beforehand.' - exit 1 + if test "$v6trylibc" = "yes"; then + AC_MSG_RESULT("$ipv6type using libc") + else + echo + echo "Fatal: no IPv6 library lib$v6lib.a found." + exit 1 + fi fi dnl AC_CHECK_LIB($ipv6lib, main) +else + AC_MSG_RESULT("$ipv6type using libc") fi AC_SUBST(IPV6_DEF) @ 1.1 log @mail/smtpfeed: SMTP Fast Exploding External Deliverer for Sendmail (builds patched sendmail as well) @ text @d1 1 a1 1 $NetBSD$ @