X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=yaz-config.in;h=5eba75645a3cc77dbed3c1d0a3bc7a1922a05764;hb=0725af5d06bfcdaf9888886f04c63810c1d8cf72;hp=e57da01f2ca71fad8303d861e243b74103bdd958;hpb=dc4414aeda179bc8ebe3fc46ac53e4a24d265d16;p=yaz-moved-to-github.git diff --git a/yaz-config.in b/yaz-config.in index e57da01..5eba756 100644 --- a/yaz-config.in +++ b/yaz-config.in @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: yaz-config.in,v 1.28 2007-04-17 20:26:18 adam Exp $ +# $Id: yaz-config.in,v 1.30 2007-04-18 18:46:37 adam Exp $ yazprefix=@prefix@ yaz_echo_cflags=no yaz_echo_libs=no @@ -69,6 +69,9 @@ while test $# -gt 0; do lib_thread=yes lib_server=yes ;; + static) + lib_static=yes + ;; -*) yaz_echo_help=yes ;; @@ -86,7 +89,14 @@ YAZINC="@YAZ_CONFIG_CFLAGS@" if test "$yaz_echo_source" = "yes"; then YAZBIN=${yaz_build_root}/bin - YAZLIB="-L${yaz_build_root}/src/.libs $lyaz" + if test "$lib_static" = "yes"; then + YAZLIB="${yaz_build_root}/src/.libs/libyaz.a" + if test "$lib_server" = "yes"; then + YAZLIB="${yaz_build_root}/src/.libs/libyaz_server.a $YAZLIB" + fi + else + YAZLIB="-L${yaz_build_root}/src/.libs $lyaz" + fi YAZLIB="$YAZLIB $yazextralibs" YAZLALIB="${yaz_build_root}/src/libyaz.la" @@ -113,10 +123,8 @@ fi if test "$lib_thread" = "yes"; then YAZINC="$PTHREAD_CFLAGS $YAZINC" -fi - -if test "$lib_thread" = "yes"; then YAZLIB="$YAZLIB $PTHREAD_LIBS" + YAZLALIB="$YAZLALIB $PTHREAD_LIBS" fi if test "$yaz_echo_help" = "yes"; then