Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 526158
Collapse All | Expand All

(-)a/configure.ac (-5 / +9 lines)
Lines 153-165 Link Here
153
  fi
153
  fi
154
fi
154
fi
155
155
156
AC_ARG_WITH([php-config],
157
    AS_HELP_STRING([--with-php-config=path], [Custom path to php-config]))
158
AS_IF([test "x$with_php_config" != "x"],
159
  [AC_CHECK_PROG(PHP_CONFIG, php-config, ["$with_php_config/php-config"], [], [$with_php_config])],
160
  [AC_CHECK_PROG(PHP_CONFIG, php-config, php-config)])
156
161
157
AC_CHECK_PROG(PHP_CONFIG, php-config, php-config)
158
if test "X$PHP_CONFIG" != X ; then
162
if test "X$PHP_CONFIG" != X ; then
159
163
160
  PHP_VERSION=`$PHP_CONFIG --version`
164
  PHP_VERSION=`${PHP_CONFIG} --version`
161
  PHP_INCLUDES=`$PHP_CONFIG --includes`
165
  PHP_INCLUDES=`${PHP_CONFIG} --includes`
162
  PHP_EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
166
  PHP_EXTENSION_DIR=`${PHP_CONFIG} --extension-dir`
163
167
164
  if test $PHP_VERSION '>' 5.0.0; then
168
  if test $PHP_VERSION '>' 5.0.0; then
165
    PHP_SWIG="-php5"
169
    PHP_SWIG="-php5"
Lines 445-451 Link Here
445
  with_php=yes
449
  with_php=yes
446
fi
450
fi
447
451
448
PHP_VERSION=`php-config --version 2>/dev/null`
452
PHP_VERSION=`${PHP_CONFIG} --version 2>/dev/null`
449
if test "X$PHP_VERSION" != X; then
453
if test "X$PHP_VERSION" != X; then
450
  languages_available="$languages_available php($PHP_VERSION)"
454
  languages_available="$languages_available php($PHP_VERSION)"
451
  if test $with_php = yes; then
455
  if test $with_php = yes; then

Return to bug 526158