diff options
author | Bruno Haible <bruno@clisp.org> | 2010-07-20 01:06:56 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-08-26 22:57:54 +0200 |
commit | 64865499c9cf8748356a0857a8481d74b394bd79 (patch) | |
tree | 4a05b4eb597b3f1042c085e4eb202f3736f1e088 /m4/fopen.m4 | |
parent | ec062d7a2671739dd977ebde3965fc93f8678a2e (diff) | |
download | gnulib-64865499c9cf8748356a0857a8481d74b394bd79.tar.gz |
Modernize AC_TRY_RUN invocations.
Diffstat (limited to 'm4/fopen.m4')
-rw-r--r-- | m4/fopen.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/fopen.m4 b/m4/fopen.m4 index 757d4a1558..11e0f9a946 100644 --- a/m4/fopen.m4 +++ b/m4/fopen.m4 @@ -21,13 +21,16 @@ AC_DEFUN([gl_FUNC_FOPEN], AC_CACHE_CHECK([whether fopen recognizes a trailing slash], [gl_cv_func_fopen_slash], [ - AC_TRY_RUN([ + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ #include <stddef.h> #include <stdio.h> int main () { return fopen ("conftest.sl/", "w") != NULL; -}], [gl_cv_func_fopen_slash=yes], [gl_cv_func_fopen_slash=no], +}]])], + [gl_cv_func_fopen_slash=yes], + [gl_cv_func_fopen_slash=no], [ changequote(,)dnl case "$host_os" in |