Changeset 238 for trunk/aclocal.m4
- Timestamp:
- Jul 15, 2009, 8:08:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r236 r238 2064 2064 ])# AC_PROG_LD_GNU 2065 2065 2066 # SH_STRFTIME_Z 2067 # ------------- 2068 # check whether strftime supports %z 2069 AC_DEFUN([SH_STRFTIME_Z], 2070 [ 2071 AC_MSG_CHECKING([whether strftime supports %z]) 2072 AC_TRY_RUN([ 2073 #include <time.h> 2074 #include <string.h> 2075 int main() 2076 { 2077 struct tm tm; 2078 char tt[64]; 2079 memset(&tm, 0, sizeof(tm)); 2080 strftime(tt, sizeof(tt), "%z", &tm); 2081 2082 if (strlen(tt) != 5) return 1; 2083 return 0; 2084 } 2085 ], 2086 [ 2087 AC_MSG_RESULT([yes]) 2088 AC_DEFINE(HAVE_STRFTIME_Z, 1, [strftime supports %z]) 2089 ], 2090 [ 2091 AC_MSG_RESULT([no]) 2092 ],[ 2093 AC_MSG_RESULT([no]) 2094 ])]) 2095 2096 2097 2098 2099 2066 2100 dnl *-*wedit:notab*-* Please keep this as the last line. 2067 2101
Note:
See TracChangeset
for help on using the changeset viewer.