From 9ac4f9ad6b410e775656a623a09b677ab8909f2a Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Fri, 11 Jan 2013 14:11:33 -0500 Subject: [svn-r23151] HDFFV-498: Eliminate a.exe file on cygwin configurations --- configure | 13 +++---------- configure.ac | 13 +++---------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/configure b/configure index 246009f..7417ed0 100755 --- a/configure +++ b/configure @@ -27160,19 +27160,12 @@ if ${hdf5_cv_lone_colon+:} false; then : else echo "int main(int argc, char * argv) {return 0;}" > conftest.c - $CC $CFLAGS conftest.c > /dev/null 2> /dev/null -case "`uname`" in - CYGWIN*) - echo "./a.exe :" > conftest.sh - ;; - *) - echo "./a.out :" > conftest.sh - ;; -esac + $CC $CFLAGS conftest.c -o a.out> /dev/null 2> /dev/null + echo "./a.out :" > conftest.sh chmod 700 conftest.sh ./conftest.sh 2> conftest.out - rm -f a.out a.exe + rm -f a.out TEST_OUTPUT=`cat conftest.out` if test "X$TEST_OUTPUT" = "X"; then diff --git a/configure.ac b/configure.ac index 1f1f298..a8f3a8e 100644 --- a/configure.ac +++ b/configure.ac @@ -2238,19 +2238,12 @@ AC_CACHE_CHECK([if lone colon can be used as an argument], [hdf5_cv_lone_colon], [ echo "int main(int argc, char * argv[]) {return 0;}" > conftest.c - $CC $CFLAGS conftest.c > /dev/null 2> /dev/null -case "`uname`" in - CYGWIN*) - echo "./a.exe :" > conftest.sh - ;; - *) - echo "./a.out :" > conftest.sh - ;; -esac + $CC $CFLAGS conftest.c -o a.out> /dev/null 2> /dev/null + echo "./a.out :" > conftest.sh chmod 700 conftest.sh ./conftest.sh 2> conftest.out - rm -f a.out a.exe + rm -f a.out TEST_OUTPUT=`cat conftest.out` if test "X$TEST_OUTPUT" = "X"; then -- cgit v0.12