This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 01/36] Guile extension language: configure changes
- From: ludo at gnu dot org (Ludovic CourtÃs)
- To: Doug Evans <xdje42 at gmail dot com>
- Cc: Joel Brobecker <brobecker at adacore dot com>, gdb-patches at sourceware dot org
- Date: Mon, 10 Feb 2014 22:20:55 +0100
- Subject: Re: [PATCH v2 01/36] Guile extension language: configure changes
- Authentication-results: sourceware.org; auth=none
- References: <52dd9a9a dot 488b440a dot 4678 dot 03e6 at mx dot google dot com> <m3y51j8r62 dot fsf at sspiff dot org> <20140210102342 dot GA7151 at adacore dot com> <m3zjly7uaa dot fsf at sspiff dot org>
Doug Evans <xdje42@gmail.com> skribis:
> Ludovic CourtÃs writes:
>> I overlooked it before, but it may be simpler to use PKG_CHECK_MODULES
>> from pkg.m4, which ships with pkg-config (info "(guile) Autoconf
>> Macros").
>
> I still have to handle the case of pkg-config being unavailable and the
> user supplying his/her own. So I went this route.
For the record, pkg.m4âs PKG_CHECK_MODULES requires PKG_PROG_PKG_CONFIG,
which in turn (1) honors the userâs $PKG_CONFIG, and (2a) sets it to
whatever is found if initially unset, or (2b) sets it to the empty
string if âpkg-configâ was not found.
It seems to handle GDBâs use case, no?
(The macros you proposed handle this fine too, but I thought it might be
nicer to reduce the amount of duplication and use common idioms.)
Ludoâ.