1
1

* acinclude.m4 (MC_ASM_LABELS): New macro to work around a bug

gettext.  Define _INTL_REDIRECT_MACROS if needed.
* configure.in: Use MC_ASM_LABELS.
Этот коммит содержится в:
Pavel Roskin 2003-03-12 00:10:23 +00:00
родитель 8c7b8d313e
Коммит d6d16e47ef
3 изменённых файлов: 35 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2003-03-11 Pavel Roskin <proski@gnu.org>
* acinclude.m4 (MC_ASM_LABELS): New macro to work around a bug
gettext. Define _INTL_REDIRECT_MACROS if needed.
* configure.in: Use MC_ASM_LABELS.
2003-03-07 Pavel Roskin <proski@gnu.org>
* configure.in: Add --with-glib-static option.

Просмотреть файл

@ -891,3 +891,31 @@ if test "$mc_cv_g_module_supported" = yes; then
[Define if gmodule functionality is supported])
fi
])
dnl
dnl Check if it's possible to use asm labels to rename functions.
dnl This macro is necessary because gettext wrongly assumes that gcc
dnl can do it regardless of the OS.
dnl
AC_DEFUN([MC_ASM_LABELS], [
AC_CACHE_CHECK([whether functions can be renamed by 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)
{
return 0;
}
return function2();
], [mc_cv_asm_labels=yes])
fi
])
if test "$mc_cv_asm_labels" != yes; then
AC_DEFINE(_INTL_REDIRECT_MACROS, 1,
[Define if functions cannot be renamed by asm labels])
fi
])

Просмотреть файл

@ -102,6 +102,7 @@ AC_FUNC_MMAP
dnl
dnl Internationalization
dnl
MC_ASM_LABELS
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION(0.11.5)