2 # $Id: yaz-config.in,v 1.19 2004-01-05 09:45:49 adam Exp $
10 yaz_src_root=@YAZ_SRC_ROOT@
11 yaz_build_root=@YAZ_BUILD_ROOT@
19 Usage: yaz-config [OPTIONS] [LIBRARIES]
35 #if test $# -eq 0; then
39 while test $# -gt 0; do
41 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
88 yazextralibs="@LIBTHREAD@ $yazextralibs"
89 lyaz="-lyazthread $lyaz"
92 if test "$lib_ssl" = "yes" -a -n "@SSL_LIBS@"; then
93 yazextralibs="@SSL_LIBS@ $yazextralibs"
97 if test "$yaz_echo_source" = "yes"; then
98 YAZBIN=${yaz_build_root}/bin
99 YAZLIB="-L${yaz_build_root}/src/.libs $lyaz $yazextralibs"
100 YAZLALIB="${yaz_build_root}/src/libyaz.la $yazextralibs"
101 if test "$lib_ssl" = "yes" -a -n "$SSL_LIBS@"; then
102 YAZLALIB="${yaz_build_root}/src/libyazssl.la"
104 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
105 YAZLALIB="${yaz_build_root}/src/libyazthread.la $YAZLALIB"
107 YAZINC="-I${yaz_src_root}/include"
108 YAZCOMP=${yaz_src_root}/util/yaz-comp
110 YAZBIN=${yazprefix}/bin
111 YAZCOMP=${yazprefix}/bin/yaz-comp
113 if test "$yazprefix" = "/usr"; then
114 YAZLIB="$lyaz $yazextralibs"
116 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
119 if test "$yazprefix" = "/usr"; then
122 YAZINC=-I$yazprefix/include
126 YAZINC="$YAZINC @YAZ_CONF_CFLAGS@"
128 if test "$lib_thread" = "yes"; then
129 YAZINC="$YAZINC @CFLAGSTHREADS@"
132 if test "$lib_ssl" = "yes"; then
133 YAZINC="$YAZINC @SSL_CFLAGS@"
136 if test "$yaz_echo_help" = "yes"; then
139 if test "$yaz_echo_cflags" = "yes"; then
142 if test "$yaz_echo_libs" = "yes"; then
145 if test "$yaz_echo_lalibs" = "yes"; then
148 if test "$yaz_echo_comp" = "yes"; then