diff options
author | Moritz Schulte <mo@g10code.com> | 2003-04-16 16:33:38 +0000 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2003-04-16 16:33:38 +0000 |
commit | 8233e69d77aaecc0c2e63a8e5425f89aeaa873d9 (patch) | |
tree | a94c4a9b431acc50bb490eee1d7f7ffb25e072ca /acinclude.m4 | |
parent | a6d77dbb70ea40a8711e6bccac5677643d87f16b (diff) | |
download | libgcrypt-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.m4 | 16 |
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 +]) |