From:             khagiya1 at yahoo dot co dot jp
Operating system: linux
PHP version:      4.3.7
PHP Bug Type:     *Configuration Issues
Bug description:  The variable name which ext_skel generates, and the variable name 
which configu

Description:
------------
The form of an extended module is created by ext_skel.
(_ is contained in that case.)
ex. ext_skel --extname=aaa_bbb_ccc

// config.m4 generated
PHP_ARG_ENABLE(aaa_bbb_ccc, whether to enable aaa_bbb_ccc support,
[  --enable-aaa_bbb_ccc           Enable aaa_bbb_ccc support])
if test "$PHP_AAA_BBB_CCC" != "no"; then
  PHP_NEW_EXTENSION(aaa_bbb_ccc, aaa_bbb_ccc.c, $ext_shared)
fi

I want to take in on a PHP itself.(It isn't extension module, such as .so
and .dll.)
I did autoconf by the root directory.

// configure generated
...
echo "$as_me:$LINENO: checking whether to enable aaa_bbb_ccc support" >&5
echo $ECHO_N "checking whether to enable aaa_bbb_ccc support... $ECHO_C"
>&6
# Check whether --enable-aaa_bbb_ccc or --disable-aaa_bbb_ccc was given.
if test "${enable_aaa_bbb_ccc+set}" = set; then
  enableval="$enable_aaa_bbb_ccc"
  PHP_AAABBBCCC=$enableval
else

  PHP_AAABBBCCC=no
...

Although we expected that PHP_AAA_BBB_CCC was outputted, we are outputted
with PHP_AAABBBCCC.
It will be linked even if it doesn't specify an option(
--enable-aaa_bbb_ccc ) to be configure.

It was avoidable when performing it as follows.
[[patch]]

Index: aclocal.m4
===================================================================
RCS file: /home/cvsroot/Framework/php/php-4.3.7/aclocal.m4,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 aclocal.m4
*** aclocal.m4  14 Jun 2004 01:09:21 -0000      1.1.1.1
--- aclocal.m4  16 Jul 2004 11:17:29 -0000
***************
*** 512,518 ****
  dnl the PHP_ARG_ANALYZE_EX.
  dnl
  AC_DEFUN([PHP_ARG_ENABLE],[
!
PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z-,A-Z_),[ifelse($
5,,yes,$5)])
  ])

  AC_DEFUN([PHP_REAL_ARG_ENABLE],[
--- 512,518 ----
  dnl the PHP_ARG_ANALYZE_EX.
  dnl
  AC_DEFUN([PHP_ARG_ENABLE],[
!
PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z_-,A-Z__),[ifelse
($5,,yes,$5)])
  ])

  AC_DEFUN([PHP_REAL_ARG_ENABLE],[


-- 
Edit bug report at http://bugs.php.net/?id=29208&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29208&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29208&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29208&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29208&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29208&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29208&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29208&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29208&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29208&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29208&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29208&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29208&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29208&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29208&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29208&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29208&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29208&r=float

Reply via email to