diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-12 06:56:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-12 06:56:54 +0000 |
commit | 5d0f90dff7c5aa570f761a76baec010f145d8101 (patch) | |
tree | 35d87edad813716b05673ff82b769ee45af8ac98 /m4 | |
parent | f3b0ab5eba9b2492989ee33464f4f2204eab59cb (diff) | |
download | coreutils-5d0f90dff7c5aa570f761a76baec010f145d8101.tar.xz |
*** empty log message ***
Diffstat (limited to 'm4')
-rw-r--r-- | m4/c-bs-a.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/m4/c-bs-a.m4 b/m4/c-bs-a.m4 new file mode 100644 index 000000000..ceb26ae59 --- /dev/null +++ b/m4/c-bs-a.m4 @@ -0,0 +1,25 @@ +#serial 1 + +dnl From Paul Eggert. + +AC_DEFUN(AC_C_BACKSLASH_A, +[ + AC_CACHE_CHECK([whether backslash-a works in strings], ac_cv_c_backslash_a, + [AC_TRY_COMPILE([], + [ + changequote(, ) dnl +#if '\a' == 'a' + syntax error; +#endif + char buf['\a' == 'a' ? -1 : 1]; + buf[0] = '\a'; + return buf[0] != "\a"[0]; + changequote([, ])dnl + ], + ac_cv_c_backslash_a=yes, + ac_cv_c_backslash_a=no)]) + if test $ac_cv_c_backslash_a = yes; then + AC_DEFINE(HAVE_C_BACKSLASH_A, 1, + [Define if backslash-a works in C strings.]) + fi +]) |