home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Divers
/
lzop-1.00.tar.gz
/
lzop-1.00.tar
/
lzop-1.00
/
acconfig
/
m4
/
ccbugcast.m4
< prev
next >
Wrap
Text File
|
1998-04-20
|
720b
|
18 lines
## --------------------------------------------------------- ##
## Checking if compiler correctly cast signed to unsigned. ##
## Adapted from zsh. ##
## --------------------------------------------------------- ##
# serial 1
AC_DEFUN(mfx_PROG_CC_BUG_SIGNED_TO_UNSIGNED_CASTING,
[AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_CPP])dnl
AC_CACHE_CHECK(whether signed to unsigned casting is broken,
mfx_cv_prog_cc_bug_signed_to_unsigned_casting,
[AC_TRY_RUN([main(){return((int)(unsigned char)((char) -1) != 255);}],
mfx_cv_prog_cc_bug_signed_to_unsigned_casting=no,
mfx_cv_prog_cc_bug_signed_to_unsigned_casting=yes,
mfx_cv_prog_cc_bug_signed_to_unsigned_casting=unknown)])
])