summaryrefslogtreecommitdiff
path: root/libraries/base/aclocal.m4
diff options
context:
space:
mode:
authorpanne <unknown>2004-09-22 08:37:01 +0000
committerpanne <unknown>2004-09-22 08:37:01 +0000
commit0b31efaa295de9e833ee62c5ff63b052272e4972 (patch)
tree4560a50ab147f63e02f7295ba8e6166f45984443 /libraries/base/aclocal.m4
parenta8ab7a351402400082c6c9065695250dc21d1f0c (diff)
downloadhaskell-0b31efaa295de9e833ee62c5ff63b052272e4972.tar.gz
[project @ 2004-09-22 08:37:01 by panne]
* Replace obsolete macro AC_TRY_RUN with AC_RUN_IFELSE * Same for AC_TRY_LINK and AC_LINK_IFELSE * Minor cleanup
Diffstat (limited to 'libraries/base/aclocal.m4')
-rw-r--r--libraries/base/aclocal.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/base/aclocal.m4 b/libraries/base/aclocal.m4
index d3385683c9..cfc901b2bb 100644
--- a/libraries/base/aclocal.m4
+++ b/libraries/base/aclocal.m4
@@ -8,7 +8,7 @@ dnl
dnl
AC_DEFUN(FP_READDIR_EOF_ERRNO,
[AC_CACHE_CHECK([what readdir sets errno to upon EOF], fptools_cv_readdir_eof_errno,
-[AC_TRY_RUN([#include <dirent.h>
+[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <dirent.h>
#include <stdio.h>
#include <errno.h>
int
@@ -51,7 +51,7 @@ char **argv;
closedir(dp);
rmdir("testdir");
return 0;
-}],fptools_cv_readdir_eof_errno=`cat conftestval`, fptools_cv_readdir_eof_errno=bogus, fptools_cv_readdir_eof_errno=0)])
+}]])],[fptools_cv_readdir_eof_errno=`cat conftestval`],[fptools_cv_readdir_eof_errno=bogus],[fptools_cv_readdir_eof_errno=0])])
dnl the cross value is somewhat bogus.
AC_DEFINE_UNQUOTED([READDIR_ERRNO_EOF], [$fptools_cv_readdir_eof_errno], [readdir() sets errno to this upon EOF])
])
@@ -67,7 +67,7 @@ dnl
dnl
AC_DEFUN(FP_DIRENT_FLAT_LAYOUT,
[AC_CACHE_CHECK([if struct dirent layout is flat], fptools_cv_dirent_flat_layout,
-[AC_TRY_RUN([#include <dirent.h>
+[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <dirent.h>
#include <stdio.h>
#include <string.h>
int
@@ -86,7 +86,7 @@ char **argv;
*/
memset(&de,0,sizeof(struct dirent));
return ((int)de.d_name == 0);
-}],fptools_cv_dirent_flat_layout=yes, fptools_cv_dirent_flat_layout=no, fptools_cv_dirent_flat_layout=yes)])
+}]])],[fptools_cv_dirent_flat_layout=yes],[fptools_cv_dirent_flat_layout=no],[fptools_cv_dirent_flat_layout=yes])])
dnl the cross value is somewhat bogus.
if test "$fptools_cv_dirent_flat_layout" = yes; then
AC_DEFINE([STRUCT_DIRENT_FLAT_LAYOUT], [1], [Define to 1 if struct dirent is a flat structure])