OSDN Git Service

* configure.in (FLAGS_FOR_TARGET): Use $target_configdirs and
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Aug 2000 07:04:49 +0000 (07:04 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Aug 2000 07:04:49 +0000 (07:04 +0000)
$targargs to tell whether newlib is going to be built.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35969 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
configure.in

index af4d760..9d832c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
index 5313258..55b853c 100644 (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