Ian Kent a2f40b
autofs-5.0.7 - add enable sloppy mount option to configure
Ian Kent a2f40b
Ian Kent a2f40b
From: Ian Kent <ikent@redhat.com>
Ian Kent a2f40b
Ian Kent a2f40b
Add an option --enable-sloppy-mount or --disable-sloppy-mount to force
Ian Kent a2f40b
or prevent the use of the -s option to mount, thus avoiding the
Ian Kent a2f40b
autodetection. This can be useful in setups where executing mount
Ian Kent a2f40b
might be undesirable, particularly in packaging environments.
Ian Kent a2f40b
Ian Kent a2f40b
2013-04-04 Martin von Gagern
Ian Kent a2f40b
Ian Kent a2f40b
References:
Ian Kent a2f40b
 * https://bugs.gentoo.org/453778
Ian Kent a2f40b
---
Ian Kent a2f40b
 CHANGELOG    |    1 
Ian Kent a2f40b
 aclocal.m4   |    2 
Ian Kent a2f40b
 configure    |  252 +++++++++++++++++++++++++++++++---------------------------
Ian Kent a2f40b
 configure.in |   10 ++
Ian Kent a2f40b
 4 files changed, 146 insertions(+), 119 deletions(-)
Ian Kent a2f40b
Ian Kent a2f40b
diff --git a/CHANGELOG b/CHANGELOG
Ian Kent a2f40b
index 61edddf..66c11de 100644
Ian Kent a2f40b
--- a/CHANGELOG
Ian Kent a2f40b
+++ b/CHANGELOG
Ian Kent a2f40b
@@ -42,6 +42,7 @@
Ian Kent a2f40b
 - fix submount tree not all expiring.
Ian Kent a2f40b
 - make dump maps check for duplicate indirect mounts.
Ian Kent a2f40b
 - document allowed map sources in auto.master.
Ian Kent a2f40b
+- add enable sloppy mount option to configure.
Ian Kent a2f40b
 
Ian Kent a2f40b
 25/07/2012 autofs-5.0.7
Ian Kent a2f40b
 =======================
Ian Kent a2f40b
diff --git a/aclocal.m4 b/aclocal.m4
Ian Kent a2f40b
index 47bca0c..c5de159 100644
Ian Kent a2f40b
--- a/aclocal.m4
Ian Kent a2f40b
+++ b/aclocal.m4
Ian Kent a2f40b
@@ -66,7 +66,7 @@ AC_DEFUN(AF_SLOPPY_MOUNT,
Ian Kent a2f40b
 [if test -n "$MOUNT" ; then
Ian Kent a2f40b
   AC_MSG_CHECKING([if mount accepts the -s option])
Ian Kent a2f40b
   if "$MOUNT" -s > /dev/null 2>&1 ; then
Ian Kent a2f40b
-    AC_DEFINE(HAVE_SLOPPY_MOUNT, 1, [define if the mount command supports the -s option])
Ian Kent a2f40b
+    enable_sloppy_mount=yes
Ian Kent a2f40b
     AC_MSG_RESULT(yes)
Ian Kent a2f40b
   else
Ian Kent a2f40b
     AC_MSG_RESULT(no)
Ian Kent a2f40b
diff --git a/configure b/configure
Ian Kent a2f40b
index c1423d8..08b7ccc 100755
Ian Kent a2f40b
--- a/configure
Ian Kent a2f40b
+++ b/configure
Ian Kent a2f40b
@@ -1,11 +1,9 @@
Ian Kent a2f40b
 #! /bin/sh
Ian Kent a2f40b
 # Guess values for system-dependent variables and create Makefiles.
Ian Kent a2f40b
-# Generated by GNU Autoconf 2.68.
Ian Kent a2f40b
+# Generated by GNU Autoconf 2.69.
Ian Kent a2f40b
 #
Ian Kent a2f40b
 #
Ian Kent a2f40b
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Ian Kent a2f40b
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
Ian Kent a2f40b
-# Foundation, Inc.
Ian Kent a2f40b
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Ian Kent a2f40b
 #
Ian Kent a2f40b
 #
Ian Kent a2f40b
 # This configure script is free software; the Free Software Foundation
Ian Kent a2f40b
@@ -134,6 +132,31 @@ export LANGUAGE
Ian Kent a2f40b
 # CDPATH.
Ian Kent a2f40b
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Ian Kent a2f40b
 
Ian Kent a2f40b
+# Use a proper internal environment variable to ensure we don't fall
Ian Kent a2f40b
+  # into an infinite loop, continuously re-executing ourselves.
Ian Kent a2f40b
+  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
Ian Kent a2f40b
+    _as_can_reexec=no; export _as_can_reexec;
Ian Kent a2f40b
+    # We cannot yet assume a decent shell, so we have to provide a
Ian Kent a2f40b
+# neutralization value for shells without unset; and this also
Ian Kent a2f40b
+# works around shells that cannot unset nonexistent variables.
Ian Kent a2f40b
+# Preserve -v and -x to the replacement shell.
Ian Kent a2f40b
+BASH_ENV=/dev/null
Ian Kent a2f40b
+ENV=/dev/null
Ian Kent a2f40b
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Ian Kent a2f40b
+case $- in # ((((
Ian Kent a2f40b
+  *v*x* | *x*v* ) as_opts=-vx ;;
Ian Kent a2f40b
+  *v* ) as_opts=-v ;;
Ian Kent a2f40b
+  *x* ) as_opts=-x ;;
Ian Kent a2f40b
+  * ) as_opts= ;;
Ian Kent a2f40b
+esac
Ian Kent a2f40b
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Ian Kent a2f40b
+# Admittedly, this is quite paranoid, since all the known shells bail
Ian Kent a2f40b
+# out after a failed `exec'.
Ian Kent a2f40b
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Ian Kent a2f40b
+as_fn_exit 255
Ian Kent a2f40b
+  fi
Ian Kent a2f40b
+  # We don't want this to propagate to other subprocesses.
Ian Kent a2f40b
+          { _as_can_reexec=; unset _as_can_reexec;}
Ian Kent a2f40b
 if test "x$CONFIG_SHELL" = x; then
Ian Kent a2f40b
   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Ian Kent a2f40b
   emulate sh
Ian Kent a2f40b
@@ -167,7 +190,8 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Ian Kent a2f40b
 else
Ian Kent a2f40b
   exitcode=1; echo positional parameters were not saved.
Ian Kent a2f40b
 fi
Ian Kent a2f40b
-test x\$exitcode = x0 || exit 1"
Ian Kent a2f40b
+test x\$exitcode = x0 || exit 1
Ian Kent a2f40b
+test -x / || exit 1"
Ian Kent a2f40b
   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Ian Kent a2f40b
   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Ian Kent a2f40b
   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Ian Kent a2f40b
@@ -212,21 +236,25 @@ IFS=$as_save_IFS
Ian Kent a2f40b
 
Ian Kent a2f40b
 
Ian Kent a2f40b
       if test "x$CONFIG_SHELL" != x; then :
Ian Kent a2f40b
-  # We cannot yet assume a decent shell, so we have to provide a
Ian Kent a2f40b
-	# neutralization value for shells without unset; and this also
Ian Kent a2f40b
-	# works around shells that cannot unset nonexistent variables.
Ian Kent a2f40b
-	# Preserve -v and -x to the replacement shell.
Ian Kent a2f40b
-	BASH_ENV=/dev/null
Ian Kent a2f40b
-	ENV=/dev/null
Ian Kent a2f40b
-	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Ian Kent a2f40b
-	export CONFIG_SHELL
Ian Kent a2f40b
-	case $- in # ((((
Ian Kent a2f40b
-	  *v*x* | *x*v* ) as_opts=-vx ;;
Ian Kent a2f40b
-	  *v* ) as_opts=-v ;;
Ian Kent a2f40b
-	  *x* ) as_opts=-x ;;
Ian Kent a2f40b
-	  * ) as_opts= ;;
Ian Kent a2f40b
-	esac
Ian Kent a2f40b
-	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Ian Kent a2f40b
+  export CONFIG_SHELL
Ian Kent a2f40b
+             # We cannot yet assume a decent shell, so we have to provide a
Ian Kent a2f40b
+# neutralization value for shells without unset; and this also
Ian Kent a2f40b
+# works around shells that cannot unset nonexistent variables.
Ian Kent a2f40b
+# Preserve -v and -x to the replacement shell.
Ian Kent a2f40b
+BASH_ENV=/dev/null
Ian Kent a2f40b
+ENV=/dev/null
Ian Kent a2f40b
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Ian Kent a2f40b
+case $- in # ((((
Ian Kent a2f40b
+  *v*x* | *x*v* ) as_opts=-vx ;;
Ian Kent a2f40b
+  *v* ) as_opts=-v ;;
Ian Kent a2f40b
+  *x* ) as_opts=-x ;;
Ian Kent a2f40b
+  * ) as_opts= ;;
Ian Kent a2f40b
+esac
Ian Kent a2f40b
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Ian Kent a2f40b
+# Admittedly, this is quite paranoid, since all the known shells bail
Ian Kent a2f40b
+# out after a failed `exec'.
Ian Kent a2f40b
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Ian Kent a2f40b
+exit 255
Ian Kent a2f40b
 fi
Ian Kent a2f40b
 
Ian Kent a2f40b
     if test x$as_have_required = xno; then :
Ian Kent a2f40b
@@ -328,6 +356,14 @@ $as_echo X"$as_dir" |
Ian Kent a2f40b
 
Ian Kent a2f40b
 
Ian Kent a2f40b
 } # as_fn_mkdir_p
Ian Kent a2f40b
+
Ian Kent a2f40b
+# as_fn_executable_p FILE
Ian Kent a2f40b
+# -----------------------
Ian Kent a2f40b
+# Test if FILE is an executable regular file.
Ian Kent a2f40b
+as_fn_executable_p ()
Ian Kent a2f40b
+{
Ian Kent a2f40b
+  test -f "$1" && test -x "$1"
Ian Kent a2f40b
+} # as_fn_executable_p
Ian Kent a2f40b
 # as_fn_append VAR VALUE
Ian Kent a2f40b
 # ----------------------
Ian Kent a2f40b
 # Append the text in VALUE to the end of the definition contained in VAR. Take
Ian Kent a2f40b
@@ -449,6 +485,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
Ian Kent a2f40b
   chmod +x "$as_me.lineno" ||
Ian Kent a2f40b
     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Ian Kent a2f40b
 
Ian Kent a2f40b
+  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
Ian Kent a2f40b
+  # already done that, so ensure we don't try to do so again and fall
Ian Kent a2f40b
+  # in an infinite loop.  This has already happened in practice.
Ian Kent a2f40b
+  _as_can_reexec=no; export _as_can_reexec
Ian Kent a2f40b
   # Don't try to exec as it changes $[0], causing all sort of problems
Ian Kent a2f40b
   # (the dirname of $[0] is not the place where we might find the
Ian Kent a2f40b
   # original and so on.  Autoconf is especially sensitive to this).
Ian Kent a2f40b
@@ -483,16 +523,16 @@ if (echo >conf$$.file) 2>/dev/null; then
Ian Kent a2f40b
     # ... but there are two gotchas:
Ian Kent a2f40b
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Ian Kent a2f40b
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Ian Kent a2f40b
-    # In both cases, we have to default to `cp -p'.
Ian Kent a2f40b
+    # In both cases, we have to default to `cp -pR'.
Ian Kent a2f40b
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ian Kent a2f40b
-      as_ln_s='cp -p'
Ian Kent a2f40b
+      as_ln_s='cp -pR'
Ian Kent a2f40b
   elif ln conf$$.file conf$$ 2>/dev/null; then
Ian Kent a2f40b
     as_ln_s=ln
Ian Kent a2f40b
   else
Ian Kent a2f40b
-    as_ln_s='cp -p'
Ian Kent a2f40b
+    as_ln_s='cp -pR'
Ian Kent a2f40b
   fi
Ian Kent a2f40b
 else
Ian Kent a2f40b
-  as_ln_s='cp -p'
Ian Kent a2f40b
+  as_ln_s='cp -pR'
Ian Kent a2f40b
 fi
Ian Kent a2f40b
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Ian Kent a2f40b
 rmdir conf$$.dir 2>/dev/null
Ian Kent a2f40b
@@ -504,28 +544,8 @@ else
Ian Kent a2f40b
   as_mkdir_p=false
Ian Kent a2f40b
 fi
Ian Kent a2f40b
 
Ian Kent a2f40b
-if test -x / >/dev/null 2>&1; then
Ian Kent a2f40b
-  as_test_x='test -x'
Ian Kent a2f40b
-else
Ian Kent a2f40b
-  if ls -dL / >/dev/null 2>&1; then
Ian Kent a2f40b
-    as_ls_L_option=L
Ian Kent a2f40b
-  else
Ian Kent a2f40b
-    as_ls_L_option=
Ian Kent a2f40b
-  fi
Ian Kent a2f40b
-  as_test_x='
Ian Kent a2f40b
-    eval sh -c '\''
Ian Kent a2f40b
-      if test -d "$1"; then
Ian Kent a2f40b
-	test -d "$1/.";
Ian Kent a2f40b
-      else
Ian Kent a2f40b
-	case $1 in #(
Ian Kent a2f40b
-	-*)set "./$1";;
Ian Kent a2f40b
-	esac;
Ian Kent a2f40b
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Ian Kent a2f40b
-	???[sx]*):;;*)false;;esac;fi
Ian Kent a2f40b
-    '\'' sh
Ian Kent a2f40b
-  '
Ian Kent a2f40b
-fi
Ian Kent a2f40b
-as_executable_p=$as_test_x
Ian Kent a2f40b
+as_test_x='test -x'
Ian Kent a2f40b
+as_executable_p=as_fn_executable_p
Ian Kent a2f40b
 
Ian Kent a2f40b
 # Sed expression to map a string onto a valid CPP name.
Ian Kent a2f40b
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Ian Kent a2f40b
@@ -715,6 +735,7 @@ with_fifodir
Ian Kent a2f40b
 with_flagdir
Ian Kent a2f40b
 with_libtirpc
Ian Kent a2f40b
 with_dmalloc
Ian Kent a2f40b
+enable_sloppy_mount
Ian Kent a2f40b
 with_hesiod
Ian Kent a2f40b
 with_openldap
Ian Kent a2f40b
 with_sasl
Ian Kent a2f40b
@@ -1187,8 +1208,6 @@ target=$target_alias
Ian Kent a2f40b
 if test "x$host_alias" != x; then
Ian Kent a2f40b
   if test "x$build_alias" = x; then
Ian Kent a2f40b
     cross_compiling=maybe
Ian Kent a2f40b
-    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
Ian Kent a2f40b
-    If a cross compiler is detected then cross compile mode will be used" >&2
Ian Kent a2f40b
   elif test "x$build_alias" != "x$host_alias"; then
Ian Kent a2f40b
     cross_compiling=yes
Ian Kent a2f40b
   fi
Ian Kent a2f40b
@@ -1341,6 +1360,7 @@ Optional Features:
Ian Kent a2f40b
   --disable-option-checking  ignore unrecognized --enable/--with options
Ian Kent a2f40b
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
Ian Kent a2f40b
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
Ian Kent a2f40b
+  --enable-sloppy-mount   enable the use of the -s option to mount
Ian Kent a2f40b
   --disable-ext-env	  disable search in environment for substitution variable
Ian Kent a2f40b
   --disable-mount-locking disable use of locking when spawning mount command
Ian Kent a2f40b
   --enable-force-shutdown enable USR1 signal to force unlink umount of any
Ian Kent a2f40b
@@ -1442,9 +1462,9 @@ test -n "$ac_init_help" && exit $ac_status
Ian Kent a2f40b
 if $ac_init_version; then
Ian Kent a2f40b
   cat <<\_ACEOF
Ian Kent a2f40b
 configure
Ian Kent a2f40b
-generated by GNU Autoconf 2.68
Ian Kent a2f40b
+generated by GNU Autoconf 2.69
Ian Kent a2f40b
 
Ian Kent a2f40b
-Copyright (C) 2010 Free Software Foundation, Inc.
Ian Kent a2f40b
+Copyright (C) 2012 Free Software Foundation, Inc.
Ian Kent a2f40b
 This configure script is free software; the Free Software Foundation
Ian Kent a2f40b
 gives unlimited permission to copy, distribute and modify it.
Ian Kent a2f40b
 _ACEOF
Ian Kent a2f40b
@@ -1520,7 +1540,7 @@ $as_echo "$ac_try_echo"; } >&5
Ian Kent a2f40b
 	 test ! -s conftest.err
Ian Kent a2f40b
        } && test -s conftest$ac_exeext && {
Ian Kent a2f40b
 	 test "$cross_compiling" = yes ||
Ian Kent a2f40b
-	 $as_test_x conftest$ac_exeext
Ian Kent a2f40b
+	 test -x conftest$ac_exeext
Ian Kent a2f40b
        }; then :
Ian Kent a2f40b
   ac_retval=0
Ian Kent a2f40b
 else
Ian Kent a2f40b
@@ -1740,7 +1760,7 @@ This file contains any messages produced by compilers while
Ian Kent a2f40b
 running configure, to aid debugging if configure makes a mistake.
Ian Kent a2f40b
 
Ian Kent a2f40b
 It was created by $as_me, which was
Ian Kent a2f40b
-generated by GNU Autoconf 2.68.  Invocation command line was
Ian Kent a2f40b
+generated by GNU Autoconf 2.69.  Invocation command line was
Ian Kent a2f40b
 
Ian Kent a2f40b
   $ $0 $@
Ian Kent a2f40b
 
Ian Kent a2f40b
@@ -2324,7 +2344,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_CC="${ac_tool_prefix}gcc"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -2364,7 +2384,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_ac_ct_CC="gcc"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -2417,7 +2437,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_CC="${ac_tool_prefix}cc"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -2458,7 +2478,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Ian Kent a2f40b
        ac_prog_rejected=yes
Ian Kent a2f40b
        continue
Ian Kent a2f40b
@@ -2516,7 +2536,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -2560,7 +2580,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_ac_ct_CC="$ac_prog"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3006,8 +3026,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ian Kent a2f40b
 /* end confdefs.h.  */
Ian Kent a2f40b
 #include <stdarg.h>
Ian Kent a2f40b
 #include <stdio.h>
Ian Kent a2f40b
-#include <sys/types.h>
Ian Kent a2f40b
-#include <sys/stat.h>
Ian Kent a2f40b
+struct stat;
Ian Kent a2f40b
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
Ian Kent a2f40b
 struct buf { int x; };
Ian Kent a2f40b
 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Ian Kent a2f40b
@@ -3209,7 +3228,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3269,7 +3288,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_MOUNT_NFS="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3329,7 +3348,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3389,7 +3408,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_E2FSCK="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3448,7 +3467,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_E3FSCK="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3507,7 +3526,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_E4FSCK="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3566,7 +3585,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3626,7 +3645,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_LEX="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3682,7 +3701,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_YACC="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3738,7 +3757,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3794,7 +3813,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3858,13 +3877,19 @@ fi
Ian Kent a2f40b
 # Newer mounts have the -s (sloppy) option to ignore unknown options,
Ian Kent a2f40b
 # good for portability
Ian Kent a2f40b
 #
Ian Kent a2f40b
-if test -n "$MOUNT" ; then
Ian Kent a2f40b
+# Check whether --enable-sloppy-mount was given.
Ian Kent a2f40b
+if test "${enable_sloppy_mount+set}" = set; then :
Ian Kent a2f40b
+  enableval=$enable_sloppy_mount;
Ian Kent a2f40b
+else
Ian Kent a2f40b
+  enable_sloppy_mount=auto
Ian Kent a2f40b
+fi
Ian Kent a2f40b
+
Ian Kent a2f40b
+if test x$enable_sloppy_mount = xauto; then
Ian Kent a2f40b
+	if test -n "$MOUNT" ; then
Ian Kent a2f40b
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mount accepts the -s option" >&5
Ian Kent a2f40b
 $as_echo_n "checking if mount accepts the -s option... " >&6; }
Ian Kent a2f40b
   if "$MOUNT" -s > /dev/null 2>&1 ; then
Ian Kent a2f40b
-
Ian Kent a2f40b
-$as_echo "#define HAVE_SLOPPY_MOUNT 1" >>confdefs.h
Ian Kent a2f40b
-
Ian Kent a2f40b
+    enable_sloppy_mount=yes
Ian Kent a2f40b
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ian Kent a2f40b
 $as_echo "yes" >&6; }
Ian Kent a2f40b
   else
Ian Kent a2f40b
@@ -3872,6 +3897,12 @@ $as_echo "yes" >&6; }
Ian Kent a2f40b
 $as_echo "no" >&6; }
Ian Kent a2f40b
   fi
Ian Kent a2f40b
 fi
Ian Kent a2f40b
+fi
Ian Kent a2f40b
+if test x$enable_sloppy_mount = xyes; then
Ian Kent a2f40b
+
Ian Kent a2f40b
+$as_echo "#define HAVE_SLOPPY_MOUNT 1" >>confdefs.h
Ian Kent a2f40b
+
Ian Kent a2f40b
+fi
Ian Kent a2f40b
 
Ian Kent a2f40b
 # LDAP SASL auth needs libxml and Kerberos
Ian Kent a2f40b
 for ac_prog in xml2-config
Ian Kent a2f40b
@@ -3894,7 +3925,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -3969,7 +4000,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -4387,7 +4418,7 @@ do
Ian Kent a2f40b
     for ac_prog in grep ggrep; do
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Ian Kent a2f40b
-      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Ian Kent a2f40b
+      as_fn_executable_p "$ac_path_GREP" || continue
Ian Kent a2f40b
 # Check for GNU ac_path_GREP and select it if it is found.
Ian Kent a2f40b
   # Check for GNU $ac_path_GREP
Ian Kent a2f40b
 case `"$ac_path_GREP" --version 2>&1` in
Ian Kent a2f40b
@@ -4453,7 +4484,7 @@ do
Ian Kent a2f40b
     for ac_prog in egrep; do
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Ian Kent a2f40b
-      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Ian Kent a2f40b
+      as_fn_executable_p "$ac_path_EGREP" || continue
Ian Kent a2f40b
 # Check for GNU ac_path_EGREP and select it if it is found.
Ian Kent a2f40b
   # Check for GNU $ac_path_EGREP
Ian Kent a2f40b
 case `"$ac_path_EGREP" --version 2>&1` in
Ian Kent a2f40b
@@ -4928,7 +4959,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_CC="${ac_tool_prefix}gcc"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -4968,7 +4999,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_ac_ct_CC="gcc"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -5021,7 +5052,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_CC="${ac_tool_prefix}cc"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -5062,7 +5093,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Ian Kent a2f40b
        ac_prog_rejected=yes
Ian Kent a2f40b
        continue
Ian Kent a2f40b
@@ -5120,7 +5151,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -5164,7 +5195,7 @@ do
Ian Kent a2f40b
   IFS=$as_save_IFS
Ian Kent a2f40b
   test -z "$as_dir" && as_dir=.
Ian Kent a2f40b
     for ac_exec_ext in '' $ac_executable_extensions; do
Ian Kent a2f40b
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Ian Kent a2f40b
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ian Kent a2f40b
     ac_cv_prog_ac_ct_CC="$ac_prog"
Ian Kent a2f40b
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Ian Kent a2f40b
     break 2
Ian Kent a2f40b
@@ -5360,8 +5391,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ian Kent a2f40b
 /* end confdefs.h.  */
Ian Kent a2f40b
 #include <stdarg.h>
Ian Kent a2f40b
 #include <stdio.h>
Ian Kent a2f40b
-#include <sys/types.h>
Ian Kent a2f40b
-#include <sys/stat.h>
Ian Kent a2f40b
+struct stat;
Ian Kent a2f40b
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
Ian Kent a2f40b
 struct buf { int x; };
Ian Kent a2f40b
 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Ian Kent a2f40b
@@ -5882,16 +5912,16 @@ if (echo >conf$$.file) 2>/dev/null; then
Ian Kent a2f40b
     # ... but there are two gotchas:
Ian Kent a2f40b
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Ian Kent a2f40b
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Ian Kent a2f40b
-    # In both cases, we have to default to `cp -p'.
Ian Kent a2f40b
+    # In both cases, we have to default to `cp -pR'.
Ian Kent a2f40b
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ian Kent a2f40b
-      as_ln_s='cp -p'
Ian Kent a2f40b
+      as_ln_s='cp -pR'
Ian Kent a2f40b
   elif ln conf$$.file conf$$ 2>/dev/null; then
Ian Kent a2f40b
     as_ln_s=ln
Ian Kent a2f40b
   else
Ian Kent a2f40b
-    as_ln_s='cp -p'
Ian Kent a2f40b
+    as_ln_s='cp -pR'
Ian Kent a2f40b
   fi
Ian Kent a2f40b
 else
Ian Kent a2f40b
-  as_ln_s='cp -p'
Ian Kent a2f40b
+  as_ln_s='cp -pR'
Ian Kent a2f40b
 fi
Ian Kent a2f40b
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Ian Kent a2f40b
 rmdir conf$$.dir 2>/dev/null
Ian Kent a2f40b
@@ -5951,28 +5981,16 @@ else
Ian Kent a2f40b
   as_mkdir_p=false
Ian Kent a2f40b
 fi
Ian Kent a2f40b
 
Ian Kent a2f40b
-if test -x / >/dev/null 2>&1; then
Ian Kent a2f40b
-  as_test_x='test -x'
Ian Kent a2f40b
-else
Ian Kent a2f40b
-  if ls -dL / >/dev/null 2>&1; then
Ian Kent a2f40b
-    as_ls_L_option=L
Ian Kent a2f40b
-  else
Ian Kent a2f40b
-    as_ls_L_option=
Ian Kent a2f40b
-  fi
Ian Kent a2f40b
-  as_test_x='
Ian Kent a2f40b
-    eval sh -c '\''
Ian Kent a2f40b
-      if test -d "$1"; then
Ian Kent a2f40b
-	test -d "$1/.";
Ian Kent a2f40b
-      else
Ian Kent a2f40b
-	case $1 in #(
Ian Kent a2f40b
-	-*)set "./$1";;
Ian Kent a2f40b
-	esac;
Ian Kent a2f40b
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Ian Kent a2f40b
-	???[sx]*):;;*)false;;esac;fi
Ian Kent a2f40b
-    '\'' sh
Ian Kent a2f40b
-  '
Ian Kent a2f40b
-fi
Ian Kent a2f40b
-as_executable_p=$as_test_x
Ian Kent a2f40b
+
Ian Kent a2f40b
+# as_fn_executable_p FILE
Ian Kent a2f40b
+# -----------------------
Ian Kent a2f40b
+# Test if FILE is an executable regular file.
Ian Kent a2f40b
+as_fn_executable_p ()
Ian Kent a2f40b
+{
Ian Kent a2f40b
+  test -f "$1" && test -x "$1"
Ian Kent a2f40b
+} # as_fn_executable_p
Ian Kent a2f40b
+as_test_x='test -x'
Ian Kent a2f40b
+as_executable_p=as_fn_executable_p
Ian Kent a2f40b
 
Ian Kent a2f40b
 # Sed expression to map a string onto a valid CPP name.
Ian Kent a2f40b
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Ian Kent a2f40b
@@ -5994,7 +6012,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Ian Kent a2f40b
 # values after options handling.
Ian Kent a2f40b
 ac_log="
Ian Kent a2f40b
 This file was extended by $as_me, which was
Ian Kent a2f40b
-generated by GNU Autoconf 2.68.  Invocation command line was
Ian Kent a2f40b
+generated by GNU Autoconf 2.69.  Invocation command line was
Ian Kent a2f40b
 
Ian Kent a2f40b
   CONFIG_FILES    = $CONFIG_FILES
Ian Kent a2f40b
   CONFIG_HEADERS  = $CONFIG_HEADERS
Ian Kent a2f40b
@@ -6056,10 +6074,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Ian Kent a2f40b
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Ian Kent a2f40b
 ac_cs_version="\\
Ian Kent a2f40b
 config.status
Ian Kent a2f40b
-configured by $0, generated by GNU Autoconf 2.68,
Ian Kent a2f40b
+configured by $0, generated by GNU Autoconf 2.69,
Ian Kent a2f40b
   with options \\"\$ac_cs_config\\"
Ian Kent a2f40b
 
Ian Kent a2f40b
-Copyright (C) 2010 Free Software Foundation, Inc.
Ian Kent a2f40b
+Copyright (C) 2012 Free Software Foundation, Inc.
Ian Kent a2f40b
 This config.status script is free software; the Free Software Foundation
Ian Kent a2f40b
 gives unlimited permission to copy, distribute and modify it."
Ian Kent a2f40b
 
Ian Kent a2f40b
@@ -6147,7 +6165,7 @@ fi
Ian Kent a2f40b
 _ACEOF
Ian Kent a2f40b
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Ian Kent a2f40b
 if \$ac_cs_recheck; then
Ian Kent a2f40b
-  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Ian Kent a2f40b
+  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Ian Kent a2f40b
   shift
Ian Kent a2f40b
   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Ian Kent a2f40b
   CONFIG_SHELL='$SHELL'
Ian Kent a2f40b
diff --git a/configure.in b/configure.in
Ian Kent a2f40b
index 4029375..559045a 100644
Ian Kent a2f40b
--- a/configure.in
Ian Kent a2f40b
+++ b/configure.in
Ian Kent a2f40b
@@ -157,7 +157,15 @@ AC_SUBST(sssldir)
Ian Kent a2f40b
 # Newer mounts have the -s (sloppy) option to ignore unknown options,
Ian Kent a2f40b
 # good for portability
Ian Kent a2f40b
 #
Ian Kent a2f40b
-AF_SLOPPY_MOUNT()
Ian Kent a2f40b
+AC_ARG_ENABLE(sloppy-mount,
Ian Kent a2f40b
+[  --enable-sloppy-mount   enable the use of the -s option to mount],,
Ian Kent a2f40b
+	enable_sloppy_mount=auto)
Ian Kent a2f40b
+if test x$enable_sloppy_mount = xauto; then
Ian Kent a2f40b
+	AF_SLOPPY_MOUNT()
Ian Kent a2f40b
+fi
Ian Kent a2f40b
+if test x$enable_sloppy_mount = xyes; then
Ian Kent a2f40b
+	AC_DEFINE(HAVE_SLOPPY_MOUNT, 1, [define if the mount command supports the -s option])
Ian Kent a2f40b
+fi
Ian Kent a2f40b
 
Ian Kent a2f40b
 # LDAP SASL auth needs libxml and Kerberos
Ian Kent a2f40b
 AF_CHECK_LIBXML()