]>
Commit | Line | Data |
---|---|---|
760b3e8b MF |
1 | dnl Copyright (C) 1997-2021 Free Software Foundation, Inc. |
2 | dnl | |
3 | dnl This program is free software; you can redistribute it and/or modify | |
4 | dnl it under the terms of the GNU General Public License as published by | |
5 | dnl the Free Software Foundation; either version 3 of the License, or | |
6 | dnl (at your option) any later version. | |
7 | dnl | |
8 | dnl This program is distributed in the hope that it will be useful, | |
9 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | dnl GNU General Public License for more details. | |
12 | dnl | |
13 | dnl You should have received a copy of the GNU General Public License | |
14 | dnl along with this program. If not, see <http://www.gnu.org/licenses/>. | |
15 | dnl | |
16 | dnl SIM_AC_COMMON invokes AC macros used by all simulators and by the common | |
17 | dnl directory. It is intended to be invoked before any target specific stuff. | |
18 | dnl SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. | |
19 | dnl It is intended to be invoked last. | |
20 | dnl | |
21 | dnl See README-HACKING for more details. | |
22 | AC_DEFUN([SIM_AC_COMMON], | |
c2783492 MF |
23 | [dnl |
24 | SIM_AC_TOOLCHAIN | |
760b3e8b | 25 | |
760b3e8b MF |
26 | # Dependency checking. |
27 | ZW_CREATE_DEPDIR | |
28 | ZW_PROG_COMPILER_DEPENDENCIES([CC]) | |
29 | ||
760b3e8b MF |
30 | dnl We don't use gettext, but bfd does. So we do the appropriate checks |
31 | dnl to see if there are intl libraries we should link against. | |
32 | ALL_LINGUAS= | |
33 | ZW_GNU_GETTEXT_SISTER_DIR(../../intl) | |
34 | ||
760b3e8b MF |
35 | # Check for socket libraries |
36 | AC_CHECK_LIB(socket, bind) | |
37 | AC_CHECK_LIB(nsl, gethostbyname) | |
38 | ||
39 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by | |
40 | # using the same condition. | |
41 | AM_ZLIB | |
42 | ||
43 | # BFD uses libdl when when plugins enabled. | |
44 | AC_PLUGINS | |
45 | AM_CONDITIONAL(PLUGINS, test "$plugins" = yes) | |
46 | LT_INIT([dlopen]) | |
47 | AC_SUBST(lt_cv_dlopen_libs) | |
48 | ||
760b3e8b MF |
49 | dnl We don't use automake, but we still want to support |
50 | dnl --enable-maintainer-mode. | |
51 | AM_MAINTAINER_MODE | |
52 | ||
760b3e8b | 53 | SIM_AC_OPTION_INLINE |
760b3e8b | 54 | ]) dnl End of SIM_AC_COMMON |