summaryrefslogtreecommitdiff
path: root/Zend/acconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/acconfig.h')
-rw-r--r--Zend/acconfig.h70
1 files changed, 54 insertions, 16 deletions
diff --git a/Zend/acconfig.h b/Zend/acconfig.h
index 7a80526f55..424af6f84d 100644
--- a/Zend/acconfig.h
+++ b/Zend/acconfig.h
@@ -1,3 +1,21 @@
+#define ZEND_API
+
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+
+#ifdef HAVE_STRING_H
+# include <string.h>
+#else
+# include <strings.h>
+#endif
+
+@TOP@
+
/* This is the default configuration file to read */
#define USE_CONFIG_FILE 1
@@ -11,19 +29,6 @@
/* define ulong by configure if it is missed (most probably is) */
#undef ulong
-/* type check for in_addr_t */
-#undef in_addr_t
-
-/* Define if you have dirent.h but opendir() resides in libc rather than in libdir */
-/* This will cause HAVE_DIRENT_H defined twice sometimes, but it should be problem */
-#define HAVE_DIRENT_H 0
-
-/* Define if you have struct flock */
-#define HAVE_STRUCT_FLOCK 0
-
-/* Define if you have the resolv library (-lresolv). */
-#define HAVE_LIBRESOLV 0
-
/* Undefine if you want stricter XML/SGML compliance by default */
/* (this disables "<?expression?>" by default) */
#define T_DEFAULT_SHORT_OPEN_TAG 1
@@ -32,9 +37,6 @@
#define REGEX 0
#define HSREGEX 0
-/* Define if you have libdl (used for dynamic linking) */
-#define HAVE_LIBDL 0
-
#undef ZEND_DEBUG
/* Define if you want to enable bc style precision math support */
@@ -48,3 +50,39 @@
/* Define to compile Zend thread safe */
#undef ZTS
+
+@BOTTOM@
+
+/* Define if you have stdiostream.h */
+#undef HAVE_STDIOSTREAM_H
+
+#ifdef HAVE_LIBDL
+# ifdef HAVE_DLFCN_H
+# include <dlfcn.h>
+# endif
+# define DL_LOAD(libname) dlopen(libname, RTLD_NOW)
+# define DL_UNLOAD dlclose
+# define DL_FETCH_SYMBOL dlsym
+# define DL_HANDLE void *
+# define ZEND_EXTENSIONS_SUPPORT 1
+#else
+# define DL_HANDLE void *
+# define ZEND_EXTENSIONS_SUPPORT 0
+#endif
+
+#if ZEND_BROKEN_SPRINTF
+int zend_sprintf(char *buffer, const char *format, ...);
+#else
+# define zend_sprintf sprintf
+#endif
+
+#if ZEND_DEBUG
+# define inline
+#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */