--- zapping-0.7.1/configure.in.orig 2004-09-14 11:07:22.791878883 +0200 +++ zapping-0.7.1/configure.in 2004-09-14 11:09:16.909811836 +0200 @@ -64,6 +64,33 @@ dnl Video (TV) device checks dnl =========================================================================== +dnl Determine native library dir name. +case $host in +*-*-linux*) + # Test if the compiler is 64bit + echo 'int i;' > conftest.$ac_ext + zapping_cv_cc_64bit_output=no + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *"ELF 64"*) + zapping_cv_cc_64bit_output=yes + ;; + esac + fi + rm -rf conftest* + ;; +esac + +case $host_cpu:$zapping_cv_cc_64bit_output in +powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) + zapping_libname="lib64" + ;; +*:*) + zapping_libname="lib" + ;; +esac + + dnl --------------------------------------------------------------------------- dnl Video For Linux [Two] dnl --------------------------------------------------------------------------- @@ -626,7 +653,7 @@ -DPACKAGE_DATA_DIR=\\\"\${datadir}\\\" \ -DPACKAGE_LOCALE_DIR=\\\"\${datadir}/locale\\\" \ -DPACKAGE_PIXMAPS_DIR=\\\"\${datadir}/pixmaps/\${PACKAGE}\\\"\ - -DPACKAGE_LIB_DIR=\\\"\${prefix}/lib/\${PACKAGE}\\\" \ + -DPACKAGE_LIB_DIR=\\\"\${prefix}/$zapping_libname/\${PACKAGE}\\\" \ -DPACKAGE_ZSFB_DIR=\\\"\${DESTDIR}\${sbindir}\\\" \ "