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 /ext/ext_skel | |
| 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 'ext/ext_skel')
| -rwxr-xr-x | ext/ext_skel | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/ext/ext_skel b/ext/ext_skel index cf5d22242c..7e5fb40501 100755 --- a/ext/ext_skel +++ b/ext/ext_skel @@ -44,27 +44,15 @@ dnl don't forget to call PHP_EXTENSION($extname) dnl If your extension references something external, use with: -AC_MSG_CHECKING(whether to include $extname support) -AC_MSG_WITH($extname, +PHP_ARG_WITH($extname, for $extname support, dnl Make sure that the comment is aligned: -[ --with-$extname Include $extname support.],[ - PHP_$EXTNAME=\$withval -],[ - PHP_$EXTNAME=no -]) -AC_MSG_RESULT(\$PHP_$EXTNAME) +[ --with-$extname Include $extname support]) dnl Otherwise use enable: -AC_MSG_CHECKING(whether to enable $extname) -AC_MSG_ENABLE($extname, +PHP_ARG_ENABLE($extname, whether to enable $extname support, dnl Make sure that the comment is aligned: -[ --enable-$extname Include $extname support.],[ - PHP_$EXTNAME=\$enableval -],[ - PHP_$EXTNAME=no -]) -AC_MSG_RESULT(\$PHP_$EXTNAME) +[ --enable-$extname Enable $extname support]) if test "\$PHP_$EXTNAME" != "no"; then dnl Action.. |
