This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 01/36] Guile extension language: configure changes


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â.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]