File: ac-path-pkgconfig.patch

package info (click to toggle)
r-cran-rjags 1%3A4-13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 488 kB
  • sloc: cpp: 678; ansic: 81; sh: 2; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 844 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Use cross-build compatible macro for finding pkg-config.
 .
 The package uses AC_PATH_PROG to discover the location of pkg-config(1). This
 macro fails to select the correct version to support cross-compilation.
 .
 This patch changes it to use AC_PATH_TOOL.
 .
 Refer to https://bugs.debian.org/884798 for details.
Origin: other
Last-Update: 2021-09-27

=== modified file 'configure.ac'
--- a/configure.ac	2021-09-27 10:49:27 +0000
+++ b/configure.ac	2021-09-27 10:49:47 +0000
@@ -13,7 +13,7 @@
 
 PKG_CONFIG_OK="FALSE"
 
-AC_PATH_PROG([PKG_CONFIG], [pkg-config], [], [$PATH:/usr/local/bin])
+AC_PATH_TOOL([PKG_CONFIG], [pkg-config], [], [$PATH:/usr/local/bin])
 if test [ -n "${PKG_CONFIG}" ] ; then
    if `${PKG_CONFIG} --exists jags`; then
        if `${PKG_CONFIG} --exists --atleast-version=${PACKAGE_VERSION}.0.0 jags` &&