]>
Commit | Line | Data |
---|---|---|
3b35881d JB |
1 | --- aa/allegro-4.1.15/configure.in 2004-04-27 13:53:02.000000000 +0200 |
2 | +++ allegro-4.1.15/configure.in 2004-05-23 21:18:36.478313632 +0200 | |
f525cbb8 | 3 | @@ -720,38 +720,7 @@ |
910c1be9 | 4 | |
5 | dnl How to compile C and asm files. | |
f525cbb8 | 6 | if test -n "$GCC"; then |
910c1be9 | 7 | - if test "X$allegro_strict_warnings" = "Xyes"; then |
f525cbb8 | 8 | - WFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused-parameter -Werror" |
910c1be9 | 9 | - else |
10 | - WFLAGS="-Wall -Wno-unused" | |
11 | - fi | |
8f3d5075 | 12 | - if test "X$allegro_cv_processor_type" = "Xi386"; then |
910c1be9 | 13 | - if test "$allegro_exclusive_optimizations" != none; then |
14 | - TARGET_ARCH="-march=$allegro_exclusive_optimizations" | |
69310e42 | 15 | - elif test "X$allegro_cv_support_i386_mtune" = "Xyes"; then |
16 | - TARGET_ARCH="-mtune=$allegro_optimizations" | |
910c1be9 | 17 | - else |
18 | - TARGET_ARCH="-mcpu=$allegro_optimizations" | |
19 | - fi | |
f525cbb8 | 20 | - elif test "X$allegro_cv_processor_type" = "Xamd64"; then |
21 | - dnl Change default pentium->athlon64 | |
22 | - if test "X$allegro_optimizations" = "Xpentium"; then | |
23 | - allegro_optimizations="k8" | |
24 | - fi | |
25 | - if test "$allegro_exclusive_optimizations" != none; then | |
26 | - TARGET_ARCH="-march=$allegro_exclusive_optimizations" | |
27 | - elif test "X$allegro_cv_support_amd64_mtune" = "Xyes"; then | |
28 | - TARGET_ARCH="-mtune=$allegro_optimizations" | |
29 | - else | |
30 | - TARGET_ARCH="-mcpu=$allegro_optimizations" | |
31 | - fi | |
910c1be9 | 32 | - else |
33 | - TARGET_ARCH= | |
34 | - fi | |
910c1be9 | 35 | - dnl Allow to specify additional flags. |
36 | - CFLAGS="$CFLAGS $XCFLAGS" | |
37 | - WFLAGS="$WFLAGS $WCFLAGS" | |
38 | - dnl In this order... | |
8f3d5075 | 39 | + WFLAGS="-Wall -Wno-unused" |
23994a6f | 40 | ALLEGRO_DEBUG_CFLAGS="$CFLAGS -g $WFLAGS -DDEBUGMODE" |
910c1be9 | 41 | if test "X$allegro_debug_with_fortify" = "Xyes"; then |
42 | ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DFORTIFY" | |
f525cbb8 | 43 | @@ -759,12 +728,8 @@ |
6f8923a3 | 44 | if test "X$allegro_debug_with_dmalloc" = "Xyes"; then |
45 | ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC" | |
dd677f2b | 46 | fi |
910c1be9 | 47 | - ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS" |
48 | - if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then | |
49 | - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS" | |
50 | - else | |
51 | - CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS" | |
52 | - fi | |
23994a6f | 53 | + CFLAGS="$CFLAGS $TARGET_ARCH" |
f525cbb8 | 54 | + ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $WFLAGS" |
910c1be9 | 55 | ALLEGRO_SFLAGS="-x assembler-with-cpp" |
56 | ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED" | |
57 | else |