comparison configure @ 540:f55363ecc57d

Update subrepos, build etc to match current SV code
author Chris Cannam
date Tue, 12 Feb 2019 15:02:50 +0000
parents 1058d9b37a97
children aec36277d870
comparison
equal deleted inserted replaced
539:23e14483c32b 540:f55363ecc57d
630 MAKEDEPEND 630 MAKEDEPEND
631 XARGS 631 XARGS
632 PERL 632 PERL
633 X11_LIBS 633 X11_LIBS
634 X11_CFLAGS 634 X11_CFLAGS
635 opus_LIBS
636 opus_CFLAGS
635 id3tag_LIBS 637 id3tag_LIBS
636 id3tag_CFLAGS 638 id3tag_CFLAGS
637 mad_LIBS 639 mad_LIBS
638 mad_CFLAGS 640 mad_CFLAGS
639 fishsound_LIBS 641 fishsound_LIBS
778 fishsound_LIBS 780 fishsound_LIBS
779 mad_CFLAGS 781 mad_CFLAGS
780 mad_LIBS 782 mad_LIBS
781 id3tag_CFLAGS 783 id3tag_CFLAGS
782 id3tag_LIBS 784 id3tag_LIBS
785 opus_CFLAGS
786 opus_LIBS
783 X11_CFLAGS 787 X11_CFLAGS
784 X11_LIBS' 788 X11_LIBS'
785 789
786 790
787 # Initialize some variables set by options. 791 # Initialize some variables set by options.
1455 mad_CFLAGS C compiler flags for mad, overriding pkg-config 1459 mad_CFLAGS C compiler flags for mad, overriding pkg-config
1456 mad_LIBS linker flags for mad, overriding pkg-config 1460 mad_LIBS linker flags for mad, overriding pkg-config
1457 id3tag_CFLAGS 1461 id3tag_CFLAGS
1458 C compiler flags for id3tag, overriding pkg-config 1462 C compiler flags for id3tag, overriding pkg-config
1459 id3tag_LIBS linker flags for id3tag, overriding pkg-config 1463 id3tag_LIBS linker flags for id3tag, overriding pkg-config
1464 opus_CFLAGS C compiler flags for opus, overriding pkg-config
1465 opus_LIBS linker flags for opus, overriding pkg-config
1460 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1466 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1461 X11_LIBS linker flags for X11, overriding pkg-config 1467 X11_LIBS linker flags for X11, overriding pkg-config
1462 1468
1463 Use these variables to override the choices made by `configure' or to help 1469 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations. 1470 it to find libraries and programs with nonstandard names/locations.
7069 fi 7075 fi
7070 fi 7076 fi
7071 fi 7077 fi
7072 7078
7073 7079
7080 SV_MODULE_MODULE=opus
7081 SV_MODULE_VERSION_TEST="opusfile"
7082 SV_MODULE_HEADER=opus/opusfile.h
7083 SV_MODULE_LIB=opusfile
7084 SV_MODULE_FUNC=op_read_float
7085 SV_MODULE_HAVE=HAVE_$(echo opus | tr 'a-z' 'A-Z')
7086 SV_MODULE_FAILED=1
7087 if test -n "$opus_LIBS" ; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
7089 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
7090 CXXFLAGS="$CXXFLAGS $opus_CFLAGS"
7091 LIBS="$LIBS $opus_LIBS"
7092 SV_MODULE_FAILED=""
7093 fi
7094 if test -z "$SV_MODULE_VERSION_TEST" ; then
7095 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
7096 fi
7097 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
7098
7099 pkg_failed=no
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opus" >&5
7101 $as_echo_n "checking for opus... " >&6; }
7102
7103 if test -n "$opus_CFLAGS"; then
7104 pkg_cv_opus_CFLAGS="$opus_CFLAGS"
7105 elif test -n "$PKG_CONFIG"; then
7106 if test -n "$PKG_CONFIG" && \
7107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7108 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7109 ac_status=$?
7110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111 test $ac_status = 0; }; then
7112 pkg_cv_opus_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7113 test "x$?" != "x0" && pkg_failed=yes
7114 else
7115 pkg_failed=yes
7116 fi
7117 else
7118 pkg_failed=untried
7119 fi
7120 if test -n "$opus_LIBS"; then
7121 pkg_cv_opus_LIBS="$opus_LIBS"
7122 elif test -n "$PKG_CONFIG"; then
7123 if test -n "$PKG_CONFIG" && \
7124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
7125 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
7126 ac_status=$?
7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128 test $ac_status = 0; }; then
7129 pkg_cv_opus_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
7130 test "x$?" != "x0" && pkg_failed=yes
7131 else
7132 pkg_failed=yes
7133 fi
7134 else
7135 pkg_failed=untried
7136 fi
7137
7138
7139
7140 if test $pkg_failed = yes; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143
7144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7145 _pkg_short_errors_supported=yes
7146 else
7147 _pkg_short_errors_supported=no
7148 fi
7149 if test $_pkg_short_errors_supported = yes; then
7150 opus_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7151 else
7152 opus_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
7153 fi
7154 # Put the nasty error message in config.log where it belongs
7155 echo "$opus_PKG_ERRORS" >&5
7156
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7158 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7159 elif test $pkg_failed = untried; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
7163 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
7164 else
7165 opus_CFLAGS=$pkg_cv_opus_CFLAGS
7166 opus_LIBS=$pkg_cv_opus_LIBS
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7168 $as_echo "yes" >&6; }
7169 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $opus_CFLAGS";LIBS="$LIBS $opus_LIBS";SV_MODULE_FAILED=""
7170 fi
7171 fi
7172 if test -n "$SV_MODULE_FAILED"; then
7173 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
7174 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
7175 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7176 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
7179 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
7180 fi
7181
7182
7183 if test -z "$SV_MODULE_FAILED"; then
7184 if test -n "$SV_MODULE_LIB"; then
7185 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
7187 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
7188 if eval \${$as_ac_Lib+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-l$SV_MODULE_LIB $LIBS"
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195
7196 /* Override any GCC internal prototype to avoid an error.
7197 Use char because int might match the return type of a GCC
7198 builtin and then its argument prototype would still apply. */
7199 #ifdef __cplusplus
7200 extern "C"
7201 #endif
7202 char $SV_MODULE_FUNC ();
7203 int
7204 main ()
7205 {
7206 return $SV_MODULE_FUNC ();
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_cxx_try_link "$LINENO"; then :
7212 eval "$as_ac_Lib=yes"
7213 else
7214 eval "$as_ac_Lib=no"
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 LIBS=$ac_check_lib_save_LIBS
7219 fi
7220 eval ac_res=\$$as_ac_Lib
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7222 $as_echo "$ac_res" >&6; }
7223 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7224 LIBS="$LIBS -l$SV_MODULE_LIB"
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
7227 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
7228 fi
7229
7230 fi
7231 fi
7232 fi
7233
7234
7074 # Link in -lX11 if it exists -- this is for the X error handler 7235 # Link in -lX11 if it exists -- this is for the X error handler
7075 7236
7076 SV_MODULE_MODULE=X11 7237 SV_MODULE_MODULE=X11
7077 SV_MODULE_VERSION_TEST="x11 >= 1.0.0" 7238 SV_MODULE_VERSION_TEST="x11 >= 1.0.0"
7078 SV_MODULE_HEADER=X11/X.h 7239 SV_MODULE_HEADER=X11/X.h