threadlib: Make option --with-libpth-prefix work.
authorBruno Haible <bruno@clisp.org>
Tue, 5 Oct 2010 01:19:16 +0000 (03:19 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 5 Oct 2010 01:20:09 +0000 (03:20 +0200)
* m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
use $LIBPTH, not just -lpth.

ChangeLog
m4/threadlib.m4

index b466ae874b3fd064e8e7112a508f7d5a6c44ed83..8479498e36449bb71606d88742052e608cce8651 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-04  Bruno Haible  <bruno@clisp.org>
+
+       threadlib: Make option --with-libpth-prefix work.
+       * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
+       use $LIBPTH, not just -lpth.
+
 2010-10-04  Bruno Haible  <bruno@clisp.org>
 
        Avoid line length limitation from HP NonStop system header files.
index 2459930bc5c93c385543a3fdd08ccb7d9f400899..423c17c768b145e0b5aa319e6dc2d0a868ecf42a 100644 (file)
@@ -1,4 +1,4 @@
-# threadlib.m4 serial 7 (gettext-0.18.2)
+# threadlib.m4 serial 8 (gettext-0.18.2)
 dnl Copyright (C) 2005-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -250,7 +250,7 @@ int main ()
       AC_LIB_LINKFLAGS([pth])
       gl_have_pth=
       gl_save_LIBS="$LIBS"
-      LIBS="$LIBS -lpth"
+      LIBS="$LIBS $LIBPTH"
       AC_LINK_IFELSE(
         [AC_LANG_PROGRAM([[#include <pth.h>]], [[pth_self();]])],
         [gl_have_pth=yes])