summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-11-12 19:14:09 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-11-12 19:14:09 (GMT)
commit1b12b8ecc26fb7eb517388935e65f5dd0b1e6dc1 (patch)
treeb1ebf4723787442a0525f3bdcbdf400c884624d9 /configure
parentd2e56d2486e4cf8638b19f528694c3179dc370ce (diff)
downloadhdf5-1b12b8ecc26fb7eb517388935e65f5dd0b1e6dc1.zip
hdf5-1b12b8ecc26fb7eb517388935e65f5dd0b1e6dc1.tar.gz
hdf5-1b12b8ecc26fb7eb517388935e65f5dd0b1e6dc1.tar.bz2
[svn-r23022] HDFFV-498: lone colon test fails on cygwin and leaves a.exe file on system. Added test for CYGWIN and use a,exe instead of a.out.
Review: HHDF5-1-8-31 Tested: cygwin
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure b/configure
index b580c23..ee58429 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Id: configure.ac 22986 2012-10-29 03:20:22Z hdftest .
+# From configure.ac Id: configure.ac 23009 2012-11-05 02:58:15Z hdftest .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for HDF5 1.8.11-snap2.
#
@@ -27190,11 +27190,18 @@ else
echo "int main(int argc, char * argv) {return 0;}" > conftest.c
$CC $CFLAGS conftest.c > /dev/null 2> /dev/null
- echo "./a.out :" > conftest.sh
+case "`uname`" in
+ CYGWIN*)
+ echo "./a.exe :" > conftest.sh
+ ;;
+ *)
+ echo "./a.out :" > conftest.sh
+ ;;
+esac
chmod 700 conftest.sh
./conftest.sh 2> conftest.out
- rm a.out
+ rm -f a.out a.exe
TEST_OUTPUT=`cat conftest.out`
if test "X$TEST_OUTPUT" = "X"; then