summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2011-11-23 18:41:20 +0000
committerAriel Constenla-Haile <arielch@apache.org>2011-11-23 18:41:20 +0000
commit70010c2d7c6472ae40fb0a8fd97e9da159a220b8 (patch)
treec49ea0214763bede2c2788ae774a254276d91b59
parentd2fc8958fc36b749f5833be4980ab47ccaf587c3 (diff)
i118604 - Fixed use of user supplied or system dmake executable
Original committer: Andre Fischer
-rw-r--r--bootstrap.114
-rw-r--r--configure.in20
-rw-r--r--set_soenv.in2
3 files changed, 27 insertions, 9 deletions
diff --git a/bootstrap.1 b/bootstrap.1
index fb065db43bba..ec6cb0193c4c 100644
--- a/bootstrap.1
+++ b/bootstrap.1
@@ -116,6 +116,20 @@ if test -n "$DMAKE_URL" -a ! -x "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT"; then
# Clean up. Note that this is skipped when one of the exits is executed above.
rm -rf "$tmp_build_dir"
+elif test "$IS_SYSTEM_DMAKE" = "YES"; then
+
+ echo ""
+ echo "dmake is located in search path"
+ echo ""
+
+elif test -n "$DMAKE_PATH" -a -x "$DMAKE_PATH" -a ! -x "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT"; then
+
+ cp -f "$DMAKE_PATH" "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT" || exit
+
+ echo ""
+ echo "dmake copied to $SOLARENV/$OUTPATH/bin/dmake$EXEEXT"
+ echo ""
+
else
if test -x "$SOLARENV/$OUTPATH/bin/dmake$EXEEXT"; then
diff --git a/configure.in b/configure.in
index c6b8adc72d11..0063719976b8 100644
--- a/configure.in
+++ b/configure.in
@@ -1644,16 +1644,18 @@ dnl Search for a pre-installed dmake
dnl ===================================================================
AC_MSG_CHECKING([for dmake])
AC_PATH_PROG(DMAKE, dmake, no)
+IS_SYSTEM_DMAKE=NO
if test "$DMAKE" != "no"; then
AC_MSG_RESULT([using system dmake])
-else
+ DMAKE_PATH="$DMAKE"
+ IS_SYSTEM_DMAKE=YES
+elif test -n "$with_dmake_path" ; then
# Did not find pre-installed dmake.
# Is it at a nonstandard location provided by --with-dmake-path ?
- if test -n "$with_dmake_path" ; then
- AC_PATH_PROG(DMAKE, dmake, no, "$with_dmake_path")
- if test "$DMAKE" != "no"; then
- AC_MSG_RESULT([using user provided dmake])
- fi
+ AC_MSG_NOTICE([looking for dmake at $DMAKE_PATH])
+ if test -x "$with_dmake_path" ; then
+ AC_MSG_RESULT([using user provided dmake])
+ DMAKE=$with_dmake_path
fi
fi
@@ -1668,9 +1670,8 @@ if test "$DMAKE" = "no"; then
AC_MSG_RESULT([dmake will be downloaded and compiled in bootstrap])
DMAKE=
else
- AC_MSG_WARN([no URL for dmake source code specified, either.])
+ AC_MSG_ERROR([no URL for dmake source code specified, either.])
BUILD_DMAKE=YES
- AC_MSG_WARN([dmake will be built from internal sources but these will be removed in the future"])
fi
else
AC_MSG_CHECKING([whether the found dmake is the right dmake])
@@ -1703,7 +1704,8 @@ if test "$DMAKE" = "no"; then
AC_MSG_ERROR([please use --with-dmake-path or --with-dmake-url to specify dmake executable or source])
fi
AC_SUBST(DMAKE_URL)
-AC_SUBST(DMAKE)
+AC_SUBST(DMAKE_PATH)
+AC_SUBST(IS_SYSTEM_DMAKE)
dnl ===================================================================
diff --git a/set_soenv.in b/set_soenv.in
index 7dae69c348ad..23269f951766 100644
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1974,6 +1974,8 @@ ToFile( "ENABLE_AGG", "@ENABLE_AGG@", "e" );
ToFile( "SYSTEM_AGG", "@SYSTEM_AGG@", "e" );
ToFile( "AGG_VERSION", "@AGG_VERSION@", "e" );
ToFile( "DMAKE_URL", "@DMAKE_URL@", "e" );
+ToFile( "DMAKE_PATH", "@DMAKE_PATH@", "e" );
+ToFile( "IS_SYSTEM_DMAKE", "@IS_SYSTEM_DMAKE@", "e" );
ToFile( "BUILD_STAX", "@BUILD_STAX@", "e" );
ToFile( "BUILD_UNOWINREG", "@BUILD_UNOWINREG@", "e" );
ToFile( "USE_XINERAMA", "@USE_XINERAMA@", "e" );