cvs: /php4 configure.in acinclude.m4

From: Date: Thu, 13 Apr 2000 12:24:58 +0000
Subject: cvs: /php4 configure.in acinclude.m4
Groups: php.version4 
Request: Send a blank email to php-version4+get-13495@lists.php.net to get a copy of this message
martin Thu Apr 13 05:24:58 2000 EDT Modified files: /php4 configure.in acinclude.m4 Log: Test for EBCDIC platform Index: php4/configure.in diff -u php4/configure.in:1.111 php4/configure.in:1.112 --- php4/configure.in:1.111 Sat Apr 1 06:39:14 2000 +++ php4/configure.in Thu Apr 13 05:24:28 2000 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.111 2000/04/01 14:39:14 sas Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.112 2000/04/13 12:24:28 martin Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -152,6 +152,9 @@ if test -n "$PROG_SENDMAIL"; then AC_DEFINE(HAVE_SENDMAIL) fi + +dnl Check whether the system uses EBCDIC (not ASCII) as its native codeset +PHP_EBCDIC dnl dnl Check for /usr/pkg/{lib,include} which is where NetBSD puts binary Index: php4/acinclude.m4 diff -u php4/acinclude.m4:1.71 php4/acinclude.m4:1.72 --- php4/acinclude.m4:1.71 Sat Apr 1 08:00:34 2000 +++ php4/acinclude.m4 Thu Apr 13 05:24:28 2000 @@ -1,4 +1,4 @@ -dnl $Id: acinclude.m4,v 1.71 2000/04/01 16:00:34 sas Exp $ +dnl $Id: acinclude.m4,v 1.72 2000/04/13 12:24:28 martin Exp $ dnl dnl This file contains local autoconf functions. @@ -604,3 +604,22 @@ 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 +]) +

« previous php.version4 (#13495) next »