windows-nat: Don't change current_event.dwThreadId in handle_output_debug_string()
[deliverable/binutils-gdb.git] / gdb / aclocal.m4
CommitLineData
0feedb2c 1# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
c906108c 2
20e95c23 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
81ecdfbb 4# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
85981d60
AC
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
c906108c 8
85981d60
AC
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
e17bf198 13
4869db5e
RM
14# AM_AUX_DIR_EXPAND -*- Autoconf -*-
15
16# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
17#
18# This file is free software; the Free Software Foundation
19# gives unlimited permission to copy and/or distribute it,
20# with or without modifications, as long as this notice is preserved.
21
22# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
23# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
24# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
25#
26# Of course, Automake must honor this variable whenever it calls a
27# tool from the auxiliary directory. The problem is that $srcdir (and
28# therefore $ac_aux_dir as well) can be either absolute or relative,
29# depending on how configure is run. This is pretty annoying, since
30# it makes $ac_aux_dir quite unusable in subdirectories: in the top
31# source directory, any form will work fine, but in subdirectories a
32# relative path needs to be adjusted first.
33#
34# $ac_aux_dir/missing
35# fails when called from a subdirectory if $ac_aux_dir is relative
36# $top_srcdir/$ac_aux_dir/missing
37# fails if $ac_aux_dir is absolute,
38# fails when called from a subdirectory in a VPATH build with
39# a relative $ac_aux_dir
40#
41# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
42# are both prefixed by $srcdir. In an in-source build this is usually
43# harmless because $srcdir is `.', but things will broke when you
44# start a VPATH build or use an absolute $srcdir.
45#
46# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
47# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
48# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
49# and then we would define $MISSING as
50# MISSING="\${SHELL} $am_aux_dir/missing"
51# This will work as long as MISSING is not called from configure, because
52# unfortunately $(top_srcdir) has no meaning in configure.
53# However there are other variables, like CC, which are often used in
54# configure, and could therefore not use this "fixed" $ac_aux_dir.
55#
56# Another solution, used here, is to always expand $ac_aux_dir to an
57# absolute PATH. The drawback is that using absolute paths prevent a
58# configured tree to be moved without reconfiguration.
59
60AC_DEFUN([AM_AUX_DIR_EXPAND],
61[dnl Rely on autoconf to set up CDPATH properly.
62AC_PREREQ([2.50])dnl
63# expand $ac_aux_dir to an absolute path
64am_aux_dir=`cd $ac_aux_dir && pwd`
65])
66
20e95c23 67# AM_CONDITIONAL -*- Autoconf -*-
46711df8 68
81ecdfbb 69# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
20e95c23
DJ
70# Free Software Foundation, Inc.
71#
72# This file is free software; the Free Software Foundation
73# gives unlimited permission to copy and/or distribute it,
74# with or without modifications, as long as this notice is preserved.
60bf0650 75
81ecdfbb 76# serial 9
60bf0650
MM
77
78# AM_CONDITIONAL(NAME, SHELL-CONDITION)
79# -------------------------------------
80# Define a conditional.
81AC_DEFUN([AM_CONDITIONAL],
82[AC_PREREQ(2.52)dnl
83 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
84 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
81ecdfbb
RW
85AC_SUBST([$1_TRUE])dnl
86AC_SUBST([$1_FALSE])dnl
87_AM_SUBST_NOTMAKE([$1_TRUE])dnl
88_AM_SUBST_NOTMAKE([$1_FALSE])dnl
89m4_define([_AM_COND_VALUE_$1], [$2])dnl
60bf0650
MM
90if $2; then
91 $1_TRUE=
92 $1_FALSE='#'
93else
94 $1_TRUE='#'
95 $1_FALSE=
96fi
97AC_CONFIG_COMMANDS_PRE(
98[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
99 AC_MSG_ERROR([[conditional "$1" was never defined.
100Usually this means the macro was only invoked conditionally.]])
101fi])])
102
4869db5e
RM
103# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
104#
105# This file is free software; the Free Software Foundation
106# gives unlimited permission to copy and/or distribute it,
107# with or without modifications, as long as this notice is preserved.
108
109# AM_PROG_INSTALL_SH
110# ------------------
111# Define $install_sh.
112AC_DEFUN([AM_PROG_INSTALL_SH],
113[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
114if test x"${install_sh}" != xset; then
115 case $am_aux_dir in
116 *\ * | *\ *)
117 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
118 *)
119 install_sh="\${SHELL} $am_aux_dir/install-sh"
120 esac
121fi
122AC_SUBST(install_sh)])
123
20e95c23 124# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
60bf0650
MM
125# From Jim Meyering
126
81ecdfbb 127# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
60bf0650 128# Free Software Foundation, Inc.
20e95c23
DJ
129#
130# This file is free software; the Free Software Foundation
131# gives unlimited permission to copy and/or distribute it,
132# with or without modifications, as long as this notice is preserved.
60bf0650 133
81ecdfbb 134# serial 5
56157b4a 135
81ecdfbb
RW
136# AM_MAINTAINER_MODE([DEFAULT-MODE])
137# ----------------------------------
138# Control maintainer-specific portions of Makefiles.
139# Default is to disable them, unless `enable' is passed literally.
140# For symmetry, `disable' may be passed as well. Anyway, the user
141# can override the default with the --enable/--disable switch.
85981d60 142AC_DEFUN([AM_MAINTAINER_MODE],
81ecdfbb
RW
143[m4_case(m4_default([$1], [disable]),
144 [enable], [m4_define([am_maintainer_other], [disable])],
145 [disable], [m4_define([am_maintainer_other], [enable])],
146 [m4_define([am_maintainer_other], [enable])
147 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
148AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
149 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
150 AC_ARG_ENABLE([maintainer-mode],
151[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
85981d60 152 (and sometimes confusing) to the casual installer],
81ecdfbb
RW
153 [USE_MAINTAINER_MODE=$enableval],
154 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
85981d60 155 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
81ecdfbb 156 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
56157b4a 157 MAINT=$MAINTAINER_MODE_TRUE
81ecdfbb 158 AC_SUBST([MAINT])dnl
56157b4a
AC
159]
160)
161
85981d60 162AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
56157b4a 163
4869db5e
RM
164# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
165#
166# This file is free software; the Free Software Foundation
167# gives unlimited permission to copy and/or distribute it,
168# with or without modifications, as long as this notice is preserved.
169
170# AM_PROG_INSTALL_STRIP
171# ---------------------
172# One issue with vendor `install' (even GNU) is that you can't
173# specify the program used to strip binaries. This is especially
174# annoying in cross-compiling environments, where the build's strip
175# is unlikely to handle the host's binaries.
176# Fortunately install-sh will honor a STRIPPROG variable, so we
177# always use install-sh in `make install-strip', and initialize
178# STRIPPROG with the value of the STRIP variable (set by the user).
179AC_DEFUN([AM_PROG_INSTALL_STRIP],
180[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
181# Installed binaries are usually stripped using `strip' when the user
182# run `make install-strip'. However `strip' might not be the right
183# tool to use in cross-compilation environments, therefore Automake
184# will honor the `STRIP' environment variable to overrule this program.
185dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
186if test "$cross_compiling" != no; then
187 AC_CHECK_TOOL([STRIP], [strip], :)
188fi
189INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
190AC_SUBST([INSTALL_STRIP_PROGRAM])])
191
81ecdfbb
RW
192# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
193#
194# This file is free software; the Free Software Foundation
195# gives unlimited permission to copy and/or distribute it,
196# with or without modifications, as long as this notice is preserved.
197
198# serial 2
199
200# _AM_SUBST_NOTMAKE(VARIABLE)
201# ---------------------------
202# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
203# This macro is traced by Automake.
204AC_DEFUN([_AM_SUBST_NOTMAKE])
205
206# AM_SUBST_NOTMAKE(VARIABLE)
207# ---------------------------
208# Public sister of _AM_SUBST_NOTMAKE.
209AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
210
85981d60 211m4_include([acinclude.m4])
This page took 0.963325 seconds and 4 git commands to generate.