summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAlain Magloire <alainm@rcsm.ee.mcgill.ca>1999-10-01 16:44:13 +0000
committerAlain Magloire <alainm@rcsm.ee.mcgill.ca>1999-10-01 16:44:13 +0000
commit6381e78b88522d6053c3da06e5c6a1354f94cf4c (patch)
tree153ffdf8f1b7554f300e2c12824b5442cd34cb25 /m4
parent810260a44aa1bacce90dd2f734b0b1bbbac60c36 (diff)
downloadgrep-6381e78b88522d6053c3da06e5c6a1354f94cf4c.tar.gz
changes form Paul.
Diffstat (limited to 'm4')
-rw-r--r--m4/largefile.m414
1 files changed, 12 insertions, 2 deletions
diff --git a/m4/largefile.m4 b/m4/largefile.m4
index 8f7d525a..c345a3f4 100644
--- a/m4/largefile.m4
+++ b/m4/largefile.m4
@@ -1,4 +1,4 @@
-#serial 4
+#serial 6
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.
@@ -16,6 +16,14 @@ AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
ac_cv_sys_largefile_$1=no
ifelse($1, CFLAGS,
[case "$host_os" in
+ # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
+changequote(, )dnl
+ hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
+changequote([, ])dnl
+ if test "$GCC" = yes; then
+ ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
+ fi
+ ;;
# IRIX 6.2 and later require cc -n32.
changequote(, )dnl
irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
@@ -23,11 +31,13 @@ changequote([, ])dnl
if test "$GCC" != yes; then
ac_cv_sys_largefile_CFLAGS=-n32
fi
+ esac
+ if test "$ac_cv_sys_largefile_CFLAGS" != no; then
ac_save_CC="$CC"
CC="$CC $ac_cv_sys_largefile_CFLAGS"
AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no)
CC="$ac_save_CC"
- esac])
+ fi])
}])])
dnl Internal subroutine of AC_SYS_LARGEFILE.