X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=configure;h=484ab3e3c109f516cb81a71607bc3b60df6f0578;hp=bf7546d0a7b38a96de0532e9be9d71868dcfa2ef;hb=a19d80373216f3257c1b5ef59e41279f94744377;hpb=ea0c2060499bc73091b0d8949f3b6307c7877562 diff --git a/configure b/configure index bf7546d..484ab3e 100755 --- a/configure +++ b/configure @@ -544,7 +544,7 @@ fi # The nfs-utils version -VERSION="nfs-utils 0.1.2" +VERSION="0.2.1" # Check whether --with-statedir or --without-statedir was given. @@ -1427,16 +1427,55 @@ fi +echo $ac_n "checking for the tcp wrapper library""... $ac_c" 1>&6 +echo "configure:1432: checking for the tcp wrapper library" >&5 + if eval "test \"`echo '$''{'knfsd_cv_tcp_wrapper'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + old_LIBS="$LIBS" + LIBS="$LIBS -lwrap $LIBNSL" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + knfsd_cv_tcp_wrapper=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + knfsd_cv_tcp_wrapper=no +fi +rm -f conftest* + LIBS="$old_LIBS" +fi + + echo "$ac_t""$knfsd_cv_tcp_wrapper" 1>&6 + if test "$knfsd_cv_tcp_wrapper" = yes; then + CFLAGS="$CFLAGS -DHAVE_TCP_WRAPPER" + CXXFLAGS="$CXXFLAGS -DHAVE_TCP_WRAPPER" + LIBWRAP="-lwrap" + fi + + + for ac_func in innetgr do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1435: checking for $ac_func" >&5 +echo "configure:1474: 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:1502: \"$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 @@ -1593,7 +1632,7 @@ done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" -trap 'rm -fr `echo "config.mk support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +trap 'rm -fr `echo "config.mk nfs-utils.spec support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then