Skip to content

Commit c9ee822

Browse files
hughmcmasternikic
authored andcommitted
Always use pkg-config from the host architecture
1 parent b1c5f7b commit c9ee822

File tree

7 files changed

+1
-17
lines changed

7 files changed

+1
-17
lines changed

ext/ffi/config.m4

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ if test "$PHP_FFI" != "no"; then
1010
FFI_INCDIR=$PHP_FFI/include
1111
FFI_LIBDIR=$PHP_FFI
1212
else
13-
dnl First try to find pkg-config
14-
if test -z "$PKG_CONFIG"; then
15-
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
16-
fi
17-
18-
dnl If pkg-config is installed, try using it
1913
if test -x "$PKG_CONFIG" && "$PKG_CONFIG" --exists libffi; then
2014
FFI_VER=`"$PKG_CONFIG" --modversion libffi`
2115
FFI_INCDIR=`"$PKG_CONFIG" --variable=includedir libffi`

ext/odbc/config.m4

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,6 @@ PHP_ARG_WITH([iodbc],,
327327

328328
AC_MSG_CHECKING(for iODBC support)
329329
if test "$PHP_IODBC" != "no"; then
330-
if test -z "$PKG_CONFIG"; then
331-
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
332-
fi
333330
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then
334331
PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR)
335332
ODBC_TYPE=iodbc

ext/skeleton/config.m4.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ if test "$PHP_%EXTNAMECAPS%" != "no"; then
2222
dnl Write more examples of tests here...
2323

2424
dnl # get library FOO build options from pkg-config output
25-
dnl AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
2625
dnl AC_MSG_CHECKING(for libfoo)
2726
dnl if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists foo; then
2827
dnl if $PKG_CONFIG foo --atleast-version 1.2.3; then

ext/sodium/config.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if test "$PHP_SODIUM" != "no"; then
99
SEARCH_PATH="/usr/local /usr" # you might want to change this
1010
SEARCH_FOR="/include/sodium.h" # you most likely want to change this
1111

12-
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1312
AC_MSG_CHECKING([for libsodium])
1413

1514
dnl user provided location

ext/zip/config.m4

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ if test "$PHP_ZIP" != "no"; then
1717
PHP_ZIP_SOURCES="php_zip.c zip_stream.c"
1818

1919
if test "$PHP_LIBZIP" != "no"; then
20-
21-
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
22-
2320
AC_MSG_CHECKING(for libzip)
2421
if test -r $PHP_LIBZIP/include/zip.h; then
2522
LIBZIP_CFLAGS="-I$PHP_LIBZIP/include"

sapi/fpm/config.m4

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,6 @@ if test "$PHP_FPM" != "no"; then
591591
[no])
592592

593593
if test "$PHP_FPM_SYSTEMD" != "no" ; then
594-
if test -z "$PKG_CONFIG"; then
595-
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
596-
fi
597594
unset SYSTEMD_LIBS
598595
unset SYSTEMD_INCS
599596

scripts/phpize.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ test -z "$CFLAGS" && auto_cflags=1
3333
abs_srcdir=`(cd $srcdir && pwd)`
3434
abs_builddir=`pwd`
3535

36+
PKG_PROG_PKG_CONFIG
3637
AC_PROG_CC([cc gcc])
3738
PHP_DETECT_ICC
3839
PHP_DETECT_SUNCC

0 commit comments

Comments
 (0)