@@ -11859,7 +11859,7 @@ fi
11859
11859
{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_lib_modplug_ModPlug_Load " >&5
11860
11860
$as_echo " $ac_cv_lib_modplug_ModPlug_Load " >&6 ; }
11861
11861
if test " x$ac_cv_lib_modplug_ModPlug_Load " = xyes; then :
11862
- have_libmodplug_lib=yes
11862
+ have_libmodplug_lib=yes; MODPLUG_LIBS= " -lmodplug "
11863
11863
fi
11864
11864
11865
11865
@@ -11907,7 +11907,7 @@ fi
11907
11907
{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_lib_modplug_ModPlug_Load " >&5
11908
11908
$as_echo " $ac_cv_lib_modplug_ModPlug_Load " >&6 ; }
11909
11909
if test " x$ac_cv_lib_modplug_ModPlug_Load " = xyes; then :
11910
- have_libmodplug_lib=yes
11910
+ have_libmodplug_lib=yes; MODPLUG_LIBS= " -lmodplug "
11911
11911
fi
11912
11912
11913
11913
@@ -11970,6 +11970,8 @@ if test x$enable_music_mod = xyes -a x$enable_music_mod_mikmod = xyes; then
11970
11970
libmikmod_min=1
11971
11971
libmikmod_rev=10
11972
11972
libmikmod_ver=" $libmikmod_maj .$libmikmod_min .$libmikmod_rev "
11973
+ CFLAGS_SAVED=" $CFLAGS "
11974
+ LIBS_SAVED=" $LIBS "
11973
11975
# Extract the first word of "libmikmod-config", so it can be a program name with args.
11974
11976
set dummy libmikmod-config; ac_word=$2
11975
11977
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
@@ -12012,9 +12014,6 @@ fi
12012
12014
12013
12015
12014
12016
if test " $LIBMIKMOD_CONFIG " ! = " no" ; then
12015
-
12016
- CFLAGS_SAVED=" $CFLAGS "
12017
- LIBS_SAVED=" $LIBS "
12018
12017
CFLAGS=" $CFLAGS ` $LIBMIKMOD_CONFIG --cflags` "
12019
12018
LIBS=" $LIBS ` $LIBMIKMOD_CONFIG --libs` "
12020
12019
have_libmikmod=yes
@@ -12045,7 +12044,7 @@ _ACEOF
12045
12044
if ac_fn_c_try_run " $LINENO " ; then :
12046
12045
12047
12046
else
12048
- have_libmikmod=no; CFLAGS= " $CFLAGS_SAVED " ; LIBS= " $LIBS_SAVED "
12047
+ have_libmikmod=no
12049
12048
fi
12050
12049
rm -f core * .core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12051
12050
conftest.$ac_objext conftest.beam conftest.$ac_ext
@@ -12079,6 +12078,8 @@ fi
12079
12078
{ $as_echo " $as_me :${as_lineno-$LINENO } : WARNING: *** Unable to find MikMod library (http://mikmod.raphnet.net/)" >&5
12080
12079
$as_echo " $as_me : WARNING: *** Unable to find MikMod library (http://mikmod.raphnet.net/)" >&2 ; }
12081
12080
fi
12081
+ LIBS=" $LIBS_SAVED "
12082
+ CFLAGS=" $CFLAGS_SAVED "
12082
12083
fi
12083
12084
12084
12085
if test x$have_libmodplug ! = xyes -a x$have_libmikmod ! = xyes ; then
@@ -12263,21 +12264,21 @@ else
12263
12264
fi
12264
12265
12265
12266
if test x$enable_music_ogg = xyes; then
12267
+ LIBS_SAVED=" $LIBS "
12266
12268
if test x$enable_music_ogg_tremor = xyes; then
12267
12269
ac_fn_c_check_header_mongrel " $LINENO " " tremor/ivorbisfile.h" " ac_cv_header_tremor_ivorbisfile_h" " $ac_includes_default "
12268
12270
if test " x$ac_cv_header_tremor_ivorbisfile_h " = xyes; then :
12269
12271
have_tremor_hdr=yes
12270
12272
fi
12271
12273
12272
12274
12273
- as_ac_Lib=` $as_echo " ac_cv_lib_vorbisidec -logg''_ov_open_callbacks" | $as_tr_sh `
12274
- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for ov_open_callbacks in -lvorbisidec -logg" >&5
12275
- $as_echo_n " checking for ov_open_callbacks in -lvorbisidec -logg... " >&6 ; }
12276
- if eval \$ {$as_ac_Lib +:} false ; then :
12275
+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for ov_open_callbacks in -lvorbisidec" >&5
12276
+ $as_echo_n " checking for ov_open_callbacks in -lvorbisidec... " >&6 ; }
12277
+ if ${ac_cv_lib_vorbisidec_ov_open_callbacks+: } false ; then :
12277
12278
$as_echo_n " (cached) " >&6
12278
12279
else
12279
12280
ac_check_lib_save_LIBS=$LIBS
12280
- LIBS=" -lvorbisidec -logg $LIBS "
12281
+ LIBS=" -lvorbisidec -logg $LIBS "
12281
12282
cat confdefs.h - << _ACEOF >conftest.$ac_ext
12282
12283
/* end confdefs.h. */
12283
12284
@@ -12297,18 +12298,17 @@ return ov_open_callbacks ();
12297
12298
}
12298
12299
_ACEOF
12299
12300
if ac_fn_c_try_link " $LINENO " ; then :
12300
- eval " $as_ac_Lib =yes"
12301
+ ac_cv_lib_vorbisidec_ov_open_callbacks =yes
12301
12302
else
12302
- eval " $as_ac_Lib =no"
12303
+ ac_cv_lib_vorbisidec_ov_open_callbacks =no
12303
12304
fi
12304
12305
rm -f core conftest.err conftest.$ac_objext \
12305
12306
conftest$ac_exeext conftest.$ac_ext
12306
12307
LIBS=$ac_check_lib_save_LIBS
12307
12308
fi
12308
- eval ac_res=\$ $as_ac_Lib
12309
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_res " >&5
12310
- $as_echo " $ac_res " >&6 ; }
12311
- if eval test \" x\$ " $as_ac_Lib " \" = x" yes" ; then :
12309
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_lib_vorbisidec_ov_open_callbacks " >&5
12310
+ $as_echo " $ac_cv_lib_vorbisidec_ov_open_callbacks " >&6 ; }
12311
+ if test " x$ac_cv_lib_vorbisidec_ov_open_callbacks " = xyes; then :
12312
12312
have_tremor_lib=yes
12313
12313
fi
12314
12314
@@ -12347,14 +12347,13 @@ if test "x$ac_cv_header_vorbis_vorbisfile_h" = xyes; then :
12347
12347
fi
12348
12348
12349
12349
12350
- as_ac_Lib=` $as_echo " ac_cv_lib_vorbisfile -lvorbis -logg -lm''_ov_open_callbacks" | $as_tr_sh `
12351
- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for ov_open_callbacks in -lvorbisfile -lvorbis -logg -lm" >&5
12352
- $as_echo_n " checking for ov_open_callbacks in -lvorbisfile -lvorbis -logg -lm... " >&6 ; }
12353
- if eval \$ {$as_ac_Lib +:} false ; then :
12350
+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for ov_open_callbacks in -lvorbisfile" >&5
12351
+ $as_echo_n " checking for ov_open_callbacks in -lvorbisfile... " >&6 ; }
12352
+ if ${ac_cv_lib_vorbisfile_ov_open_callbacks+: } false ; then :
12354
12353
$as_echo_n " (cached) " >&6
12355
12354
else
12356
12355
ac_check_lib_save_LIBS=$LIBS
12357
- LIBS=" -lvorbisfile -lvorbis -logg -lm $LIBS "
12356
+ LIBS=" -lvorbisfile -lvorbis -logg -lm $LIBS "
12358
12357
cat confdefs.h - << _ACEOF >conftest.$ac_ext
12359
12358
/* end confdefs.h. */
12360
12359
@@ -12374,18 +12373,17 @@ return ov_open_callbacks ();
12374
12373
}
12375
12374
_ACEOF
12376
12375
if ac_fn_c_try_link " $LINENO " ; then :
12377
- eval " $as_ac_Lib =yes"
12376
+ ac_cv_lib_vorbisfile_ov_open_callbacks =yes
12378
12377
else
12379
- eval " $as_ac_Lib =no"
12378
+ ac_cv_lib_vorbisfile_ov_open_callbacks =no
12380
12379
fi
12381
12380
rm -f core conftest.err conftest.$ac_objext \
12382
12381
conftest$ac_exeext conftest.$ac_ext
12383
12382
LIBS=$ac_check_lib_save_LIBS
12384
12383
fi
12385
- eval ac_res=\$ $as_ac_Lib
12386
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_res " >&5
12387
- $as_echo " $ac_res " >&6 ; }
12388
- if eval test \" x\$ " $as_ac_Lib " \" = x" yes" ; then :
12384
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_lib_vorbisfile_ov_open_callbacks " >&5
12385
+ $as_echo " $ac_cv_lib_vorbisfile_ov_open_callbacks " >&6 ; }
12386
+ if test " x$ac_cv_lib_vorbisfile_ov_open_callbacks " = xyes; then :
12389
12387
have_ogg_lib=yes
12390
12388
fi
12391
12389
@@ -12418,6 +12416,7 @@ $as_echo "$as_me: WARNING: *** Unable to find Ogg Vorbis library (http://www.xip
12418
12416
$as_echo " $as_me : WARNING: Ogg Vorbis support disabled" >&2 ; }
12419
12417
fi
12420
12418
fi
12419
+ LIBS=" $LIBS_SAVED "
12421
12420
fi
12422
12421
12423
12422
libflac_ver=8
@@ -12605,10 +12604,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605
12604
$as_echo " $have_libmad " >&6 ; }
12606
12605
if test x$have_libmad = xyes; then
12607
12606
EXTRA_CFLAGS=" $EXTRA_CFLAGS -DMUSIC_MP3_MAD"
12608
- if test x$enable_music_mp3_mad_gpl_dithering = xyes; then
12607
+ if test x$enable_music_mp3_mad_gpl_dithering = xyes; then
12609
12608
{ $as_echo " $as_me :${as_lineno-$LINENO } : WARNING: *** Using GPL libmad and MP3 dithering routines, this build of SDL_mixer is now under the GPL" >&5
12610
12609
$as_echo " $as_me : WARNING: *** Using GPL libmad and MP3 dithering routines, this build of SDL_mixer is now under the GPL" >&2 ; }
12611
- EXTRA_CFLAGS=" $EXTRA_CFLAGS -DMUSIC_MP3_MAD_GPL_DITHERING"
12610
+ EXTRA_CFLAGS=" $EXTRA_CFLAGS -DMUSIC_MP3_MAD_GPL_DITHERING"
12612
12611
fi
12613
12612
EXTRA_LDFLAGS=" $EXTRA_LDFLAGS -lmad"
12614
12613
else
@@ -12729,6 +12728,7 @@ else
12729
12728
fi
12730
12729
12731
12730
if test x$enable_music_opus = xyes; then
12731
+ LIBS_SAVED=" $LIBS "
12732
12732
12733
12733
pkg_failed=no
12734
12734
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for OPUSFILE" >&5
@@ -12802,7 +12802,7 @@ if ${ac_cv_lib_opusfile_op_open_callbacks+:} false; then :
12802
12802
$as_echo_n " (cached) " >&6
12803
12803
else
12804
12804
ac_check_lib_save_LIBS=$LIBS
12805
- LIBS=" -lopusfile $LIBS "
12805
+ LIBS=" -lopusfile -lopus -logg -lm $LIBS "
12806
12806
cat confdefs.h - << _ACEOF >conftest.$ac_ext
12807
12807
/* end confdefs.h. */
12808
12808
@@ -12833,7 +12833,7 @@ fi
12833
12833
{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_lib_opusfile_op_open_callbacks " >&5
12834
12834
$as_echo " $ac_cv_lib_opusfile_op_open_callbacks " >&6 ; }
12835
12835
if test " x$ac_cv_lib_opusfile_op_open_callbacks " = xyes; then :
12836
- have_opusfile_lib=yes
12836
+ have_opusfile_lib=yes; OPUSFILE_LIBS= " -lopusfile -lopus "
12837
12837
fi
12838
12838
12839
12839
@@ -12850,7 +12850,7 @@ if ${ac_cv_lib_opusfile_op_open_callbacks+:} false; then :
12850
12850
$as_echo_n " (cached) " >&6
12851
12851
else
12852
12852
ac_check_lib_save_LIBS=$LIBS
12853
- LIBS=" -lopusfile $LIBS "
12853
+ LIBS=" -lopusfile -lopus -logg -lm $LIBS "
12854
12854
cat confdefs.h - << _ACEOF >conftest.$ac_ext
12855
12855
/* end confdefs.h. */
12856
12856
@@ -12881,7 +12881,7 @@ fi
12881
12881
{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_lib_opusfile_op_open_callbacks " >&5
12882
12882
$as_echo " $ac_cv_lib_opusfile_op_open_callbacks " >&6 ; }
12883
12883
if test " x$ac_cv_lib_opusfile_op_open_callbacks " = xyes; then :
12884
- have_opusfile_lib=yes
12884
+ have_opusfile_lib=yes; OPUSFILE_LIBS= " -lopusfile -lopus "
12885
12885
fi
12886
12886
12887
12887
@@ -12894,6 +12894,7 @@ $as_echo "yes" >&6; }
12894
12894
have_opusfile_lib=yes
12895
12895
12896
12896
fi
12897
+ LIBS=" $LIBS_SAVED "
12897
12898
12898
12899
if test x$have_opusfile_hdr = xyes -a x$have_opusfile_lib = xyes; then
12899
12900
have_opusfile=yes
0 commit comments