trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r835138 - /incubator/trafficserver/traffic/trunk/configure.ac
Date Wed, 11 Nov 2009 23:09:53 GMT
Author: bcall
Date: Wed Nov 11 23:09:53 2009
New Revision: 835138

URL: http://svn.apache.org/viewvc?rev=835138&view=rev
Log:
TS-13 problem with AS_CASE not supported in autoconf 2.59 on RHEL4
using the expanded marco in its place

Modified:
    incubator/trafficserver/traffic/trunk/configure.ac

Modified: incubator/trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/configure.ac?rev=835138&r1=835137&r2=835138&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/configure.ac (original)
+++ incubator/trafficserver/traffic/trunk/configure.ac Wed Nov 11 23:09:53 2009
@@ -290,12 +290,17 @@
 
 AC_CHECK_SIZEOF(int *) # test for 64-bit pointers, this permits CFLAGS=-m32 for 32-bit compiles
on 64-bit systems
 
+# add a default march if there is not one set
 if test "${ac_cv_sizeof_int_p}" = "4"; then
-    AS_CASE($CFLAGS, *\-march=*, , CFLAGS="$CFLAGS -march=i586")
-    AS_CASE($CXXFLAGS, *\-march=*, , CXXFLAGS="$CXXFLAGS -march=i586")
-else
-    CFLAGS="$CFLAGS"
-    CXXFLAGS="$CXXFLAGS"
+    case $CFLAGS in
+  *\-march=*) : ;;
+  *) CFLAGS="$CFLAGS -march=i586" ;;
+esac
+
+    case $CXXFLAGS in
+  *\-march=*) : ;;
+  *) CXXFLAGS="$CXXFLAGS -march=i586" ;;
+esac
 fi
 
 AC_CACHE_CHECK([for gcc atomic builtins],[support_cv_atomic],



Mime
View raw message