1 dnl aclocal.m4 generated automatically by aclocal 1.4a
3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
13 dnl cloned from autoconf 2.13 acspecific.m4
14 AC_DEFUN(AC_C_LONG_LONG,
15 [AC_CACHE_CHECK(for long long, ac_cv_c_long_long,
16 [if test "$GCC" = yes; then
19 AC_TRY_RUN([int main() {
21 exit(sizeof(long long) < sizeof(long)); }],
22 ac_cv_c_long_long=yes, ac_cv_c_long_long=no)
24 if test $ac_cv_c_long_long = yes; then
25 AC_DEFINE(HAVE_LONG_LONG)
29 dnl from autoconf 2.13 acgeneral.m4, with patch:
30 dnl Date: Fri, 15 Jan 1999 05:52:41 -0800
31 dnl Message-ID: <199901151352.FAA18237@shade.twinsun.com>
32 dnl From: eggert@twinsun.com (Paul Eggert)
33 dnl Subject: autoconf 2.13 AC_CHECK_TYPE doesn't allow shell vars
34 dnl Newsgroups: gnu.utils.bug
36 dnl AC_CHECK_TYPE2(TYPE, DEFAULT)
37 AC_DEFUN(AC_CHECK_TYPE2,
38 [AC_REQUIRE([AC_HEADER_STDC])dnl
39 AC_MSG_CHECKING(for $1)
40 AC_CACHE_VAL(ac_cv_type_$1,
43 <<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
44 changequote([,]), [#include <sys/types.h>
48 #endif], eval "ac_cv_type_$1=yes", eval "ac_cv_type_$1=no")])dnl
49 if eval "test \"`echo '$ac_cv_type_'$1`\" = yes"; then
53 AC_DEFINE_UNQUOTED($1, $2)
57 dnl from autoconf 2.13 acgeneral.m4, with additional third argument
58 dnl AC_CHECK_SIZEOF_INCLUDES(TYPE [, CROSS-SIZE, [INCLUDES]])
59 AC_DEFUN(AC_CHECK_SIZEOF_INCLUDES,
60 [changequote(<<, >>)dnl
61 dnl The name to #define.
62 define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
63 dnl The cache variable name.
64 define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl
66 AC_MSG_CHECKING(size of $1)
67 AC_CACHE_VAL(AC_CV_NAME,
72 FILE *f=fopen("conftestval", "w");
74 fprintf(f, "%d\n", sizeof($1));
76 }], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl
77 AC_MSG_RESULT($AC_CV_NAME)
78 AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME)
79 undefine([AC_TYPE_NAME])dnl
80 undefine([AC_CV_NAME])dnl
83 dnl AC_CHECK_SIZEOF_STDC_HEADERS(TYPE [, CROSS_SIZE])
84 AC_DEFUN(AC_CHECK_SIZEOF_STDC_HEADERS,
85 [AC_CHECK_SIZEOF_INCLUDES($1, $2,
86 [#include <sys/types.h>
93 # Do all the work for Automake. This macro actually does too much --
94 # some checks are only needed if your package does certain things.
95 # But this isn't really a big deal.
100 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
102 AC_DEFUN(AM_INIT_AUTOMAKE,
103 [AC_REQUIRE([AC_PROG_INSTALL])
104 dnl We require 2.13 because we rely on SHELL being computed by configure.
110 dnl test to see if srcdir already configured
111 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
112 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
115 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
116 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
117 AC_REQUIRE([AM_SANITY_CHECK])
118 AC_REQUIRE([AC_ARG_PROGRAM])
119 dnl FIXME This is truly gross.
120 missing_dir=`cd $ac_aux_dir && pwd`
121 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
122 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
123 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
124 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
125 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
126 AC_REQUIRE([AC_PROG_MAKE_SET])])
129 # Check to make sure that the build environment is sane.
132 AC_DEFUN(AM_SANITY_CHECK,
133 [AC_MSG_CHECKING([whether build environment is sane])
136 echo timestamp > conftestfile
137 # Do `set' in a subshell so we don't clobber the current shell's
138 # arguments. Must try -L first in case configure is actually a
139 # symlink; some systems play weird games with the mod time of symlinks
140 # (eg FreeBSD returns the mod time of the symlink's containing
143 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
144 if test "[$]*" = "X"; then
146 set X `ls -t $srcdir/configure conftestfile`
148 if test "[$]*" != "X $srcdir/configure conftestfile" \
149 && test "[$]*" != "X conftestfile $srcdir/configure"; then
151 # If neither matched, then we have a broken ls. This can happen
152 # if, for instance, CONFIG_SHELL is bash and it inherits a
153 # broken ls alias from the environment. This has actually
154 # happened. Such a system could not be considered "sane".
155 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
156 alias in your environment])
159 test "[$]2" = conftestfile
165 AC_MSG_ERROR([newly created file is older than distributed files!
166 Check your system clock])
171 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
172 dnl The program must properly implement --version.
173 AC_DEFUN(AM_MISSING_PROG,
174 [AC_MSG_CHECKING(for working $2)
175 # Run test in a subshell; some versions of sh will print an error if
176 # an executable is not found, even if stderr is redirected.
177 # Redirect stdin to placate older versions of autoconf. Sigh.
178 if ($2 --version) < /dev/null > /dev/null 2>&1; then
183 AC_MSG_RESULT(missing)
187 # Like AC_CONFIG_HEADER, but automatically create stamp file.
189 AC_DEFUN(AM_CONFIG_HEADER,
191 AC_CONFIG_HEADER([$1])
192 dnl When config.status generates a header, we must update the stamp-h file.
193 dnl This file resides in the same directory as the config header
194 dnl that is generated. We must strip everything past the first ":",
195 dnl and everything past the last "/".
196 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
197 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
198 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
200 for am_file in <<$1>>; do
201 case " <<$>>CONFIG_HEADERS " in
202 *" <<$>>am_file "*<<)>>
203 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
206 am_indx=`expr "<<$>>am_indx" + 1`