4
0

c-bs-a.m4 515 B

1234567891011121314151617181920212223
  1. #serial 4
  2. dnl From Paul Eggert.
  3. AC_DEFUN([AC_C_BACKSLASH_A],
  4. [
  5. AC_CACHE_CHECK([whether backslash-a works in strings], ac_cv_c_backslash_a,
  6. [AC_TRY_COMPILE([],
  7. [
  8. #if '\a' == 'a'
  9. syntax error;
  10. #endif
  11. char buf['\a' == 'a' ? -1 : 1];
  12. buf[0] = '\a';
  13. return buf[0] != "\a"[0];
  14. ],
  15. ac_cv_c_backslash_a=yes,
  16. ac_cv_c_backslash_a=no)])
  17. if test $ac_cv_c_backslash_a = yes; then
  18. AC_DEFINE(HAVE_C_BACKSLASH_A, 1,
  19. [Define if backslash-a works in C strings.])
  20. fi
  21. ])