diff options
author | Rocky Bernstein <rockyb@users.sourceforge.net> | 2004-02-19 02:50:24 +0000 |
---|---|---|
committer | Rocky Bernstein <rockyb@users.sourceforge.net> | 2004-02-19 02:50:24 +0000 |
commit | 5cb036aff44c2ff274ec38b28382245c5f695689 (patch) | |
tree | b55f5f42c0cf359faddca2c2724bd41e626f8cdf /configure.ac | |
parent | 8aec8d2b5344d4f748755cfb328fd811a8bfc526 (diff) | |
download | xine-lib-5cb036aff44c2ff274ec38b28382245c5f695689.tar.gz xine-lib-5cb036aff44c2ff274ec38b28382245c5f695689.tar.bz2 |
Mandrake patches from
http://cvs.mandrakesoft.com/cgi-bin/cvsweb.cgi/SPECS/xine-lib/
via Goetz Waschk who reports:
The amd64 patch (xine-lib-1-rc0a-amd64.patch) sets some conservative
CFLAGS for amd64,
the lib64 patch (xine-lib-1-rc0a-lib64.patch) replaces hardcoded
/lib to support the lib64 library dir on amd64,
the directfb patch (xine-lib-1-rc2-no-directfb.patch) adds a
configure option to disable directfb,
the linuxfb patch (xine-lib-1-rc3a-no-linuxfb.patch) does the same
for linux framebuffer and
the 64bit fixes patch (xine-lib-1-rc3-64bit-fixes.patch) doesn't
apply at the moment against the CVS -- demux_ogg.c was not applied.
it includes some 64 bit pointer and other fixes for 64bit architectures.
from Gwenole Beauchesne
I haven't tested other than apply and compile.
CVS patchset: 6174
CVS date: 2004/02/19 02:50:24
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 917caa46f..96a97551a 100644 --- a/configure.ac +++ b/configure.ac @@ -220,6 +220,35 @@ AC_CHECK_LIB(c, dlopen, AC_MSG_ERROR(dynamic linker needed))) AC_SUBST(DYNAMIC_LD_LIBS) +dnl --------------------------------------------- +dnl determie libdir name +dnl --------------------------------------------- +AC_MSG_CHECKING([libdir name]) +case $host in +*-*-linux*) + # Test if the compiler is 64bit + echo 'int i;' > conftest.$ac_ext + xine_cv_cc_64bit_output=no + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *"ELF 64"*) + xine_cv_cc_64bit_output=yes + ;; + esac + fi + rm -rf conftest* + ;; +esac + +case $host_cpu:$xine_cv_cc_64bit_output in +powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) + XINE_LIBNAME="lib64" + ;; +*:*) + XINE_LIBNAME="lib" + ;; +esac +AC_MSG_RESULT([$XINE_LIBNAME]) dnl --------------------------------------------- dnl mpeg2lib and ffmpeg stuff @@ -479,7 +508,7 @@ AM_CONDITIONAL(PPC_ARCH, test x$ppc_arch = "xyes") AC_ARG_WITH(xv-path,[ --with-xv-path=path Where $xv_lib is installed], - xv_path="$withval", xv_path="/usr/X11R6/lib") + xv_path="$withval", xv_path="/usr/X11R6/$XINE_LIBNAME") AC_CHECK_LIB(Xv, XvShmCreateImage, [ AC_MSG_CHECKING(for $xv_lib location) @@ -590,6 +619,8 @@ dnl --------------------------------------------- AC_CHECK_HEADER(linux/fb.h, [AC_DEFINE(HAVE_FB,1,[Define this if you have linux framebuffer support]) have_fb=yes],) +AC_ARG_ENABLE(fb, [ --disable-fb Do not build linux framebuffer support], + have_fb=no, have_fb=yes) AM_CONDITIONAL(HAVE_FB, [test x"$have_fb" = "xyes"]) @@ -607,9 +638,13 @@ else dnl --------------------------------------------- dnl Check for DirectFB dnl --------------------------------------------- +AC_ARG_ENABLE(directfb, + [ --enable-directfb Enable use of DirectFB], + enable_directfb=yes, + enable_directfb=no) DIRECTFB_REQUIRED_VERSION=0.9.9 - +if test x$enable_directfb = "xyes"; then AC_MSG_CHECKING(for DirectFB) if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then AC_MSG_RESULT(found) @@ -619,7 +654,7 @@ dnl --------------------------------------------- else AC_MSG_RESULT([*** All of DIRECTFB dependent parts will be disabled ***]) fi - +fi fi AC_SUBST(DIRECTFB_CFLAGS) @@ -1687,6 +1722,13 @@ case "$host_or_hostalias" in enable_armv4l="yes" ;; + x86_64-*) + dnl One has to carefully make performance analysis + CFLAGS="$CFLAGS -O2" + DEBUG_CFLAGS="$DEBUG_CFLAGS -O2" + AC_DEFINE_UNQUOTED(FPM_64BIT,,[Define to select libmad fixed pointarithmetic implementation]) + ;; + *) echo echo "****************************** WARNING ******************************" |