Ignore:
Timestamp:
2013-09-25T19:49:10+12:00 (11 years ago)
Author:
ak19
Message:

Configuration and make stages now work with gnome-lib. Committing GS2 configure.in, build-src's configure.in and Makefile.in. Will commit the two configure files for these from the ubuntu since the autoconf is of a higher version there. Also need to commit the gs2build configure.in and configure still.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/build-src/configure.in

    r26809 r28308  
    147147fi
    148148AC_SUBST(USE_SQLITE)
     149
     150dnl
     151dnl Set compilation and/or sourcing of gnome-lib extension (disabled by default)
     152dnl
     153AC_ARG_ENABLE(gnome-lib-ext, [  --enable-gnome-lib-ext  Enable the gnome-lib extension], ENABLE_GNOMELIB_EXT=1, ENABLE_GNOMELIB_EXT=0)
     154
     155if test -z "$GSDLHOME"; then
     156  gshome=..
     157else
     158  gshome=$GSDLHOME
     159fi
     160if test -d $gshome/ext/gnome-lib ; then
     161   AC_DEFINE(ENABLE_GNOMELIB_EXT, $ENABLE_GNOMELIB_EXT)
     162elif test -d $gshome/ext/gnome-lib-minimal ; then
     163   AC_DEFINE(ENABLE_GNOMELIB_EXT, $ENABLE_GNOMELIB_EXT)
     164else
     165   echo "**** WARNING: No gnome-lib or gnome-lib-minimal in gs2build/ext folder. Disabling gnome-lib-ext"
     166   AC_DEFINE(ENABLE_GNOMELIB_EXT, 0)
     167fi
     168AC_SUBST(ENABLE_GNOMELIB_EXT)
    149169
    150170dnl Checks for programs.
     
    453473fi
    454474
     475#----------------------------------------------------------------------------
     476# GS3 uses this to set up gnome-lib env, GS2 uses the configure in gs2build/toplevel GS2 installation
     477# For gnome-lib-minimal need to source its ./devel.bash before wvware can even be configured
     478# For a gnome-lib that's already compiled, don't need to its source ./devel.bash to configure wvware
     479# If a gnome-lib is not yet compiled, we compile it first with CASCADE-MAKE.sh
     480
     481if test $ENABLE_GNOMELIB_EXT = 1; then
     482
     483   if test -z "$GSDLHOME"; then
     484      cd ..
     485      gshome=`pwd`
     486      cd build-src
     487   else
     488      gshome=$GSDLHOME 
     489   fi
     490
     491   if test -d $gshome/ext/gnome-lib-minimal; then
     492      echo "*** gnome-lib (minimal) detected. Sourcing the gnomelib env for configuring wvware..."
     493      cd $gshome/ext/gnome-lib-minimal
     494      source ./devel.bash
     495      cd $gshome/build-src
     496   elif test -d $gshome/ext/gnome-lib; then
     497     if [ -d $gshome/ext/gnome-lib/$gsdlos ]; then
     498        echo "*** Sourcing the gnomelib env for configuring wvware..."
     499    cd $gshome/ext/gnome-lib
     500        source ./devel.bash
     501        cd $gshome/build-src   
     502     fi
     503   fi
     504
     505fi
    455506
    456507# ---------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.