summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-11-09 17:39:33 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-11-09 17:39:33 (GMT)
commit227a79d5513e305d047020d96b1ac8b4f8bf44b5 (patch)
treed1f6d048ca28cd6ca3b4b41db4322572cdb75320
parente6ef14ff32eb0bf62672dc3a94b515ddc17cbf68 (diff)
downloadhdf5-227a79d5513e305d047020d96b1ac8b4f8bf44b5.zip
hdf5-227a79d5513e305d047020d96b1ac8b4f8bf44b5.tar.gz
hdf5-227a79d5513e305d047020d96b1ac8b4f8bf44b5.tar.bz2
[svn-r12886] Fix (hopefully) for last night's failures on tg-login3.
It seems that the latest version of libtool is linking against shared versions of the szip libraries in Fortran, rather than the static versions. ifort doesn't support shared libraries at all. To solve the problem, we avoid shared libraries entirely unless we're building shared Fortran libraries ourselves. If libtool always behaves like this now, it may cause similar problems on other machines. If you notice that a machine is breaking when it links against a shared library, let me know. Tested on kagiso; nothing new is broken. If Albert has time this afternoon I'll ask him to test on tg-login3 as well.
-rwxr-xr-xconfigure49
-rw-r--r--configure.in6
2 files changed, 32 insertions, 23 deletions
diff --git a/configure b/configure
index be2518f..b7800a4 100755
--- a/configure
+++ b/configure
@@ -6953,6 +6953,9 @@ if test "X${enable_shared}" != "Xno" && \
enable_shared="no"
fi
+
+H5_FORTRAN_SHARED="no"
+
if test "X${HDF_FORTRAN}" = "Xyes" && test "X${enable_shared}" != "Xno"; then
H5_FORTRAN_SHARED="yes"
@@ -7754,7 +7757,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 7757 "configure"' > conftest.$ac_ext
+ echo '#line 7760 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -10192,11 +10195,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:10195: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:10198: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:10199: \$? = $ac_status" >&5
+ echo "$as_me:10202: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -10460,11 +10463,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:10463: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:10466: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:10467: \$? = $ac_status" >&5
+ echo "$as_me:10470: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -10564,11 +10567,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:10567: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:10570: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:10571: \$? = $ac_status" >&5
+ echo "$as_me:10574: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -13088,7 +13091,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 13091 "configure"
+#line 13094 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13188,7 +13191,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 13191 "configure"
+#line 13194 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15572,11 +15575,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:15575: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:15578: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:15579: \$? = $ac_status" >&5
+ echo "$as_me:15582: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -15676,11 +15679,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:15679: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:15682: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:15683: \$? = $ac_status" >&5
+ echo "$as_me:15686: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -17246,11 +17249,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:17249: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:17252: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:17253: \$? = $ac_status" >&5
+ echo "$as_me:17256: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -17350,11 +17353,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:17356: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:17357: \$? = $ac_status" >&5
+ echo "$as_me:17360: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -19580,11 +19583,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19583: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19586: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:19587: \$? = $ac_status" >&5
+ echo "$as_me:19590: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -19848,11 +19851,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19851: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19854: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:19855: \$? = $ac_status" >&5
+ echo "$as_me:19858: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -19952,11 +19955,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19955: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19958: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:19959: \$? = $ac_status" >&5
+ echo "$as_me:19962: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
diff --git a/configure.in b/configure.in
index ff618c7..ab0437d 100644
--- a/configure.in
+++ b/configure.in
@@ -742,6 +742,12 @@ dnl HP F90 v2.4
dnl Intel Fortran Compiler 8.1
dnl If any of these compilers is being used, disable shared libraries for
dnl Fortran.
+
+dnl Disable shared libraries in Fortran by default (sometimes libtool will
+dnl try to link against other shared libraries even though HDF5 is built
+dnl as a static library).
+H5_FORTRAN_SHARED="no"
+
if test "X${HDF_FORTRAN}" = "Xyes" && test "X${enable_shared}" != "Xno"; then
H5_FORTRAN_SHARED="yes"