aboutsummaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/configure.in b/src/configure.in
index 48fea98223f..d898b2b952f 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -258,18 +258,25 @@ AC_SUBST(HAVECXX)
dnl AC_PROG_INSTALL was broken on my machine (NAT), so here's an
dnl alternative, built from the various portname options
-AC_PATH_PROG(INSTALL, install, /usr/bin:/usr/ucb:/home/tools/bin)
-AC_PATH_PROG(BSDINST, bsdinst, /usr/bin/X11:/usr/X11R6/bin:/sbin)
+AC_PATH_PROG(INSTALL, install, , /usr/bin:/usr/ucb:/home/tools/bin)
+AC_PATH_PROG(BSDINST, bsdinst, ,/usr/bin/X11:/usr/X11/bin:/sbin:/opt/X11/bin:/usr/X11R6/bin)
+AC_PATH_PROG(INSTALLBSD, installbsd, , /bin:/usr/bin:/usr/ucb)
INSTLOPTS="-m 444"
INSTL_EXE_OPTS="-m 555"
INSTL_LIB_OPTS="-m 664"
-if test -n "$INSTALL"; then
+if test -f "$INSTALLBSD"; then
+ INSTALL=$INSTALLBSD
+elif test -f "$INSTALL"; then
INSTLOPTS="-c $INSTLOPTS"
INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"
INSTL_LIB_OPTS="-c $INSTL_LIB_OPTS"
-else
+elif test -f "$BSDINST"; then
INSTALL=$BSDINST
+else
+ echo "- No Install Script found - aborting."
+ exit 0;
fi
+echo "- Using $INSTALL"
AC_SUBST(INSTALL)
AC_SUBST(INSTLOPTS)
AC_SUBST(INSTL_LIB_OPTS)