OSDN Git Service

* configure.in (topsrcdir): New.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jan 1998 09:34:31 +0000 (09:34 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jan 1998 09:34:31 +0000 (09:34 +0000)
        (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead.
        (config-ml.in): Use ${topsrcdir}/config-ml.in.
        * tests/configure.in (topsrcdir): New.
        (CHECK): Check ${topsrcdir}/gcc instead.

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

libio/ChangeLog
libio/configure.in
libio/tests/configure.in

index 59aae9e..36928ba 100644 (file)
@@ -1,3 +1,12 @@
+Tue Jan 27 10:35:22 1998  H.J. Lu  (hjl@gnu.org)
+
+       * configure.in (topsrcdir): New.
+       (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead.
+       (config-ml.in): Use ${topsrcdir}/config-ml.in.
+
+       * tests/configure.in (topsrcdir): New.
+       (CHECK): Check ${topsrcdir}/gcc instead.
+
 Fri Jan 16 00:48:03 1998  Manfred Hollstein  <manfred@lts.sel.alcatel.de>
 
        * config.shared (FLAGS_TO_PASS): Add SHELL.
index af4a3d6..e676852 100644 (file)
@@ -2,7 +2,17 @@
 # necessary for a configure script to process the program in
 # this directory.  For more information, look at ../configure.
 
-if [ -d ${srcdir}/../gcc ] ; then
+if [ "${srcdir}" = "." ] ; then
+  if [ "${with_target_subdir}" != "." ] ; then
+    topsrcdir=${with_multisrctop}../..
+  else
+    topsrcdir=${with_multisrctop}..
+  fi
+else
+  topsrcdir=${srcdir}/..
+fi
+
+if [ -d ${topsrcdir}/gcc ] ; then
   configdirs="tests dbz stdio testsuite"
 else
   configdirs="tests dbz stdio"
@@ -102,7 +112,7 @@ MOSTLYCLEAN='*.o pic stamp-picdir core iostream.list'
 DISTCLEAN='config.status Makefile *~ Make.pack target-mkfrag multilib.out'
 CLEAN='_G_config.h *.a'
 INFO_FILES=iostream
-if [ -n "${with_cross_host}" -a -d ${srcdir}/../gcc ] ; then
+if [ -n "${with_cross_host}" -a -d ${topsrcdir}/gcc ]; then
     CHECK_SUBDIRS=testsuite
 fi
 (. ${srcdir}/config.shared) >${package_makefile_frag}
@@ -120,12 +130,4 @@ if [ -n "${with_cross_host}" ] ; then
     mv -f Makefile.tem Makefile
 fi
 
-if [ "${srcdir}" = "." ] ; then
-  if [ "${with_target_subdir}" != "." ] ; then
-    . ${with_multisrctop}../../config-ml.in
-  else
-    . ${with_multisrctop}../config-ml.in
-  fi
-else
-  . ${srcdir}/../config-ml.in
-fi
+. ${topsrcdir}/config-ml.in
index 2efeaf5..1a8ad31 100644 (file)
@@ -17,7 +17,18 @@ XCINCLUDES='-I. -I.. -I$(srcdir) -I$(srcdir)/..'
 XCXXINCLUDES='-I. -I.. -I$(srcdir) -I$(srcdir)/..'
 MOSTLYCLEAN='*.o core $(JUNK_TO_CLEAN)'
 (. ${srcdir}/../config.shared) >${package_makefile_frag}
-if [ ! -d ${srcdir}/../../gcc ] ; then
+
+if [ "${srcdir}" = "." ] ; then
+  if [ "${with_target_subdir}" != "." ] ; then
+    topsrcdir=${with_multisrctop}../../..
+  else
+    topsrcdir=${with_multisrctop}../..
+  fi
+else
+  topsrcdir=${srcdir}/../..
+fi
+
+if [ ! -d ${topsrcdir}/gcc ] ; then
   echo "CHECK = check-iostream check-iostdio" >>${package_makefile_frag}
 fi