[svn] GnuPG - r4072 - trunk
svn author dshaw
cvs at cvs.gnupg.org
Mon Mar 20 17:13:53 CET 2006
Author: dshaw
Date: 2006-03-20 17:13:52 +0100 (Mon, 20 Mar 2006)
New Revision: 4072
Modified:
trunk/ChangeLog
trunk/configure.ac
Log:
* configure.ac: Improved --disable-endian-check that doesn't involve
changing #ifdefs in the rest of the code.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-03-20 00:57:33 UTC (rev 4071)
+++ trunk/ChangeLog 2006-03-20 16:13:52 UTC (rev 4072)
@@ -1,3 +1,8 @@
+2006-03-20 David Shaw <dshaw at jabberwocky.com>
+
+ * configure.ac: Improved --disable-endian-check that doesn't
+ involve changing #ifdefs in the rest of the code.
+
2006-03-19 David Shaw <dshaw at jabberwocky.com>
* configure.ac: Add --disable-endian-check for building fat
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2006-03-20 00:57:33 UTC (rev 4071)
+++ trunk/configure.ac 2006-03-20 16:13:52 UTC (rev 4072)
@@ -405,6 +405,18 @@
])
AH_BOTTOM([
+/* We didn't define endianness above, so get it from OS macros. This
+is intended for making fat binary builds on OS X. */
+#if !defined(BIG_ENDIAN_HOST) && !defined(LITTLE_ENDIAN_HOST)
+#if defined(__BIG_ENDIAN__)
+#define BIG_ENDIAN_HOST 1
+#elif defined(__LITTLE_ENDIAN__)
+#define LITTLE_ENDIAN_HOST 1
+#else
+#error "No endianness found"
+#endif
+#endif
+
#if !(defined(HAVE_FORK) && defined(HAVE_PIPE) && defined(HAVE_WAITPID))
#define EXEC_TEMPFILE_ONLY
#endif
@@ -824,15 +836,11 @@
AC_DECL_SYS_SIGLIST
AC_ARG_ENABLE(endian-check,
- AC_HELP_STRING([--disable-endian-check],[disable the endian check and trust the OS provided macros]),
+ AC_HELP_STRING([--disable-endian-check],
+ [disable the endian check and trust the OS provided macros]),
endiancheck=$enableval,endiancheck=yes)
-if test x"$endiancheck" = xno ; then
- # don't do an endian check so we can build universal ("fat")
- # binaries on OS X.
- AC_DEFINE_UNQUOTED(LITTLE_ENDIAN_HOST,__LITTLE_ENDIAN__)
- AC_DEFINE_UNQUOTED(BIG_ENDIAN_HOST,__BIG_ENDIAN__)
-else
+if test x"$endiancheck" = xyes ; then
GNUPG_CHECK_ENDIAN
fi
More information about the Gnupg-commits
mailing list