summaryrefslogtreecommitdiff
path: root/makefiles/guess_env
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/guess_env')
-rwxr-xr-xmakefiles/guess_env9
1 files changed, 9 insertions, 0 deletions
diff --git a/makefiles/guess_env b/makefiles/guess_env
index f11ef5a..ae7728a 100755
--- a/makefiles/guess_env
+++ b/makefiles/guess_env
@@ -10,12 +10,14 @@ case "$UNAME_SYSTEM.$UNAME_RELEASE" in
Linux*) PLATFORM=LINUX
OS_MAJOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 1`
OS_MINOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 2`
+ INSTALL='install'
LIBS_DL='-ldl'
;;
FreeBSD*) PLATFORM=FREEBSD
OS_MAJOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 1`
OS_MINOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 2 | cut -d - -f 1`
+ INSTALL='install'
LIBS_DL=
LIBS_SSP=
;;
@@ -23,6 +25,7 @@ case "$UNAME_SYSTEM.$UNAME_RELEASE" in
OpenBSD*) PLATFORM=OPENBSD
OS_MAJOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 1`
OS_MINOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 2 | cut -d - -f 1`
+ INSTALL='install'
LIBS_DL=
LIBS_SSP=
;;
@@ -30,6 +33,7 @@ case "$UNAME_SYSTEM.$UNAME_RELEASE" in
SunOS*) PLATFORM=SUNOS
OS_MAJOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 1`
OS_MINOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 2`
+ INSTALL='/usr/ucb/install'
LIBS_DL='-ldl'
LIBS_SSP=
;;
@@ -38,6 +42,7 @@ case "$UNAME_SYSTEM.$UNAME_RELEASE" in
_tmp=`echo $UNAME_SYSTEM | cut -d - -f 2`
OS_MAJOR_VERSION=`echo $_tmp | cut -d . -f 1`
OS_MINOR_VERSION=`echo $_tmp | cut -d . -f 2`
+ INSTALL='install'
LIBS_SSP=
;;
@@ -90,6 +95,9 @@ case "$1" in
--gcc-minor-version) echo $GCC_MINOR_VERSION
;;
+
+ --install) echo $INSTALL
+ ;;
*)
cat <<EOF
@@ -101,6 +109,7 @@ LIBS_DL = $LIBS_DL
LIBS_SSL = $LIBS_SSL
GCC_MAJOR_VERSION = $GCC_MAJOR_VERSION
GCC_MINOR_VERSION = $GCC_MINOR_VERSION
+INSTALL = $INSTALL
EOF
;;
esac