configure
changeset 10787 2a0bcfc4d35c
parent 10777 2883d23b5a28
child 10797 c23bdf7436b3
     1.1 --- a/configure	Sun Jan 08 10:41:22 2017 -0800
     1.2 +++ b/configure	Sun Jan 08 10:52:02 2017 -0800
     1.3 @@ -18730,16 +18730,23 @@
     1.4  fi
     1.5  
     1.6  
     1.7 -            if test x$enable_libsamplerate_shared = xyes; then
     1.8 -                samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
     1.9 -                if test x$samplerate_lib != x; then
    1.10 -                    echo "-- dynamic samplerate -> $samplerate_lib"
    1.11 +            samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
    1.12 +
    1.13 +            if test x$have_loadso != xyes && \
    1.14 +               test x$enable_libsamplerate_shared = xyes; then
    1.15 +                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
    1.16 +$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
    1.17 +            fi
    1.18 +            if test x$have_loadso = xyes && \
    1.19 +               test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
    1.20 +                echo "-- dynamic libsamplerate -> $samplerate_lib"
    1.21  
    1.22  cat >>confdefs.h <<_ACEOF
    1.23  #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
    1.24  _ACEOF
    1.25  
    1.26 -                fi
    1.27 +            else
    1.28 +                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
    1.29              fi
    1.30          fi
    1.31      fi