Skip to content

Commit 49b9b5d

Browse files
committed
Allow overriding pkg-config
1 parent b5c3bd9 commit 49b9b5d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

configure.ac

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,16 @@ ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2626

2727
AC_CANONICAL_HOST
2828
AC_PROG_CC
29-
PKG_PROG_PKG_CONFIG
3029
AC_C_BIGENDIAN
3130

31+
AC_ARG_WITH([pkg-config],
32+
AS_HELP_STRING([--with-pkg-config=PATH],
33+
[Specify the pkg-config program to use (default: pkg-config)]),
34+
[PKG_CONFIG="$withval"],
35+
[PKG_CONFIG="pkg-config"])
36+
AC_SUBST([PKG_CONFIG])
37+
PKG_PROG_PKG_CONFIG
38+
3239
# we need to set our soversion based on openssl's soversion to avoid
3340
# issues with applications linking to new openssl, old libp11, and vice versa
3441
opensslversion="$( \

0 commit comments

Comments
 (0)