Jim Meyering <[EMAIL PROTECTED]> writes:
> Now we just need to fix the autoconf check
> not to define HAVE_FSEEKO, but that's where I stopped.
> I have a hard time getting motivated for such crufty old systems.
No sense of history? Not even nostalgia? :-)
I installed this into Autoconf in an attempt to fix that. I've always
wanted an excuse to do an if-then-else with a macro name....
2006-10-24 Paul Eggert <[EMAIL PROTECTED]>
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
reported by Nelson H. F. Beebe for Coreutils 6.4.
--- lib/autoconf/specific.m4 11 Oct 2006 22:38:43 -0000 1.372
+++ lib/autoconf/specific.m4 24 Oct 2006 19:25:05 -0000
@@ -130,11 +130,13 @@ m4_define([_AC_SYS_LARGEFILE_TEST_INCLUD
m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
[AC_CACHE_CHECK([for $1 value needed for large files], [$3],
[while :; do
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$5], [$6])],
- [$3=no; break])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([EMAIL PROTECTED]:@define $1 $2
+ m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
+ [AC_LANG_PROGRAM([$5], [$6])],
+ [$3=no; break])
+ m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
+ [AC_LANG_PROGRAM([EMAIL PROTECTED]:@define $1 $2
$5], [$6])],
- [$3=$2; break])
+ [$3=$2; break])
$3=unknown
break
done])