]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
New variable LTLIBC.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Oct 2007 14:40:56 +0000 (14:40 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:23 +0000 (12:15 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/intl.m4

index 88506f39191fcb25e48c03816b422bf22f1cce17..3af35b0fd0990398eca3f9230786c0b35ececdc9 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-27  Bruno Haible  <bruno@clisp.org>
+
+       * intl.m4 (AM_INTL_SUBDIR): Set and AC_SUBST LTLIBC.
+
 2007-10-22  Bruno Haible  <bruno@clisp.org>
 
        * ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
index 8ec0d5b810b6a97a959e561525c9210f3f95dfe5..896859ad54948637f0cf3a80236f132c44d4a096 100644 (file)
@@ -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() <http://docs.hp.com/en/1896/pthreads.html>.
+  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