Skip to content

Commit 369e43e

Browse files
author
Sandro Santilli
committed
Fix build on systems with no sfcgal installed
See https://travis-ci.org/postgis/postgis/builds/87413334 Ref #3348 git-svn-id: http://svn.osgeo.org/postgis/trunk@14329 b70326c6-7e19-0410-871a-916f4a2858ee
1 parent e3a240d commit 369e43e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ dnl ===========================================================================
664664
AC_ARG_WITH([sfcgal],
665665
[AS_HELP_STRING([--with-sfcgal=PATH], [Add SFCGAL support. ARG allows to specify an alternate PATH to sfcgal-config])],
666666
[SFCGAL_CONFIG="$withval"],
667-
[with_sfcgal=yes])
667+
[with_sfcgal=auto])
668668

669669
HAVE_SFCGAL="no"
670670

671671
if test "x$with_sfcgal" != "xno"; then
672-
if test "x$with_sfcgal" = "xyes"; then
672+
if test "x$with_sfcgal" = "xyes" -o "x$with_sfcgal" = "xauto"; then
673673
AC_PATH_PROG([SFCGAL_CONFIG], [sfcgal-config], [])
674674
fi
675675
if test -x "$SFCGAL_CONFIG"; then
@@ -695,7 +695,7 @@ if test "x$with_sfcgal" != "xno"; then
695695
fi
696696

697697
else
698-
if test "x$with_sfcgal" != "x"; then
698+
if test "x$with_sfcgal" != "xauto"; then
699699
AC_MSG_ERROR([sfcgal-config cannot be found. Please install sfcgal])
700700
fi
701701
fi

0 commit comments

Comments
 (0)