configure.in (FLAGS_FOR_TARGET): Use $target_configdirs and $targargs to tell whether newlib is going to be built.

* configure.in (FLAGS_FOR_TARGET): Use $target_configdirs and
$targargs to tell whether newlib is going to be built.

From-SVN: r35969
This commit is contained in:
Alexandre Oliva 2000-08-25 07:04:49 +00:00 committed by Alexandre Oliva
parent db310af088
commit 7965440a9b
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2000-08-25 Alexandre Oliva <aoliva@redhat.com>
* configure.in (FLAGS_FOR_TARGET): Use $target_configdirs and
$targargs to tell whether newlib is going to be built.
* configure.in [disable-libstdcxx-v3] (libstdcxx_flags): Search
$$r/TARGET_SUBDIR/libio for _G_config.h.

View File

@ -1235,6 +1235,10 @@ FLAGS_FOR_TARGET=
case " $skipdirs " in
*" target-newlib "*) ;;
*)
case " $target_configdirs " in
*" newlib "*)
case " $targargs " in
*" --with-newlib "*)
case "$target" in
*-cygwin*)
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include -isystem $$s/newlib/libc/sys/cygwin -isystem $$s/newlib/libc/sys/cygwin32' ;;
@ -1252,6 +1256,10 @@ case " $skipdirs " in
# switch).
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
;;
esac
;;
esac
;;
esac
# On Canadian crosses, we'll be searching the right directories for