s48_misaligned_doubles.m4 601 B

123456789101112131415161718192021
  1. ### s48_misaligned_doubles.m4 --- S48_MISALIGNED_DOUBLES macro -*- Autoconf -*-
  2. # serial 1
  3. dnl
  4. dnl
  5. dnl must run after S48_DYNAMIC_EXTERNALS
  6. AC_DEFUN([S48_MISALIGNED_DOUBLES], [dnl
  7. if test "$GCC" = "yes"; then
  8. AC_MSG_CHECKING([-munaligned-doubles])
  9. oldCFLAGS="$CFLAGS"
  10. CFLAGS="$CFLAGS -munaligned-doubles"
  11. AC_TRY_RUN([int main() { return 0;}],
  12. [AC_MSG_RESULT(yes)
  13. DYNAMIC_EXTERNALS_CFLAGS="$DYNAMIC_EXTERNALS_CFLAGS -munaligned-doubles"],
  14. [AC_MSG_RESULT(no)
  15. CFLAGS="$oldCFLAGS"],
  16. [AC_MSG_RESULT(no)
  17. CFLAGS="$oldCFLAGS"])
  18. fi
  19. ])dnl
  20. ### s48_misaligned_doubles.m4 ends here