File: acinclude.m4

package info (click to toggle)
swish-e 2.4.3-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,308 kB
  • ctags: 7,642
  • sloc: ansic: 47,402; sh: 8,508; perl: 5,281; makefile: 723; xml: 9
file content (17 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ENABLE_DEFINE( variable, define variable, help message)
# Provides an --enable-foo option and a way to set a acconfig.h define switch
# e.g. ENABLE_DEFINE([memdebug], [MEM_DEBUG], [Memory Debugging])
#----------------------------------------------------------------

AC_DEFUN([ENABLE_DEFINE],
        [ AC_MSG_CHECKING([config option $1 for setting $2])
        AC_ARG_ENABLE([$1],
                AC_HELP_STRING([--enable-$1], [$3]),
                ,
                enableval=no)
        AC_MSG_RESULT($enableval)
        if test x"$enableval" != xno ; then
                AC_DEFINE([$2], 1, [$3])
        fi])