2
0
mirror of https://github.com/HDFGroup/hdf5.git synced 2025-04-12 17:31:09 +08:00

[svn-r11335] Purpose:

Bug fix

Description:
configure used 'uname -o' to detect Cygwin.  This command is fine on
Cygwin, but causes errors on some other platforms (sol).
Fixed this.

Solution:
Used 'uname' with no -o option to identify Cygwin.

Platforms tested:
mir, cygwin (on finrod)
This commit is contained in:
James Laird 2005-09-01 15:38:18 -05:00
parent c7808fa57e
commit 30c61d0f25
2 changed files with 16 additions and 8 deletions

10
configure vendored

@ -23213,7 +23213,8 @@ fi
done
if test "`uname -o`" = "Cygwin"; then
case "`uname`" in
CYGWIN*)
for ac_header in io.h sys/timeb.h
@ -23365,7 +23366,8 @@ fi
done
else
;;
*)
@ -23518,7 +23520,9 @@ fi
done
fi
;;
esac
case "$host" in
alpha*-dec*-osf*)

@ -761,11 +761,15 @@ AC_CHECK_HEADERS([stddef.h setjmp.h features.h])
AC_CHECK_HEADERS([stdint.h], [C9x=yes])
dnl Windows
if test "`uname -o`" = "Cygwin"; then
AC_CHECK_HEADERS([io.h sys/timeb.h])
else
AC_CHECK_HEADERS([io.h winsock.h sys/timeb.h])
fi
case "`uname`" in
CYGWIN*)
AC_CHECK_HEADERS([io.h sys/timeb.h])
;;
*)
AC_CHECK_HEADERS([io.h winsock.h sys/timeb.h])
;;
esac
case "$host" in
alpha*-dec*-osf*)
dnl The <sys/sysinfo.h> and <sys/proc.h> are needed on the DEC