2 # $Id: idzebra-config.in,v 1.6 2005-08-09 08:58:18 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@ @EXPAT_LIBS@ @XSLT_LIBS@ @LIBS@ "
14 extralalibs="@YAZLALIB@ @TCL_LIB@ @EXPAT_LIBS@ @XSLT_LIBS@ @LIBS@"
15 IDZEBRAVERSION=@VERSION@
20 Usage: idzebra-config [OPTIONS] [LIBRARIES]
33 if test $# -eq 0; then
38 while test $# -gt 0; do
40 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
57 idzebra_echo_cflags=yes
66 idzebra_echo_modules=yes
69 idzebra_echo_lalibs=yes
85 if test -z "$modules"; then
86 modules="api rset recctrl dict isams isamc isamb data1 bfile dfa util"
91 if test "$m" = "api"; then
94 if test "$idzebra_echo_source" = "yes"; then
95 IDZEBRALIB="$IDZEBRALIB -L${idzebra_build_root}/$d/.libs -lidzebra-$m"
96 IDZEBRALALIB="$IDZEBRALALIB ${idzebra_build_root}/$d/libidzebra-$m.la"
98 IDZEBRALIB="$IDZEBRALIB -lidzebra-$m"
102 if test "$idzebra_echo_source" = "yes"; then
103 IDZEBRALIB="$IDZEBRALIB $extralibs"
104 IDZEBRALALIB="$IDZEBRALALIB $extralalibs"
105 IDZEBRAINC="$IDZEBRAINC -I${idzebra_src_root}/include"
106 IDZEBRATAB="${idzebra_src_root}/tab"
108 if test "$prefix" != "/usr"; then
109 IDZEBRALIB="-L${prefix}/lib $IDZEBRALIB"
110 IDZEBRAINC="$IDZEBRAINC -I${prefix}/include"
112 IDZEBRALIB="$IDZEBRALIB $extralibs"
113 IDZEBRALALIB="$IDZEBRALIB"
114 IDZEBRATAB="@datadir@/idzebra/tab"
117 if test "$idzebra_echo_help" = "yes"; then
120 if test "$idzebra_echo_cflags" = "yes"; then
123 if test "$idzebra_echo_libs" = "yes"; then
126 if test "$idzebra_echo_lalibs" = "yes"; then
129 if test "$idzebra_echo_tab" = "yes"; then
132 if test "$idzebra_echo_modules" = "yes"; then
133 echo "${prefix}/lib/idzebra"