]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/configure.ac
Bump to autoconf 2.69 and automake 1.15.1
[thirdparty/binutils-gdb.git] / gdb / testsuite / configure.ac
CommitLineData
b39c905e
MK
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
c906108c 3
e2882c85 4# Copyright 2002-2018 Free Software Foundation, Inc.
b39c905e
MK
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
5a0e3bd0
JB
8# the Free Software Foundation; either version 3 of the License, or
9# (at your option) any later version.
b39c905e
MK
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
5a0e3bd0 17# along with this program. If not, see <http://www.gnu.org/licenses/>.
b39c905e 18
c906108c
SS
19AC_INIT(gdb.base)
20
b39c905e
MK
21AC_CANONICAL_BUILD
22AC_CANONICAL_HOST
23AC_CANONICAL_TARGET
c906108c 24
be2a5f71
DJ
25ACX_NONCANONICAL_TARGET
26
a13c5393
YQ
27# Enable gdbtk.
28AC_ARG_ENABLE(gdbtk,
29[ --enable-gtk enable gdbtk graphical user interface (GUI)],,
30 [if test -d $srcdir/../gdbtk && test -d $srcdir/gdb.gdbtk; then
31 enable_gdbtk=yes
32 else
33 enable_gdbtk=no
34 fi])
35# We unconditionally disable gdbtk tests on selected platforms.
36case $host_os in
37 go32* | windows*)
38 enable_gdbtk=no ;;
39esac
40
41# Add gdbtk tests when appropriate.
42if test $enable_gdbtk = yes; then
43 AC_CONFIG_SUBDIRS(gdb.gdbtk)
44fi
45
b39c905e 46# Enable shared libraries.
c906108c 47AC_ARG_ENABLE(shared,
b39c905e
MK
48[ --enable-shared build shared libraries [deault=yes]],,
49 enable_shared=yes)
50
51# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
52# such that we can find the shared libraries in the build tree.
53if test $enable_shared = no; then
54 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
55 # platform.
56 RPATH_ENVVAR=RPATH_ENVVAR
57else
58 # The variable `LD_LIBRARY_PATH' is used on most platforms.
59 RPATH_ENVVAR=LD_LIBRARY_PATH
60 # The following exceptions are taken from Libtool 1.4.3.
61 case $host_os in
62 aix*)
63 if test $host_cpu != ia64; then
64 RPATH_ENVVAR=LIBPATH
65 fi ;;
66 darwin* | rhapsody*)
67 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
c906108c
SS
68 esac
69fi
70AC_SUBST(RPATH_ENVVAR)
3fc11d3e 71
dc62bfc2
MK
72AC_CHECK_HEADERS(pthread.h)
73
93076499
ND
74AC_EXEEXT
75
2a31c623
PA
76if test "${build}" = "${host}" -a "${host}" = "${target}"; then
77 case "${host}" in
78 *gnu*)
79 EXTRA_RULES=read1
80 ;;
81 esac
82fi
83AC_SUBST(EXTRA_RULES)
84
497c491b
JM
85# Transform the name of some programs and generate the lib/pdtrace
86# test tool.
87AC_ARG_PROGRAM
f6a88844
JM
88GDB_AC_TRANSFORM(strip, STRIP_TRANSFORM_NAME)
89GDB_AC_TRANSFORM(readelf, READELF_TRANSFORM_NAME)
90GDB_AC_TRANSFORM(as, GAS_TRANSFORM_NAME)
91GDB_AC_TRANSFORM(nm, NM_TRANSFORM_NAME)
497c491b 92AC_CONFIG_FILES([lib/pdtrace], [chmod +x lib/pdtrace])
1e94266c 93AC_CONFIG_FILES([Makefile])
497c491b 94
1e94266c 95AC_OUTPUT