comparison configure @ 178:f0f57af581d7

Bring in vamp-plugin-sdk as subrepo, so we can build it with fftw3 support (as this is a GPL'd program)
author Chris Cannam
date Thu, 16 Oct 2014 10:50:42 +0100
parents 795d67a5e266
children c71d6ae15882
comparison
equal deleted inserted replaced
177:795d67a5e266 178:f0f57af581d7
648 liblo_CFLAGS 648 liblo_CFLAGS
649 serd_LIBS 649 serd_LIBS
650 serd_CFLAGS 650 serd_CFLAGS
651 sord_LIBS 651 sord_LIBS
652 sord_CFLAGS 652 sord_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
751 fftw3f_LIBS 747 fftw3f_LIBS
752 sndfile_CFLAGS 748 sndfile_CFLAGS
753 sndfile_LIBS 749 sndfile_LIBS
754 samplerate_CFLAGS 750 samplerate_CFLAGS
755 samplerate_LIBS 751 samplerate_LIBS
756 vamp_CFLAGS
757 vamp_LIBS
758 vamphostsdk_CFLAGS
759 vamphostsdk_LIBS
760 sord_CFLAGS 752 sord_CFLAGS
761 sord_LIBS 753 sord_LIBS
762 serd_CFLAGS 754 serd_CFLAGS
763 serd_LIBS 755 serd_LIBS
764 liblo_CFLAGS 756 liblo_CFLAGS
1414 linker flags for sndfile, overriding pkg-config 1406 linker flags for sndfile, overriding pkg-config
1415 samplerate_CFLAGS 1407 samplerate_CFLAGS
1416 C compiler flags for samplerate, overriding pkg-config 1408 C compiler flags for samplerate, overriding pkg-config
1417 samplerate_LIBS 1409 samplerate_LIBS
1418 linker flags for samplerate, overriding pkg-config 1410 linker flags for samplerate, overriding pkg-config
1419 vamp_CFLAGS C compiler flags for vamp, overriding pkg-config
1420 vamp_LIBS linker flags for vamp, overriding pkg-config
1421 vamphostsdk_CFLAGS
1422 C compiler flags for vamphostsdk, overriding pkg-config
1423 vamphostsdk_LIBS
1424 linker flags for vamphostsdk, overriding pkg-config
1425 sord_CFLAGS C compiler flags for sord, overriding pkg-config 1411 sord_CFLAGS C compiler flags for sord, overriding pkg-config
1426 sord_LIBS linker flags for sord, overriding pkg-config 1412 sord_LIBS linker flags for sord, overriding pkg-config
1427 serd_CFLAGS C compiler flags for serd, overriding pkg-config 1413 serd_CFLAGS C compiler flags for serd, overriding pkg-config
1428 serd_LIBS linker flags for serd, overriding pkg-config 1414 serd_LIBS linker flags for serd, overriding pkg-config
1429 liblo_CFLAGS 1415 liblo_CFLAGS
4184 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" 4170 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
4185 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" 4171 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
4186 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" 4172 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
4187 4173
4188 if test "x$GCC" = "xyes"; then 4174 if test "x$GCC" = "xyes"; then
4189 CXXFLAGS_DEBUG="-Wall -Werror -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" 4175 CXXFLAGS_DEBUG="-Wall -Werror -Wno-error=cpp -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
4190 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe" 4176 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe"
4191 CXXFLAGS_MINIMAL="-g0 -O0" 4177 CXXFLAGS_MINIMAL="-g0 -O0"
4192 fi 4178 fi
4193 4179
4194 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" 4180 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"
4927 samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS 4913 samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS
4928 samplerate_LIBS=$pkg_cv_samplerate_LIBS 4914 samplerate_LIBS=$pkg_cv_samplerate_LIBS
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4930 $as_echo "yes" >&6; } 4916 $as_echo "yes" >&6; }
4931 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED="" 4917 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED=""
4932 fi
4933 fi
4934 if test -n "$SV_MODULE_FAILED"; then
4935 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
4936 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
4937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4938 HAVES="$HAVES $SV_MODULE_HAVE"
4939 else
4940 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
4941 fi
4942
4943
4944 if test -n "$SV_MODULE_LIB"; then
4945 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
4947 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
4948 if eval \${$as_ac_Lib+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 ac_check_lib_save_LIBS=$LIBS
4952 LIBS="-l$SV_MODULE_LIB $LIBS"
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955
4956 /* Override any GCC internal prototype to avoid an error.
4957 Use char because int might match the return type of a GCC
4958 builtin and then its argument prototype would still apply. */
4959 #ifdef __cplusplus
4960 extern "C"
4961 #endif
4962 char $SV_MODULE_FUNC ();
4963 int
4964 main ()
4965 {
4966 return $SV_MODULE_FUNC ();
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 if ac_fn_cxx_try_link "$LINENO"; then :
4972 eval "$as_ac_Lib=yes"
4973 else
4974 eval "$as_ac_Lib=no"
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext \
4977 conftest$ac_exeext conftest.$ac_ext
4978 LIBS=$ac_check_lib_save_LIBS
4979 fi
4980 eval ac_res=\$$as_ac_Lib
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4982 $as_echo "$ac_res" >&6; }
4983 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
4984 LIBS="$LIBS -l$SV_MODULE_LIB"
4985 else
4986 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
4987 fi
4988
4989 fi
4990 fi
4991
4992
4993 SV_MODULE_MODULE=vamp
4994 SV_MODULE_VERSION_TEST="vamp >= 2.1"
4995 SV_MODULE_HEADER=vamp/vamp.h
4996 SV_MODULE_LIB=
4997 SV_MODULE_FUNC=
4998 SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z')
4999 SV_MODULE_FAILED=1
5000 if test -n "$vamp_LIBS" ; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5002 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5003 CXXFLAGS="$CXXFLAGS $vamp_CFLAGS"
5004 LIBS="$LIBS $vamp_LIBS"
5005 SV_MODULE_FAILED=""
5006 fi
5007 if test -z "$SV_MODULE_VERSION_TEST" ; then
5008 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5009 fi
5010 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5011
5012 pkg_failed=no
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamp" >&5
5014 $as_echo_n "checking for vamp... " >&6; }
5015
5016 if test -n "$vamp_CFLAGS"; then
5017 pkg_cv_vamp_CFLAGS="$vamp_CFLAGS"
5018 elif test -n "$PKG_CONFIG"; then
5019 if test -n "$PKG_CONFIG" && \
5020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5021 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5022 ac_status=$?
5023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5024 test $ac_status = 0; }; then
5025 pkg_cv_vamp_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5026 test "x$?" != "x0" && pkg_failed=yes
5027 else
5028 pkg_failed=yes
5029 fi
5030 else
5031 pkg_failed=untried
5032 fi
5033 if test -n "$vamp_LIBS"; then
5034 pkg_cv_vamp_LIBS="$vamp_LIBS"
5035 elif test -n "$PKG_CONFIG"; then
5036 if test -n "$PKG_CONFIG" && \
5037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5038 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5039 ac_status=$?
5040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5041 test $ac_status = 0; }; then
5042 pkg_cv_vamp_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5043 test "x$?" != "x0" && pkg_failed=yes
5044 else
5045 pkg_failed=yes
5046 fi
5047 else
5048 pkg_failed=untried
5049 fi
5050
5051
5052
5053 if test $pkg_failed = yes; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056
5057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5058 _pkg_short_errors_supported=yes
5059 else
5060 _pkg_short_errors_supported=no
5061 fi
5062 if test $_pkg_short_errors_supported = yes; then
5063 vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5064 else
5065 vamp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5066 fi
5067 # Put the nasty error message in config.log where it belongs
5068 echo "$vamp_PKG_ERRORS" >&5
5069
5070 { $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
5071 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5072 elif test $pkg_failed = untried; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 { $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
5076 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5077 else
5078 vamp_CFLAGS=$pkg_cv_vamp_CFLAGS
5079 vamp_LIBS=$pkg_cv_vamp_LIBS
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5081 $as_echo "yes" >&6; }
5082 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED=""
5083 fi
5084 fi
5085 if test -n "$SV_MODULE_FAILED"; then
5086 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5087 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5089 HAVES="$HAVES $SV_MODULE_HAVE"
5090 else
5091 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5092 fi
5093
5094
5095 if test -n "$SV_MODULE_LIB"; then
5096 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5098 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5099 if eval \${$as_ac_Lib+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 ac_check_lib_save_LIBS=$LIBS
5103 LIBS="-l$SV_MODULE_LIB $LIBS"
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106
5107 /* Override any GCC internal prototype to avoid an error.
5108 Use char because int might match the return type of a GCC
5109 builtin and then its argument prototype would still apply. */
5110 #ifdef __cplusplus
5111 extern "C"
5112 #endif
5113 char $SV_MODULE_FUNC ();
5114 int
5115 main ()
5116 {
5117 return $SV_MODULE_FUNC ();
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_cxx_try_link "$LINENO"; then :
5123 eval "$as_ac_Lib=yes"
5124 else
5125 eval "$as_ac_Lib=no"
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext \
5128 conftest$ac_exeext conftest.$ac_ext
5129 LIBS=$ac_check_lib_save_LIBS
5130 fi
5131 eval ac_res=\$$as_ac_Lib
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5133 $as_echo "$ac_res" >&6; }
5134 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5135 LIBS="$LIBS -l$SV_MODULE_LIB"
5136 else
5137 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5138 fi
5139
5140 fi
5141 fi
5142
5143
5144 SV_MODULE_MODULE=vamphostsdk
5145 SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.5"
5146 SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h
5147 SV_MODULE_LIB=vamp-hostsdk
5148 SV_MODULE_FUNC=libvamphostsdk_v_2_5_present
5149 SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z')
5150 SV_MODULE_FAILED=1
5151 if test -n "$vamphostsdk_LIBS" ; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5153 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5154 CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS"
5155 LIBS="$LIBS $vamphostsdk_LIBS"
5156 SV_MODULE_FAILED=""
5157 fi
5158 if test -z "$SV_MODULE_VERSION_TEST" ; then
5159 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5160 fi
5161 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5162
5163 pkg_failed=no
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamphostsdk" >&5
5165 $as_echo_n "checking for vamphostsdk... " >&6; }
5166
5167 if test -n "$vamphostsdk_CFLAGS"; then
5168 pkg_cv_vamphostsdk_CFLAGS="$vamphostsdk_CFLAGS"
5169 elif test -n "$PKG_CONFIG"; then
5170 if test -n "$PKG_CONFIG" && \
5171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5172 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5173 ac_status=$?
5174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5175 test $ac_status = 0; }; then
5176 pkg_cv_vamphostsdk_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5177 test "x$?" != "x0" && pkg_failed=yes
5178 else
5179 pkg_failed=yes
5180 fi
5181 else
5182 pkg_failed=untried
5183 fi
5184 if test -n "$vamphostsdk_LIBS"; then
5185 pkg_cv_vamphostsdk_LIBS="$vamphostsdk_LIBS"
5186 elif test -n "$PKG_CONFIG"; then
5187 if test -n "$PKG_CONFIG" && \
5188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5189 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5190 ac_status=$?
5191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5192 test $ac_status = 0; }; then
5193 pkg_cv_vamphostsdk_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5194 test "x$?" != "x0" && pkg_failed=yes
5195 else
5196 pkg_failed=yes
5197 fi
5198 else
5199 pkg_failed=untried
5200 fi
5201
5202
5203
5204 if test $pkg_failed = yes; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207
5208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5209 _pkg_short_errors_supported=yes
5210 else
5211 _pkg_short_errors_supported=no
5212 fi
5213 if test $_pkg_short_errors_supported = yes; then
5214 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5215 else
5216 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5217 fi
5218 # Put the nasty error message in config.log where it belongs
5219 echo "$vamphostsdk_PKG_ERRORS" >&5
5220
5221 { $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
5222 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5223 elif test $pkg_failed = untried; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5226 { $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
5227 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5228 else
5229 vamphostsdk_CFLAGS=$pkg_cv_vamphostsdk_CFLAGS
5230 vamphostsdk_LIBS=$pkg_cv_vamphostsdk_LIBS
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232 $as_echo "yes" >&6; }
5233 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED=""
5234 fi 4918 fi
5235 fi 4919 fi
5236 if test -n "$SV_MODULE_FAILED"; then 4920 if test -n "$SV_MODULE_FAILED"; then
5237 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` 4921 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5238 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" 4922 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"