* m4/macros/check_mnttab_type.m4: move the test for MOUNT_* to the
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 8 Oct 2005 02:58:01 +0000 (02:58 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 8 Oct 2005 02:58:01 +0000 (02:58 +0000)
very end, after the test using getvfsbyname().

* m4/macros/expand_run_string.m4: if the string value returned is
empty, consider it invalid.

ChangeLog
m4/macros/check_mnttab_type.m4
m4/macros/expand_run_string.m4

index 3a3b31b6e04601e7faab4877b6e1357720b21131..196d5011ca5ffb3072596b3fdb10dd22223322ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-10-07  Erez Zadok  <ezk@cs.sunysb.edu>
 
+       * m4/macros/check_mnttab_type.m4: move the test for MOUNT_* to the
+       very end, after the test using getvfsbyname().
+
+       * m4/macros/expand_run_string.m4: if the string value returned is
+       empty, consider it invalid.
+
        * m4/macros/check_varargs_macros.m4: rewrite macro so it'll
        try and compile the varargs test, not just cpp it.  Some systems
        pass the old cpp test, but not when you actually try to compile
index 5b6b4896d6569de46d77a6f53c0e9216d99a2b9b..61e1c01b99a3db6cdd2f345ca58937f88e2af620 100644 (file)
@@ -115,23 +115,7 @@ do
     break
   fi
 
-  # then try to run a program that derefences a static array (bsd44)
-  AMU_EXPAND_RUN_STRING(
-  AMU_MOUNT_HEADERS(
-  [
-  ]),
-  [
-  if (argc > 1)
-    printf("\"%s\"", MOUNT_$ac_upcase_fs_symbol);
-  ], [ eval "ac_cv_mnttab_type_$ac_fs_name=\\\"$value\\\""
-  ])
-  # check if need to terminate "for" loop
-  if test "`eval echo '$''{ac_cv_mnttab_type_'$ac_fs_name'}'`" != notfound
-  then
-    break
-  fi
-
-  # finally run a test program for bsdi3
+  # then run a test program for bsdi3, tru64, and others
   AC_TRY_RUN(
   [
 #include <sys/param.h>
@@ -150,6 +134,27 @@ main()
       break
      ]
   )
+  # check if need to terminate "for" loop
+  if test "`eval echo '$''{ac_cv_mnttab_type_'$ac_fs_name'}'`" != notfound
+  then
+    break
+  fi
+
+  # finally try to run a program that derefences a static array (bsd44)
+  AMU_EXPAND_RUN_STRING(
+  AMU_MOUNT_HEADERS(
+  [
+  ]),
+  [
+  if (argc > 1)
+    printf("\"%s\"", MOUNT_$ac_upcase_fs_symbol);
+  ], [ eval "ac_cv_mnttab_type_$ac_fs_name=\\\"$value\\\""
+  ])
+  # check if need to terminate "for" loop
+  if test "`eval echo '$''{ac_cv_mnttab_type_'$ac_fs_name'}'`" != notfound
+  then
+    break
+  fi
 
 done
 
index 70cecc703c70d93fa58a3735a42d9778a9b42d96..2cb964e11f917d470d8f8f2f4b4a95e7a08be4f8 100644 (file)
@@ -12,7 +12,11 @@ int argc;
 {
 $2
 exit(0);
-}], value=`./conftest dummy 2>>config.log`, value="notfound", value="notfound")
+}],
+[
+value=`./conftest dummy 2>>config.log`
+test -z "$value" && value="notfound"
+], value="notfound", value="notfound")
 if test "$value" = notfound
 then
   :