]> granicus.if.org Git - postgis/commitdiff
Fix handling of bogus argument passed to --with-sfcgal (#2784)
authorSandro Santilli <strk@keybit.net>
Thu, 26 Jun 2014 08:02:11 +0000 (08:02 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 26 Jun 2014 08:02:11 +0000 (08:02 +0000)
Patch by Vincent Mora

git-svn-id: http://svn.osgeo.org/postgis/trunk@12664 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 5ac96dfa2b1f054b7bde69f7fa3c3f798acee1ff..7fe5fafa77797903d129b520c1f17de0690d96be 100644 (file)
@@ -632,7 +632,7 @@ HAVE_SFCGAL="no"
 
 if test "x$with_sfcgal" != "xno"; then
        if test -x "$SFCGAL_CONFIG"; then
-               SFCGAL_VERSION=`$SFCGAL_CONFIG --version`
+               SFCGAL_VERSION=`$SFCGAL_CONFIG --version` || AC_MSG_ERROR([cannot determine sfcgal version (tried with $SFCGAL_CONFIG --version)])
                SFCGAL_LDFLAGS=`$SFCGAL_CONFIG --libs`
                SFCGAL_CPPFLAGS=`$SFCGAL_CONFIG --cflags`" -DHAVE_SFCGAL"