source: trunk/gsdl/packages/configure@ 1940

Last change on this file since 1940 was 1940, checked in by jrm21, 23 years ago

Only configure/build YAZ if z3950 support is enabled in configure.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1#! /bin/sh
2
3PACKAGES=`pwd`
4cd ..
5GSDLHOME=`pwd`
6cd $PACKAGES
7GSDLOS=`uname | tr A-Z a-z`
8
9# parse any arguments given from toplevel configure
10while test $# -ne 0; do
11 case "$1" in
12 --cache-file=*)
13 cache_filename=`echo $1 | sed s/--cache-file=//`
14 # turn relative path into an absolute path
15 cache_dir=`echo $cache_filename | sed 's@/[^/]*$@@'`
16 cache_dir=`cd $cache_dir 2>/dev/null && pwd`
17
18 cache_basefile=`echo $cache_filename | sed 's@.*/@@'`
19 cache_file="$cache_dir/$cache_basefile"
20 if test ! -f "$cache_file"; then
21 CACHE_FILE=""
22 else
23 CACHE_FILE="--cache-file=$cache_file"
24 fi
25 ;;
26 --enable-z3950)
27 USE_Z3950=true
28 ;;
29 *)
30 # ignore all other options for now
31 ;;
32 esac
33 shift
34done
35
36
37
38# configure the wvWare Word document converter
39echo ""
40echo "Configuring wvWare"
41echo ""
42
43cd "$PACKAGES/unix/wv"
44tar -xzf wv-0.6.0-gs.tar.gz
45cd wv-0.6.0-gs
46./configure $CACHE_FILE --prefix=$PACKAGES/unix/wv
47
48
49# YAZ Z39.50 toolkit
50if test x"$USE_Z3950" = "xtrue";
51then
52 echo ""
53 echo "Configuring YAZ"
54 echo ""
55 cd "$PACKAGES/yaz"
56 ./configure $CACHE_FILE
57else
58 echo ""
59 echo "Z39.50 support disabled - YAZ library not required"
60 echo ""
61fi
62
63# configure wget
64echo ""
65echo "Configuring wget"
66echo ""
67cd $PACKAGES/wget
68tar -xzf wget.tar.gz
69cd $PACKAGES/wget/wget-1.5.3
70./configure $CACHE_FILE --prefix=$PACKAGES/wget --bindir=$GSDLHOME/bin/$GSDLOS
Note: See TracBrowser for help on using the repository browser.