# Empty if no xsltproc was found
: ${XSLTPROC='@XSLTPROC@'}
-: ${PERL='@PERL@'}
-
+ # Don't just check if $POSIXLY_CORRECT is set, as Bash, when launched
+ # as /bin/sh, sets the shell variable POSIXLY_CORRECT to y, but not
+ # the environment variable.
+ : ${C_COMPILER_POSIXLY_CORRECT='@C_COMPILER_POSIXLY_CORRECT@'}
+ if env | grep '^POSIXLY_CORRECT=' >/dev/null; then
+ POSIXLY_CORRECT_IS_EXPORTED=true
+ else
+ POSIXLY_CORRECT_IS_EXPORTED=false
+ fi
+
+# Handle --compile-c-with-cxx here, once CXX and CXXFLAGS are known.
+if "$at_arg_compile_c_with_cxx"; then
+ CC=$CXX
+ CFLAGS=$CXXFLAGS
+fi
[[# Defining POSIXLY_CORRECT causes bison to complain if options are
# added after the grammar file name, so skip these checks in that
# case.
- #
- # Don't just check if $POSIXLY_CORRECT is set, as Bash, when launched
- # as /bin/sh, sets the shell variable POSIXLY_CORRECT to y, but not
- # the environment variable.
- if env | grep '^POSIXLY_CORRECT=' >/dev/null; then :; else
+ if test "$POSIXLY_CORRECT_IS_EXPORTED" = false; then
- ]AT_SAVE_SPECIAL_FILES[
+ ]AT_SAVE_SPECIAL_FILES[
# To avoid expanding it repeatedly, store specified stdout.
]AT_DATA([expout], [$3])[