kexec-tools: Make build of kdump optional
[openwrt.git] / package / ead / src / tinysrp / aclocal.m4
1 dnl aclocal.m4 generated automatically by aclocal 1.4a
2
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.
7
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.
12
13 dnl
14 dnl check for signal type
15 dnl
16 dnl AC_RETSIGTYPE isn't quite right, but almost.
17 dnl
18 define(TYPE_SIGNAL,[
19 AC_MSG_CHECKING([POSIX signal handlers])
20 AC_CACHE_VAL(cv_has_posix_signals,
21 [AC_TRY_COMPILE(
22 [#include <sys/types.h>
23 #include <signal.h>
24 #ifdef signal
25 #undef signal
26 #endif
27 extern void (*signal ()) ();], [],
28 cv_has_posix_signals=yes, cv_has_posix_signals=no)])
29 AC_MSG_RESULT($cv_has_posix_signals)
30 if test $cv_has_posix_signals = yes; then
31 AC_DEFINE(RETSIGTYPE, void) AC_DEFINE(POSIX_SIGTYPE)
32 else
33 if test $ac_cv_type_signal = void; then
34 AC_DEFINE(RETSIGTYPE, void)
35 else
36 AC_DEFINE(RETSIGTYPE, int)
37 fi
38 fi])dnl
39
40 # Like AC_CONFIG_HEADER, but automatically create stamp file.
41
42 AC_DEFUN(AM_CONFIG_HEADER,
43 [AC_PREREQ([2.12])
44 AC_CONFIG_HEADER([$1])
45 dnl When config.status generates a header, we must update the stamp-h file.
46 dnl This file resides in the same directory as the config header
47 dnl that is generated. We must strip everything past the first ":",
48 dnl and everything past the last "/".
49 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
50 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
51 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
52 <<am_indx=1
53 for am_file in <<$1>>; do
54 case " <<$>>CONFIG_HEADERS " in
55 *" <<$>>am_file "*<<)>>
56 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
57 ;;
58 esac
59 am_indx=`expr "<<$>>am_indx" + 1`
60 done<<>>dnl>>)
61 changequote([,]))])
62
63 # Do all the work for Automake. This macro actually does too much --
64 # some checks are only needed if your package does certain things.
65 # But this isn't really a big deal.
66
67 # serial 1
68
69 dnl Usage:
70 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
71
72 AC_DEFUN(AM_INIT_AUTOMAKE,
73 [AC_REQUIRE([AC_PROG_INSTALL])
74 dnl We require 2.13 because we rely on SHELL being computed by configure.
75 AC_PREREQ([2.13])
76 PACKAGE=[$1]
77 AC_SUBST(PACKAGE)
78 VERSION=[$2]
79 AC_SUBST(VERSION)
80 dnl test to see if srcdir already configured
81 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
82 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
83 fi
84 ifelse([$3],,
85 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
86 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
87 AC_REQUIRE([AM_SANITY_CHECK])
88 AC_REQUIRE([AC_ARG_PROGRAM])
89 dnl FIXME This is truly gross.
90 missing_dir=`cd $ac_aux_dir && pwd`
91 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
92 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
93 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
94 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
95 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
96 AC_REQUIRE([AC_PROG_MAKE_SET])])
97
98 #
99 # Check to make sure that the build environment is sane.
100 #
101
102 AC_DEFUN(AM_SANITY_CHECK,
103 [AC_MSG_CHECKING([whether build environment is sane])
104 # Just in case
105 sleep 1
106 echo timestamp > conftestfile
107 # Do `set' in a subshell so we don't clobber the current shell's
108 # arguments. Must try -L first in case configure is actually a
109 # symlink; some systems play weird games with the mod time of symlinks
110 # (eg FreeBSD returns the mod time of the symlink's containing
111 # directory).
112 if (
113 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
114 if test "[$]*" = "X"; then
115 # -L didn't work.
116 set X `ls -t $srcdir/configure conftestfile`
117 fi
118 if test "[$]*" != "X $srcdir/configure conftestfile" \
119 && test "[$]*" != "X conftestfile $srcdir/configure"; then
120
121 # If neither matched, then we have a broken ls. This can happen
122 # if, for instance, CONFIG_SHELL is bash and it inherits a
123 # broken ls alias from the environment. This has actually
124 # happened. Such a system could not be considered "sane".
125 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
126 alias in your environment])
127 fi
128
129 test "[$]2" = conftestfile
130 )
131 then
132 # Ok.
133 :
134 else
135 AC_MSG_ERROR([newly created file is older than distributed files!
136 Check your system clock])
137 fi
138 rm -f conftest*
139 AC_MSG_RESULT(yes)])
140
141 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
142 dnl The program must properly implement --version.
143 AC_DEFUN(AM_MISSING_PROG,
144 [AC_MSG_CHECKING(for working $2)
145 # Run test in a subshell; some versions of sh will print an error if
146 # an executable is not found, even if stderr is redirected.
147 # Redirect stdin to placate older versions of autoconf. Sigh.
148 if ($2 --version) < /dev/null > /dev/null 2>&1; then
149 $1=$2
150 AC_MSG_RESULT(found)
151 else
152 $1="$3/missing $2"
153 AC_MSG_RESULT(missing)
154 fi
155 AC_SUBST($1)])
156
This page took 0.045359 seconds and 5 git commands to generate.