Commit a588a9a1 by Richard Kenner

Don't override a user's setting for prefix on platforms that use the

native prefix.

From-SVN: r14199
parent 3ff2293f
...@@ -22,10 +22,7 @@ ...@@ -22,10 +22,7 @@
# Initialization and defaults # Initialization and defaults
AC_INIT(tree.c) AC_INIT(tree.c)
AC_PREFIX_DEFAULT(/usr/local)
#prefix=/usr/local
native_prefix=/usr native_prefix=/usr
#exec_prefix='$(prefix)'
local_prefix=/usr/local local_prefix=/usr/local
remove=rm remove=rm
hard_link=ln hard_link=ln
...@@ -1583,6 +1580,9 @@ for machine in $build $host $target; do ...@@ -1583,6 +1580,9 @@ for machine in $build $host $target; do
# On NetBSD, the headers are already okay. # On NetBSD, the headers are already okay.
fixincludes=Makefile.in fixincludes=Makefile.in
tmake_file=t-netbsd tmake_file=t-netbsd
if [[ x$prefix = xNONE ]]; then
prefix=$native_prefix
fi
prefix=$native_prefix prefix=$native_prefix
;; ;;
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
...@@ -2562,7 +2562,9 @@ done ...@@ -2562,7 +2562,9 @@ done
# Are we using gcc as the native compiler? # Are we using gcc as the native compiler?
case $host in case $host in
*linux*) # All Linux's use gcc as the native compiler. *linux*) # All Linux's use gcc as the native compiler.
prefix=$native_prefix if [[ x$prefix = xNONE ]]; then
prefix=$native_prefix
fi
;; ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment