1dnl Copyright (c) 2009 The NetBSD Foundation, Inc.
2dnl All rights reserved.
3dnl
4dnl Redistribution and use in source and binary forms, with or without
5dnl modification, are permitted provided that the following conditions
6dnl are met:
7dnl 1. Redistributions of source code must retain the above copyright
8dnl    notice, this list of conditions and the following disclaimer.
9dnl 2. Redistributions in binary form must reproduce the above copyright
10dnl    notice, this list of conditions and the following disclaimer in the
11dnl    documentation and/or other materials provided with the distribution.
12dnl
13dnl THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
14dnl CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
15dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16dnl MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17dnl IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
18dnl DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19dnl DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
20dnl GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
22dnl IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
24dnl IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26dnl -----------------------------------------------------------------------
27dnl User-customizable tools used at run-time.
28dnl -----------------------------------------------------------------------
29
30dnl
31dnl ATF_RUNTIME_TOOL(varname, description, default)
32dnl
33dnl Provides a configure-time configuration variable.  The value provided
34dnl here can later be overriden at run-time via the environment.
35dnl
36AC_DEFUN([ATF_RUNTIME_TOOL],[
37    AC_ARG_VAR([$1], [$2])
38    test x"${$1-unset}" = x"unset" && $1="$3"
39    AC_SUBST($1)
40])
41