Install msysDTK-1.0.1
[msysgit.git] / share / aclocal-1.7 / missing.m4
blob822420000fd320fa7deb67d045da42d4ff7e56c4
1 #  -*- Autoconf -*-
3 ## --------------------------------------------------------- ##
4 ## Fake the existence of programs that GNU maintainers use.  ##
5 ## --------------------------------------------------------- ##
7 # Copyright 1997, 1999, 2000, 2001 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)
12 # any later version.
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
22 # 02111-1307, USA.
24 # serial 3
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"}
31 AC_SUBST($1)])
34 # AM_MISSING_HAS_RUN
35 # ------------------
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 "
44 else
45   am_missing_run=
46   AC_MSG_WARN([`missing' script is too old or missing])