#!/bin/sh
-# $Id: yaz-config.in,v 1.7 2001-04-05 13:08:48 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
shift
done
-if test "$lib_thread" = "yes"; then
+if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
yazextralibs="@LIBTHREAD@ $yazextralibs"
lyaz="-lyazthread -lyaz"
else
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"
fi
if test "$lib_thread" = "yes"; then
- YAZINC="$YAZINC -D_REENTRANT"
+ YAZINC="$YAZINC @CFLAGSTHREADS@"
fi
if test "$yaz_echo_help" = "yes"; then