]> git.ipfire.org Git - thirdparty/gcc.git/blame - gnattools/configure.ac
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / gnattools / configure.ac
CommitLineData
5395b47b 1# Configure script for libada.
5c30094f 2# Copyright 2003, 2004, 2009, 2012 Free Software Foundation, Inc.
5395b47b
NN
3#
4# This file is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by
748086b7 6# the Free Software Foundation; either version 3 of the License, or
5395b47b
NN
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12# General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
748086b7
JJ
15# along with this program; see the file COPYING3. If not see
16# <http://www.gnu.org/licenses/>.
5395b47b 17
18c04407
RW
18sinclude(../config/acx.m4)
19sinclude(../config/override.m4)
20
5395b47b 21AC_INIT
5395b47b
NN
22
23AC_CONFIG_SRCDIR([Makefile.in])
24
25# Command-line options.
26# Very limited version of AC_MAINTAINER_MODE.
27AC_ARG_ENABLE([maintainer-mode],
28 [AC_HELP_STRING([--enable-maintainer-mode],
29 [enable make rules and dependencies not useful (and
30 sometimes confusing) to the casual installer])],
31 [case ${enable_maintainer_mode} in
32 yes) MAINT='' ;;
33 no) MAINT='#' ;;
34 *) AC_MSG_ERROR([--enable-maintainer-mode must be yes or no]) ;;
35 esac
36 maintainer_mode=${enableval}],
37 [MAINT='#'])
38AC_SUBST([MAINT])dnl
39
40# Start of actual configure tests
41
42AC_PROG_INSTALL
43
44AC_CANONICAL_BUILD
45AC_CANONICAL_HOST
46AC_CANONICAL_TARGET
47
47e62307 48ACX_NONCANONICAL_HOST
5395b47b
NN
49ACX_NONCANONICAL_TARGET
50
51# Need to pass this down for now :-P
52AC_PROG_LN_S
53
5395b47b
NN
54# Determine what to build for 'gnattools'
55if test $build = $target ; then
56 # Note that build=target is almost certainly the wrong test; FIXME
57 default_gnattools_target="gnattools-native"
58else
59 default_gnattools_target="gnattools-cross"
60fi
61AC_SUBST([default_gnattools_target])
62
63# Target-specific stuff (defaults)
64TOOLS_TARGET_PAIRS=
65AC_SUBST(TOOLS_TARGET_PAIRS)
66EXTRA_GNATTOOLS=
67AC_SUBST(EXTRA_GNATTOOLS)
68
69# Per-target case statement
70# -------------------------
71case "${target}" in
ff6c0ead
EB
72 *-*-aix*)
73 TOOLS_TARGET_PAIRS="\
74 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
75 indepsw.adb<indepsw-aix.adb"
5395b47b 76 ;;
ff6c0ead
EB
77 *-*-darwin*)
78 TOOLS_TARGET_PAIRS="\
79 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb \
80 indepsw.adb<indepsw-darwin.adb"
5395b47b 81 ;;
90af5990
JM
82 *-*-dragonfly*)
83 TOOLS_TARGET_PAIRS="\
84 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
85 indepsw.adb<indepsw-gnu.adb"
86 ;;
ff6c0ead
EB
87 *-*-freebsd*)
88 TOOLS_TARGET_PAIRS="\
89 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
90 indepsw.adb<indepsw-gnu.adb"
5395b47b 91 ;;
ff6c0ead 92 *-*-linux*)
5395b47b 93 TOOLS_TARGET_PAIRS="\
b4b010ad 94 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1c85c51a 95 indepsw.adb<indepsw-gnu.adb"
5395b47b 96 ;;
ff6c0ead
EB
97 *-*-solaris*)
98 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
5395b47b 99 ;;
ff6c0ead 100 *-*-vxworks*)
5395b47b 101 TOOLS_TARGET_PAIRS="\
ff6c0ead 102 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
1c85c51a 103 indepsw.adb<indepsw-gnu.adb"
5395b47b 104 ;;
ff6c0ead 105 hppa*-hp-hpux10*)
5395b47b
NN
106 ;;
107 hppa*-hp-hpux11*)
b4b010ad 108 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb"
5395b47b 109 ;;
ff6c0ead
EB
110 ia64-hp-hpux11*)
111 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb"
5395b47b 112 ;;
ff6c0ead 113 alpha*-*-vms* | alpha*-*-openvms*)
5395b47b 114 TOOLS_TARGET_PAIRS="\
b4b010ad 115 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1c85c51a
AS
116 symbols.adb<symbols-vms.adb \
117 symbols-processing.adb<symbols-processing-vms-alpha.adb"
5395b47b
NN
118 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
119 ;;
ff6c0ead 120 ia64-*-vms* | ia64-*-openvms*)
5395b47b 121 TOOLS_TARGET_PAIRS="\
b4b010ad 122 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1c85c51a
AS
123 symbols.adb<symbols-vms.adb \
124 symbols-processing.adb<symbols-processing-vms-ia64.adb"
5395b47b
NN
125 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
126 ;;
127 *-*-cygwin32* | *-*-mingw32* | *-*-pe)
128 TOOLS_TARGET_PAIRS="\
b4b010ad 129 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
5395b47b
NN
130 indepsw.adb<indepsw-mingw.adb"
131 EXTRA_GNATTOOLS='../../gnatdll$(exeext)'
132 ;;
5395b47b
NN
133esac
134
00afcaa0
PB
135# From user or toplevel makefile.
136AC_SUBST(ADA_CFLAGS)
137
47ad7893
PB
138AC_PROG_CC
139warn_cflags=
140if test "x$GCC" = "xyes"; then
141 warn_cflags='$(GCC_WARN_CFLAGS)'
142fi
143AC_SUBST(warn_cflags)
144
5395b47b
NN
145# Output: create a Makefile.
146AC_CONFIG_FILES([Makefile])
147
148AC_OUTPUT