2 # $Id: yaz-config.in,v 1.12 2002-03-18 12:22:00 adam Exp $
11 yaz_src_root=@YAZ_SRC_ROOT@
12 yaz_build_root=@YAZ_BUILD_ROOT@
20 Usage: yaz-config [OPTIONS] [LIBRARIES]
37 #if test $# -eq 0; then
41 while test $# -gt 0; do
43 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
93 yazextralibs="@LIBTHREAD@ $yazextralibs"
94 lyaz="-lyazthread $lyaz"
97 if test "$lib_malloc" = "yes"; then
98 lyaz="-lyazmalloc $lyaz"
101 if test "$lib_ssl" = "yes" -a -n "@SSL_LIBS@"; then
102 yazextralibs="@SSL_LIBS@ $yazextralibs"
103 lyaz="-lyazssl $lyaz"
106 if test "$yaz_echo_source" = "yes"; then
107 YAZTAB=${yaz_src_root}/tab
108 YAZBIN=${yaz_build_root}/bin
109 YAZLIB="-L${yaz_build_root}/lib/.libs $lyaz $yazextralibs"
110 YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"
111 if test "$lib_ssl" = "yes" -a -n "$SSL_LIBS@"; then
112 YAZLALIB="${yaz_build_root}/lib/libyazssl.la"
114 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
115 YAZLALIB="${yaz_build_root}/lib/libyazthread.la $YAZLALIB"
117 if test "$lib_malloc" = "yes"; then
118 YAZLALIB="${yaz_build_root}/lib/libyazmalloc.la $YAZLALIB"
120 YAZINC="-I${yaz_src_root}/include"
121 YAZCOMP=${yaz_src_root}/util/yaz-comp
123 YAZTAB=${yazprefix}/share/yaz/tab
124 YAZBIN=${yazprefix}/bin
125 YAZCOMP=${yazprefix}/bin/yaz-comp
127 if test "$yazprefix" = "/usr"; then
128 YAZLIB="$lyaz $yazextralibs"
130 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
133 if test "$yazprefix" = "/usr"; then
136 YAZINC=-I$yazprefix/include
140 if test "$lib_thread" = "yes"; then
141 YAZINC="$YAZINC @CFLAGSTHREADS@"
144 if test "$lib_ssl" = "yes"; then
145 YAZINC="$YAZINC @SSL_CFLAGS@"
148 if test "$yaz_echo_help" = "yes"; then
151 if test "$yaz_echo_cflags" = "yes"; then
154 if test "$yaz_echo_libs" = "yes"; then
157 if test "$yaz_echo_tabs" = "yes"; then
160 if test "$yaz_echo_lalibs" = "yes"; then
163 if test "$yaz_echo_comp" = "yes"; then