1 dnl GAS_CHECK_DECL_NEEDED(name, typedefname, typedef, headers)
2 AC_DEFUN(GAS_CHECK_DECL_NEEDED,[
3 AC_MSG_CHECKING(whether declaration is required for $1)
4 AC_CACHE_VAL(gas_cv_decl_needed_$1,
10 ], gas_cv_decl_needed_$1=no, gas_cv_decl_needed_$1=yes))dnl
11 AC_MSG_RESULT($gas_cv_decl_needed_$1)
12 if test $gas_cv_decl_needed_$1 = yes; then
13 AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]), 1,
14 [Define if $1 is not declared in system header files.])
18 dnl Some non-ANSI preprocessors botch requoting inside strings. That's bad
19 dnl enough, but on some of those systems, the assert macro relies on requoting
21 dnl GAS_WORKING_ASSERT
22 AC_DEFUN(GAS_WORKING_ASSERT,
23 [AC_MSG_CHECKING([for working assert macro])
24 AC_CACHE_VAL(gas_cv_assert_ok,
25 AC_TRY_LINK([#include <assert.h>
26 #include <stdio.h>], [
27 /* check for requoting problems */
28 static int a, b, c, d;
30 assert (!strcmp(s, "foo bar baz quux"));
31 /* check for newline handling */
34 ], gas_cv_assert_ok=yes, gas_cv_assert_ok=no))dnl
35 AC_MSG_RESULT($gas_cv_assert_ok)
36 test $gas_cv_assert_ok = yes || AC_DEFINE(BROKEN_ASSERT, 1, [assert broken?])
39 dnl Since many Bourne shell implementations lack subroutines, use this
40 dnl hack to simplify the code in configure.in.
43 [_gas_uniq_list="[$]$1"
45 dnl Protect against empty input list.
46 for _gas_uniq_i in _gas_uniq_dummy [$]_gas_uniq_list ; do
47 case [$]_gas_uniq_i in
49 *) case " [$]_gas_uniq_newlist " in
50 *" [$]_gas_uniq_i "*) ;;
51 *) _gas_uniq_newlist="[$]_gas_uniq_newlist [$]_gas_uniq_i" ;;
55 $1=[$]_gas_uniq_newlist
58 sinclude(../libtool.m4)
59 dnl The lines below arrange for aclocal not to bring libtool.m4
60 dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
61 dnl to add a definition of LIBTOOL to Makefile.in.
63 AC_DEFUN([AM_PROG_LIBTOOL],)
64 AC_DEFUN([AC_CHECK_LIBM],)
68 sinclude(../gettext.m4)
70 AC_DEFUN([CY_WITH_NLS],)