1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
Description: Allow cross building
Author: Helmut Grohne <helmut@subdivi.de>
Origin: Debian
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958485
Forwarded: https://github.com/OpenSMTPD/OpenSMTPD-extras/pull/66
Last-Update: 2020-05-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: opensmtpd-extras/configure.ac
===================================================================
--- opensmtpd-extras.orig/configure.ac 2020-05-25 12:38:03.770277177 -0400
+++ opensmtpd-extras/configure.ac 2020-05-25 12:38:03.766277533 -0400
@@ -1357,6 +1357,8 @@
]
)
+PKG_PROG_PKG_CONFIG
+
#
# check for python
#
@@ -1425,12 +1427,9 @@
LUA_LDFLAGS=
if test x"${need_lua}" = x"yes"; then
LUA_CONFIG=
- for path in /usr/local/bin /usr/bin; do
- if test -f ${path}/pkg-config; then
- LUA_CONFIG=${path}/pkg-config
- break
- fi
- done
+ if test "x$PKG_CONFIG" != x; then
+ LUA_CONFIG=$PKG_CONFIG
+ fi
# if lua provided --with-lua, override
if test x"${with_lua}" != x""; then
@@ -1471,12 +1470,9 @@
REDIS_LDFLAGS=
if test x"${need_redis}" = x"yes"; then
REDIS_CONFIG=
- for path in /usr/local/bin /usr/bin; do
- if test -f ${path}/pkg-config; then
- REDIS_CONFIG=${path}/pkg-config
- break
- fi
- done
+ if test "x$PKG_CONFIG" != x; then
+ REDIS_CONFIG=$PKG_CONFIG
+ fi
# if redis provided --with-redis, override
if test x"${with_hiredis}" != x""; then
|