summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-04-16 16:33:38 +0000
committerMoritz Schulte <mo@g10code.com>2003-04-16 16:33:38 +0000
commit8233e69d77aaecc0c2e63a8e5425f89aeaa873d9 (patch)
treea94c4a9b431acc50bb490eee1d7f7ffb25e072ca /acinclude.m4
parenta6d77dbb70ea40a8711e6bccac5677643d87f16b (diff)
downloadlibgcrypt-8233e69d77aaecc0c2e63a8e5425f89aeaa873d9.tar.gz
2003-04-16 Moritz Schulte <moritz@g10code.com>
* acinclude.m4 (LIST_MEMBER): New macro.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m416
1 files changed, 15 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 180ca9ec..ea14378b 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -783,4 +783,18 @@ AC_DEFUN(GPH_PROG_DB2ANY,
AM_CONDITIONAL(WORKING_DB2ANY, test "$working_db2any" != yes )
])
-
+dnl LIST_MEMER()
+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
+])