diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-03-08 06:11:02 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-03-08 06:11:02 +0000 |
commit | c785e0fab4a240729146c6df299f6deea23a2910 (patch) | |
tree | 3a0029e10040e4685e0f8605df5036867d6d2c94 /gcc/configure.in | |
parent | 251b366767b31aa5e2e98ccf2af89a07501c498f (diff) | |
download | gcc-c785e0fab4a240729146c6df299f6deea23a2910.tar.gz |
configure.in (enable_shared): Support per-package shared-library enabling.
* configure.in (enable_shared): Support per-package shared-library
enabling.
* configure: Rebuilt.
From-SVN: r40315
Diffstat (limited to 'gcc/configure.in')
-rw-r--r-- | gcc/configure.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/configure.in b/gcc/configure.in index a174f228579..12ffbc848b4 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -315,7 +315,21 @@ dwarf2=no) AC_ARG_ENABLE(shared, [ --disable-shared don't provide a shared libgcc.], -[], [enable_shared=yes]) +[ + case $enable_shared in + yes | no) ;; + *) + enable_shared=no + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," + for pkg in $enableval; do + if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then + enable_shared=yes + fi + done + IFS="$ac_save_ifs" + ;; + esac +], [enable_shared=yes]) AC_SUBST(enable_shared) # Determine the host, build, and target systems |