r4313: *** empty log message ***
[ctsim.git] / aclocal.m4
1 dnl aclocal.m4 generated automatically by aclocal 1.4-p6
2
3 dnl Copyright (C) 1994, 1995-8, 1999, 2001 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 # Add --enable-maintainer-mode option to configure.
14 # From Jim Meyering
15
16 # serial 1
17
18 AC_DEFUN([AM_MAINTAINER_MODE],
19 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
20   dnl maintainer-mode is disabled by default
21   AC_ARG_ENABLE(maintainer-mode,
22 [  --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer],
24       USE_MAINTAINER_MODE=$enableval,
25       USE_MAINTAINER_MODE=no)
26   AC_MSG_RESULT($USE_MAINTAINER_MODE)
27   AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
28   MAINT=$MAINTAINER_MODE_TRUE
29   AC_SUBST(MAINT)dnl
30 ]
31 )
32
33 # Define a conditional.
34
35 AC_DEFUN([AM_CONDITIONAL],
36 [AC_SUBST($1_TRUE)
37 AC_SUBST($1_FALSE)
38 if $2; then
39   $1_TRUE=
40   $1_FALSE='#'
41 else
42   $1_TRUE='#'
43   $1_FALSE=
44 fi])
45
46 # Do all the work for Automake.  This macro actually does too much --
47 # some checks are only needed if your package does certain things.
48 # But this isn't really a big deal.
49
50 # serial 1
51
52 dnl Usage:
53 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
54
55 AC_DEFUN([AM_INIT_AUTOMAKE],
56 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
57 AC_REQUIRE([AC_PROG_INSTALL])
58 PACKAGE=[$1]
59 AC_SUBST(PACKAGE)
60 VERSION=[$2]
61 AC_SUBST(VERSION)
62 dnl test to see if srcdir already configured
63 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
64   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
65 fi
66 ifelse([$3],,
67 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
68 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
69 AC_REQUIRE([AM_SANITY_CHECK])
70 AC_REQUIRE([AC_ARG_PROGRAM])
71 dnl FIXME This is truly gross.
72 missing_dir=`cd $ac_aux_dir && pwd`
73 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
74 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
75 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
76 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
77 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
78 AC_REQUIRE([AC_PROG_MAKE_SET])])
79
80 # Copyright 2002  Free Software Foundation, Inc.
81
82 # This program is free software; you can redistribute it and/or modify
83 # it under the terms of the GNU General Public License as published by
84 # the Free Software Foundation; either version 2, or (at your option)
85 # any later version.
86
87 # This program is distributed in the hope that it will be useful,
88 # but WITHOUT ANY WARRANTY; without even the implied warranty of
89 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
90 # GNU General Public License for more details.
91
92 # You should have received a copy of the GNU General Public License
93 # along with this program; if not, write to the Free Software
94 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
95
96 # AM_AUTOMAKE_VERSION(VERSION)
97 # ----------------------------
98 # Automake X.Y traces this macro to ensure aclocal.m4 has been
99 # generated from the m4 files accompanying Automake X.Y.
100 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
101
102 # AM_SET_CURRENT_AUTOMAKE_VERSION
103 # -------------------------------
104 # Call AM_AUTOMAKE_VERSION so it can be traced.
105 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
106 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
107          [AM_AUTOMAKE_VERSION([1.4-p6])])
108
109 #
110 # Check to make sure that the build environment is sane.
111 #
112
113 AC_DEFUN([AM_SANITY_CHECK],
114 [AC_MSG_CHECKING([whether build environment is sane])
115 # Just in case
116 sleep 1
117 echo timestamp > conftestfile
118 # Do `set' in a subshell so we don't clobber the current shell's
119 # arguments.  Must try -L first in case configure is actually a
120 # symlink; some systems play weird games with the mod time of symlinks
121 # (eg FreeBSD returns the mod time of the symlink's containing
122 # directory).
123 if (
124    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
125    if test "[$]*" = "X"; then
126       # -L didn't work.
127       set X `ls -t $srcdir/configure conftestfile`
128    fi
129    if test "[$]*" != "X $srcdir/configure conftestfile" \
130       && test "[$]*" != "X conftestfile $srcdir/configure"; then
131
132       # If neither matched, then we have a broken ls.  This can happen
133       # if, for instance, CONFIG_SHELL is bash and it inherits a
134       # broken ls alias from the environment.  This has actually
135       # happened.  Such a system could not be considered "sane".
136       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
137 alias in your environment])
138    fi
139
140    test "[$]2" = conftestfile
141    )
142 then
143    # Ok.
144    :
145 else
146    AC_MSG_ERROR([newly created file is older than distributed files!
147 Check your system clock])
148 fi
149 rm -f conftest*
150 AC_MSG_RESULT(yes)])
151
152 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
153 dnl The program must properly implement --version.
154 AC_DEFUN([AM_MISSING_PROG],
155 [AC_MSG_CHECKING(for working $2)
156 # Run test in a subshell; some versions of sh will print an error if
157 # an executable is not found, even if stderr is redirected.
158 # Redirect stdin to placate older versions of autoconf.  Sigh.
159 if ($2 --version) < /dev/null > /dev/null 2>&1; then
160    $1=$2
161    AC_MSG_RESULT(found)
162 else
163    $1="$3/missing $2"
164    AC_MSG_RESULT(missing)
165 fi
166 AC_SUBST($1)])
167
168 # Like AC_CONFIG_HEADER, but automatically create stamp file.
169
170 AC_DEFUN([AM_CONFIG_HEADER],
171 [AC_PREREQ([2.12])
172 AC_CONFIG_HEADER([$1])
173 dnl When config.status generates a header, we must update the stamp-h file.
174 dnl This file resides in the same directory as the config header
175 dnl that is generated.  We must strip everything past the first ":",
176 dnl and everything past the last "/".
177 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
178 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
179 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
180 <<am_indx=1
181 for am_file in <<$1>>; do
182   case " <<$>>CONFIG_HEADERS " in
183   *" <<$>>am_file "*<<)>>
184     echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
185     ;;
186   esac
187   am_indx=`expr "<<$>>am_indx" + 1`
188 done<<>>dnl>>)
189 changequote([,]))])
190