How can I pass configure options when installing php extensions with pecl?

There is a PHP extension to which I need to pass a configure option when I install it with a pecl command. I can't find a way to do this.

Of course I can install it manually, but I need it to be able to install it with single command - so that it is easily installable through puppet.

Any ideas?


To just accept the defaults, you may use this:

printf "\n" | pecl install memcache

Found here.


Based on http://old.nabble.com/unattended-PECL-installs--td29760522.html you could try:

yes no | pecl install memcache 

To answer no to every question, or:

printf "yes\n" | pecl install memcache 

To answer "yes" once.

Neither answer is very satisfying though.