From 685ec466c21bf39cbc02f7c2618013deb40d9955 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 10 Nov 2005 23:37:21 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ acinclude.m4 | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index eaeb090f9..5cee770f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-10 Pavel Roskin + + * 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 * configure.ac: Require gettext with ngettext support. It's diff --git a/acinclude.m4 b/acinclude.m4 index 5ec5676a7..90feaeb22 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -937,12 +937,13 @@ AC_DEFUN([MC_ASM_LABELS], [ mc_cv_asm_labels, [mc_cv_asm_labels=no if test -n "$GCC"; then - AC_TRY_LINK(, [ -static int function1 (void) __asm__ ("function2"); -static int function1 (void) + AC_TRY_LINK([ +int function1 (void) __asm__ ("function2"); +int function1 (void) { return 0; } +], [ return function2(); ], [mc_cv_asm_labels=yes]) fi