]> git.saurik.com Git - bison.git/blob - tests/atlocal.in
Merge remote-tracking branch 'origin/maint'
[bison.git] / tests / atlocal.in
1 # @configure_input@ -*- shell-script -*-
2 # Configurable variable values for Bison test suite.
3
4 # Copyright (C) 2000-2012 Free Software Foundation, Inc.
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 # We need `config.h'.
20 CPPFLAGS="-I$abs_top_builddir/lib @CPPFLAGS@"
21
22 ## ------------------- ##
23 ## C/C++ Compilation. ##
24 ## ------------------- ##
25
26 : ${CC='@CC@'}
27 : ${CXX='@CXX@'}
28
29 # Is the compiler GCC?
30 GCC='@GCC@'
31
32 # Sometimes a test group needs to ignore gcc warnings, so it locally
33 # sets CFLAGS to this.
34 NO_WERROR_CFLAGS='@CFLAGS@ @WARN_CFLAGS@ @WARN_CFLAGS_TEST@'
35 NO_WERROR_CXXFLAGS='@CXXFLAGS@ @WARN_CXXFLAGS@ @WARN_CXXFLAGS_TEST@'
36
37 # But most of the time, we want -Werror.
38 CFLAGS="$NO_WERROR_CFLAGS @WERROR_CFLAGS@"
39 CXXFLAGS="$NO_WERROR_CXXFLAGS @WERROR_CXXFLAGS@"
40
41 # C++ variants break strict aliasing analysis.
42 NO_STRICT_ALIAS_CXXFLAGS='@NO_STRICT_ALIAS_CXXFLAGS@'
43
44 # If 'exit 77'; skip all C++ tests; otherwise ':'.
45 BISON_CXX_WORKS='@BISON_CXX_WORKS@'
46
47 # Handle --compile-c-with-cxx here, once CXX and CXXFLAGS are known.
48 if "$at_arg_compile_c_with_cxx"; then
49 CC_IS_CXX=1
50 CC=$CXX
51 NO_WERROR_CFLAGS=$NO_WERROR_CXXFLAGS
52 CFLAGS=$CXXFLAGS
53 else
54 CC_IS_CXX=0
55 fi
56
57
58 ## ------- ##
59 ## Other. ##
60 ## ------- ##
61
62 # Empty if no javac was found
63 CONF_JAVAC='@CONF_JAVAC@'
64
65 # Empty if no Java VM was found
66 CONF_JAVA='@CONF_JAVA@'
67
68 # We need egrep and perl.
69 : ${EGREP='@EGREP@'}
70 : ${PERL='@PERL@'}
71
72 # Use simple quotes (lib/quote.c).
73 LC_CTYPE=C
74 export LC_CTYPE
75
76 # Are special link options needed?
77 LDFLAGS='@LDFLAGS@'
78
79 # Are special libraries needed?
80 LIBS="$abs_top_builddir/lib/libbison.a @LIBS@ @INTLLIBS@"
81
82 # Empty if no xsltproc was found
83 : ${XSLTPROC='@XSLTPROC@'}
84
85 # Don't just check if $POSIXLY_CORRECT is set, as Bash, when launched
86 # as /bin/sh, sets the shell variable POSIXLY_CORRECT to y, but not
87 # the environment variable.
88 : ${C_COMPILER_POSIXLY_CORRECT='@C_COMPILER_POSIXLY_CORRECT@'}
89 if env | grep '^POSIXLY_CORRECT=' >/dev/null; then
90 POSIXLY_CORRECT_IS_EXPORTED=true
91 else
92 POSIXLY_CORRECT_IS_EXPORTED=false
93 fi