configure.in
changeset 340 d85cb3c11238
parent 332 fb7c3d64963d
child 344 c7447a9dbf73
     1.1 --- a/configure.in	Mon Jan 15 16:14:04 2007 +0000
     1.2 +++ b/configure.in	Tue Feb 13 02:12:08 2007 +0000
     1.3 @@ -233,8 +233,12 @@
     1.4  AC_HELP_STRING([--enable-music-ogg-shared], [dynamically load Ogg Vorbis support [[default=yes]]]),
     1.5                        [], [enable_music_ogg_shared=yes])
     1.6          case "$host" in
     1.7 -            *-*-darwin*) # FIXME when Mac OS X ships with Ogg Vorbis
     1.8 -                ogg_lib=''
     1.9 +            *-*-darwin*)
    1.10 +                for path in /usr/lib /usr/local/lib; do
    1.11 +                    if test x$ogg_lib = x; then
    1.12 +                        ogg_lib=[`ls -- $path/libvorbisfile.[0-9].dylib 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
    1.13 +                    fi
    1.14 +                done
    1.15                  ;;
    1.16              *-*-cygwin* | *-*-mingw32*)
    1.17                  ogg_lib='vorbisfile.dll'
    1.18 @@ -269,7 +273,11 @@
    1.19                        [], [enable_music_mp3_shared=yes])
    1.20          case "$host" in
    1.21              *-*-darwin*)
    1.22 -                smpeg_lib=''
    1.23 +                for path in /usr/lib /usr/local/lib; do
    1.24 +                    if test x$smpeg_lib = x; then
    1.25 +                        smpeg_lib=[`ls -- $path/libsmpeg*.[0-9].dylib 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
    1.26 +                    fi
    1.27 +                done
    1.28                  ;;
    1.29              *-*-cygwin* | *-*-mingw32*)
    1.30                  smpeg_lib='smpeg.dll'