@@ -17,8 +17,9 @@ dnl Copyright (c) 2009 Los Alamos National Security, LLC. All rights
1717dnl reserved.
1818dnl Copyright (c) 2009-2011 Oak Ridge National Labs. All rights reserved.
1919dnl Copyright (c) 2011-2013 NVIDIA Corporation. All rights reserved.
20- dnl Copyright (c) 2015-2016 Research Organization for Information Science
2120dnl Copyright (c) 2013-2016 Intel, Inc. All rights reserved
21+ dnl Copyright (c) 2015 Research Organization for Information Science
22+ dnl and Technology (RIST). All rights reserved.
2223dnl Copyright (c) 2016 Mellanox Technologies, Inc.
2324dnl All rights reserved.
2425dnl Copyright (c) 2016 IBM Corporation. All rights reserved.
@@ -85,7 +86,6 @@ AC_DEFUN([PMIX_SETUP_CORE],[
8586 AC_MSG_RESULT([$PMIX_VERSION ])
8687
8788 # Save the breakdown the version information
88- AC_MSG_CHECKING([for pmix major version])
8989 PMIX_MAJOR_VERSION= " ` $PMIX_top_srcdir /config/pmix_get_version.sh $PMIX_top_srcdir /VERSION --major` "
9090 if test " $? " ! = " 0" ; then
9191 AC_MSG_ERROR([Cannot continue])
@@ -94,7 +94,6 @@ AC_DEFUN([PMIX_SETUP_CORE],[
9494 AC_DEFINE_UNQUOTED([PMIX_MAJOR_VERSION], [" $PMIX_MAJOR_VERSION " ],
9595 [The library major version is always available, contrary to VERSION])
9696
97- AC_MSG_CHECKING([for pmix minor version])
9897 PMIX_MINOR_VERSION= " ` $PMIX_top_srcdir /config/pmix_get_version.sh $PMIX_top_srcdir /VERSION --minor` "
9998 if test " $? " ! = " 0" ; then
10099 AC_MSG_ERROR([Cannot continue])
@@ -103,7 +102,12 @@ AC_DEFUN([PMIX_SETUP_CORE],[
103102 AC_DEFINE_UNQUOTED([PMIX_MINOR_VERSION], [" $PMIX_MINOR_VERSION " ],
104103 [The library minor version is always available, contrary to VERSION])
105104
106- AC_MSG_CHECKING([for pmix release version])
105+ pmixmajor= ${PMIX_MAJOR_VERSION} L
106+ pmixminor= ${PMIX_MINOR_VERSION} L
107+ AC_SUBST(pmixmajor)
108+ AC_SUBST(pmixminor)
109+ AC_CONFIG_FILES(pmix_config_prefix[include/pmix_version.h])
110+
107111 PMIX_RELEASE_VERSION= " ` $PMIX_top_srcdir /config/pmix_get_version.sh $PMIX_top_srcdir /VERSION --release` "
108112 if test " $? " ! = " 0" ; then
109113 AC_MSG_ERROR([Cannot continue])
@@ -318,7 +322,8 @@ AC_DEFUN([PMIX_SETUP_CORE],[
318322 time.h unistd.h \
319323 crt_externs.h signal.h \
320324 ioLib.h sockLib.h hostLib.h limits.h \
321- ucred.h])
325+ sys/statfs.h sys/statvfs.h \
326+ netdb.h ucred.h])
322327
323328 # Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
324329 # have both Portland and GNU installed; using pgcc will find GNU's
@@ -495,7 +500,7 @@ AC_DEFUN([PMIX_SETUP_CORE],[
495500 # Darwin doesn't need -lm, as it's a symlink to libSystem.dylib
496501 PMIX_SEARCH_LIBS_CORE([ceil], [m])
497502
498- AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf strsignal socketpair strncpy_s usleep getpeereid getpeerucred strnlen])
503+ AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf strsignal socketpair strncpy_s usleep statfs statvfs getpeereid getpeerucred strnlen])
499504
500505 # On some hosts, htonl is a define, so the AC_CHECK_FUNC will get
501506 # confused. On others, it's in the standard library, but stubbed with
@@ -753,6 +758,26 @@ AC_DEFINE_UNQUOTED([PMIX_WANT_PRETTY_PRINT_STACKTRACE],
753758 [$WANT_PRETTY_PRINT_STACKTRACE ],
754759 [if want pretty-print stack trace feature])
755760
761+ #
762+ # Do we want the shared memory datastore usage?
763+ #
764+
765+ AC_MSG_CHECKING([if want shared memory datastore])
766+ AC_ARG_ENABLE([dstore],
767+ [AC_HELP_STRING([--disable-dstore],
768+ [Using shared memory datastore (default: enabled)])])
769+ if test " $enable_dstore " == " no" ; then
770+ AC_MSG_RESULT([no])
771+ WANT_DSTORE=0
772+ else
773+ AC_MSG_RESULT([yes])
774+ WANT_DSTORE=1
775+ fi
776+ AC_DEFINE_UNQUOTED([PMIX_ENABLE_DSTORE],
777+ [$WANT_DSTORE ],
778+ [if want shared memory dstore feature])
779+ AM_CONDITIONAL([WANT_DSTORE],[test " x$enable_dstore " != " xno" ])
780+
756781#
757782# Ident string
758783#
@@ -810,6 +835,7 @@ AC_DEFUN([PMIX_DO_AM_CONDITIONALS],[
810835 AM_CONDITIONAL([PMIX_COMPILE_TIMING], [test " $WANT_TIMING " = " 1" ])
811836 AM_CONDITIONAL([PMIX_WANT_MUNGE], [test " $pmix_munge_support " = " 1" ])
812837 AM_CONDITIONAL([PMIX_WANT_SASL], [test " $pmix_sasl_support " = " 1" ])
838+ AM_CONDITIONAL([WANT_DSTORE],[test " x$enable_dstore " != " xno" ])
813839 ])
814840 pmix_did_am_conditionals= yes
815841])dnl
0 commit comments