source: trunk/essentials/sys-devel/automake-1.10/m4/missing.m4

Last change on this file was 3147, checked in by bird, 18 years ago

automake 1.10

File size: 1.1 KB
Line 
1# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
2
3# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
4# Free Software Foundation, Inc.
5#
6# This file is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# serial 5
11
12# AM_MISSING_PROG(NAME, PROGRAM)
13# ------------------------------
14AC_DEFUN([AM_MISSING_PROG],
15[AC_REQUIRE([AM_MISSING_HAS_RUN])
16$1=${$1-"${am_missing_run}$2"}
17AC_SUBST($1)])
18
19
20# AM_MISSING_HAS_RUN
21# ------------------
22# Define MISSING if not defined so far and test if it supports --run.
23# If it does, set am_missing_run to use it, otherwise, to nothing.
24AC_DEFUN([AM_MISSING_HAS_RUN],
25[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
26AC_REQUIRE_AUX_FILE([missing])dnl
27test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
28# Use eval to expand $SHELL
29if eval "$MISSING --run true"; then
30 am_missing_run="$MISSING --run "
31else
32 am_missing_run=
33 AC_MSG_WARN([`missing' script is too old or missing])
34fi
35])
Note: See TracBrowser for help on using the repository browser.