|
@@ -661,6 +661,7 @@ GCC3
|
|
|
CCDEPMODE
|
|
CCDEPMODE
|
|
|
EGREP
|
|
EGREP
|
|
|
GREP
|
|
GREP
|
|
|
|
|
+HAVE_CXX11
|
|
|
CXXCPP
|
|
CXXCPP
|
|
|
OBJEXT
|
|
OBJEXT
|
|
|
EXEEXT
|
|
EXEEXT
|
|
@@ -2480,7 +2481,7 @@ if test -z "$CXX"; then
|
|
|
CXX=$CCC
|
|
CXX=$CCC
|
|
|
else
|
|
else
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
|
- for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
|
|
|
|
|
|
+ for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
|
|
do
|
|
do
|
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
@@ -2524,7 +2525,7 @@ fi
|
|
|
fi
|
|
fi
|
|
|
if test -z "$CXX"; then
|
|
if test -z "$CXX"; then
|
|
|
ac_ct_CXX=$CXX
|
|
ac_ct_CXX=$CXX
|
|
|
- for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
|
|
|
|
|
|
+ for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
|
|
do
|
|
do
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
set dummy $ac_prog; ac_word=$2
|
|
@@ -2978,26 +2979,6 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
|
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
-if test "${cross_compiling-x}" = "x"
|
|
|
|
|
-then
|
|
|
|
|
- cat << 'EOF' >&2
|
|
|
|
|
-configure: error:
|
|
|
|
|
-
|
|
|
|
|
- This system does not appear to have a working C compiler.
|
|
|
|
|
- A working C compiler is required to compile Wraith.
|
|
|
|
|
-
|
|
|
|
|
-EOF
|
|
|
|
|
- exit 1
|
|
|
|
|
-fi
|
|
|
|
|
-
|
|
|
|
|
-if test -n "$GXX"; then
|
|
|
|
|
- CXXFLAGS="$CXXFLAGS"
|
|
|
|
|
-fi
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-# Crazy machines
|
|
|
|
|
-
|
|
|
|
|
ac_ext=cpp
|
|
ac_ext=cpp
|
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
@@ -3132,6 +3113,149 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
|
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ ax_cxx_compile_cxx11_required=truednl
|
|
|
|
|
+ ac_ext=cpp
|
|
|
|
|
+ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
|
|
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
+ ac_success=no
|
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
|
|
|
|
|
+$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
|
|
|
|
|
+if ${ax_cv_cxx_compile_cxx11+:} false; then :
|
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
|
|
+else
|
|
|
|
|
+ cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
+/* end build/confdefs.h. */
|
|
|
|
|
+
|
|
|
|
|
+ template <typename T>
|
|
|
|
|
+ struct check
|
|
|
|
|
+ {
|
|
|
|
|
+ static_assert(sizeof(int) <= sizeof(T), "not big enough");
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ typedef check<check<bool>> right_angle_brackets;
|
|
|
|
|
+
|
|
|
|
|
+ int a;
|
|
|
|
|
+ decltype(a) b;
|
|
|
|
|
+
|
|
|
|
|
+ typedef check<int> check_type;
|
|
|
|
|
+ check_type c;
|
|
|
|
|
+ check_type&& cr = static_cast<check_type&&>(c);
|
|
|
|
|
+
|
|
|
|
|
+ auto d = a;
|
|
|
|
|
+
|
|
|
|
|
+_ACEOF
|
|
|
|
|
+if ac_fn_cxx_try_compile "$LINENO"; then :
|
|
|
|
|
+ ax_cv_cxx_compile_cxx11=yes
|
|
|
|
|
+else
|
|
|
|
|
+ ax_cv_cxx_compile_cxx11=no
|
|
|
|
|
+fi
|
|
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
+fi
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
|
|
|
|
|
+$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
|
|
|
|
|
+ if test x$ax_cv_cxx_compile_cxx11 = xyes; then
|
|
|
|
|
+ ac_success=yes
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if test x$ac_success = xno; then
|
|
|
|
|
+ for switch in -std=c++11 -std=c++0x; do
|
|
|
|
|
+ cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
|
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
|
|
|
|
|
+$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
|
|
|
|
|
+if eval \${$cachevar+:} false; then :
|
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
|
|
+else
|
|
|
|
|
+ ac_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
|
+ CXXFLAGS="$CXXFLAGS $switch"
|
|
|
|
|
+ cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
+/* end build/confdefs.h. */
|
|
|
|
|
+
|
|
|
|
|
+ template <typename T>
|
|
|
|
|
+ struct check
|
|
|
|
|
+ {
|
|
|
|
|
+ static_assert(sizeof(int) <= sizeof(T), "not big enough");
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ typedef check<check<bool>> right_angle_brackets;
|
|
|
|
|
+
|
|
|
|
|
+ int a;
|
|
|
|
|
+ decltype(a) b;
|
|
|
|
|
+
|
|
|
|
|
+ typedef check<int> check_type;
|
|
|
|
|
+ check_type c;
|
|
|
|
|
+ check_type&& cr = static_cast<check_type&&>(c);
|
|
|
|
|
+
|
|
|
|
|
+ auto d = a;
|
|
|
|
|
+
|
|
|
|
|
+_ACEOF
|
|
|
|
|
+if ac_fn_cxx_try_compile "$LINENO"; then :
|
|
|
|
|
+ eval $cachevar=yes
|
|
|
|
|
+else
|
|
|
|
|
+ eval $cachevar=no
|
|
|
|
|
+fi
|
|
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
+ CXXFLAGS="$ac_save_CXXFLAGS"
|
|
|
|
|
+fi
|
|
|
|
|
+eval ac_res=\$$cachevar
|
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
|
|
|
+$as_echo "$ac_res" >&6; }
|
|
|
|
|
+ if eval test x\$$cachevar = xyes; then
|
|
|
|
|
+ CXXFLAGS="$CXXFLAGS $switch"
|
|
|
|
|
+ ac_success=yes
|
|
|
|
|
+ break
|
|
|
|
|
+ fi
|
|
|
|
|
+ done
|
|
|
|
|
+ fi
|
|
|
|
|
+ ac_ext=cpp
|
|
|
|
|
+ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
|
|
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
+
|
|
|
|
|
+ if test x$ax_cxx_compile_cxx11_required = xtrue; then
|
|
|
|
|
+ if test x$ac_success = xno; then
|
|
|
|
|
+ as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
|
|
|
|
|
+ fi
|
|
|
|
|
+ else
|
|
|
|
|
+ if test x$ac_success = xno; then
|
|
|
|
|
+ HAVE_CXX11=0
|
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
|
|
|
|
|
+$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
|
|
|
|
|
+ else
|
|
|
|
|
+ HAVE_CXX11=1
|
|
|
|
|
+
|
|
|
|
|
+$as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
|
|
|
|
|
+
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+if test "${cross_compiling-x}" = "x"
|
|
|
|
|
+then
|
|
|
|
|
+ cat << 'EOF' >&2
|
|
|
|
|
+configure: error:
|
|
|
|
|
+
|
|
|
|
|
+ This system does not appear to have a working C compiler.
|
|
|
|
|
+ A working C compiler is required to compile Wraith.
|
|
|
|
|
+
|
|
|
|
|
+EOF
|
|
|
|
|
+ exit 1
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
|
|
+if test -n "$GXX"; then
|
|
|
|
|
+ CXXFLAGS="$CXXFLAGS"
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+# Crazy machines
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
|
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
|
|
if ${ac_cv_path_GREP+:} false; then :
|
|
if ${ac_cv_path_GREP+:} false; then :
|