2 # This file is part of the YAZ toolkit.
3 # Copyright (C) 1995-2012 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 if test "$lib_ssl" = "yes"; then
117 LIBS="${SSL_LIBS} $LIBS"
120 YAZINC="@YAZ_CONFIG_CFLAGS@"
122 if test "$echo_source" = "yes"; then
123 YAZBIN=${build_root}/bin
125 if test "$lib_static" = "yes"; then
126 if test "$lib_ssl" != "yes"; then
127 LIBS="${SSL_LIBS} $LIBS"
129 YAZLIB="${build_root}/src/.libs/libyaz.a"
130 if test "$lib_server" = "yes"; then
131 YAZLIB="${build_root}/src/.libs/libyaz_server.a $YAZLIB"
133 if test "$lib_icu" = "yes"; then
134 YAZLIB="${build_root}/src/.libs/libyaz_icu.a $YAZLIB"
137 YAZLIB="-L${build_root}/src/.libs $YAZLIB"
139 YAZLIB="$YAZLIB $LIBS"
141 YAZLALIB="${build_root}/src/libyaz.la"
142 if test "$lib_server" = "yes"; then
143 YAZLALIB="${build_root}/src/libyaz_server.la $YAZLALIB"
145 if test "$lib_icu" = "yes"; then
146 YAZLALIB="${build_root}/src/libyaz_icu.la $YAZLALIB"
148 YAZLALIB="$YAZLALIB $LIBS"
150 YAZBINC="-I${src_root}/include"
151 YAZINC="$YAZBINC $YAZINC"
152 YAZCOMP=${src_root}/util/yaz-asncomp
155 YAZCOMP=${prefix}/bin/yaz-asncomp
157 if test "$prefix" != "/usr"; then
158 YAZLIB="-L$libdir $YAZLIB"
160 YAZLIB="$YAZLIB $LIBS"
162 if test "$prefix" != "/usr"; then
163 YAZBINC="-I${includedir}"
164 YAZINC="$YAZBINC $YAZINC"
168 if test "$lib_thread" = "yes"; then
172 if test "$lib_icu" = "yes"; then
173 YAZINC="$YAZINC $ICU_CPPFLAGS"
174 YAZLIB="$YAZLIB $ICU_LIBS"
175 YAZLALIB="$YAZLALIB $ICU_LIBS"
178 if test "$echo_help" = "yes"; then
181 if test "$echo_include" = "yes"; then
184 if test "$echo_cflags" = "yes"; then
187 if test "$echo_libs" = "yes"; then
190 if test "$echo_lalibs" = "yes"; then
193 if test "$echo_comp" = "yes"; then