comparison configure @ 1174:0ad516dc5d8d

Presume that the Vamp SDK exists at the directory next door
author Chris Cannam
date Fri, 18 Mar 2016 13:42:54 +0000
parents 8a1328ab9c48
children
comparison
equal deleted inserted replaced
1172:59ae7e04f7e9 1174:0ad516dc5d8d
648 JACK_CFLAGS 648 JACK_CFLAGS
649 portaudio_2_0_LIBS 649 portaudio_2_0_LIBS
650 portaudio_2_0_CFLAGS 650 portaudio_2_0_CFLAGS
651 liblo_LIBS 651 liblo_LIBS
652 liblo_CFLAGS 652 liblo_CFLAGS
653 vamphostsdk_LIBS
654 vamphostsdk_CFLAGS
655 vamp_LIBS
656 vamp_CFLAGS
657 samplerate_LIBS 653 samplerate_LIBS
658 samplerate_CFLAGS 654 samplerate_CFLAGS
659 sndfile_LIBS 655 sndfile_LIBS
660 sndfile_CFLAGS 656 sndfile_CFLAGS
661 fftw3f_LIBS 657 fftw3f_LIBS
752 fftw3f_LIBS 748 fftw3f_LIBS
753 sndfile_CFLAGS 749 sndfile_CFLAGS
754 sndfile_LIBS 750 sndfile_LIBS
755 samplerate_CFLAGS 751 samplerate_CFLAGS
756 samplerate_LIBS 752 samplerate_LIBS
757 vamp_CFLAGS
758 vamp_LIBS
759 vamphostsdk_CFLAGS
760 vamphostsdk_LIBS
761 liblo_CFLAGS 753 liblo_CFLAGS
762 liblo_LIBS 754 liblo_LIBS
763 portaudio_2_0_CFLAGS 755 portaudio_2_0_CFLAGS
764 portaudio_2_0_LIBS 756 portaudio_2_0_LIBS
765 JACK_CFLAGS 757 JACK_CFLAGS
1417 linker flags for sndfile, overriding pkg-config 1409 linker flags for sndfile, overriding pkg-config
1418 samplerate_CFLAGS 1410 samplerate_CFLAGS
1419 C compiler flags for samplerate, overriding pkg-config 1411 C compiler flags for samplerate, overriding pkg-config
1420 samplerate_LIBS 1412 samplerate_LIBS
1421 linker flags for samplerate, overriding pkg-config 1413 linker flags for samplerate, overriding pkg-config
1422 vamp_CFLAGS C compiler flags for vamp, overriding pkg-config
1423 vamp_LIBS linker flags for vamp, overriding pkg-config
1424 vamphostsdk_CFLAGS
1425 C compiler flags for vamphostsdk, overriding pkg-config
1426 vamphostsdk_LIBS
1427 linker flags for vamphostsdk, overriding pkg-config
1428 liblo_CFLAGS 1414 liblo_CFLAGS
1429 C compiler flags for liblo, overriding pkg-config 1415 C compiler flags for liblo, overriding pkg-config
1430 liblo_LIBS linker flags for liblo, overriding pkg-config 1416 liblo_LIBS linker flags for liblo, overriding pkg-config
1431 portaudio_2_0_CFLAGS 1417 portaudio_2_0_CFLAGS
1432 C compiler flags for portaudio_2_0, overriding pkg-config 1418 C compiler flags for portaudio_2_0, overriding pkg-config
5216 5202
5217 fi 5203 fi
5218 fi 5204 fi
5219 5205
5220 5206
5221 SV_MODULE_MODULE=vamp
5222 SV_MODULE_VERSION_TEST="vamp >= 2.1"
5223 SV_MODULE_HEADER=vamp/vamp.h
5224 SV_MODULE_LIB=
5225 SV_MODULE_FUNC=
5226 SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z')
5227 SV_MODULE_FAILED=1
5228 if test -n "$vamp_LIBS" ; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5230 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5231 CXXFLAGS="$CXXFLAGS $vamp_CFLAGS"
5232 LIBS="$LIBS $vamp_LIBS"
5233 SV_MODULE_FAILED=""
5234 fi
5235 if test -z "$SV_MODULE_VERSION_TEST" ; then
5236 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5237 fi
5238 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5239
5240 pkg_failed=no
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamp" >&5
5242 $as_echo_n "checking for vamp... " >&6; }
5243
5244 if test -n "$vamp_CFLAGS"; then
5245 pkg_cv_vamp_CFLAGS="$vamp_CFLAGS"
5246 elif test -n "$PKG_CONFIG"; then
5247 if test -n "$PKG_CONFIG" && \
5248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5249 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5250 ac_status=$?
5251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5252 test $ac_status = 0; }; then
5253 pkg_cv_vamp_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5254 test "x$?" != "x0" && pkg_failed=yes
5255 else
5256 pkg_failed=yes
5257 fi
5258 else
5259 pkg_failed=untried
5260 fi
5261 if test -n "$vamp_LIBS"; then
5262 pkg_cv_vamp_LIBS="$vamp_LIBS"
5263 elif test -n "$PKG_CONFIG"; then
5264 if test -n "$PKG_CONFIG" && \
5265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5266 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5267 ac_status=$?
5268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269 test $ac_status = 0; }; then
5270 pkg_cv_vamp_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5271 test "x$?" != "x0" && pkg_failed=yes
5272 else
5273 pkg_failed=yes
5274 fi
5275 else
5276 pkg_failed=untried
5277 fi
5278
5279
5280
5281 if test $pkg_failed = yes; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284
5285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5286 _pkg_short_errors_supported=yes
5287 else
5288 _pkg_short_errors_supported=no
5289 fi
5290 if test $_pkg_short_errors_supported = yes; then
5291 vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5292 else
5293 vamp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5294 fi
5295 # Put the nasty error message in config.log where it belongs
5296 echo "$vamp_PKG_ERRORS" >&5
5297
5298 { $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
5299 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5300 elif test $pkg_failed = untried; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 { $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
5304 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5305 else
5306 vamp_CFLAGS=$pkg_cv_vamp_CFLAGS
5307 vamp_LIBS=$pkg_cv_vamp_LIBS
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309 $as_echo "yes" >&6; }
5310 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED=""
5311 fi
5312 fi
5313 if test -n "$SV_MODULE_FAILED"; then
5314 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5315 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5316 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5317 HAVES="$HAVES $SV_MODULE_HAVE"
5318 else
5319 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5320 fi
5321
5322
5323 if test -n "$SV_MODULE_LIB"; then
5324 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5326 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5327 if eval \${$as_ac_Lib+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 ac_check_lib_save_LIBS=$LIBS
5331 LIBS="-l$SV_MODULE_LIB $LIBS"
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334
5335 /* Override any GCC internal prototype to avoid an error.
5336 Use char because int might match the return type of a GCC
5337 builtin and then its argument prototype would still apply. */
5338 #ifdef __cplusplus
5339 extern "C"
5340 #endif
5341 char $SV_MODULE_FUNC ();
5342 int
5343 main ()
5344 {
5345 return $SV_MODULE_FUNC ();
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_cxx_try_link "$LINENO"; then :
5351 eval "$as_ac_Lib=yes"
5352 else
5353 eval "$as_ac_Lib=no"
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5358 fi
5359 eval ac_res=\$$as_ac_Lib
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5361 $as_echo "$ac_res" >&6; }
5362 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5363 LIBS="$LIBS -l$SV_MODULE_LIB"
5364 else
5365 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5366 fi
5367
5368 fi
5369 fi
5370
5371
5372 SV_MODULE_MODULE=vamphostsdk
5373 SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.5"
5374 SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h
5375 SV_MODULE_LIB=vamp-hostsdk
5376 SV_MODULE_FUNC=libvamphostsdk_v_2_5_present
5377 SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z')
5378 SV_MODULE_FAILED=1
5379 if test -n "$vamphostsdk_LIBS" ; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5381 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5382 CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS"
5383 LIBS="$LIBS $vamphostsdk_LIBS"
5384 SV_MODULE_FAILED=""
5385 fi
5386 if test -z "$SV_MODULE_VERSION_TEST" ; then
5387 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5388 fi
5389 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5390
5391 pkg_failed=no
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamphostsdk" >&5
5393 $as_echo_n "checking for vamphostsdk... " >&6; }
5394
5395 if test -n "$vamphostsdk_CFLAGS"; then
5396 pkg_cv_vamphostsdk_CFLAGS="$vamphostsdk_CFLAGS"
5397 elif test -n "$PKG_CONFIG"; then
5398 if test -n "$PKG_CONFIG" && \
5399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5400 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5401 ac_status=$?
5402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5403 test $ac_status = 0; }; then
5404 pkg_cv_vamphostsdk_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5405 test "x$?" != "x0" && pkg_failed=yes
5406 else
5407 pkg_failed=yes
5408 fi
5409 else
5410 pkg_failed=untried
5411 fi
5412 if test -n "$vamphostsdk_LIBS"; then
5413 pkg_cv_vamphostsdk_LIBS="$vamphostsdk_LIBS"
5414 elif test -n "$PKG_CONFIG"; then
5415 if test -n "$PKG_CONFIG" && \
5416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5417 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5418 ac_status=$?
5419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5420 test $ac_status = 0; }; then
5421 pkg_cv_vamphostsdk_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5422 test "x$?" != "x0" && pkg_failed=yes
5423 else
5424 pkg_failed=yes
5425 fi
5426 else
5427 pkg_failed=untried
5428 fi
5429
5430
5431
5432 if test $pkg_failed = yes; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435
5436 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5437 _pkg_short_errors_supported=yes
5438 else
5439 _pkg_short_errors_supported=no
5440 fi
5441 if test $_pkg_short_errors_supported = yes; then
5442 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5443 else
5444 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5445 fi
5446 # Put the nasty error message in config.log where it belongs
5447 echo "$vamphostsdk_PKG_ERRORS" >&5
5448
5449 { $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
5450 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5451 elif test $pkg_failed = untried; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 { $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
5455 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5456 else
5457 vamphostsdk_CFLAGS=$pkg_cv_vamphostsdk_CFLAGS
5458 vamphostsdk_LIBS=$pkg_cv_vamphostsdk_LIBS
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5460 $as_echo "yes" >&6; }
5461 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED=""
5462 fi
5463 fi
5464 if test -n "$SV_MODULE_FAILED"; then
5465 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5466 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5468 HAVES="$HAVES $SV_MODULE_HAVE"
5469 else
5470 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5471 fi
5472
5473
5474 if test -n "$SV_MODULE_LIB"; then
5475 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5477 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5478 if eval \${$as_ac_Lib+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 ac_check_lib_save_LIBS=$LIBS
5482 LIBS="-l$SV_MODULE_LIB $LIBS"
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5489 #ifdef __cplusplus
5490 extern "C"
5491 #endif
5492 char $SV_MODULE_FUNC ();
5493 int
5494 main ()
5495 {
5496 return $SV_MODULE_FUNC ();
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 if ac_fn_cxx_try_link "$LINENO"; then :
5502 eval "$as_ac_Lib=yes"
5503 else
5504 eval "$as_ac_Lib=no"
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext \
5507 conftest$ac_exeext conftest.$ac_ext
5508 LIBS=$ac_check_lib_save_LIBS
5509 fi
5510 eval ac_res=\$$as_ac_Lib
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5512 $as_echo "$ac_res" >&6; }
5513 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5514 LIBS="$LIBS -l$SV_MODULE_LIB"
5515 else
5516 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5517 fi
5518
5519 fi
5520 fi
5521
5522
5523 5207
5524 SV_MODULE_MODULE=liblo 5208 SV_MODULE_MODULE=liblo
5525 SV_MODULE_VERSION_TEST="" 5209 SV_MODULE_VERSION_TEST=""
5526 SV_MODULE_HEADER=lo/lo.h 5210 SV_MODULE_HEADER=lo/lo.h
5527 SV_MODULE_LIB=lo 5211 SV_MODULE_LIB=lo