axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] branch master updated: Fail configure if pkg-config isn't found
Date Wed, 02 Sep 2020 04:48:46 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 89ea0ed  Fail configure if pkg-config isn't found
89ea0ed is described below

commit 89ea0ed9f6146ecc85d7928f1c0a7110da0bd6c2
Author: William Blough <devel@blough.us>
AuthorDate: Wed Sep 2 00:42:36 2020 -0400

    Fail configure if pkg-config isn't found
    
    Trying to run configure without pkg-config installed produces a
    cryptic error due to the PKG_CHECK_MODULES macro not being available.
    Add a check for pkg-config and fail with a clearer error message if it
    isn't installed.
    
    Fixes: AXIS2C-1638
---
 axiom/configure.ac        | 2 ++
 configure.ac              | 2 ++
 neethi/configure.ac       | 2 ++
 tools/tcpmon/configure.ac | 1 +
 4 files changed, 7 insertions(+)

diff --git a/axiom/configure.ac b/axiom/configure.ac
index a952199..8ffa13c 100644
--- a/axiom/configure.ac
+++ b/axiom/configure.ac
@@ -66,6 +66,8 @@ if test "$GCC" = "yes"; then
     CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration "
 fi
 
+AC_PATH_TOOL(PKGCONFIG, pkg-config)
+
 AC_MSG_CHECKING(whether to set -Werror)
 AC_ARG_ENABLE(werror, [  --disable-werror  do not treat warnings as errors during build],
 [ case "${enableval}" in
diff --git a/configure.ac b/configure.ac
index 057c57e..0557d76 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,6 +116,8 @@ dnl AC_FUNC_MALLOC
 dnl AC_FUNC_REALLOC
 #AC_CHECK_FUNCS([memmove])
 
+AC_PATH_TOOL(PKGCONFIG, pkg-config)
+
 AC_MSG_CHECKING(whether to use archive)
 AC_ARG_WITH(archive,
 [  --with-archive[=PATH]      Find the zlib header files in 'PATH'.
diff --git a/neethi/configure.ac b/neethi/configure.ac
index abe069a..c093b7f 100644
--- a/neethi/configure.ac
+++ b/neethi/configure.ac
@@ -50,6 +50,8 @@ if test "$GCC" = "yes"; then
     CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration "
 fi
 
+AC_PATH_TOOL(PKGCONFIG, pkg-config)
+
 AC_MSG_CHECKING(whether to set -Werror)
 AC_ARG_ENABLE(werror, [  --disable-werror        do not treat warnings as errors during build],
 [ case "${enableval}" in
diff --git a/tools/tcpmon/configure.ac b/tools/tcpmon/configure.ac
index d5987c5..151f1c9 100644
--- a/tools/tcpmon/configure.ac
+++ b/tools/tcpmon/configure.ac
@@ -52,6 +52,7 @@ AC_CHECK_FUNCS([memmove])
 AC_CHECK_LIB(z, inflate)
 dnl AC_CHECK_LIB(cutest, CuTestInit)
 
+AC_PATH_TOOL(PKGCONFIG, pkg-config)
 
 AC_MSG_CHECKING(whether to build tests)
 AC_ARG_ENABLE(tests,


Mime
View raw message