xref: /netbsd/external/gpl3/gdb/dist/sim/or1k/aclocal.m4 (revision 07163879)
1*07163879Schristos# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
2*07163879Schristos
3*07163879Schristos# Copyright (C) 1996-2017 Free Software Foundation, Inc.
4*07163879Schristos
5*07163879Schristos# This file is free software; the Free Software Foundation
6*07163879Schristos# gives unlimited permission to copy and/or distribute it,
7*07163879Schristos# with or without modifications, as long as this notice is preserved.
8*07163879Schristos
9*07163879Schristos# This program is distributed in the hope that it will be useful,
10*07163879Schristos# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11*07163879Schristos# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12*07163879Schristos# PARTICULAR PURPOSE.
13*07163879Schristos
14*07163879Schristosm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15*07163879Schristos# AM_CONDITIONAL                                            -*- Autoconf -*-
16*07163879Schristos
17*07163879Schristos# Copyright (C) 1997-2017 Free Software Foundation, Inc.
18*07163879Schristos#
19*07163879Schristos# This file is free software; the Free Software Foundation
20*07163879Schristos# gives unlimited permission to copy and/or distribute it,
21*07163879Schristos# with or without modifications, as long as this notice is preserved.
22*07163879Schristos
23*07163879Schristos# AM_CONDITIONAL(NAME, SHELL-CONDITION)
24*07163879Schristos# -------------------------------------
25*07163879Schristos# Define a conditional.
26*07163879SchristosAC_DEFUN([AM_CONDITIONAL],
27*07163879Schristos[AC_PREREQ([2.52])dnl
28*07163879Schristos m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
29*07163879Schristos       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
30*07163879SchristosAC_SUBST([$1_TRUE])dnl
31*07163879SchristosAC_SUBST([$1_FALSE])dnl
32*07163879Schristos_AM_SUBST_NOTMAKE([$1_TRUE])dnl
33*07163879Schristos_AM_SUBST_NOTMAKE([$1_FALSE])dnl
34*07163879Schristosm4_define([_AM_COND_VALUE_$1], [$2])dnl
35*07163879Schristosif $2; then
36*07163879Schristos  $1_TRUE=
37*07163879Schristos  $1_FALSE='#'
38*07163879Schristoselse
39*07163879Schristos  $1_TRUE='#'
40*07163879Schristos  $1_FALSE=
41*07163879Schristosfi
42*07163879SchristosAC_CONFIG_COMMANDS_PRE(
43*07163879Schristos[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
44*07163879Schristos  AC_MSG_ERROR([[conditional "$1" was never defined.
45*07163879SchristosUsually this means the macro was only invoked conditionally.]])
46*07163879Schristosfi])])
47*07163879Schristos
48*07163879Schristos# Copyright (C) 2003-2017 Free Software Foundation, Inc.
49*07163879Schristos#
50*07163879Schristos# This file is free software; the Free Software Foundation
51*07163879Schristos# gives unlimited permission to copy and/or distribute it,
52*07163879Schristos# with or without modifications, as long as this notice is preserved.
53*07163879Schristos
54*07163879Schristos# Check whether the underlying file-system supports filenames
55*07163879Schristos# with a leading dot.  For instance MS-DOS doesn't.
56*07163879SchristosAC_DEFUN([AM_SET_LEADING_DOT],
57*07163879Schristos[rm -rf .tst 2>/dev/null
58*07163879Schristosmkdir .tst 2>/dev/null
59*07163879Schristosif test -d .tst; then
60*07163879Schristos  am__leading_dot=.
61*07163879Schristoselse
62*07163879Schristos  am__leading_dot=_
63*07163879Schristosfi
64*07163879Schristosrmdir .tst 2>/dev/null
65*07163879SchristosAC_SUBST([am__leading_dot])])
66*07163879Schristos
67*07163879Schristos# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
68*07163879Schristos# From Jim Meyering
69*07163879Schristos
70*07163879Schristos# Copyright (C) 1996-2017 Free Software Foundation, Inc.
71*07163879Schristos#
72*07163879Schristos# This file is free software; the Free Software Foundation
73*07163879Schristos# gives unlimited permission to copy and/or distribute it,
74*07163879Schristos# with or without modifications, as long as this notice is preserved.
75*07163879Schristos
76*07163879Schristos# AM_MAINTAINER_MODE([DEFAULT-MODE])
77*07163879Schristos# ----------------------------------
78*07163879Schristos# Control maintainer-specific portions of Makefiles.
79*07163879Schristos# Default is to disable them, unless 'enable' is passed literally.
80*07163879Schristos# For symmetry, 'disable' may be passed as well.  Anyway, the user
81*07163879Schristos# can override the default with the --enable/--disable switch.
82*07163879SchristosAC_DEFUN([AM_MAINTAINER_MODE],
83*07163879Schristos[m4_case(m4_default([$1], [disable]),
84*07163879Schristos       [enable], [m4_define([am_maintainer_other], [disable])],
85*07163879Schristos       [disable], [m4_define([am_maintainer_other], [enable])],
86*07163879Schristos       [m4_define([am_maintainer_other], [enable])
87*07163879Schristos        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
88*07163879SchristosAC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
89*07163879Schristos  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
90*07163879Schristos  AC_ARG_ENABLE([maintainer-mode],
91*07163879Schristos    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
92*07163879Schristos      am_maintainer_other[ make rules and dependencies not useful
93*07163879Schristos      (and sometimes confusing) to the casual installer])],
94*07163879Schristos    [USE_MAINTAINER_MODE=$enableval],
95*07163879Schristos    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
96*07163879Schristos  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
97*07163879Schristos  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
98*07163879Schristos  MAINT=$MAINTAINER_MODE_TRUE
99*07163879Schristos  AC_SUBST([MAINT])dnl
100*07163879Schristos]
101*07163879Schristos)
102*07163879Schristos
103*07163879Schristos# Copyright (C) 2006-2017 Free Software Foundation, Inc.
104*07163879Schristos#
105*07163879Schristos# This file is free software; the Free Software Foundation
106*07163879Schristos# gives unlimited permission to copy and/or distribute it,
107*07163879Schristos# with or without modifications, as long as this notice is preserved.
108*07163879Schristos
109*07163879Schristos# _AM_SUBST_NOTMAKE(VARIABLE)
110*07163879Schristos# ---------------------------
111*07163879Schristos# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
112*07163879Schristos# This macro is traced by Automake.
113*07163879SchristosAC_DEFUN([_AM_SUBST_NOTMAKE])
114*07163879Schristos
115*07163879Schristos# AM_SUBST_NOTMAKE(VARIABLE)
116*07163879Schristos# --------------------------
117*07163879Schristos# Public sister of _AM_SUBST_NOTMAKE.
118*07163879SchristosAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
119*07163879Schristos
120