Ignore:
Timestamp:
Mar 28, 2019, 11:31:26 PM (5 years ago)
Author:
djay
Message:

Add support for SAGA-GIS 7.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/configure.ac

    r877 r900  
    114114#============================================================================
    115115
    116 AC_ARG_WITH([gettext],
    117     [AS_HELP_STRING([--with-gettext=PATH], [Specifies an alternative location for the openssl library])],
    118     [GETTEXT_DIR="$withval"], [GETTEXT_DIR="/usr/"])
    119 
    120 GETTEXT_CFLAGS="-I$GETTEXT_DIR/include"
    121 GETTEXT_LDFLAGS="-L$GETTEXT_DIR/lib -lintl"
     116#AC_ARG_WITH([gettext],
     117#    [AS_HELP_STRING([--with-gettext=PATH], [Specifies an alternative location for the openssl library])],
     118#    [GETTEXT_DIR="$withval"], [GETTEXT_DIR="/usr/"])
     119
     120#GETTEXT_CFLAGS="-I$GETTEXT_DIR/include"
     121#GETTEXT_LDFLAGS="-L$GETTEXT_DIR/lib -lintl"
    122122#CFLAGS_SAVE="$CFLAGS"
    123123#CFLAGS="$GETTEXT_CFLAGS"
     
    127127#AC_CHECK_LIB(intl,
    128128#                       [dgettext], [] , [AC_MSG_ERROR([could not find $i function in gettext library])])
    129 AC_SUBST([GETTEXT_CFLAGS])
    130 AC_SUBST([GETTEXT_LDFLAGS])
     129#AC_SUBST([GETTEXT_CFLAGS])
     130#AC_SUBST([GETTEXT_LDFLAGS])
    131131
    132132#============================================================================
     
    10491049        [SAGAPATH="$withval"], [SAGAPATH=""])
    10501050
     1051AC_ARG_WITH([saga-version],
     1052        [AS_HELP_STRING([--with-saga-version=VERSION], [Specifies the SAGA-GIS version number])],
     1053        [SAGAVERS="$withval"], [SAGAVERS="2"])
     1054
    10511055if test -z "$SAGAPATH"
    10521056then
     
    10641068        WX_ISSUE="-D_WX_WXCRTVARARG_H_"
    10651069        SAGA_DEFS="-D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -DMODULE_LIBRARY_PATH=\\\"$SAGAPATH/lib/saga\\\""
    1066         SAGA_CPPFLAGS=" -fPIC -I$SAGAPATH/include/saga/saga_core/saga_api/ `$WXCFG --unicode=yes --static=no --cxxflags` -D_SAGA_UNICODE $SAGA_DEFS $WX_ISSUE"
     1070        SAGA_CPPFLAGS="-DSAGA_VERSION=${SAGAVERS} -fPIC -I$SAGAPATH/include/saga/saga_core/saga_api/ `$WXCFG --unicode=yes --static=no --cxxflags` -D_SAGA_UNICODE $SAGA_DEFS $WX_ISSUE"
    10671071        SAGA_LDFLAGS="-fPIC `$WXCFG --unicode=yes --static=no --libs` -lsaga_api"
    10681072        SAGA_ENABLED="-DUSE_SAGA"
     
    10751079        LIBS_SAVE="$LIBS"
    10761080        LIBS="$SAGA_LDFLAGS"
    1077         AC_CHECK_HEADERS([module_library.h],
    1078                         [], [AC_MSG_ERROR([could not find header file $i related to SAGA-GIS])])
    1079         AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "module_library.h"],[SG_Get_Module_Library_Manager();]])],
    1080                 [AC_MSG_RESULT([checking for SG_Get_Module_Library_Manager... yes])],[AC_MSG_ERROR([checking for SG_Get_Module_Library_Manager... failed])])
     1081        if test "$SAGAVERS" == "2"; then
     1082        AC_CHECK_HEADERS([module_library.h],
     1083                        [], [AC_MSG_ERROR([could not find header file $i related to SAGA-GIS])])
     1084        AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "module_library.h"],[SG_Get_Module_Library_Manager();]])],
     1085                [AC_MSG_RESULT([checking for SG_Get_Module_Library_Manager... yes])],[AC_MSG_ERROR([checking for SG_Get_Module_Library_Manager... failed])])
     1086        else
     1087        AC_CHECK_HEADERS([tool_library.h],
     1088                        [], [AC_MSG_ERROR([could not find header file $i related to SAGA-GIS])])
     1089        AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "tool_library.h"],[SG_Get_Tool_Library_Manager();]])],
     1090                [AC_MSG_RESULT([checking for SG_Get_Tool_Library_Manager... yes])],[AC_MSG_ERROR([checking for SG_Get_Tool_Library_Manager... failed])])
     1091        fi
     1092       
    10811093        LIBS="$LIBS_SAVE"
    10821094        AC_LANG_POP([C++])
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png