summaryrefslogtreecommitdiffstats
path: root/libcpp/configure
diff options
context:
space:
mode:
authorsimonb <simonb@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-16 17:14:05 +0000
committersimonb <simonb@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-16 17:14:05 +0000
commit52bc861d91439efe60110d1b64280e401ddcf902 (patch)
tree709320b578253406cba90335431f68194bf6b70a /libcpp/configure
parentb5228c55900494653f0f2050af2b7a5969461594 (diff)
downloadppe42-gcc-52bc861d91439efe60110d1b64280e401ddcf902.tar.gz
ppe42-gcc-52bc861d91439efe60110d1b64280e401ddcf902.zip
* include/cpplib.h (struct cpp_options): Add canonical_system_headers.
* files.c (find_file_in_dir): Call maybe_shorter_path() only if canonical_system_headers is set. * init.c (cpp_create_reader): Initialize canonical_system_headers. * configure.ac: Add new --enable-canonical-system-headers. * configure: Regenerate. * config.in: Regenerate. * doc/cppopts.texi: Document -f[no-]canonical-system-headers. * doc/install.texi: Document --enable-canonical-system-headers. * c.opt: Add f[no-]canonical-system-headers. * c-opts.c (c_common_handle_option): Handle OPT_fcanonical_system_headers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193569 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/configure')
-rwxr-xr-xlibcpp/configure16
1 files changed, 16 insertions, 0 deletions
diff --git a/libcpp/configure b/libcpp/configure
index d33969b2b2d..d07aed3199c 100755
--- a/libcpp/configure
+++ b/libcpp/configure
@@ -700,6 +700,7 @@ enable_rpath
with_libiconv_prefix
enable_maintainer_mode
enable_checking
+enable_canonical_system_headers
'
ac_precious_vars='build_alias
host_alias
@@ -1333,6 +1334,8 @@ Optional Features:
--disable-rpath do not hardcode runtime library paths
--enable-maintainer-mode enable rules only needed by maintainers
--enable-checking enable expensive run-time checks
+ --enable-canonical-system-headers
+ enable or disable system headers canonicalization
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -7094,6 +7097,19 @@ $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
fi
+# Check whether --enable-canonical-system-headers was given.
+if test "${enable_canonical_system_headers+set}" = set; then :
+ enableval=$enable_canonical_system_headers;
+else
+ enable_canonical_system_headers=yes
+fi
+
+if test $enable_canonical_system_headers != no; then
+
+$as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
+
+fi
+
case $target in
aarch64*-*-* | \
OpenPOWER on IntegriCloud