summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-11-17 02:09:52 +0000
committerJim Meyering <jim@meyering.net>1998-11-17 02:09:52 +0000
commitd60ac7e850ea2d6843bf75ba9bb03f0f1db09891 (patch)
tree4139ca3bd409d5bf6745534b5da39ba23aa13236 /m4
parent4c15e09a2c0709a46e79bd9ed9b0760cbd6223d6 (diff)
downloadcoreutils-d60ac7e850ea2d6843bf75ba9bb03f0f1db09891.tar.xz
(AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
Diffstat (limited to 'm4')
-rw-r--r--m4/lfs.m415
1 files changed, 14 insertions, 1 deletions
diff --git a/m4/lfs.m4 b/m4/lfs.m4
index 8de343b25..393f6e227 100644
--- a/m4/lfs.m4
+++ b/m4/lfs.m4
@@ -1,4 +1,4 @@
-#serial 1
+#serial 2
dnl The problem is that the default compilation flags in Solaris 2.6 won't
dnl let programs access large files; you need to tell the compiler that
@@ -28,6 +28,19 @@ AC_DEFUN(AC_LFS,
ac_getconfs=$ac_getconfs$ac_getconf
eval ac_test_$ac_shellvar=\$ac_getconf
done
+ case "$ac_result" in
+ no)
+ case `(uname -s -r) 2>/dev/null` in
+ HP-UX' '?.10.[[2-9]][[0-9]]* | HP-UX' '?.1[[1-9]]* | HP-UX' '?.[[2-9]][[0-9]]*)
+ # HP-UX 10.20 and later support large files,
+ # but do not support `getconf LFS_CFLAGS'.
+ ac_test_CPPFLAGS='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
+ ac_test_LDFLAGS=
+ ac_test_LIBS=
+ ac_getconfs=nonempty
+ ac_result=yes ;;
+ esac ;;
+ esac
case "$ac_result$ac_getconfs" in
yes) ac_result=no ;;
esac