[postgis-tickets] r14328 - Accept --with-sfcgal with no arguments as a valid way to enable it

Sandro Santilli strk at keybit.net
Mon Oct 26 01:33:57 PDT 2015


Author: strk
Date: 2015-10-26 01:33:57 -0700 (Mon, 26 Oct 2015)
New Revision: 14328

Modified:
   trunk/configure.ac
Log:
Accept --with-sfcgal with no arguments as a valid way to enable it

Closes #3348

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2015-10-26 08:01:44 UTC (rev 14327)
+++ trunk/configure.ac	2015-10-26 08:33:57 UTC (rev 14328)
@@ -664,11 +664,14 @@
 AC_ARG_WITH([sfcgal], 
 	[AS_HELP_STRING([--with-sfcgal=PATH], [Add SFCGAL support. ARG allows to specify an alternate PATH to sfcgal-config])], 
 	[SFCGAL_CONFIG="$withval"], 
-	[AC_PATH_PROG([SFCGAL_CONFIG], [sfcgal-config], [])])
+	[with_sfcgal=yes])
 
 HAVE_SFCGAL="no"
 
 if test "x$with_sfcgal" != "xno"; then
+  if test "x$with_sfcgal" = "xyes"; then
+	  AC_PATH_PROG([SFCGAL_CONFIG], [sfcgal-config], [])
+  fi
 	if test -x "$SFCGAL_CONFIG"; then
 		SFCGAL_VERSION=`$SFCGAL_CONFIG --version` || AC_MSG_ERROR([cannot determine sfcgal version (tried with $SFCGAL_CONFIG --version)])
 		SFCGAL_LDFLAGS=`$SFCGAL_CONFIG --libs`



More information about the postgis-tickets mailing list