Revision 16931,
515 bytes
checked in by ghudson, 23 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r16930,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #serial 3 |
---|
2 | |
---|
3 | dnl From Paul Eggert. |
---|
4 | |
---|
5 | AC_DEFUN([AC_C_BACKSLASH_A], |
---|
6 | [ |
---|
7 | AC_CACHE_CHECK([whether backslash-a works in strings], ac_cv_c_backslash_a, |
---|
8 | [AC_TRY_COMPILE([], |
---|
9 | [ |
---|
10 | #if '\a' == 'a' |
---|
11 | syntax error; |
---|
12 | #endif |
---|
13 | char buf['\a' == 'a' ? -1 : 1]; |
---|
14 | buf[0] = '\a'; |
---|
15 | return buf[0] != "\a"[0]; |
---|
16 | ], |
---|
17 | ac_cv_c_backslash_a=yes, |
---|
18 | ac_cv_c_backslash_a=no)]) |
---|
19 | if test $ac_cv_c_backslash_a = yes; then |
---|
20 | AC_DEFINE(HAVE_C_BACKSLASH_A, 1, |
---|
21 | [Define if backslash-a works in C strings.]) |
---|
22 | fi |
---|
23 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.