gnu: avahi: Find 'TARGET-pkg-config' when cross-compiling.

The configure script first tests whether "pkg-config" is in PATH,
and then uses "TARGET-pkg-config".  Pretend "pkg-config" exists.

* gnu/packages/avahi.scm (avah)[arguments]<#:configure-flags>: Set
  ac_cv_prog_have_pkg_config=yes when cross-compiling.
This commit is contained in:
Maxime Devos 2021-08-25 12:42:23 +02:00 committed by Mathieu Othacehe
parent 35e1a572f6
commit 0515ebb0d1
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -3,6 +3,7 @@
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@ -58,7 +59,7 @@ (define-public avahi
#t))))
(build-system gnu-build-system)
(arguments
'(#:configure-flags '("--with-distro=none"
`(#:configure-flags '("--with-distro=none"
"--disable-static"
"--localstatedir=/var" ; for the DBus socket
"--disable-python"
@ -68,7 +69,10 @@ (define-public avahi
"--enable-tests"
"--disable-qt4" "--disable-qt5"
"--disable-gtk" "--disable-gtk3"
"--enable-compat-libdns_sd")))
"--enable-compat-libdns_sd"
,@(if (%current-target-system)
'("ac_cv_prog_have_pkg_config=yes")
'()))))
(inputs
`(("dbus" ,dbus)
("expat" ,expat)