dnl
case $host_os in
*mingw*)
- PWDREGRESS="bash -c 'pwd -W'"
+ MINGWBUILD=1
;;
*)
- PWDREGRESS="pwd"
+ MINGWBUILD=0
;;
esac
-AC_DEFINE_UNQUOTED([PWDREGRESS], [PWDREGRESS], [Define command to determine the current directory during regression])
-AC_SUBST([PWDREGRESS])
+AC_SUBST([MINGWBUILD])
AC_PATH_PROG([PERL], [perl], [])
if test "x$PERL" = "x"; then
POSTGIS_GEOS_VERSION=@POSTGIS_GEOS_VERSION@
POSTGIS_PROJ_VERSION=@POSTGIS_PROJ_VERSION@
HAVE_JSON=@HAVE_JSON@
+MINGWBUILD=@MINGWBUILD@
# MingW hack: rather than use PGSQL_BINDIR directly, we change
# to the directory and then use "pwd" to return the path. This
PGSQL_BINDIR=$(shell cd "@PGSQL_BINDIR@" && pwd)
# Where we put our regression installation
-srcdir=$(shell @PWDREGRESS@)
+ifeq ($(MINGWBUILD),1)
+ srcdir=$(shell bash -c "pwd -W")
+else
+ srcdir=$(shell pwd)
+endif
REGRESS_INSTALLDIR=$(srcdir)/00-regress-install
#