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 >
Text File  |  1998-04-20  |  720b  |  18 lines

  1. ## --------------------------------------------------------- ##
  2. ## Checking if compiler correctly cast signed to unsigned.   ##
  3. ## Adapted from zsh.                                         ##
  4. ## --------------------------------------------------------- ##
  5.  
  6. # serial 1
  7.  
  8. AC_DEFUN(mfx_PROG_CC_BUG_SIGNED_TO_UNSIGNED_CASTING,
  9. [AC_REQUIRE([AC_PROG_CC])dnl
  10. AC_REQUIRE([AC_PROG_CPP])dnl
  11. AC_CACHE_CHECK(whether signed to unsigned casting is broken,
  12. mfx_cv_prog_cc_bug_signed_to_unsigned_casting,
  13. [AC_TRY_RUN([main(){return((int)(unsigned char)((char) -1) != 255);}],
  14. mfx_cv_prog_cc_bug_signed_to_unsigned_casting=no,
  15. mfx_cv_prog_cc_bug_signed_to_unsigned_casting=yes,
  16. mfx_cv_prog_cc_bug_signed_to_unsigned_casting=unknown)])
  17. ])
  18.