summaryrefslogtreecommitdiff
path: root/mcon/U/Head.U
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2010-11-27 11:55:39 +0000
committerrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2010-11-27 11:55:39 +0000
commit13158f86e3904284dce3dad36b64f07414459551 (patch)
tree12cc7b8d1b808c8c3505bb44cf067bd9ab98b1e6 /mcon/U/Head.U
parent194d1db97053d853d5f81c362c461d71c05ea80e (diff)
Applied mega patch from Christian Biere to greatly improve feature detection
and make a huge step towards better support for cross-compiling. git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@34 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U/Head.U')
-rw-r--r--mcon/U/Head.U40
1 files changed, 1 insertions, 39 deletions
diff --git a/mcon/U/Head.U b/mcon/U/Head.U
index 7667c8a..aa41021 100644
--- a/mcon/U/Head.U
+++ b/mcon/U/Head.U
@@ -49,7 +49,7 @@
?MAKE:Head:
?MAKE: -pick wipe $@ %<
?V:PATH p_ _exe me newsh
-?T:argv Id p paths OS2_SHELL DJGPP
+?T:argv Id OS2_SHELL DJGPP
?T:inksh needksh avoidksh newsh changesh reason
?F:!*
?LINT:extern ENV CDPATH SHELL MACHTYPE
@@ -145,44 +145,6 @@ if test -d c:/. ; then
fi
fi
-?X:
-?X: There are two schools of thoughts here. Some people correctly argue that
-?X: the user has a better chance than we do of setting a reasonable PATH and
-?X: others argue that Configure is the best place there is to set up a suitable
-?X: PATH. Well, here we try to compromize by keeping the user's PATH and
-?X: appending some directories which are known to work on some machine or the
-?X: other. The rationale behind this being that a novice user might not have a
-?X: proper environment variable set, and some directories like /etc (where
-?X: chown is located on some BSD systems) may be missing--RAM.
-?X:
-?X: SVR4 adds an /opt directory for optional packages. Some sites use
-?X: various permutations on /opt as opposed to /usr or /usr/local.-- ADO
-?X:
-?X: We only add directories that are not already in the PATH of the
-?X: user and the directories must exist also.
-?X:
-: Proper PATH setting
-paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
-paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin"
-paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin"
-paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin"
-paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb"
-paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /usr/ccs/bin"
-paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib"
-paths="$paths /sbin /usr/sbin /usr/libexec"
-paths="$paths /system/gnu_library/bin"
-
-for p in $paths
-do
- case "$p_$PATH$p_" in
- *$p_$p$p_*) ;;
- *) test -d $p && PATH=$PATH$p_$p ;;
- esac
-done
-
-PATH=.$p_$PATH
-export PATH
-
: shall we be using ksh?
inksh=''
needksh=''