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