configure
changeset 778 05c93f7af403
parent 758 76033c589321
child 780 74df2aa47195
equal deleted inserted replaced
777:92882ef2ab81 778:05c93f7af403
 11721     else
 11721     else
 11722         enable_music_cmd=no
 11722         enable_music_cmd=no
 11723     fi
 11723     fi
 11724     if test "x$enable_music_cmd" != xno; then
 11724     if test "x$enable_music_cmd" != xno; then
 11725         SOURCES="$SOURCES $srcdir/music_cmd.c"
 11725         SOURCES="$SOURCES $srcdir/music_cmd.c"
 11726         EXTRA_CFLAGS="$EXTRA_CFLAGS -DCMD_MUSIC"
 11726         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_CMD"
 11727     fi
 11727     fi
 11728 fi
 11728 fi
 11729 
 11729 
 11730 # Check whether --enable-music-wave was given.
 11730 # Check whether --enable-music-wave was given.
 11731 if test "${enable_music_wave+set}" = set; then :
 11731 if test "${enable_music_wave+set}" = set; then :
 11734   enable_music_wave=yes
 11734   enable_music_wave=yes
 11735 fi
 11735 fi
 11736 
 11736 
 11737 if test x$enable_music_wave = xyes; then
 11737 if test x$enable_music_wave = xyes; then
 11738     SOURCES="$SOURCES $srcdir/wavestream.c"
 11738     SOURCES="$SOURCES $srcdir/wavestream.c"
 11739     EXTRA_CFLAGS="$EXTRA_CFLAGS -DWAV_MUSIC"
 11739     EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_WAV"
 11740 fi
 11740 fi
 11741 
 11741 
 11742 # Check whether --enable-music-mod was given.
 11742 # Check whether --enable-music-mod was given.
 11743 if test "${enable_music_mod+set}" = set; then :
 11743 if test "${enable_music_mod+set}" = set; then :
 11744   enableval=$enable_music_mod;
 11744   enableval=$enable_music_mod;
 11943                     modplug_lib=`find_lib "libmodplug.so.*"`
 11943                     modplug_lib=`find_lib "libmodplug.so.*"`
 11944                 fi
 11944                 fi
 11945                 ;;
 11945                 ;;
 11946         esac
 11946         esac
 11947         SOURCES="$SOURCES $srcdir/*_modplug.c"
 11947         SOURCES="$SOURCES $srcdir/*_modplug.c"
 11948         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMODPLUG_MUSIC $MODPLUG_CFLAGS"
 11948         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MOD_MODPLUG $MODPLUG_CFLAGS"
 11949         if test x$enable_music_mod_modplug_shared = xyes && test x$modplug_lib != x; then
 11949         if test x$enable_music_mod_modplug_shared = xyes && test x$modplug_lib != x; then
 11950             echo "-- dynamic libmodplug -> $modplug_lib"
 11950             echo "-- dynamic libmodplug -> $modplug_lib"
 11951             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMODPLUG_DYNAMIC=\\\"$modplug_lib\\\""
 11951             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMODPLUG_DYNAMIC=\\\"$modplug_lib\\\""
 11952         else
 11952         else
 11953             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MODPLUG_LIBS"
 11953             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MODPLUG_LIBS"
 12021 
 12021 
 12022     if test "$LIBMIKMOD_CONFIG" != "no" ; then
 12022     if test "$LIBMIKMOD_CONFIG" != "no" ; then
 12023 
 12023 
 12024         CFLAGS_SAVED="$CFLAGS"
 12024         CFLAGS_SAVED="$CFLAGS"
 12025         LIBS_SAVED="$LIBS"
 12025         LIBS_SAVED="$LIBS"
 12026         CFLAGS="$CFLAGS -DLIBMIKMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`"
 12026         CFLAGS="$CFLAGS `$LIBMIKMOD_CONFIG --cflags`"
 12027         LIBS="$LIBS `$LIBMIKMOD_CONFIG --libs`"
 12027         LIBS="$LIBS `$LIBMIKMOD_CONFIG --libs`"
 12028         have_libmikmod=yes
 12028         have_libmikmod=yes
 12029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmikmod - version >= $libmikmod_ver" >&5
 12029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmikmod - version >= $libmikmod_ver" >&5
 12030 $as_echo_n "checking for libmikmod - version >= $libmikmod_ver... " >&6; }
 12030 $as_echo_n "checking for libmikmod - version >= $libmikmod_ver... " >&6; }
 12031         if test "$cross_compiling" = yes; then :
 12031         if test "$cross_compiling" = yes; then :
 12074                 if test x$mikmod_lib = x; then
 12074                 if test x$mikmod_lib = x; then
 12075                     mikmod_lib=`find_lib "libmikmod.so.*"`
 12075                     mikmod_lib=`find_lib "libmikmod.so.*"`
 12076                 fi
 12076                 fi
 12077                 ;;
 12077                 ;;
 12078         esac
 12078         esac
 12079         SOURCES="$SOURCES $srcdir/*_mod.c"
 12079         SOURCES="$SOURCES $srcdir/*_mikmod.c"
 12080         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`"
 12080         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MOD_MIKMOD `$LIBMIKMOD_CONFIG --cflags`"
 12081         if test x$enable_music_mod_mikmod_shared = xyes && test x$mikmod_lib != x; then
 12081         if test x$enable_music_mod_mikmod_shared = xyes && test x$mikmod_lib != x; then
 12082             echo "-- dynamic libmikmod -> $mikmod_lib"
 12082             echo "-- dynamic libmikmod -> $mikmod_lib"
 12083             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_DYNAMIC=\\\"$mikmod_lib\\\""
 12083             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_DYNAMIC=\\\"$mikmod_lib\\\""
 12084         else
 12084         else
 12085             EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`"
 12085             EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`"
 12101 else
 12101 else
 12102   enable_music_midi=yes
 12102   enable_music_midi=yes
 12103 fi
 12103 fi
 12104 
 12104 
 12105 if test x$enable_music_midi = xyes; then
 12105 if test x$enable_music_midi = xyes; then
 12106     EXTRA_CFLAGS="$EXTRA_CFLAGS -DMID_MUSIC"
 12106     EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID"
 12107     # Check whether --enable-music-midi-timidity was given.
 12107     # Check whether --enable-music-midi-timidity was given.
 12108 if test "${enable_music_midi_timidity+set}" = set; then :
 12108 if test "${enable_music_midi_timidity+set}" = set; then :
 12109   enableval=$enable_music_midi_timidity;
 12109   enableval=$enable_music_midi_timidity;
 12110 else
 12110 else
 12111   enable_music_midi_timidity=yes
 12111   enable_music_midi_timidity=yes
 12112 fi
 12112 fi
 12113 
 12113 
 12114     if test x$enable_music_midi_timidity = xyes; then
 12114     if test x$enable_music_midi_timidity = xyes; then
 12115         EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_TIMIDITY_MIDI -I\$(srcdir)/timidity"
 12115         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID_TIMIDITY -I\$(srcdir)/timidity"
 12116         SOURCES="$SOURCES $srcdir/timidity/*.c"
 12116         SOURCES="$SOURCES $srcdir/timidity/*.c"
 12117     fi
 12117     fi
 12118     # Check whether --enable-music-midi-native was given.
 12118     # Check whether --enable-music-midi-native was given.
 12119 if test "${enable_music_midi_native+set}" = set; then :
 12119 if test "${enable_music_midi_native+set}" = set; then :
 12120   enableval=$enable_music_midi_native;
 12120   enableval=$enable_music_midi_native;
 12140                 use_music_midi_native=yes_cpp
 12140                 use_music_midi_native=yes_cpp
 12141                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmidi"
 12141                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmidi"
 12142                 ;;
 12142                 ;;
 12143         esac
 12143         esac
 12144         if test x$use_music_midi_native = xyes; then
 12144         if test x$use_music_midi_native = xyes; then
 12145             EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I\$(srcdir)/native_midi"
 12145             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID_NATIVE -I\$(srcdir)/native_midi"
 12146             SOURCES="$SOURCES $srcdir/native_midi/*.c"
 12146             SOURCES="$SOURCES $srcdir/native_midi/*.c"
 12147         elif test x$use_music_midi_native = xyes_cpp; then
 12147         elif test x$use_music_midi_native = xyes_cpp; then
 12148             EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I\$(srcdir)/native_midi"
 12148             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID_NATIVE -I\$(srcdir)/native_midi"
 12149             SOURCES="$SOURCES $srcdir/native_midi/*.c"
 12149             SOURCES="$SOURCES $srcdir/native_midi/*.c"
 12150             SOURCES_CXX="$SOURCES_CXX $srcdir/native_midi/*.cpp"
 12150             SOURCES_CXX="$SOURCES_CXX $srcdir/native_midi/*.cpp"
 12151         fi
 12151         fi
 12152     fi
 12152     fi
 12153     # Check whether --enable-music-midi-fluidsynth was given.
 12153     # Check whether --enable-music-midi-fluidsynth was given.
 12226                         fluidsynth_lib=`find_lib "libfluidsynth.so.*"`
 12226                         fluidsynth_lib=`find_lib "libfluidsynth.so.*"`
 12227                     fi
 12227                     fi
 12228                     ;;
 12228                     ;;
 12229             esac
 12229             esac
 12230             SOURCES="$SOURCES $srcdir/dynamic_fluidsynth.c $srcdir/fluidsynth.c"
 12230             SOURCES="$SOURCES $srcdir/dynamic_fluidsynth.c $srcdir/fluidsynth.c"
 12231             EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_FLUIDSYNTH_MIDI"
 12231             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID_FLUIDSYNTH"
 12232             if test x$enable_music_midi_fluidsynth_shared = xyes && test x$fluidsynth_lib != x; then
 12232             if test x$enable_music_midi_fluidsynth_shared = xyes && test x$fluidsynth_lib != x; then
 12233                 echo "-- dynamic libfluidsyth -> $fluidsynth_lib"
 12233                 echo "-- dynamic libfluidsyth -> $fluidsynth_lib"
 12234                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLUIDSYNTH_DYNAMIC=\\\"$fluidsynth_lib\\\""
 12234                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLUIDSYNTH_DYNAMIC=\\\"$fluidsynth_lib\\\""
 12235             else
 12235             else
 12236                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lfluidsynth"
 12236                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lfluidsynth"
 12336                         ogg_lib=`find_lib "libvorbisidec.so.*"`
 12336                         ogg_lib=`find_lib "libvorbisidec.so.*"`
 12337                     fi
 12337                     fi
 12338                     ;;
 12338                     ;;
 12339             esac
 12339             esac
 12340             SOURCES="$SOURCES $srcdir/*_ogg.c"
 12340             SOURCES="$SOURCES $srcdir/*_ogg.c"
 12341             EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC -DOGG_USE_TREMOR"
 12341             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_OGG -DOGG_USE_TREMOR"
 12342             if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
 12342             if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
 12343                 echo "-- dynamic libvorbisidec -> $ogg_lib"
 12343                 echo "-- dynamic libvorbisidec -> $ogg_lib"
 12344                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
 12344                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
 12345             else
 12345             else
 12346                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec -lvorbis"
 12346                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec -lvorbis"
 12414                         ogg_lib=`find_lib "libvorbisfile.so.*"`
 12414                         ogg_lib=`find_lib "libvorbisfile.so.*"`
 12415                     fi
 12415                     fi
 12416                     ;;
 12416                     ;;
 12417             esac
 12417             esac
 12418             SOURCES="$SOURCES $srcdir/*_ogg.c"
 12418             SOURCES="$SOURCES $srcdir/*_ogg.c"
 12419             EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC"
 12419             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_OGG"
 12420             if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
 12420             if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
 12421                 echo "-- dynamic libvorbisfile -> $ogg_lib"
 12421                 echo "-- dynamic libvorbisfile -> $ogg_lib"
 12422                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
 12422                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
 12423             else
 12423             else
 12424                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisfile -lvorbis"
 12424                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisfile -lvorbis"
 12550                         flac_lib=`find_lib "libFLAC.so.*"`
 12550                         flac_lib=`find_lib "libFLAC.so.*"`
 12551                     fi
 12551                     fi
 12552                     ;;
 12552                     ;;
 12553             esac
 12553             esac
 12554             SOURCES="$SOURCES $srcdir/*_flac.c"
 12554             SOURCES="$SOURCES $srcdir/*_flac.c"
 12555             EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_MUSIC"
 12555             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_FLAC"
 12556             if test x$enable_music_flac_shared = xyes && test x$flac_lib != x; then
 12556             if test x$enable_music_flac_shared = xyes && test x$flac_lib != x; then
 12557                 echo "-- dynamic libFLAC -> $flac_lib"
 12557                 echo "-- dynamic libFLAC -> $flac_lib"
 12558                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_DYNAMIC=\\\"$flac_lib\\\""
 12558                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_DYNAMIC=\\\"$flac_lib\\\""
 12559             else
 12559             else
 12560                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lFLAC"
 12560                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lFLAC"
 12842                 ;;
 12842                 ;;
 12843             *)
 12843             *)
 12844                 smpeg_lib=`find_lib "libsmpeg2*.so.*"`
 12844                 smpeg_lib=`find_lib "libsmpeg2*.so.*"`
 12845                 ;;
 12845                 ;;
 12846         esac
 12846         esac
 12847         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MUSIC $SMPEG_CFLAGS"
 12847         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MP3_SMPEG $SMPEG_CFLAGS"
 12848         if test x$enable_music_mp3_smpeg_shared = xyes && test x$smpeg_lib != x; then
 12848         if test x$enable_music_mp3_smpeg_shared = xyes && test x$smpeg_lib != x; then
 12849             echo "-- dynamic libsmpeg -> $smpeg_lib"
 12849             echo "-- dynamic libsmpeg -> $smpeg_lib"
 12850             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_DYNAMIC=\\\"$smpeg_lib\\\""
 12850             EXTRA_CFLAGS="$EXTRA_CFLAGS -DSMPEG_DYNAMIC=\\\"$smpeg_lib\\\""
 12851         else
 12851         else
 12852             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SMPEG_LIBS"
 12852             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SMPEG_LIBS"
 12853         fi
 12853         fi
 12854     else
 12854     else
 12855         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find SMPEG library (http://icculus.org/smpeg/)" >&5
 12855         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find SMPEG library (http://icculus.org/smpeg/)" >&5
 12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libmad" >&5
 12891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libmad" >&5
 12892 $as_echo "$have_libmad" >&6; }
 12892 $as_echo "$have_libmad" >&6; }
 12893     if test x$have_libmad = xyes; then
 12893     if test x$have_libmad = xyes; then
 12894         SOURCES="$SOURCES $srcdir/music_mad.c"
 12894         SOURCES="$SOURCES $srcdir/music_mad.c"
 12895         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MAD_MUSIC"
 12895         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MP3_MAD"
 12896         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad"
 12896         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad"
 12897     else
 12897     else
 12898         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&5
 12898         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&5
 12899 $as_echo "$as_me: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&2;}
 12899 $as_echo "$as_me: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&2;}
 12900     fi
 12900     fi
 12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 12934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libmpg123" >&5
 12934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libmpg123" >&5
 12935 $as_echo "$have_libmpg123" >&6; }
 12935 $as_echo "$have_libmpg123" >&6; }
 12936     if test x$have_libmpg123 = xyes; then
 12936     if test x$have_libmpg123 = xyes; then
 12937         SOURCES="$SOURCES $srcdir/music_mpg.c"
 12937         SOURCES="$SOURCES $srcdir/music_mpg.c"
 12938         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MPG_MUSIC"
 12938         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MP3_MPG123"
 12939         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmpg123"
 12939         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmpg123"
 12940     else
 12940     else
 12941         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find mpg123 library (https://www.mpg123.de)" >&5
 12941         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find mpg123 library (https://www.mpg123.de)" >&5
 12942 $as_echo "$as_me: WARNING: *** Unable to find mpg123 library (https://www.mpg123.de)" >&2;}
 12942 $as_echo "$as_me: WARNING: *** Unable to find mpg123 library (https://www.mpg123.de)" >&2;}
 12943     fi
 12943     fi
 12944 fi
 12944 fi
 12945 
 12945 
 12946 if test x$have_smpeg = xyes -o x$have_libmad = xyes -o x$have_libmpg123; then
 12946 if test x$have_smpeg = xyes -o x$have_libmad = xyes -o x$have_libmpg123; then
 12947 	SOURCES="$SOURCES $srcdir/*_mp3.c"
 12947     SOURCES="$SOURCES $srcdir/load_mp3.c"
 12948 else
 12948 else
 12949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MP3 support disabled" >&5
 12949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MP3 support disabled" >&5
 12950 $as_echo "$as_me: WARNING: MP3 support disabled" >&2;}
 12950 $as_echo "$as_me: WARNING: MP3 support disabled" >&2;}
 12951 fi
 12951 fi
 12952 
 12952