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