BUG: fix for SGI Native compiler
This commit is contained in:
parent
930ea3ef58
commit
d6aee2bc36
|
@ -3,3 +3,7 @@
|
|||
#define STRING_VAR "${STRING_VAR}"
|
||||
|
||||
|
||||
#undef CMAKE_NO_STD_NAMESPACE
|
||||
#undef CMAKE_NO_ANSI_STREAM_HEADERS
|
||||
#undef CMAKE_NO_ANSI_FOR_SCOPE
|
||||
|
||||
|
|
|
@ -3,3 +3,7 @@
|
|||
#define STRING_VAR "${STRING_VAR}"
|
||||
|
||||
|
||||
#undef CMAKE_NO_STD_NAMESPACE
|
||||
#undef CMAKE_NO_ANSI_STREAM_HEADERS
|
||||
#undef CMAKE_NO_ANSI_FOR_SCOPE
|
||||
|
||||
|
|
|
@ -3,3 +3,7 @@
|
|||
#define STRING_VAR "${STRING_VAR}"
|
||||
|
||||
|
||||
#undef CMAKE_NO_STD_NAMESPACE
|
||||
#undef CMAKE_NO_ANSI_STREAM_HEADERS
|
||||
#undef CMAKE_NO_ANSI_FOR_SCOPE
|
||||
|
||||
|
|
13
configure.in
13
configure.in
|
@ -30,7 +30,18 @@ case $system in
|
|||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
rm -f conftest*
|
||||
;;
|
||||
;;
|
||||
IRIX-6* | IRIX64-6* | IRIX-64-6*)
|
||||
echo $ac_n "checking whether ${CC} accepts -LANG:std""... $ac_c" 1>&6
|
||||
echo 'void f(){}' > conftest.c
|
||||
if test -z "`${CC} -LANG:std -c conftest.c 2>&1`"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
CMAKE_ANSI_CFLAGS="-LANG:std"
|
||||
else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
rm -f conftest*
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
AC_SUBST(CMAKE_ANSI_CFLAGS)
|
||||
|
|
Loading…
Reference in New Issue