source: trunk/third/xntp/aclocal.m4 @ 10832

Revision 10832, 3.4 KB checked in by brlewis, 27 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r10831, which included commits to RCS files with non-trunk default branches.
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_ERROR([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
93# Like AC_CONFIG_HEADER, but automatically create stamp file.
94
95AC_DEFUN(AM_CONFIG_HEADER,
96[AC_PREREQ([2.12])
97AC_CONFIG_HEADER([$1])
98dnl When config.status generates a header, we must update the stamp-h file.
99dnl This file resides in the same directory as the config header
100dnl that is generated.  We must strip everything past the first ":",
101dnl and everything past the last "/".
102AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
103ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
104<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
105<<am_indx=1
106for am_file in <<$1>>; do
107  case " <<$>>CONFIG_HEADERS " in
108  *" <<$>>am_file "*<<)>>
109    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
110    ;;
111  esac
112  am_indx=`expr "<<$>>am_indx" + 1`
113done<<>>dnl>>)
114changequote([,]))])
115
Note: See TracBrowser for help on using the repository browser.