Modified 'configure.in' to overcome the Cygwin bug of adding a ^M to the output of the 'sizeof' test code. From all I read, the notation seems to be shell scripting standard and should be available everywhere.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2007-05-09 19:40:04 +00:00
parent 8ff61aeef7
commit ee1d3823a0
1 changed files with 5 additions and 5 deletions

View File

@ -312,20 +312,20 @@ AC_C_BIGENDIAN
AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
if test $ac_cv_sizeof_short -eq 2; then
if test ${ac_cv_sizeof_short:0:1} -eq 2; then
AC_DEFINE(U16,unsigned short)
fi
if test $ac_cv_sizeof_int -eq 4; then
if test ${ac_cv_sizeof_int:0:1} -eq 4; then
AC_DEFINE(U32,unsigned)
else
if test $ac_cv_sizeof_long -eq 4; then
if test ${ac_cv_sizeof_long:0:1} -eq 4; then
AC_DEFINE(U32,unsigned long)
fi
fi
if test $ac_cv_sizeof_int -eq 8; then
if test ${ac_cv_sizeof_int:0:1} -eq 8; then
AC_DEFINE(U64,unsigned)
else
if test $ac_cv_sizeof_long -eq 8; then
if test ${ac_cv_sizeof_long:0:1} -eq 8; then
AC_DEFINE(U64,unsigned long)
fi
fi