2 # $Id: idzebra-config.in,v 1.2 2004-08-30 21:36:53 adam Exp $
8 idzebra_echo_source=yes
10 idzebra_src_root=@IDZEBRA_SRC_ROOT@
11 idzebra_build_root=@IDZEBRA_BUILD_ROOT@
13 extralibs="@YAZLIB@ @TCL_LIB@ @LIBS@"
14 extralalibs="@YAZLALIB@ @TCL_LIB@ @LIBS@"
15 IDZEBRAVERSION=@VERSION@
20 Usage: idzebra-config [OPTIONS] [LIBRARIES]
31 if test $# -eq 0; then
36 while test $# -gt 0; do
38 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
55 idzebra_echo_cflags=yes
64 idzebra_echo_lalibs=yes
80 if test -z "$modules"; then
81 modules="api rset recctrl dict isams isamc isamb data1 bfile dfa util"
86 if test "$m" = "api"; then
89 if test "$idzebra_echo_source" = "yes"; then
90 IDZEBRALIB="$IDZEBRALIB -L${idzebra_build_root}/$d/.libs -lidzebra-$m"
91 IDZEBRALALIB="$IDZEBRALALIB ${idzebra_build_root}/$d/libidzebra-$m.la"
93 IDZEBRALIB="$IDZEBRALIB -lidzebra-$m"
97 if test "$idzebra_echo_source" = "yes"; then
98 IDZEBRALIB="$IDZEBRALIB $extralibs"
99 IDZEBRALALIB="$IDZEBRALALIB $extralalibs"
100 IDZEBRAINC="$IDZEBRAINC -I${idzebra_src_root}/include"
102 if test "$idzebraprefix" != "/usr"; then
103 IDZEBRALIB="-L${idzebraprefix}/lib $IDZEBRALIB"
104 IDZEBRAINC="$IDZEBRAINC -I${idzebraprefix}/include"
106 IDZEBRALIB="$IDZEBRALIB $extralibs"
107 IDZEBRALALIB="$IDZEBRALIB"
110 if test "$idzebra_echo_help" = "yes"; then
113 if test "$idzebra_echo_cflags" = "yes"; then
116 if test "$idzebra_echo_libs" = "yes"; then
119 if test "$idzebra_echo_lalibs" = "yes"; then