# HG changeset patch # User John W. Eaton # Date 1472486566 14400 # Node ID 32814edc00db20503c17567f471825bcb038db1e # Parent 438a4bfdc887a0d02bfec899f5297119c692bd0d allow location of pkg directory to be specified * configure.ac: New option, --with-pkg-dir. * Makefile.in (PKG_DIR): Substitute value. diff -r 438a4bfdc887 -r 32814edc00db Makefile.in --- a/Makefile.in Mon Aug 29 11:21:19 2016 -0400 +++ b/Makefile.in Mon Aug 29 12:02:46 2016 -0400 @@ -245,7 +245,7 @@ MSYS_INFO_DIR := $(TOP_BUILD_DIR)/msys-info LOG_DIR := $(TOP_BUILD_DIR)/log TIMESTAMP := $(shell date +%Y%m%d_%H%M%S) -PKG_DIR := $(TOP_DIR)/pkg +PKG_DIR := @PKG_DIR@ TMP_DIR = $(TOP_BUILD_DIR)/tmp-$(1) MAKEFILE := $(TOP_BUILD_DIR)/Makefile PKGS := $(filter-out $(ALL_BUILD_TOOLS), $(shell $(SED) -n 's/^.* class="package">\([^<]*\)<.*$$/\1/p' '$(TOP_DIR)/index.html')) diff -r 438a4bfdc887 -r 32814edc00db configure.ac --- a/configure.ac Mon Aug 29 11:21:19 2016 -0400 +++ b/configure.ac Mon Aug 29 12:02:46 2016 -0400 @@ -53,6 +53,27 @@ esac AC_SUBST(SHELL) +PKG_DIR="$abs_srcdir/pkg" +AC_ARG_WITH([pkg-dir], + [AS_HELP_STRING([--with-pkg-dir=DIR], + [use DIR as the location for downloaded packages (default: pkg)])]) +case $with_pkg_dir in + no) + AC_MSG_ERROR([A pkg directory is required]) + ;; + yes | "") + ;; + *) + PKG_DIR="$withval" + ## Ensure directory exists and that we refer to it using an absolute name + if test -d "$PKG_DIR"; then + mkdir -p "$PKG_DIR" + fi + PKG_DIR=`(cd "$PKG_DIR"; pwd)` + ;; +esac +AC_SUBST(PKG_DIR) + ENABLE_WINDOWS_64=no AC_ARG_ENABLE(windows-64, [AS_HELP_STRING([--enable-windows-64],