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
|
--- configure.in.orig Sat Jun 30 16:38:55 2001
+++ configure.in Sat Jun 30 16:42:42 2001
@@ -79,12 +79,12 @@
if test "$with_sdl" != "no" ; then
AC_CHECK_PROG(SDL_CONFIG, sdl-config, yes)
if test "$SDL_CONFIG" ; then
-SDL_LIBS="`sdl-config --libs`"
-SDL_CFLAGS="`sdl-config --cflags`"
+SDL_LIBS="`$SDL_CONFIG --libs`"
+SDL_CFLAGS="`$SDL_CONFIG --cflags`"
old_incs="$INCS"
INCS="$INCS $SDL_CFLAGS"
-AC_CHECK_LIB(SDL, SDL_Init, [
-AC_CHECK_HEADERS(SDL/SDL.h, ,[
+AC_CHECK_LIB(SDL-1.1, SDL_Init, [
+AC_CHECK_HEADERS(SDL11/SDL.h, ,[
AC_MSG_WARN(SDL found but headers are missing!!)
with_sdl=no
])], [with_sdl=no], $SDL_LIBS)
@@ -189,7 +189,7 @@
yes|full)
AC_MSG_RESULT(producing heavily optimized code)
-CFLAGS="$CFLAGS -O3"
+CFLAGS="$CFLAGS"
case `uname -m` in
i?86) CFLAGS="$CFLAGS -DALLOW_UNALIGNED_IO" ;;
@@ -214,7 +214,7 @@
low)
AC_MSG_RESULT(using minimal optimizations)
-CFLAGS="$CFLAGS -O3" ;;
+CFLAGS="$CFLAGS" ;;
esac
|