summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2007-01-23 17:29:45 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2007-01-23 17:29:45 (GMT)
commit59eccdaf699634dfb16419200549268623ac4e9b (patch)
treeaf72080ab1b7c00749713e9382b5fc8aa868b18c /configure
parentf83826852bc9d1ef530c4d292279396fce77d626 (diff)
downloadhdf5-59eccdaf699634dfb16419200549268623ac4e9b.zip
hdf5-59eccdaf699634dfb16419200549268623ac4e9b.tar.gz
hdf5-59eccdaf699634dfb16419200549268623ac4e9b.tar.bz2
[svn-r13181] Added a configure check to prevent a failure on Cygwin.
It seems that while Cygwin supports the time command, it has trouble with the syntax srcdir="../../hdf5/test" time ./testhdf5 and complains. The solution is to test the above case in configure and not to use the time command if it fails; Cygwin is fine with srcdir="../../hdf5/test" ./testhdf5 Tested on Cygwin and kagiso. This feature shouldn't be a major compatibility problem since every platform but Cygwin is already fine with the current syntax.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure78
1 files changed, 49 insertions, 29 deletions
diff --git a/configure b/configure
index c1bdcbf..adf9805 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Id: configure.in 13080 2006-12-20 16:22:54Z epourmal .
+# From configure.in Id: configure.in 13138 2007-01-12 20:32:34Z koziol .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.60 for HDF5 1.8.0-alpha6.
#
@@ -875,6 +875,7 @@ LT_STATIC_EXEC
PERL
AR
TR
+TIME
PARALLEL
RUNSERIAL
RUNPARALLEL
@@ -7186,6 +7187,24 @@ echo "$as_me: error: tr program doesn't work" >&2;}
fi
+{ echo "$as_me:$LINENO: checking if srcdir= and time commands work together" >&5
+echo $ECHO_N "checking if srcdir= and time commands work together... $ECHO_C" >&6; }
+
+
+TIME=time
+${TIME} echo 'baz' >& temp.out
+TIME_TEST=`grep ^baz temp.out`
+rm temp.out
+if test "X${TIME_TEST}" = "Xbaz"; then
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+ TIME=
+fi
+
+
@@ -8129,7 +8148,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 8132 "configure"' > conftest.$ac_ext
+ echo '#line 8151 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -10553,11 +10572,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:10556: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:10575: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:10560: \$? = $ac_status" >&5
+ echo "$as_me:10579: \$? = $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
@@ -10808,11 +10827,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:10811: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:10830: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:10815: \$? = $ac_status" >&5
+ echo "$as_me:10834: \$? = $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
@@ -10868,11 +10887,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:10871: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:10890: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:10875: \$? = $ac_status" >&5
+ echo "$as_me:10894: \$? = $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
@@ -13247,7 +13266,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 13250 "configure"
+#line 13269 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13345,7 +13364,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 13348 "configure"
+#line 13367 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15609,11 +15628,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:15612: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:15631: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:15616: \$? = $ac_status" >&5
+ echo "$as_me:15635: \$? = $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
@@ -15669,11 +15688,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:15672: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:15691: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:15676: \$? = $ac_status" >&5
+ echo "$as_me:15695: \$? = $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
@@ -17167,7 +17186,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 17170 "configure"
+#line 17189 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -17265,7 +17284,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 17268 "configure"
+#line 17287 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -18120,11 +18139,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:18123: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:18142: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:18127: \$? = $ac_status" >&5
+ echo "$as_me:18146: \$? = $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
@@ -18180,11 +18199,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:18183: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:18202: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:18187: \$? = $ac_status" >&5
+ echo "$as_me:18206: \$? = $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
@@ -20263,11 +20282,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:20266: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:20285: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:20270: \$? = $ac_status" >&5
+ echo "$as_me:20289: \$? = $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
@@ -20518,11 +20537,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:20521: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:20540: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:20525: \$? = $ac_status" >&5
+ echo "$as_me:20544: \$? = $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
@@ -20578,11 +20597,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:20581: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:20600: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:20585: \$? = $ac_status" >&5
+ echo "$as_me:20604: \$? = $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
@@ -22957,7 +22976,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 22960 "configure"
+#line 22979 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -23055,7 +23074,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 23058 "configure"
+#line 23077 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -60404,6 +60423,7 @@ LT_STATIC_EXEC!$LT_STATIC_EXEC$ac_delim
PERL!$PERL$ac_delim
AR!$AR$ac_delim
TR!$TR$ac_delim
+TIME!$TIME$ac_delim
PARALLEL!$PARALLEL$ac_delim
RUNSERIAL!$RUNSERIAL$ac_delim
RUNPARALLEL!$RUNPARALLEL$ac_delim
@@ -60466,7 +60486,7 @@ LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5