]>
Commit | Line | Data |
---|---|---|
6f8923a3 | 1 | diff -urN aa/allegro-4.1.14/configure.in allegro-4.1.14/configure.in |
2 | --- aa/allegro-4.1.14/configure.in 2004-04-27 13:53:02.000000000 +0200 | |
3 | +++ allegro-4.1.14/configure.in 2004-05-23 21:18:36.478313632 +0200 | |
4 | @@ -662,29 +662,7 @@ | |
910c1be9 | 5 | |
6 | dnl How to compile C and asm files. | |
7 | if test -n "GCC"; then | |
8 | - if test "X$allegro_strict_warnings" = "Xyes"; then | |
9 | - WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused -Werror" | |
10 | - else | |
11 | - WFLAGS="-Wall -Wno-unused" | |
12 | - fi | |
8f3d5075 | 13 | - if test "X$allegro_cv_processor_type" = "Xi386"; then |
910c1be9 | 14 | - if test "$allegro_exclusive_optimizations" != none; then |
15 | - TARGET_ARCH="-march=$allegro_exclusive_optimizations" | |
69310e42 | 16 | - elif test "X$allegro_cv_support_i386_mtune" = "Xyes"; then |
17 | - TARGET_ARCH="-mtune=$allegro_optimizations" | |
910c1be9 | 18 | - else |
19 | - TARGET_ARCH="-mcpu=$allegro_optimizations" | |
20 | - fi | |
21 | - else | |
22 | - TARGET_ARCH= | |
23 | - fi | |
24 | - if test "X$allegro_cv_can_use_pipe" = "Xyes"; then | |
25 | - CFLAGS="$CFLAGS -pipe" | |
26 | - fi | |
910c1be9 | 27 | - dnl Allow to specify additional flags. |
28 | - CFLAGS="$CFLAGS $XCFLAGS" | |
29 | - WFLAGS="$WFLAGS $WCFLAGS" | |
30 | - dnl In this order... | |
8f3d5075 | 31 | + WFLAGS="-Wall -Wno-unused" |
23994a6f | 32 | ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE" |
910c1be9 | 33 | if test "X$allegro_debug_with_fortify" = "Xyes"; then |
34 | ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY" | |
6f8923a3 | 35 | @@ -692,12 +670,8 @@ |
36 | if test "X$allegro_debug_with_dmalloc" = "Xyes"; then | |
37 | ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC" | |
dd677f2b | 38 | fi |
910c1be9 | 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" | |
42 | - else | |
43 | - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS" | |
44 | - fi | |
23994a6f | 45 | + CFLAGS="$CFLAGS $TARGET_ARCH" |
6f8923a3 | 46 | + ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS" |
910c1be9 | 47 | ALLEGRO_SFLAGS="-x assembler-with-cpp" |
48 | ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED" | |
49 | else |