X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_optimize.m4;h=65f9cdc80692be2464362195d5e71312ada77051;hb=55b5455291498ef63c1c34976552d58708a74732;hp=f38d9bb50708fa9be7304cc093b614a87f2cfe20;hpb=cb05d3311de7e7ca578bafb116f3c8a56b9f0aa8;p=awesomized%2Flibmemcached diff --git a/m4/pandora_optimize.m4 b/m4/pandora_optimize.m4 index f38d9bb5..65f9cdc8 100644 --- a/m4/pandora_optimize.m4 +++ b/m4/pandora_optimize.m4 @@ -6,7 +6,7 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([PANDORA_OPTIMIZE],[ dnl Build optimized or debug version ? dnl First check for gcc and g++ - AS_IF([test "$GCC" = "yes"],[ + AS_IF([test "$GCC" = "yes" -a "$INTELCC" = "no"],[ dnl The following is required for portable results of floating point dnl calculations on PowerPC. The same must also be done for IA-64, but @@ -30,6 +30,20 @@ AC_DEFUN([PANDORA_OPTIMIZE],[ OPTIMIZE_CFLAGS="-O3" OPTIMIZE_CXXFLAGS="-O3" ]) + AS_IF([test "$INTELCC" = "yes"],[ + dnl Once we can use a modern autoconf, we can replace the std=gnu99 here + dnl with using AC_CC_STD_C99 above + CC="${CC} -std=c99" + + AM_CPPFLAGS="-g ${AM_CPPFLAGS}" + + DEBUG_CFLAGS="-O0" + DEBUG_CXXFLAGS="-O0" + + OPTIMIZE_CFLAGS="-xHOST -O3 -no-prec-div -static" + OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}" + + ]) AS_IF([test "$SUNCC" = "yes"],[ dnl Once we can use a modern autoconf, we can replace the -xc99=all here dnl with using AC_CC_STD_C99 above @@ -37,7 +51,7 @@ AC_DEFUN([PANDORA_OPTIMIZE],[ CXX="${CXX} -xlang=c99" AM_CFLAGS="-g -mt -xstrconst -Xa ${AM_CFLAGS}" - AM_CXXFLAGS="-mt -compat=5 -library=stlport4 -template=no%extdef ${AM_CXXFLAGS}" + AM_CXXFLAGS="-mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${AM_CXXFLAGS}" DEBUG_CXXFLAGS="-g"