From a1304fc5abaa8c34b7369016c9a12c96b489e76d Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 14 Aug 2011 19:47:04 +0000 Subject: [PATCH] Fix for missing include directory on Mingw (#1158). Thanks Bryce Nordgren. git-svn-id: http://svn.osgeo.org/postgis/trunk@7748 b70326c6-7e19-0410-871a-916f4a2858ee --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0ee32daac..eaa932e02 100644 --- a/configure.ac +++ b/configure.ac @@ -358,7 +358,14 @@ AC_SUBST([PGSQL_FE_LDFLAGS]) AC_SUBST([PGSQL_FE_CPPFLAGS]) dnl Extract the include flags for the backend (libpgcommon) -PGSQL_BE_CPPFLAGS=-I`$PGCONFIG --includedir-server` +PGSRV_INC=`$PGCONFIG --includedir-server` +PGSQL_BE_CPPFLAGS="-I${PGSRV_INC}" +dnl Add $PGSRV_INC/port/win32 to MinGW build to pick up netdb.h +case $host in + *mingw32*) + PGSQL_BE_CPPFLAGS="${PGSQL_BE_CPPFLAGS} -I${PGSRV_INC}/port/win32" + ;; +esac AC_SUBST([PGSQL_BE_CPPFLAGS]) -- 2.50.0