3 ## --------------------------------------------------------- ##
4 ## Fake the existence of programs that GNU maintainers use. ##
5 ## --------------------------------------------------------- ##
7 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 # AM_MISSING_PROG(NAME, PROGRAM)
27 # ------------------------------
28 AC_DEFUN([AM_MISSING_PROG],
29 [AC_REQUIRE([AM_MISSING_HAS_RUN])
30 $1=${$1-"${am_missing_run}$2"}
36 # Define MISSING if not defined so far and test if it supports --run.
37 # If it does, set am_missing_run to use it, otherwise, to nothing.
38 AC_DEFUN([AM_MISSING_HAS_RUN],
39 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
40 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
41 # Use eval to expand $SHELL
42 if eval "$MISSING --run true"; then
43 am_missing_run="$MISSING --run "
46 AC_MSG_WARN([`missing' script is too old or missing])