summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-08-06 03:11:49 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-08-06 03:11:49 (GMT)
commit03efcfe00f186cac97bcccfae52d3c1dd4091742 (patch)
tree572e8f3680922ec8ed231385b8636b4f790e9242 /configure.in
parent1419e16a65a08bf8ba9e35767060e20eaa278848 (diff)
downloadhdf5-03efcfe00f186cac97bcccfae52d3c1dd4091742.zip
hdf5-03efcfe00f186cac97bcccfae52d3c1dd4091742.tar.gz
hdf5-03efcfe00f186cac97bcccfae52d3c1dd4091742.tar.bz2
[svn-r1565] acconfig.h:
Added the GASS macro definition entry. configure: [Generated from configure.in] configure.in: Added Globus GASS driver configuation as --with-gass=INC,LIB option. Default is no => no GASS configured. src/H5config.h.in: [Generated from acconfig.h]
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in67
1 files changed, 67 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 3037c59..906e9aa 100644
--- a/configure.in
+++ b/configure.in
@@ -360,6 +360,73 @@ case $withval in
esac
dnl ----------------------------------------------------------------------
+dnl Is Globus-GASS present? If so then we can compile in the GASS driver.
+dnl The reason we need to check for so many libs because globus is not
+dnl quite modular yet. Globus folks plan to reduce the library dependencies.
+dnl
+AC_SUBST(GASS)
+sASS=yes
+AC_SUBST(TESTGASS)
+TESTGASS='$(srcdir)/testgass'
+
+AC_ARG_WITH(gass,[ --with-gass=INC,LIB Use the GASS driver [default=no]],
+ ,withval=no)
+case $withval in
+ yes)
+ AC_CHECK_HEADERS(globus_common.h,,unset GASS TESTGASS)
+ AC_CHECK_LIB(xnet,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_common,globus_module_activate,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_dc,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_nexus,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_client,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_cache,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_file,globus_gass_open,,unset GASS TESTGASS)
+ ;;
+ no)
+ AC_MSG_CHECKING(for GASS)
+ AC_MSG_RESULT(suppressed)
+ unset GASS TESTGASS
+ ;;
+ *)
+ gass_inc="`echo $withval |cut -f1 -d,`"
+ if test "X" != "$gass_inc"; then
+ saved_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS -I$gass_inc"
+ AC_CHECK_HEADERS(globus_common.h,,
+ CPPFLAGS="$saved_CPPFLAGS"
+ unset GASS TESTGASS
+ )
+ else
+ AC_CHECK_HEADERS(globus_common.h)
+ fi
+
+ gass_lib="`echo $withval |cut -f2 -d, -s`"
+ if test "X" != "$gass_lib"; then
+ saved_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -L$gass_lib"
+ AC_CHECK_LIB(xnet,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_common,globus_module_activate,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_dc,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_nexus,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_client,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_cache,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_file,globus_gass_open,,unset GASS TESTGASS)
+ else
+ AC_CHECK_LIB(xnet,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_common,globus_module_activate,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_dc,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_nexus,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_client,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_cache,main,,unset GASS TESTGASS)
+ AC_CHECK_LIB(globus_gass_file,globus_gass_open,,unset GASS TESTGASS)
+ fi
+ ;;
+esac
+if test "X-" != "X-$GASS"; then
+ AC_DEFINE(HAVE_GASS)
+fi
+
+dnl ----------------------------------------------------------------------
dnl How does one figure out the local time zone? Anyone know of a
dnl Posix way to do this?
dnl