]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(gl_AFS): Use AC_ARG_WITH instead of ancient, hard-coded
authorJim Meyering <jim@meyering.net>
Fri, 25 Jun 2004 21:10:55 +0000 (21:10 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 25 Jun 2004 21:10:55 +0000 (21:10 +0000)
AC_MSG_CHECKING/AC_MSG_RESULT etc.  From Tim Waugh.

m4/afs.m4

index fa568ba93abc2e5cc2c351cc88d108fc208939db..05e4a5b29a1a442680abff69c23e08e3a6471a67 100644 (file)
--- a/m4/afs.m4
+++ b/m4/afs.m4
@@ -1,13 +1,12 @@
-#serial 6
+#serial 7
 
 AC_DEFUN([gl_AFS],
   [
-    AC_MSG_CHECKING(for AFS)
-    if test -d /afs; then
+    AC_ARG_WITH(afs,
+                AC_HELP_STRING([--with-afs],
+                               [support for the Andrew File System [[default=no]]]),
+    test "$withval" = no || with_afs=yes, with_afs=no)
+    if test "$with_afs" = yes; then
       AC_DEFINE(AFS, 1, [Define if you have the Andrew File System.])
-      ac_result=yes
-    else
-      ac_result=no
     fi
-    AC_MSG_RESULT($ac_result)
   ])