Fixed bug #732 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Wed, 23 Sep 2009 07:07:44 +0000
branchSDL-1.2
changeset 42393d467ee2af5e
parent 4238 cbe5222d051a
child 4240 cb44bf8f8a0f
Fixed bug #732

If no -L is present in the library spec, try /usr/lib
configure.in
     1.1 --- a/configure.in	Wed Sep 23 07:01:50 2009 +0000
     1.2 +++ b/configure.in	Wed Sep 23 07:07:44 2009 +0000
     1.3 @@ -360,6 +360,9 @@
     1.4                  fi
     1.5              fi
     1.6              alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`
     1.7 +            if [ x$alsa_lib_spec = x ]; then
     1.8 +                alsa_lib_spec="/usr/$base_libdir/libasound.so.*"
     1.9 +            fi
    1.10              alsa_lib=`ls -- $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
    1.11              echo "-- $alsa_lib_spec -> $alsa_lib"
    1.12  
    1.13 @@ -456,6 +459,9 @@
    1.14  AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [[default=yes]]]),
    1.15                            , enable_esd_shared=yes)
    1.16              esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
    1.17 +            if [ x$esd_lib_spec = x ]; then
    1.18 +                esd_lib_spec="/usr/$base_libdir/libesd.so.*"
    1.19 +            fi
    1.20              esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
    1.21              echo "-- $esd_lib_spec -> $esd_lib"
    1.22  
    1.23 @@ -513,6 +519,9 @@
    1.24                  fi
    1.25              fi
    1.26              pulse_lib_spec=`echo $PULSE_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libpulse-simple.so.*/'`
    1.27 +            if [ x$pulse_lib_spec = x ]; then
    1.28 +                pulse_lib_spec="/usr/$base_libdir/libpulse-simple.so.*"
    1.29 +            fi
    1.30              pulse_lib=`ls -- $pulse_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
    1.31              echo "-- $pulse_lib_spec -> $pulse_lib"
    1.32  
    1.33 @@ -633,6 +642,9 @@
    1.34                  fi
    1.35              fi
    1.36              nas_lib_spec=`echo $NAS_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libaudio.so.*/'`
    1.37 +            if [ x$nas_lib_spec = x ]; then
    1.38 +                nas_lib_spec="/usr/$base_libdir/libaudio.so.*"
    1.39 +            fi
    1.40              nas_lib=`ls -- $nas_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
    1.41              echo "-- $nas_lib_spec -> $nas_lib"
    1.42