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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
--- electricsheep-2.6.8/mpeg2dec/configure.in.orig 2005-07-20 16:19:40.000000000 +1000
+++ electricsheep-2.6.8/mpeg2dec/configure.in 2006-06-06 10:55:02.000000000 +1000
@@ -15,70 +15,6 @@
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
-dnl CC-specific flags
-if test x"$CC" = x"checkergcc"; then
- enable_sdl=no
-elif test x"$GCC" = x"yes"; then
-
- dnl GCC-specific flags
- dnl -Wall -Werror moved to the end to not disturb the configure script
-
- dnl -O3
- changequote(<<,>>)
- OPT_CFLAGS=`echo "$CFLAGS"|sed "s/-O[0-9]*//g;"`
- changequote([,])
- OPT_CFLAGS="$OPT_CFLAGS -O3"
- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS])
-
- dnl -fomit-frame-pointer
- OPT_CFLAGS="$CFLAGS -fomit-frame-pointer"
- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS])
-
- dnl arch-specific flags
- case "$host_alias" in
- i?86-* | k?-*)
- AC_DEFINE([ARCH_X86],,[x86 architecture])
- case "$host_alias" in
- i386-*) OPT_CFLAGS="$CFLAGS -march=i386";;
- i486-*) OPT_CFLAGS="$CFLAGS -march=i486";;
- i586-*) OPT_CFLAGS="$CFLAGS -march=pentium";;
- i686-*) OPT_CFLAGS="$CFLAGS -march=pentiumpro";;
- k6-*) OPT_CFLAGS="$CFLAGS -march=k6";;
- esac
- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
- ppc-* | powerpc-*)
- OPT_CFLAGS="$CFLAGS -Wa,-m7400"
- AC_TRY_CFLAGS([$OPT_CFLAGS],
- [CFLAGS=$OPT_CFLAGS; AC_DEFINE([ARCH_PPC],,[ppc architecture])]);;
- sparc-* | sparc64-*)
- OPT_CFLAGS="$CFLAGS -march=ultrasparc -mvis -Wa,-Av9"
- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
- mips-sgi-irix6.*) dnl do we need to be that specific ?
- OPT_CFLAGS="$CFLAGS -mabi=64"
- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
- esac
-elif test x"$CC" = x"tcc" -a x"`$CC -version 2>&1 | grep TenDRA`" != x""; then
- dnl TenDRA portability checking compiler
- TENDRA=yes
- CFLAGS="-Xp -Yansi -f`pwd`/include/tendra.h -DELIDE_CODE"
- enable_mlib=no
- no_x=yes
- enable_sdl=no
-elif test x"$CC" = x"icc" -a x"`$CC -V 2>&1 | grep Intel`" != x""; then
- dnl Intel C++ compiler
- CFLAGS="-g -O3 -unroll -ip"
-else
- dnl non-gcc flags - we probably need exact configuration triplets here.
- case "$host_alias" in
- mips-sgi-irix6.*)
- OPT_CFLAGS="$CFLAGS -64"
- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
- sparc-sun-solaris*)
- OPT_CFLAGS="$CFLAGS -xCC -fast -xO5"
- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
- esac
-fi
-
dnl Checks for libtool - this must be done after we set cflags
AC_DISABLE_SHARED
AC_LIBTOOL_WIN32_DLL
|