2 # This file is part of the YAZ toolkit.
3 # Copyright (C) 1995-2008 Index Data
12 yaz_src_root=@YAZ_SRC_ROOT@
13 yaz_build_root=@YAZ_BUILD_ROOT@
15 ICU_CPPFLAGS="@ICU_CPPFLAGS@"
19 VERSION_SHA1=@VERSION_SHA1@
24 Usage: yaz-config [OPTIONS] [LIBRARIES]
39 while test $# -gt 0; do
41 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
54 echo "$YAZVERSION $VERSION_SHA1"
77 if test "$ICU_CPPFLAGS"; then
96 if test "$lib_server" = "yes"; then
97 lyaz="-lyaz_server $lyaz"
100 if test "$lib_icu" = "yes"; then
101 lyaz="-lyaz_icu $lyaz"
104 YAZINC="@YAZ_CONFIG_CFLAGS@"
106 if test "$yaz_echo_source" = "yes"; then
107 YAZBIN=${yaz_build_root}/bin
109 if test "$lib_static" = "yes"; then
110 YAZLIB="${yaz_build_root}/src/.libs/libyaz.a"
111 if test "$lib_server" = "yes"; then
112 YAZLIB="${yaz_build_root}/src/.libs/libyaz_server.a $YAZLIB"
114 if test "$lib_icu" = "yes"; then
115 YAZLIB="${yaz_build_root}/src/.libs/libyaz_icu.a $YAZLIB"
118 YAZLIB="-L${yaz_build_root}/src/.libs $lyaz"
120 YAZLIB="$YAZLIB ${SSL_LIBS} $LIBS"
122 YAZLALIB="${yaz_build_root}/src/libyaz.la"
123 if test "$lib_server" = "yes"; then
124 YAZLALIB="${yaz_build_root}/src/libyaz_server.la $YAZLALIB"
126 if test "$lib_icu" = "yes"; then
127 YAZLALIB="${yaz_build_root}/src/libyaz_icu.la $YAZLALIB"
129 YAZLALIB="$YAZLALIB $LIBS"
131 YAZINC="-I${yaz_src_root}/include $YAZINC"
132 YAZCOMP=${yaz_src_root}/util/yaz-asncomp
134 YAZBIN=${yazprefix}/bin
135 YAZCOMP=${yazprefix}/bin/yaz-asncomp
137 if test "$yazprefix" != "/usr"; then
138 YAZLIB="-L$yazprefix/lib"
140 YAZLIB="$YAZLIB $lyaz ${SSL_LIBS} $LIBS"
142 if test "$yazprefix" != "/usr"; then
143 YAZINC="-I$yazprefix/include $YAZINC"
147 if test "$lib_thread" = "yes"; then
151 if test "$lib_icu" = "yes"; then
152 YAZINC="$YAZINC $ICU_CPPFLAGS"
153 YAZLIB="$YAZLIB $ICU_LIBS"
154 YAZLALIB="$YAZLALIB $ICU_LIBS"
157 if test "$yaz_echo_help" = "yes"; then
160 if test "$yaz_echo_cflags" = "yes"; then
163 if test "$yaz_echo_libs" = "yes"; then
166 if test "$yaz_echo_lalibs" = "yes"; then
169 if test "$yaz_echo_comp" = "yes"; then