Update gdb.base/default.exp for GDB 10
[deliverable/binutils-gdb.git] / gdb / testsuite / aclocal.m4
1 m4_include(../../config/acx.m4)
2 m4_include(../../config/override.m4)
3 m4_include(../transform.m4)
4
5 # AM_CONDITIONAL -*- Autoconf -*-
6
7 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
8 # Free Software Foundation, Inc.
9 #
10 # This file is free software; the Free Software Foundation
11 # gives unlimited permission to copy and/or distribute it,
12 # with or without modifications, as long as this notice is preserved.
13
14 # serial 7
15
16 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
17 # -------------------------------------
18 # Define a conditional.
19 AC_DEFUN([AM_CONDITIONAL],
20 [AC_PREREQ(2.52)dnl
21 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
22 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
23 AC_SUBST([$1_TRUE])
24 AC_SUBST([$1_FALSE])
25 if $2; then
26 $1_TRUE=
27 $1_FALSE='#'
28 else
29 $1_TRUE='#'
30 $1_FALSE=
31 fi
32 AC_CONFIG_COMMANDS_PRE(
33 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
34 AC_MSG_ERROR([[conditional "$1" was never defined.
35 Usually this means the macro was only invoked conditionally.]])
36 fi])])
This page took 0.030533 seconds and 4 git commands to generate.