From: Alan T. DeKok Date: Thu, 3 Jun 2021 12:57:50 +0000 (-0400) Subject: check for rlm_sql_sqlite in the ALL_TGTS variable X-Git-Tag: release_3_0_23~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7330e6dc833f5480b78e5126443e8d6af8ca1e1;p=thirdparty%2Ffreeradius-server.git check for rlm_sql_sqlite in the ALL_TGTS variable --- diff --git a/src/tests/sql_nas_table/all.mk b/src/tests/sql_nas_table/all.mk index 5a69c4138c6..da215011ad0 100644 --- a/src/tests/sql_nas_table/all.mk +++ b/src/tests/sql_nas_table/all.mk @@ -8,10 +8,14 @@ TEST := test.sql_nas_table FILES := $(subst $(DIR)/,,$(wildcard $(DIR)/*.txt)) +# +# If we have rlm_sql_sqlite and sqlite3 +# +ifneq "$(findstring rlm_sql_sqlite,$(ALL_TGTS))" "" SQLITE3 := $(shell which sqlite3) -HAVE_RLM_SQLITE := $(shell grep -q 'define HAVE_SQLITE' $(top_srcdir)/src/modules/rlm_sql/drivers/rlm_sql_sqlite/config.h && echo yes) +endif -ifeq "$(findstring sqlite,$(SQLITE3)):$(HAVE_RLM_SQLITE)" "sqlite:yes" +ifneq "$(SQLITE3)" "" # # Run the full tests