From: Sandro Santilli Date: Mon, 26 Oct 2015 08:33:57 +0000 (+0000) Subject: Accept --with-sfcgal with no arguments as a valid way to enable it X-Git-Tag: 2.3.0beta1~405 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3a240da05256411347a928ce26cba6cfdd6cbc3;p=postgis Accept --with-sfcgal with no arguments as a valid way to enable it Closes #3348 git-svn-id: http://svn.osgeo.org/postgis/trunk@14328 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 1a7adcb1a..81170fa29 100644 --- a/configure.ac +++ b/configure.ac @@ -664,11 +664,14 @@ dnl =========================================================================== 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`