diff options
author | Sascha Schumann <sas@php.net> | 2000-03-27 23:33:38 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-03-27 23:33:38 +0000 |
commit | 1f822b98cee27997c440ffe8a9d416b914392ab9 (patch) | |
tree | e2b78f144d534d15d90b136924dd9b7a81cb0b3d /acinclude.m4 | |
parent | 0cc5c94b37668d225c48e715bf69d3a8309e16d5 (diff) | |
download | php-git-1f822b98cee27997c440ffe8a9d416b914392ab9.tar.gz |
Welcome PHP_ARG_ENABLE and PHP_ARG_WITH. They are there to replace the common
AC_MSG_CHECKING, AC_ARG_[ENABLE,WITH], AC_MSG_RESULT trio.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 0ee6b9e1d6..aba4a80df8 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2,6 +2,18 @@ dnl $Id$ dnl dnl This file contains local autoconf functions. +AC_DEFUN(PHP_ARG_WITH,[ +AC_MSG_CHECKING($2) +AC_ARG_WITH($1,[$3],PHP_[]translit($1,a-z-,A-Z_)=[$]withval,PHP_[]translit($1,a-z-,A-Z_)=ifelse($4,,no,$4)) +AC_MSG_RESULT([$]PHP_[]translit($1,a-z-,A-Z_)) +]) + +AC_DEFUN(PHP_ARG_ENABLE,[ +AC_MSG_CHECKING($2) +AC_ARG_ENABLE($1,[$3],PHP_[]translit($1,a-z-,A-Z_)=[$]enableval,PHP_[]translit($1,a-z-,A-Z_)=ifelse($4,,no,$4)) +AC_MSG_RESULT([$]PHP_[]translit($1,a-z-,A-Z_)) +]) + AC_DEFUN(PHP_MODULE_PTR,[ EXTRA_MODULE_PTRS="$EXTRA_MODULE_PTRS $1," ]) |