projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disable the termset feature for searches. We believe the reference to
[idzebra-moved-to-github.git]
/
idzebra-config.in
diff --git
a/idzebra-config.in
b/idzebra-config.in
index
5c91ce6
..
46c892c
100755
(executable)
--- a/
idzebra-config.in
+++ b/
idzebra-config.in
@@
-1,22
+1,25
@@
#!/bin/sh
#!/bin/sh
-# $Id: idzebra-config.in,v 1.1 2004-08-29 12:31:32 adam Exp $
-idzebraprefix=@prefix@
-idzebra_echo_cflags=no
-idzebra_echo_libs=no
-idzebra_echo_help=no
-idzebra_echo_tabs=no
-idzebra_echo_source=yes
-idzebra_echo_lalibs=no
+# $Id: idzebra-config.in,v 1.11 2006-06-29 14:10:33 adam Exp $
+version=@VERSION@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+echo_cflags=no
+echo_libs=no
+echo_help=no
+echo_tab=no
+echo_source=yes
+echo_lalibs=no
idzebra_src_root=@IDZEBRA_SRC_ROOT@
idzebra_build_root=@IDZEBRA_BUILD_ROOT@
idzebra_src_root=@IDZEBRA_SRC_ROOT@
idzebra_build_root=@IDZEBRA_BUILD_ROOT@
+package_suffix=@PACKAGE_SUFFIX@
-yazlibs="@YAZLIB@ @LIBS@"
-yazlalibs="@YAZLALIB@ @LIBS@"
-IDZEBRAVERSION=@VERSION@
+extralibs="@YAZLIB@ @TCL_LIB@ @EXPAT_LIBS@ @XSLT_LIBS@ @LIBS@ "
+extralalibs="@YAZLALIB@ @TCL_LIB@ @EXPAT_LIBS@ @XSLT_LIBS@ @LIBS@"
usage()
{
usage()
{
- cat <<EOF
+ cat <<EOF
Usage: idzebra-config [OPTIONS] [LIBRARIES]
Options:
[--prefix[=DIR]]
Usage: idzebra-config [OPTIONS] [LIBRARIES]
Options:
[--prefix[=DIR]]
@@
-24,53
+27,60
@@
Options:
[--libs]
[--lalibs]
[--cflags]
[--libs]
[--lalibs]
[--cflags]
+ [--tab]
+ [--modules]
EOF
EOF
- exit $1
+ exit $1
}
if test $# -eq 0; then
}
if test $# -eq 0; then
- idzebra_echo_help=yes
+ echo_help=yes
fi
modules=""
while test $# -gt 0; do
fi
modules=""
while test $# -gt 0; do
- case "$1" in
- -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
-
- case $1 in
- --prefix=*)
- idzebraprefix=$optarg
- ;;
- --prefix)
- echo $idzebraprefix
- exit 0
- ;;
- --version)
- echo $IDZEBRAVERSION
- exit 0
- ;;
- --cflags)
- idzebra_echo_cflags=yes
- ;;
- --libs)
- idzebra_echo_libs=yes
- ;;
- --tabs)
- idzebra_echo_tabs=yes
- ;;
- --lalibs)
- idzebra_echo_lalibs=yes
- ;;
- -*)
- idzebra_echo_help=yes
- ;;
- *)
- modules="$modules $1"
- ;;
- esac
- shift
+ case "$1" in
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
+
+ case $1 in
+ --prefix=*)
+ prefix=$optarg
+ exec_prefix=$prefix
+ libdir=${exec_prefix}/lib
+ ;;
+ --prefix)
+ echo $prefix
+ exit 0
+ ;;
+ --version)
+ echo $version
+ exit 0
+ ;;
+ --cflags)
+ echo_cflags=yes
+ ;;
+ --libs)
+ echo_libs=yes
+ ;;
+ --tab)
+ echo_tab=yes
+ ;;
+ --modules)
+ echo_modules=yes
+ ;;
+ --lalibs)
+ echo_lalibs=yes
+ ;;
+ -*)
+ echo_help=yes
+ ;;
+ *)
+ modules="$modules $1"
+ ;;
+ esac
+ shift
done
IDZEBRALIB=""
done
IDZEBRALIB=""
@@
-78,14
+88,15
@@
IDZEBRALALIB=""
IDZEBRAINC="@YAZINC@"
if test -z "$modules"; then
IDZEBRAINC="@YAZINC@"
if test -z "$modules"; then
- modules="util bfile dfa dict isamc isamb isams data1 recctrl rset api"
+ modules="api rset recctrl dict isams isamc isamb data1 bfile dfa util"
fi
fi
+
for m in $modules; do
d=$m
if test "$m" = "api"; then
d="index"
fi
for m in $modules; do
d=$m
if test "$m" = "api"; then
d="index"
fi
- if test "$idzebra_echo_source" = "yes"; then
+ if test "$echo_source" = "yes"; then
IDZEBRALIB="$IDZEBRALIB -L${idzebra_build_root}/$d/.libs -lidzebra-$m"
IDZEBRALALIB="$IDZEBRALALIB ${idzebra_build_root}/$d/libidzebra-$m.la"
else
IDZEBRALIB="$IDZEBRALIB -L${idzebra_build_root}/$d/.libs -lidzebra-$m"
IDZEBRALALIB="$IDZEBRALALIB ${idzebra_build_root}/$d/libidzebra-$m.la"
else
@@
-93,28
+104,43
@@
for m in $modules; do
fi
done
fi
done
-if test "$idzebra_echo_source" = "yes"; then
- IDZEBRALIB="$IDZEBRALIB $yazlibs"
- IDZEBRALALIB="$IDZEBRALALIB $yazlalibs"
+if test "$echo_source" = "yes"; then
+ IDZEBRALIB="$IDZEBRALIB $extralibs"
+ IDZEBRALALIB="$IDZEBRALALIB $extralalibs"
IDZEBRAINC="$IDZEBRAINC -I${idzebra_src_root}/include"
IDZEBRAINC="$IDZEBRAINC -I${idzebra_src_root}/include"
+ IDZEBRATAB="${idzebra_src_root}/tab"
+ IDZEBRAMOD="${idzebra_src_root}/recctrl"
else
else
- if test "$idzebraprefix" != "/usr"; then
- IDZEBRALIB="-L${idzebraprefix}/lib $IDZEBRALIB"
- IDZEBRAINC="$IDZEBRAINC -I${idzebraprefix}/include"
+ if test "$libdir" != "/usr/lib"; then
+ IDZEBRALIB="-L${libdir} $IDZEBRALIB"
fi
fi
- IDZEBRALIB="$IDZEBRALIB $yazlibs"
+ IDZEBRALIB="$IDZEBRALIB $extralibs"
IDZEBRALALIB="$IDZEBRALIB"
IDZEBRALALIB="$IDZEBRALIB"
+ IDZEBRAINC="$IDZEBRAINC -I${prefix}/include/idzebra${package_suffix}"
+ IDZEBRATAB="@datarootdir@/idzebra${package_suffix}/tab"
+ IDZEBRAMOD="${libdir}/idzebra${package_suffix}/modules"
fi
fi
-if test "$idzebra_echo_help" = "yes"; then
- usage 1 1>&2
+if test "$echo_help" = "yes"; then
+ usage 1 1>&2
+fi
+if test "$echo_cflags" = "yes"; then
+ echo $IDZEBRAINC
+fi
+if test "$echo_libs" = "yes"; then
+ echo $IDZEBRALIB
fi
fi
-if test "$idzebra_echo_cflags" = "yes"; then
- echo $IDZEBRAINC
+if test "$echo_lalibs" = "yes"; then
+ echo $IDZEBRALALIB
fi
fi
-if test "$idzebra_echo_libs" = "yes"; then
- echo $IDZEBRALIB
+if test "$echo_tab" = "yes"; then
+ echo $IDZEBRATAB
fi
fi
-if test "$idzebra_echo_lalibs" = "yes"; then
- echo $IDZEBRALALIB
+if test "$echo_modules" = "yes"; then
+ echo $IDZEBRAMOD
fi
fi
+# Local Variables:
+# mode:shell-script
+# sh-indentation: 2
+# sh-basic-offset: 4
+# End: