summaryrefslogtreecommitdiff
blob: 92a5a8434e345a9af21aff357a798f96c33ff102 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
--- a/configure.ac
+++ b/configure.ac
@@ -36,28 +36,8 @@
 
 dnl Checks for programs.
 
-# Work-around for autoconf 2.53 bug
-case "$host" in
-    *-apple-darwin*)
-	: ${CPP="cc -E -traditional-cpp"}
-	;;
-esac
-
 AC_PROG_CC
 
-if test "$GCC" = yes
-then
-    case "$host" in
-	*-*-mingw*)
-	    case "$build" in
-		*-*-cygwin*)
-		    CPPFLAGS="$CPPFLAGS -mno-cygwin"
-		    LDFLAGS="$LDFLAGS -mno-cygwin"
-		    ;;
-	    esac
-    esac
-fi
-
 dnl Support for libtool.
 
 AC_DISABLE_SHARED
@@ -67,77 +47,7 @@
 
 dnl Compiler options.
 
-arch=""
-debug=""
-optimize=""
-profile=""
-
-set -- $CFLAGS
-CFLAGS=""
-
-if test "$GCC" = yes
-then
-    CFLAGS="-Wall"
-fi
-
-while test $# -gt 0
-do
-    case "$1" in
-	-Wall)
-	    if test "$GCC" = yes
-	    then
-		:
-	    else
-		CFLAGS="$CFLAGS $1"
-	    fi
-	    shift
-	    ;;
-	-g)
-	    debug="-g"
-	    shift
-	    ;;
-	-mno-cygwin)
-	    shift
-	    ;;
-	-m*)
-	    arch="$arch $1"
-	    shift
-	    ;;
-	-fomit-frame-pointer)
-	    shift
-	    ;;
-	-O*|-f*)
-	    optimize="$1"
-	    shift
-	    ;;
-	*)
-	    CFLAGS="$CFLAGS $1"
-	    shift
-	    ;;
-    esac
-done
-
-if test "$GCC" = yes
-then
-    if test -z "$arch"
-    then
-	case "$host" in
-	    i386-*)           ;;
-	    i?86-*)           arch="-march=i486" ;;
-	    arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
-	    armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
-	    powerpc-*)        ;;
-	    mips*-agenda-*)   arch="-mcpu=vr4100" ;;
-	    mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
-	esac
-    fi
-
-    if test -n "$optimize"
-    then
-	: #? optimize="$optimize -funroll-loops"
-	: #? optimize="$optimize -finline-functions"
-    fi
-fi
+CFLAGS="${CFLAGS} -Wall"
 
 dnl Internationalization support.
 
@@ -445,71 +355,8 @@
     depend_audio="$depend_audio audio_$audio.o"
 fi
 
-dnl madplay options...
-
-AC_MSG_CHECKING([whether to enable profiling])
-AC_ARG_ENABLE(profiling, AC_HELP_STRING([--enable-profiling],
-			 [generate profiling code]),
-[
-    case "$enableval" in
-	yes) profile="-pg" ;;
-    esac
-])
-AC_MSG_RESULT(${enable_profiling-no})
-
-AC_MSG_CHECKING([whether to enable debugging])
-AC_ARG_ENABLE(debugging, AC_HELP_STRING([--enable-debugging],
-			 [enable diagnostic debugging support])
-AC_HELP_STRING([--disable-debugging],
-			 [do not enable debugging and use more optimization]),
-[
-    case "$enableval" in
-	yes)
-	    AC_DEFINE(DEBUG, 1,
-		[Define to enable diagnostic debugging support.])
-	    optimize=""
-	    ;;
-	no)
-	    if test -n "$profile"
-	    then
-    AC_MSG_ERROR([--enable-profiling and --disable-debugging are incompatible])
-	    fi
-
-	    AC_DEFINE(NDEBUG, 1,
-		[Define to disable debugging assertions.])
-	    debug=""
-	    if test "$GCC" = yes
-	    then
-		optimize="$optimize -fomit-frame-pointer"
-	    fi
-	    ;;
-    esac
-])
-AC_MSG_RESULT(${enable_debugging-default})
-
-case "$enable_debugging" in
-    yes) AC_CHECK_LIB(efence, malloc) ;;
-esac
-
-AC_MSG_CHECKING([whether to enable experimental code])
-AC_ARG_ENABLE(experimental, AC_HELP_STRING([--enable-experimental],
-			    [enable experimental code]),
-[
-    case "$enableval" in
-	yes)
-	    AC_DEFINE(EXPERIMENTAL, 1, [Define to enable experimental code.])
-	    ;;
-    esac
-])
-AC_MSG_RESULT(${enable_experimental-no})
-
 dnl Create output files.
 
-test -n "$arch"     && CFLAGS="$CFLAGS $arch"
-test -n "$debug"    && CFLAGS="$CFLAGS $debug"
-test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
-test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
-
 AC_CONFIG_FILES([Makefile msvc++/Makefile  \
 	intl/Makefile po/Makefile.in m4/Makefile  \
 	madplay.list])