2 # $Id: yaz-config.in,v 1.25 2006-07-06 10:17:51 adam Exp $
10 yaz_src_root=@YAZ_SRC_ROOT@
11 yaz_build_root=@YAZ_BUILD_ROOT@
19 Usage: yaz-config [OPTIONS] [LIBRARIES]
33 while test $# -gt 0; do
35 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 YAZINC="@YAZ_CONFIG_CFLAGS@"
80 if test "$yaz_echo_source" = "yes"; then
81 YAZBIN=${yaz_build_root}/bin
82 YAZLIB="-L${yaz_build_root}/src/.libs $lyaz $yazextralibs"
83 YAZLALIB="${yaz_build_root}/src/libyaz.la $yazextralibs"
84 YAZINC="$YAZINC -I${yaz_src_root}/include"
85 YAZCOMP=${yaz_src_root}/util/yaz-asncomp
87 YAZBIN=${yazprefix}/bin
88 YAZCOMP=${yazprefix}/bin/yaz-asncomp
90 if test "$yazprefix" = "/usr"; then
91 YAZLIB="$lyaz $yazextralibs"
93 YAZLIB="-L$yazprefix/lib $lyaz $yazextralibs"
96 if test "$yazprefix" != "/usr"; then
97 YAZINC="$YAZINC -I$yazprefix/include"
101 if test "$lib_thread" = "yes"; then
102 YAZINC="$YAZINC @THREAD_CFLAGS@"
105 if test "$yaz_echo_help" = "yes"; then
108 if test "$yaz_echo_cflags" = "yes"; then
111 if test "$yaz_echo_libs" = "yes"; then
114 if test "$yaz_echo_lalibs" = "yes"; then
117 if test "$yaz_echo_comp" = "yes"; then