#! /bin/sh PACKAGES=`pwd` cd .. GSDLHOME=`pwd` cd $PACKAGES GSDLOS=`uname | tr A-Z a-z` # bindir can be overridden on command line. bindir=$GSDLHOME/bin/$GSDLOS # parse any arguments given from toplevel configure while test $# -ne 0; do case "$1" in --cache-file=*) cache_filename=`echo $1 | sed s/--cache-file=//` # turn relative path into an absolute path cache_dir=`echo $cache_filename | sed 's@/[^/]*$@@'` cache_dir=`cd $cache_dir 2>/dev/null && pwd` cache_basefile=`echo $cache_filename | sed 's@.*/@@'` cache_file="$cache_dir/$cache_basefile" if test ! -f "$cache_file"; then CACHE_FILE="" else CACHE_FILE="--cache-file=$cache_file" fi ;; --enable-z3950) USE_Z3950=true ;; --enable-corba) USE_CORBA=true ;; --with-micodir=*) if test $1 = ""; then $1 = "default" fi MICO_DIR=$1 ;; --bindir=*) bindir=`echo $1 | sed s/--bindir=//` if test -d $bindir ; then bindir=`cd $bindir ; pwd ` cd "$PACKAGES" elif test -z `echo $bindir | sed '/^\// p;D'` ; then # turn relative path into an absolute path rel_bindir=`echo $bindir | sed s@/.*@@` cd $rel_bindir bindir=`pwd`/`echo $bindir | sed s@^[^/]*/@@` cd "$PACKAGES" else # bindir doesn't exist, and isn't relative true fi ;; *) # ignore all other options for now ;; esac shift done # we assume that gzip and tar are on the search path. # non-GNU versions of tar don't take the -z option. echo USE_CORBA = $USE_CORBA echo MICO_DIR = $MICO_DIR if test -n "$USE_CORBA"; then if test $MICO_DIR = default; then # configure the MICO CORBA ORB echo "" echo "Configuring MICO CORBA" echo "" cd "$PACKAGES/mico" gzip -dc mico-2.3.5.tar.gz | tar -xf - cd mico ./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 sed 's/tools//' $PACKAGES/mico/mico/Makefile | sed 's/ldconfig//' >$PACKAGES/mico/mico/Makefile.out mv $PACKAGES/mico/mico/Makefile.out $PACKAGES/mico/mico/Makefile else #MICO is on the system path echo "" echo "Taking MICO from system paths" echo "" fi else echo "corba support disabled - mico compiler not required." echo " add '--enable-corba' to the configure command to include corba support." echo "" fi # configure the wvWare Word document converter echo "" echo "Configuring wvWare" echo "" cd "$PACKAGES/wv" gzip -dc wv-0.6.3-gs.tar.gz | tar -xf - cd wv-gs ./configure $CACHE_FILE --prefix=$PACKAGES/wv --bindir="$bindir" # configure the pdftohtml converter echo "" echo "Configuring pdftohtml" echo "" cd "$PACKAGES/pdftohtml" gzip -dc pdftohtml_0_22_gs.tar.gz | tar -xf - cd pdftohtml_0_22 # YAZ Z39.50 toolkit echo "" echo "Configuring YAZ" if test x$USE_Z3950 = xtrue ; then echo "" cd "$PACKAGES/yaz" ./configure $CACHE_FILE else echo "Z39.50 support disabled - YAZ library not required." echo " add '--enable-z3950' to the configure command to include z39.50 support." echo "" fi # configure wget echo "" echo "Configuring wget" echo "" cd $PACKAGES/wget tar -xzf wget.tar.gz cd $PACKAGES/wget/wget-1.5.3 ./configure $CACHE_FILE --prefix=$PACKAGES/wget --bindir="$bindir"