2 # $Id: yaz-config.in,v 1.13 2002-05-13 14:13:37 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 YAZINC="$YAZINC @YAZ_CONF_CFLAGS@"
142 if test "$lib_thread" = "yes"; then
143 YAZINC="$YAZINC @CFLAGSTHREADS@"
146 if test "$lib_ssl" = "yes"; then
147 YAZINC="$YAZINC @SSL_CFLAGS@"
150 if test "$yaz_echo_help" = "yes"; then
153 if test "$yaz_echo_cflags" = "yes"; then
156 if test "$yaz_echo_libs" = "yes"; then
159 if test "$yaz_echo_tabs" = "yes"; then
162 if test "$yaz_echo_lalibs" = "yes"; then
165 if test "$yaz_echo_comp" = "yes"; then