2 # $Id: idzebra-config-2.0.in,v 1.3 2006-12-07 10:01:32 adam Exp $
5 exec_prefix=@exec_prefix@
14 idzebra_src_root=@IDZEBRA_SRC_ROOT@
15 idzebra_build_root=@IDZEBRA_BUILD_ROOT@
16 package_suffix=@PACKAGE_SUFFIX@
18 extralibs="@YAZLIB@ @TCL_LIB@ @EXPAT_LIBS@ @LIBS@ "
19 extralalibs="@YAZLALIB@ @TCL_LIB@ @EXPAT_LIBS@ @LIBS@"
24 Usage: idzebra-config [OPTIONS] [LIBRARIES]
37 if test $# -eq 0; then
41 while test $# -gt 0; do
43 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
51 libdir=${exec_prefix}/lib
80 echo "$0: unsupported argument"
88 IDZEBRAINC="@ZEBRA_CFLAGS@ @YAZINC@"
90 if test "$echo_source" = "yes"; then
91 IDZEBRALIB="-L${idzebra_build_root}/index/.libs -lidzebra${package_suffix}"
92 IDZEBRALALIB="${idzebra_build_root}/index/libidzebra${package_suffix}.la"
93 IDZEBRALIB="$IDZEBRALIB $extralibs"
94 IDZEBRALALIB="$IDZEBRALALIB $extralalibs"
95 IDZEBRAINC="$IDZEBRAINC -I${idzebra_src_root}/include"
96 IDZEBRATAB="${idzebra_src_root}/tab"
97 IDZEBRAMOD="${idzebra_src_root}/recctrl"
99 IDZEBRALIB="-lidzebra${package_suffix}"
100 if test "$libdir" != "/usr/lib"; then
101 IDZEBRALIB="-L${libdir} $IDZEBRALIB"
103 IDZEBRALIB="$IDZEBRALIB $extralibs"
104 IDZEBRALALIB="$IDZEBRALIB"
105 IDZEBRAINC="$IDZEBRAINC -I${prefix}/include/idzebra${package_suffix}"
106 IDZEBRATAB="@datarootdir@/idzebra${package_suffix}/tab"
107 IDZEBRAMOD="${libdir}/idzebra${package_suffix}/modules"
110 if test "$echo_help" = "yes"; then
113 if test "$echo_cflags" = "yes"; then
116 if test "$echo_libs" = "yes"; then
119 if test "$echo_lalibs" = "yes"; then
122 if test "$echo_tab" = "yes"; then
125 if test "$echo_modules" = "yes"; then