diff options
author | Martin Kraemer <martin@php.net> | 2000-04-13 12:24:28 +0000 |
---|---|---|
committer | Martin Kraemer <martin@php.net> | 2000-04-13 12:24:28 +0000 |
commit | 06e504d32a2a879abd32e05b674292bc059d1e8c (patch) | |
tree | b6d8958009d7ca5a25ff00898d85fe0596575dc1 /acinclude.m4 | |
parent | efabab1a34f1ca332137e0515126ceec300f3b44 (diff) | |
download | php-git-06e504d32a2a879abd32e05b674292bc059d1e8c.tar.gz |
Test for EBCDIC platform
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index fa2e527f6d..bd95759a40 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -604,3 +604,22 @@ AC_DEFUN(PHP_DECLARED_TIMEZONE,[ AC_DEFINE(HAVE_DECLARED_TIMEZONE, 1, [Whether system headers declare timezone]) fi ]) + +AC_DEFUN(PHP_EBCDIC,[ + AC_CACHE_CHECK([whether system uses EBCDIC],ac_cv_ebcdic,[ + AC_TRY_RUN( [ +int main(void) { + return (unsigned char)'A' != (unsigned char)0xC1; +} +],[ + ac_cv_ebcdic="yes" +],[ + ac_cv_ebcdic="no" +],[ + ac_cv_ebcdic="no" +])]) + if test "$ac_cv_ebcdic" = "yes"; then + AC_DEFINE(CHARSET_EBCDIC,, [Define if system uses EBCDIC]) + fi +]) + |