Mercurial > hg > octave-lyh > gnulib-hg
changeset 2018:a5ddb5f5473f
(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.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 19 Nov 1999 11:49:44 +0000 |
parents | bd0fd5b7d30b |
children | 57654aea9a6e |
files | m4/largefile.m4 |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ 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)