summaryrefslogtreecommitdiffstats
path: root/config/freebsd
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-12-17 02:27:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-12-17 02:27:41 (GMT)
commit5387f65eef42ba904c60a223b12e63b5c0743d55 (patch)
treee8e98dcfd9d3ed7a929dba4a3c75fe624cef4ba4 /config/freebsd
parent1205c5753159b90bc47fd270a00a4d118a18b4e2 (diff)
downloadhdf5-5387f65eef42ba904c60a223b12e63b5c0743d55.zip
hdf5-5387f65eef42ba904c60a223b12e63b5c0743d55.tar.gz
hdf5-5387f65eef42ba904c60a223b12e63b5c0743d55.tar.bz2
[svn-r9684] Purpose:
Port Description: Initial work for supporting GNU FORTRAN/F95 on FreeBSD. I think I've got things mostly set up correctly, but I'm getting an internal compiler error on one of the FORTRAN sources, so I'm not going to add this configuration to the daily tests yet. Platforms tested: FreeBSD 4.10 (sleipnir) w/GNU FORTRAN Not tested in h5committest
Diffstat (limited to 'config/freebsd')
-rw-r--r--config/freebsd19
1 files changed, 18 insertions, 1 deletions
diff --git a/config/freebsd b/config/freebsd
index 80009b0..10ab716 100644
--- a/config/freebsd
+++ b/config/freebsd
@@ -15,9 +15,26 @@ fi
# from /usr/include/sys/cdefs.h
CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=1"
-# Figure out compiler flags
+#
+# HDF5 FORTRAN integers
+#
+# R_LARGE is the number of digits for the bigest integer supported.
+# R_INTEGER is the number of digits in INTEGER
+#
+R_LARGE=18
+R_INTEGER=9
+HSIZE_T='SELECTED_INT_KIND(R_LARGE)'
+HSSIZE_T='SELECTED_INT_KIND(R_LARGE)'
+HID_T='SELECTED_INT_KIND(R_INTEGER)'
+SIZE_T='SELECTED_INT_KIND(R_INTEGER)'
+OBJECT_NAMELEN_DEFAULT_F=-1
+
+# Figure out C compiler flags
. $srcdir/config/gnu-flags
+# Figure out FORTRAN compiler flags
+. $srcdir/config/gnu-fflags
+
# Special setup to use pthread support if enable-threadsafe is on.
# Works with static executable only.
if test "X-" != "X-$enable_threadsafe"; then