--- scripts/phpize.m4.orig
+++ scripts/phpize.m4
@@ -51,7 +51,7 @@
 PHP_ARG_WITH([php-config],,
   [AS_HELP_STRING([--with-php-config=PATH],
     [Path to php-config [php-config]])],
-  [php-config],
+  [php-config-legacy],
   [no])
 
 dnl For BC.
