common/autoconf/build-performance.m4

changeset 2206
7ba4e17574e0
parent 2204
0e87966d7ff1
child 2215
7a73b8b4ac8a
equal deleted inserted replaced
2205:54eb4c29ece4 2206:7ba4e17574e0
1 # 1 #
2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this 7 # published by the Free Software Foundation. Oracle designates this
259 USE_PRECOMPILED_HEADER=0 259 USE_PRECOMPILED_HEADER=0
260 fi 260 fi
261 261
262 if test "x$ENABLE_PRECOMPH" = xyes; then 262 if test "x$ENABLE_PRECOMPH" = xyes; then
263 # Check that the compiler actually supports precomp headers. 263 # Check that the compiler actually supports precomp headers.
264 if test "x$GCC" = xyes; then 264 if test "x$TOOLCHAIN_TYPE" = xgcc; then
265 AC_MSG_CHECKING([that precompiled headers work]) 265 AC_MSG_CHECKING([that precompiled headers work])
266 echo "int alfa();" > conftest.h 266 echo "int alfa();" > conftest.h
267 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD 267 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD
268 if test ! -f conftest.hpp.gch; then 268 if test ! -f conftest.hpp.gch; then
269 USE_PRECOMPILED_HEADER=0 269 USE_PRECOMPILED_HEADER=0

mercurial