]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Do not override user defined -std option
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 May 2016 12:12:51 +0000 (00:12 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 May 2016 12:12:51 +0000 (00:12 +1200)
configure.ac

index 6a4a2c97f5917e82dc4bb9ca0b64dcbf0352a5ab..02273d290a26f46d29932b6259375c7d94203dfd 100644 (file)
@@ -92,8 +92,12 @@ if test "x$squid_host_os" = "solaris" -a "x$GCC" != "x" ; then
        AC_USE_SYSTEM_EXTENSIONS
 fi
 
-# Check for C++11 compiler support
-AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
+# If the user did not specify a C++ version.
+user_cxx=`echo "$PRESET_CXXFLAGS" | grep -o -E "\-std="`
+if test "x$user_cxx" = "x"; then
+  # Check for C++11 compiler support
+  AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
+fi
 
 # test for programs
 AC_PROG_RANLIB