aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1997-07-29 15:07:34 -0700
committerPer Bothner <bothner@gcc.gnu.org>1997-07-29 15:07:34 -0700
commitb4294351090fb3fd736b6f1b8cb0861971818079 (patch)
tree2def9e06fe40b641ebdb41be4e594b7b3a47665d /gcc
parente8066a5d4a33c359dcb47d01049c1c4eca5910d1 (diff)
downloadgcc-b4294351090fb3fd736b6f1b8cb0861971818079.zip
gcc-b4294351090fb3fd736b6f1b8cb0861971818079.tar.gz
gcc-b4294351090fb3fd736b6f1b8cb0861971818079.tar.bz2
configure.in (--enable-c-cpplib): New option.
* configure.in (--enable-c-cpplib): New option. (extra_c_flags, extra_c_objs): New variables. From-SVN: r14556
Diffstat (limited to 'gcc')
-rw-r--r--gcc/configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/configure.in b/gcc/configure.in
index 65a95fc..e6d0683 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -79,6 +79,14 @@ if [[ x$gxx_include_dir = x ]]; then
gxx_include_dir='${prefix}/include/g++'
fi
+# Enable use of cpplib for C.
+AC_ARG_ENABLE(c-cpplib,
+[ --enable-c-cpplib Use cpplib for C.],
+if [[[ x$enable_c_cpplib != xno ]]]; then
+ extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
+ extra_c_flags=-DUSE_CPPLIB=1
+fi)
+
# Enable threads
# Pass with no value to take the default
# Pass with a value to specify a thread package
@@ -3016,6 +3024,8 @@ AC_SUBST(all_headers)
AC_SUBST(extra_passes)
AC_SUBST(extra_programs)
AC_SUBST(extra_parts)
+AC_SUBST(extra_c_objs)
+AC_SUBST(extra_c_flags)
AC_SUBST(extra_objs)
AC_SUBST(host_extra_gcc_objs)
AC_SUBST(extra_headers_list)