summaryrefslogtreecommitdiff
blob: 742524486a70074ecd5e4bf090d5fde413274659 (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
--- configure.in
+++ configure.in
@@ -17,13 +17,14 @@
 AC_SUBST(CC_FOR_BUILD)
 
 # Humm is this a good idea?
-CFLAGS=""
+CFLAGS="$CFLAGS -Wall -Wno-unused"
 
  #echo $CC
 
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_RANLIB
+AM_PROG_AS
 
 
 
@@ -213,33 +214,14 @@
     i?86)  AC_MSG_RESULT(Turning on x86 processor optimisations)
            AC_DEFINE(PROCESSOR_INTEL, 1, [Define if you have an x86 processor])
            ALIGNLONGS=0
-	   if test $CC_MAJOR -ge 3 ; then
-		CFLAGS="$CFLAGS -O3 -fstrength-reduce -frerun-loop-opt -Wall -Wno-unused -funroll-loops \
-                    -ffast-math -falign-functions=2 -falign-jumps=2 -fexpensive-optimizations \
-                    -falign-loops=2 -fschedule-insns2 -malign-double -fomit-frame-pointer -g \
-		    -fno-strict-aliasing -pipe -mtune=$target_cpu -DCPU=$target_cpu"
-	   else
-		CFLAGS="$CFLAGS -O3 -fstrength-reduce -frerun-loop-opt -Wall -Wno-unused -funroll-loops \
-                    -ffast-math -malign-functions=2 -malign-jumps=2 -fexpensive-optimizations \
-                    -malign-loops=2 -fschedule-insns2 -malign-double -fomit-frame-pointer -g \
-		    -fno-strict-aliasing -pipe -mcpu=$target_cpu -DCPU=$target_cpu"
-           fi
            ;;
     sparc*) AC_MSG_RESULT(Turning on sparc processor optimisations)
            AC_DEFINE(PROCESSOR_SPARC, 1, [Define if you have a sparc processor])
 	   ALIGNLONGS=1
-	   if test $target_cpu = sparc64 && test $CC_MAJOR -ge 3 ; then
-		CFLAGS="$CFLAGS -mcpu=v9"
-	   fi
-	   CFLAGS="$CFLAGS -O3 -Wall -Wno-unused -funroll-loops \
-                    -ffast-math -fomit-frame-pointer -g"
            ;;
     arm)   AC_MSG_RESULT(Turning on arm processor optimisations)
            #AC_DEFINE(PROCESSOR_ARM, 1, [Define if you have an ARM processor])
            ALIGNLONGS=1
-	   CFLAGS="$CFLAGS -O3 -Wall -ftracer -fstrength-reduce -Wno-unused -funroll-loops \
-                    -fomit-frame-pointer -fstrict-aliasing -ffast-math \
-	   	    "
 	   #CFLAGS="$CFLAGS -O2 -Wall -ftracer -fstrength-reduce -Wno-unused  \
            #         -fomit-frame-pointer -fstrict-aliasing -ffast-math \
 	   #	    "
@@ -248,8 +230,6 @@
     *)     AC_MSG_WARN(Processor type not known - Use generic optimisations)
            ALIGNLONGS=1
            optimum=no
-	   CFLAGS="$CFLAGS -O3 -Wall -Wno-unused -funroll-loops \
-                    -ffast-math -g"
            ;;
   esac