Ignore:
Timestamp:
May 3, 2017, 12:53:06 PM (7 years ago)
Author:
djay
Message:

Commit the minimal requirements for remote HPC support

File:
1 edited

Legend:

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

    r817 r822  
    11AC_INIT([ZOO Kernel], [1.7.0], [bugs@zoo-project.org])
     2
     3AC_CONFIG_MACRO_DIR([macros])
    24
    35# Checks for programs.
     
    1214AC_CHECK_LIB([dl], [dlopen,dlsym,dlerror,dlclose])
    1315AC_CHECK_LIB([crypto], [EVP_DigestInit,EVP_md5,EVP_DigestUpdate,BIO_f_base64,BIO_new])
    14 AC_CHECK_LIB([uuid], [uuid_generate_time])
    1516
    1617DEFAULT_LIBS="$LIBS"
     
    2021# Checks for header files.
    2122AC_FUNC_ALLOCA
    22 AC_CHECK_HEADERS([fcntl.h inttypes.h libintl.h malloc.h stddef.h stdlib.h string.h unistd.h])
     23AC_CHECK_HEADERS([fcntl.h inttypes.h malloc.h stddef.h stdlib.h string.h unistd.h])
    2324
    2425# Checks for typedefs, structures, and compiler characteristics.
     
    3839AC_FUNC_REALLOC
    3940AC_CHECK_FUNCS([dup2 getcwd memset setenv strdup strstr])
     41
     42#============================================================================
     43# Detect if uuid is available
     44#============================================================================
     45
     46AC_ARG_WITH([uuid],
     47    [AS_HELP_STRING([--with-uuid=PATH], [Specifies an alternative location for the ossp-uuid library])],
     48    [UUID_DIR="$withval"], [UUID_DIR="/usr/"])
     49UUID_CFLAGS="-I$UUID_DIR/include"
     50UUID_LDFLAGS="-L$UUID_DIR/lib -luuid"
     51CPPFLAGS_SAVE="$CPPFLAGS"
     52CPPFLAGS="$UUID_CFLAGS"
     53LIBS_SAVE="$LIBS"
     54LIBS="$UUID_LDFLAGS"
     55AC_CHECK_HEADERS([uuid/uuid.h],
     56                        [], [AC_MSG_ERROR([could not find header file uuid.h])])
     57AC_CHECK_LIB([uuid], [uuid_generate_time],
     58                        [], [AC_MSG_ERROR([could not find function in uuid library])])
     59CPPFLAGS="$CPPFLAGS_SAVE"
     60AC_SUBST([UUID_CFLAGS])
     61AC_SUBST([UUID_LDFLAGS])
    4062
    4163#============================================================================
     
    5678AC_CHECK_LIB(crypto, BIO_f_base64,
    5779                        [], [AC_MSG_ERROR([could not find $i function in openssl library])])
     80CPPFLAGS="$CPPFLAGS_SAVE"
    5881AC_SUBST([OPENSSL_CFLAGS])
    5982AC_SUBST([OPENSSL_LDFLAGS])
     83
     84#============================================================================
     85# Detect if gettext is available
     86#============================================================================
     87
     88AC_ARG_WITH([gettext],
     89    [AS_HELP_STRING([--with-gettext=PATH], [Specifies an alternative location for the openssl library])],
     90    [GETTEXT_DIR="$withval"], [GETTEXT_DIR="/usr/"])
     91GETTEXT_CFLAGS="-I$GETTEXT_DIR/include"
     92GETTEXT_LDFLAGS="-L$GETTEXT_DIR/lib -lintl"
     93CFLAGS_SAVE="$CFLAGS"
     94CFLAGS="$GETTEXT_CFLAGS"
     95LIBS_SAVE="$LIBS"
     96LIBS="$GETTEXT_LDFLAGS"
     97AM_GNU_GETTEXT([external], [], [])
     98AC_CHECK_LIB(intl,
     99                        [dgettext], [] , [AC_MSG_ERROR([could not find $i function in gettext library])])
     100AC_SUBST([GETTEXT_CFLAGS])
     101AC_SUBST([GETTEXT_LDFLAGS])
    60102
    61103#============================================================================
     
    145187AC_SUBST([FCGI_LDFLAGS])
    146188
     189AC_ARG_WITH([metadb],
     190        [AS_HELP_STRING([--with-metadb=yes], [Activates the metadata database support])],
     191        [WITHMETADB="$withval"], [WITHMETADB=""])
     192
     193if test "x$WITHMETADB" = "xyes"; then
     194        METADB="-DMETA_DB"
     195        METADB_FILE="meta_sql.o sqlapi.o"
     196else
     197        METADB=""
     198        METADB_FILE=""
     199fi
     200
     201AC_SUBST([METADB])
     202AC_SUBST([METADB_FILE])
     203
     204AC_ARG_WITH([hpc],
     205        [AS_HELP_STRING([--with-hpc=yes], [Specifies if you need to activate HPC support])],
     206        [HPCWITH="$withval"], [HPCWITH="no"])
     207
     208if test "x$HPCWITH" = "xyes"; then
     209        HPC_FILES="service_internal_hpc.o sshapi.o"
     210        HPC_ENABLED="-DUSE_HPC"
     211        HPC_CPPFLAGS=""
     212        HPC_LDFLAGS=""
     213fi
     214
     215AC_SUBST([HPC_CPPFLAGS])
     216AC_SUBST([HPC_LDFLAGS])
     217AC_SUBST([HPC_ENABLED])
     218AC_SUBST([HPC_FILES])
     219
     220AC_ARG_WITH([ssh2],
     221        [AS_HELP_STRING([--with-ssh2=PATH], [Specifies an alternative location for the ssh2 library])],
     222        [SSH2PATH="$withval"], [SSH2PATH="/usr"])
     223
     224# Extract the linker and include flags
     225SSH2_LDFLAGS="-L$SSH2PATH/lib -lssh2"
     226SSH2_CPPFLAGS="-I$SSH2PATH/include"
     227# Check headers file
     228CPPFLAGS_SAVE="$CPPFLAGS"
     229CPPFLAGS="$SSH2_CPPFLAGS"
     230LIBS_SAVE="$LIBS"
     231LIBS="$SSH2_LDFLAGS"
     232echo $CPPFLAGS
     233echo $LIBS
     234
     235AC_CHECK_HEADERS([libssh2.h],
     236                 [], [AC_MSG_ERROR([could not find headers related to libssh2])])
     237AC_CHECK_LIB([ssh2], [libssh2_session_init])
     238
     239LIBS="$LIBS_SAVE"
     240AC_SUBST([SSH2_CPPFLAGS])
     241AC_SUBST([SSH2_LDFLAGS])
     242
    147243# ===========================================================================
    148244# Detect if libxml2 is installed
     
    400496AC_SUBST([MS_LIBS])
    401497AC_SUBST([MS_FILE])
     498AC_SUBST([MS_VERSION])
    402499
    403500# ===========================================================================
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