Hello Lyre, * Lyre wrote on Thu, Feb 10, 2011 at 04:39:41AM CET: > php-config --configure-options | sed -n > 's|.*--with-config-file-scan-dir=\([^ ]*\).*|\1|p' > > It works on shell, and outputs "/etc/php5/conf.d/" on opensuse. > > And I tired it in configure.ac, as following: > > PHPCDIR=`php-config --configure-options | sed -n > 's|.*--with-config-file-scan-dir=\([^ ]*\).*|\1|p'`
> After subsitution in Makefile, the PHPCDIR is empty, meanwhile PHPINC get > the correct result. Probably, m4 eat your [ ] as they are also m4 quotes. To safely protect them from m4, replace them with @<:@ and @:>@, respectively. See "info Autoconf Quadrigraphs". Cheers, Ralf _______________________________________________ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf