aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJakob Egger <jakob@eggerapps.at>2019-10-03 09:28:57 +0200
committerGitHub <noreply@github.com>2019-10-03 09:28:57 +0200
commitf47eb7a018ca873e92ec6077eef940731841b4c5 (patch)
tree81290f85840e415cc7bff87e789bc61120ce48d7 /configure.ac
parentdca893f02ac822f2ccf5f02a4331920eeb42299a (diff)
downloadPROJ-f47eb7a018ca873e92ec6077eef940731841b4c5.tar.gz
PROJ-f47eb7a018ca873e92ec6077eef940731841b4c5.zip
Only call pkg-config in configure when necessary
Only call pkg-config in the configure script when the variables $SQLITE3_CFLAGS and $SQLITE3_LIBS are not set. This allows building PROJ when pkg-config is not available.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index de148925..7a6814b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -279,7 +279,9 @@ dnl ---------------------------------------------------------------------------
dnl Check for sqlite3 library and binary
dnl ---------------------------------------------------------------------------
-PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= 3.7])
+if test "x$SQLITE3_CFLAGS$SQLITE3_LIBS" = "x" ; then
+ PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= 3.7])
+fi
AC_SUBST(SQLITE3_CFLAGS,$SQLITE3_CFLAGS)
AC_SUBST(SQLITE3_LIBS,$SQLITE3_LIBS)