Guest User

Untitled

a guest
Jun 12th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.63 KB | None | 0 0
  1. configure:34676: checking for working mktime
  2. configure:34883: gcc -std=gnu11 -o conftest.exe -g -O2 -I/c/gcdev64/msys2/mingw32/include -I/usr/include -I/c/gcdev64/gnucash/master/inst/include -L/c/gcdev64/gnucash/master/inst/lib -L/c/gcdev64/msys2/mingw32/lib -L/usr/lib conftest.c >&5
  3. configure:34883: $? = 0
  4. configure:34883: ./conftest.exe
  5. configure:34883: $? = 3
  6. configure: program exited with status 3
  7. configure: failed program was:
  8. | /* confdefs.h */
  9. | #define PACKAGE_NAME "GNU Guile"
  10. | #define PACKAGE_TARNAME "guile"
  11. | #define PACKAGE_VERSION "2.2.7.4-9d7759"
  12. | #define PACKAGE_STRING "GNU Guile 2.2.7.4-9d7759"
  13. | #define PACKAGE_BUGREPORT "bug-guile@gnu.org"
  14. | #define PACKAGE_URL "http://www.gnu.org/software/guile/"
  15. | #define STDC_HEADERS 1
  16. | #define HAVE_SYS_TYPES_H 1
  17. | #define HAVE_SYS_STAT_H 1
  18. | #define HAVE_STDLIB_H 1
  19. | #define HAVE_STRING_H 1
  20. | #define HAVE_MEMORY_H 1
  21. | #define HAVE_STRINGS_H 1
  22. | #define HAVE_INTTYPES_H 1
  23. | #define HAVE_STDINT_H 1
  24. | #define HAVE_UNISTD_H 1
  25. | #define __EXTENSIONS__ 1
  26. | #define _ALL_SOURCE 1
  27. | #define _DARWIN_C_SOURCE 1
  28. | #define _GNU_SOURCE 1
  29. | #define _POSIX_PTHREAD_SEMANTICS 1
  30. | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
  31. | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
  32. | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
  33. | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
  34. | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
  35. | #define __STDC_WANT_LIB_EXT2__ 1
  36. | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
  37. | #define _TANDEM_SOURCE 1
  38. | #define _FILE_OFFSET_BITS 64
  39. | #define _DARWIN_USE_64_BIT_INODE 1
  40. | #define HAVE_SYS_PARAM_H 1
  41. | #define HAVE_DIRENT_H 1
  42. | #define HAVE_UNISTD_H 1
  43. | #define HAVE_SYS_STAT_H 1
  44. | #define HAVE_SYS_TIME_H 1
  45. | #define HAVE_ICONV_H 1
  46. | #define HAVE_LIMITS_H 1
  47. | #define HAVE_MATH_H 1
  48. | #define HAVE_MALLOC_H 1
  49. | #define HAVE_WCHAR_H 1
  50. | #define HAVE_STDINT_H 1
  51. | #define HAVE_SYS_FILE_H 1
  52. | #define HAVE_WCTYPE_H 1
  53. | #define HAVE_WS2TCPIP_H 1
  54. | #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  55. | #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
  56. | #define HAVE_WINSOCK2_H 1
  57. | #define HAVE_GETCWD 1
  58. | #define HAVE__SET_INVALID_PARAMETER_HANDLER 1
  59. | #define HAVE_GETLOGIN 1
  60. | #define HAVE_GETTIMEOFDAY 1
  61. | #define HAVE_ISBLANK 1
  62. | #define HAVE_ISWCTYPE 1
  63. | #define HAVE_TZSET 1
  64. | #define HAVE_SNPRINTF 1
  65. | #define HAVE_BTOWC 1
  66. | #define HAVE_MBSINIT 1
  67. | #define HAVE_MBRTOWC 1
  68. | #define HAVE_MPROTECT 1
  69. | #define HAVE_STRDUP 1
  70. | #define HAVE_WCRTOMB 1
  71. | #define HAVE_ISWCNTRL 1
  72. | #define HAVE_ALLOCA 1
  73. | #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
  74. | #define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1
  75. | #define HAVE_WCHAR_T 1
  76. | #define HAVE_RAW_DECL_SETLOCALE 1
  77. | #define HAVE_ENVIRON_DECL 1
  78. | #define HAVE_WORKING_O_NOATIME 0
  79. | #define HAVE_WORKING_O_NOFOLLOW 0
  80. | #define HAVE_DECL_ALARM 0
  81. | #define HAVE_FREXP 1
  82. | #define _GL_WINDOWS_64_BIT_ST_SIZE 1
  83. | #define nlink_t int
  84. | #define HAVE_RAW_DECL_FSTAT 1
  85. | #define HAVE_RAW_DECL_STAT 1
  86. | #define restrict __restrict
  87. | #define HAVE_WINSOCK2_H 1
  88. | #define HAVE_DECL_INET_NTOP 1
  89. | #define HAVE_IPV4 1
  90. | #define HAVE_IPV6 1
  91. | #define HAVE_DECL_GETLOGIN 0
  92. | #define HAVE_WINSOCK2_H 1
  93. | #define HAVE_RAW_DECL_GETTIMEOFDAY 1
  94. | #define HAVE_ICONV 1
  95. | #define ICONV_CONST
  96. | #define FLT_EXPBIT0_WORD 0
  97. | #define FLT_EXPBIT0_BIT 23
  98. | #define DBL_EXPBIT0_WORD 1
  99. | #define DBL_EXPBIT0_BIT 20
  100. | #define HAVE_LIBUNISTRING 1
  101. | #define HAVE_DECL_GETC_UNLOCKED 0
  102. | #define HAVE_DECL_ROUND 1
  103. | #define HAVE_STDLIB_H 1
  104. | #define MALLOC_0_IS_NONNULL 1
  105. | #define HAVE_UNSIGNED_LONG_LONG_INT 1
  106. | #define HAVE_LONG_LONG_INT 1
  107. | #define PROMOTED_MODE_T int
  108. | #define HAVE_WINSOCK2_H 1
  109. | #define WINDOWS_SOCKETS 1
  110. | #define HAVE_MBSTATE_T 1
  111. | #define HAVE_WINSOCK2_H 1
  112. | #define HAVE_DECL_SETENV 0
  113. | #define HAVE_SEARCH_H 1
  114. | #define HAVE_TSEARCH 1
  115. | #define uid_t int
  116. | #define gid_t int
  117. | #define HAVE__BOOL 1
  118. | #define HAVE_WINT_T 1
  119. | #define HAVE_DECL_TZNAME 1
  120. | #define HAVE_TZNAME 1
  121. | #define HAVE_RAW_DECL_MEMPCPY 1
  122. | #define HAVE_RAW_DECL_STRDUP 1
  123. | #define HAVE_RAW_DECL_STRNCAT 1
  124. | #define HAVE_RAW_DECL_STRNLEN 1
  125. | #define HAVE_RAW_DECL_STRPBRK 1
  126. | #define HAVE_RAW_DECL_STRTOK_R 1
  127. | #define HAVE_DECL_VSNPRINTF 1
  128. | #define TIME_T_IS_SIGNED 1
  129. | #define HAVE_DECL_SNPRINTF 1
  130. | #define HAVE_DECL_STRDUP 1
  131. | #define HAVE_DECL_UNSETENV 0
  132. | #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  133. | #define HAVE_STDINT_H_WITH_UINTMAX 1
  134. | #define HAVE_INTMAX_T 1
  135. | #define HAVE_SNPRINTF 1
  136. | #define HAVE_STRNLEN 1
  137. | #define HAVE_WCSLEN 1
  138. | #define HAVE_WCSNLEN 1
  139. | #define HAVE_MBRTOWC 1
  140. | #define HAVE_WCRTOMB 1
  141. | #define HAVE_DECL__SNPRINTF 1
  142. | #define HAVE_SNPRINTF_RETVAL_C99 1
  143. | #define GNULIB_TEST_ACCEPT 1
  144. | #define GNULIB_TEST_ACCEPT4 1
  145. | #define GNULIB_TEST_BIND 1
  146. | #define GNULIB_CANONICALIZE_LGPL 1
  147. | #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1
  148. | #define GNULIB_TEST_REALPATH 1
  149. | #define GNULIB_TEST_CEIL 1
  150. | #define HAVE_CLOCK_GETTIME 1
  151. | #define HAVE_CLOCK_SETTIME 1
  152. | #define HAVE_WINSOCK2_H 1
  153. | #define GNULIB_TEST_CLOSE 1
  154. | #define GNULIB_TEST_CONNECT 1
  155. | #define GNULIB_TEST_COPYSIGN 1
  156. | #define HAVE_RAW_DECL_CLOSEDIR 1
  157. | #define HAVE_RAW_DECL_OPENDIR 1
  158. | #define HAVE_RAW_DECL_READDIR 1
  159. | #define HAVE_RAW_DECL_REWINDDIR 1
  160. | #define HAVE_DECL_DIRFD 0
  161. | #define GNULIB_TEST_DIRFD 1
  162. | #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
  163. | #define GNULIB_TEST_DUPLOCALE 1
  164. | #define GNULIB_TEST_ENVIRON 1
  165. | #define GNULIB_TEST_FLOOR 1
  166. | #define GNULIB_TEST_FREXP 1
  167. | #define GNULIB_TEST_FSTAT 1
  168. | #define GNULIB_TEST_FSYNC 1
  169. | #define HAVE_DECL_GAI_STRERROR 1
  170. | #define HAVE_DECL_GAI_STRERRORA 1
  171. | #define HAVE_DECL_GETADDRINFO 1
  172. | #define HAVE_DECL_FREEADDRINFO 1
  173. | #define HAVE_DECL_GETNAMEINFO 1
  174. | #define HAVE_STRUCT_ADDRINFO 1
  175. | #define GNULIB_TEST_GETADDRINFO 1
  176. | #define GNULIB_TEST_GETLOGIN 1
  177. | #define GNULIB_TEST_GETPEERNAME 1
  178. | #define GNULIB_TEST_GETSOCKNAME 1
  179. | #define GNULIB_TEST_GETSOCKOPT 1
  180. | #define GETTIMEOFDAY_TIMEZONE void
  181. | #define GNULIB_TEST_GETTIMEOFDAY 1
  182. | #define HAVE_WINSOCK2_H 1
  183. | #define HAVE_DECL_INET_NTOP 1
  184. | #define HAVE_WINSOCK2_H 1
  185. | #define HAVE_DECL_INET_PTON 1
  186. | #define HAVE_DECL_ISFINITE 1
  187. | #define GNULIB_TEST_ISFINITE 1
  188. | #define HAVE_DECL_ISINF 1
  189. | #define GNULIB_TEST_ISINF 1
  190. | #define GNULIB_TEST_ISNAN 1
  191. | #define GNULIB_TEST_ISNAND 1
  192. | #define GNULIB_TEST_ISNANF 1
  193. | #define GNULIB_TEST_ISNANL 1
  194. | #define HAVE_VISIBILITY 1
  195. | #define GNULIB_TEST_LINK 1
  196. | #define GNULIB_TEST_LISTEN 1
  197. | #define HAVE_RAW_DECL_SETLOCALE 1
  198. | #define HAVE_LOG1P 1
  199. | #define GNULIB_TEST_LOG1P 1
  200. | #define GNULIB_TEST_LSTAT 1
  201. | #define HAVE_STDLIB_H 1
  202. | #define HAVE_MALLOC_GNU 1
  203. | #define GNULIB_MALLOC_GNU 1
  204. | #define GNULIB_TEST_MALLOC_POSIX 1
  205. | #define HAVE_RAW_DECL_ACOSF 1
  206. | #define HAVE_RAW_DECL_ACOSL 1
  207. | #define HAVE_RAW_DECL_ASINF 1
  208. | #define HAVE_RAW_DECL_ASINL 1
  209. | #define HAVE_RAW_DECL_ATANF 1
  210. | #define HAVE_RAW_DECL_ATANL 1
  211. | #define HAVE_RAW_DECL_CBRT 1
  212. | #define HAVE_RAW_DECL_CBRTF 1
  213. | #define HAVE_RAW_DECL_CBRTL 1
  214. | #define HAVE_RAW_DECL_CEILF 1
  215. | #define HAVE_RAW_DECL_CEILL 1
  216. | #define HAVE_RAW_DECL_COPYSIGN 1
  217. | #define HAVE_RAW_DECL_COPYSIGNF 1
  218. | #define HAVE_RAW_DECL_COPYSIGNL 1
  219. | #define HAVE_RAW_DECL_COSF 1
  220. | #define HAVE_RAW_DECL_COSL 1
  221. | #define HAVE_RAW_DECL_COSHF 1
  222. | #define HAVE_RAW_DECL_EXPF 1
  223. | #define HAVE_RAW_DECL_EXPL 1
  224. | #define HAVE_RAW_DECL_EXP2 1
  225. | #define HAVE_RAW_DECL_EXP2F 1
  226. | #define HAVE_RAW_DECL_EXP2L 1
  227. | #define HAVE_RAW_DECL_EXPM1 1
  228. | #define HAVE_RAW_DECL_EXPM1F 1
  229. | #define HAVE_RAW_DECL_EXPM1L 1
  230. | #define HAVE_RAW_DECL_FABSF 1
  231. | #define HAVE_RAW_DECL_FABSL 1
  232. | #define HAVE_RAW_DECL_FLOORF 1
  233. | #define HAVE_RAW_DECL_FLOORL 1
  234. | #define HAVE_RAW_DECL_FMA 1
  235. | #define HAVE_RAW_DECL_FMAF 1
  236. | #define HAVE_RAW_DECL_FMAL 1
  237. | #define HAVE_RAW_DECL_FMOD 1
  238. | #define HAVE_RAW_DECL_FMODF 1
  239. | #define HAVE_RAW_DECL_FMODL 1
  240. | #define HAVE_RAW_DECL_FREXPF 1
  241. | #define HAVE_RAW_DECL_FREXPL 1
  242. | #define HAVE_RAW_DECL_HYPOTF 1
  243. | #define HAVE_RAW_DECL_HYPOTL 1
  244. | #define HAVE_RAW_DECL_ILOGB 1
  245. | #define HAVE_RAW_DECL_ILOGBF 1
  246. | #define HAVE_RAW_DECL_ILOGBL 1
  247. | #define HAVE_RAW_DECL_LDEXPF 1
  248. | #define HAVE_RAW_DECL_LDEXPL 1
  249. | #define HAVE_RAW_DECL_LOG 1
  250. | #define HAVE_RAW_DECL_LOGF 1
  251. | #define HAVE_RAW_DECL_LOGL 1
  252. | #define HAVE_RAW_DECL_LOG10 1
  253. | #define HAVE_RAW_DECL_LOG10F 1
  254. | #define HAVE_RAW_DECL_LOG10L 1
  255. | #define HAVE_RAW_DECL_LOG1P 1
  256. | #define HAVE_RAW_DECL_LOG1PF 1
  257. | #define HAVE_RAW_DECL_LOG1PL 1
  258. | #define HAVE_RAW_DECL_LOG2 1
  259. | #define HAVE_RAW_DECL_LOG2F 1
  260. | #define HAVE_RAW_DECL_LOG2L 1
  261. | #define HAVE_RAW_DECL_LOGB 1
  262. | #define HAVE_RAW_DECL_LOGBF 1
  263. | #define HAVE_RAW_DECL_LOGBL 1
  264. | #define HAVE_RAW_DECL_MODF 1
  265. | #define HAVE_RAW_DECL_MODFF 1
  266. | #define HAVE_RAW_DECL_MODFL 1
  267. | #define HAVE_RAW_DECL_POWF 1
  268. | #define HAVE_RAW_DECL_REMAINDER 1
  269. | #define HAVE_RAW_DECL_REMAINDERF 1
  270. | #define HAVE_RAW_DECL_REMAINDERL 1
  271. | #define HAVE_RAW_DECL_RINT 1
  272. | #define HAVE_RAW_DECL_RINTF 1
  273. | #define HAVE_RAW_DECL_RINTL 1
  274. | #define HAVE_RAW_DECL_ROUND 1
  275. | #define HAVE_RAW_DECL_ROUNDF 1
  276. | #define HAVE_RAW_DECL_ROUNDL 1
  277. | #define HAVE_RAW_DECL_SINF 1
  278. | #define HAVE_RAW_DECL_SINL 1
  279. | #define HAVE_RAW_DECL_SINHF 1
  280. | #define HAVE_RAW_DECL_SQRTF 1
  281. | #define HAVE_RAW_DECL_SQRTL 1
  282. | #define HAVE_RAW_DECL_TANF 1
  283. | #define HAVE_RAW_DECL_TANL 1
  284. | #define HAVE_RAW_DECL_TANHF 1
  285. | #define HAVE_RAW_DECL_TRUNC 1
  286. | #define HAVE_RAW_DECL_TRUNCF 1
  287. | #define HAVE_RAW_DECL_TRUNCL 1
  288. | #define FUNC_MKDIR_DOT_BUG 1
  289. | #define GNULIB_MKOSTEMP 1
  290. | #define GNULIB_TEST_MKOSTEMP 1
  291. | #define GNULIB_TEST_NL_LANGINFO 1
  292. | #define HAVE_SYS_PARAM_H 1
  293. | #define GNULIB_TEST_OPEN 1
  294. | #define GNULIB_TEST_PIPE 1
  295. | #define GNULIB_TEST_PIPE2 1
  296. | #define GNULIB_TEST_POLL 1
  297. | #define HAVE_DECL__PUTENV 1
  298. | #define GNULIB_TEST_PUTENV 1
  299. | #define GNULIB_TEST_READ 1
  300. | #define GNULIB_TEST_READLINK 1
  301. | #define GNULIB_TEST_RECV 1
  302. | #define GNULIB_TEST_RECVFROM 1
  303. | #define _REGEX_INCLUDE_LIMITS_H 1
  304. | #define _REGEX_LARGE_OFFSETS 1
  305. | #define re_syntax_options rpl_re_syntax_options
  306. | #define re_set_syntax rpl_re_set_syntax
  307. | #define re_compile_pattern rpl_re_compile_pattern
  308. | #define re_compile_fastmap rpl_re_compile_fastmap
  309. | #define re_search rpl_re_search
  310. | #define re_search_2 rpl_re_search_2
  311. | #define re_match rpl_re_match
  312. | #define re_match_2 rpl_re_match_2
  313. | #define re_set_registers rpl_re_set_registers
  314. | #define re_comp rpl_re_comp
  315. | #define re_exec rpl_re_exec
  316. | #define regcomp rpl_regcomp
  317. | #define regexec rpl_regexec
  318. | #define regerror rpl_regerror
  319. | #define regfree rpl_regfree
  320. | #define HAVE_LIBINTL_H 1
  321. | #define HAVE_DECL_ISBLANK 1
  322. | #define RENAME_TRAILING_SLASH_DEST_BUG 1
  323. | #define RENAME_DEST_EXISTS_BUG 1
  324. | #define GNULIB_TEST_RENAME 1
  325. | #define GNULIB_TEST_RMDIR 1
  326. | #define GNULIB_TEST_SELECT 1
  327. | #define GNULIB_TEST_SEND 1
  328. | #define GNULIB_TEST_SENDTO 1
  329. | #define GNULIB_TEST_SETENV 1
  330. | #define GNULIB_TEST_SETSOCKOPT 1
  331. | #define GNULIB_TEST_SHUTDOWN 1
  332. | #define GNULIB_TEST_SOCKET 1
  333. | #define __USE_MINGW_ANSI_STDIO 1
  334. | #define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1
  335. | #define GNULIB_FSCANF 1
  336. | #define GNULIB_SCANF 1
  337. | #define HAVE_RAW_DECL_FSEEKO 1
  338. | #define HAVE_RAW_DECL_FTELLO 1
  339. | #define HAVE_RAW_DECL_GETS 1
  340. | #define HAVE_RAW_DECL_SNPRINTF 1
  341. | #define HAVE_RAW_DECL_TMPFILE 1
  342. | #define HAVE_RAW_DECL_VSNPRINTF 1
  343. | #define HAVE_RAW_DECL__EXIT 1
  344. | #define HAVE_RAW_DECL_ATOLL 1
  345. | #define HAVE_RAW_DECL_MKSTEMP 1
  346. | #define HAVE_RAW_DECL_STRTOD 1
  347. | #define HAVE_RAW_DECL_STRTOLL 1
  348. | #define HAVE_RAW_DECL_STRTOULL 1
  349. | #define my_strftime nstrftime
  350. | #define HAVE_WINSOCK2_H 1
  351. | #define _GL_WINDOWS_64_BIT_ST_SIZE 1
  352. | #define nlink_t int
  353. | #define HAVE_RAW_DECL_FSTAT 1
  354. | #define HAVE_RAW_DECL_STAT 1
  355. | #define GNULIB_TEST_TIME_RZ 1
  356. | #define HAVE_DECL_TRUNC 1
  357. | #define GNULIB_TEST_TRUNC 1
  358. | #define HAVE_RAW_DECL_CHDIR 1
  359. | #define HAVE_RAW_DECL_DUP 1
  360. | #define HAVE_RAW_DECL_DUP2 1
  361. | #define HAVE_RAW_DECL_FTRUNCATE 1
  362. | #define HAVE_RAW_DECL_GETCWD 1
  363. | #define HAVE_RAW_DECL_ISATTY 1
  364. | #define HAVE_RAW_DECL_LSEEK 1
  365. | #define HAVE_RAW_DECL_RMDIR 1
  366. | #define HAVE_RAW_DECL_SLEEP 1
  367. | #define HAVE_RAW_DECL_UNLINK 1
  368. | #define HAVE_RAW_DECL_USLEEP 1
  369. | #define HAVE_VSNPRINTF 1
  370. | #define GNULIB_TEST_VSNPRINTF 1
  371. | #define HAVE_RAW_DECL_BTOWC 1
  372. | #define HAVE_RAW_DECL_WCTOB 1
  373. | #define HAVE_RAW_DECL_MBSINIT 1
  374. | #define HAVE_RAW_DECL_MBRTOWC 1
  375. | #define HAVE_RAW_DECL_MBRLEN 1
  376. | #define HAVE_RAW_DECL_MBSRTOWCS 1
  377. | #define HAVE_RAW_DECL_WCRTOMB 1
  378. | #define HAVE_RAW_DECL_WCSRTOMBS 1
  379. | #define HAVE_RAW_DECL_WMEMCHR 1
  380. | #define HAVE_RAW_DECL_WMEMCMP 1
  381. | #define HAVE_RAW_DECL_WMEMCPY 1
  382. | #define HAVE_RAW_DECL_WMEMMOVE 1
  383. | #define HAVE_RAW_DECL_WMEMSET 1
  384. | #define HAVE_RAW_DECL_WCSLEN 1
  385. | #define HAVE_RAW_DECL_WCSNLEN 1
  386. | #define HAVE_RAW_DECL_WCSCPY 1
  387. | #define HAVE_RAW_DECL_WCSNCPY 1
  388. | #define HAVE_RAW_DECL_WCSCAT 1
  389. | #define HAVE_RAW_DECL_WCSNCAT 1
  390. | #define HAVE_RAW_DECL_WCSCMP 1
  391. | #define HAVE_RAW_DECL_WCSNCMP 1
  392. | #define HAVE_RAW_DECL_WCSCOLL 1
  393. | #define HAVE_RAW_DECL_WCSXFRM 1
  394. | #define HAVE_RAW_DECL_WCSDUP 1
  395. | #define HAVE_RAW_DECL_WCSCHR 1
  396. | #define HAVE_RAW_DECL_WCSRCHR 1
  397. | #define HAVE_RAW_DECL_WCSCSPN 1
  398. | #define HAVE_RAW_DECL_WCSSPN 1
  399. | #define HAVE_RAW_DECL_WCSPBRK 1
  400. | #define HAVE_RAW_DECL_WCSSTR 1
  401. | #define HAVE_RAW_DECL_WCSTOK 1
  402. | #define GNULIB_TEST_WRITE 1
  403. | #define HAVE_ISNAND_IN_LIBC 1
  404. | #define HAVE_ISNANF_IN_LIBC 1
  405. | #define HAVE_ISNANL_IN_LIBC 1
  406. | #define REPLACE_FUNC_STAT_DIR 1
  407. | #define GNULIB_TEST_STAT 1
  408. | #define GNULIB_TEST_STRDUP 1
  409. | #define GNULIB_TEST_SECURE_GETENV 1
  410. | #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
  411. | #define GNULIB_TEST_LOCALECONV 1
  412. | #define GNULIB_TEST_BTOWC 1
  413. | #define HAVE___BUILTIN_EXPECT 1
  414. | #define MBRTOWC_RETVAL_BUG 1
  415. | #define GNULIB_TEST_MBRTOWC 1
  416. | #define GNULIB_TEST_MBSINIT 1
  417. | #define GNULIB_TEST_WCRTOMB 1
  418. | #define HAVE_TOWLOWER 1
  419. | #define HAVE_RAW_DECL_WCTYPE 1
  420. | #define HAVE_RAW_DECL_ISWCTYPE 1
  421. | #define HAVE_RAW_DECL_WCTRANS 1
  422. | #define HAVE_RAW_DECL_TOWCTRANS 1
  423. | #define GNULIB_TEST_CHDIR 1
  424. | #define HAVE_DUP2 1
  425. | #define GNULIB_TEST_DUP2 1
  426. | #define FLEXIBLE_ARRAY_MEMBER /**/
  427. | #define HAVE_DECL_LOCALTIME_R 0
  428. | #define GNULIB_TEST_TIME_R 1
  429. | #define GNULIB_TEST_TIMEGM 1
  430. | /* end confdefs.h. */
  431. | /* Test program from Paul Eggert and Tony Leneis. */
  432. | #include <limits.h>
  433. | #include <stdlib.h>
  434. | #include <time.h>
  435. |
  436. | #ifdef HAVE_UNISTD_H
  437. | # include <unistd.h>
  438. | #endif
  439. |
  440. | #if HAVE_DECL_ALARM
  441. | # include <signal.h>
  442. | #endif
  443. |
  444. | /* Work around redefinition to rpl_putenv by other config tests. */
  445. | #undef putenv
  446. |
  447. | static time_t time_t_max;
  448. | static time_t time_t_min;
  449. |
  450. | /* Values we'll use to set the TZ environment variable. */
  451. | static char *tz_strings[] = {
  452. | (char *) 0, "TZ=GMT0", "TZ=JST-9",
  453. | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  454. | };
  455. | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  456. |
  457. | /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  458. | Based on a problem report from Andreas Jaeger. */
  459. | static int
  460. | spring_forward_gap ()
  461. | {
  462. | /* glibc (up to about 1998-10-07) failed this test. */
  463. | struct tm tm;
  464. |
  465. | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  466. | instead of "TZ=America/Vancouver" in order to detect the bug even
  467. | on systems that don't support the Olson extension, or don't have the
  468. | full zoneinfo tables installed. */
  469. | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  470. |
  471. | tm.tm_year = 98;
  472. | tm.tm_mon = 3;
  473. | tm.tm_mday = 5;
  474. | tm.tm_hour = 2;
  475. | tm.tm_min = 0;
  476. | tm.tm_sec = 0;
  477. | tm.tm_isdst = -1;
  478. | return mktime (&tm) != (time_t) -1;
  479. | }
  480. |
  481. | static int
  482. | mktime_test1 (time_t now)
  483. | {
  484. | struct tm *lt;
  485. | return ! (lt = localtime (&now)) || mktime (lt) == now;
  486. | }
  487. |
  488. | static int
  489. | mktime_test (time_t now)
  490. | {
  491. | return (mktime_test1 (now)
  492. | && mktime_test1 ((time_t) (time_t_max - now))
  493. | && mktime_test1 ((time_t) (time_t_min + now)));
  494. | }
  495. |
  496. | static int
  497. | irix_6_4_bug ()
  498. | {
  499. | /* Based on code from Ariel Faigon. */
  500. | struct tm tm;
  501. | tm.tm_year = 96;
  502. | tm.tm_mon = 3;
  503. | tm.tm_mday = 0;
  504. | tm.tm_hour = 0;
  505. | tm.tm_min = 0;
  506. | tm.tm_sec = 0;
  507. | tm.tm_isdst = -1;
  508. | mktime (&tm);
  509. | return tm.tm_mon == 2 && tm.tm_mday == 31;
  510. | }
  511. |
  512. | static int
  513. | bigtime_test (int j)
  514. | {
  515. | struct tm tm;
  516. | time_t now;
  517. | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  518. | now = mktime (&tm);
  519. | if (now != (time_t) -1)
  520. | {
  521. | struct tm *lt = localtime (&now);
  522. | if (! (lt
  523. | && lt->tm_year == tm.tm_year
  524. | && lt->tm_mon == tm.tm_mon
  525. | && lt->tm_mday == tm.tm_mday
  526. | && lt->tm_hour == tm.tm_hour
  527. | && lt->tm_min == tm.tm_min
  528. | && lt->tm_sec == tm.tm_sec
  529. | && lt->tm_yday == tm.tm_yday
  530. | && lt->tm_wday == tm.tm_wday
  531. | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  532. | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  533. | return 0;
  534. | }
  535. | return 1;
  536. | }
  537. |
  538. | static int
  539. | year_2050_test ()
  540. | {
  541. | /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  542. | ignoring leap seconds. */
  543. | unsigned long int answer = 2527315200UL;
  544. |
  545. | struct tm tm;
  546. | time_t t;
  547. | tm.tm_year = 2050 - 1900;
  548. | tm.tm_mon = 2 - 1;
  549. | tm.tm_mday = 1;
  550. | tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  551. | tm.tm_isdst = -1;
  552. |
  553. | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  554. | instead of "TZ=America/Vancouver" in order to detect the bug even
  555. | on systems that don't support the Olson extension, or don't have the
  556. | full zoneinfo tables installed. */
  557. | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  558. |
  559. | t = mktime (&tm);
  560. |
  561. | /* Check that the result is either a failure, or close enough
  562. | to the correct answer that we can assume the discrepancy is
  563. | due to leap seconds. */
  564. | return (t == (time_t) -1
  565. | || (0 < t && answer - 120 <= t && t <= answer + 120));
  566. | }
  567. |
  568. | int
  569. | main ()
  570. | {
  571. | int result = 0;
  572. | time_t t, delta;
  573. | int i, j;
  574. | int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
  575. |
  576. | #if HAVE_DECL_ALARM
  577. | /* This test makes some buggy mktime implementations loop.
  578. | Give up after 60 seconds; a mktime slower than that
  579. | isn't worth using anyway. */
  580. | signal (SIGALRM, SIG_DFL);
  581. | alarm (60);
  582. | #endif
  583. |
  584. | time_t_max = (! TIME_T_IS_SIGNED
  585. | ? (time_t) -1
  586. | : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
  587. | * 2 + 1));
  588. | time_t_min = (! TIME_T_IS_SIGNED
  589. | ? (time_t) 0
  590. | : time_t_signed_magnitude
  591. | ? ~ (time_t) 0
  592. | : ~ time_t_max);
  593. |
  594. | delta = time_t_max / 997; /* a suitable prime number */
  595. | for (i = 0; i < N_STRINGS; i++)
  596. | {
  597. | if (tz_strings[i])
  598. | putenv (tz_strings[i]);
  599. |
  600. | for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
  601. | if (! mktime_test (t))
  602. | result |= 1;
  603. | if ((result & 2) == 0
  604. | && ! (mktime_test ((time_t) 1)
  605. | && mktime_test ((time_t) (60 * 60))
  606. | && mktime_test ((time_t) (60 * 60 * 24))))
  607. | result |= 2;
  608. |
  609. | for (j = 1; (result & 4) == 0; j <<= 1)
  610. | {
  611. | if (! bigtime_test (j))
  612. | result |= 4;
  613. | if (INT_MAX / 2 < j)
  614. | break;
  615. | }
  616. | if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
  617. | result |= 8;
  618. | }
  619. | if (! irix_6_4_bug ())
  620. | result |= 16;
  621. | if (! spring_forward_gap ())
  622. | result |= 32;
  623. | if (! year_2050_test ())
  624. | result |= 64;
  625. | return result;
  626. | }
  627. configure:34894: result: no
Add Comment
Please, Sign In to add comment