X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_canonical.m4;h=4740e1a4954e320eddf1ca6c9279c3ea928ab957;hb=93a5a39800fce1f1ee70edf0968f6a5407682ad2;hp=0542e3d3ce6b43d6ed0e0250d5771524f54161c2;hpb=1b4bde6cb8743004cfc31fb9328b7c09ff982746;p=awesomized%2Flibmemcached diff --git a/m4/pandora_canonical.m4 b/m4/pandora_canonical.m4 index 0542e3d3..4740e1a4 100644 --- a/m4/pandora_canonical.m4 +++ b/m4/pandora_canonical.m4 @@ -4,13 +4,23 @@ dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Which version of the canonical setup we're using -AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.86]) +AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.95]) AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[ + AC_ARG_ENABLE([fat-binaries], + [AS_HELP_STRING([--enable-fat-binaries], + [Enable fat binary support on OSX @<:@default=off@:>@])], + [ac_enable_fat_binaries="$enableval"], + [ac_enable_fat_binaries="no"]) + dnl Force dependency tracking on for Sun Studio builds AS_IF([test "x${enable_dependency_tracking}" = "x"],[ enable_dependency_tracking=yes ]) + dnl If we're building OSX Fat Binaries, we have to turn off -M options + AS_IF([test "x${ac_enable_fat_binaries}" = "xyes"],[ + enable_dependency_tracking=no + ]) ]) dnl The standard setup for how we build Pandora projects @@ -195,7 +205,7 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ dnl We need to inject error into the cflags to test if visibility works or not save_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} -Werror" - gl_VISIBILITY + PANDORA_VISIBILITY CFLAGS="${save_CFLAGS}" ]) @@ -232,5 +242,6 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ AC_SUBST([AM_CFLAGS]) AC_SUBST([AM_CXXFLAGS]) AC_SUBST([AM_CPPFLAGS]) + AC_SUBST([AM_LDFLAGS]) ])