2 # $Id: yaz-config.in,v 1.14 2002-12-09 23:29:00 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_malloc" = "yes"; then
93 lyaz="-lyazmalloc $lyaz"
96 if test "$lib_ssl" = "yes" -a -n "@SSL_LIBS@"; then
97 yazextralibs="@SSL_LIBS@ $yazextralibs"
101 if test "$yaz_echo_source" = "yes"; then
102 YAZBIN=${yaz_build_root}/bin
103 YAZLIB="-L${yaz_build_root}/lib/.libs $lyaz $yazextralibs"
104 YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"
105 if test "$lib_ssl" = "yes" -a -n "$SSL_LIBS@"; then
106 YAZLALIB="${yaz_build_root}/lib/libyazssl.la"
108 if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then
109 YAZLALIB="${yaz_build_root}/lib/libyazthread.la $YAZLALIB"
111 if test "$lib_malloc" = "yes"; then
112 YAZLALIB="${yaz_build_root}/lib/libyazmalloc.la $YAZLALIB"
114 YAZINC="-I${yaz_src_root}/include"
115 YAZCOMP=${yaz_src_root}/util/yaz-comp
117 YAZBIN=${yazprefix}/bin
118 YAZCOMP=${yazprefix}/bin/yaz-comp
120 if test "$yazprefix" = "/usr"; then
121 YAZLIB="$lyaz $yazextralibs"
123 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
126 if test "$yazprefix" = "/usr"; then
129 YAZINC=-I$yazprefix/include
133 YAZINC="$YAZINC @YAZ_CONF_CFLAGS@"
135 if test "$lib_thread" = "yes"; then
136 YAZINC="$YAZINC @CFLAGSTHREADS@"
139 if test "$lib_ssl" = "yes"; then
140 YAZINC="$YAZINC @SSL_CFLAGS@"
143 if test "$yaz_echo_help" = "yes"; then
146 if test "$yaz_echo_cflags" = "yes"; then
149 if test "$yaz_echo_libs" = "yes"; then
152 if test "$yaz_echo_lalibs" = "yes"; then
155 if test "$yaz_echo_comp" = "yes"; then