From: Bruno Haible Date: Sat, 27 Oct 2007 14:40:56 +0000 (+0000) Subject: New variable LTLIBC. X-Git-Tag: v0.17~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9898d49825ebadb0e07717f141555ef8c9bfa3d7;p=thirdparty%2Fgettext.git New variable LTLIBC. --- diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index 88506f391..3af35b0fd 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,7 @@ +2007-10-27 Bruno Haible + + * intl.m4 (AM_INTL_SUBDIR): Set and AC_SUBST LTLIBC. + 2007-10-22 Bruno Haible * ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not diff --git a/gettext-runtime/m4/intl.m4 b/gettext-runtime/m4/intl.m4 index 8ec0d5b81..896859ad5 100644 --- a/gettext-runtime/m4/intl.m4 +++ b/gettext-runtime/m4/intl.m4 @@ -1,4 +1,4 @@ -# intl.m4 serial 7 (gettext-0.16.2) +# intl.m4 serial 8 (gettext-0.16.2) dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -119,6 +119,18 @@ AC_DEFUN([AM_INTL_SUBDIR], AC_CHECK_TOOL([WINDRES], [windres]) fi + dnl Determine whether when creating a library, "-lc" should be passed to + dnl libtool or not. On many platforms, it is required for the libtool option + dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool + dnl in the *.la files - makes it impossible to create multithreaded programs, + dnl because libtool also reorders the -lc to come before the -pthread, and + dnl this disables pthread_create() . + case "$host_os" in + hpux*) LTLIBC="" ;; + *) LTLIBC="-lc" ;; + esac + AC_SUBST([LTLIBC]) + dnl Rename some macros and functions used for locking. AH_BOTTOM([ #define __libc_lock_t gl_lock_t