[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to exit if program is not found
From: |
Eric Blake |
Subject: |
Re: How to exit if program is not found |
Date: |
Thu, 14 Jun 2012 10:10:40 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
On 06/14/2012 10:01 AM, Timothy Madden wrote:
> Hello
>
> I see in the info pages that autoconf macros check for various programs
> and set a variable if found, but how do I get the behaviour I see in
> most configure programs to exit with an error if a program is not found ?
One possible way:
AC_PATH_PROG([PROG], [prog], [], [$PATH:/other/dir])
if test -z "$PROG"; then
AC_MSG_ERROR([could not find 'prog'])
fi
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature