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