diff options
Diffstat (limited to 'php')
-rw-r--r-- | php/config.m4.in (renamed from php/config.m4) | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/php/config.m4 b/php/config.m4.in index 1a50fa4..c26d82b 100644 --- a/php/config.m4 +++ b/php/config.m4.in @@ -1,4 +1,4 @@ -dnl remctl PECL extension for PHP configuration +dnl remctl PECL extension for PHP configuration -*- autoconf -*- dnl dnl Provides additional configuration hooks for the PHP module build system. dnl This file is used by the phpize frameowrk. @@ -12,11 +12,9 @@ dnl See LICENSE for licensing terms. PHP_ARG_ENABLE([remctl], [whether to enable remctl PHP extension], [AC_HELP_STRING([--enable-remctl], [Enable recmtl PHP extension])], [yes]) -dnl The escaping on PHP_ADD_INCLUDE and PHP_ADD_LIBPATH seems to work, and -dnl seems to be the only thing that works, but it makes me nervous. Needs -dnl more testing and maybe a better approach that will still work for builddir -dnl != srcdir builds. +dnl The @...@ variables are substituted by the top-level configure. Yes, this +dnl is a little odd, but it seems to work. AS_IF([test "$PHP_REMCTL" != no], [PHP_NEW_EXTENSION([remctl], [php_remctl.c], [$ext_shared]) - PHP_ADD_INCLUDE([\${abs_top_srcdir}/..]) - LDFLAGS="$LDFLAGS -L\${top_builddir}/../client/.libs -lremctl"]) + PHP_ADD_INCLUDE([@abs_top_srcdir@]) + LDFLAGS="$LDFLAGS -L@abs_top_builddir@/client/.libs -lremctl"]) |