Changeset 797 for trunk/zoo-project/zoo-kernel/configure.ac
- Timestamp:
- Jan 10, 2017, 5:21:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/configure.ac
r794 r797 422 422 if test "$PYTHON_PATH" = "yes" 423 423 then 424 # P HPwas not specified, so search within the current path424 # PYTHON was not specified, so search within the current path 425 425 PYTHONCFG_PATH=`which python${PYTHON_VERS}-config` 426 426 if test -z "${PYTHONCFG_PATH}" ; then … … 529 529 [PHP_PATH="$withval"; PHP_ENABLED="-DUSE_PHP"], [PHP_ENABLED=""]) 530 530 531 AC_ARG_WITH([php-version], 532 [AS_HELP_STRING([--with-phpvers=NUM], [To use a specific php version])], 533 [PHP_VERS="$withval"], [PHP_VERS=""]) 534 531 535 532 536 if test -z "$PHP_ENABLED" … … 535 539 else 536 540 PHPCONFIG="$PHP_PATH/bin/php-config" 537 PHP_FILE="service_internal_php.o" 541 if test "x$PHP_VERS" = "x7" 542 then 543 PHP_FILE="service_internal_php7.o" 544 else 545 PHP_FILE="service_internal_php.o" 546 fi 538 547 if test "$PHP_PATH" = "yes" 539 548 then … … 545 554 546 555 # Extract the linker and include flags 547 PHP_LDFLAGS="-L/`$PHPCONFIG --prefix`/lib -lphp5" 556 if test "x$PHP_VERS" = "x7" 557 then 558 PHP_LDFLAGS="-L/`$PHPCONFIG --prefix`/lib64 -lphp7" 559 else 560 PHP_LDFLAGS="-L/`$PHPCONFIG --prefix`/lib -lphp5" 561 fi 548 562 PHP_CPPFLAGS=`$PHPCONFIG --includes` 549 563 … … 558 572 LIBS="$PHP_LDFLAGS" 559 573 # Shouldn't we get php here rather than php5 :) ?? 560 AC_CHECK_LIB([php5], [call_user_function], [], [AC_MSG_ERROR([could not find libphp])], []) 574 if test "x$PHP_VERS" = "x7" 575 then 576 echo $LIBS 577 #AC_CHECK_LIB([php7], [call_user_function], [], [AC_MSG_ERROR([could not find libphp])], []) 578 else 579 AC_CHECK_LIB([php5], [call_user_function], [], [AC_MSG_ERROR([could not find libphp])], []) 580 fi 561 581 LIBS="$LIBS_SAVE" 562 582 AC_SUBST([PHP_CPPFLAGS])
Note: See TracChangeset
for help on using the changeset viewer.