Edit report at http://bugs.php.net/bug.php?id=29208&edit=1

 ID:                 29208
 Updated by:         j...@php.net
 Reported by:        khagiya1 at yahoo dot co dot jp
 Summary:            The variable name which ext_skel generates, and the
                     variable name which configu
-Status:             Open
+Status:             Bogus
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   linux
 PHP Version:        4.3.7
 Block user comment: N
 Private report:     N

 New Comment:

Incomprehensible report. Plus if I understood correctly, this works fine
nowadays..


Previous Comments:
------------------------------------------------------------------------
[2004-07-16 13:43:38] khagiya1 at yahoo dot co dot jp

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 this bug report at http://bugs.php.net/bug.php?id=29208&edit=1

Reply via email to