OSDN Git Service

* configure.in (noconfigdirs): Replace [ ] with test.
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 May 2002 22:28:36 +0000 (22:28 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 May 2002 22:28:36 +0000 (22:28 +0000)
* configure.in (noconfigdirs): Do not add target-newlib if
target == i[3456]86-*-linux*, and host == target.

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

ChangeLog
configure.in

index 81e390b..af375fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       * configure.in (noconfigdirs): Replace [ ] with test.
+
+       * configure.in (noconfigdirs): Do not add target-newlib if
+       target == i[3456]86-*-linux*, and host == target.
+
 2002-04-29  Nathanael Nerode  <neroden@doctormoo.dyndns.org>
 
        * configure.in: delete reference to absent file
 2002-04-29  Nathanael Nerode  <neroden@doctormoo.dyndns.org>
 
        * configure.in: delete reference to absent file
index b50ea1f..6c0e7d6 100644 (file)
@@ -806,6 +806,20 @@ case "${target}" in
     # linux has rx in libc
     skipdirs="$skipdirs target-librx"
     ;;
     # linux has rx in libc
     skipdirs="$skipdirs target-librx"
     ;;
+  i[3456]86-*-linux*)
+    # This section makes it possible to build newlib natively on linux.
+    # If we are using a cross compiler then don't configure newlib.
+    if test x${is_cross_compiler} != xno ; then
+         noconfigdirs="$noconfigdirs target-newlib"
+    fi
+    noconfigdirs="$noconfigdirs target-libgloss"
+    # If we are not using a cross compiler, do configure newlib.
+    # Note however, that newlib will only be configured in this situation
+    # if the --with-newlib option has been given, because otherwise
+    # 'target-newlib' will appear in skipdirs.
+    # linux has rx in libc
+    skipdirs="$skipdirs target-librx"
+    ;;
   *-*-linux*)
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
     # linux has rx in libc
   *-*-linux*)
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
     # linux has rx in libc
@@ -1506,7 +1520,7 @@ case " $skipdirs " in
    fi
 
    case "${target}-${is_cross_compiler}" in
    fi
 
    case "${target}-${is_cross_compiler}" in
-   i[3456]86-pc-linux*-no)
+   i[3456]86-*-linux*-no)
       # Here host == target, so we don't need to build gcc,
       # so we don't want to discard standard headers.
       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
       # Here host == target, so we don't need to build gcc,
       # so we don't want to discard standard headers.
       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`