]> git.ipfire.org Git - thirdparty/gcc.git/blame - gnattools/configure.ac
* Makefile.in: Fix incorrect use of ' in shell command
[thirdparty/gcc.git] / gnattools / configure.ac
CommitLineData
5395b47b
NN
1# Configure script for libada.
2# Copyright 2003, 2004 Free Software Foundation, Inc.
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
6# the Free Software Foundation; either version 2 of the License, or
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
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18AC_INIT
19AC_PREREQ([2.59])
20
21AC_CONFIG_SRCDIR([Makefile.in])
22
23# Command-line options.
24# Very limited version of AC_MAINTAINER_MODE.
25AC_ARG_ENABLE([maintainer-mode],
26 [AC_HELP_STRING([--enable-maintainer-mode],
27 [enable make rules and dependencies not useful (and
28 sometimes confusing) to the casual installer])],
29 [case ${enable_maintainer_mode} in
30 yes) MAINT='' ;;
31 no) MAINT='#' ;;
32 *) AC_MSG_ERROR([--enable-maintainer-mode must be yes or no]) ;;
33 esac
34 maintainer_mode=${enableval}],
35 [MAINT='#'])
36AC_SUBST([MAINT])dnl
37
38# Start of actual configure tests
39
40AC_PROG_INSTALL
41
42AC_CANONICAL_BUILD
43AC_CANONICAL_HOST
44AC_CANONICAL_TARGET
45
46sinclude(../config/acx.m4)
47ACX_NONCANONICAL_TARGET
48
49# Need to pass this down for now :-P
50AC_PROG_LN_S
51
52# Determine x_ada_cflags
53case $host in
54 hppa*) x_ada_cflags=-mdisable-indexing ;;
55 *) x_ada_cflags= ;;
56esac
57AC_SUBST([x_ada_cflags])
58
59# Determine what to build for 'gnattools'
60if test $build = $target ; then
61 # Note that build=target is almost certainly the wrong test; FIXME
62 default_gnattools_target="gnattools-native"
63else
64 default_gnattools_target="gnattools-cross"
65fi
66AC_SUBST([default_gnattools_target])
67
68# Target-specific stuff (defaults)
69TOOLS_TARGET_PAIRS=
70AC_SUBST(TOOLS_TARGET_PAIRS)
71EXTRA_GNATTOOLS=
72AC_SUBST(EXTRA_GNATTOOLS)
73
74# Per-target case statement
75# -------------------------
76case "${target}" in
77 alpha*-dec-vx*) # Unlike all other Vxworks
78 ;;
79 m68k*-wrs-vx* \
80 | powerpc*-wrs-vxworks \
81 | sparc*-wrs-vx* \
82 | *86-wrs-vxworks \
83 | xscale*-wrs-vx* \
84 | xscale*-wrs-coff \
85 | mips*-wrs-vx*)
86 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-vxworks.adb"
87 ;;
88 sparc-sun-solaris*)
89 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-solaris.adb"
90 ;;
91 *86-*-solaris2*)
92 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-solaris.adb"
93 ;;
94 *86-*-linux* \
95 | powerpc*-*-linux*)
96 TOOLS_TARGET_PAIRS="\
97 mlib-tgt.adb<mlib-tgt-linux.adb \
98 indepsw.adb<indepsw-linux.adb"
99 ;;
100 *ia64-*-linux* \
101 | alpha*-*-linux )
102 TOOLS_TARGET_PAIRS="\
103 mlib-tgt.adb<mlib-tgt-linux.adb \
104 indepsw.adb<indepsw-linux.adb"
105 ;;
106 *x86_64-*-linux* \
107 | s390*-*-linux*)
108 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-linux.adb"
109 ;;
110 *86-*-freebsd*)
111 TOOLS_TARGET_PAIRS="\
112 mlib-tgt.adb<mlib-tgt-linux.adb"
113 ;;
114 mips-sgi-irix*)
115 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-irix.adb"
116 ;;
117 hppa*-hp-hpux10*) # Unlike hpux11
118 ;;
119 hppa*-hp-hpux11*)
120 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-hpux.adb"
121 ;;
122 *-ibm-aix*)
123 TOOLS_TARGET_PAIRS="\
124 mlib-tgt.adb<mlib-tgt-aix.adb \
125 indepsw.adb<indepsw-aix.adb"
126 ;;
127 alpha*-dec-osf*)
128 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-tru64.adb"
129 ;;
130 alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
131 | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
132 TOOLS_TARGET_PAIRS="\
133 mlib-tgt.adb<mlib-tgt-vms-alpha.adb \
134 symbols.adb<symbols-vms-alpha.adb"
135
136 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
137 ;;
138 ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
139 | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
140 TOOLS_TARGET_PAIRS="\
141 mlib-tgt.adb<mlib-tgt-vms-ia64.adb \
142 symbols.adb<symbols-vms-ia64.adb"
143
144 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
145 ;;
146 *-*-cygwin32* | *-*-mingw32* | *-*-pe)
147 TOOLS_TARGET_PAIRS="\
148 mlib-tgt.adb<mlib-tgt-mingw.adb \
149 indepsw.adb<indepsw-mingw.adb"
150 EXTRA_GNATTOOLS='../../gnatdll$(exeext)'
151 ;;
152 powerpc-*-darwin*)
153 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-darwin.adb"
154 ;;
155 *-*-lynxos)
156 TOOLS_TARGET_PAIRS="mlib-tgt.adb<mlib-tgt-lynxos.adb"
157 ;;
158esac
159
160# Output: create a Makefile.
161AC_CONFIG_FILES([Makefile])
162
163AC_OUTPUT