configure
上传用户:nini_0081
上传日期:2022-07-21
资源大小:2628k
文件大小:466k
- return new_str;
- }
- int main (int argc, char *argv[])
- {
- int major, minor, micro;
- char *tmp_version;
- /* This hangs on some systems (?)
- system ("touch conf.sdltest");
- */
- { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = my_strdup("$min_sdl_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
- printf("%s, bad version stringn", "$min_sdl_version");
- exit(1);
- }
- if (($sdl_major_version > major) ||
- (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
- (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("n*** 'sdl-config --version' returned %d.%d.%d, but the minimum versionn", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
- printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it isn", major, minor, micro);
- printf("*** best to upgrade to the required version.n");
- printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIGn");
- printf("*** to point to the correct copy of sdl-config, and remove the filen");
- printf("*** config.cache before re-running configuren");
- return 1;
- }
- }
- _ACEOF
- rm -f conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
- else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ( exit $ac_status )
- no_sdl=yes
- fi
- rm -rf conftest.dSYM
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- fi
- CFLAGS="$ac_save_CFLAGS"
- CXXFLAGS="$ac_save_CXXFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- if test "x$no_sdl" = x ; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:$LINENO: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "x$no_sdl" = x ; then
- :
- else
- if test "$SDL_CONFIG" = "no" ; then
- echo "*** The sdl-config script installed by SDL could not be found"
- echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
- echo "*** your path, or set the SDL_CONFIG environment variable to the"
- echo "*** full path to sdl-config."
- else
- if test -f conf.sdltest ; then
- :
- else
- echo "*** Could not run SDL test program, checking why..."
- CFLAGS="$CFLAGS $SDL_CFLAGS"
- CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
- LIBS="$LIBS $SDL_LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <stdio.h>
- #include "SDL.h"
- int main(int argc, char *argv[])
- { return 0; }
- #undef main
- #define main K_and_R_C_main
- int
- main ()
- {
- return 0;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then
- echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding SDL or finding the wrong"
- echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means SDL was incorrectly installed"
- echo "*** or that you have moved SDL since it was installed. In the latter case, you"
- echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
- fi
- rm -rf conftest.dSYM
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- CFLAGS="$ac_save_CFLAGS"
- CXXFLAGS="$ac_save_CXXFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- SDL_CFLAGS=""
- SDL_LIBS=""
- { { $as_echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
- $as_echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
- { (exit 1); exit 1; }; }
- fi
- rm -f conf.sdltest
- EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SDL_LIBS"
- { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
- $as_echo_n "checking for pow in -lm... " >&6; }
- if test "${ac_cv_lib_m_pow+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char pow ();
- int
- main ()
- {
- return pow ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then
- ac_cv_lib_m_pow=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_m_pow=no
- fi
- rm -rf conftest.dSYM
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
- $as_echo "$ac_cv_lib_m_pow" >&6; }
- if test "x$ac_cv_lib_m_pow" = x""yes; then
- LIBM="-lm"
- fi
- # Check whether --enable-music-cmd was given.
- if test "${enable_music_cmd+set}" = set; then
- enableval=$enable_music_cmd;
- else
- enable_music_cmd=detect
- fi
- if test "x$enable_music_cmd" != xno; then
- for ac_func in fork vfork
- do
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
- $as_echo_n "checking for $ac_func... " >&6; }
- if { as_var=$as_ac_var; eval "test "${$as_var+set}" = set"; }; then
- $as_echo_n "(cached) " >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $ac_func innocuous_$ac_func
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $ac_func
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char $ac_func ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined __stub_$ac_func || defined __stub___$ac_func
- choke me
- #endif
- int
- main ()
- {
- return $ac_func ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then
- eval "$as_ac_var=yes"
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
- fi
- rm -rf conftest.dSYM
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- fi
- ac_res=`eval 'as_val=${'$as_ac_var'}
- $as_echo "$as_val"'`
- { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- as_val=`eval 'as_val=${'$as_ac_var'}
- $as_echo "$as_val"'`
- if test "x$as_val" = x""yes; then
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- if test "x$ac_cv_func_fork" = "xyes"; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_FORK"
- elif test "x$ac_cv_func_vfork" = "xyes"; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_VFORK"
- elif test "x$enable_music_cmd" = "xyes"; then
- { { $as_echo "$as_me:$LINENO: error: external music player not available on your platform" >&5
- $as_echo "$as_me: error: external music player not available on your platform" >&2;}
- { (exit 1); exit 1; }; }
- else
- enable_music_cmd=no
- fi
- if test "x$enable_music_cmd" != xno; then
- SOURCES="$SOURCES $srcdir/music_cmd.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DCMD_MUSIC"
- fi
- fi
- # Check whether --enable-music-wave was given.
- if test "${enable_music_wave+set}" = set; then
- enableval=$enable_music_wave;
- else
- enable_music_wave=yes
- fi
- if test x$enable_music_wave = xyes; then
- SOURCES="$SOURCES $srcdir/wavestream.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DWAV_MUSIC"
- fi
- # Check whether --enable-music-mod was given.
- if test "${enable_music_mod+set}" = set; then
- enableval=$enable_music_mod;
- else
- enable_music_mod=yes
- fi
- # Check whether --enable-music-mod-shared was given.
- if test "${enable_music_mod_shared+set}" = set; then
- enableval=$enable_music_mod_shared;
- else
- enable_music_mod_shared=yes
- fi
- if test x$enable_music_mod = xyes; then
- have_libmikmod=no
- libmikmod_maj=3
- libmikmod_min=1
- libmikmod_rev=10
- libmikmod_ver="$libmikmod_maj.$libmikmod_min.$libmikmod_rev"
- # Extract the first word of "libmikmod-config", so it can be a program name with args.
- set dummy libmikmod-config; ac_word=$2
- { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_LIBMIKMOD_CONFIG+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- case $LIBMIKMOD_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_LIBMIKMOD_CONFIG="$LIBMIKMOD_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_LIBMIKMOD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_LIBMIKMOD_CONFIG" && ac_cv_path_LIBMIKMOD_CONFIG="no"
- ;;
- esac
- fi
- LIBMIKMOD_CONFIG=$ac_cv_path_LIBMIKMOD_CONFIG
- if test -n "$LIBMIKMOD_CONFIG"; then
- { $as_echo "$as_me:$LINENO: result: $LIBMIKMOD_CONFIG" >&5
- $as_echo "$LIBMIKMOD_CONFIG" >&6; }
- else
- { $as_echo "$as_me:$LINENO: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$LIBMIKMOD_CONFIG" != "no" ; then
- CFLAGS_SAVED="$CFLAGS"
- LIBS_SAVED="$LIBS"
- CFLAGS="$CFLAGS -DLIBMIKMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`"
- LIBS="$LIBS `$LIBMIKMOD_CONFIG --libs`"
- have_libmikmod=yes
- { $as_echo "$as_me:$LINENO: checking for libmikmod - version >= $libmikmod_ver" >&5
- $as_echo_n "checking for libmikmod - version >= $libmikmod_ver... " >&6; }
- if test "$cross_compiling" = yes; then
- echo $ac_n "cross compiling; assumed OK... $ac_c"
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include "mikmod.h"
- #include "stdio.h"
- int main(int argc, char **argv)
- {
- long maj=$libmikmod_maj,min=$libmikmod_min,rev=$libmikmod_rev,ver=MikMod_GetVersion();
- /*printf("(%d.%d.%d) ",ver>>16,(ver>>8)&0xff,ver&0xff);*/
- if(ver>=((maj<<16)|(min<<8)|(rev))) {
- printf("yesn");
- return 0;
- }
- printf("non*** libmikmod is older than %d.%d.%d, not using.n",maj,min,rev);
- return 1;
- }
- _ACEOF
- rm -f conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
- else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ( exit $ac_status )
- have_libmikmod=no; CFLAGS="$CFLAGS_SAVED"; LIBS="$LIBS_SAVED"
- fi
- rm -rf conftest.dSYM
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- fi
- fi
- if test x$have_libmikmod = xyes; then
- case "$host" in
- *-*-darwin*)
- mikmod_lib=`find_lib libmikmod.dylib`
- ;;
- *-*-cygwin* | *-*-mingw32*)
- mikmod_lib=`find_lib "mikmod*.dll"`
- ;;
- *)
- mikmod_lib=`find_lib "libmikmod*.so.[0-9]"`
- if test x$mikmod_lib = x; then
- mikmod_lib=`find_lib "libmikmod*.so.[0-9]*"`
- fi
- ;;
- esac
- SOURCES="$SOURCES $srcdir/*_mod.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`"
- if test x$enable_music_mod_shared = xyes && test x$mikmod_lib != x; then
- echo "-- dynamic libmikmod -> $mikmod_lib"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_DYNAMIC=\"$mikmod_lib\""
- else
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`"
- fi
- else
- { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find MikMod library (http://mikmod.raphnet.net/)" >&5
- $as_echo "$as_me: WARNING: *** Unable to find MikMod library (http://mikmod.raphnet.net/)" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: MOD support disabled" >&5
- $as_echo "$as_me: WARNING: MOD support disabled" >&2;}
- fi
- fi
- # Check whether --enable-music-midi was given.
- if test "${enable_music_midi+set}" = set; then
- enableval=$enable_music_midi;
- else
- enable_music_midi=yes
- fi
- if test x$enable_music_midi = xyes; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DMID_MUSIC"
- # Check whether --enable-music-timidity-midi was given.
- if test "${enable_music_timidity_midi+set}" = set; then
- enableval=$enable_music_timidity_midi;
- else
- enable_music_timidity_midi=yes
- fi
- if test x$enable_music_timidity_midi = xyes; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_TIMIDITY_MIDI -I$(srcdir)/timidity"
- SOURCES="$SOURCES $srcdir/timidity/*.c"
- fi
- # Check whether --enable-music-native-midi was given.
- if test "${enable_music_native_midi+set}" = set; then
- enableval=$enable_music_native_midi;
- else
- enable_music_native_midi=yes
- fi
- if test x$enable_music_native_midi = xyes; then
- use_music_native_midi=no
- case "$host" in
- *-*-cygwin* | *-*-mingw32*)
- use_music_native_midi=yes
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm"
- ;;
- *-*-darwin*)
- use_music_native_midi=yes
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,CoreServices"
- ;;
- esac
- if test x$use_music_native_midi = xyes; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I$(srcdir)/native_midi"
- SOURCES="$SOURCES $srcdir/native_midi/*.c"
- fi
- fi
- # Check whether --enable-music-native-midi-gpl was given.
- if test "${enable_music_native_midi_gpl+set}" = set; then
- enableval=$enable_music_native_midi_gpl;
- else
- enable_music_native_midi_gpl=no
- fi
- if test x$enable_music_native_midi_gpl = xyes; then
- use_music_native_midi_gpl=no
- case "$host" in
- *-*-linux* | *-*-freebsd*)
- use_music_native_midi_gpl=yes
- ;;
- esac
- if test x$use_music_native_midi_gpl = xyes; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I$(srcdir)/native_midi"
- SOURCES="$SOURCES $srcdir/native_midi_gpl/*.c"
- fi
- fi
- fi
- # Check whether --enable-music-ogg was given.
- if test "${enable_music_ogg+set}" = set; then
- enableval=$enable_music_ogg;
- else
- enable_music_ogg=yes
- fi
- # Check whether --enable-music-ogg-tremor was given.
- if test "${enable_music_ogg_tremor+set}" = set; then
- enableval=$enable_music_ogg_tremor;
- else
- enable_music_ogg_tremor=no
- fi
- # Check whether --enable-music-ogg-shared was given.
- if test "${enable_music_ogg_shared+set}" = set; then
- enableval=$enable_music_ogg_shared;
- else
- enable_music_ogg_shared=yes
- fi
- if test x$enable_music_ogg = xyes; then
- if test x$enable_music_ogg_tremor = xyes; then
- if test "${ac_cv_header_tremor_ivorbisfile_h+set}" = set; then
- { $as_echo "$as_me:$LINENO: checking for tremor/ivorbisfile.h" >&5
- $as_echo_n "checking for tremor/ivorbisfile.h... " >&6; }
- if test "${ac_cv_header_tremor_ivorbisfile_h+set}" = set; then
- $as_echo_n "(cached) " >&6
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tremor_ivorbisfile_h" >&5
- $as_echo "$ac_cv_header_tremor_ivorbisfile_h" >&6; }
- else
- # Is the header compilable?
- { $as_echo "$as_me:$LINENO: checking tremor/ivorbisfile.h usability" >&5
- $as_echo_n "checking tremor/ivorbisfile.h usability... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <tremor/ivorbisfile.h>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (ac_try="$ac_compile"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- $as_echo "$ac_header_compiler" >&6; }
- # Is the header present?
- { $as_echo "$as_me:$LINENO: checking tremor/ivorbisfile.h presence" >&5
- $as_echo_n "checking tremor/ivorbisfile.h presence... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <tremor/ivorbisfile.h>
- _ACEOF
- if { (ac_try="$ac_cpp conftest.$ac_ext"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- $as_echo "$ac_header_preproc" >&6; }
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { $as_echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&5
- $as_echo "$as_me: WARNING: tremor/ivorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: proceeding with the compiler's result" >&5
- $as_echo "$as_me: WARNING: tremor/ivorbisfile.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { $as_echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: present but cannot be compiled" >&5
- $as_echo "$as_me: WARNING: tremor/ivorbisfile.h: present but cannot be compiled" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: check for missing prerequisite headers?" >&5
- $as_echo "$as_me: WARNING: tremor/ivorbisfile.h: check for missing prerequisite headers?" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: see the Autoconf documentation" >&5
- $as_echo "$as_me: WARNING: tremor/ivorbisfile.h: see the Autoconf documentation" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: section "Present But Cannot Be Compiled"" >&5
- $as_echo "$as_me: WARNING: tremor/ivorbisfile.h: section "Present But Cannot Be Compiled"" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: proceeding with the preprocessor's result" >&5
- $as_echo "$as_me: WARNING: tremor/ivorbisfile.h: proceeding with the preprocessor's result" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: in the future, the compiler will take precedence" >&5
- $as_echo "$as_me: WARNING: tremor/ivorbisfile.h: in the future, the compiler will take precedence" >&2;}
- ;;
- esac
- { $as_echo "$as_me:$LINENO: checking for tremor/ivorbisfile.h" >&5
- $as_echo_n "checking for tremor/ivorbisfile.h... " >&6; }
- if test "${ac_cv_header_tremor_ivorbisfile_h+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- ac_cv_header_tremor_ivorbisfile_h=$ac_header_preproc
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tremor_ivorbisfile_h" >&5
- $as_echo "$ac_cv_header_tremor_ivorbisfile_h" >&6; }
- fi
- if test "x$ac_cv_header_tremor_ivorbisfile_h" = x""yes; then
- have_tremor_hdr=yes
- fi
- { $as_echo "$as_me:$LINENO: checking for ov_open_callbacks in -lvorbisidec" >&5
- $as_echo_n "checking for ov_open_callbacks in -lvorbisidec... " >&6; }
- if test "${ac_cv_lib_vorbisidec_ov_open_callbacks+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lvorbisidec $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char ov_open_callbacks ();
- int
- main ()
- {
- return ov_open_callbacks ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then
- ac_cv_lib_vorbisidec_ov_open_callbacks=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_vorbisidec_ov_open_callbacks=no
- fi
- rm -rf conftest.dSYM
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisidec_ov_open_callbacks" >&5
- $as_echo "$ac_cv_lib_vorbisidec_ov_open_callbacks" >&6; }
- if test "x$ac_cv_lib_vorbisidec_ov_open_callbacks" = x""yes; then
- have_tremor_lib=yes
- fi
- if test x$have_tremor_hdr = xyes -a x$have_tremor_lib = xyes; then
- case "$host" in
- *-*-darwin*)
- ogg_lib=`find_lib libvorbisidec.dylib`
- if test x$ogg_lib = x; then
- ogg_lib=`find_lib libvorbisidec.[0-9]`
- fi
- if test x$ogg_lib = x; then
- ogg_lib=`find_lib libvorbisidec.[0-9]*`
- fi
- ;;
- *-*-cygwin* | *-*-mingw32*)
- ogg_lib=`find_lib "vorbisidec*.dll"`
- ;;
- *)
- ogg_lib=`find_lib "libvorbisidec.so.[0-9]"`
- if test x$ogg_lib = x; then
- ogg_lib=`find_lib "libvorbisidec.so.[0-9]*"`
- fi
- ;;
- esac
- SOURCES="$SOURCES $srcdir/*_ogg.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC -DOGG_USE_TREMOR"
- if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
- echo "-- dynamic libvorbisidec -> $ogg_lib"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\"$ogg_lib\""
- else
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec -lvorbis -logg $LIBM"
- fi
- else
- { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)" >&5
- $as_echo "$as_me: WARNING: *** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: Ogg Vorbis support disabled" >&5
- $as_echo "$as_me: WARNING: Ogg Vorbis support disabled" >&2;}
- fi
- else
- if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
- { $as_echo "$as_me:$LINENO: checking for vorbis/vorbisfile.h" >&5
- $as_echo_n "checking for vorbis/vorbisfile.h... " >&6; }
- if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
- $as_echo_n "(cached) " >&6
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisfile_h" >&5
- $as_echo "$ac_cv_header_vorbis_vorbisfile_h" >&6; }
- else
- # Is the header compilable?
- { $as_echo "$as_me:$LINENO: checking vorbis/vorbisfile.h usability" >&5
- $as_echo_n "checking vorbis/vorbisfile.h usability... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <vorbis/vorbisfile.h>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (ac_try="$ac_compile"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- $as_echo "$ac_header_compiler" >&6; }
- # Is the header present?
- { $as_echo "$as_me:$LINENO: checking vorbis/vorbisfile.h presence" >&5
- $as_echo_n "checking vorbis/vorbisfile.h presence... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <vorbis/vorbisfile.h>
- _ACEOF
- if { (ac_try="$ac_cpp conftest.$ac_ext"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- $as_echo "$ac_header_preproc" >&6; }
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&5
- $as_echo "$as_me: WARNING: vorbis/vorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: proceeding with the compiler's result" >&5
- $as_echo "$as_me: WARNING: vorbis/vorbisfile.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: present but cannot be compiled" >&5
- $as_echo "$as_me: WARNING: vorbis/vorbisfile.h: present but cannot be compiled" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: check for missing prerequisite headers?" >&5
- $as_echo "$as_me: WARNING: vorbis/vorbisfile.h: check for missing prerequisite headers?" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: see the Autoconf documentation" >&5
- $as_echo "$as_me: WARNING: vorbis/vorbisfile.h: see the Autoconf documentation" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: section "Present But Cannot Be Compiled"" >&5
- $as_echo "$as_me: WARNING: vorbis/vorbisfile.h: section "Present But Cannot Be Compiled"" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: proceeding with the preprocessor's result" >&5
- $as_echo "$as_me: WARNING: vorbis/vorbisfile.h: proceeding with the preprocessor's result" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: in the future, the compiler will take precedence" >&5
- $as_echo "$as_me: WARNING: vorbis/vorbisfile.h: in the future, the compiler will take precedence" >&2;}
- ;;
- esac
- { $as_echo "$as_me:$LINENO: checking for vorbis/vorbisfile.h" >&5
- $as_echo_n "checking for vorbis/vorbisfile.h... " >&6; }
- if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- ac_cv_header_vorbis_vorbisfile_h=$ac_header_preproc
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisfile_h" >&5
- $as_echo "$ac_cv_header_vorbis_vorbisfile_h" >&6; }
- fi
- if test "x$ac_cv_header_vorbis_vorbisfile_h" = x""yes; then
- have_ogg_hdr=yes
- fi
- { $as_echo "$as_me:$LINENO: checking for ov_open_callbacks in -lvorbisfile" >&5
- $as_echo_n "checking for ov_open_callbacks in -lvorbisfile... " >&6; }
- if test "${ac_cv_lib_vorbisfile_ov_open_callbacks+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lvorbisfile $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char ov_open_callbacks ();
- int
- main ()
- {
- return ov_open_callbacks ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then
- ac_cv_lib_vorbisfile_ov_open_callbacks=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_vorbisfile_ov_open_callbacks=no
- fi
- rm -rf conftest.dSYM
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5
- $as_echo "$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6; }
- if test "x$ac_cv_lib_vorbisfile_ov_open_callbacks" = x""yes; then
- have_ogg_lib=yes
- fi
- if test x$have_ogg_hdr = xyes -a x$have_ogg_lib = xyes; then
- case "$host" in
- *-*-darwin*)
- ogg_lib=`find_lib libvorbisfile.dylib`
- ;;
- *-*-cygwin* | *-*-mingw32*)
- ogg_lib=`find_lib "libvorbisfile*.dll"`
- ;;
- *)
- ogg_lib=`find_lib "libvorbisfile.so.[0-9]"`
- if test x$ogg_lib = x; then
- ogg_lib=`find_lib "libvorbisfile.so.[0-9]*"`
- fi
- ;;
- esac
- SOURCES="$SOURCES $srcdir/*_ogg.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC"
- if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
- echo "-- dynamic libvorbisfile -> $ogg_lib"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\"$ogg_lib\""
- else
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisfile -lvorbis -logg $LIBM"
- fi
- else
- { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find Ogg Vorbis library (http://www.xiph.org/)" >&5
- $as_echo "$as_me: WARNING: *** Unable to find Ogg Vorbis library (http://www.xiph.org/)" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: Ogg Vorbis support disabled" >&5
- $as_echo "$as_me: WARNING: Ogg Vorbis support disabled" >&2;}
- fi
- fi
- fi
- libflac_ver=8
- # Check whether --enable-music-flac was given.
- if test "${enable_music_flac+set}" = set; then
- enableval=$enable_music_flac;
- else
- enable_music_flac=yes
- fi
- # Check whether --enable-music-flac-shared was given.
- if test "${enable_music_flac_shared+set}" = set; then
- enableval=$enable_music_flac_shared;
- else
- enable_music_flac_shared=yes
- fi
- if test x$enable_music_flac = xyes; then
- if test "${ac_cv_header_FLAC_export_h+set}" = set; then
- { $as_echo "$as_me:$LINENO: checking for FLAC/export.h" >&5
- $as_echo_n "checking for FLAC/export.h... " >&6; }
- if test "${ac_cv_header_FLAC_export_h+set}" = set; then
- $as_echo_n "(cached) " >&6
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_export_h" >&5
- $as_echo "$ac_cv_header_FLAC_export_h" >&6; }
- else
- # Is the header compilable?
- { $as_echo "$as_me:$LINENO: checking FLAC/export.h usability" >&5
- $as_echo_n "checking FLAC/export.h usability... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <FLAC/export.h>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (ac_try="$ac_compile"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- $as_echo "$ac_header_compiler" >&6; }
- # Is the header present?
- { $as_echo "$as_me:$LINENO: checking FLAC/export.h presence" >&5
- $as_echo_n "checking FLAC/export.h presence... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <FLAC/export.h>
- _ACEOF
- if { (ac_try="$ac_cpp conftest.$ac_ext"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- $as_echo "$ac_header_preproc" >&6; }
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/export.h: accepted by the compiler, rejected by the preprocessor!" >&5
- $as_echo "$as_me: WARNING: FLAC/export.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/export.h: proceeding with the compiler's result" >&5
- $as_echo "$as_me: WARNING: FLAC/export.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/export.h: present but cannot be compiled" >&5
- $as_echo "$as_me: WARNING: FLAC/export.h: present but cannot be compiled" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/export.h: check for missing prerequisite headers?" >&5
- $as_echo "$as_me: WARNING: FLAC/export.h: check for missing prerequisite headers?" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/export.h: see the Autoconf documentation" >&5
- $as_echo "$as_me: WARNING: FLAC/export.h: see the Autoconf documentation" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/export.h: section "Present But Cannot Be Compiled"" >&5
- $as_echo "$as_me: WARNING: FLAC/export.h: section "Present But Cannot Be Compiled"" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/export.h: proceeding with the preprocessor's result" >&5
- $as_echo "$as_me: WARNING: FLAC/export.h: proceeding with the preprocessor's result" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/export.h: in the future, the compiler will take precedence" >&5
- $as_echo "$as_me: WARNING: FLAC/export.h: in the future, the compiler will take precedence" >&2;}
- ;;
- esac
- { $as_echo "$as_me:$LINENO: checking for FLAC/export.h" >&5
- $as_echo_n "checking for FLAC/export.h... " >&6; }
- if test "${ac_cv_header_FLAC_export_h+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- ac_cv_header_FLAC_export_h=$ac_header_preproc
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_export_h" >&5
- $as_echo "$ac_cv_header_FLAC_export_h" >&6; }
- fi
- if test "x$ac_cv_header_FLAC_export_h" = x""yes; then
- have_flac_export=yes
- fi
- if test x$have_flac_export = xyes; then
- LIBS_SAVED="$LIBS"
- LIBS="-lFLAC"
- { $as_echo "$as_me:$LINENO: checking for libflac so-name version >= $libflac_ver" >&5
- $as_echo_n "checking for libflac so-name version >= $libflac_ver... " >&6; }
- if test "$cross_compiling" = yes; then
- { { $as_echo "$as_me:$LINENO: error: in `$ac_pwd':" >&5
- $as_echo "$as_me: error: in `$ac_pwd':" >&2;}
- { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
- See `config.log' for more details." >&5
- $as_echo "$as_me: error: cannot run test program while cross compiling
- See `config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }; }
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include "FLAC/export.h"
- #include "stdio.h"
- int main( int argc, char *argv[] ) {
- #if defined(FLAC_API_VERSION_CURRENT) && (FLAC_API_VERSION_CURRENT >= $libflac_ver)
- return 0;
- #else
- return 1;
- #endif
- }
- _ACEOF
- rm -f conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- have_flac_ver=yes
- else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ( exit $ac_status )
- have_flac_ver=no
- fi
- rm -rf conftest.dSYM
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- fi
- LIBS="$LIBS_SAVED"
- { $as_echo "$as_me:$LINENO: result: $have_flac_ver" >&5
- $as_echo "$have_flac_ver" >&6; }
- fi
- if test x$have_flac_ver = xyes; then
- if test "${ac_cv_header_FLAC_stream_decoder_h+set}" = set; then
- { $as_echo "$as_me:$LINENO: checking for FLAC/stream_decoder.h" >&5
- $as_echo_n "checking for FLAC/stream_decoder.h... " >&6; }
- if test "${ac_cv_header_FLAC_stream_decoder_h+set}" = set; then
- $as_echo_n "(cached) " >&6
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_stream_decoder_h" >&5
- $as_echo "$ac_cv_header_FLAC_stream_decoder_h" >&6; }
- else
- # Is the header compilable?
- { $as_echo "$as_me:$LINENO: checking FLAC/stream_decoder.h usability" >&5
- $as_echo_n "checking FLAC/stream_decoder.h usability... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <FLAC/stream_decoder.h>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (ac_try="$ac_compile"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- $as_echo "$ac_header_compiler" >&6; }
- # Is the header present?
- { $as_echo "$as_me:$LINENO: checking FLAC/stream_decoder.h presence" >&5
- $as_echo_n "checking FLAC/stream_decoder.h presence... " >&6; }
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <FLAC/stream_decoder.h>
- _ACEOF
- if { (ac_try="$ac_cpp conftest.$ac_ext"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- $as_echo "$ac_header_preproc" >&6; }
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: accepted by the compiler, rejected by the preprocessor!" >&5
- $as_echo "$as_me: WARNING: FLAC/stream_decoder.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: proceeding with the compiler's result" >&5
- $as_echo "$as_me: WARNING: FLAC/stream_decoder.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: present but cannot be compiled" >&5
- $as_echo "$as_me: WARNING: FLAC/stream_decoder.h: present but cannot be compiled" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: check for missing prerequisite headers?" >&5
- $as_echo "$as_me: WARNING: FLAC/stream_decoder.h: check for missing prerequisite headers?" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: see the Autoconf documentation" >&5
- $as_echo "$as_me: WARNING: FLAC/stream_decoder.h: see the Autoconf documentation" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: section "Present But Cannot Be Compiled"" >&5
- $as_echo "$as_me: WARNING: FLAC/stream_decoder.h: section "Present But Cannot Be Compiled"" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: proceeding with the preprocessor's result" >&5
- $as_echo "$as_me: WARNING: FLAC/stream_decoder.h: proceeding with the preprocessor's result" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: in the future, the compiler will take precedence" >&5
- $as_echo "$as_me: WARNING: FLAC/stream_decoder.h: in the future, the compiler will take precedence" >&2;}
- ;;
- esac
- { $as_echo "$as_me:$LINENO: checking for FLAC/stream_decoder.h" >&5
- $as_echo_n "checking for FLAC/stream_decoder.h... " >&6; }
- if test "${ac_cv_header_FLAC_stream_decoder_h+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- ac_cv_header_FLAC_stream_decoder_h=$ac_header_preproc
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_stream_decoder_h" >&5
- $as_echo "$ac_cv_header_FLAC_stream_decoder_h" >&6; }
- fi
- if test "x$ac_cv_header_FLAC_stream_decoder_h" = x""yes; then
- have_flac_hdr=yes
- fi
- { $as_echo "$as_me:$LINENO: checking for FLAC__stream_decoder_new in -lFLAC" >&5
- $as_echo_n "checking for FLAC__stream_decoder_new in -lFLAC... " >&6; }
- if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_new+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lFLAC $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char FLAC__stream_decoder_new ();
- int
- main ()
- {
- return FLAC__stream_decoder_new ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then
- ac_cv_lib_FLAC_FLAC__stream_decoder_new=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_FLAC_FLAC__stream_decoder_new=no
- fi
- rm -rf conftest.dSYM
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_new" >&5
- $as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_new" >&6; }
- if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_new" = x""yes; then
- have_flac_lib=yes
- fi
- if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then
- case "$host" in
- *-*-darwin*)
- flac_lib=`find_lib libFLAC.dylib`
- ;;
- *-*-cygwin* | *-*-mingw32*)
- flac_lib=`find_lib "libFLAC*.dll"`
- ;;
- *)
- flac_lib=`find_lib "libFLAC.so.[0-9]"`
- if test x$flac_lib = x; then
- flac_lib=`find_lib "libFLAC.so.[0-9]*"`
- fi
- ;;
- esac
- SOURCES="$SOURCES $srcdir/*_flac.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_MUSIC"
- if test x$enable_music_flac_shared = xyes && test x$flac_lib != x; then
- echo "-- dynamic libFLAC -> $flac_lib"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_DYNAMIC=\"$flac_lib\""
- else
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lFLAC"
- fi
- fi
- else
- { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find FLAC library (http://flac.sourceforge.net/)" >&5
- $as_echo "$as_me: WARNING: *** Unable to find FLAC library (http://flac.sourceforge.net/)" >&2;}
- { $as_echo "$as_me:$LINENO: WARNING: FLAC support disabled" >&5
- $as_echo "$as_me: WARNING: FLAC support disabled" >&2;}
- fi
- fi
- # Check whether --enable-music-mp3 was given.
- if test "${enable_music_mp3+set}" = set; then
- enableval=$enable_music_mp3;
- else
- enable_music_mp3=yes
- fi
- # Check whether --enable-music-mp3-shared was given.
- if test "${enable_music_mp3_shared+set}" = set; then
- enableval=$enable_music_mp3_shared;
- else
- enable_music_mp3_shared=yes
- fi
- if test x$enable_music_mp3 = xyes; then
- SMPEG_VERSION=0.4.3
- # Check whether --with-smpeg-prefix was given.
- if test "${with_smpeg_prefix+set}" = set; then
- withval=$with_smpeg_prefix; smpeg_prefix="$withval"
- else
- smpeg_prefix=""
- fi
- # Check whether --with-smpeg-exec-prefix was given.
- if test "${with_smpeg_exec_prefix+set}" = set; then
- withval=$with_smpeg_exec_prefix; smpeg_exec_prefix="$withval"
- else
- smpeg_exec_prefix=""
- fi
- # Check whether --enable-smpegtest was given.
- if test "${enable_smpegtest+set}" = set; then
- enableval=$enable_smpegtest;
- else
- enable_smpegtest=yes
- fi
- if test x$smpeg_exec_prefix != x ; then
- smpeg_args="$smpeg_args --exec-prefix=$smpeg_exec_prefix"
- if test x${SMPEG_CONFIG+set} != xset ; then
- SMPEG_CONFIG=$smpeg_exec_prefix/bin/smpeg-config
- fi
- fi
- if test x$smpeg_prefix != x ; then
- smpeg_args="$smpeg_args --prefix=$smpeg_prefix"
- if test x${SMPEG_CONFIG+set} != xset ; then
- SMPEG_CONFIG=$smpeg_prefix/bin/smpeg-config
- fi
- fi
- # Extract the first word of "smpeg-config", so it can be a program name with args.
- set dummy smpeg-config; ac_word=$2
- { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_SMPEG_CONFIG+set}" = set; then
- $as_echo_n "(cached) " >&6
- else
- case $SMPEG_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_SMPEG_CONFIG="$SMPEG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_SMPEG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_SMPEG_CONFIG" && ac_cv_path_SMPEG_CONFIG="no"
- ;;
- esac
- fi
- SMPEG_CONFIG=$ac_cv_path_SMPEG_CONFIG
- if test -n "$SMPEG_CONFIG"; then
- { $as_echo "$as_me:$LINENO: result: $SMPEG_CONFIG" >&5
- $as_echo "$SMPEG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:$LINENO: result: no" >&5
- $as_echo "no" >&6; }
- fi
- min_smpeg_version=$SMPEG_VERSION
- { $as_echo "$as_me:$LINENO: checking for SMPEG - version >= $min_smpeg_version" >&5
- $as_echo_n "checking for SMPEG - version >= $min_smpeg_version... " >&6; }
- no_smpeg=""
- if test "$SMPEG_CONFIG" = "no" ; then
- no_smpeg=yes
- else
- SMPEG_CFLAGS=`$SMPEG_CONFIG $smpegconf_args --cflags`
- SMPEG_LIBS=`$SMPEG_CONFIG $smpegconf_args --libs`
- smpeg_major_version=`$SMPEG_CONFIG $smpeg_args --version |
- sed 's/([0-9]*).([0-9]*).([0-9]*)/1/'`
- smpeg_minor_version=`$SMPEG_CONFIG $smpeg_args --version |
- sed 's/([0-9]*).([0-9]*).([0-9]*)/2/'`
- smpeg_micro_version=`$SMPEG_CONFIG $smpeg_config_args --version |
- sed 's/([0-9]*).([0-9]*).([0-9]*)/3/'`
- if test "x$enable_smpegtest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $SMPEG_CFLAGS $SDL_CFLAGS"
- LIBS="$LIBS $SMPEG_LIBS $SDL_LIBS"
- rm -f conf.smpegtest
- if test "$cross_compiling" = yes; then
- echo $ac_n "cross compiling; assumed OK... $ac_c"
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "smpeg.h"
- char*
- my_strdup (char *str)
- {
- char *new_str;
- if (str)
- {
- new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
- strcpy (new_str, str);
- }
- else
- new_str = NULL;
- return new_str;
- }
- int main (int argc, char *argv[])
- {
- int major, minor, micro;
- char *tmp_version;
- /* This hangs on some systems (?)
- system ("touch conf.smpegtest");
- */
- { FILE *fp = fopen("conf.smpegtest", "a"); if ( fp ) fclose(fp); }
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = my_strdup("$min_smpeg_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
- printf("%s, bad version stringn", "$min_smpeg_version");
- exit(1);
- }
- if (($smpeg_major_version > major) ||
- (($smpeg_major_version == major) && ($smpeg_minor_version > minor)) ||
- (($smpeg_major_version == major) && ($smpeg_minor_version == minor) && ($smpeg_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("n*** 'smpeg-config --version' returned %d.%d.%d, but the minimum versionn", $smpeg_major_version, $smpeg_minor_version, $smpeg_micro_version);
- printf("*** of SMPEG required is %d.%d.%d. If smpeg-config is correct, then it isn", major, minor, micro);
- printf("*** best to upgrade to the required version.n");
- printf("*** If smpeg-config was wrong, set the environment variable SMPEG_CONFIGn");
- printf("*** to point to the correct copy of smpeg-config, and remove the filen");
- printf("*** config.cache before re-running configuren");
- return 1;
- }
- }
- _ACEOF
- rm -f conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
- else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ( exit $ac_status )
- no_smpeg=yes
- fi
- rm -rf conftest.dSYM
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- fi
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- if test "x$no_smpeg" = x ; then
- { $as_echo "$as_me:$LINENO: result: yes" >&5
- $as_echo "yes" >&6; }
- have_smpeg=yes
- else
- { $as_echo "$as_me:$LINENO: result: no" >&5
- $as_echo "no" >&6; }
- if test "$SMPEG_CONFIG" = "no" ; then
- echo "*** The smpeg-config script installed by SMPEG could not be found"
- echo "*** If SMPEG was installed in PREFIX, make sure PREFIX/bin is in"
- echo "*** your path, or set the SMPEG_CONFIG environment variable to the"
- echo "*** full path to smpeg-config."
- else
- if test -f conf.smpegtest ; then
- :
- else
- echo "*** Could not run SMPEG test program, checking why..."
- CFLAGS="$CFLAGS $SMPEG_CFLAGS $SDL_CFLAGS"
- LIBS="$LIBS $SMPEG_LIBS $SDL_LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <stdio.h>
- #include "smpeg.h"
- int
- main ()
- {
- return 0;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then
- echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding SMPEG or finding the wrong"
- echo "*** version of SMPEG. If it is not finding SMPEG, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means SMPEG was incorrectly installed"
- echo "*** or that you have moved SMPEG since it was installed. In the latter case, you"
- echo "*** may want to edit the smpeg-config script: $SMPEG_CONFIG"
- fi
- rm -rf conftest.dSYM
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- SMPEG_CFLAGS=""
- SMPEG_LIBS=""
- have_smpeg=no
- fi
- rm -f conf.smpegtest
- if test x$have_smpeg = xyes; then
- case "$host" in
- *-*-darwin*)
- smpeg_lib=`find_lib libsmpeg.dylib`
- ;;
- *-*-cygwin* | *-*-mingw32*)
- smpeg_lib=`find_lib "smpeg*.dll"`
- ;;
- *)
- smpeg_lib=`find_lib "libsmpeg*.so.[0-9]"`
- if test x$smpeg_lib = x; then
- smpeg_lib=`find_lib "libsmpeg*.so.[0-9]*"`
- fi
- ;;
- esac
- SOURCES="$SOURCES $srcdir/*_mp3.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MUSIC $SMPEG_CFLAGS"
- if test x$enable_music_mp3_shared = xyes && test x$smpeg_lib != x; then
- echo "-- dynamic libsmpeg -> $smpeg_lib"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_DYNAMIC=\"$smpeg_lib\""
- else
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SMPEG_LIBS"
- fi
- else
- { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find SMPEG library (http://icculus.org/smpeg/)" >&5
- $as_echo "$as_me: WARNING: *** Unable to find SMPEG library (http://icculus.org/smpeg/)" >&2;}
- fi
- fi
- # Check whether --enable-music-mp3-mad-gpl was given.
- if test "${enable_music_mp3_mad_gpl+set}" = set; then
- enableval=$enable_music_mp3_mad_gpl;
- else
- enable_music_mp3_mad_gpl=no
- fi
- if test x$enable_music_mp3_mad_gpl = xyes; then
- { $as_echo "$as_me:$LINENO: checking for libmad headers" >&5
- $as_echo_n "checking for libmad headers... " >&6; }
- have_libmad=no
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include "mad.h"
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (ac_try="$ac_compile"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo=""$as_me:$LINENO: $ac_try_echo""
- $as_echo "$ac_try_echo") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- $as_echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- have_libmad=yes
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:$LINENO: result: $have_libmad" >&5
- $as_echo "$have_libmad" >&6; }
- if test x$have_libmad = xyes; then
- SOURCES="$SOURCES $srcdir/music_mad.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MAD_MUSIC"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad"
- else
- { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&5
- $as_echo "$as_me: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&2;}
- fi
- fi
- if test x$have_smpeg != xyes -a x$have_libmad != xyes; then
- { $as_echo "$as_me:$LINENO: WARNING: MP3 support disabled" >&5
- $as_echo "$as_me: WARNING: MP3 support disabled" >&2;}
- fi
- OBJECTS=`echo $SOURCES`
- DEPENDS=`echo $SOURCES`
- OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/([^ ]*).c,$(objects)/1.lo,g'`
- DEPENDS=`echo "$DEPENDS" | sed 's,([^ ]*)/([^ ]*).c,\
- $(objects)/2.lo: 1/2.c\
- $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c $< -o $@,g'`
- VERSION_OBJECTS=`echo $VERSION_SOURCES`
- VERSION_DEPENDS=`echo $VERSION_SOURCES`
- VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/([^ ]*).rc,$(objects)/1.o,g'`
- VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,([^ ]*)/([^ ]*).rc,\
- $(objects)/2.o: 1/2.rc\
- $(WINDRES) $< $@,g'`
- PLAYWAVE_SOURCES="$srcdir/playwave.c"
- PLAYWAVE_OBJECTS=`echo $PLAYWAVE_SOURCES`
- PLAYWAVE_DEPENDS=`echo $PLAYWAVE_SOURCES`
- PLAYWAVE_OBJECTS=`echo "$PLAYWAVE_OBJECTS" | sed 's,[^ ]*/([^ ]*).c,$(objects)/1.lo,g'`
- PLAYWAVE_DEPENDS=`echo "$PLAYWAVE_DEPENDS" | sed 's,([^ ]*)/([^ ]*).c,\
- $(objects)/2.lo: 1/2.c\
- $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c $< -o $@,g'`
- PLAYMUS_SOURCES="$srcdir/playmus.c"
- PLAYMUS_OBJECTS=`echo $PLAYMUS_SOURCES`
- PLAYMUS_DEPENDS=`echo $PLAYMUS_SOURCES`
- PLAYMUS_OBJECTS=`echo "$PLAYMUS_OBJECTS" | sed 's,[^ ]*/([^ ]*).c,$(objects)/1.lo,g'`
- PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,([^ ]*)/([^ ]*).c,\
- $(objects)/2.lo: 1/2.c\
- $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c $< -o $@,g'`
- ac_config_files="$ac_config_files Makefile SDL_mixer.spec SDL_mixer.qpg SDL_mixer.pc"
- cat >confcache <<_ACEOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
- # scripts and configure runs, see configure's option --config-cache.
- # It is not useful on other systems. If it contains results you don't
- # want to keep, you may remove or edit it.
- #
- # config.status only pays attention to the cache file if you give it
- # the --recheck option to rerun configure.
- #
- # `ac_cv_env_foo' variables (set or unset) will be overridden when
- # loading this file, other *unset* `ac_cv_foo' will be assigned the
- # following values.
- _ACEOF
- # The following way of writing the cache mishandles newlines in values,
- # but we know of no workaround that is simple, portable, and efficient.
- # So, we kill variables containing newlines.
- # Ultrix sh set writes to stderr and can't be redirected directly,
- # and sets the high bit in the cache file unless we assign to the vars.
- (
- for ac_var in `(set) 2>&1 | sed -n 's/^([a-zA-Z_][a-zA-Z0-9_]*)=.*/1/p'`; do
- eval ac_val=$$ac_var
- case $ac_val in #(
- *${as_nl}*)
- case $ac_var in #(
- *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
- $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
- *) $as_unset $ac_var ;;
- esac ;;
- esac
- done
- (set) 2>&1 |
- case $as_nl`(ac_space=' '; set) 2>&1` in #(
- *${as_nl}ac_space= *)
- # `set' does not quote correctly, so add quotes (double-quote
- # substitution turns \\ into \, and sed turns \ into ).
- sed -n
- "s/'/'\\''/g;
- s/^\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\)=\(.*\)/\1='\2'/p"
- ;; #(
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
- ;;
- esac |
- sort
- ) |
- sed '
- /^ac_cv_env_/b end
- t clear
- :clear
- s/^([^=]*)=(.*[{}].*)$/test "${1+set}" = set || &/
- t end
- s/^([^=]*)=(.*)$/1=${1=2}/
- :end' >>confcache
- if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
- if test -w "$cache_file"; then
- test "x$cache_file" != "x/dev/null" &&
- { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
- $as_echo "$as_me: updating cache $cache_file" >&6;}
- cat confcache >$cache_file
- else
- { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
- $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
- fi
- fi
- rm -f confcache
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Transform confdefs.h into DEFS.
- # Protect against shell expansion while executing Makefile rules.
- # Protect against Makefile macro expansion.
- #
- # If the first sed substitution is executed (which looks for macros that
- # take arguments), then branch to the quote section. Otherwise,
- # look for a macro that doesn't take arguments.
- ac_script='
- :mline
- /\$/{
- N
- s,\n,,
- b mline
- }
- t clear
- :clear
- s/^[ ]*#[ ]*define[ ][ ]*([^ (][^ (]*([^)]*))[ ]*(.*)/-D1=2/g
- t quote
- s/^[ ]*#[ ]*define[ ][ ]*([^ ][^ ]*)[ ]*(.*)/-D1=2/g
- t quote
- b any
- :quote
- s/[ `~#$^&*(){}\|;'''"<>?]/\&/g
- s/[/\&/g
- s/]/\&/g
- s/$/$$/g
- H
- :any
- ${
- g
- s/^n//
- s/n/ /g
- p
- }
- '
- DEFS=`sed -n "$ac_script" confdefs.h`
- ac_libobjs=
- ac_ltlibobjs=
- for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
- # 1. Remove the extension, and $U if already installed.
- ac_script='s/$U././;s/.o$//;s/.obj$//'
- ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
- # will be set to the directory where LIBOBJS objects are built.
- ac_libobjs="$ac_libobjs ${LIBOBJDIR}$ac_i$U.$ac_objext"
- ac_ltlibobjs="$ac_ltlibobjs ${LIBOBJDIR}$ac_i"'$U.lo'
- done
- LIBOBJS=$ac_libobjs
- LTLIBOBJS=$ac_ltlibobjs
- : ${CONFIG_STATUS=./config.status}
- ac_write_fail=0
- ac_clean_files_save=$ac_clean_files
- ac_clean_files="$ac_clean_files $CONFIG_STATUS"
- { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
- $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
- cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- #! $SHELL
- # Generated by $as_me.
- # Run this file to recreate the current configuration.
- # Compiler output produced by configure, useful for debugging
- # configure, is in config.log if it exists.
- debug=false
- ac_cs_recheck=false
- ac_cs_silent=false
- SHELL=${CONFIG_SHELL-$SHELL}
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ## --------------------- ##
- ## M4sh Initialization. ##
- ## --------------------- ##
- # Be more Bourne compatible
- DUALCASE=1; export DUALCASE # for MKS sh
- if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
- else
- case `(set -o) 2>/dev/null` in
- *posix*) set -o posix ;;
- esac
- fi
- # PATH needs CR
- # Avoid depending upon Character Ranges.
- as_cr_letters='abcdefghijklmnopqrstuvwxyz'
- as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- as_cr_Letters=$as_cr_letters$as_cr_LETTERS
- as_cr_digits='0123456789'
- as_cr_alnum=$as_cr_Letters$as_cr_digits
- as_nl='
- '
- export as_nl
- # Printing a long string crashes Solaris 7 /usr/bin/printf.
- as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
- if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %sn'
- as_echo_n='printf %s'
- else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\(.*\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in
- *"$as_nl"*)
- expr "X$arg" : "X\(.*\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\(.*\)"`;;
- esac;
- expr "X$arg" : "X\(.*\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
- fi
- # The user is always right.
- if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
- fi
- # Support unset when possible.
- if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
- as_unset=unset
- else
- as_unset=false
- fi
- # IFS
- # We need space, tab and new line, in precisely that order. Quoting is
- # there to prevent editors from complaining about space-tab.
- # (If _AS_PATH_WALK were called with IFS unset, it would disable word
- # splitting by setting IFS to empty value.)
- IFS=" "" $as_nl"
- # Find who we are. Look in the path if we contain no directory separator.
- case $0 in
- *[\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
- IFS=$as_save_IFS
- ;;
- esac
- # We did not find ourselves, most probably we were run as `sh COMMAND'
- # in which case we are not to be found in the path.
- if test "x$as_myself" = x; then
- as_myself=$0
- fi
- if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- { (exit 1); exit 1; }
- fi
- # Work around bugs in pre-3.0 UWIN ksh.
- for as_var in ENV MAIL MAILPATH
- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
- done
- PS1='$ '
- PS2='> '
- PS4='+ '
- # NLS nuisances.
- LC_ALL=C
- export LC_ALL
- LANGUAGE=C
- export LANGUAGE
- # Required to use basename.
- if expr a : '(a)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*(...)'`" = X001; then
- as_expr=expr
- else
- as_expr=false
- fi
- if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
- else
- as_basename=false
- fi
- # Name of the executable.
- as_me=`$as_basename -- "$0" ||
- $as_expr X/"$0" : '.*/([^/][^/]*)/*$' |
- X"$0" : 'X(//)$' |
- X"$0" : 'X(/)' | . 2>/dev/null ||
- $as_echo X/"$0" |
- sed '/^.*/([^/][^/]*)/*$/{
- s//1/
- q
- }
- /^X/(//)$/{
- s//1/
- q
- }
- /^X/(/).*/{
- s//1/
- q
- }
- s/.*/./; q'`
- # CDPATH.
- $as_unset CDPATH
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
- # uniformly replaced by the line number. The first 'sed' inserts a
- # line-number line after each line using $LINENO; the second 'sed'
- # does the real work. The second script uses 'N' to pair each
- # line-number line with the line containing $LINENO, and appends
- # trailing '-' during substitution so that $LINENO is not a special
- # case at line end.
- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
- # scripts with optimization help from Paolo Bonzini. Blame Lee
- # E. McMahon (1931-1989) for sed's syntax. :-)
- sed -n '
- p
- /[$]LINENO/=
- ' <$as_myself |
- sed '
- s/[$]LINENO.*/&-/
- t lineno
- b
- :lineno
- N
- :loop
- s/[$]LINENO([^'$as_cr_alnum'_].*n)(.*)/212/
- t loop
- s/-n.*//
- ' >$as_me.lineno &&
- chmod +x "$as_me.lineno" ||
- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
- { (exit 1); exit 1; }; }
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensitive to this).
- . "./$as_me.lineno"
- # Exit status is that of the last command.
- exit
- }
- if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
- else
- as_dirname=false
- fi
- ECHO_C= ECHO_N= ECHO_T=
- case `echo -n x` in
- -n*)
- case `echo 'xc'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- *) ECHO_C='c';;
- esac;;
- *)
- ECHO_N='-n';;
- esac
- if expr a : '(a)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*(...)'`" = X001; then
- as_expr=expr
- else
- as_expr=false
- fi
- rm -f conf$$ conf$$.exe conf$$.file
- if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
- else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
- fi
- if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -p'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -p'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -p'
- fi
- else
- as_ln_s='cp -p'
- fi
- rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
- rmdir conf$$.dir 2>/dev/null
- if mkdir -p . 2>/dev/null; then
- as_mkdir_p=:
- else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
- fi
- if test -x / >/dev/null 2>&1; then
- as_test_x='test -x'
- else
- if ls -dL / >/dev/null 2>&1; then
- as_ls_L_option=L
- else
- as_ls_L_option=
- fi
- as_test_x='
- eval sh -c '''
- if test -d "$1"; then
- test -d "$1/.";
- else
- case $1 in
- -*)set "./$1";;
- esac;
- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
- ???[sx]*):;;*)false;;esac;fi
- ''' sh
- '
- fi
- as_executable_p=$as_test_x
- # Sed expression to map a string onto a valid CPP name.
- as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
- # Sed expression to map a string onto a valid variable name.
- as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
- exec 6>&1
- # Save the log message, to keep $[0] and so on meaningful, and to
- # report actual input values of CONFIG_FILES etc. instead of their
- # values after options handling.
- ac_log="
- This file was extended by $as_me, which was
- generated by GNU Autoconf 2.63. Invocation command line was
- CONFIG_FILES = $CONFIG_FILES
- CONFIG_HEADERS = $CONFIG_HEADERS
- CONFIG_LINKS = $CONFIG_LINKS
- CONFIG_COMMANDS = $CONFIG_COMMANDS
- $ $0 $@
- on `(hostname || uname -n) 2>/dev/null | sed 1q`
- "
- _ACEOF
- case $ac_config_files in *"
- "*) set x $ac_config_files; shift; ac_config_files=$*;;
- esac
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- # Files that config.status was made for.
- config_files="$ac_config_files"
- config_commands="$ac_config_commands"
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_cs_usage="
- `$as_me' instantiates files from templates according to the
- current configuration.
- Usage: $0 [OPTION]... [FILE]...
- -h, --help print this help, then exit
- -V, --version print version number and configuration settings, then exit
- -q, --quiet, --silent
- do not print progress messages
- -d, --debug don't remove temporary files
- --recheck update $as_me by reconfiguring in the same conditions
- --file=FILE[:TEMPLATE]
- instantiate the configuration file FILE
- Configuration files:
- $config_files
- Configuration commands:
- $config_commands
- Report bugs to <bug-autoconf@gnu.org>."
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_cs_version="\
- config.status
- configured by $0, generated by GNU Autoconf 2.63,
- with options \"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\""`$]/\\&/g'`\"
- Copyright (C) 2008 Free Software Foundation, Inc.
- This config.status script is free software; the Free Software Foundation
- gives unlimited permission to copy, distribute and modify it."
- ac_pwd='$ac_pwd'
- srcdir='$srcdir'
- INSTALL='$INSTALL'
- test -n "$AWK" || AWK=awk
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- # The default lists apply if the user does not specify any file.
- ac_need_defaults=:
- while test $# != 0
- do
- case $1 in
- --*=*)
- ac_option=`expr "X$1" : 'X([^=]*)='`
- ac_optarg=`expr "X$1" : 'X[^=]*=(.*)'`
- ac_shift=:
- ;;
- *)
- ac_option=$1
- ac_optarg=$2
- ac_shift=shift
- ;;
- esac
- case $ac_option in
- # Handling of the options.
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- ac_cs_recheck=: ;;
- --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
- $as_echo "$ac_cs_version"; exit ;;
- --debug | --debu | --deb | --de | --d | -d )
- debug=: ;;
- --file | --fil | --fi | --f )
- $ac_shift
- case $ac_optarg in
- *'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\''/g"` ;;
- esac
- CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
- ac_need_defaults=false;;
- --he | --h | --help | --hel | -h )
- $as_echo "$ac_cs_usage"; exit ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q
- | -silent | --silent | --silen | --sile | --sil | --si | --s)
- ac_cs_silent=: ;;
- # This is an error.
- -*) { $as_echo "$as_me: error: unrecognized option: $1
- Try `$0 --help' for more information." >&2
- { (exit 1); exit 1; }; } ;;
- *) ac_config_targets="$ac_config_targets $1"
- ac_need_defaults=false ;;
- esac
- shift
- done
- ac_configure_extra_args=
- if $ac_cs_silent; then
- exec 6>/dev/null
- ac_configure_extra_args="$ac_configure_extra_args --silent"
- fi
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- if $ac_cs_recheck; then
- set X '$SHELL' '$0' $ac_configure_args $ac_configure_extra_args --no-create --no-recursion
- shift
- $as_echo "running CONFIG_SHELL=$SHELL $*" >&6
- CONFIG_SHELL='$SHELL'
- export CONFIG_SHELL
- exec "$@"
- fi
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- exec 5>>config.log
- {
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
- ## Running $as_me. ##
- _ASBOX
- $as_echo "$ac_log"
- } >&5
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- #
- # INIT-COMMANDS
- #
- # The HP-UX ksh and POSIX shell print the target directory to stdout
- # if CDPATH is set.
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
- sed_quote_subst='$sed_quote_subst'
- double_quote_subst='$double_quote_subst'
- delay_variable_subst='$delay_variable_subst'
- macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
- macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
- AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
- DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
- OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
- enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
- enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
- pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
- enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
- host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
- host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
- host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
- build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
- build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
- build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
- SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
- Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
- GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
- EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
- FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
- LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
- NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
- LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
- max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
- ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
- exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
- lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
- lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
- lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
- reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
- reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
- file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
- AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
- AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
- STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
- RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
- old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
- CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
- compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
- GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
- lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
- lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
- lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
- lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
- objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
- SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
- ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
- MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
- lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
- lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
- lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
- lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
- lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
- need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
- DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
- NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
- LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
- OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
- OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
- libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
- shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
- enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
- export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
- whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
- compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
- old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
- allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
- no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
- inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
- link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
- fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
- always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
- export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
- include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
- prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
- variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
- need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
- need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
- version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
- runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
- shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
- shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
- libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
- library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
- soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
- postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
- finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
- sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
- sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
- hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
- enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
- enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
- enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
- old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
- striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
- LTCC='$LTCC'
- LTCFLAGS='$LTCFLAGS'
- compiler='$compiler_DEFAULT'
- # Quote evaled strings.
- for var in SED
- GREP
- EGREP
- FGREP
- LD
- NM
- LN_S
- lt_SP2NL
- lt_NL2SP
- reload_flag
- deplibs_check_method
- file_magic_cmd
- AR
- AR_FLAGS
- STRIP
- RANLIB
- CC
- CFLAGS
- compiler
- lt_cv_sys_global_symbol_pipe
- lt_cv_sys_global_symbol_to_cdecl
- lt_cv_sys_global_symbol_to_c_name_address
- lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
- SHELL
- ECHO
- lt_prog_compiler_no_builtin_flag
- lt_prog_compiler_wl
- lt_prog_compiler_pic
- lt_prog_compiler_static
- lt_cv_prog_compiler_c_o
- need_locks
- DSYMUTIL
- NMEDIT
- LIPO
- OTOOL
- OTOOL64
- shrext_cmds
- export_dynamic_flag_spec
- whole_archive_flag_spec
- compiler_needs_object
- with_gnu_ld
- allow_undefined_flag
- no_undefined_flag
- hardcode_libdir_flag_spec
- hardcode_libdir_flag_spec_ld
- hardcode_libdir_separator
- fix_srcfile_path
- exclude_expsyms
- include_expsyms
- file_list_spec
- variables_saved_for_relink
- libname_spec
- library_names_spec
- soname_spec
- finish_eval
- old_striplib
- striplib; do
- case `eval \\$ECHO "X\\$$var"` in
- *[\\\`\"\$]*)
- eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\$$var\\\""
- ;;
- esac
- done
- # Double-quote double-evaled strings.
- for var in reload_cmds
- old_postinstall_cmds
- old_postuninstall_cmds
- old_archive_cmds
- extract_expsyms_cmds
- old_archive_from_new_cmds
- old_archive_from_expsyms_cmds
- archive_cmds
- archive_expsym_cmds
- module_cmds
- module_expsym_cmds
- export_symbols_cmds
- prelink_cmds
- postinstall_cmds
- postuninstall_cmds
- finish_cmds
- sys_lib_search_path_spec
- sys_lib_dlsearch_path_spec; do
- case `eval \\$ECHO "X\\$$var"` in
- *[\\\`\"\$]*)
- eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\$$var\\\""
- ;;
- esac
- done
- # Fix-up fallback echo if it was mangled by the above quoting rules.
- case $lt_ECHO in
- *'\$0 --fallback-echo"') lt_ECHO=`$ECHO "X$lt_ECHO" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
- ac_aux_dir='$ac_aux_dir'
- xsi_shell='$xsi_shell'
- lt_shell_append='$lt_shell_append'
- # See if we are running on zsh, and set the options which allow our
- # commands through without removal of escapes INIT.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- PACKAGE='$PACKAGE'
- VERSION='$VERSION'
- TIMESTAMP='$TIMESTAMP'
- RM='$RM'
- ofile='$ofile'
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- # Handling of arguments.
- for ac_config_target in $ac_config_targets
- do
- case $ac_config_target in
- "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
- "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
- "SDL_mixer.spec") CONFIG_FILES="$CONFIG_FILES SDL_mixer.spec" ;;
- "SDL_mixer.qpg") CONFIG_FILES="$CONFIG_FILES SDL_mixer.qpg" ;;
- "SDL_mixer.pc") CONFIG_FILES="$CONFIG_FILES SDL_mixer.pc" ;;
- *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
- $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
- { (exit 1); exit 1; }; };;
- esac
- done
- # If the user did not use the arguments to specify the items to instantiate,
- # then the envvar interface is used. Set only those that are not.
- # We use the long form for the default assignment because of an extremely
- # bizarre bug on SunOS 4.1.3.
- if $ac_need_defaults; then
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
- test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
- fi
- # Have a temporary directory for convenience. Make it in the build tree
- # simply because there is no reason against having it here, and in addition,
- # creating and moving files from /tmp can sometimes cause problems.
- # Hook for its removal unless debugging.
- # Note that there is a small window in which the directory will not be cleaned:
- # after its creation but before its name has been assigned to `$tmp'.
- $debug ||
- {
- tmp=
- trap 'exit_status=$?
- { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
- ' 0
- trap '{ (exit 1); exit 1; }' 1 2 13 15
- }
- # Create a (secure) tmp directory for tmp files.
- {
- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
- test -n "$tmp" && test -d "$tmp"
- } ||
- {
- tmp=./conf$$-$RANDOM
- (umask 077 && mkdir "$tmp")
- } ||
- {
- $as_echo "$as_me: cannot create a temporary directory in ." >&2
- { (exit 1); exit 1; }
- }
- # Set up the scripts for CONFIG_FILES section.
- # No need to generate them if there are no CONFIG_FILES.
- # This happens for instance with `./config.status config.h'.
- if test -n "$CONFIG_FILES"; then
- ac_cr='
'
- ac_cs_awk_cr=`$AWK 'BEGIN { print "arb" }' </dev/null 2>/dev/null`
- if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
- ac_cs_awk_cr='\r'
- else
- ac_cs_awk_cr=$ac_cr
- fi
- echo 'BEGIN {' >"$tmp/subs1.awk" &&
- _ACEOF
- {
- echo "cat >conf$$subs.awk <<_ACEOF" &&
- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
- echo "_ACEOF"
- } >conf$$subs.sh ||
- { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
- $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
- { (exit 1); exit 1; }; }
- ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
- ac_delim='%!_!# '
- for ac_last_try in false false false false false :; do
- . ./conf$$subs.sh ||
- { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
- $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
- { (exit 1); exit 1; }; }
- ac_delim_n=`sed -n "s/.*$ac_delim$/X/p" conf$$subs.awk | grep -c X`
- if test $ac_delim_n = $ac_delim_num; then
- break
- elif $ac_last_try; then
- { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
- $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
- { (exit 1); exit 1; }; }
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
- done
- rm -f conf$$subs.sh
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- cat >>"$tmp/subs1.awk" <<\_ACAWK &&
- _ACEOF
- sed -n '
- h
- s/^/S["/; s/!.*/"]=/
- p
- g
- s/^[^!]*!//
- :repl
- t repl
- s/'"$ac_delim"'$//
- t delim
- :nl
- h
- s/(.{148}).*/1/
- t more1
- s/["\]/\&/g; s/^/"/; s/$/\n"\/
- p
- n
- b repl
- :more1
- s/["\]/\&/g; s/^/"/; s/$/"\/
- p
- g
- s/.{148}//
- t nl
- :delim
- h
- s/(.{148}).*/1/
- t more2
- s/["\]/\&/g; s/^/"/; s/$/"/
- p
- b
- :more2
- s/["\]/\&/g; s/^/"/; s/$/"\/
- p
- g
- s/.{148}//
- t delim
- ' <conf$$subs.awk | sed '
- /^[^""]/{
- N
- s/n//
- }
- ' >>$CONFIG_STATUS || ac_write_fail=1
- rm -f conf$$subs.awk
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- _ACAWK
- cat >>"$tmp/subs1.awk" <<_ACAWK &&
- for (key in S) S_is_set[key] = 1
- FS = ""
- }
- {
- line = $ 0
- nfields = split(line, field, "@")
- substed = 0
- len = length(field[1])
- for (i = 2; i < nfields; i++) {
- key = field[i]
- keylen = length(key)
- if (S_is_set[key]) {
- value = S[key]
- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
- len += length(value) + length(field[++i])
- substed = 1
- } else
- len += 1 + keylen
- }
- print line
- }
- _ACAWK
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
- sed "s/$ac_cr$//; s/$ac_cr/$ac_cs_awk_cr/g"
- else
- cat
- fi < "$tmp/subs1.awk" > "$tmp/subs.awk"
- || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
- $as_echo "$as_me: error: could not setup config files machinery" >&2;}
- { (exit 1); exit 1; }; }
- _ACEOF
- # VPATH may cause trouble with some makes, so we remove $(srcdir),
- # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
- # trailing colons and then remove the whole line if VPATH becomes empty
- # (actually we leave an empty line to preserve line numbers).
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=/{
- s/:*$(srcdir):*/:/
- s/:*${srcdir}:*/:/
- s/:*@srcdir@:*/:/
- s/^([^=]*=[ ]*):*/1/
- s/:*$//
- s/^[^=]*=[ ]*$//
- }'
- fi
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- fi # test -n "$CONFIG_FILES"
- eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
- shift
- for ac_tag
- do
- case $ac_tag in
- :[FHLC]) ac_mode=$ac_tag; continue;;
- esac
- case $ac_mode$ac_tag in
- :[FHL]*:*);;
- :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
- $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
- { (exit 1); exit 1; }; };;
- :[FH]-) ac_tag=-:-;;
- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
- esac
- ac_save_IFS=$IFS
- IFS=:
- set x $ac_tag
- IFS=$ac_save_IFS
- shift
- ac_file=$1
- shift
- case $ac_mode in
- :L) ac_source=$1;;
- :[FH])
- ac_file_inputs=
- for ac_f
- do
- case $ac_f in
- -) ac_f="$tmp/stdin";;
- *) # Look for the file first in the build tree, then in the source tree
- # (if the path is not absolute). The absolute path cannot be DOS-style,
- # because $ac_f cannot contain `:'.
- test -f "$ac_f" ||
- case $ac_f in
- [\/$]*) false;;
- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
- esac ||
- { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
- $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
- { (exit 1); exit 1; }; };;
- esac
- case $ac_f in *'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\''/g"`;; esac
- ac_file_inputs="$ac_file_inputs '$ac_f'"
- done
- # Let's still pretend it is `configure' which instantiates (i.e., don't
- # use $as_me), people would be surprised to read:
- # /* config.h. Generated by config.status. */
- configure_input='Generated from '`
- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
- `' by configure.'
- if test x"$ac_file" != x-; then
- configure_input="$ac_file. $configure_input"
- { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
- $as_echo "$as_me: creating $ac_file" >&6;}
- fi
- # Neutralize special characters interpreted by sed in replacement strings.
- case $configure_input in #(
- *&* | *|* | *\* )
- ac_sed_conf_input=`$as_echo "$configure_input" |
- sed 's/[\\&|]/\\&/g'`;; #(
- *) ac_sed_conf_input=$configure_input;;
- esac
- case $ac_tag in
- *:-:* | *:-) cat >"$tmp/stdin"
- || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
- $as_echo "$as_me: error: could not create $ac_file" >&2;}
- { (exit 1); exit 1; }; } ;;
- esac
- ;;
- esac
- ac_dir=`$as_dirname -- "$ac_file" ||
- $as_expr X"$ac_file" : 'X(.*[^/])//*[^/][^/]*/*$' |
- X"$ac_file" : 'X(//)[^/]' |
- X"$ac_file" : 'X(//)$' |
- X"$ac_file" : 'X(/)' | . 2>/dev/null ||
- $as_echo X"$ac_file" |
- sed '/^X(.*[^/])//*[^/][^/]*/*$/{
- s//1/
- q
- }
- /^X(//)[^/].*/{
- s//1/
- q
- }
- /^X(//)$/{
- s//1/
- q
- }
- /^X(/).*/{
- s//1/
- q
- }
- s/.*/./; q'`
- { as_dir="$ac_dir"
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
- $as_expr X"$as_dir" : 'X(.*[^/])//*[^/][^/]*/*$' |
- X"$as_dir" : 'X(//)[^/]' |
- X"$as_dir" : 'X(//)$' |
- X"$as_dir" : 'X(/)' | . 2>/dev/null ||
- $as_echo X"$as_dir" |
- sed '/^X(.*[^/])//*[^/][^/]*/*$/{
- s//1/
- q
- }
- /^X(//)[^/].*/{
- s//1/
- q
- }
- /^X(//)$/{
- s//1/
- q
- }
- /^X(/).*/{
- s//1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
- $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
- { (exit 1); exit 1; }; }; }
- ac_builddir=.
- case "$ac_dir" in
- .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^.[\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
- esac
- ac_abs_top_builddir=$ac_pwd
- ac_abs_builddir=$ac_pwd$ac_dir_suffix
- # for backward compatibility:
- ac_top_builddir=$ac_top_build_prefix
- case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\/]* | ?:[\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
- esac
- ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
- case $ac_mode in
- :F)
- #
- # CONFIG_FILE
- #
- case $INSTALL in
- [\/$]* | ?:[\/]* ) ac_INSTALL=$INSTALL ;;
- *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
- esac
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- # If the template does not know about datarootdir, expand it.
- # FIXME: This hack should be removed a few years after 2.60.
- ac_datarootdir_hack=; ac_datarootdir_seen=
- ac_sed_dataroot='
- /datarootdir/ {
- p
- q
- }
- /@datadir@/p
- /@docdir@/p
- /@infodir@/p
- /@localedir@/p
- /@mandir@/p
- '
- case `eval "sed -n "$ac_sed_dataroot" $ac_file_inputs"` in
- *datarootdir*) ac_datarootdir_seen=yes;;
- *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
- { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
- $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_datarootdir_hack='
- s&@datadir@&$datadir&g
- s&@docdir@&$docdir&g
- s&@infodir@&$infodir&g
- s&@localedir@&$localedir&g
- s&@mandir@&$mandir&g
- s&\${datarootdir}&$datarootdir&g' ;;
- esac
- _ACEOF
- # Neutralize VPATH when `$srcdir' = `.'.
- # Shell code in configure.ac might set extrasub.
- # FIXME: do we really want to maintain this feature?
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_sed_extra="$ac_vpsub
- $extrasub
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- :t
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
- s|@configure_input@|$ac_sed_conf_input|;t t
- s&@top_builddir@&$ac_top_builddir_sub&;t t
- s&@top_build_prefix@&$ac_top_build_prefix&;t t
- s&@srcdir@&$ac_srcdir&;t t
- s&@abs_srcdir@&$ac_abs_srcdir&;t t
- s&@top_srcdir@&$ac_top_srcdir&;t t
- s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
- s&@builddir@&$ac_builddir&;t t
- s&@abs_builddir@&$ac_abs_builddir&;t t
- s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
- s&@INSTALL@&$ac_INSTALL&;t t
- $ac_datarootdir_hack
- "
- eval sed "$ac_sed_extra" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out
- || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
- $as_echo "$as_me: error: could not create $ac_file" >&2;}
- { (exit 1); exit 1; }; }
- test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
- { ac_out=`sed -n '/${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
- { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable `datarootdir'
- which seems to be undefined. Please make sure it is defined." >&5
- $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable `datarootdir'
- which seems to be undefined. Please make sure it is defined." >&2;}
- rm -f "$tmp/stdin"
- case $ac_file in
- -) cat "$tmp/out" && rm -f "$tmp/out";;
- *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
- esac
- || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
- $as_echo "$as_me: error: could not create $ac_file" >&2;}
- { (exit 1); exit 1; }; }
- ;;
- :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
- $as_echo "$as_me: executing $ac_file commands" >&6;}
- ;;
- esac
- case $ac_file$ac_mode in
- "libtool":C)
- # See if we are running on zsh, and set the options which allow our
- # commands through without removal of escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- cfgfile="${ofile}T"
- trap "$RM "$cfgfile"; exit 1" 1 2 15
- $RM "$cfgfile"
- cat <<_LT_EOF >> "$cfgfile"
- #! $SHELL
- # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
- # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
- # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- # NOTE: Changes made to this file will be lost: look at ltmain.sh.
- #
- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
- # 2006, 2007, 2008 Free Software Foundation, Inc.
- # Written by Gordon Matzigkeit, 1996
- #
- # This file is part of GNU Libtool.
- #
- # GNU Libtool is free software; you can redistribute it and/or
- # modify it under the terms of the GNU General Public License as
- # published by the Free Software Foundation; either version 2 of
- # the License, or (at your option) any later version.
- #
- # As a special exception to the GNU General Public License,
- # if you distribute this file as part of a program or library that
- # is built using GNU Libtool, you may include this file under the
- # same distribution terms that you use for the rest of that program.
- #
- # GNU Libtool is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with GNU Libtool; see the file COPYING. If not, a copy
- # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
- # obtained by writing to the Free Software Foundation, Inc.,
- # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- # The names of the tagged configurations supported by this script.
- available_tags=""
- # ### BEGIN LIBTOOL CONFIG
- # Which release of libtool.m4 was used?
- macro_version=$macro_version
- macro_revision=$macro_revision
- # Assembler program.
- AS=$AS
- # DLL creation program.
- DLLTOOL=$DLLTOOL
- # Object dumper program.
- OBJDUMP=$OBJDUMP
- # Whether or not to build shared libraries.
- build_libtool_libs=$enable_shared
- # Whether or not to build static libraries.
- build_old_libs=$enable_static
- # What type of objects to build.
- pic_mode=$pic_mode
- # Whether or not to optimize for fast installation.
- fast_install=$enable_fast_install
- # The host system.
- host_alias=$host_alias
- host=$host
- host_os=$host_os
- # The build system.
- build_alias=$build_alias
- build=$build
- build_os=$build_os
- # A sed program that does not truncate output.
- SED=$lt_SED
- # Sed that helps us avoid accidentally triggering echo(1) options like -n.
- Xsed="$SED -e 1s/^X//"
- # A grep program that handles long lines.
- GREP=$lt_GREP
- # An ERE matcher.
- EGREP=$lt_EGREP
- # A literal string matcher.
- FGREP=$lt_FGREP
- # A BSD- or MS-compatible name lister.
- NM=$lt_NM
- # Whether we need soft or hard links.
- LN_S=$lt_LN_S
- # What is the maximum length of a command?
- max_cmd_len=$max_cmd_len
- # Object file suffix (normally "o").
- objext=$ac_objext
- # Executable file suffix (normally "").
- exeext=$exeext
- # whether the shell understands "unset".
- lt_unset=$lt_unset
- # turn spaces into newlines.
- SP2NL=$lt_lt_SP2NL
- # turn newlines into spaces.
- NL2SP=$lt_lt_NL2SP
- # How to create reloadable object files.
- reload_flag=$lt_reload_flag
- reload_cmds=$lt_reload_cmds
- # Method to check whether dependent libraries are shared objects.
- deplibs_check_method=$lt_deplibs_check_method
- # Command to use when deplibs_check_method == "file_magic".
- file_magic_cmd=$lt_file_magic_cmd
- # The archiver.
- AR=$lt_AR
- AR_FLAGS=$lt_AR_FLAGS
- # A symbol stripping program.
- STRIP=$lt_STRIP
- # Commands used to install an old-style archive.
- RANLIB=$lt_RANLIB
- old_postinstall_cmds=$lt_old_postinstall_cmds
- old_postuninstall_cmds=$lt_old_postuninstall_cmds
- # A C compiler.
- LTCC=$lt_CC
- # LTCC compiler flags.
- LTCFLAGS=$lt_CFLAGS
- # Take the output of nm and produce a listing of raw symbols and C names.
- global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
- # Transform the output of nm in a proper C declaration.
- global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
- # Transform the output of nm in a C name address pair.
- global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
- # Transform the output of nm in a C name address pair when lib prefix is needed.
- global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
- # The name of the directory that contains temporary libtool files.
- objdir=$objdir
- # Shell to use when invoking shell scripts.
- SHELL=$lt_SHELL
- # An echo program that does not interpret backslashes.
- ECHO=$lt_ECHO
- # Used to examine libraries when file_magic_cmd begins with "file".
- MAGIC_CMD=$MAGIC_CMD
- # Must we lock files when doing compilation?
- need_locks=$lt_need_locks
- # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
- DSYMUTIL=$lt_DSYMUTIL
- # Tool to change global to local symbols on Mac OS X.
- NMEDIT=$lt_NMEDIT
- # Tool to manipulate fat objects and archives on Mac OS X.
- LIPO=$lt_LIPO
- # ldd/readelf like tool for Mach-O binaries on Mac OS X.
- OTOOL=$lt_OTOOL
- # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
- OTOOL64=$lt_OTOOL64
- # Old archive suffix (normally "a").
- libext=$libext
- # Shared library suffix (normally ".so").
- shrext_cmds=$lt_shrext_cmds
- # The commands to extract the exported symbol list from a shared archive.
- extract_expsyms_cmds=$lt_extract_expsyms_cmds
- # Variables whose values should be saved in libtool wrapper scripts and
- # restored at link time.
- variables_saved_for_relink=$lt_variables_saved_for_relink
- # Do we need the "lib" prefix for modules?
- need_lib_prefix=$need_lib_prefix
- # Do we need a version for libraries?
- need_version=$need_version
- # Library versioning type.
- version_type=$version_type
- # Shared library runtime path variable.
- runpath_var=$runpath_var
- # Shared library path variable.
- shlibpath_var=$shlibpath_var
- # Is shlibpath searched before the hard-coded library search path?
- shlibpath_overrides_runpath=$shlibpath_overrides_runpath
- # Format of library name prefix.
- libname_spec=$lt_libname_spec
- # List of archive names. First name is the real one, the rest are links.
- # The last name is the one that the linker finds with -lNAME
- library_names_spec=$lt_library_names_spec
- # The coded name of the library, if different from the real name.
- soname_spec=$lt_soname_spec
- # Command to use after installation of a shared archive.
- postinstall_cmds=$lt_postinstall_cmds
- # Command to use after uninstallation of a shared archive.
- postuninstall_cmds=$lt_postuninstall_cmds
- # Commands used to finish a libtool library installation in a directory.
- finish_cmds=$lt_finish_cmds
- # As "finish_cmds", except a single script fragment to be evaled but
- # not shown.
- finish_eval=$lt_finish_eval
- # Whether we should hardcode library paths into libraries.
- hardcode_into_libs=$hardcode_into_libs
- # Compile-time system search path for libraries.
- sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
- # Run-time system search path for libraries.
- sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
- # Whether dlopen is supported.
- dlopen_support=$enable_dlopen
- # Whether dlopen of programs is supported.
- dlopen_self=$enable_dlopen_self
- # Whether dlopen of statically linked programs is supported.
- dlopen_self_static=$enable_dlopen_self_static
- # Commands to strip libraries.
- old_striplib=$lt_old_striplib
- striplib=$lt_striplib
- # The linker used to build libraries.
- LD=$lt_LD
- # Commands used to build an old-style archive.
- old_archive_cmds=$lt_old_archive_cmds
- # A language specific compiler.
- CC=$lt_compiler
- # Is the compiler the GNU compiler?
- with_gcc=$GCC
- # Compiler flag to turn off builtin functions.
- no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
- # How to pass a linker flag through the compiler.
- wl=$lt_lt_prog_compiler_wl
- # Additional compiler flags for building library objects.
- pic_flag=$lt_lt_prog_compiler_pic
- # Compiler flag to prevent dynamic linking.
- link_static_flag=$lt_lt_prog_compiler_static
- # Does compiler simultaneously support -c and -o options?
- compiler_c_o=$lt_lt_cv_prog_compiler_c_o
- # Whether or not to add -lc for building shared libraries.
- build_libtool_need_lc=$archive_cmds_need_lc
- # Whether or not to disallow shared libs when runtime libs are static.
- allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
- # Compiler flag to allow reflexive dlopens.
- export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
- # Compiler flag to generate shared objects directly from archives.
- whole_archive_flag_spec=$lt_whole_archive_flag_spec
- # Whether the compiler copes with passing no objects directly.
- compiler_needs_object=$lt_compiler_needs_object
- # Create an old-style archive from a shared archive.
- old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
- # Create a temporary old-style archive to link instead of a shared archive.
- old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
- # Commands used to build a shared archive.
- archive_cmds=$lt_archive_cmds
- archive_expsym_cmds=$lt_archive_expsym_cmds
- # Commands used to build a loadable module if different from building
- # a shared archive.
- module_cmds=$lt_module_cmds
- module_expsym_cmds=$lt_module_expsym_cmds
- # Whether we are building with GNU ld or not.
- with_gnu_ld=$lt_with_gnu_ld
- # Flag that allows shared libraries with undefined symbols to be built.
- allow_undefined_flag=$lt_allow_undefined_flag
- # Flag that enforces no undefined symbols.
- no_undefined_flag=$lt_no_undefined_flag
- # Flag to hardcode $libdir into a binary during linking.
- # This must work even if $libdir does not exist
- hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
- # If ld is used when linking, flag to hardcode $libdir into a binary
- # during linking. This must work even if $libdir does not exist.
- hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
- # Whether we need a single "-rpath" flag with a separated argument.
- hardcode_libdir_separator=$lt_hardcode_libdir_separator
- # Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
- # DIR into the resulting binary.
- hardcode_direct=$hardcode_direct
- # Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
- # DIR into the resulting binary and the resulting library dependency is
- # "absolute",i.e impossible to change by setting ${shlibpath_var} if the
- # library is relocated.
- hardcode_direct_absolute=$hardcode_direct_absolute
- # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
- # into the resulting binary.
- hardcode_minus_L=$hardcode_minus_L
- # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
- # into the resulting binary.
- hardcode_shlibpath_var=$hardcode_shlibpath_var
- # Set to "yes" if building a shared library automatically hardcodes DIR
- # into the library and all subsequent libraries and executables linked
- # against it.
- hardcode_automatic=$hardcode_automatic
- # Set to yes if linker adds runtime paths of dependent libraries
- # to runtime path list.
- inherit_rpath=$inherit_rpath
- # Whether libtool must link a program against all its dependency libraries.
- link_all_deplibs=$link_all_deplibs
- # Fix the shell variable $srcfile for the compiler.
- fix_srcfile_path=$lt_fix_srcfile_path
- # Set to "yes" if exported symbols are required.
- always_export_symbols=$always_export_symbols
- # The commands to list exported symbols.
- export_symbols_cmds=$lt_export_symbols_cmds
- # Symbols that should not be listed in the preloaded symbols.
- exclude_expsyms=$lt_exclude_expsyms
- # Symbols that must always be exported.
- include_expsyms=$lt_include_expsyms
- # Commands necessary for linking programs (against libraries) with templates.
- prelink_cmds=$lt_prelink_cmds
- # Specify filename containing input files.
- file_list_spec=$lt_file_list_spec
- # How to hardcode a shared library path into an executable.
- hardcode_action=$hardcode_action
- # ### END LIBTOOL CONFIG
- _LT_EOF
- case $host_os in
- aix3*)
- cat <<_LT_EOF >> "$cfgfile"
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- _LT_EOF
- ;;
- esac
- ltmain="$ac_aux_dir/ltmain.sh"
- # We use sed instead of cat because bash on DJGPP gets confused if
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
- # text mode, it properly converts lines to CR/LF. This bash problem
- # is reportedly fixed, but why not run on old versions too?
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile"
- || (rm -f "$cfgfile"; exit 1)
- case $xsi_shell in
- yes)
- cat << _LT_EOF >> "$cfgfile"
- # func_dirname file append nondir_replacement
- # Compute the dirname of FILE. If nonempty, add APPEND to the result,
- # otherwise set result to NONDIR_REPLACEMENT.
- func_dirname ()
- {
- case ${1} in
- */*) func_dirname_result="${1%/*}${2}" ;;
- * ) func_dirname_result="${3}" ;;
- esac
- }
- # func_basename file
- func_basename ()
- {
- func_basename_result="${1##*/}"
- }
- # func_dirname_and_basename file append nondir_replacement
- # perform func_basename and func_dirname in a single function
- # call:
- # dirname: Compute the dirname of FILE. If nonempty,
- # add APPEND to the result, otherwise set result
- # to NONDIR_REPLACEMENT.
- # value returned in "$func_dirname_result"
- # basename: Compute filename of FILE.
- # value retuned in "$func_basename_result"
- # Implementation must be kept synchronized with func_dirname
- # and func_basename. For efficiency, we do not delegate to
- # those functions but instead duplicate the functionality here.
- func_dirname_and_basename ()
- {
- case ${1} in
- */*) func_dirname_result="${1%/*}${2}" ;;
- * ) func_dirname_result="${3}" ;;
- esac
- func_basename_result="${1##*/}"
- }
- # func_stripname prefix suffix name
- # strip PREFIX and SUFFIX off of NAME.
- # PREFIX and SUFFIX must not contain globbing or regex special
- # characters, hashes, percent signs, but SUFFIX may contain a leading
- # dot (in which case that matches only a dot).
- func_stripname ()
- {
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
- # positional parameters, so assign one to ordinary parameter first.
- func_stripname_result=${3}
- func_stripname_result=${func_stripname_result#"${1}"}
- func_stripname_result=${func_stripname_result%"${2}"}
- }
- # func_opt_split
- func_opt_split ()
- {
- func_opt_split_opt=${1%%=*}
- func_opt_split_arg=${1#*=}
- }
- # func_lo2o object
- func_lo2o ()
- {
- case ${1} in
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
- *) func_lo2o_result=${1} ;;
- esac
- }
- # func_xform libobj-or-source
- func_xform ()
- {
- func_xform_result=${1%.*}.lo
- }
- # func_arith arithmetic-term...
- func_arith ()
- {
- func_arith_result=$(( $* ))
- }
- # func_len string
- # STRING may not start with a hyphen.
- func_len ()
- {
- func_len_result=${#1}
- }
- _LT_EOF
- ;;
- *) # Bourne compatible functions.
- cat << _LT_EOF >> "$cfgfile"
- # func_dirname file append nondir_replacement
- # Compute the dirname of FILE. If nonempty, add APPEND to the result,
- # otherwise set result to NONDIR_REPLACEMENT.
- func_dirname ()
- {
- # Extract subdirectory from the argument.
- func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
- if test "X$func_dirname_result" = "X${1}"; then
- func_dirname_result="${3}"
- else
- func_dirname_result="$func_dirname_result${2}"
- fi
- }
- # func_basename file
- func_basename ()
- {
- func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
- }
- # func_stripname prefix suffix name
- # strip PREFIX and SUFFIX off of NAME.
- # PREFIX and SUFFIX must not contain globbing or regex special
- # characters, hashes, percent signs, but SUFFIX may contain a leading
- # dot (in which case that matches only a dot).
- # func_strip_suffix prefix name
- func_stripname ()
- {
- case ${2} in
- .*) func_stripname_result=`$ECHO "X${3}"
- | $Xsed -e "s%^${1}%%" -e "s%\\${2}$%%"`;;
- *) func_stripname_result=`$ECHO "X${3}"
- | $Xsed -e "s%^${1}%%" -e "s%${2}$%%"`;;
- esac
- }
- # sed scripts:
- my_sed_long_opt='1s/^(-[^=]*)=.*/1/;q'
- my_sed_long_arg='1s/^-[^=]*=//'
- # func_opt_split
- func_opt_split ()
- {
- func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
- func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
- }
- # func_lo2o object
- func_lo2o ()
- {
- func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
- }
- # func_xform libobj-or-source
- func_xform ()
- {
- func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/.[^.]*$/.lo/'`
- }
- # func_arith arithmetic-term...
- func_arith ()
- {
- func_arith_result=`expr "$@"`
- }
- # func_len string
- # STRING may not start with a hyphen.
- func_len ()
- {
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
- }
- _LT_EOF
- esac
- case $lt_shell_append in
- yes)
- cat << _LT_EOF >> "$cfgfile"
- # func_append var value
- # Append VALUE to the end of shell variable VAR.
- func_append ()
- {
- eval "$1+=$2"
- }
- _LT_EOF
- ;;
- *)
- cat << _LT_EOF >> "$cfgfile"
- # func_append var value
- # Append VALUE to the end of shell variable VAR.
- func_append ()
- {
- eval "$1=$$1$2"
- }
- _LT_EOF
- ;;
- esac
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile"
- || (rm -f "$cfgfile"; exit 1)
- mv -f "$cfgfile" "$ofile" ||
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
- chmod +x "$ofile"
- ;;
- esac
- done # for ac_tag
- { (exit 0); exit 0; }
- _ACEOF
- chmod +x $CONFIG_STATUS
- ac_clean_files=$ac_clean_files_save
- test $ac_write_fail = 0 ||
- { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
- $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
- { (exit 1); exit 1; }; }
- # configure is writing to config.log, and then calls config.status.
- # config.status does its own redirection, appending to config.log.
- # Unfortunately, on DOS this fails, as config.log is still kept open
- # by configure, so config.status won't be able to write to it; its
- # output is simply discarded. So we exec the FD to /dev/null,
- # effectively closing config.log, so it can be properly (re)opened and
- # appended to by config.status. When coming back to configure, we
- # need to make the FD available again.
- if test "$no_create" != yes; then
- ac_cs_success=:
- ac_config_status_args=
- test "$silent" = yes &&
- ac_config_status_args="$ac_config_status_args --quiet"
- exec 5>/dev/null
- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
- exec 5>>config.log
- # Use ||, not &&, to avoid exiting from the if with $? = 1, which
- # would make configure fail if this is the last instruction.
- $ac_cs_success || { (exit 1); exit 1; }
- fi
- if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi