diff options
author | Neil Brown <neilb@suse.de> | 2007-03-29 13:20:20 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-03-29 13:20:20 +1000 |
commit | 060f523e68274fcd04eb8ecdae51688cb864a5f9 (patch) | |
tree | c179574a8b53b311acf116046e1fc20a9cf19859 | |
parent | 6072e7f91726d717eef45c8e50271ca55dc0c20f (diff) | |
download | nfs-utils-060f523e68274fcd04eb8ecdae51688cb864a5f9.tar.gz nfs-utils-060f523e68274fcd04eb8ecdae51688cb864a5f9.tar.xz nfs-utils-060f523e68274fcd04eb8ecdae51688cb864a5f9.zip |
Change default to use system rpcgen.
If system-installed rpcgen if such exists.
If none is found, build our own.
Override with
./configure --with-rpcgen=internal
for internal rpcgen or
./configure --with-rpcgen=/local/rpcgen
for a non-standard location.
-rw-r--r-- | configure.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 2a72c1c..2ed751b 100644 --- a/configure.in +++ b/configure.in @@ -116,13 +116,16 @@ AC_ARG_ENABLE(rquotad, fi AM_CONDITIONAL(CONFIG_RQUOTAD, [test "$enable_rquotad" = "yes"]) AC_ARG_WITH(rpcgen, - [AC_HELP_STRING([--with-rpcgen=/usr/bin/rpcgen], [use system rpcgen instead of compiling our own])], - if test "$withval" == "yes"; then + [AC_HELP_STRING([--with-rpcgen=internal], [use internal rpcgen instead of system one])], + rpcgen_path=$withval, + rpcgen_path=yes ) + RPCGEN_PATH= + if test "$rpcgen_path" == "yes"; then for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen - do if test -f $p ; then withval=$p ; break; fi ; done + do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done + elif test "$rpcgen_path" != "internal"; then + RPCGEN_PATH=$rpcgen_path fi - RPCGEN_PATH=$withval, - RPCGEN_PATH= ) AC_SUBST(RPCGEN_PATH) AM_CONDITIONAL(CONFIG_RPCGEN, [test "$RPCGEN_PATH" == ""]) AC_ARG_ENABLE(uuid, |