Fixed bug #591
Wade Berrier 2008-05-28 11:09:42 PDT configure.in will enable dynamic loading by default for modules, but some of the checks only check /lib, /usr/lib, /usr/local/lib, etc... It needs to also account for systems using /lib64, /usr/lib64, and /usr/local/lib64. For example, openSUSE x86_64 distro uses these style paths. Otherwise, i586 gets dynamically loaded, but x86_64 doesn't. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403847
This commit is contained in:
parent
be2cfc6afd
commit
457c590993
1 changed files with 17 additions and 14 deletions
31
configure.in
31
configure.in
|
@ -508,6 +508,9 @@ AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl set this to use on systems that use lib64 instead of lib
|
||||||
|
base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
|
||||||
|
|
||||||
dnl See if the OSS audio interface is supported
|
dnl See if the OSS audio interface is supported
|
||||||
CheckOSS()
|
CheckOSS()
|
||||||
{
|
{
|
||||||
|
@ -569,12 +572,12 @@ AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [[default=yes]]]),
|
||||||
AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]),
|
AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]),
|
||||||
, enable_alsa_shared=yes)
|
, enable_alsa_shared=yes)
|
||||||
if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
|
if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
|
||||||
if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
|
if test "x`ls /$base_libdir/libasound.so.* 2> /dev/null`" != "x"; then
|
||||||
ALSA_LIBS="-L/lib $ALSA_LIBS"
|
ALSA_LIBS="-L/$base_libdir $ALSA_LIBS"
|
||||||
elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
|
elif test "x`ls /usr/$base_libdir/libasound.so.* 2> /dev/null`" != "x"; then
|
||||||
ALSA_LIBS="-L/usr/lib $ALSA_LIBS"
|
ALSA_LIBS="-L/usr/$base_libdir $ALSA_LIBS"
|
||||||
elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then
|
elif test "x`ls /usr/local/$base_libdir/libasound.so.* 2> /dev/null`" != "x"; then
|
||||||
ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS"
|
ALSA_LIBS="-L/usr/local/$base_libdir $ALSA_LIBS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`
|
alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`
|
||||||
|
@ -722,12 +725,12 @@ AC_HELP_STRING([--enable-pulseaudio], [use PulseAudio [[default=yes]]]),
|
||||||
AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]),
|
AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]),
|
||||||
, enable_pulseaudio_shared=yes)
|
, enable_pulseaudio_shared=yes)
|
||||||
if test "x`echo $PULSEAUDIO_LIBS | grep -- -L`" = "x"; then
|
if test "x`echo $PULSEAUDIO_LIBS | grep -- -L`" = "x"; then
|
||||||
if test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
|
if test "x`ls /$base_libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then
|
||||||
PULSEAUDIO_LIBS="-L/lib $PULSEAUDIO_LIBS"
|
PULSE_LIBS="-L/$base_libdir $PULSE_LIBS"
|
||||||
elif test "x`ls /usr/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
|
elif test "x`ls /usr/$base_libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then
|
||||||
PULSEAUDIO_LIBS="-L/usr/lib $PULSEAUDIO_LIBS"
|
PULSE_LIBS="-L/usr/$base_libdir $PULSE_LIBS"
|
||||||
elif test "x`ls /usr/local/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
|
elif test "x`ls /usr/local/$base_libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then
|
||||||
PULSEAUDIO_LIBS="-L/usr/local/lib $PULSEAUDIO_LIBS"
|
PULSE_LIBS="-L/usr/local/$base_libdir $PULSE_LIBS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
pulseaudio_lib_spec=`echo $PULSEAUDIO_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libpulse-simple.so.*/'`
|
pulseaudio_lib_spec=`echo $PULSEAUDIO_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libpulse-simple.so.*/'`
|
||||||
|
@ -782,7 +785,7 @@ AC_HELP_STRING([--enable-arts], [support the Analog Real Time Synthesizer [[defa
|
||||||
AC_ARG_ENABLE(arts-shared,
|
AC_ARG_ENABLE(arts-shared,
|
||||||
AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [[default=yes]]]),
|
AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [[default=yes]]]),
|
||||||
, enable_arts_shared=yes)
|
, enable_arts_shared=yes)
|
||||||
arts_lib_spec="$ARTS_PREFIX/lib/libartsc.so.*"
|
arts_lib_spec="$ARTS_PREFIX/$base_libdir/libartsc.so.*"
|
||||||
arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
|
arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
|
||||||
echo "-- $arts_lib_spec -> $arts_lib"
|
echo "-- $arts_lib_spec -> $arts_lib"
|
||||||
|
|
||||||
|
@ -972,7 +975,7 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=ma
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1/'`]
|
x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1/'`]
|
||||||
for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib; do
|
for path in $x11_lib_path /usr/$base_libdir /usr/X11/$base_libdir /usr/X11R6/$base_libdir; do
|
||||||
if test "x$x11_lib" = "x"; then
|
if test "x$x11_lib" = "x"; then
|
||||||
x11_lib=[`ls -- $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
x11_lib=[`ls -- $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||||
if test "x$x11_lib" = "x"; then
|
if test "x$x11_lib" = "x"; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue