1 --- allegro-4.1.12/configure.in.orig 2003-11-11 21:59:10.385928944 +0100
2 +++ allegro-4.1.12/configure.in 2003-11-11 22:02:54.074923048 +0100
4 AC_CHECK_FUNCS(memcmp mkstemp stricmp strlwr strupr)
6 dnl Tweak header files for library build
7 -CFLAGS="$CFLAGS -DALLEGRO_LIB_BUILD"
8 +CFLAGS="$TARGET_ARCH -DALLEGRO_LIB_BUILD"
10 dnl How to compile C and asm files.
11 if test -n "GCC"; then
12 - if test "X$allegro_strict_warnings" = "Xyes"; then
13 - WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused -Werror"
15 - WFLAGS="-Wall -Wno-unused"
17 - if test "X$allegro_cv_processor_type" = "Xi386"; then
18 - if test "$allegro_exclusive_optimizations" != none; then
19 - TARGET_ARCH="-march=$allegro_exclusive_optimizations"
21 - TARGET_ARCH="-mcpu=$allegro_optimizations"
26 - if test "X$allegro_cv_can_use_pipe" = "Xyes"; then
27 - CFLAGS="$CFLAGS -pipe"
29 - dnl Allow to specify additional flags.
30 - CFLAGS="$CFLAGS $XCFLAGS"
31 - WFLAGS="$WFLAGS $WCFLAGS"
32 - dnl In this order...
33 - ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE"
34 + WFLAGS="-Wall -Wno-unused"
35 + ALLEGRO_DEBUG_CFLAGS="-g $WFLAGS -DDEBUGMODE"
36 if test "X$allegro_debug_with_fortify" = "Xyes"; then
37 ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY"
39 - ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
40 - if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then
41 - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS"
43 - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
45 + ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS"
46 ALLEGRO_SFLAGS="-x assembler-with-cpp"
47 ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"