From a313b3e28cc42785365822519b25d6a87dfdf0c9 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 2 Mar 2016 14:00:48 +0100 Subject: Add enable-languages build option * acinclude.m4 (LIST_MEMBER): New macro. * configure.ac (enable-languages): New option. Add info output. * lang/Makefile.am: Only add enabled language subdirs. --- acinclude.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index cdfe6e43..575e526f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -58,3 +58,19 @@ AC_DEFUN([GNUPG_CHECK_VA_COPY], AC_MSG_RESULT($gnupg_cv_must_copy_va_byval) fi ]) + +dnl LIST_MEMBER() +dnl Check wether an element ist contained in a list. Set `found' to +dnl `1' if the element is found in the list, to `0' otherwise. +AC_DEFUN([LIST_MEMBER], +[ +name=$1 +list=$2 +found=0 + +for n in $list; do + if test "x$name" = "x$n"; then + found=1 + fi +done +]) -- cgit v1.2.3