source: abuse/tags/pd/aclocal.m4 @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 12 years ago
  • Imported original public domain release, for future reference.
File size: 2.6 KB
Line 
1dnl aclocal.m4 generated automatically by aclocal 1.2
2
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
9dnl Usage:
10dnl AM_INIT_AUTOMAKE(package,version, [no-define])
11
12AC_DEFUN(AM_INIT_AUTOMAKE,
13[AC_REQUIRE([AM_PROG_INSTALL])
14PACKAGE=[$1]
15AC_SUBST(PACKAGE)
16VERSION=[$2]
17AC_SUBST(VERSION)
18dnl test to see if srcdir already configured
19if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
20  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
21fi
22ifelse([$3],,
23AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
24AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
25AM_SANITY_CHECK
26AC_ARG_PROGRAM
27dnl FIXME This is truly gross.
28missing_dir=`cd $ac_aux_dir && pwd`
29AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
30AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
31AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
32AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
33AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
34AC_PROG_MAKE_SET])
35
36
37# serial 1
38
39AC_DEFUN(AM_PROG_INSTALL,
40[AC_REQUIRE([AC_PROG_INSTALL])
41test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
42AC_SUBST(INSTALL_SCRIPT)dnl
43])
44
45#
46# Check to make sure that the build environment is sane.
47#
48
49AC_DEFUN(AM_SANITY_CHECK,
50[AC_MSG_CHECKING([whether build environment is sane])
51# Just in case
52sleep 1
53echo timestamp > conftestfile
54# Do `set' in a subshell so we don't clobber the current shell's
55# arguments.  Must try -L first in case configure is actually a
56# symlink; some systems play weird games with the mod time of symlinks
57# (eg FreeBSD returns the mod time of the symlink's containing
58# directory).
59if (
60   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
61   if test "$@" = "X"; then
62      # -L didn't work.
63      set X `ls -t $srcdir/configure conftestfile`
64   fi
65   test "[$]2" = conftestfile
66   )
67then
68   # Ok.
69   :
70else
71   AC_MSG_WARN([newly created file is older than distributed files!
72Check your system clock])
73fi
74rm -f conftest*
75AC_MSG_RESULT(yes)])
76
77dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
78dnl The program must properly implement --version.
79AC_DEFUN(AM_MISSING_PROG,
80[AC_MSG_CHECKING(for working $2)
81# Run test in a subshell; some versions of sh will print an error if
82# an executable is not found, even if stderr is redirected.
83# Redirect stdin to placate older versions of autoconf.  Sigh.
84if ($2 --version) < /dev/null > /dev/null 2>&1; then
85   $1=$2
86   AC_MSG_RESULT(found)
87else
88   $1="$3/missing $2"
89   AC_MSG_RESULT(missing)
90fi
91AC_SUBST($1)])
92
Note: See TracBrowser for help on using the repository browser.