xref: /PHP-5.5/win32/build/config.w32.h.in (revision 3a24a0b7)
1/*
2	Build Configuration Template for Win32.
3	$Id$
4*/
5
6/* Define the minimum supported version */
7#undef _WIN32_WINNT
8#undef NTDDI_VERSION
9#define _WIN32_WINNT 0x0600
10#define NTDDI_VERSION  0x06000100
11
12/* Default PHP / PEAR directories */
13#define PHP_CONFIG_FILE_PATH (getenv("SystemRoot"))?getenv("SystemRoot"):""
14#define CONFIGURATION_FILE_PATH "php.ini"
15#define PEAR_INSTALLDIR "@PREFIX@\\pear"
16#define PHP_BINDIR "@PREFIX@"
17#define PHP_DATADIR "@PREFIX@"
18#define PHP_EXTENSION_DIR "@PREFIX@"
19#define PHP_INCLUDE_PATH	".;@PREFIX@\\pear"
20#define PHP_LIBDIR "@PREFIX@"
21#define PHP_LOCALSTATEDIR "@PREFIX@"
22#define PHP_PREFIX "@PREFIX@"
23#define PHP_SYSCONFDIR "@PREFIX@"
24
25/* Enable / Disable crypt() function (default: enabled) */
26#define HAVE_CRYPT 1
27#define PHP_STD_DES_CRYPT 1
28#define PHP_EXT_DES_CRYPT 1
29#define PHP_MD5_CRYPT 1
30#define PHP_BLOWFISH_CRYPT 1
31#define PHP_SHA512_CRYPT 1
32#define PHP_SHA256_CRYPT 1
33
34/* PHP Runtime Configuration */
35#define PHP_URL_FOPEN 1
36#define USE_CONFIG_FILE 1
37#define DEFAULT_SHORT_OPEN_TAG "1"
38
39/* Platform-Specific Configuration. Should not be changed. */
40#define PHP_SIGCHILD 0
41#define HAVE_LIBBIND 1
42#define HAVE_GETSERVBYNAME 1
43#define HAVE_GETSERVBYPORT 1
44#define HAVE_GETPROTOBYNAME 1
45#define HAVE_GETPROTOBYNUMBER 1
46#define HAVE_GETHOSTNAME 1
47#define STDIN_FILENO 0
48#define STDOUT_FILENO 1
49#define STDERR_FILENO 2
50#define HAVE_ERRMSG_H 0
51#undef HAVE_ADABAS
52#undef HAVE_SOLID
53#undef HAVE_LINK
54#undef HAVE_SYMLINK
55
56/* its in win32/time.c */
57#define HAVE_USLEEP 1
58#define HAVE_NANOSLEEP 1
59#define PHP_SLEEP_NON_VOID 1
60
61#define HAVE_GETHOSTNAME 1
62#define HAVE_GETCWD 1
63#define HAVE_POSIX_READDIR_R 1
64#define NEED_ISBLANK 1
65#define DISCARD_PATH 0
66#undef HAVE_SETITIMER
67#undef HAVE_SIGSETJMP
68#undef HAVE_IODBC
69#define HAVE_LIBDL 1
70#define HAVE_GETTIMEOFDAY 1
71#define HAVE_PUTENV 1
72#define HAVE_LIMITS_H 1
73#define HAVE_TZSET 1
74#define HAVE_TZNAME 1
75#undef HAVE_FLOCK
76#define HAVE_ALLOCA 1
77#undef HAVE_SYS_TIME_H
78#define HAVE_SIGNAL_H 1
79#undef HAVE_ST_BLKSIZE
80#undef HAVE_ST_BLOCKS
81#define HAVE_ST_RDEV 1
82#define HAVE_UTIME_NULL 1
83#define HAVE_VPRINTF 1
84#define STDC_HEADERS 1
85#define REGEX 1
86#define HSREGEX 1
87#define HAVE_GCVT 1
88#define HAVE_GETLOGIN 1
89#define HAVE_GETTIMEOFDAY 1
90#define HAVE_MEMCPY 1
91#define HAVE_MEMMOVE 1
92#define HAVE_PUTENV 1
93#define HAVE_REGCOMP 1
94#define HAVE_SETLOCALE 1
95#define HAVE_LOCALECONV 1
96#define HAVE_LOCALE_H 1
97#ifndef HAVE_LIBBIND
98# define HAVE_SETVBUF 1
99#endif
100#define HAVE_SHUTDOWN 1
101#define HAVE_SNPRINTF 1
102#define HAVE_VSNPRINTF 1
103#define HAVE_STRCASECMP 1
104#define HAVE_STRDUP 1
105#define HAVE_STRERROR 1
106#define HAVE_STRSTR 1
107#define HAVE_TEMPNAM 1
108#define HAVE_UTIME 1
109#undef HAVE_DIRENT_H
110#define HAVE_ASSERT_H 1
111#define HAVE_FCNTL_H 1
112#define HAVE_GRP_H 0
113#undef HAVE_PWD_H
114#define HAVE_STRING_H 1
115#undef HAVE_SYS_FILE_H
116#undef HAVE_SYS_SOCKET_H
117#undef HAVE_SYS_WAIT_H
118#define HAVE_SYSLOG_H 1
119#undef HAVE_UNISTD_H
120#define HAVE_SYS_TYPES_H 1
121#define HAVE_STDARG_H 1
122#undef HAVE_ALLOCA_H
123#undef HAVE_KILL
124#define HAVE_GETPID 1
125#define HAVE_LIBM 1
126#define HAVE_CUSERID 0
127#undef HAVE_RINT
128#define HAVE_STRFTIME 1
129#define SIZEOF_SHORT 2
130/* int and long are stll 32bit in 64bit compiles */
131#define SIZEOF_INT 4
132#define SIZEOF_LONG 4
133/* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */
134#define SIZEOF_LONG_LONG_INT 0
135#define SIZEOF_LONG_LONG 8 /* defined as __int64 */
136#define SIZEOF_INTMAX_T 0
137#define ssize_t SSIZE_T
138#ifdef _WIN64
139# define SIZEOF_SIZE_T 8
140# define SIZEOF_PTRDIFF_T 8
141#else
142# define SIZEOF_SIZE_T 4
143# define SIZEOF_PTRDIFF_T 4
144#endif
145#define HAVE_FNMATCH
146#define HAVE_GLOB
147#define PHP_SHLIB_SUFFIX "dll"
148#define HAVE_SQLDATASOURCES
149
150/* Win32 supports strcoll */
151#define HAVE_STRCOLL 1
152
153/* Win32 supports socketpair by the emulation in win32/sockets.c */
154#define HAVE_SOCKETPAIR 1
155#define HAVE_SOCKLEN_T 1
156
157/* Win32 support proc_open */
158#define PHP_CAN_SUPPORT_PROC_OPEN 1
159
160/* inet_ntop() / inet_pton() */
161#define HAVE_INET_PTON 1
162#define HAVE_INET_NTOP 1
163
164#define HAVE_MBLEN
165
166#undef HAVE_ATOF_ACCEPTS_NAN
167#undef HAVE_ATOF_ACCEPTS_INF
168#define HAVE_HUGE_VAL_NAN 0
169
170/* vs.net 2005 has a 64-bit time_t.  This will likely break
171 * 3rdParty libs that were built with older compilers; switch
172 * back to 32-bit */
173#ifndef _WIN64
174# define _USE_32BIT_TIME_T 1
175#endif
176#define HAVE_STDLIB_H 1
177