2012-11-06 Tristan Gingold <gingold@adacore.com>
[binutils-gdb.git] / gdb / aclocal.m4
blobfdd8d08366a538ecf04a840df67b092b2662948b
1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
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.
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.
14 # AM_CONDITIONAL                                            -*- Autoconf -*-
16 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
17 # Free Software Foundation, Inc.
19 # This file is free software; the Free Software Foundation
20 # gives unlimited permission to copy and/or distribute it,
21 # with or without modifications, as long as this notice is preserved.
23 # serial 9
25 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
26 # -------------------------------------
27 # Define a conditional.
28 AC_DEFUN([AM_CONDITIONAL],
29 [AC_PREREQ(2.52)dnl
30  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
31         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
32 AC_SUBST([$1_TRUE])dnl
33 AC_SUBST([$1_FALSE])dnl
34 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
35 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
36 m4_define([_AM_COND_VALUE_$1], [$2])dnl
37 if $2; then
38   $1_TRUE=
39   $1_FALSE='#'
40 else
41   $1_TRUE='#'
42   $1_FALSE=
44 AC_CONFIG_COMMANDS_PRE(
45 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
46   AC_MSG_ERROR([[conditional "$1" was never defined.
47 Usually this means the macro was only invoked conditionally.]])
48 fi])])
50 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
51 # From Jim Meyering
53 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
54 # Free Software Foundation, Inc.
56 # This file is free software; the Free Software Foundation
57 # gives unlimited permission to copy and/or distribute it,
58 # with or without modifications, as long as this notice is preserved.
60 # serial 5
62 # AM_MAINTAINER_MODE([DEFAULT-MODE])
63 # ----------------------------------
64 # Control maintainer-specific portions of Makefiles.
65 # Default is to disable them, unless `enable' is passed literally.
66 # For symmetry, `disable' may be passed as well.  Anyway, the user
67 # can override the default with the --enable/--disable switch.
68 AC_DEFUN([AM_MAINTAINER_MODE],
69 [m4_case(m4_default([$1], [disable]),
70        [enable], [m4_define([am_maintainer_other], [disable])],
71        [disable], [m4_define([am_maintainer_other], [enable])],
72        [m4_define([am_maintainer_other], [enable])
73         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
74 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
75   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
76   AC_ARG_ENABLE([maintainer-mode],
77 [  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
78                           (and sometimes confusing) to the casual installer],
79       [USE_MAINTAINER_MODE=$enableval],
80       [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
81   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
82   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
83   MAINT=$MAINTAINER_MODE_TRUE
84   AC_SUBST([MAINT])dnl
88 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
90 # Copyright (C) 2006, 2008  Free Software Foundation, Inc.
92 # This file is free software; the Free Software Foundation
93 # gives unlimited permission to copy and/or distribute it,
94 # with or without modifications, as long as this notice is preserved.
96 # serial 2
98 # _AM_SUBST_NOTMAKE(VARIABLE)
99 # ---------------------------
100 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
101 # This macro is traced by Automake.
102 AC_DEFUN([_AM_SUBST_NOTMAKE])
104 # AM_SUBST_NOTMAKE(VARIABLE)
105 # ---------------------------
106 # Public sister of _AM_SUBST_NOTMAKE.
107 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
109 m4_include([../config/largefile.m4])
110 m4_include([../config/lead-dot.m4])
111 m4_include([../config/plugins.m4])
112 m4_include([acinclude.m4])