Back from an automatic module-indicator macro to a module-indicator macro
[gnulib.git] / m4 / gnulib-common.m4
1 # gnulib-common.m4 serial 1
2 dnl Copyright (C) 2007 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 # gl_MODULE_INDICATOR([modulename])
8 # defines a C macro indicating the presence of the given module.
9 AC_DEFUN([gl_MODULE_INDICATOR],
10 [
11   AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1],
12     [Define to 1 when using the gnulib module ]$1[.])
13 ])