Mercurial > hg > vamp-plugin-sdk
comparison configure @ 532:569fc23fa37a
Merge from branch c++11-mutex
author | Chris Cannam |
---|---|
date | Tue, 22 Oct 2019 12:23:53 +0100 |
parents | db2cd87cef6f |
children | 15a89a89aa9b |
comparison
equal
deleted
inserted
replaced
522:0b6802e3b755 | 532:569fc23fa37a |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | 2 # Guess values for system-dependent variables and create Makefiles. |
3 # Generated by GNU Autoconf 2.69 for vamp-plugin-sdk 2.8. | 3 # Generated by GNU Autoconf 2.69 for vamp-plugin-sdk 2.9. |
4 # | 4 # |
5 # Report bugs to <cannam@all-day-breakfast.com>. | 5 # Report bugs to <cannam@all-day-breakfast.com>. |
6 # | 6 # |
7 # | 7 # |
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
578 MAKEFLAGS= | 578 MAKEFLAGS= |
579 | 579 |
580 # Identity of this package. | 580 # Identity of this package. |
581 PACKAGE_NAME='vamp-plugin-sdk' | 581 PACKAGE_NAME='vamp-plugin-sdk' |
582 PACKAGE_TARNAME='vamp-plugin-sdk' | 582 PACKAGE_TARNAME='vamp-plugin-sdk' |
583 PACKAGE_VERSION='2.8' | 583 PACKAGE_VERSION='2.9' |
584 PACKAGE_STRING='vamp-plugin-sdk 2.8' | 584 PACKAGE_STRING='vamp-plugin-sdk 2.9' |
585 PACKAGE_BUGREPORT='cannam@all-day-breakfast.com' | 585 PACKAGE_BUGREPORT='cannam@all-day-breakfast.com' |
586 PACKAGE_URL='' | 586 PACKAGE_URL='' |
587 | 587 |
588 ac_unique_file="vamp/vamp.h" | 588 ac_unique_file="vamp/vamp.h" |
589 # Factoring default headers for most tests. | 589 # Factoring default headers for most tests. |
628 SNDFILE_LIBS | 628 SNDFILE_LIBS |
629 SNDFILE_CFLAGS | 629 SNDFILE_CFLAGS |
630 PKG_CONFIG_LIBDIR | 630 PKG_CONFIG_LIBDIR |
631 PKG_CONFIG_PATH | 631 PKG_CONFIG_PATH |
632 PKG_CONFIG | 632 PKG_CONFIG |
633 HAVE_CXX11 | |
633 EGREP | 634 EGREP |
634 GREP | 635 GREP |
635 CPP | 636 CPP |
636 ac_ct_CC | 637 ac_ct_CC |
637 CFLAGS | 638 CFLAGS |
1241 # | 1242 # |
1242 if test "$ac_init_help" = "long"; then | 1243 if test "$ac_init_help" = "long"; then |
1243 # Omit some internal or obsolete options to make the list less imposing. | 1244 # Omit some internal or obsolete options to make the list less imposing. |
1244 # This message is too long to be a string in the A/UX 3.1 sh. | 1245 # This message is too long to be a string in the A/UX 3.1 sh. |
1245 cat <<_ACEOF | 1246 cat <<_ACEOF |
1246 \`configure' configures vamp-plugin-sdk 2.8 to adapt to many kinds of systems. | 1247 \`configure' configures vamp-plugin-sdk 2.9 to adapt to many kinds of systems. |
1247 | 1248 |
1248 Usage: $0 [OPTION]... [VAR=VALUE]... | 1249 Usage: $0 [OPTION]... [VAR=VALUE]... |
1249 | 1250 |
1250 To assign environment variables (e.g., CC, CFLAGS...), specify them as | 1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1251 VAR=VALUE. See below for descriptions of some of the useful variables. | 1252 VAR=VALUE. See below for descriptions of some of the useful variables. |
1302 _ACEOF | 1303 _ACEOF |
1303 fi | 1304 fi |
1304 | 1305 |
1305 if test -n "$ac_init_help"; then | 1306 if test -n "$ac_init_help"; then |
1306 case $ac_init_help in | 1307 case $ac_init_help in |
1307 short | recursive ) echo "Configuration of vamp-plugin-sdk 2.8:";; | 1308 short | recursive ) echo "Configuration of vamp-plugin-sdk 2.9:";; |
1308 esac | 1309 esac |
1309 cat <<\_ACEOF | 1310 cat <<\_ACEOF |
1310 | 1311 |
1311 Optional Features: | 1312 Optional Features: |
1312 --disable-option-checking ignore unrecognized --enable/--with options | 1313 --disable-option-checking ignore unrecognized --enable/--with options |
1400 fi | 1401 fi |
1401 | 1402 |
1402 test -n "$ac_init_help" && exit $ac_status | 1403 test -n "$ac_init_help" && exit $ac_status |
1403 if $ac_init_version; then | 1404 if $ac_init_version; then |
1404 cat <<\_ACEOF | 1405 cat <<\_ACEOF |
1405 vamp-plugin-sdk configure 2.8 | 1406 vamp-plugin-sdk configure 2.9 |
1406 generated by GNU Autoconf 2.69 | 1407 generated by GNU Autoconf 2.69 |
1407 | 1408 |
1408 Copyright (C) 2012 Free Software Foundation, Inc. | 1409 Copyright (C) 2012 Free Software Foundation, Inc. |
1409 This configure script is free software; the Free Software Foundation | 1410 This configure script is free software; the Free Software Foundation |
1410 gives unlimited permission to copy, distribute and modify it. | 1411 gives unlimited permission to copy, distribute and modify it. |
1649 } # ac_fn_c_try_link | 1650 } # ac_fn_c_try_link |
1650 cat >config.log <<_ACEOF | 1651 cat >config.log <<_ACEOF |
1651 This file contains any messages produced by compilers while | 1652 This file contains any messages produced by compilers while |
1652 running configure, to aid debugging if configure makes a mistake. | 1653 running configure, to aid debugging if configure makes a mistake. |
1653 | 1654 |
1654 It was created by vamp-plugin-sdk $as_me 2.8, which was | 1655 It was created by vamp-plugin-sdk $as_me 2.9, which was |
1655 generated by GNU Autoconf 2.69. Invocation command line was | 1656 generated by GNU Autoconf 2.69. Invocation command line was |
1656 | 1657 |
1657 $ $0 $@ | 1658 $ $0 $@ |
1658 | 1659 |
1659 _ACEOF | 1660 _ACEOF |
3668 as_fn_error $? "unknown endianness | 3669 as_fn_error $? "unknown endianness |
3669 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 3670 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
3670 esac | 3671 esac |
3671 | 3672 |
3672 | 3673 |
3674 # We now require C++11 | |
3675 | |
3676 ax_cxx_compile_cxx11_required=true | |
3677 ac_ext=cpp | |
3678 ac_cpp='$CXXCPP $CPPFLAGS' | |
3679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3682 ac_success=no | |
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
3684 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
3685 if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
3686 $as_echo_n "(cached) " >&6 | |
3687 else | |
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3689 /* end confdefs.h. */ | |
3690 | |
3691 template <typename T> | |
3692 struct check | |
3693 { | |
3694 static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
3695 }; | |
3696 | |
3697 struct Base { | |
3698 virtual void f() {} | |
3699 }; | |
3700 struct Child : public Base { | |
3701 virtual void f() override {} | |
3702 }; | |
3703 | |
3704 typedef check<check<bool>> right_angle_brackets; | |
3705 | |
3706 int a; | |
3707 decltype(a) b; | |
3708 | |
3709 typedef check<int> check_type; | |
3710 check_type c; | |
3711 check_type&& cr = static_cast<check_type&&>(c); | |
3712 | |
3713 auto d = a; | |
3714 auto l = [](){}; | |
3715 | |
3716 _ACEOF | |
3717 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3718 ax_cv_cxx_compile_cxx11=yes | |
3719 else | |
3720 ax_cv_cxx_compile_cxx11=no | |
3721 fi | |
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3723 fi | |
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
3725 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
3726 if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
3727 ac_success=yes | |
3728 fi | |
3729 | |
3730 | |
3731 | |
3732 if test x$ac_success = xno; then | |
3733 for switch in -std=c++11 -std=c++0x; do | |
3734 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
3736 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
3737 if eval \${$cachevar+:} false; then : | |
3738 $as_echo_n "(cached) " >&6 | |
3739 else | |
3740 ac_save_CXXFLAGS="$CXXFLAGS" | |
3741 CXXFLAGS="$CXXFLAGS $switch" | |
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3743 /* end confdefs.h. */ | |
3744 | |
3745 template <typename T> | |
3746 struct check | |
3747 { | |
3748 static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
3749 }; | |
3750 | |
3751 struct Base { | |
3752 virtual void f() {} | |
3753 }; | |
3754 struct Child : public Base { | |
3755 virtual void f() override {} | |
3756 }; | |
3757 | |
3758 typedef check<check<bool>> right_angle_brackets; | |
3759 | |
3760 int a; | |
3761 decltype(a) b; | |
3762 | |
3763 typedef check<int> check_type; | |
3764 check_type c; | |
3765 check_type&& cr = static_cast<check_type&&>(c); | |
3766 | |
3767 auto d = a; | |
3768 auto l = [](){}; | |
3769 | |
3770 _ACEOF | |
3771 if ac_fn_cxx_try_compile "$LINENO"; then : | |
3772 eval $cachevar=yes | |
3773 else | |
3774 eval $cachevar=no | |
3775 fi | |
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3777 CXXFLAGS="$ac_save_CXXFLAGS" | |
3778 fi | |
3779 eval ac_res=\$$cachevar | |
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3781 $as_echo "$ac_res" >&6; } | |
3782 if eval test x\$$cachevar = xyes; then | |
3783 CXXFLAGS="$CXXFLAGS $switch" | |
3784 ac_success=yes | |
3785 break | |
3786 fi | |
3787 done | |
3788 fi | |
3789 ac_ext=c | |
3790 ac_cpp='$CPP $CPPFLAGS' | |
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3794 | |
3795 if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
3796 if test x$ac_success = xno; then | |
3797 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
3798 fi | |
3799 else | |
3800 if test x$ac_success = xno; then | |
3801 HAVE_CXX11=0 | |
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
3803 $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
3804 else | |
3805 HAVE_CXX11=1 | |
3806 | |
3807 $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
3808 | |
3809 fi | |
3810 | |
3811 | |
3812 fi | |
3813 | |
3814 | |
3673 if pkg-config --modversion vamp-sdk >/dev/null 2>&1; then | 3815 if pkg-config --modversion vamp-sdk >/dev/null 2>&1; then |
3674 echo "WARNING: A version of the Vamp plugin SDK is already installed." | 3816 echo "WARNING: A version of the Vamp plugin SDK is already installed." |
3675 echo " Expect worries and sorrows if you install a new version" | 3817 echo " Expect worries and sorrows if you install a new version" |
3676 echo " without removing the old one first. (Continuing)" | 3818 echo " without removing the old one first. (Continuing)" |
3677 fi | 3819 fi |
3954 esac | 4096 esac |
3955 case " $CFLAGS " in | 4097 case " $CFLAGS " in |
3956 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; | 4098 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; |
3957 *) CFLAGS="$CFLAGS -fPIC -Wall -Wextra" ;; | 4099 *) CFLAGS="$CFLAGS -fPIC -Wall -Wextra" ;; |
3958 esac | 4100 esac |
3959 CXXFLAGS="$CXXFLAGS -std=c++98" | 4101 CXXFLAGS="$CXXFLAGS -std=c++11" |
3960 fi | 4102 fi |
3961 | 4103 |
3962 | 4104 |
3963 | 4105 |
3964 ac_config_files="$ac_config_files Makefile" | 4106 ac_config_files="$ac_config_files Makefile" |
4504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 4646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4505 # Save the log message, to keep $0 and so on meaningful, and to | 4647 # Save the log message, to keep $0 and so on meaningful, and to |
4506 # report actual input values of CONFIG_FILES etc. instead of their | 4648 # report actual input values of CONFIG_FILES etc. instead of their |
4507 # values after options handling. | 4649 # values after options handling. |
4508 ac_log=" | 4650 ac_log=" |
4509 This file was extended by vamp-plugin-sdk $as_me 2.8, which was | 4651 This file was extended by vamp-plugin-sdk $as_me 2.9, which was |
4510 generated by GNU Autoconf 2.69. Invocation command line was | 4652 generated by GNU Autoconf 2.69. Invocation command line was |
4511 | 4653 |
4512 CONFIG_FILES = $CONFIG_FILES | 4654 CONFIG_FILES = $CONFIG_FILES |
4513 CONFIG_HEADERS = $CONFIG_HEADERS | 4655 CONFIG_HEADERS = $CONFIG_HEADERS |
4514 CONFIG_LINKS = $CONFIG_LINKS | 4656 CONFIG_LINKS = $CONFIG_LINKS |
4557 | 4699 |
4558 _ACEOF | 4700 _ACEOF |
4559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 4701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4560 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 4702 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4561 ac_cs_version="\\ | 4703 ac_cs_version="\\ |
4562 vamp-plugin-sdk config.status 2.8 | 4704 vamp-plugin-sdk config.status 2.9 |
4563 configured by $0, generated by GNU Autoconf 2.69, | 4705 configured by $0, generated by GNU Autoconf 2.69, |
4564 with options \\"\$ac_cs_config\\" | 4706 with options \\"\$ac_cs_config\\" |
4565 | 4707 |
4566 Copyright (C) 2012 Free Software Foundation, Inc. | 4708 Copyright (C) 2012 Free Software Foundation, Inc. |
4567 This config.status script is free software; the Free Software Foundation | 4709 This config.status script is free software; the Free Software Foundation |