]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
configure.ac: do not fail sqlite check when cross-compiling
authorMike Frysinger <vapier@gentoo.org>
Fri, 19 Apr 2013 17:21:47 +0000 (13:21 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 22 Apr 2013 16:47:20 +0000 (12:47 -0400)
If we're cross-compiling, we can't do a runtime test of sqlite,
so just assume that the user has a good enough version rather
than falling over.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
configure.ac

index 3d7ab0a2669d33c3cece1844b7eb53f2c1e3f68a..a594a7b53952359159d9e97878bf18d1d1fdb9c2 100644 (file)
@@ -274,9 +274,14 @@ if test "$enable_nfsv4" = yes; then
        AC_CHECK_HEADERS([libgen.h sys/inotify.h], ,
                AC_MSG_ERROR([Cannot find header needed for nfsdcltrack]))
 
-       if test "$libsqlite3_cv_is_recent" != "yes" ; then
-               AC_MSG_ERROR([nfsdcltrack requires sqlite-devel])
-       fi
+    case $libsqlite3_cv_is_recent in
+    yes) ;;
+    unknown)
+      dnl do not fail when cross-compiling
+      AC_MSG_WARN([assuming sqlite is at least v3.3]) ;;
+    *)
+      AC_MSG_ERROR([nfsdcltrack requires sqlite-devel]) ;;
+    esac
   fi
 
 else