put back CMAKE_TEMPLATE_FLAGS
This commit is contained in:
parent
3cb9f60375
commit
5187cb1df5
|
@ -3005,12 +3005,28 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# if we are not running g++ then we might need some other flags
|
||||||
|
# to get the templates compiled correctly
|
||||||
|
CMAKE_TEMPLATE_FLAGS=""
|
||||||
|
if test $ac_cv_prog_gxx = no; then
|
||||||
|
echo $ac_n "checking whether ${CXX} accepts -ptused -no_prelink""... $ac_c" 1>&6
|
||||||
|
echo 'void f(){}' > conftest.cc
|
||||||
|
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
|
||||||
|
echo "$ac_t""yes" 1>&6
|
||||||
|
CMAKE_TEMPLATE_FLAGS="-ptused -no_prelink"
|
||||||
|
else
|
||||||
|
echo "$ac_t""no" 1>&6
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# check no g++ compilers to see if they have the standard
|
# check no g++ compilers to see if they have the standard
|
||||||
# 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:3014: 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>
|
||||||
|
@ -3027,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:3031: 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>
|
||||||
|
@ -3045,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:3049: 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;;); }
|
||||||
|
@ -3070,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:3074: 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
|
||||||
|
@ -3110,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:3114: 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
|
||||||
|
@ -3351,6 +3367,7 @@ s%@CMAKE_HP_PTHREADS@%$CMAKE_HP_PTHREADS%g
|
||||||
s%@CMAKE_THREAD_LIBS@%$CMAKE_THREAD_LIBS%g
|
s%@CMAKE_THREAD_LIBS@%$CMAKE_THREAD_LIBS%g
|
||||||
s%@CMAKE_ANSI_CFLAGS@%$CMAKE_ANSI_CFLAGS%g
|
s%@CMAKE_ANSI_CFLAGS@%$CMAKE_ANSI_CFLAGS%g
|
||||||
s%@CMAKE_ANSI_CXXFLAGS@%$CMAKE_ANSI_CXXFLAGS%g
|
s%@CMAKE_ANSI_CXXFLAGS@%$CMAKE_ANSI_CXXFLAGS%g
|
||||||
|
s%@CMAKE_TEMPLATE_FLAGS@%$CMAKE_TEMPLATE_FLAGS%g
|
||||||
s%@CMAKE_NO_ANSI_STREAM_HEADERS@%$CMAKE_NO_ANSI_STREAM_HEADERS%g
|
s%@CMAKE_NO_ANSI_STREAM_HEADERS@%$CMAKE_NO_ANSI_STREAM_HEADERS%g
|
||||||
s%@CMAKE_NO_STD_NAMESPACE@%$CMAKE_NO_STD_NAMESPACE%g
|
s%@CMAKE_NO_STD_NAMESPACE@%$CMAKE_NO_STD_NAMESPACE%g
|
||||||
s%@CMAKE_NO_ANSI_FOR_SCOPE@%$CMAKE_NO_ANSI_FOR_SCOPE%g
|
s%@CMAKE_NO_ANSI_FOR_SCOPE@%$CMAKE_NO_ANSI_FOR_SCOPE%g
|
||||||
|
|
|
@ -582,6 +582,22 @@ fi
|
||||||
AC_SUBST(CMAKE_ANSI_CFLAGS)
|
AC_SUBST(CMAKE_ANSI_CFLAGS)
|
||||||
AC_SUBST(CMAKE_ANSI_CXXFLAGS)
|
AC_SUBST(CMAKE_ANSI_CXXFLAGS)
|
||||||
|
|
||||||
|
# if we are not running g++ then we might need some other flags
|
||||||
|
# to get the templates compiled correctly
|
||||||
|
CMAKE_TEMPLATE_FLAGS=""
|
||||||
|
if test $ac_cv_prog_gxx = no; then
|
||||||
|
echo $ac_n "checking whether ${CXX} accepts -ptused -no_prelink""... $ac_c" 1>&6
|
||||||
|
echo 'void f(){}' > conftest.cc
|
||||||
|
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
|
||||||
|
echo "$ac_t""yes" 1>&6
|
||||||
|
CMAKE_TEMPLATE_FLAGS="-ptused -no_prelink"
|
||||||
|
else
|
||||||
|
echo "$ac_t""no" 1>&6
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
fi
|
||||||
|
AC_SUBST(CMAKE_TEMPLATE_FLAGS)
|
||||||
|
|
||||||
|
|
||||||
# check no g++ compilers to see if they have the standard
|
# check no g++ compilers to see if they have the standard
|
||||||
# ansi stream files (without the .h)
|
# ansi stream files (without the .h)
|
||||||
|
|
Loading…
Reference in New Issue