From patchwork Sun May 3 14:23:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harald Welte X-Patchwork-Id: 467389 X-Patchwork-Delegate: regit@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0E64C1402A0 for ; Mon, 4 May 2015 00:41:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751156AbbECOlV (ORCPT ); Sun, 3 May 2015 10:41:21 -0400 Received: from [213.95.27.120] ([213.95.27.120]:45873 "EHLO ganesha.gnumonks.org" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750942AbbECOlV (ORCPT ); Sun, 3 May 2015 10:41:21 -0400 X-Greylist: delayed 957 seconds by postgrey-1.27 at vger.kernel.org; Sun, 03 May 2015 10:41:20 EDT Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.72) (envelope-from ) id 1Youok-0007iA-SF; Sun, 03 May 2015 16:24:26 +0200 Received: from laforge by localhost.localdomain with local (Exim 4.84) (envelope-from ) id 1YouoD-0003JW-Gl; Sun, 03 May 2015 16:23:53 +0200 From: Harald Welte To: netfilter-devel@vger.kernel.org Cc: Harald Welte Subject: [PATCH] configure.ac: Add --without-{mysql,pgsql} Date: Sun, 3 May 2015 16:23:52 +0200 Message-Id: <1430663032-12704-1-git-send-email-laforge@gnumonks.org> X-Mailer: git-send-email 2.1.4 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org In some cases you may not want to build a certain output plugin, even if the headers/libraries actually exist on the build host. --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c814bec..1a7f8de 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,10 @@ if [! test "x$enable_nfacct" = "xyes"]; then enable_nfacct="no" fi -CT_CHECK_POSTGRES_DB() +AC_ARG_WITH([pgsql], AS_HELP_STRING([--without-pgsql], [Build without postgresql output plugin [default=test]])) +AS_IF([test "x$with_pgsql" != "xno"], [ + CT_CHECK_POSTGRES_DB() +]) AM_CONDITIONAL(HAVE_PGSQL, test "x$PQLIBPATH" != "x") if test "x$PQLIBPATH" != "x"; then enable_pgsql="yes" @@ -93,7 +96,10 @@ else enable_pgsql="no" fi -CT_CHECK_MYSQL_DB() +AC_ARG_WITH([mysql], AS_HELP_STRING([--without-mysql], [Build without mysql output plugin [default=test]])) +AS_IF([test "x$with_mysql" != "xno"], [ + CT_CHECK_MYSQL_DB() +]) AM_CONDITIONAL(HAVE_MYSQL, test "x$MYSQL_LIB" != "x") if test "x$MYSQL_LIB" != "x"; then enable_mysql="yes" @@ -101,6 +107,7 @@ else enable_mysql="no" fi + AC_ARG_WITH([sqlite], AS_HELP_STRING([--without-sqlite], [Build without SQLITE3 output plugin [default=test]])) AS_IF([test "x$with_sqlite" != "xno"], [ PKG_CHECK_MODULES([libsqlite3], [sqlite3], [], [:])