On 12/17/2017 01:30 PM, richard parkins wrote: > > > > From: Eric Blake <eblake@redhat.com> > To: richard parkins <aleph0hpela-suse@yahoo.co.uk>; "nbd@other.debian.org" <nbd@other.debian.org> > Sent: Wednesday, 13 December 2017, 23:13 > Subject: Re: Cannnot build nbd from git clone > > Yep, that was autoreconf (well, aclocal run as part of autoreconf) > trying to tell you that it was building a corrupt configure file because > your development environment is incomplete. Can we make the error > message a bit nicer than a corrupted configure file? Probably. (In > fact, if we were to use m4_pattern_forbid([AM_PATH_GLIB]) in > configure.ac, it would make failure to find the third-party library a > hard error that refuses to generate configure, rather than a soft error > that only shows up later during the run of ./configure). > Is there an autoconf macro to check that a particular file exists, and if not fail with a specified error message? Your quoting style is impossible to read - I can't tell a difference between where you are quoting me and what you are adding as original content. The 'm4_pattern_forbid' macro lets autoconf die with a hard error if a pre-requisite macro (presumably one that you intend to import from a pre-installed library) is not properly expanded. But it doesn't make it easy to offer advice on what pre-requisite software to install to get that macro defined, and that's a harder problem to solve in general because so many distros have different naming scheme for their various packages. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature