9e57d5caf2
2003-04-16 Benjamin Kosnik <bkoz@redhat.com> * acinclude.m4 (GLIBCPP_CHECK_PCH): New. * aclocal.m4: Regenerated. * configure.in: Remove old demangler bits. Call pch checks. * configure: Regenerate. * config.h.in: Regenerate. * include/Makefile.am (allstamps): Now allstamped. (allcreated): Define this. (all-local): Use 'em. Conditionally define pch_build, pch_install based on GLIBCPP_BUILD_PCH. (${pch_output}): New rule. (install-pch): New rule. (install-headers): New rule. (install-data-local): Install headers and conditionally pch. * include/Makefile.in: Regenerate. * testsuite_flags.in (--build-cxx): Use pch file. From-SVN: r65717
63 lines
1.5 KiB
Bash
Executable File
63 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# This script computes the various flags needed to run GNU C++ testsuites
|
|
# (compiler specific as well as library specific).
|
|
#
|
|
# Written by Benjamin Kosnik <bkoz@redhat.com>
|
|
# Gabriel Dos Reis <gdr@codesourcery.com>
|
|
#
|
|
|
|
# Print a message saying how this script is intended to be invoked
|
|
print_usage() {
|
|
cat <<EOF
|
|
Usage:
|
|
testsuite_flags --install-includes
|
|
--build-includes
|
|
--build-cxx
|
|
--install-cxx
|
|
--cxxflags
|
|
EOF
|
|
}
|
|
|
|
# Establish configure-generated directory structure.
|
|
BUILD_DIR=@glibcpp_builddir@
|
|
SRC_DIR=@glibcpp_srcdir@
|
|
PREFIX_DIR=@glibcpp_prefixdir@
|
|
query=$1
|
|
|
|
case ${query} in
|
|
--install-includes)
|
|
INCLUDES="-I${SRC_DIR}/testsuite"
|
|
echo ${INCLUDES}
|
|
;;
|
|
--build-includes)
|
|
INCLUDES="-nostdinc++ @GLIBCPP_INCLUDES@
|
|
-I${SRC_DIR}/libsupc++ -I${SRC_DIR}/libio
|
|
-I${SRC_DIR}/include/backward
|
|
-I${SRC_DIR}/testsuite"
|
|
echo ${INCLUDES}
|
|
;;
|
|
--install-cxx)
|
|
CXX=${PREFIX_DIR}/bin/g++
|
|
echo ${CXX}
|
|
;;
|
|
--build-cxx)
|
|
PCHFLAGS="-include ${BUILD_DIR}/include/stdc++.h"
|
|
CC_build="@glibcpp_CXX@ ${PCHFLAGS}"
|
|
CXX=`echo $CC_build | sed 's/xgcc/g++/g'`
|
|
echo ${CXX}
|
|
;;
|
|
--cxxflags)
|
|
CXXFLAGS_save="-g -O2"
|
|
CXXFLAGS_config='@SECTION_FLAGS@ @SECTION_LDFLAGS@ -fmessage-length=0
|
|
@EXTRA_CXX_FLAGS@ -DLOCALEDIR="@glibcpp_localedir@" '
|
|
echo ${CXXFLAGS_save} ${CXXFLAGS_config}
|
|
;;
|
|
*)
|
|
print_usage
|
|
;;
|
|
esac
|
|
|
|
exit 0
|