source: trunk/grep/m4/missing.m4@ 3003

Last change on this file since 3003 was 2557, checked in by bird, 19 years ago

grep 2.5.1a

File size: 915 bytes
Line 
1## --------------------------------------------------------- ##
2## Fake the existence of programs that GNU maintainers use. ##
3## --------------------------------------------------------- ##
4
5# serial 2
6
7# AM_MISSING_PROG(NAME, PROGRAM)
8# ------------------------------
9AC_DEFUN([AM_MISSING_PROG],
10[AC_REQUIRE([AM_MISSING_HAS_RUN])
11$1=${$1-"${am_missing_run}$2"}
12AC_SUBST($1)])
13
14
15# AM_MISSING_HAS_RUN
16# ------------------
17# Define MISSING if not defined so far and test if it supports --run.
18# If it does, set am_missing_run to use it, otherwise, to nothing.
19AC_DEFUN([AM_MISSING_HAS_RUN],
20[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
21test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
22# Use eval to expand $SHELL
23if eval "$MISSING --run true"; then
24 am_missing_run="$MISSING --run "
25else
26 am_missing_run=
27 am_backtick='`'
28 AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
29fi
30])
Note: See TracBrowser for help on using the repository browser.