Line 0
Link Here
|
|
|
1 |
--- etc/configure.ac.orig 2012-12-04 02:03:33 UTC |
2 |
+++ etc/configure.ac |
3 |
@@ -649,8 +649,8 @@ AC_CHECK_SIZEOF(int) |
4 |
AC_CHECK_SIZEOF(long) |
5 |
AC_CHECK_SIZEOF(long long) |
6 |
|
7 |
-AC_COMPUTE_INT(ac_cv_long_bit, [sizeof(long) * CHAR_BIT], [#include <limits.h>], |
8 |
- [ac_cv_long_bit="sizeof(long) * CHAR_BIT"]) |
9 |
+AC_COMPUTE_INT(ac_cv_long_bit, [LONG_BIT], [#include <limits.h>], |
10 |
+ [ac_cv_long_bit="LONG_BIT"]) |
11 |
AC_DEFINE_UNQUOTED(LONG_BIT, [$ac_cv_long_bit], |
12 |
[Define this symbol to be the number of bits in a long. |
13 |
This is analogous to the standard CHAR_BIT define.]) |
14 |
@@ -849,15 +849,15 @@ dnl! |
15 |
AC_MSG_CHECKING([for tm_zone in struct tm]) |
16 |
AC_TRY_COMPILE([ |
17 |
#include <stdio.h> |
18 |
-#ifdef TIME_WITH_SYS_TIME |
19 |
-#include <sys/time.h> |
20 |
-#include <time.h> |
21 |
-#else |
22 |
-#ifdef HAVE_SYS_TIME_H |
23 |
+dnl! #ifdef TIME_WITH_SYS_TIME |
24 |
#include <sys/time.h> |
25 |
-#else |
26 |
-#include <time.h> |
27 |
-#endif |
28 |
+dnl! #include <time.h> |
29 |
+dnl! #else |
30 |
+dnl! #ifdef HAVE_SYS_TIME_H |
31 |
+dnl! #include <sys/time.h> |
32 |
+dnl! #else |
33 |
+dnl! #include <time.h> |
34 |
+dnl! #endif |
35 |
#endif], [struct tm *tm; |
36 |
printf("%s\n", tm->tm_zone);], |
37 |
AC_DEFINE(HAVE_tm_zone,1, |