]> granicus.if.org Git - php/commitdiff
Always use pkg-config from the host architecture
authorHugh McMaster <hugh.mcmaster@outlook.com>
Wed, 24 Apr 2019 11:39:17 +0000 (21:39 +1000)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 29 Apr 2019 12:16:16 +0000 (14:16 +0200)
ext/ffi/config.m4
ext/odbc/config.m4
ext/skeleton/config.m4.in
ext/sodium/config.m4
ext/zip/config.m4
sapi/fpm/config.m4
scripts/phpize.m4

index 2619e66e57a66fb16b9f5b3623a87f5394d3ff94..76150dcffb938ef0ca336da16ca3303b6460b6ea 100644 (file)
@@ -10,12 +10,6 @@ if test "$PHP_FFI" != "no"; then
     FFI_INCDIR=$PHP_FFI/include
     FFI_LIBDIR=$PHP_FFI
   else
-    dnl First try to find pkg-config
-    if test -z "$PKG_CONFIG"; then
-      AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-    fi
-
-    dnl If pkg-config is installed, try using it
     if test -x "$PKG_CONFIG" && "$PKG_CONFIG" --exists libffi; then
       FFI_VER=`"$PKG_CONFIG" --modversion libffi`
       FFI_INCDIR=`"$PKG_CONFIG" --variable=includedir libffi`
index 31aa1e3b8b379ae2345bb4246ec0aaaf13190b7d..6ded84c5abd966b5c44c6ed267a6bfcb77a1459f 100644 (file)
@@ -327,9 +327,6 @@ PHP_ARG_WITH([iodbc],,
 
   AC_MSG_CHECKING(for iODBC support)
   if test "$PHP_IODBC" != "no"; then
-    if test -z "$PKG_CONFIG"; then
-      AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-    fi
     if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then
       PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR)
       ODBC_TYPE=iodbc
index 0911c60aa066fdd8cf3fd61b19647a4c7b9dc9c8..041c28eb66a87acb74baaee63d396b2ff323f0ed 100644 (file)
@@ -22,7 +22,6 @@ if test "$PHP_%EXTNAMECAPS%" != "no"; then
   dnl Write more examples of tests here...
 
   dnl # get library FOO build options from pkg-config output
-  dnl AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
   dnl AC_MSG_CHECKING(for libfoo)
   dnl if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists foo; then
   dnl   if $PKG_CONFIG foo --atleast-version 1.2.3; then
index 42da137b81c16681a10e385dee70b8a803579f04..aed0aedec3019380cfc6bbd3caf7a739ec09a2c9 100644 (file)
@@ -9,7 +9,6 @@ if test "$PHP_SODIUM" != "no"; then
   SEARCH_PATH="/usr/local /usr"     # you might want to change this
   SEARCH_FOR="/include/sodium.h"  # you most likely want to change this
 
-  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
   AC_MSG_CHECKING([for libsodium])
 
   dnl user provided location
index c1c8cbc18e5d0fbcab4874c928759fa404be861f..b1f87a010120a8a274f8e66b8086ace084305ba7 100644 (file)
@@ -17,9 +17,6 @@ if test "$PHP_ZIP" != "no"; then
   PHP_ZIP_SOURCES="php_zip.c zip_stream.c"
 
   if test "$PHP_LIBZIP" != "no"; then
-
-    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-
     AC_MSG_CHECKING(for libzip)
     if test -r $PHP_LIBZIP/include/zip.h; then
       LIBZIP_CFLAGS="-I$PHP_LIBZIP/include"
index 2aed96046c9ee93953363219d9829f4b0f8fe4ed..3c0a7f3d5dd812d5bff69b45a9dda54913c85ca6 100644 (file)
@@ -591,9 +591,6 @@ if test "$PHP_FPM" != "no"; then
     [no])
 
   if test "$PHP_FPM_SYSTEMD" != "no" ; then
-    if test -z "$PKG_CONFIG"; then
-      AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-    fi
     unset SYSTEMD_LIBS
     unset SYSTEMD_INCS
 
index 61af6c2b74f90f5840c7c10c59777682e583cfdf..bcd66df6f33ca7ce5892a4e5dd92c5249ab8ab09 100644 (file)
@@ -33,6 +33,7 @@ test -z "$CFLAGS" && auto_cflags=1
 abs_srcdir=`(cd $srcdir && pwd)`
 abs_builddir=`pwd`
 
+PKG_PROG_PKG_CONFIG
 AC_PROG_CC([cc gcc])
 PHP_DETECT_ICC
 PHP_DETECT_SUNCC