Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-05-18 21:11:17 +0400
committerH.J. Lu <hjl.tools@gmail.com>2000-05-18 21:11:17 +0400
commit6c7395bfce9491415d6672bc97a7f6e70fd07fd9 (patch)
tree47fc27318f5766a5d08ad38354360d6abb939691
parent52a3d41377a83e7408325a078a33784f97d5cc5f (diff)
20000-05-18 H.J. Lu (hjl@gnu.org)
* configure: Ask to create the gcc directory for cross compiling if necessary.
-rw-r--r--ChangeLog5
-rwxr-xr-xconfigure11
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 86c299036..7b22d4fd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+20000-05-18 H.J. Lu (hjl@gnu.org)
+
+ * configure: Ask to create the gcc directory for cross
+ compiling if necessary.
+
Thu May 18 10:58:13 2000 Jeffrey A Law (law@cygnus.com)
* configure.in (hppa*64*-*-*): Do build ld for this configuration.
diff --git a/configure b/configure
index 06bd1a130..fbf5ab584 100755
--- a/configure
+++ b/configure
@@ -753,6 +753,17 @@ target_vendor=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
target=${target_cpu}-${target_vendor}-${target_os}
+if [ x${target} != x${build} -a x${build} = x${host} ]; then
+ if [ x${gcc_version} != x -a ! -d ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version} ]; then
+ echo "Please create the directory:" 1>&2
+ echo 1>&2
+ echo " ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version}" 1>&2
+ echo 1>&2
+ echo "first for successful cross-compilation." 1>&2
+ exit 1
+ fi
+fi
+
. ${tmpfile}.tgt
# Find the source files, if location was not specified.