2 # $Id: idzebra-config.in,v 1.3 2004-08-30 22:12:45 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]
32 if test $# -eq 0; then
37 while test $# -gt 0; do
39 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
56 idzebra_echo_cflags=yes
65 idzebra_echo_lalibs=yes
81 if test -z "$modules"; then
82 modules="api rset recctrl dict isams isamc isamb data1 bfile dfa util"
87 if test "$m" = "api"; then
90 if test "$idzebra_echo_source" = "yes"; then
91 IDZEBRALIB="$IDZEBRALIB -L${idzebra_build_root}/$d/.libs -lidzebra-$m"
92 IDZEBRALALIB="$IDZEBRALALIB ${idzebra_build_root}/$d/libidzebra-$m.la"
94 IDZEBRALIB="$IDZEBRALIB -lidzebra-$m"
98 if test "$idzebra_echo_source" = "yes"; then
99 IDZEBRALIB="$IDZEBRALIB $extralibs"
100 IDZEBRALALIB="$IDZEBRALALIB $extralalibs"
101 IDZEBRAINC="$IDZEBRAINC -I${idzebra_src_root}/include"
102 IDZEBRATAB="${idzebra_src_root}/tab"
104 if test "$prefix" != "/usr"; then
105 IDZEBRALIB="-L${prefix}/lib $IDZEBRALIB"
106 IDZEBRAINC="$IDZEBRAINC -I${prefix}/include"
108 IDZEBRALIB="$IDZEBRALIB $extralibs"
109 IDZEBRALALIB="$IDZEBRALIB"
110 IDZEBRATAB="@datadir@/idzebra/tab"
113 if test "$idzebra_echo_help" = "yes"; then
116 if test "$idzebra_echo_cflags" = "yes"; then
119 if test "$idzebra_echo_libs" = "yes"; then
122 if test "$idzebra_echo_lalibs" = "yes"; then
125 if test "$idzebra_echo_tab" = "yes"; then