comparison configure @ 1148:c0d841cb8ab9 tony-2.0-integration

Merge latest SV 3.0 branch code
author Chris Cannam
date Fri, 19 Aug 2016 15:58:57 +0100
parents 3691af49291c
children
comparison
equal deleted inserted replaced
1009:96cf499fad62 1148:c0d841cb8ab9
644 lrdf_CFLAGS 644 lrdf_CFLAGS
645 libpulse_LIBS 645 libpulse_LIBS
646 libpulse_CFLAGS 646 libpulse_CFLAGS
647 JACK_LIBS 647 JACK_LIBS
648 JACK_CFLAGS 648 JACK_CFLAGS
649 portaudio_2_0_LIBS 649 portaudio_LIBS
650 portaudio_2_0_CFLAGS 650 portaudio_CFLAGS
651 liblo_LIBS 651 liblo_LIBS
652 liblo_CFLAGS 652 liblo_CFLAGS
653 rubberband_LIBS 653 rubberband_LIBS
654 rubberband_CFLAGS 654 rubberband_CFLAGS
655 vamphostsdk_LIBS
656 vamphostsdk_CFLAGS
657 vamp_LIBS
658 vamp_CFLAGS
659 samplerate_LIBS 655 samplerate_LIBS
660 samplerate_CFLAGS 656 samplerate_CFLAGS
661 sndfile_LIBS 657 sndfile_LIBS
662 sndfile_CFLAGS 658 sndfile_CFLAGS
663 fftw3f_LIBS 659 fftw3f_LIBS
754 fftw3f_LIBS 750 fftw3f_LIBS
755 sndfile_CFLAGS 751 sndfile_CFLAGS
756 sndfile_LIBS 752 sndfile_LIBS
757 samplerate_CFLAGS 753 samplerate_CFLAGS
758 samplerate_LIBS 754 samplerate_LIBS
759 vamp_CFLAGS
760 vamp_LIBS
761 vamphostsdk_CFLAGS
762 vamphostsdk_LIBS
763 rubberband_CFLAGS 755 rubberband_CFLAGS
764 rubberband_LIBS 756 rubberband_LIBS
765 liblo_CFLAGS 757 liblo_CFLAGS
766 liblo_LIBS 758 liblo_LIBS
767 portaudio_2_0_CFLAGS 759 portaudio_CFLAGS
768 portaudio_2_0_LIBS 760 portaudio_LIBS
769 JACK_CFLAGS 761 JACK_CFLAGS
770 JACK_LIBS 762 JACK_LIBS
771 libpulse_CFLAGS 763 libpulse_CFLAGS
772 libpulse_LIBS 764 libpulse_LIBS
773 lrdf_CFLAGS 765 lrdf_CFLAGS
1421 linker flags for sndfile, overriding pkg-config 1413 linker flags for sndfile, overriding pkg-config
1422 samplerate_CFLAGS 1414 samplerate_CFLAGS
1423 C compiler flags for samplerate, overriding pkg-config 1415 C compiler flags for samplerate, overriding pkg-config
1424 samplerate_LIBS 1416 samplerate_LIBS
1425 linker flags for samplerate, overriding pkg-config 1417 linker flags for samplerate, overriding pkg-config
1426 vamp_CFLAGS C compiler flags for vamp, overriding pkg-config
1427 vamp_LIBS linker flags for vamp, overriding pkg-config
1428 vamphostsdk_CFLAGS
1429 C compiler flags for vamphostsdk, overriding pkg-config
1430 vamphostsdk_LIBS
1431 linker flags for vamphostsdk, overriding pkg-config
1432 rubberband_CFLAGS 1418 rubberband_CFLAGS
1433 C compiler flags for rubberband, overriding pkg-config 1419 C compiler flags for rubberband, overriding pkg-config
1434 rubberband_LIBS 1420 rubberband_LIBS
1435 linker flags for rubberband, overriding pkg-config 1421 linker flags for rubberband, overriding pkg-config
1436 liblo_CFLAGS 1422 liblo_CFLAGS
1437 C compiler flags for liblo, overriding pkg-config 1423 C compiler flags for liblo, overriding pkg-config
1438 liblo_LIBS linker flags for liblo, overriding pkg-config 1424 liblo_LIBS linker flags for liblo, overriding pkg-config
1439 portaudio_2_0_CFLAGS 1425 portaudio_CFLAGS
1440 C compiler flags for portaudio_2_0, overriding pkg-config 1426 C compiler flags for portaudio, overriding pkg-config
1441 portaudio_2_0_LIBS 1427 portaudio_LIBS
1442 linker flags for portaudio_2_0, overriding pkg-config 1428 linker flags for portaudio, overriding pkg-config
1443 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config 1429 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1444 JACK_LIBS linker flags for JACK, overriding pkg-config 1430 JACK_LIBS linker flags for JACK, overriding pkg-config
1445 libpulse_CFLAGS 1431 libpulse_CFLAGS
1446 C compiler flags for libpulse, overriding pkg-config 1432 C compiler flags for libpulse, overriding pkg-config
1447 libpulse_LIBS 1433 libpulse_LIBS
4135 fi 4121 fi
4136 4122
4137 4123
4138 fi 4124 fi
4139 if test x$QMAKE = x ; then 4125 if test x$QMAKE = x ; then
4126 # Extract the first word of "qt5-qmake", so it can be a program name with args.
4127 set dummy qt5-qmake; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_QMAKE+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -n "$QMAKE"; then
4134 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $QTDIR/bin/
4138 do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_QMAKE="$QTDIR/bin/qt5-qmake"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147 done
4148 done
4149 IFS=$as_save_IFS
4150
4151 fi
4152 fi
4153 QMAKE=$ac_cv_prog_QMAKE
4154 if test -n "$QMAKE"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4156 $as_echo "$QMAKE" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 fi
4161
4162
4163 fi
4164 if test x$QMAKE = x ; then
4140 # Extract the first word of "qmake", so it can be a program name with args. 4165 # Extract the first word of "qmake", so it can be a program name with args.
4141 set dummy qmake; ac_word=$2 4166 set dummy qmake; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; } 4168 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_QMAKE+:} false; then : 4169 if ${ac_cv_prog_QMAKE+:} false; then :
4231 IFS=$as_save_IFS 4256 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=. 4257 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do 4258 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_QMAKE="qmake-qt5" 4260 ac_cv_prog_QMAKE="qmake-qt5"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4263 fi
4264 done
4265 done
4266 IFS=$as_save_IFS
4267
4268 fi
4269 fi
4270 QMAKE=$ac_cv_prog_QMAKE
4271 if test -n "$QMAKE"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
4273 $as_echo "$QMAKE" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4277 fi
4278
4279
4280 fi
4281 if test x$QMAKE = x ; then
4282 # Extract the first word of "qt5-qmake", so it can be a program name with args.
4283 set dummy qt5-qmake; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_QMAKE+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$QMAKE"; then
4290 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_QMAKE="qt5-qmake"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2 4301 break 2
4238 fi 4302 fi
4239 done 4303 done
4240 done 4304 done
5146 5210
5147 fi 5211 fi
5148 fi 5212 fi
5149 5213
5150 5214
5151 SV_MODULE_MODULE=vamp 5215 SV_MODULE_MODULE=rubberband
5152 SV_MODULE_VERSION_TEST="vamp >= 2.1" 5216 SV_MODULE_VERSION_TEST="rubberband"
5153 SV_MODULE_HEADER=vamp/vamp.h 5217 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
5154 SV_MODULE_LIB= 5218 SV_MODULE_LIB=rubberband
5155 SV_MODULE_FUNC= 5219 SV_MODULE_FUNC=rubberband_new
5156 SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z') 5220 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
5157 SV_MODULE_FAILED=1 5221 SV_MODULE_FAILED=1
5158 if test -n "$vamp_LIBS" ; then 5222 if test -n "$rubberband_LIBS" ; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5160 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} 5224 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5161 CXXFLAGS="$CXXFLAGS $vamp_CFLAGS" 5225 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
5162 LIBS="$LIBS $vamp_LIBS" 5226 LIBS="$LIBS $rubberband_LIBS"
5163 SV_MODULE_FAILED="" 5227 SV_MODULE_FAILED=""
5164 fi 5228 fi
5165 if test -z "$SV_MODULE_VERSION_TEST" ; then 5229 if test -z "$SV_MODULE_VERSION_TEST" ; then
5166 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE 5230 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5167 fi 5231 fi
5168 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then 5232 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5169 5233
5170 pkg_failed=no 5234 pkg_failed=no
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamp" >&5 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5
5172 $as_echo_n "checking for vamp... " >&6; } 5236 $as_echo_n "checking for rubberband... " >&6; }
5173 5237
5174 if test -n "$vamp_CFLAGS"; then 5238 if test -n "$rubberband_CFLAGS"; then
5175 pkg_cv_vamp_CFLAGS="$vamp_CFLAGS" 5239 pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS"
5176 elif test -n "$PKG_CONFIG"; then 5240 elif test -n "$PKG_CONFIG"; then
5177 if test -n "$PKG_CONFIG" && \ 5241 if test -n "$PKG_CONFIG" && \
5178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5179 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5243 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5180 ac_status=$? 5244 ac_status=$?
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }; then 5246 test $ac_status = 0; }; then
5183 pkg_cv_vamp_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5247 pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5184 test "x$?" != "x0" && pkg_failed=yes 5248 test "x$?" != "x0" && pkg_failed=yes
5185 else 5249 else
5186 pkg_failed=yes 5250 pkg_failed=yes
5187 fi 5251 fi
5188 else 5252 else
5189 pkg_failed=untried 5253 pkg_failed=untried
5190 fi 5254 fi
5191 if test -n "$vamp_LIBS"; then 5255 if test -n "$rubberband_LIBS"; then
5192 pkg_cv_vamp_LIBS="$vamp_LIBS" 5256 pkg_cv_rubberband_LIBS="$rubberband_LIBS"
5193 elif test -n "$PKG_CONFIG"; then 5257 elif test -n "$PKG_CONFIG"; then
5194 if test -n "$PKG_CONFIG" && \ 5258 if test -n "$PKG_CONFIG" && \
5195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5196 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5260 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5197 ac_status=$? 5261 ac_status=$?
5198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5199 test $ac_status = 0; }; then 5263 test $ac_status = 0; }; then
5200 pkg_cv_vamp_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5264 pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5201 test "x$?" != "x0" && pkg_failed=yes 5265 test "x$?" != "x0" && pkg_failed=yes
5202 else 5266 else
5203 pkg_failed=yes 5267 pkg_failed=yes
5204 fi 5268 fi
5205 else 5269 else
5216 _pkg_short_errors_supported=yes 5280 _pkg_short_errors_supported=yes
5217 else 5281 else
5218 _pkg_short_errors_supported=no 5282 _pkg_short_errors_supported=no
5219 fi 5283 fi
5220 if test $_pkg_short_errors_supported = yes; then 5284 if test $_pkg_short_errors_supported = yes; then
5221 vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5285 rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5222 else 5286 else
5223 vamp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5287 rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5224 fi 5288 fi
5225 # Put the nasty error message in config.log where it belongs 5289 # Put the nasty error message in config.log where it belongs
5226 echo "$vamp_PKG_ERRORS" >&5 5290 echo "$rubberband_PKG_ERRORS" >&5
5227 5291
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5229 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5293 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5230 elif test $pkg_failed = untried; then 5294 elif test $pkg_failed = untried; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; } 5296 $as_echo "no" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5234 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5298 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5235 else 5299 else
5236 vamp_CFLAGS=$pkg_cv_vamp_CFLAGS 5300 rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
5237 vamp_LIBS=$pkg_cv_vamp_LIBS 5301 rubberband_LIBS=$pkg_cv_rubberband_LIBS
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239 $as_echo "yes" >&6; } 5303 $as_echo "yes" >&6; }
5240 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED="" 5304 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
5241 fi 5305 fi
5242 fi 5306 fi
5243 if test -n "$SV_MODULE_FAILED"; then 5307 if test -n "$SV_MODULE_FAILED"; then
5244 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` 5308 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5245 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" 5309 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5297 5361
5298 fi 5362 fi
5299 fi 5363 fi
5300 5364
5301 5365
5302 SV_MODULE_MODULE=vamphostsdk 5366
5303 SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.5" 5367 SV_MODULE_MODULE=liblo
5304 SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h 5368 SV_MODULE_VERSION_TEST=""
5305 SV_MODULE_LIB=vamp-hostsdk 5369 SV_MODULE_HEADER=lo/lo.h
5306 SV_MODULE_FUNC=libvamphostsdk_v_2_5_present 5370 SV_MODULE_LIB=lo
5307 SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z') 5371 SV_MODULE_FUNC=lo_address_new
5372 SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
5308 SV_MODULE_FAILED=1 5373 SV_MODULE_FAILED=1
5309 if test -n "$vamphostsdk_LIBS" ; then 5374 if test -n "$liblo_LIBS" ; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5311 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} 5376 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5312 CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS" 5377 CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
5313 LIBS="$LIBS $vamphostsdk_LIBS" 5378 LIBS="$LIBS $liblo_LIBS"
5314 SV_MODULE_FAILED="" 5379 SV_MODULE_FAILED=""
5315 fi 5380 fi
5316 if test -z "$SV_MODULE_VERSION_TEST" ; then 5381 if test -z "$SV_MODULE_VERSION_TEST" ; then
5317 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE 5382 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5318 fi 5383 fi
5319 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then 5384 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5320 5385
5321 pkg_failed=no 5386 pkg_failed=no
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamphostsdk" >&5 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5
5323 $as_echo_n "checking for vamphostsdk... " >&6; } 5388 $as_echo_n "checking for liblo... " >&6; }
5324 5389
5325 if test -n "$vamphostsdk_CFLAGS"; then 5390 if test -n "$liblo_CFLAGS"; then
5326 pkg_cv_vamphostsdk_CFLAGS="$vamphostsdk_CFLAGS" 5391 pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
5327 elif test -n "$PKG_CONFIG"; then 5392 elif test -n "$PKG_CONFIG"; then
5328 if test -n "$PKG_CONFIG" && \ 5393 if test -n "$PKG_CONFIG" && \
5329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5330 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5395 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5331 ac_status=$? 5396 ac_status=$?
5332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5333 test $ac_status = 0; }; then 5398 test $ac_status = 0; }; then
5334 pkg_cv_vamphostsdk_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5399 pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5335 test "x$?" != "x0" && pkg_failed=yes 5400 test "x$?" != "x0" && pkg_failed=yes
5336 else 5401 else
5337 pkg_failed=yes 5402 pkg_failed=yes
5338 fi 5403 fi
5339 else 5404 else
5340 pkg_failed=untried 5405 pkg_failed=untried
5341 fi 5406 fi
5342 if test -n "$vamphostsdk_LIBS"; then 5407 if test -n "$liblo_LIBS"; then
5343 pkg_cv_vamphostsdk_LIBS="$vamphostsdk_LIBS" 5408 pkg_cv_liblo_LIBS="$liblo_LIBS"
5344 elif test -n "$PKG_CONFIG"; then 5409 elif test -n "$PKG_CONFIG"; then
5345 if test -n "$PKG_CONFIG" && \ 5410 if test -n "$PKG_CONFIG" && \
5346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5347 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5412 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5348 ac_status=$? 5413 ac_status=$?
5349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5350 test $ac_status = 0; }; then 5415 test $ac_status = 0; }; then
5351 pkg_cv_vamphostsdk_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5416 pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5352 test "x$?" != "x0" && pkg_failed=yes 5417 test "x$?" != "x0" && pkg_failed=yes
5353 else 5418 else
5354 pkg_failed=yes 5419 pkg_failed=yes
5355 fi 5420 fi
5356 else 5421 else
5367 _pkg_short_errors_supported=yes 5432 _pkg_short_errors_supported=yes
5368 else 5433 else
5369 _pkg_short_errors_supported=no 5434 _pkg_short_errors_supported=no
5370 fi 5435 fi
5371 if test $_pkg_short_errors_supported = yes; then 5436 if test $_pkg_short_errors_supported = yes; then
5372 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5437 liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5373 else 5438 else
5374 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5439 liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5375 fi 5440 fi
5376 # Put the nasty error message in config.log where it belongs 5441 # Put the nasty error message in config.log where it belongs
5377 echo "$vamphostsdk_PKG_ERRORS" >&5 5442 echo "$liblo_PKG_ERRORS" >&5
5378 5443
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5444 { $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
5380 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5445 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5381 elif test $pkg_failed = untried; then 5446 elif test $pkg_failed = untried; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; } 5448 $as_echo "no" >&6; }
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5449 { $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
5385 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5450 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5386 else 5451 else
5387 vamphostsdk_CFLAGS=$pkg_cv_vamphostsdk_CFLAGS 5452 liblo_CFLAGS=$pkg_cv_liblo_CFLAGS
5388 vamphostsdk_LIBS=$pkg_cv_vamphostsdk_LIBS 5453 liblo_LIBS=$pkg_cv_liblo_LIBS
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390 $as_echo "yes" >&6; } 5455 $as_echo "yes" >&6; }
5391 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED="" 5456 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED=""
5392 fi 5457 fi
5393 fi 5458 fi
5394 if test -n "$SV_MODULE_FAILED"; then 5459 if test -n "$SV_MODULE_FAILED"; then
5395 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` 5460 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5396 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" 5461 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5398 HAVES="$HAVES $SV_MODULE_HAVE" 5463 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
5399 else 5464 else
5400 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
5401 fi 5466 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
5402 5467 fi
5403 5468
5404 if test -n "$SV_MODULE_LIB"; then 5469
5405 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` 5470 if test -z "$SV_MODULE_FAILED"; then
5471 if test -n "$SV_MODULE_LIB"; then
5472 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5407 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } 5474 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5408 if eval \${$as_ac_Lib+:} false; then : 5475 if eval \${$as_ac_Lib+:} false; then :
5409 $as_echo_n "(cached) " >&6 5476 $as_echo_n "(cached) " >&6
5410 else 5477 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5442 $as_echo "$ac_res" >&6; } 5509 $as_echo "$ac_res" >&6; }
5443 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 5510 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5444 LIBS="$LIBS -l$SV_MODULE_LIB" 5511 LIBS="$LIBS -l$SV_MODULE_LIB"
5445 else 5512 else
5446 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
5447 fi 5514 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
5448 5515 fi
5516
5517 fi
5449 fi 5518 fi
5450 fi 5519 fi
5451 5520
5452 5521
5453 SV_MODULE_MODULE=rubberband 5522 SV_MODULE_MODULE=portaudio
5454 SV_MODULE_VERSION_TEST="rubberband" 5523 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
5455 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h 5524 SV_MODULE_HEADER=portaudio.h
5456 SV_MODULE_LIB=rubberband 5525 SV_MODULE_LIB=portaudio
5457 SV_MODULE_FUNC=rubberband_new 5526 SV_MODULE_FUNC=Pa_IsFormatSupported
5458 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z') 5527 SV_MODULE_HAVE=HAVE_$(echo portaudio | tr 'a-z' 'A-Z')
5459 SV_MODULE_FAILED=1 5528 SV_MODULE_FAILED=1
5460 if test -n "$rubberband_LIBS" ; then 5529 if test -n "$portaudio_LIBS" ; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5462 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} 5531 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5463 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS" 5532 CXXFLAGS="$CXXFLAGS $portaudio_CFLAGS"
5464 LIBS="$LIBS $rubberband_LIBS" 5533 LIBS="$LIBS $portaudio_LIBS"
5465 SV_MODULE_FAILED="" 5534 SV_MODULE_FAILED=""
5466 fi 5535 fi
5467 if test -z "$SV_MODULE_VERSION_TEST" ; then 5536 if test -z "$SV_MODULE_VERSION_TEST" ; then
5468 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE 5537 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5469 fi 5538 fi
5470 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then 5539 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5471 5540
5472 pkg_failed=no 5541 pkg_failed=no
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio" >&5
5474 $as_echo_n "checking for rubberband... " >&6; } 5543 $as_echo_n "checking for portaudio... " >&6; }
5475 5544
5476 if test -n "$rubberband_CFLAGS"; then 5545 if test -n "$portaudio_CFLAGS"; then
5477 pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS" 5546 pkg_cv_portaudio_CFLAGS="$portaudio_CFLAGS"
5478 elif test -n "$PKG_CONFIG"; then 5547 elif test -n "$PKG_CONFIG"; then
5479 if test -n "$PKG_CONFIG" && \ 5548 if test -n "$PKG_CONFIG" && \
5480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5549 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5481 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5550 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5482 ac_status=$? 5551 ac_status=$?
5483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5484 test $ac_status = 0; }; then 5553 test $ac_status = 0; }; then
5485 pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5554 pkg_cv_portaudio_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5486 test "x$?" != "x0" && pkg_failed=yes 5555 test "x$?" != "x0" && pkg_failed=yes
5487 else 5556 else
5488 pkg_failed=yes 5557 pkg_failed=yes
5489 fi 5558 fi
5490 else 5559 else
5491 pkg_failed=untried 5560 pkg_failed=untried
5492 fi 5561 fi
5493 if test -n "$rubberband_LIBS"; then 5562 if test -n "$portaudio_LIBS"; then
5494 pkg_cv_rubberband_LIBS="$rubberband_LIBS" 5563 pkg_cv_portaudio_LIBS="$portaudio_LIBS"
5495 elif test -n "$PKG_CONFIG"; then 5564 elif test -n "$PKG_CONFIG"; then
5496 if test -n "$PKG_CONFIG" && \ 5565 if test -n "$PKG_CONFIG" && \
5497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5498 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5567 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5499 ac_status=$? 5568 ac_status=$?
5500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5501 test $ac_status = 0; }; then 5570 test $ac_status = 0; }; then
5502 pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5571 pkg_cv_portaudio_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5503 test "x$?" != "x0" && pkg_failed=yes 5572 test "x$?" != "x0" && pkg_failed=yes
5504 else 5573 else
5505 pkg_failed=yes 5574 pkg_failed=yes
5506 fi 5575 fi
5507 else 5576 else
5518 _pkg_short_errors_supported=yes 5587 _pkg_short_errors_supported=yes
5519 else 5588 else
5520 _pkg_short_errors_supported=no 5589 _pkg_short_errors_supported=no
5521 fi 5590 fi
5522 if test $_pkg_short_errors_supported = yes; then 5591 if test $_pkg_short_errors_supported = yes; then
5523 rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5592 portaudio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5524 else 5593 else
5525 rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5594 portaudio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5526 fi 5595 fi
5527 # Put the nasty error message in config.log where it belongs 5596 # Put the nasty error message in config.log where it belongs
5528 echo "$rubberband_PKG_ERRORS" >&5 5597 echo "$portaudio_PKG_ERRORS" >&5
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5531 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5532 elif test $pkg_failed = untried; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5536 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5537 else
5538 rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
5539 rubberband_LIBS=$pkg_cv_rubberband_LIBS
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5541 $as_echo "yes" >&6; }
5542 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
5543 fi
5544 fi
5545 if test -n "$SV_MODULE_FAILED"; then
5546 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5547 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5549 HAVES="$HAVES $SV_MODULE_HAVE"
5550 else
5551 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5552 fi
5553
5554
5555 if test -n "$SV_MODULE_LIB"; then
5556 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5558 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5559 if eval \${$as_ac_Lib+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 ac_check_lib_save_LIBS=$LIBS
5563 LIBS="-l$SV_MODULE_LIB $LIBS"
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566
5567 /* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 char $SV_MODULE_FUNC ();
5574 int
5575 main ()
5576 {
5577 return $SV_MODULE_FUNC ();
5578 ;
5579 return 0;
5580 }
5581 _ACEOF
5582 if ac_fn_cxx_try_link "$LINENO"; then :
5583 eval "$as_ac_Lib=yes"
5584 else
5585 eval "$as_ac_Lib=no"
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext \
5588 conftest$ac_exeext conftest.$ac_ext
5589 LIBS=$ac_check_lib_save_LIBS
5590 fi
5591 eval ac_res=\$$as_ac_Lib
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5593 $as_echo "$ac_res" >&6; }
5594 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5595 LIBS="$LIBS -l$SV_MODULE_LIB"
5596 else
5597 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5598 fi
5599
5600 fi
5601 fi
5602
5603
5604
5605 SV_MODULE_MODULE=liblo
5606 SV_MODULE_VERSION_TEST=""
5607 SV_MODULE_HEADER=lo/lo.h
5608 SV_MODULE_LIB=lo
5609 SV_MODULE_FUNC=lo_address_new
5610 SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
5611 SV_MODULE_FAILED=1
5612 if test -n "$liblo_LIBS" ; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5614 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5615 CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
5616 LIBS="$LIBS $liblo_LIBS"
5617 SV_MODULE_FAILED=""
5618 fi
5619 if test -z "$SV_MODULE_VERSION_TEST" ; then
5620 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5621 fi
5622 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5623
5624 pkg_failed=no
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5
5626 $as_echo_n "checking for liblo... " >&6; }
5627
5628 if test -n "$liblo_CFLAGS"; then
5629 pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
5630 elif test -n "$PKG_CONFIG"; then
5631 if test -n "$PKG_CONFIG" && \
5632 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5633 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; }; then
5637 pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5638 test "x$?" != "x0" && pkg_failed=yes
5639 else
5640 pkg_failed=yes
5641 fi
5642 else
5643 pkg_failed=untried
5644 fi
5645 if test -n "$liblo_LIBS"; then
5646 pkg_cv_liblo_LIBS="$liblo_LIBS"
5647 elif test -n "$PKG_CONFIG"; then
5648 if test -n "$PKG_CONFIG" && \
5649 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5650 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5651 ac_status=$?
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; }; then
5654 pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5655 test "x$?" != "x0" && pkg_failed=yes
5656 else
5657 pkg_failed=yes
5658 fi
5659 else
5660 pkg_failed=untried
5661 fi
5662
5663
5664
5665 if test $pkg_failed = yes; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668
5669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5670 _pkg_short_errors_supported=yes
5671 else
5672 _pkg_short_errors_supported=no
5673 fi
5674 if test $_pkg_short_errors_supported = yes; then
5675 liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5676 else
5677 liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5678 fi
5679 # Put the nasty error message in config.log where it belongs
5680 echo "$liblo_PKG_ERRORS" >&5
5681 5598
5682 { $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 5599 { $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
5683 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5600 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5684 elif test $pkg_failed = untried; then 5601 elif test $pkg_failed = untried; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; } 5603 $as_echo "no" >&6; }
5687 { $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 5604 { $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
5688 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5605 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5689 else 5606 else
5690 liblo_CFLAGS=$pkg_cv_liblo_CFLAGS 5607 portaudio_CFLAGS=$pkg_cv_portaudio_CFLAGS
5691 liblo_LIBS=$pkg_cv_liblo_LIBS 5608 portaudio_LIBS=$pkg_cv_portaudio_LIBS
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; } 5610 $as_echo "yes" >&6; }
5694 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED="" 5611 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_CFLAGS";LIBS="$LIBS $portaudio_LIBS";SV_MODULE_FAILED=""
5695 fi
5696 fi
5697 if test -n "$SV_MODULE_FAILED"; then
5698 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5699 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5701 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
5704 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
5705 fi
5706
5707
5708 if test -z "$SV_MODULE_FAILED"; then
5709 if test -n "$SV_MODULE_LIB"; then
5710 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5712 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5713 if eval \${$as_ac_Lib+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 ac_check_lib_save_LIBS=$LIBS
5717 LIBS="-l$SV_MODULE_LIB $LIBS"
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720
5721 /* Override any GCC internal prototype to avoid an error.
5722 Use char because int might match the return type of a GCC
5723 builtin and then its argument prototype would still apply. */
5724 #ifdef __cplusplus
5725 extern "C"
5726 #endif
5727 char $SV_MODULE_FUNC ();
5728 int
5729 main ()
5730 {
5731 return $SV_MODULE_FUNC ();
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 if ac_fn_cxx_try_link "$LINENO"; then :
5737 eval "$as_ac_Lib=yes"
5738 else
5739 eval "$as_ac_Lib=no"
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext \
5742 conftest$ac_exeext conftest.$ac_ext
5743 LIBS=$ac_check_lib_save_LIBS
5744 fi
5745 eval ac_res=\$$as_ac_Lib
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5747 $as_echo "$ac_res" >&6; }
5748 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5749 LIBS="$LIBS -l$SV_MODULE_LIB"
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
5752 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
5753 fi
5754
5755 fi
5756 fi
5757 fi
5758
5759
5760 SV_MODULE_MODULE=portaudio_2_0
5761 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
5762 SV_MODULE_HEADER=portaudio.h
5763 SV_MODULE_LIB=portaudio
5764 SV_MODULE_FUNC=Pa_IsFormatSupported
5765 SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z')
5766 SV_MODULE_FAILED=1
5767 if test -n "$portaudio_2_0_LIBS" ; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5769 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5770 CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS"
5771 LIBS="$LIBS $portaudio_2_0_LIBS"
5772 SV_MODULE_FAILED=""
5773 fi
5774 if test -z "$SV_MODULE_VERSION_TEST" ; then
5775 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5776 fi
5777 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5778
5779 pkg_failed=no
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio_2_0" >&5
5781 $as_echo_n "checking for portaudio_2_0... " >&6; }
5782
5783 if test -n "$portaudio_2_0_CFLAGS"; then
5784 pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS"
5785 elif test -n "$PKG_CONFIG"; then
5786 if test -n "$PKG_CONFIG" && \
5787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5788 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5789 ac_status=$?
5790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }; then
5792 pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5793 test "x$?" != "x0" && pkg_failed=yes
5794 else
5795 pkg_failed=yes
5796 fi
5797 else
5798 pkg_failed=untried
5799 fi
5800 if test -n "$portaudio_2_0_LIBS"; then
5801 pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS"
5802 elif test -n "$PKG_CONFIG"; then
5803 if test -n "$PKG_CONFIG" && \
5804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5805 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5806 ac_status=$?
5807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5808 test $ac_status = 0; }; then
5809 pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5810 test "x$?" != "x0" && pkg_failed=yes
5811 else
5812 pkg_failed=yes
5813 fi
5814 else
5815 pkg_failed=untried
5816 fi
5817
5818
5819
5820 if test $pkg_failed = yes; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823
5824 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5825 _pkg_short_errors_supported=yes
5826 else
5827 _pkg_short_errors_supported=no
5828 fi
5829 if test $_pkg_short_errors_supported = yes; then
5830 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5831 else
5832 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5833 fi
5834 # Put the nasty error message in config.log where it belongs
5835 echo "$portaudio_2_0_PKG_ERRORS" >&5
5836
5837 { $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
5838 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5839 elif test $pkg_failed = untried; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 { $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
5843 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5844 else
5845 portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS
5846 portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5848 $as_echo "yes" >&6; }
5849 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED=""
5850 fi 5612 fi
5851 fi 5613 fi
5852 if test -n "$SV_MODULE_FAILED"; then 5614 if test -n "$SV_MODULE_FAILED"; then
5853 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` 5615 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5854 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" 5616 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"