source: trunk/gsdl/packages/configure@ 2173

Last change on this file since 2173 was 2173, checked in by cs025, 23 years ago

Improvements to configure scripts in their support of various MICO
environment considerations, particularly when MICO is on the system
paths.

Fixed CORBA version of ping to correspond with parameters etc. of the
native form.

Finally, improved PING action to be more than a simple call to
the HASCOLLECTION action in the null protocol.

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