source: trunk/src/binutils/ld/aclocal.m4@ 1567

Last change on this file since 1567 was 1113, checked in by bird, 22 years ago

Regenerated.

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