]> granicus.if.org Git - php/commitdiff
Fix bug #72443: Generate enabled extension
authorPeter Kokot <peterkokot@gmail.com>
Sun, 5 Aug 2018 23:22:17 +0000 (01:22 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 5 Aug 2018 23:22:17 +0000 (01:22 +0200)
The PHP extension generator script now generates enabled extension with
less required steps for using the newly generated files.

ext/ext_skel

index f5b9b2578da575d66f3e0eb26828f5bcf119e22c..63563e7f022d564541b6b88fbe7b2b2816af8de8 100755 (executable)
@@ -120,9 +120,9 @@ dnl [  --with-$extname             Include $extname support])
 
 dnl Otherwise use enable:
 
-dnl PHP_ARG_ENABLE($extname, whether to enable $extname support,
+PHP_ARG_ENABLE($extname, whether to enable $extname support,
 dnl Make sure that the comment is aligned:
-dnl [  --enable-$extname           Enable $extname support])
+[  --enable-$extname           Enable $extname support])
 
 if test "\$PHP_$EXTNAME" != "no"; then
   dnl Write more examples of tests here...
@@ -179,7 +179,7 @@ cat >config.w32 <<eof
 // ARG_WITH("$extname", "for $extname support", "no");
 
 // Otherwise, use ARG_ENABLE
-// ARG_ENABLE("$extname", "enable $extname support", "no");
+ARG_ENABLE("$extname", "enable $extname support", "no");
 
 if (PHP_$EXTNAME != "no") {
        EXTENSION("$extname", "$extname.c", PHP_EXTNAME_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");