]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_SYS_LARGEFILE: port better to Mac OS X 10.5.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Jan 2013 17:27:15 +0000 (09:27 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Jan 2013 17:27:37 +0000 (09:27 -0800)
* lib/autoconf/specific.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
with ino_t size being different for configuration time versus
build/run time.  Problem reported by PHO in
<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.

lib/autoconf/specific.m4

index bbfa24a9ed16bc0e150b644a5a410fdbc4cc4d90..0d173f20661c0dbaa94571e61dbea6f2e8cbc007 100644 (file)
@@ -168,11 +168,8 @@ if test "$enable_largefile" != no; then
       [_AC_SYS_LARGEFILE_TEST_INCLUDES])
   fi
 
-  AH_VERBATIM([_DARWIN_USE_64_BIT_INODE],
-[/* Enable large inode numbers on Mac OS X 10.5.  */
-#ifndef _DARWIN_USE_64_BIT_INODE
-# define _DARWIN_USE_64_BIT_INODE 1
-#endif])
+  AC_DEFINE([_DARWIN_USE_64_BIT_INODE], [1],
+    [Enable large inode numbers on Mac OS X 10.5.])
 fi
 ])# AC_SYS_LARGEFILE