Revision 532:569fc23fa37a configure

View differences:

configure
1 1
#! /bin/sh
2 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 5
# Report bugs to <cannam@all-day-breakfast.com>.
6 6
#
......
580 580
# Identity of this package.
581 581
PACKAGE_NAME='vamp-plugin-sdk'
582 582
PACKAGE_TARNAME='vamp-plugin-sdk'
583
PACKAGE_VERSION='2.8'
584
PACKAGE_STRING='vamp-plugin-sdk 2.8'
583
PACKAGE_VERSION='2.9'
584
PACKAGE_STRING='vamp-plugin-sdk 2.9'
585 585
PACKAGE_BUGREPORT='cannam@all-day-breakfast.com'
586 586
PACKAGE_URL=''
587 587

  
......
630 630
PKG_CONFIG_LIBDIR
631 631
PKG_CONFIG_PATH
632 632
PKG_CONFIG
633
HAVE_CXX11
633 634
EGREP
634 635
GREP
635 636
CPP
......
1243 1244
  # Omit some internal or obsolete options to make the list less imposing.
1244 1245
  # This message is too long to be a string in the A/UX 3.1 sh.
1245 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 1249
Usage: $0 [OPTION]... [VAR=VALUE]...
1249 1250

  
......
1304 1305

  
1305 1306
if test -n "$ac_init_help"; then
1306 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 1309
   esac
1309 1310
  cat <<\_ACEOF
1310 1311

  
......
1402 1403
test -n "$ac_init_help" && exit $ac_status
1403 1404
if $ac_init_version; then
1404 1405
  cat <<\_ACEOF
1405
vamp-plugin-sdk configure 2.8
1406
vamp-plugin-sdk configure 2.9
1406 1407
generated by GNU Autoconf 2.69
1407 1408

  
1408 1409
Copyright (C) 2012 Free Software Foundation, Inc.
......
1651 1652
This file contains any messages produced by compilers while
1652 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 1656
generated by GNU Autoconf 2.69.  Invocation command line was
1656 1657

  
1657 1658
  $ $0 $@
......
3670 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 3815
if pkg-config --modversion vamp-sdk >/dev/null 2>&1; then
3674 3816
  echo "WARNING: A version of the Vamp plugin SDK is already installed."
3675 3817
  echo "         Expect worries and sorrows if you install a new version"
......
3956 4098
    *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
3957 4099
    *) CFLAGS="$CFLAGS -fPIC -Wall -Wextra" ;;
3958 4100
  esac
3959
  CXXFLAGS="$CXXFLAGS -std=c++98"
4101
  CXXFLAGS="$CXXFLAGS -std=c++11"
3960 4102
fi
3961 4103

  
3962 4104

  
......
4506 4648
# report actual input values of CONFIG_FILES etc. instead of their
4507 4649
# values after options handling.
4508 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 4652
generated by GNU Autoconf 2.69.  Invocation command line was
4511 4653

  
4512 4654
  CONFIG_FILES    = $CONFIG_FILES
......
4559 4701
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4560 4702
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4561 4703
ac_cs_version="\\
4562
vamp-plugin-sdk config.status 2.8
4704
vamp-plugin-sdk config.status 2.9
4563 4705
configured by $0, generated by GNU Autoconf 2.69,
4564 4706
  with options \\"\$ac_cs_config\\"
4565 4707

  

Also available in: Unified diff