summaryrefslogtreecommitdiffstats
path: root/fortran/configure.in
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-04-22 23:06:53 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-04-22 23:06:53 (GMT)
commitccd5f5d41e06292340d526e4883a89787e9e3d6b (patch)
tree1d71eda9d096afdab60d49649ec42278bbb442c5 /fortran/configure.in
parentf2d684c9a0f47c558a778538ba920762faaf90e0 (diff)
downloadhdf5-ccd5f5d41e06292340d526e4883a89787e9e3d6b.zip
hdf5-ccd5f5d41e06292340d526e4883a89787e9e3d6b.tar.gz
hdf5-ccd5f5d41e06292340d526e4883a89787e9e3d6b.tar.bz2
[svn-r6734] Purpose:
Bug Fix Description: The h5fc script couldn't find the correct libraries needed when it was used on Solaris and the --enable-stream-vfd was enabled. Solution: Added checks for the -lnsl and -lsocket libraries if we're on Solaris or HP-UX. Platforms tested: Arabica & Baldric (Fortran) Modi4 (Parallel & Fortran) Verbena (C++ & Fortran) All with --enable-stream-vfd and doing a "make check-install". Misc. update:
Diffstat (limited to 'fortran/configure.in')
-rw-r--r--fortran/configure.in52
1 files changed, 52 insertions, 0 deletions
diff --git a/fortran/configure.in b/fortran/configure.in
index af5b549..f5a3d4e 100644
--- a/fortran/configure.in
+++ b/fortran/configure.in
@@ -311,6 +311,17 @@ case "X-$enable_production" in
esac
dnl ----------------------------------------------------------------------
+dnl Check for system libraries.
+dnl
+AC_CHECK_LIB([m], [ceil])
+
+if test "`uname`" = "SunOS" -o "`uname -sr`" = "HP-UX B.11.00"; then
+ dnl ...for Solaris
+ AC_CHECK_LIB([nsl], [xdr_int])
+ AC_CHECK_LIB([socket], [socket])
+fi
+
+dnl ----------------------------------------------------------------------
dnl If we should build only static executables
dnl
AC_MSG_CHECKING(if should build only statically linked executables)
@@ -557,6 +568,47 @@ if test "x$HAVE_SZLIB" = "xyes" -a "x$HAVE_SZLIB_H" = "xyes"; then
fi
dnl ----------------------------------------------------------------------
+dnl Should the Stream Virtual File Driver be compiled in ?
+dnl
+AC_MSG_CHECKING([for Stream Virtual File Driver support])
+AC_ARG_ENABLE([stream-vfd],
+ [AC_HELP_STRING([--enable-stream-vfd],
+ [Build the Stream Virtual File Driver
+ [default=no]])],
+ [STREAM_VFD=$enableval])
+
+if test "$STREAM_VFD" = "yes"; then
+ AC_MSG_RESULT([yes])
+ AC_CHECK_HEADERS([netinet/tcp.h sys/filio.h])
+ AC_DEFINE([HAVE_STREAM], [1],
+ [Define if the stream virtual file driver should be compiled])
+
+ dnl Check if 'socklen_t' available
+ AC_MSG_CHECKING([if socklen_t is defined])
+ AC_TRY_COMPILE([
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+ ],
+ [socklen_t foo; return 0;],
+ AC_DEFINE([HAVE_SOCKLEN_T], 1,
+ [Define if \`socklen_t' is defined])
+ AC_MSG_RESULT([yes]),
+ AC_MSG_RESULT([no])
+ )
+else
+ AC_MSG_RESULT([not configured])
+fi
+
+dnl ----------------------------------------------------------------------
dnl Checks for header files.
dnl