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
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>
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
{
$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
: