returns static libs rather than shared libs for in-source compilations.
This is to make Pazpar2 work for local builds when YAZ is built
both statically and with shared objects. We have not seen this problem
before because most other applications are built with Libtool. And
these that aren't, such as PHP / Perl extensions deal with shared
objects fine.
-# $Id: yaz-config.in,v 1.28 2007-04-17 20:26:18 adam Exp $
+# $Id: yaz-config.in,v 1.29 2007-04-18 13:40:19 adam Exp $
yazprefix=@prefix@
yaz_echo_cflags=no
yaz_echo_libs=no
yazprefix=@prefix@
yaz_echo_cflags=no
yaz_echo_libs=no
lib_thread=yes
lib_server=yes
;;
lib_thread=yes
lib_server=yes
;;
+ static)
+ lib_static=yes
+ ;;
if test "$yaz_echo_source" = "yes"; then
YAZBIN=${yaz_build_root}/bin
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"
YAZLIB="$YAZLIB $yazextralibs"
YAZLALIB="${yaz_build_root}/src/libyaz.la"