Last change
on this file was
19170,
checked in by westram, 2 years ago
|
- sina source
- unpack + remove tarball
- no longer ignore sina builddir.
|
File size:
797 bytes
|
Line | |
---|
1 | # version of AX_ARG_ENABLE with less boiler plate |
---|
2 | |
---|
3 | AC_DEFUN([AX_ARG_ENABLE], |
---|
4 | [ |
---|
5 | _AX_ARG_ENABLE([$1],[m4_translit([[$1]], [_], [-])],[$2],[$3],[$4],m4_default([$5], [no])) |
---|
6 | ]) |
---|
7 | |
---|
8 | AC_DEFUN([_AX_ARG_ENABLE], |
---|
9 | [ |
---|
10 | AC_ARG_ENABLE([$1], AS_HELP_STRING([m4_case([$6], |
---|
11 | [no],[--enable-$2], |
---|
12 | [yes],[--disable-$2])], |
---|
13 | [$3]), |
---|
14 | AS_CASE(["$enableval"], |
---|
15 | [yes|no], [enable_$1="$enableval"], |
---|
16 | AC_MSG_ERROR([bad value ${enableval} for $2]) |
---|
17 | ), |
---|
18 | [enable_$1="$6"] |
---|
19 | ) |
---|
20 | AS_CASE([$enable_$1], [yes], [$4], [no], [$5]) |
---|
21 | AM_CONDITIONAL(m4_translit([[enable_$1]],[a-z],[A-Z]), [test x"$enable_$1" = "xyes"]) |
---|
22 | ]) |
---|
23 | |
---|
24 | AC_DEFUN([AX_ARG_DISABLE],[AX_ARG_ENABLE([$1],[$2],[$3],[$4],[yes])]) |
---|
Note: See
TracBrowser
for help on using the repository browser.