testsuite: Automatically skip tests that fail when sysconfdir != /etc.
diff --git a/configure.ac b/configure.ac
index 0cf2eda..222de3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -224,6 +224,8 @@
 ], [
 AM_CONDITIONAL([ENABLE_GTK_DOC], false)])
 
+# Some tests are skipped when sysconfdir != /etc.
+AM_CONDITIONAL([KMOD_SYSCONFDIR_NOT_ETC], [test "x$sysconfdir" != "x/etc"])
 
 #####################################################################
 # Default CFLAGS and LDFLAGS