2 # This file is part of the YAZ toolkit.
3 # Copyright (C) 1995-2013 Index Data
6 exec_prefix=@exec_prefix@
8 includedir=@includedir@
16 src_root=@abs_top_srcdir@
17 build_root=@abs_top_builddir@
19 ICU_CPPFLAGS="@ICU_CPPFLAGS@"
24 VERSION_SHA1=@VERSION_SHA1@
29 Usage: yaz-config [OPTIONS] [LIBRARIES]
40 threads icu server static
45 while test $# -gt 0; do
47 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
60 echo "$VERSION $VERSION_SHA1"
86 if test "$ICU_CPPFLAGS"; then
108 if test "$lib_server" = "yes"; then
109 YAZLIB="-lyaz_server $YAZLIB"
112 if test "$lib_icu" = "yes"; then
113 YAZLIB="-lyaz_icu $YAZLIB"
116 YAZINC="@YAZ_CONFIG_CFLAGS@"
118 if test "$echo_source" = "yes"; then
119 YAZBIN=${build_root}/bin
121 if test "$lib_static" = "yes"; then
122 YAZLIB="${build_root}/src/.libs/libyaz.a"
123 if test "$lib_server" = "yes"; then
124 YAZLIB="${build_root}/src/.libs/libyaz_server.a $YAZLIB"
126 if test "$lib_icu" = "yes"; then
127 YAZLIB="${build_root}/src/.libs/libyaz_icu.a $YAZLIB"
130 YAZLIB="-L${build_root}/src/.libs $YAZLIB"
132 LIBS="${SSL_LIBS} $LIBS"
133 YAZLIB="$YAZLIB $LIBS"
135 YAZLALIB="${build_root}/src/libyaz.la"
136 if test "$lib_server" = "yes"; then
137 YAZLALIB="${build_root}/src/libyaz_server.la $YAZLALIB"
139 if test "$lib_icu" = "yes"; then
140 YAZLALIB="${build_root}/src/libyaz_icu.la $YAZLALIB"
142 YAZLALIB="$YAZLALIB $LIBS"
144 YAZBINC="-I${src_root}/include"
145 YAZINC="$YAZBINC $YAZINC"
146 YAZCOMP=${src_root}/util/yaz-asncomp
149 YAZCOMP=${prefix}/bin/yaz-asncomp
151 if test "$prefix" != "/usr"; then
152 YAZLIB="-L$libdir $YAZLIB"
154 if test "$lib_ssl" = "yes"; then
155 LIBS="${SSL_LIBS} $LIBS"
157 YAZLIB="$YAZLIB $LIBS"
159 if test "$prefix" != "/usr"; then
160 YAZBINC="-I${includedir}"
161 YAZINC="$YAZBINC $YAZINC"
165 if test "$lib_thread" = "yes"; then
169 if test "$lib_icu" = "yes"; then
170 YAZINC="$YAZINC $ICU_CPPFLAGS"
171 YAZLIB="$YAZLIB $ICU_LIBS"
172 YAZLALIB="$YAZLALIB $ICU_LIBS"
175 if test "$echo_help" = "yes"; then
178 if test "$echo_include" = "yes"; then
181 if test "$echo_cflags" = "yes"; then
184 if test "$echo_libs" = "yes"; then
187 if test "$echo_lalibs" = "yes"; then
190 if test "$echo_comp" = "yes"; then