Browse Source

check for LANG:std

Bill Hoffman 24 years ago
parent
commit
96763a0df2
4 changed files with 45 additions and 13 deletions
  1. 14 6
      Templates/configure
  2. 9 1
      Templates/configure.in
  3. 13 5
      configure
  4. 9 1
      configure.in

+ 14 - 6
Templates/configure

@@ -2990,7 +2990,15 @@ case $system in
         rm -f conftest*
         rm -f conftest*
 	;;   
 	;;   
      IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
      IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
-        CMAKE_ANSI_CXXFLAGS="-LANG:std"
+        echo $ac_n "checking whether ${CXX} accepts -LANG:std""... $ac_c" 1>&6
+        echo 'void f(){}' > conftest.c
+        if test -z "`${CXX} -LANG:std -c conftest.c 2>&1`"; then
+          echo "$ac_t""yes" 1>&6
+	  CMAKE_ANSI_CXXFLAGS="-LANG:std"
+        else
+          echo "$ac_t""no" 1>&6
+        fi
+        rm -f conftest*
 	;;  
 	;;  
 esac
 esac
 fi
 fi
@@ -3018,7 +3026,7 @@ fi
 # ansi stream files (without the .h)
 # ansi stream files (without the .h)
 if test $ac_cv_prog_gxx = no; then
 if test $ac_cv_prog_gxx = no; then
   echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
   echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
-echo "configure:3022: checking ansi standard C++ stream headers " >&5 
+echo "configure:3030: checking ansi standard C++ stream headers " >&5 
   rm -rf conftest.*
   rm -rf conftest.*
   cat > conftest.cc <<!
   cat > conftest.cc <<!
 #include <iostream>
 #include <iostream>
@@ -3035,7 +3043,7 @@ fi
 # check to see if stl is in the std namespace
 # check to see if stl is in the std namespace
 if test $ac_cv_prog_gxx = no; then
 if test $ac_cv_prog_gxx = no; then
   echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
   echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
-echo "configure:3039: checking ansi standard namespace support " >&5 
+echo "configure:3047: checking ansi standard namespace support " >&5 
   rm -rf conftest.*
   rm -rf conftest.*
   cat > conftest.cc <<!
   cat > conftest.cc <<!
 #include <list>
 #include <list>
@@ -3053,7 +3061,7 @@ fi
 # check to see if for scoping is supported
 # check to see if for scoping is supported
 if test $ac_cv_prog_gxx = no; then
 if test $ac_cv_prog_gxx = no; then
   echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6
   echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6
-echo "configure:3057: checking ansi for scope support " >&5 
+echo "configure:3065: checking ansi for scope support " >&5 
   rm -rf conftest.*
   rm -rf conftest.*
   cat > conftest.cc <<!
   cat > conftest.cc <<!
 void foo() { for(int i;;); for(int i;;); }
 void foo() { for(int i;;); for(int i;;); }
@@ -3078,7 +3086,7 @@ 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
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3082: checking for $ac_word" >&5
+echo "configure:3090: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_RUNMAKE'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'ac_cv_path_RUNMAKE'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
   echo $ac_n "(cached) $ac_c" 1>&6
 else
 else
@@ -3118,7 +3126,7 @@ 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
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3122: checking for $ac_word" >&5
+echo "configure:3130: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_CMAKE_AR_TMP'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'ac_cv_path_CMAKE_AR_TMP'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
   echo $ac_n "(cached) $ac_c" 1>&6
 else
 else

+ 9 - 1
Templates/configure.in

@@ -567,7 +567,15 @@ case $system in
         rm -f conftest*
         rm -f conftest*
 	;;   
 	;;   
      IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
      IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
-        CMAKE_ANSI_CXXFLAGS="-LANG:std"
+        echo $ac_n "checking whether ${CXX} accepts -LANG:std""... $ac_c" 1>&6
+        echo 'void f(){}' > conftest.c
+        if test -z "`${CXX} -LANG:std -c conftest.c 2>&1`"; then
+          echo "$ac_t""yes" 1>&6
+	  CMAKE_ANSI_CXXFLAGS="-LANG:std"
+        else
+          echo "$ac_t""no" 1>&6
+        fi
+        rm -f conftest*
 	;;  
 	;;  
 esac
 esac
 fi
 fi

+ 13 - 5
configure

@@ -942,7 +942,15 @@ case $system in
         rm -f conftest*
         rm -f conftest*
 	;;  
 	;;  
     IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
     IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
-        CMAKE_ANSI_CXXFLAGS="-LANG:std"
+        echo $ac_n "checking whether ${CXX} accepts -LANG:std""... $ac_c" 1>&6
+        echo 'void f(){}' > conftest.c
+        if test -z "`${CXX} -LANG:std -c conftest.c 2>&1`"; then
+          echo "$ac_t""yes" 1>&6
+	  CMAKE_ANSI_CXXFLAGS="-LANG:std"
+        else
+          echo "$ac_t""no" 1>&6
+        fi
+        rm -f conftest*
 	;;  
 	;;  
 esac
 esac
 fi
 fi
@@ -953,7 +961,7 @@ fi
 # ansi stream files (without the .h)
 # ansi stream files (without the .h)
 if test $ac_cv_prog_gxx = no; then
 if test $ac_cv_prog_gxx = no; then
   echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
   echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
-echo "configure:957: checking ansi standard C++ stream headers " >&5 
+echo "configure:965: checking ansi standard C++ stream headers " >&5 
   rm -rf conftest.*
   rm -rf conftest.*
   cat > conftest.cc <<!
   cat > conftest.cc <<!
 #include <iostream>
 #include <iostream>
@@ -972,7 +980,7 @@ fi
 # check to see if stl is in the std namespace
 # check to see if stl is in the std namespace
 if test $ac_cv_prog_gxx = no; then
 if test $ac_cv_prog_gxx = no; then
   echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
   echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
-echo "configure:976: checking ansi standard namespace support " >&5 
+echo "configure:984: checking ansi standard namespace support " >&5 
   rm -rf conftest.*
   rm -rf conftest.*
   cat > conftest.cc <<!
   cat > conftest.cc <<!
 #include <list>
 #include <list>
@@ -992,7 +1000,7 @@ fi
 # check to see if for scoping is supported
 # check to see if for scoping is supported
 if test $ac_cv_prog_gxx = no; then
 if test $ac_cv_prog_gxx = no; then
   echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6
   echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6
-echo "configure:996: checking ansi for scope support " >&5 
+echo "configure:1004: checking ansi for scope support " >&5 
   rm -rf conftest.*
   rm -rf conftest.*
   cat > conftest.cc <<!
   cat > conftest.cc <<!
 void foo() { for(int i;;); for(int i;;); }
 void foo() { for(int i;;); for(int i;;); }
@@ -1014,7 +1022,7 @@ 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
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1018: checking for $ac_word" >&5
+echo "configure:1026: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_RUNMAKE'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'ac_cv_path_RUNMAKE'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
   echo $ac_n "(cached) $ac_c" 1>&6
 else
 else

+ 9 - 1
configure.in

@@ -57,7 +57,15 @@ case $system in
         rm -f conftest*
         rm -f conftest*
 	;;  
 	;;  
     IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
     IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
-        CMAKE_ANSI_CXXFLAGS="-LANG:std"
+        echo $ac_n "checking whether ${CXX} accepts -LANG:std""... $ac_c" 1>&6
+        echo 'void f(){}' > conftest.c
+        if test -z "`${CXX} -LANG:std -c conftest.c 2>&1`"; then
+          echo "$ac_t""yes" 1>&6
+	  CMAKE_ANSI_CXXFLAGS="-LANG:std"
+        else
+          echo "$ac_t""no" 1>&6
+        fi
+        rm -f conftest*
 	;;  
 	;;  
 esac
 esac
 fi
 fi