1 AC_DEFUN([DOLDA_AC_GROUP],
2 [AC_MSG_NOTICE([ -- $1 -- ])])
4 m4_defun([_DOLDA_PKG_LOOP],[dnl
5 if test -z "$[]$1"; then
8 ifelse(m4_eval([$# > 2]), 1, [_DOLDA_PKG_LOOP($1, m4_shift(m4_shift($@)))])
11 # DOLDA_PKG(VARIABLE-NAME, COMMANDS...)
13 # Evaluate COMMANDS in sequence as long as ${VARIABLE-NAME} is empty
15 AC_DEFUN([DOLDA_PKG],[dnl
17 _DOLDA_PKG_LOOP($1, m4_shift($@))
18 if test "$[]$1" != no; then $1=yes; fi
21 # DOLDA_CHECK_HEADER(FILE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND,
24 # Augmented version of AC_CHECK_HEADER that overrides CPPFLAGS
26 AC_DEFUN([DOLDA_CHECK_HEADER],[dnl
28 ifelse([$4], , , [CPPFLAGS="$CPPFLAGS $4"])
29 AC_CHECK_HEADER($1, $2, $3)
33 # DOLDA_CHECK_FUNC(FUNCTION, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND,
34 # [EXTRA-CFLAGS], [EXTRA-LDFLAGS])
36 # Augmented version of AC_CHECK_HEADER that overrides CPPFLAGS and
39 AC_DEFUN([DOLDA_CHECK_FUNC],[dnl
42 ifelse([$4], , , [CPPFLAGS="$CPPFLAGS $4"])
43 ifelse([$5], , , [LDFLAGS="$LDFLAGS $5"])
44 AC_CHECK_FUNC($1, $2, $3)
49 # DOLDA_ENABLE(NAME, HELP, DEFAULT, DEPS)
51 # DEPS is a space-separated listing of required variables that must be
54 AC_DEFUN([DOLDA_ENABLE],[dnl
55 AC_ARG_ENABLE([$1], [$2])
56 if test "[$enable_][$1]" = yes; then
58 if test "${!var}" != yes; then
59 AC_MSG_ERROR([*** cannot enable $1 without $var])
62 elif test -z "[$enable_][$1]"; then
63 ifelse([$3], yes, [dnl
66 if test "${!var}" != yes; then