From: Monty Taylor Date: Sat, 11 Jul 2009 01:50:57 +0000 (-0700) Subject: pandora-build v0.10 X-Git-Tag: 0.32~14^2~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ee27e4df8f59b112a4d3ac79957dd1186b74b1ce;p=m6w6%2Flibmemcached pandora-build v0.10 --- diff --git a/m4/pandora_64bit.m4 b/m4/pandora_64bit.m4 index 06cc2b70..44ec4c00 100644 --- a/m4/pandora_64bit.m4 +++ b/m4/pandora_64bit.m4 @@ -8,34 +8,45 @@ dnl Macro: PANDORA_64BIT dnl --------------------------------------------------------------------------- AC_DEFUN([PANDORA_64BIT],[ + AC_ARG_ENABLE([64bit],[ + AS_HELP_STRING([--disable-64bit], + [Build 64 bit binary @<:@default=on@:>@])], + [ac_enable_64bit="$enableval"], + [ac_enable_64bit="yes"]) + AC_CHECK_PROGS(ISAINFO, [isainfo], [no]) AS_IF([test "x$ISAINFO" != "xno"], [isainfo_b=`${ISAINFO} -b`], [isainfo_b="x"]) - AS_IF([test "$isainfo_b" != "x"], - [AC_ARG_ENABLE([64bit], - [AS_HELP_STRING([--disable-64bit], - [Build 64 bit binary @<:@default=on@:>@])], - [ac_enable_64bit="$enableval"], - [ac_enable_64bit="yes"])]) - - AS_IF([test "x$ac_enable_64bit" = "xyes"],[ - if test "x$libdir" = "x\${exec_prefix}/lib" ; then - # The user hasn't overridden the default libdir, so we'll - # the dir suffix to match solaris 32/64-bit policy - isainfo_k=`${ISAINFO} -k` - libdir="${libdir}/${isainfo_k}" - fi - CPPFLAGS="-m64 ${CPPFLAGS}" - LDFLAGS="-m64 ${LDFLAGS}" - DTRACEFLAGS="${DTRACEFLAGS} -64" - if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" - then - AM_CFLAGS="-xmemalign=8s ${AM_CFLAGS}" - AM_CXXFLAGS="-xmemalign=8s ${AM_CXXFLAGS}" - fi - ],[DTRACEFLAGS="${DTRACEFLAGS} -32"]) + AS_IF([test "$isainfo_b" != "x"],[ + + isainfo_k=`${ISAINFO} -k` + DTRACEFLAGS="${DTRACEFLAGS} -${isainfo_k}" + + AS_IF([test "x${ac_cv_env_CPPFLAGS_set}" = "x"],[ + CPPFLAGS="-I/usr/local ${CPPFLAGS}" + ]) + + AS_IF([test "x${ac_cv_env_LDFLAGS_set}" = "x"],[ + LDFLAGS="-L/usr/local/lib/${isainfo_k} ${LDFLAGS}" + ]) + + AS_IF([test "x$ac_enable_64bit" = "xyes"],[ + AS_IF([test "x$libdir" = "x\${exec_prefix}/lib"],[ + dnl The user hasn't overridden the default libdir, so we'll + dnl the dir suffix to match solaris 32/64-bit policy + libdir="${libdir}/${isainfo_k}" + ]) + + CPPFLAGS="-m64 ${CPPFLAGS}" + LDFLAGS="-m64 ${LDFLAGS}" + AS_IF([test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes"],[ + AM_CFLAGS="-xmemalign=8s ${AM_CFLAGS}" + AM_CXXFLAGS="-xmemalign=8s ${AM_CXXFLAGS}" + ]) + ]) + ]) ]) dnl --------------------------------------------------------------------------- dnl End Macro: PANDORA_64BIT diff --git a/m4/pandora_canonical.m4 b/m4/pandora_canonical.m4 index 2b13fe47..dae56374 100644 --- a/m4/pandora_canonical.m4 +++ b/m4/pandora_canonical.m4 @@ -4,7 +4,7 @@ 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.9]) +AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.10]) AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[ dnl Force dependency tracking on for Sun Studio builds