comparison configure @ 570:3facd03da4a4

* Add test for PortAudio
author Chris Cannam
date Fri, 08 Oct 2010 11:57:31 +0100
parents a8e145ea726b
children 4cc67b45aaa7
comparison
equal deleted inserted replaced
569:036757e771f2 570:3facd03da4a4
616 lrdf_CFLAGS 616 lrdf_CFLAGS
617 libpulse_LIBS 617 libpulse_LIBS
618 libpulse_CFLAGS 618 libpulse_CFLAGS
619 JACK_LIBS 619 JACK_LIBS
620 JACK_CFLAGS 620 JACK_CFLAGS
621 portaudio_2_0_LIBS
622 portaudio_2_0_CFLAGS
621 liblo_LIBS 623 liblo_LIBS
622 liblo_CFLAGS 624 liblo_CFLAGS
623 redland_LIBS 625 redland_LIBS
624 redland_CFLAGS 626 redland_CFLAGS
625 rasqal_LIBS 627 rasqal_LIBS
739 rasqal_LIBS 741 rasqal_LIBS
740 redland_CFLAGS 742 redland_CFLAGS
741 redland_LIBS 743 redland_LIBS
742 liblo_CFLAGS 744 liblo_CFLAGS
743 liblo_LIBS 745 liblo_LIBS
746 portaudio_2_0_CFLAGS
747 portaudio_2_0_LIBS
744 JACK_CFLAGS 748 JACK_CFLAGS
745 JACK_LIBS 749 JACK_LIBS
746 libpulse_CFLAGS 750 libpulse_CFLAGS
747 libpulse_LIBS 751 libpulse_LIBS
748 lrdf_CFLAGS 752 lrdf_CFLAGS
1416 redland_LIBS 1420 redland_LIBS
1417 linker flags for redland, overriding pkg-config 1421 linker flags for redland, overriding pkg-config
1418 liblo_CFLAGS 1422 liblo_CFLAGS
1419 C compiler flags for liblo, overriding pkg-config 1423 C compiler flags for liblo, overriding pkg-config
1420 liblo_LIBS linker flags for liblo, overriding pkg-config 1424 liblo_LIBS linker flags for liblo, overriding pkg-config
1425 portaudio_2_0_CFLAGS
1426 C compiler flags for portaudio_2_0, overriding pkg-config
1427 portaudio_2_0_LIBS
1428 linker flags for portaudio_2_0, overriding pkg-config
1421 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config 1429 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1422 JACK_LIBS linker flags for JACK, overriding pkg-config 1430 JACK_LIBS linker flags for JACK, overriding pkg-config
1423 libpulse_CFLAGS 1431 libpulse_CFLAGS
1424 C compiler flags for libpulse, overriding pkg-config 1432 C compiler flags for libpulse, overriding pkg-config
1425 libpulse_LIBS 1433 libpulse_LIBS
5965 fi 5973 fi
5966 fi 5974 fi
5967 fi 5975 fi
5968 5976
5969 5977
5978 SV_MODULE_MODULE=portaudio_2_0
5979 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
5980 SV_MODULE_HEADER=portaudio.h
5981 SV_MODULE_LIB=portaudio
5982 SV_MODULE_FUNC=Pa_IsFormatSupported
5983 SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z')
5984 SV_MODULE_FAILED=1
5985 if test -z "$SV_MODULE_VERSION_TEST" ; then
5986 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5987 fi
5988 if test -n "$PKG_CONFIG"; then
5989
5990 pkg_failed=no
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio_2_0" >&5
5992 $as_echo_n "checking for portaudio_2_0... " >&6; }
5993
5994 if test -n "$PKG_CONFIG"; then
5995 if test -n "$portaudio_2_0_CFLAGS"; then
5996 pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS"
5997 else
5998 if test -n "$PKG_CONFIG" && \
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6000 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6001 ac_status=$?
6002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003 test $ac_status = 0; }; then
6004 pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6005 else
6006 pkg_failed=yes
6007 fi
6008 fi
6009 else
6010 pkg_failed=untried
6011 fi
6012 if test -n "$PKG_CONFIG"; then
6013 if test -n "$portaudio_2_0_LIBS"; then
6014 pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS"
6015 else
6016 if test -n "$PKG_CONFIG" && \
6017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
6018 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
6019 ac_status=$?
6020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021 test $ac_status = 0; }; then
6022 pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
6023 else
6024 pkg_failed=yes
6025 fi
6026 fi
6027 else
6028 pkg_failed=untried
6029 fi
6030
6031
6032
6033 if test $pkg_failed = yes; then
6034
6035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6036 _pkg_short_errors_supported=yes
6037 else
6038 _pkg_short_errors_supported=no
6039 fi
6040 if test $_pkg_short_errors_supported = yes; then
6041 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"`
6042 else
6043 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"`
6044 fi
6045 # Put the nasty error message in config.log where it belongs
6046 echo "$portaudio_2_0_PKG_ERRORS" >&5
6047
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 { $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
6051 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6052 elif test $pkg_failed = untried; then
6053 { $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
6054 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
6055 else
6056 portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS
6057 portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6059 $as_echo "yes" >&6; }
6060 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED=""
6061 fi
6062 fi
6063 if test -n "$SV_MODULE_FAILED"; then
6064 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
6065 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
6066 eval as_val=\$$as_ac_Header
6067 if test "x$as_val" = x""yes; then :
6068 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
6071 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
6072 fi
6073
6074
6075 if test -z "$SV_MODULE_FAILED"; then
6076 if test -n "$SV_MODULE_LIB"; then
6077 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
6079 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
6080 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 ac_check_lib_save_LIBS=$LIBS
6084 LIBS="-l$SV_MODULE_LIB $LIBS"
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087
6088 /* Override any GCC internal prototype to avoid an error.
6089 Use char because int might match the return type of a GCC
6090 builtin and then its argument prototype would still apply. */
6091 #ifdef __cplusplus
6092 extern "C"
6093 #endif
6094 char $SV_MODULE_FUNC ();
6095 int
6096 main ()
6097 {
6098 return $SV_MODULE_FUNC ();
6099 ;
6100 return 0;
6101 }
6102 _ACEOF
6103 if ac_fn_cxx_try_link "$LINENO"; then :
6104 eval "$as_ac_Lib=yes"
6105 else
6106 eval "$as_ac_Lib=no"
6107 fi
6108 rm -f core conftest.err conftest.$ac_objext \
6109 conftest$ac_exeext conftest.$ac_ext
6110 LIBS=$ac_check_lib_save_LIBS
6111 fi
6112 eval ac_res=\$$as_ac_Lib
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6114 $as_echo "$ac_res" >&6; }
6115 eval as_val=\$$as_ac_Lib
6116 if test "x$as_val" = x""yes; then :
6117 LIBS="$LIBS -l$SV_MODULE_LIB"
6118 else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
6120 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
6121 fi
6122
6123 fi
6124 fi
6125 fi
6126
6127
5970 SV_MODULE_MODULE=JACK 6128 SV_MODULE_MODULE=JACK
5971 SV_MODULE_VERSION_TEST="jack >= 0.100" 6129 SV_MODULE_VERSION_TEST="jack >= 0.100"
5972 SV_MODULE_HEADER=jack/jack.h 6130 SV_MODULE_HEADER=jack/jack.h
5973 SV_MODULE_LIB=jack 6131 SV_MODULE_LIB=jack
5974 SV_MODULE_FUNC=jack_client_open 6132 SV_MODULE_FUNC=jack_client_open