* mips-tdep.c (mips_integer_to_address): Simplify be calling
[deliverable/binutils-gdb.git] / gas / acinclude.m4
CommitLineData
9e9b66a9 1sinclude(../bfd/warning.m4)
20e95c23
DJ
2sinclude(../config/gettext-sister.m4)
3sinclude(../config/nls.m4)
4sinclude(../config/po.m4)
5sinclude(../config/progtest.m4)
9e9b66a9 6
252b5132 7dnl GAS_CHECK_DECL_NEEDED(name, typedefname, typedef, headers)
f8b73030 8AC_DEFUN([GAS_CHECK_DECL_NEEDED],[
252b5132
RH
9AC_MSG_CHECKING(whether declaration is required for $1)
10AC_CACHE_VAL(gas_cv_decl_needed_$1,
11AC_TRY_LINK([$4],
12[
13typedef $3;
14$2 x;
15x = ($2) $1;
16], gas_cv_decl_needed_$1=no, gas_cv_decl_needed_$1=yes))dnl
17AC_MSG_RESULT($gas_cv_decl_needed_$1)
18if test $gas_cv_decl_needed_$1 = yes; then
19 AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]), 1,
20 [Define if $1 is not declared in system header files.])
21fi
22])dnl
23dnl
24dnl Some non-ANSI preprocessors botch requoting inside strings. That's bad
25dnl enough, but on some of those systems, the assert macro relies on requoting
26dnl working properly!
27dnl GAS_WORKING_ASSERT
f8b73030 28AC_DEFUN([GAS_WORKING_ASSERT],
252b5132
RH
29[AC_MSG_CHECKING([for working assert macro])
30AC_CACHE_VAL(gas_cv_assert_ok,
31AC_TRY_LINK([#include <assert.h>
32#include <stdio.h>], [
33/* check for requoting problems */
34static int a, b, c, d;
35static char *s;
36assert (!strcmp(s, "foo bar baz quux"));
37/* check for newline handling */
38assert (a == b
39 || c == d);
40], gas_cv_assert_ok=yes, gas_cv_assert_ok=no))dnl
41AC_MSG_RESULT($gas_cv_assert_ok)
42test $gas_cv_assert_ok = yes || AC_DEFINE(BROKEN_ASSERT, 1, [assert broken?])
43])dnl
44dnl
45dnl Since many Bourne shell implementations lack subroutines, use this
46dnl hack to simplify the code in configure.in.
47dnl GAS_UNIQ(listvar)
f8b73030 48AC_DEFUN([GAS_UNIQ],
252b5132
RH
49[_gas_uniq_list="[$]$1"
50_gas_uniq_newlist=""
51dnl Protect against empty input list.
52for _gas_uniq_i in _gas_uniq_dummy [$]_gas_uniq_list ; do
53 case [$]_gas_uniq_i in
54 _gas_uniq_dummy) ;;
55 *) case " [$]_gas_uniq_newlist " in
56 *" [$]_gas_uniq_i "*) ;;
57 *) _gas_uniq_newlist="[$]_gas_uniq_newlist [$]_gas_uniq_i" ;;
58 esac ;;
59 esac
60done
61$1=[$]_gas_uniq_newlist
62])dnl
ac48eca1
AO
63
64sinclude(../libtool.m4)
65dnl The lines below arrange for aclocal not to bring libtool.m4
66dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
67dnl to add a definition of LIBTOOL to Makefile.in.
68ifelse(yes,no,[
69AC_DEFUN([AM_PROG_LIBTOOL],)
70AC_DEFUN([AC_CHECK_LIBM],)
71AC_SUBST(LIBTOOL)
72])
This page took 0.38443 seconds and 4 git commands to generate.