source: trunk/gsdl/packages/configure@ 2421

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

pdftohtml now needs to be configured.
wv now installs its config files into $GSDLHOME/etc (previously it stayed
in the source directory...)

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1#! /bin/sh
2
3PACKAGES=`pwd`
4cd ..
5GSDLHOME=`pwd`
6cd $PACKAGES
7GSDLOS=`uname | tr A-Z a-z`
8prefix=""
9bindir=""
10
11USE_CORBA=false
12
13# parse any arguments given from toplevel configure
14while test $# -ne 0; do
15 case "$1" in
16 --cache-file=*)
17 cache_filename=`echo $1 | sed s/--cache-file=//`
18 # turn relative path into an absolute path
19 cache_dir=`echo $cache_filename | sed 's@/[^/]*$@@'`
20 cache_dir=`cd $cache_dir 2>/dev/null && pwd`
21
22 cache_basefile=`echo $cache_filename | sed 's@.*/@@'`
23 cache_file="$cache_dir/$cache_basefile"
24 if test ! -f "$cache_file"; then
25 CACHE_FILE=""
26 else
27 CACHE_FILE="--cache-file=$cache_file"
28 fi
29 ;;
30 --enable-z3950)
31 USE_Z3950=true
32 ;;
33 --enable-corba)
34 USE_CORBA=true
35 ;;
36 --with-micodir=*)
37 if test $1 = ""; then
38 $1 = "default"
39 fi
40 MICO_DIR=$1
41 ;;
42 --prefix=*)
43 prefix=`echo $1 | sed s/--prefix=//`
44 ;;
45 --bindir=*)
46 # where to install binaries to
47 bindir=`echo $1 | sed s/--bindir=//`
48 if test -d $bindir ; then
49 bindir=`cd $bindir ; pwd `
50 cd "$PACKAGES"
51 elif test -z `echo $bindir | sed '/^\// p;D'` ; then
52 # turn relative path into an absolute path
53 rel_bindir=`echo $bindir | sed s@/.*@@`
54 cd $rel_bindir
55 bindir=`pwd`/`echo $bindir | sed s@^[^/]*/@@`
56 cd "$PACKAGES"
57 else
58 # bindir doesn't exist, and isn't relative
59 true
60 fi
61 ;;
62 *)
63 # ignore all other options for now
64 ;;
65 esac
66 shift
67done
68
69# note! Our GSDL package currently always installs into it's source
70# directory, ignoring any --prefix given to configure.
71# When this is fixed, uncomment the relevant lines below...
72
73##if test -z "$prefix" ; then
74prefix="${GSDLHOME}"
75##fi
76
77##if test -z "$bindir" ; then
78bindir="${prefix}/bin/$GSDLOS"
79##fi
80
81
82
83# we assume that gzip and tar are on the search path.
84# non-GNU versions of tar don't take the -z option.
85
86
87#echo USE_CORBA = $USE_CORBA
88#echo MICO_DIR = $MICO_DIR
89
90if test $USE_CORBA = true ; then
91 if test $MICO_DIR = default; then
92 # configure the MICO CORBA ORB
93 echo ""
94 echo "Configuring MICO CORBA"
95 echo ""
96
97 cd "$PACKAGES/mico"
98 gzip -dc mico-2.3.5.tar.gz | tar -xf -
99 cd mico
100 ./configure $CACHE_FILE --prefix=$PACKAGES/mico/ --disable-coss --disable-naming --disable-relship --disable-events --disable-streams --disable-property --disable-trader --disable-time --disable-debug --enable-optimize --enable-final --enable-speed-tune
101 sed 's/tools//' $PACKAGES/mico/mico/Makefile | sed 's/ldconfig//' >$PACKAGES/mico/mico/Makefile.out
102 mv $PACKAGES/mico/mico/Makefile.out $PACKAGES/mico/mico/Makefile
103 else
104 #MICO is on the system path
105 echo ""
106 echo "Taking MICO from system paths"
107 echo ""
108 fi
109else
110 echo "corba support disabled - mico compiler not required."
111 echo " add '--enable-corba' to the configure command to include corba support."
112 echo ""
113fi
114
115
116
117
118
119# configure the wvWare Word document converter
120echo ""
121echo "Configuring wvWare"
122echo ""
123
124cd "$PACKAGES/wv"
125gzip -dc wv-0.6.3-gs.tar.gz | tar -xf -
126cd wv-gs
127./configure $CACHE_FILE --prefix=$PACKAGES/wv --bindir="$bindir" --datadir="$prefix/etc"
128
129# configure the pdftohtml converter
130echo ""
131echo "Configuring pdftohtml"
132echo ""
133
134cd "$PACKAGES/pdftohtml"
135gzip -dc pdftohtml_gs.tar.gz | tar -xf -
136cd pdftohtml_0_22
137./configure $CACHE_FILE --prefix="$prefix" --bindir="$bindir"
138
139
140# YAZ Z39.50 toolkit
141echo ""
142echo "Configuring YAZ"
143if test x$USE_Z3950 = xtrue ;
144then
145 echo ""
146 cd "$PACKAGES/yaz"
147 ./configure $CACHE_FILE
148else
149 echo "Z39.50 support disabled - YAZ library not required."
150 echo " add '--enable-z3950' to the configure command to include z39.50 support."
151 echo ""
152fi
153
154# configure wget
155echo ""
156echo "Configuring wget"
157echo ""
158cd $PACKAGES/wget
159gzip -dc wget.tar.gz | tar -xf -
160cd $PACKAGES/wget/wget-1.5.3
161./configure $CACHE_FILE --prefix=$PACKAGES/wget --bindir="$bindir"
162
163
164
Note: See TracBrowser for help on using the repository browser.