summaryrefslogtreecommitdiff
blob: ab6ab5674ec12b70cfb38bd34cd72dbcfa9f26e2 (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
--- ../libquicktime-0.9.4.orig/configure.ac	2005-03-12 18:32:46.604712360 +0100
+++ configure.ac	2005-03-12 19:39:42.743166512 +0100
@@ -32,7 +32,6 @@
 AC_LIBTOOL_DLOPEN
 AM_PROG_LIBTOOL
 
-AC_PROG_CC
 AC_LANG_C
 
 AC_C_BIGENDIAN
@@ -50,25 +49,6 @@
 AC_SUBST(AS)
 AC_SUBST(ASFLAGS)
 
-dnl Build CFLAGS
-
-COMMON_CFLAGS=" -finline-functions -Wall -Winline"
-PROFILE_CFLAGS=" -pg -fprofile-arcs -ftest-coverage"
-DEBUG_CFLAGS=" -g3"
-
-dnl Optimizing flags
-
-OPTIMIZE_CFLAGS="-O3"
-
-AC_TRY_CFLAGS([-funroll-all-loops],   [OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -funroll-all-loops"])
-AC_TRY_CFLAGS([-fomit-frame-pointer], [OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -fomit-frame-pointer"])
-AC_TRY_CFLAGS([-falign-loops=2],      [OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -falign-loops=2"])
-AC_TRY_CFLAGS([-falign-jumps=2],      [OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -falign-jumps=2"])
-AC_TRY_CFLAGS([-falign-functions=2],  [OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -falign-functions=2"])
-
-# -Wno-unused-variable -Wno-unused-parameter
-# -std=gnu99 
-
 have_debug=false
 have_profile=false
 compile_mode="optimize"
@@ -101,11 +81,13 @@
 fi
 
 case $compile_mode in
-"optimize") CFLAGS="$OPTIMIZE_CFLAGS $COMMON_CFLAGS"; AC_DEFINE(NDEBUG);;
+"optimize") CFLAGS="$CFLAGS"; AC_DEFINE(NDEBUG);;
 "debug") CFLAGS="$DEBUG_CFLAGS $COMMON_CFLAGS" ;;
 "profile") CFLAGS="$PROFILE_CFLAGS $COMMON_CFLAGS"; AC_DEFINE(NDEBUG);;
 esac
 
+AC_PROG_CC
+
 AC_SUBST(LIBS)
 
 AH_TEMPLATE([_GNU_SOURCE],