From 5a4428edd1228edc2e3799025c486be2650e6093 Mon Sep 17 00:00:00 2001 From: Ralf Gerlich Date: Fri, 9 Nov 2007 17:10:44 +0100 Subject: [PATCH] Added an error message on the conflict of --enable-ogrdecode and a missing OGR. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 1807ddcb..f103d0ca 100644 --- a/configure.ac +++ b/configure.ac @@ -152,6 +152,13 @@ if test "$with_gdal" != "no" ; then AC_SUBST(GDAL_CFLAGS) fi +if test x$have_ogr != xyes -a x$enable_ogrdecode = xyes; then + AC_MSG_ERROR([ogrdecode was forcefully enabled but OGR was not found. + Please make sure that you have GDAL installed with OGR enabled + and gdal-config in your PATH resp. the path to gdal-config provided + using --with-gdal.]) +fi + AM_CONDITIONAL(WANT_OGRDECODE, test x$have_ogr = xyes -a x$enable_ogrdecode != xno) dnl Check for MS Windows environment