X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=yaz-config.in;h=6f2cd240dd1ca7e1a70d0f64cd6ebfb7db361203;hp=ef737b922552cb9d33a46cd2bee8fd39cc0c6a4f;hb=e46cd1b274c0f3328ebb091fa61fb41352638778;hpb=772d9a39dd0e3e139ab975d7d45d1262f5471164 diff --git a/yaz-config.in b/yaz-config.in index ef737b9..6f2cd24 100644 --- a/yaz-config.in +++ b/yaz-config.in @@ -1,5 +1,5 @@ #!/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 @@ -79,7 +79,7 @@ while test $# -gt 0; do shift done -if test "$lib_thread" = "yes"; 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" @@ -115,7 +115,7 @@ else fi if test "$lib_thread" = "yes"; then - YAZINC="$YAZINC -D_REENTRANT" + YAZINC="$YAZINC @CFLAGSTHREADS@" fi if test "$yaz_echo_help" = "yes"; then