2 # $Id: yaz-config.in,v 1.6 2001-03-20 15:58:24 adam Exp $
10 yaz_src_root=@YAZ_SRC_ROOT@
11 yaz_build_root=@YAZ_BUILD_ROOT@
19 Usage: yaz-config [OPTIONS] [LIBRARIES]
33 #if test $# -eq 0; then
37 while test $# -gt 0; do
39 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 if test "$lib_thread" = "yes"; then
78 yazextralibs="@LIBTHREAD@ $yazextralibs"
79 lyaz="-lyazthread -lyaz"
83 if test "$yaz_echo_source" = "yes"; then
84 YAZTAB=${yaz_src_root}/tab
85 YAZBIN=${yaz_build_root}/bin
86 YAZLIB="-L${yaz_build_root}/lib/.libs $lyaz $yazextralibs"
87 if test "$lib_thread" = "yes"; then
88 YAZLALIB="${yaz_build_root}/lib/libyazthread.la ${yaz_build_root}/lib/libyaz.la $yazextralibs"
90 YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"
92 YAZINC="-I${yaz_src_root}/include"
94 YAZTAB=$yazprefix/share/yaz/tab
97 if test "$yazprefix" = "/usr"; then
98 YAZLIB="$lyaz $yazextralibs"
100 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
103 if test "$yazprefix" = "/usr"; then
106 YAZINC=-I$yazprefix/include
110 if test "$lib_thread" = "yes"; then
111 YAZINC="$YAZINC -D_REENTRANT"
114 if test "$yaz_echo_help" = "yes"; then
117 if test "$yaz_echo_cflags" = "yes"; then
120 if test "$yaz_echo_libs" = "yes"; then
123 if test "$yaz_echo_tabs" = "yes"; then
126 if test "$yaz_echo_lalibs" = "yes"; then