X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_platform.m4;h=aaec77def23772631aefc01ad6be2c460664d12d;hb=41e27ada59b0327b744272d77ed56ab8f884f271;hp=678b51ea029e2b6dd62a9d12bd420fe37744d298;hpb=b36773d850fdf14ef7da0aa2977f4bcfd233bafd;p=m6w6%2Flibmemcached diff --git a/m4/pandora_platform.m4 b/m4/pandora_platform.m4 index 678b51ea..aaec77de 100644 --- a/m4/pandora_platform.m4 +++ b/m4/pandora_platform.m4 @@ -34,6 +34,8 @@ AC_DEFUN([PANDORA_PLATFORM],[ ;; esac + PANDORA_OPTIMIZE_BITFIELD=1 + case "$target_os" in *linux*) TARGET_LINUX="true" @@ -47,6 +49,7 @@ AC_DEFUN([PANDORA_PLATFORM],[ ;; *solaris*) TARGET_SOLARIS="true" + PANDORA_OPTIMIZE_BITFIELD=0 AC_SUBST(TARGET_SOLARIS) AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris]) ;; @@ -60,6 +63,8 @@ AC_DEFUN([PANDORA_PLATFORM],[ ;; esac + AC_SUBST(PANDORA_OPTIMIZE_BITFIELD) + AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) AC_CHECK_DECL([__ICC], [INTELCC="yes"], [INTELCC="no"]) @@ -74,4 +79,12 @@ AC_DEFUN([PANDORA_PLATFORM],[ [Cause Sun Studio to not be quite so strict with standards conflicts]) ]) + AS_IF([test "x$TARGET_OSX" = "xtrue"],[ + AS_IF([test "x$ac_enable_fat_binaries" = "xyes"],[ + AM_CFLAGS="-arch i386 -arch x86_64 -arch ppc" + AM_CXXFLAGS="-arch i386 -arch x86_64 -arch ppc" + AM_LDFLAGS="-arch i386 -arch x86_64 -arch ppc" + ]) + ]) + ])