From cfe7b86608899a807e25410a6eff9ab9c9ba5cca Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 19 Nov 1999 11:49:44 +0000 Subject: [PATCH] (AC_SYS_LARGEFILE_FLAGS): Work around a problem with the QNX 4.25 shell, which doesn't propagate exit status of failed commands inside shell assignments. --- m4/largefile.m4 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/m4/largefile.m4 b/m4/largefile.m4 index c345a3f..b24c064 100644 --- a/m4/largefile.m4 +++ b/m4/largefile.m4 @@ -1,4 +1,4 @@ -#serial 6 +#serial 7 dnl By default, many hosts won't let programs access large files; dnl one must use special compiler options to get large-file access to work. @@ -12,7 +12,10 @@ dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, [AC_CACHE_CHECK([for $1 value to request large file support], ac_cv_sys_largefile_$1, - [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { + [if ($GETCONF LFS_$1) >conftest.1 2>conftest.2 && test ! -s conftest.2 + then + ac_cv_sys_largefile_$1=`cat conftest.1` + else ac_cv_sys_largefile_$1=no ifelse($1, CFLAGS, [case "$host_os" in @@ -38,7 +41,8 @@ changequote([, ])dnl AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) CC="$ac_save_CC" fi]) - }])]) + fi + rm -f conftest*])]) dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) -- 2.7.4