diff options
| author | Matt Messier <mmessier@grapetv.org> | 2007-05-11 16:14:58 -0400 |
|---|---|---|
| committer | Matt Messier <mmessier@grapetv.org> | 2007-05-11 16:14:58 -0400 |
| commit | 00dccb98dfe1ff21e14275b09806cbe4d69a3273 (patch) | |
| tree | b77f9e99349233a548c900e663d3c2d2b87dabbc /configure.ac | |
| parent | 722010dbea5887558dd7d954a19d918119e37b4f (diff) | |
| download | xine-lib-00dccb98dfe1ff21e14275b09806cbe4d69a3273.tar.gz xine-lib-00dccb98dfe1ff21e14275b09806cbe4d69a3273.tar.bz2 | |
Cleanup, fix, and generally rework assembler configure checks
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 0b8e042cd..7a40caab0 100644 --- a/configure.ac +++ b/configure.ac @@ -81,14 +81,11 @@ dnl included. In release bulids, this can be stripped out later if desired. dnl More importantly, it prevents autoconf from initializing the defaults to dnl include -O2, which is not desirable in a debug build, and it messes with dnl other optimizations that we'll want to be setting ourselves later. -ASFLAGS="-g $ASFLAGS" CFLAGS="-g $CFLAGS" CPPFLAGS="-D_REENTRANT -DXINE_COMPILE $CPPFLAGS" LDFLAGS="-g $LDFLAGS" OBJCFLAGS="-g $OBJCFLAGS" -AC_SUBST(ASFLAGS) - dnl ------------------------------ dnl Build modes: debug and profile @@ -157,8 +154,12 @@ dnl checks for programs dnl ------------------- AC_PROG_CC +AC_GNU_SOURCE +AC_ISC_POSIX + AC_PROG_OBJC -AM_PROG_AS + +CC_PROG_AS AC_PROG_MAKE_SET AC_PROG_EGREP @@ -168,9 +169,6 @@ AC_PROG_AWK AC_CHECK_TOOL([STRINGS], [strings], [false]) -AC_GNU_SOURCE -AC_ISC_POSIX - PKG_PROG_PKG_CONFIG dnl Check for documentation formatting tools @@ -605,11 +603,13 @@ case "$host_or_hostalias" in ;; i386-* | x86_64-*) arch_x86=yes + AC_DEFINE([ARCH_X86_32], [], [Define this if you're running x86 architecture 32 bits]) ;; ppc* | powerpc*) arch_ppc=yes dnl avoid ppc compilation crash AS="$CC" + AC_DEFINE([ARCH_PPC], [], [Define this if you're running PowerPC architecture]) AC_CHECK_HEADER([altivec.h], [], [enable_altivec=no]) if test x"$enable_altivec" != x"no"; then @@ -639,7 +639,6 @@ case "$host_or_hostalias" in AC_DEFINE([ARCH_PPC], [], [Define this if you're running PowerPC architecture]) AC_CHECK_HEADER([altivec.h], [], [enable_altivec=no]) - if test x"$enable_altivec" != x"no"; then AC_DEFINE([ENABLE_ALTIVEC], [], [Define this if you want to use altivec on PowerPC CPUs]) cpuflags="$cpuflags -maltivec" |
