@@ -1260,33 +1260,21 @@ dnl
1260
1260
dnl PHP_MISSING_TIME_R_DECL
1261
1261
dnl
1262
1262
AC_DEFUN ( [ PHP_MISSING_TIME_R_DECL] ,[
1263
- AC_MSG_CHECKING ( [ for missing declarations of reentrant functions] )
1264
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)(void) = localtime_r] ] ) ] ,[
1265
- :
1266
- ] ,[
1267
- AC_DEFINE ( MISSING_LOCALTIME_R_DECL ,1 ,[ Whether localtime_r is declared] )
1268
- ] )
1269
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)(void) = gmtime_r] ] ) ] ,[
1270
- :
1271
- ] ,[
1272
- AC_DEFINE ( MISSING_GMTIME_R_DECL ,1 ,[ Whether gmtime_r is declared] )
1273
- ] )
1274
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)(void) = asctime_r] ] ) ] ,[
1275
- :
1276
- ] ,[
1277
- AC_DEFINE ( MISSING_ASCTIME_R_DECL ,1 ,[ Whether asctime_r is declared] )
1278
- ] )
1279
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)(void) = ctime_r] ] ) ] ,[
1280
- :
1281
- ] ,[
1282
- AC_DEFINE ( MISSING_CTIME_R_DECL ,1 ,[ Whether ctime_r is declared] )
1283
- ] )
1284
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <string.h>] ] , [ [ char *(*func)(void) = strtok_r] ] ) ] ,[
1285
- :
1286
- ] ,[
1287
- AC_DEFINE ( MISSING_STRTOK_R_DECL ,1 ,[ Whether strtok_r is declared] )
1288
- ] )
1289
- AC_MSG_RESULT ( [ done] )
1263
+ AC_CHECK_DECL ( [ localtime_r] ,,
1264
+ [ AC_DEFINE ( [ MISSING_LOCALTIME_R_DECL] , [ 1] , [ Whether localtime_r is declared] ) ] ,
1265
+ [ #include <time.h>] )
1266
+ AC_CHECK_DECL ( [ gmtime_r] ,,
1267
+ [ AC_DEFINE ( [ MISSING_GMTIME_R_DECL] , [ 1] , [ Whether gmtime_r is declared] ) ] ,
1268
+ [ #include <time.h>] )
1269
+ AC_CHECK_DECL ( [ asctime_r] ,,
1270
+ [ AC_DEFINE ( [ MISSING_ASCTIME_R_DECL] , [ 1] , [ Whether asctime_r is declared] ) ] ,
1271
+ [ #include <time.h>] )
1272
+ AC_CHECK_DECL ( [ ctime_r] ,,
1273
+ [ AC_DEFINE ( [ MISSING_CTIME_R_DECL] , [ 1] , [ Whether ctime_r is declared] ) ] ,
1274
+ [ #include <time.h>] )
1275
+ AC_CHECK_DECL ( [ strtok_r] ,,
1276
+ [ AC_DEFINE ( [ MISSING_STRTOK_R_DECL] , [ 1] , [ Whether strtok_r is declared] ) ] ,
1277
+ [ #include <string.h>] )
1290
1278
] )
1291
1279
1292
1280
dnl
0 commit comments