* acinclude.m4 (MC_ASM_LABELS): Make the test function global

and move its definition above main().  That's closer to what
gettext is actually doing.
This commit is contained in:
Pavel Roskin 2005-11-10 23:37:21 +00:00
parent 7b3b03f9db
commit 685ec466c2
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2005-11-10 Pavel Roskin <proski@gnu.org>
* acinclude.m4 (MC_ASM_LABELS): Make the test function global
and move its definition above main(). That's closer to what
gettext is actually doing.
2005-10-03 Pavel Roskin <proski@gnu.org> 2005-10-03 Pavel Roskin <proski@gnu.org>
* configure.ac: Require gettext with ngettext support. It's * configure.ac: Require gettext with ngettext support. It's

View File

@ -937,12 +937,13 @@ AC_DEFUN([MC_ASM_LABELS], [
mc_cv_asm_labels, mc_cv_asm_labels,
[mc_cv_asm_labels=no [mc_cv_asm_labels=no
if test -n "$GCC"; then if test -n "$GCC"; then
AC_TRY_LINK(, [ AC_TRY_LINK([
static int function1 (void) __asm__ ("function2"); int function1 (void) __asm__ ("function2");
static int function1 (void) int function1 (void)
{ {
return 0; return 0;
} }
], [
return function2(); return function2();
], [mc_cv_asm_labels=yes]) ], [mc_cv_asm_labels=yes])
fi fi