From: Sandro Santilli Date: Wed, 14 Mar 2012 16:35:02 +0000 (+0000) Subject: Don't re-implement AC_PATH_PROG for gdal-config X-Git-Tag: 2.0.0beta4~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa740def535c4bfef9f34eb3ba1087da28095400;p=postgis Don't re-implement AC_PATH_PROG for gdal-config git-svn-id: http://svn.osgeo.org/postgis/trunk@9498 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 52a4eb95f..b13054ad2 100644 --- a/configure.ac +++ b/configure.ac @@ -943,16 +943,10 @@ if test "x$with_raster" != "xno"; then [gdalconfig], AC_HELP_STRING([--with-gdalconfig=@<:@ARG@:>@],[specify location of gdal-config (ARG=path). Only used with --with-raster]), [GDAL_CONFIG="$withval"], - [GDAL_CONFIG=""]) + [AC_PATH_PROG([GDAL_CONFIG], [gdal-config], [])] + ) AC_MSG_CHECKING([for GDAL >= $GDAL_MIN_VERSION]) - if test "x$GDAL_CONFIG" = "x"; then - dnl If GDAL_CONFIG path not provided, try to find it - GDAL_CONFIG_TMP=`which gdal-config` - if test "`basename xx/${GDAL_CONFIG_TMP}`" = "gdal-config" ; then - GDAL_CONFIG=${GDAL_CONFIG_TMP} - fi - fi if test -x "$GDAL_CONFIG"; then dnl Extract the version information from gdal-config