Fix for --libs when pthread was selected on OpenBSD.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 15 Oct 2001 20:37:08 +0000 (20:37 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 15 Oct 2001 20:37:08 +0000 (20:37 +0000)
yaz-config.in

index 53578bb..6f2cd24 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: yaz-config.in,v 1.9 2001-10-05 13:55:17 adam Exp $
+# $Id: yaz-config.in,v 1.10 2001-10-15 20:37:08 adam Exp $
 yazprefix=@prefix@
 yaz_echo_cflags=no
 yaz_echo_libs=no
@@ -79,7 +79,7 @@ while test $# -gt 0; do
   shift
 done
 
-if test "$lib_thread" = "yes" -a -n "@LIBTHREAD@"; then
+if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
     yazextralibs="@LIBTHREAD@ $yazextralibs"
     lyaz="-lyazthread -lyaz"
 else
@@ -89,7 +89,7 @@ if test "$yaz_echo_source" = "yes"; then
     YAZTAB=${yaz_src_root}/tab
     YAZBIN=${yaz_build_root}/bin
     YAZLIB="-L${yaz_build_root}/lib/.libs $lyaz $yazextralibs"
-    if test "$lib_thread" = "yes"; then
+    if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
         YAZLALIB="${yaz_build_root}/lib/libyazthread.la ${yaz_build_root}/lib/libyaz.la $yazextralibs"
     else
         YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"