diff options
author | Ian Lance Taylor <ian@airs.com> | 1998-05-05 22:03:12 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1998-05-05 22:03:12 +0000 |
commit | ff2664fc491c169da16146ba88f7d8abcecf3159 (patch) | |
tree | c8986d9b61b2e444286cea8263a07cb33168317a /configure.in | |
parent | 7074031da37c741d42cc401c938dff77aee76e87 (diff) | |
download | gdb-ff2664fc491c169da16146ba88f7d8abcecf3159.zip gdb-ff2664fc491c169da16146ba88f7d8abcecf3159.tar.gz gdb-ff2664fc491c169da16146ba88f7d8abcecf3159.tar.bz2 |
* configure.in: Add --with-newlib to CONFIG_ARGUMENTS if we are
building with newlib.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 4bb99cf..8f2ebbe 100644 --- a/configure.in +++ b/configure.in @@ -1124,6 +1124,12 @@ if [ x${enable_multilib} = x ]; then targargs="--enable-multilib ${targargs}" fi +# Pass --with-newlib if appropriate. Note that target_configdirs has +# changed from the earlier setting of with_newlib. +if [ x${with_newlib} != xno ] && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && [ -d ${srcdir}/newlib ] ; then + targargs="--with-newlib ${targargs}" +fi + targargs="--host=${target_alias} --build=${build_alias} ${targargs}" sed -e "s:^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \ -e "s%^CONFIG_ARGUMENTS[ ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \ |