File tree 6 files changed +17
-18
lines changed
6 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -2538,12 +2538,13 @@ AS_VAR_POPDEF([php_var])
2538
2538
] )
2539
2539
2540
2540
dnl
2541
- dnl PHP_SET_LIBS_PRIVATE
2541
+ dnl PHP_PKG_CONFIG
2542
2542
dnl
2543
- dnl Get a list of all external libraries that were linked to PHP. For using in
2544
- dnl templates, such as php.pc.in.
2543
+ dnl Prepare and substitute variables needed in pkg-config .pc files, such as
2544
+ dnl php.pc.in. For example, a list of all external libraries that were linked to
2545
+ dnl PHP.
2545
2546
dnl
2546
- AC_DEFUN ( [ PHP_SET_LIBS_PRIVATE ] ,
2547
+ AC_DEFUN ( [ PHP_PKG_CONFIG ] ,
2547
2548
[ PHP_LIBS_PRIVATE=$EXTRA_LIBS
2548
2549
AS_VAR_SET_IF ( [ ZEND_EXTRA_LIBS] ,
2549
2550
[ AS_VAR_APPEND ( [ PHP_LIBS_PRIVATE] , [ " $ZEND_EXTRA_LIBS"] ) ] )
Original file line number Diff line number Diff line change @@ -1328,7 +1328,7 @@ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
1328
1328
EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
1329
1329
unset LDFLAGS
1330
1330
1331
- PHP_SET_LIBS_PRIVATE
1331
+ PHP_PKG_CONFIG
1332
1332
1333
1333
AC_ARG_PROGRAM
1334
1334
Original file line number Diff line number Diff line change 1
1
install-embed :
2
2
@echo " Installing PHP Embed SAPI: $( INSTALL_ROOT) $( libdir) "
3
- @$(mkinstalldirs ) $(INSTALL_ROOT )$(libdir ) /pkgconfig
4
- @$(INSTALL_DATA ) sapi/embed/php-embed.pc $(INSTALL_ROOT )$(libdir ) /pkgconfig/$(program_prefix ) php-embed$(program_suffix ) .pc
3
+ @$(mkinstalldirs ) $(INSTALL_ROOT )$(orig_libdir ) /pkgconfig
4
+ @$(INSTALL_DATA ) sapi/embed/php-embed.pc $(INSTALL_ROOT )$(orig_libdir ) /pkgconfig/$(program_prefix ) php-embed$(program_suffix ) .pc
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ exec_prefix=@exec_prefix@
14
14
includedir=@includedir@/php
15
15
libdir=@exec_prefix@/lib
16
16
# The extension_dir PHP INI directive absolute path.
17
- extensiondir=@PHP_EXTENSION_DIR @
17
+ extensiondir=@EXPANDED_EXTENSION_DIR @
18
18
# PHP version as integer.
19
19
php_vernum=@PHP_VERSION_ID@
20
20
# The path where to scan for additional INI configuration files.
21
- php_inidir=@PHP_CONFIG_FILE_SCAN_DIR @
21
+ php_inidir=@EXPANDED_PHP_CONFIG_FILE_SCAN_DIR @
22
22
# The path in which to look for php.ini.
23
- php_inipath=@PHP_CONFIG_FILE_PATH @
23
+ php_inipath=@EXPANDED_PHP_CONFIG_FILE_PATH @
24
24
# Whether PHP is built in debug mode (yes) or not (no).
25
25
php_debug=@ZEND_DEBUG@
26
26
# Whether PHP is built with thread safety (yes) or not (no).
@@ -31,7 +31,6 @@ Description: A lightweight SAPI to embed PHP into application using C bindings
31
31
URL: https://www.php.net
32
32
License: PHP
33
33
Version: @PHP_VERSION@
34
- Cflags.private: @PHP_CFLAGS_PRIVATE@
35
34
Cflags: -I${includedir} -I${includedir}/main -I${includedir}/TSRM -I${includedir}/Zend -I${includedir}/ext -I${includedir}/ext/date/lib
36
35
Libs.private: @PHP_LIBS_PRIVATE@
37
36
Libs: -L${libdir} -lphp
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ install-programs: $(builddir)/phpize $(builddir)/php-config
46
46
echo " page: $( program_prefix) $$ {page}$( program_suffix) .1" ; \
47
47
$(INSTALL_DATA ) $(builddir ) /man1/$$ {page}.1 $(INSTALL_ROOT )$(mandir ) /man1/$(program_prefix ) $$ {page}$(program_suffix ) .1; \
48
48
done
49
- @echo " Installing pkgconf .pc file: $( INSTALL_ROOT) $( libdir ) /pkgconfig/php.pc"
50
- @$(mkinstalldirs ) $(INSTALL_ROOT )$(libdir ) /pkgconfig
51
- @$(INSTALL_DATA ) $(builddir ) /php.pc $(INSTALL_ROOT )$(libdir ) /pkgconfig/$(program_prefix ) php$(program_suffix ) .pc
49
+ @echo " Installing pkgconf .pc file: $( INSTALL_ROOT) $( orig_libdir ) /pkgconfig/php.pc"
50
+ @$(mkinstalldirs ) $(INSTALL_ROOT )$(orig_libdir ) /pkgconfig
51
+ @$(INSTALL_DATA ) $(builddir ) /php.pc $(INSTALL_ROOT )$(orig_libdir ) /pkgconfig/$(program_prefix ) php$(program_suffix ) .pc
52
52
53
53
$(builddir ) /phpize : $(srcdir ) /phpize.in $(top_builddir ) /config.status
54
54
(CONFIG_FILES=$@ CONFIG_HEADERS= $( top_builddir) /config.status)
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ exec_prefix=@exec_prefix@
14
14
includedir=@includedir@/php
15
15
libdir=@exec_prefix@/lib
16
16
# The extension_dir PHP INI directive absolute path.
17
- extensiondir=@PHP_EXTENSION_DIR @
17
+ extensiondir=@EXPANDED_EXTENSION_DIR @
18
18
# PHP version as integer.
19
19
php_vernum=@PHP_VERSION_ID@
20
20
# The path where to scan for additional INI configuration files.
21
- php_inidir=@PHP_CONFIG_FILE_SCAN_DIR @
21
+ php_inidir=@EXPANDED_PHP_CONFIG_FILE_SCAN_DIR @
22
22
# The path in which to look for php.ini.
23
- php_inipath=@PHP_CONFIG_FILE_PATH @
23
+ php_inipath=@EXPANDED_PHP_CONFIG_FILE_PATH @
24
24
# Whether PHP is built in debug mode (yes) or not (no).
25
25
php_debug=@ZEND_DEBUG@
26
26
# Whether PHP is built with thread safety (yes) or not (no).
@@ -31,7 +31,6 @@ Description: Build extension for a PHP general-purpose scripting language
31
31
URL: https://www.php.net
32
32
License: PHP
33
33
Version: @PHP_VERSION@
34
- Cflags.private: @PHP_CFLAGS_PRIVATE@
35
34
CFlags: -I${includedir} -I${includedir}/main -I${includedir}/TSRM -I${includedir}/Zend -I${includedir}/ext -I${includedir}/ext/date/lib
36
35
Libs.private: @PHP_LIBS_PRIVATE@
37
36
Libs:
You can’t perform that action at this time.
0 commit comments