From a588a9a16db97e04eca620e5fd367f2018d6eb64 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 9 Jun 1997 19:10:45 -0400 Subject: [PATCH] Don't override a user's setting for prefix on platforms that use the native prefix. From-SVN: r14199 --- gcc/configure.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/configure.in b/gcc/configure.in index 21b286e1976..e40dbeeaecb 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 -- 2.30.2