summaryrefslogtreecommitdiff
blob: 10ac6c4f06ea4a731dad065e4581c95dc2720115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
diff -Naur wmpower-0.3.0_/configure.in wmpower-0.3.0/configure.in
--- configure.in	2003-11-01 20:55:31.455096920 +0100
+++ /configure.in	2003-11-01 20:56:08.514463040 +0100
@@ -8,66 +8,7 @@
 AC_PROG_CC
 AC_PROG_RANLIB
 
-# Set my own flags for gcc
-if test "x$GCC" = "xyes"; then
-	CPULAGS=""
-	CFLAGS="-O3 -fomit-frame-pointer -pipe -W -Wall"
-	GCC_TEST_MESSAGE="Checking for gcc version"
-	AC_MSG_CHECKING([$GCC_TEST_MESSAGE])
-	GCCVERSION="`$CC -dumpversion`"
-	AC_MSG_RESULT([$GCCVERSION])
-	if test "`$CC -dumpversion | grep 3.`" != ""; then
-		#Good! let see if we can see the system arch
-		PROCESSOR=`cat /proc/cpuinfo`
-		#Is our CPU a Celeron?
-	  if test "`echo $PROCESSOR | grep \"Celeron\"`" != ""; then
-		  CPUFLAGS="-march=pentium2"
-		fi
-		if test "`echo $PROCESSOR | grep \"Celeron (Coppermine)\"`" != ""; then
-	 		CPUFLAGS="-march=pentium3"
-		fi
-		#Is our CPU a Pentium?
-		if test "`echo $PROCESSOR | grep \"Pentium\"`" != ""; then
-			CPUFLAGS="-march=pentium"
-		fi
-		#Is our CPU a Pentium II?
-		if test "`echo $PROCESSOR | grep \"Pentium II\"`" != ""; then
-			CPUFLAGS="-march=pentium2"
-		fi
-		#Is our CPU a Pentium III?
-		if test "`echo $PROCESSOR | grep \"Pentium III\"`" != ""; then
-			CPUFLAGS="-march=pentium3"
-		fi
-		#Is our CPU a Pentium 4?
-		if test "`echo $PROCESSOR | grep \"Intel(R) Pentium(R) 4\"`" != ""; then
-			CPUFLAGS="-march=pentium4"
-		fi
-		#Athlon processors
-		if test "`echo $PROCESSOR | grep \"AMD Athlon(tm)\"`" != ""; then
-		  CPUFLAGS="-march=athlon"
-		fi
-		if test "`echo $PROCESSOR | grep \"AMD Athlon(tm) MP\"`" != ""; then
-		  CPUFLAGS="-march=athlon-mp"
-		fi
-		if test "`echo $PROCESSOR | grep \"AMD Athlon(tm) XP\"`" != ""; then
-		  CPUFLAGS="-march=athlon-xp"
-		fi
-		#Is our CPU an Ultra Sparc?
-		if test "`echo $PROCESSOR | grep \"UltraSparc\"`" != ""; then
-			CPUFLAGS="-mcpu=ultrasparc"
-		fi
-	else
-		#Alas, we can set only generic arch optimizations
-		PROCESSOR=`uname -m | grep 86`
-		if test "$PROCESSOR" != ""; then
-			CPUFLAGS="-march=$PROCESSOR"
-		fi
-	fi
-	if test "$CPUFLAGS" != ""; then
-		echo "Applying architecture optimizations: "$CPUFLAGS
-	fi
-	CFLAGS="$CPUFLAGS $CFLAGS"
-fi
+CFLAGS=${CFLAGS}
 
 # Check for C headers
 	HEADERS="stdio.h stdlib.h stdarg.h string.h time.h unistd.h ctype.h pwd.h sys/types.h \