aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-06-09 19:10:45 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-06-09 19:10:45 -0400
commita588a9a16db97e04eca620e5fd367f2018d6eb64 (patch)
tree25fad7974bda88ce570ce21e601eb36a366881e6 /gcc
parent3ff2293f0adcc8cd97584fa0cf491b9089314616 (diff)
downloadgcc-a588a9a16db97e04eca620e5fd367f2018d6eb64.zip
gcc-a588a9a16db97e04eca620e5fd367f2018d6eb64.tar.gz
gcc-a588a9a16db97e04eca620e5fd367f2018d6eb64.tar.bz2
Don't override a user's setting for prefix on platforms that use the
native prefix. From-SVN: r14199
Diffstat (limited to 'gcc')
-rw-r--r--gcc/configure.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/configure.in b/gcc/configure.in
index 21b286e..e40dbee 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -22,10 +22,7 @@
# Initialization and defaults
AC_INIT(tree.c)
-AC_PREFIX_DEFAULT(/usr/local)
-#prefix=/usr/local
native_prefix=/usr
-#exec_prefix='$(prefix)'
local_prefix=/usr/local
remove=rm
hard_link=ln
@@ -1583,6 +1580,9 @@ for machine in $build $host $target; do
# On NetBSD, the headers are already okay.
fixincludes=Makefile.in
tmake_file=t-netbsd
+ if [[ x$prefix = xNONE ]]; then
+ prefix=$native_prefix
+ fi
prefix=$native_prefix
;;
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
@@ -2562,7 +2562,9 @@ done
# Are we using gcc as the native compiler?
case $host in
*linux*) # All Linux's use gcc as the native compiler.
- prefix=$native_prefix
+ if [[ x$prefix = xNONE ]]; then
+ prefix=$native_prefix
+ fi
;;
esac