Commit | Line | Data |
---|---|---|
96963166 | 1 | dnl aclocal.m4 generated automatically by aclocal 1.1g |
ebf50833 | 2 | |
733943b9 TT |
3 | # Do all the work for Automake. This macro actually does too much -- |
4 | # some checks are only needed if your package does certain things. | |
5 | # But this isn't really a big deal. | |
6 | ||
7 | # serial 1 | |
8 | ||
9 | dnl Usage: | |
10 | dnl AM_INIT_AUTOMAKE(package,version) | |
11 | ||
12 | AC_DEFUN(AM_INIT_AUTOMAKE, | |
13 | [AC_REQUIRE([AM_PROG_INSTALL]) | |
14 | PACKAGE=[$1] | |
15 | AC_SUBST(PACKAGE) | |
16 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") | |
17 | VERSION=[$2] | |
18 | AC_SUBST(VERSION) | |
19 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION") | |
20 | AM_SANITY_CHECK | |
21 | AC_ARG_PROGRAM | |
22 | AC_PROG_MAKE_SET]) | |
23 | ||
24 | ||
25 | # serial 1 | |
26 | ||
27 | AC_DEFUN(AM_PROG_INSTALL, | |
28 | [AC_REQUIRE([AC_PROG_INSTALL]) | |
29 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
30 | AC_SUBST(INSTALL_SCRIPT)dnl | |
ebf50833 | 31 | ]) |
733943b9 TT |
32 | |
33 | # | |
34 | # Check to make sure that the build environment is sane. | |
35 | # | |
36 | ||
37 | AC_DEFUN(AM_SANITY_CHECK, | |
38 | [AC_MSG_CHECKING([whether build environment is sane]) | |
39 | echo timestamp > conftestfile | |
40 | # Do this in a subshell so we don't clobber the current shell's | |
41 | # arguments. FIXME: maybe try `-L' hack like GETLOADAVG test? | |
42 | if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile) | |
43 | then | |
44 | # Ok. | |
45 | : | |
46 | else | |
47 | AC_MSG_ERROR([newly created file is older than distributed files! | |
48 | Check your system clock]) | |
49 | fi | |
50 | rm -f conftest* | |
51 | AC_MSG_RESULT(yes)]) | |
52 |