summaryrefslogtreecommitdiff
path: root/Zend/acinclude.m4
diff options
context:
space:
mode:
authorStig S. Bakken <stig@php.net>1999-04-19 20:10:26 +0000
committerStig S. Bakken <stig@php.net>1999-04-19 20:10:26 +0000
commitb227e385ccdd99c1a263ca8226fa356175883b78 (patch)
tree394fb7e5475525465a9f80d5cc4949134432fac8 /Zend/acinclude.m4
parent5033ee7d69e8890b1927a74c09fa8cac7fa6051a (diff)
downloadphp-git-b227e385ccdd99c1a263ca8226fa356175883b78.tar.gz
convert to automake
Diffstat (limited to 'Zend/acinclude.m4')
-rw-r--r--Zend/acinclude.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4
new file mode 100644
index 0000000000..9b1421eb6e
--- /dev/null
+++ b/Zend/acinclude.m4
@@ -0,0 +1,20 @@
+dnl $Id$
+dnl
+dnl This file contains local autoconf functions.
+
+dnl
+dnl Check for broken sprintf()
+dnl
+AC_DEFUN(AC_BROKEN_SPRINTF,[
+ AC_MSG_CHECKING([for broken sprintf])
+ AC_TRY_RUN([main() { char buf[20]; exit (sprintf(buf,"testing 123")!=11); }],[
+ AC_DEFINE(BROKEN_SPRINTF,0)
+ AC_MSG_RESULT(ok)
+ ],[
+ AC_DEFINE(BROKEN_SPRINTF,1)
+ AC_MSG_RESULT(broken)
+ ],[
+ AC_DEFINE(BROKEN_SPRINTF,0)
+ AC_MSG_RESULT(cannot check, guessing ok)
+ ])
+])