@@ -946,7 +946,8 @@ dnl ---------------------------------------------- Shared module
946
946
[ PHP_] translit ( $1 ,a-z_- ,A-Z__ ) [ _SHARED] =yes
947
947
PHP_ADD_SOURCES_X($ext_dir,$2 ,$ac_extra -DZEND_COMPILE_DL_EXT=1,shared_objects_$1 ,yes)
948
948
PHP_SHARED_MODULE($1 ,shared_objects_$1 , $ext_builddir, $6 , $7 )
949
- AC_DEFINE_UNQUOTED ( [ COMPILE_DL_] translit ( $1 ,a-z_- ,A-Z__ ) , 1 , Whether to build $1 as dynamic module )
949
+ AC_DEFINE_UNQUOTED ( [ COMPILE_DL_] translit ( $1 ,a-z_- ,A-Z__ ) , [ 1] ,
950
+ [ Define to 1 if the PHP extension '$1 ' is built as a dynamic module.] )
950
951
fi
951
952
fi
952
953
@@ -1060,8 +1061,10 @@ dnl
1060
1061
AC_DEFUN ( [ PHP_CHECK_SIZEOF] , [
1061
1062
AC_MSG_CHECKING ( [ size of $1 ] )
1062
1063
_PHP_CHECK_SIZEOF($1 , $2 , $3 , [
1063
- AC_DEFINE_UNQUOTED ( [ SIZEOF_] translit ( $1 ,a-z ,A-Z_ ) , [ $] php_cv_sizeof_ [ ] $1 , [ Size of $1 ] )
1064
- AC_DEFINE_UNQUOTED ( [ HAVE_] translit ( $1 ,a-z ,A-Z_ ) , 1 , [ Whether $1 is available] )
1064
+ AC_DEFINE_UNQUOTED ( [ SIZEOF_] translit ( $1 ,a-z ,A-Z_ ) , [ $] php_cv_sizeof_ [ ] $1 ,
1065
+ [ The size of '$1 ', as computed by sizeof.] )
1066
+ AC_DEFINE_UNQUOTED ( [ HAVE_] translit ( $1 ,a-z ,A-Z_ ) , [ 1] ,
1067
+ [ Define to 1 if the system has the type '$1 '.] )
1065
1068
] )
1066
1069
AC_MSG_RESULT ( [ [ $] [ php_cv_sizeof_] translit ( $1 , ,_ ) ] )
1067
1070
] )
@@ -1197,9 +1200,11 @@ AC_DEFUN([PHP_PWRITE_TEST],[
1197
1200
] )
1198
1201
1199
1202
if test "$ac_cv_pwrite" != "no"; then
1200
- AC_DEFINE ( HAVE_PWRITE , 1 , [ ] )
1203
+ AC_DEFINE ( [ HAVE_PWRITE] , [ 1] ,
1204
+ [ Define to 1 if you have the 'pwrite' function.] )
1201
1205
if test "$ac_cv_pwrite" = "64"; then
1202
- AC_DEFINE ( PHP_PWRITE_64 , 1 , [ whether pwrite64 is default] )
1206
+ AC_DEFINE ( [ PHP_PWRITE_64] , [ 1] ,
1207
+ [ Define to 1 if 'pwrite' declaration with 'off64_t' is missing.] )
1203
1208
fi
1204
1209
fi
1205
1210
] )
@@ -1219,9 +1224,11 @@ AC_DEFUN([PHP_PREAD_TEST],[
1219
1224
] )
1220
1225
1221
1226
if test "$ac_cv_pread" != "no"; then
1222
- AC_DEFINE ( HAVE_PREAD , 1 , [ ] )
1227
+ AC_DEFINE ( [ HAVE_PREAD] , [ 1] ,
1228
+ [ Define to 1 if you have the 'pread' function.] )
1223
1229
if test "$ac_cv_pread" = "64"; then
1224
- AC_DEFINE ( PHP_PREAD_64 , 1 , [ whether pread64 is default] )
1230
+ AC_DEFINE ( [ PHP_PREAD_64] , [ 1] ,
1231
+ [ Define to 1 if 'pread' declaration with 'off64_t' is missing.] )
1225
1232
fi
1226
1233
fi
1227
1234
] )
@@ -1231,19 +1238,24 @@ dnl PHP_MISSING_TIME_R_DECL
1231
1238
dnl
1232
1239
AC_DEFUN ( [ PHP_MISSING_TIME_R_DECL] ,[
1233
1240
AC_CHECK_DECL ( [ localtime_r] ,,
1234
- [ AC_DEFINE ( [ MISSING_LOCALTIME_R_DECL] , [ 1] , [ Whether localtime_r is declared] ) ] ,
1241
+ [ AC_DEFINE ( [ MISSING_LOCALTIME_R_DECL] , [ 1] ,
1242
+ [ Define to 1 if 'localtime_r' declaration is missing.] ) ] ,
1235
1243
[ #include <time.h>] )
1236
1244
AC_CHECK_DECL ( [ gmtime_r] ,,
1237
- [ AC_DEFINE ( [ MISSING_GMTIME_R_DECL] , [ 1] , [ Whether gmtime_r is declared] ) ] ,
1245
+ [ AC_DEFINE ( [ MISSING_GMTIME_R_DECL] , [ 1] ,
1246
+ [ Define to 1 if 'gmtime_r' declaration is missing.] ) ] ,
1238
1247
[ #include <time.h>] )
1239
1248
AC_CHECK_DECL ( [ asctime_r] ,,
1240
- [ AC_DEFINE ( [ MISSING_ASCTIME_R_DECL] , [ 1] , [ Whether asctime_r is declared] ) ] ,
1249
+ [ AC_DEFINE ( [ MISSING_ASCTIME_R_DECL] , [ 1] ,
1250
+ [ Define to 1 if 'asctime_r' declaration is missing.] ) ] ,
1241
1251
[ #include <time.h>] )
1242
1252
AC_CHECK_DECL ( [ ctime_r] ,,
1243
- [ AC_DEFINE ( [ MISSING_CTIME_R_DECL] , [ 1] , [ Whether ctime_r is declared] ) ] ,
1253
+ [ AC_DEFINE ( [ MISSING_CTIME_R_DECL] , [ 1] ,
1254
+ [ Define to 1 if 'ctime_r' declaration is missing.] ) ] ,
1244
1255
[ #include <time.h>] )
1245
1256
AC_CHECK_DECL ( [ strtok_r] ,,
1246
- [ AC_DEFINE ( [ MISSING_STRTOK_R_DECL] , [ 1] , [ Whether strtok_r is declared] ) ] ,
1257
+ [ AC_DEFINE ( [ MISSING_STRTOK_R_DECL] , [ 1] ,
1258
+ [ Define to 1 if 'strtok_r' declaration is missing.] ) ] ,
1247
1259
[ #include <string.h>] )
1248
1260
] )
1249
1261
@@ -1275,7 +1287,8 @@ AC_DEFUN([PHP_BROKEN_GETCWD],[
1275
1287
os=`uname -sr 2>/dev/null`
1276
1288
case $os in
1277
1289
SunOS*[ )]
1278
- AC_DEFINE ( HAVE_BROKEN_GETCWD ,1 , [ Define if system has broken getcwd] )
1290
+ AC_DEFINE ( [ HAVE_BROKEN_GETCWD] , [ 1] ,
1291
+ [ Define to 1 if system has a broken 'getcwd'.] )
1279
1292
AC_MSG_RESULT ( [ yes] ) ;;
1280
1293
*[ )]
1281
1294
AC_MSG_RESULT ( [ no] ) ;;
@@ -1367,7 +1380,7 @@ int main(void) {
1367
1380
) ] )
1368
1381
AS_VAR_IF ( [ php_cv_type_cookie_off64_t] , [ yes] ,
1369
1382
[ AC_DEFINE ( [ COOKIE_SEEKER_USES_OFF64_T] , [ 1] ,
1370
- [ Whether fopencookie seeker uses off64_t.] ) ] )
1383
+ [ Define to 1 if fopencookie seeker uses off64_t.] ) ] )
1371
1384
] )
1372
1385
] )
1373
1386
@@ -1912,11 +1925,10 @@ dnl Common setup macro for expat.
1912
1925
dnl
1913
1926
AC_DEFUN ( [ PHP_SETUP_EXPAT] , [
1914
1927
PKG_CHECK_MODULES([ EXPAT] , [ expat] )
1915
-
1916
1928
PHP_EVAL_INCLINE([ $EXPAT_CFLAGS] )
1917
1929
PHP_EVAL_LIBLINE([ $EXPAT_LIBS] , [ $1 ] )
1918
-
1919
- AC_DEFINE ( HAVE_LIBEXPAT , 1 , [ ] )
1930
+ AC_DEFINE ( [ HAVE_LIBEXPAT ] , [ 1 ] ,
1931
+ [ Define to 1 if the system has the Expat XML parser library. ] )
1920
1932
] )
1921
1933
1922
1934
dnl
@@ -2436,7 +2448,7 @@ AC_CACHE_CHECK([for $1], [php_var],
2436
2448
] )
2437
2449
AS_VAR_IF ( [ php_var] , [ yes] ,
2438
2450
[ AC_DEFINE_UNQUOTED ( AS_TR_CPP ( [ PHP_HAVE_] m4_bpatsubst ( [ $1 ] , [ ^_*] , [ ] ) ) , [ 1] ,
2439
- [ Define to 1 if compiler supports '$1 '.] ) ] )
2451
+ [ Define to 1 if the compiler supports '$1 '.] ) ] )
2440
2452
AS_VAR_POPDEF ( [ php_var] )
2441
2453
] )
2442
2454
0 commit comments