2 # $Id: yazpp-config.in,v 1.2 2006-12-12 14:39:02 marc Exp $
10 yazpp_src_root=@YAZPP_SRC_ROOT@
11 yazpp_build_root=@YAZPP_BUILD_ROOT@
13 yazlibs="@YAZLIB@ @LIBS@"
14 yazlalibs="@YAZLALIB@ @LIBS@"
15 YAZPPVERSION=@VERSION@
20 Usage: yaz++-config [OPTIONS] [LIBRARIES]
31 if test $# -eq 0; then
35 while test $# -gt 0; do
37 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 libs_short="-lyazpp -lzoompp"
74 if test "$yaz_echo_source" = "yes"; then
75 YAZPPLIB="-L${yazpp_build_root}/src/.libs -lyazpp"
76 YAZPPLIB="$YAZPPLIB -L${yazpp_build_root}/zoom/.libs -lzoompp"
77 YAZPPLIB="$YAZPPLIB $yazlibs"
78 YAZPPLALIB="${yazpp_build_root}/src/libyazpp.la $yazlalibs"
79 YAZPPINC="@YAZINC@ -I${yazpp_src_root}/include"
82 if test "$yazppprefix" = "/usr"; then
83 YAZPPLIB="${libs_short} $yazlibs"
85 YAZPPLIB="-L${yazppprefix}/lib ${libs_short} $yazlibs"
88 if test "$yazppprefix" = "/usr"; then
91 YAZPPINC="@YAZINC@ -I${yazppprefix}/include"
95 if test "$yaz_echo_help" = "yes"; then
98 if test "$yaz_echo_cflags" = "yes"; then
101 if test "$yaz_echo_libs" = "yes"; then
104 if test "$yaz_echo_lalibs" = "yes"; then