From: neilbrown Date: Fri, 10 Dec 2004 01:09:07 +0000 (+0000) Subject: configure improvements X-Git-Tag: nfs-utils-1-0-7-pre2~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=604bc72d3a4894d6569f8cc58d935cc62217aee6;p=nfs-utils.git configure improvements --- diff --git a/ChangeLog b/ChangeLog index e57a496..fed8afe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-10 Neil Brown + * README : note dependancy on kerberos, libevent, and nfsidmap + * configure.in : fail if --enable-nfsv4 and libevent or + libnfsidmap are missing. + * configuyre.in: improve message if krb5 support is missing + 2004-12-06 Paul Clements * support/include/ha-callout.h: get return status from waitpid correctly. diff --git a/README b/README index 502c673..3fa3a58 100644 --- a/README +++ b/README @@ -5,6 +5,16 @@ This is version 1.0.1 of nfs-utils, the Linux NFS utility package. Home page: http://sourceforge.net/projects/nfs/ +To use the 'gss' support you must have kerberos-5 development +libraries installed. +Otherwise use "--disable-gss" + +To use nfsv4 support you need libevent and libnfsidmap development +libraries. They are available from + http://www.monkey.org/~provos/libevent/ + http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/ +Otherwise use --disable-nfsv4 + 1. COMPILING WITHOUT PACKAGE MANAGEMENT diff --git a/configure b/configure index 75ce00a..59b440f 100755 --- a/configure +++ b/configure @@ -1550,10 +1550,11 @@ EOF else echo "$ac_t""no" 1>&6 +{ echo "configure: error: libevent needed for nfsv4 support" 1>&2; exit 1; } fi echo $ac_n "checking for nfs4_init_name_mapping in -lnfsidmap""... $ac_c" 1>&6 -echo "configure:1557: checking for nfs4_init_name_mapping in -lnfsidmap" >&5 +echo "configure:1558: checking for nfs4_init_name_mapping in -lnfsidmap" >&5 ac_lib_var=`echo nfsidmap'_'nfs4_init_name_mapping | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1561,7 +1562,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnfsidmap $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1577: \"$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 @@ -1597,23 +1598,24 @@ EOF else echo "$ac_t""no" 1>&6 +{ echo "configure: error: libnfsidmap needed for nfsv4 support" 1>&2; exit 1; } fi for ac_hdr in event.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1607: checking for $ac_hdr" >&5 +echo "configure:1609: 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:1617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1619: \"$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* @@ -1636,6 +1638,7 @@ EOF else echo "$ac_t""no" 1>&6 +{ echo "configure: error: libevent needed for nfsv4 support" 1>&2; exit 1; } fi done @@ -1643,17 +1646,17 @@ done do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1647: checking for $ac_hdr" >&5 +echo "configure:1650: 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:1657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1660: \"$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* @@ -1676,13 +1679,14 @@ EOF else echo "$ac_t""no" 1>&6 +{ echo "configure: error: libnfsidmap needed for nfsv4 support" 1>&2; exit 1; } fi done fi if test "$knfsd_cv_glibc2" = no; then echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6 -echo "configure:1686: checking for daemon in -lbsd" >&5 +echo "configure:1690: checking for daemon in -lbsd" >&5 ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1690,7 +1694,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lbsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1709: \"$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 @@ -1728,14 +1732,14 @@ fi echo $ac_n "checking for the tcp wrapper library""... $ac_c" 1>&6 -echo "configure:1732: checking for the tcp wrapper library" >&5 +echo "configure:1736: 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 +if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* knfsd_cv_tcp_wrapper=yes else @@ -1768,7 +1772,7 @@ fi if test "$enable_gss" = yes; then echo $ac_n "checking for Kerberos v5""... $ac_c" 1>&6 -echo "configure:1772: checking for Kerberos v5" >&5 +echo "configure:1776: checking for Kerberos v5" >&5 # Check whether --with-krb5 or --without-krb5 was given. if test "${with_krb5+set}" = set; then withval="$with_krb5" @@ -1814,7 +1818,7 @@ EOF fi echo $ac_n "checking for gss_krb5_export_lucid_sec_context in -lgssapi_krb5""... $ac_c" 1>&6 -echo "configure:1818: checking for gss_krb5_export_lucid_sec_context in -lgssapi_krb5" >&5 +echo "configure:1822: checking for gss_krb5_export_lucid_sec_context in -lgssapi_krb5" >&5 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_export_lucid_sec_context | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1822,7 +1826,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi_krb5 $KRBLIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1841: \"$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 @@ -1857,7 +1861,7 @@ else fi echo $ac_n "checking for gss_krb5_set_allowable_enctypes in -lgssapi_krb5""... $ac_c" 1>&6 -echo "configure:1861: checking for gss_krb5_set_allowable_enctypes in -lgssapi_krb5" >&5 +echo "configure:1865: checking for gss_krb5_set_allowable_enctypes in -lgssapi_krb5" >&5 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_set_allowable_enctypes | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1865,7 +1869,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi_krb5 $KRBLIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1884: \"$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 @@ -1900,7 +1904,7 @@ else fi echo $ac_n "checking for gss_krb5_ccache_name in -lgssapi_krb5""... $ac_c" 1>&6 -echo "configure:1904: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5 +echo "configure:1908: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_ccache_name | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1908,7 +1912,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi_krb5 $KRBLIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1927: \"$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 @@ -1958,7 +1962,7 @@ EOF KRBLIB=`$K5CONFIG --libs gssapi` echo $ac_n "checking for gss_krb5_export_lucid_sec_context in -lgssapi""... $ac_c" 1>&6 -echo "configure:1962: checking for gss_krb5_export_lucid_sec_context in -lgssapi" >&5 +echo "configure:1966: checking for gss_krb5_export_lucid_sec_context in -lgssapi" >&5 ac_lib_var=`echo gssapi'_'gss_krb5_export_lucid_sec_context | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1966,7 +1970,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi $KRBLIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1985: \"$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 @@ -2001,7 +2005,7 @@ else fi echo $ac_n "checking for gss_krb5_set_allowable_enctypes in -lgssapi""... $ac_c" 1>&6 -echo "configure:2005: checking for gss_krb5_set_allowable_enctypes in -lgssapi" >&5 +echo "configure:2009: checking for gss_krb5_set_allowable_enctypes in -lgssapi" >&5 ac_lib_var=`echo gssapi'_'gss_krb5_set_allowable_enctypes | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2009,7 +2013,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi $KRBLIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2028: \"$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 @@ -2044,7 +2048,7 @@ else fi echo $ac_n "checking for gss_krb5_ccache_name in -lgssapi""... $ac_c" 1>&6 -echo "configure:2048: checking for gss_krb5_ccache_name in -lgssapi" >&5 +echo "configure:2052: checking for gss_krb5_ccache_name in -lgssapi" >&5 ac_lib_var=`echo gssapi'_'gss_krb5_ccache_name | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2052,7 +2056,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi $KRBLIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2071: \"$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 @@ -2092,8 +2096,9 @@ fi fi done if test "x$KRBDIR" = "x"; then + echo "$ac_t"""failed"" 1>&6 if test "x$krb5_with" = "x"; then - { echo "configure: error: Kerberos v5 with GSS support not found" 1>&2; exit 1; } + { echo "configure: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" 1>&2; exit 1; } else { echo "configure: error: Kerberos v5 with GSS support not found at $krb5_with" 1>&2; exit 1; } fi @@ -2112,12 +2117,12 @@ fi for ac_func in innetgr do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2116: checking for $ac_func" >&5 +echo "configure:2121: 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:2149: \"$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 diff --git a/configure.in b/configure.in index ca7ce4c..8134e93 100644 --- a/configure.in +++ b/configure.in @@ -117,10 +117,10 @@ AC_CHECK_LIB(socket, main, [LIBSOCKET="-lnsl"]) AC_CHECK_LIB(nsl, main, [LIBNSL="-lnsl"]) AC_CHECK_LIB(crypt, crypt, [LIBCRYPT="-lcrypt"]) if test "$enable_nfsv4" = yes; then - AC_CHECK_LIB(event, event_dispatch) - AC_CHECK_LIB(nfsidmap, nfs4_init_name_mapping) - AC_CHECK_HEADERS(event.h) - AC_CHECK_HEADERS(nfsidmap.h) + AC_CHECK_LIB(event, event_dispatch, , [AC_MSG_ERROR(libevent needed for nfsv4 support)]) + AC_CHECK_LIB(nfsidmap, nfs4_init_name_mapping, ,[AC_MSG_ERROR(libnfsidmap needed for nfsv4 support)]) + AC_CHECK_HEADERS(event.h, ,[AC_MSG_ERROR(libevent needed for nfsv4 support)]) + AC_CHECK_HEADERS(nfsidmap.h, ,[AC_MSG_ERROR(libnfsidmap needed for nfsv4 support)]) fi if test "$knfsd_cv_glibc2" = no; then AC_CHECK_LIB(bsd, daemon, [LIBBSD="-lbsd"]) @@ -204,8 +204,9 @@ if test "$enable_gss" = yes; then done dnl We didn't find a usable Kerberos environment if test "x$KRBDIR" = "x"; then + AC_MSG_RESULT("no") if test "x$krb5_with" = "x"; then - AC_MSG_ERROR(Kerberos v5 with GSS support not found) + AC_MSG_ERROR(Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=) else AC_MSG_ERROR(Kerberos v5 with GSS support not found at $krb5_with) fi