|
1 | 1 | #! /bin/sh |
2 | | -# From configure.in Revision: 39267 . |
| 2 | +# From configure.in Revision: 41662 . |
3 | 3 | # Guess values for system-dependent variables and create Makefiles. |
4 | 4 | # Generated by GNU Autoconf 2.59 for python 2.5. |
5 | 5 | # |
@@ -20118,6 +20118,67 @@ _ACEOF |
20118 | 20118 |
|
20119 | 20119 | fi |
20120 | 20120 |
|
| 20121 | +echo "$as_me:$LINENO: checking for broken ftell()" >&5 |
| 20122 | +echo $ECHO_N "checking for broken ftell()... $ECHO_C" >&6 |
| 20123 | +if test "${ac_cv_broken_ftell+set}" = set; then |
| 20124 | + echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20125 | +else |
| 20126 | + |
| 20127 | +if test "$cross_compiling" = yes; then |
| 20128 | + ac_cv_broken_ftell=no |
| 20129 | +else |
| 20130 | + cat >conftest.$ac_ext <<_ACEOF |
| 20131 | +/* confdefs.h. */ |
| 20132 | +_ACEOF |
| 20133 | +cat confdefs.h >>conftest.$ac_ext |
| 20134 | +cat >>conftest.$ac_ext <<_ACEOF |
| 20135 | +/* end confdefs.h. */ |
| 20136 | + |
| 20137 | +#include <stdio.h> |
| 20138 | +int main() |
| 20139 | +{ |
| 20140 | + long val = ftell(stdin); |
| 20141 | + if (val != -1) |
| 20142 | + exit(0); |
| 20143 | + exit(1); |
| 20144 | +} |
| 20145 | + |
| 20146 | +_ACEOF |
| 20147 | +rm -f conftest$ac_exeext |
| 20148 | +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20149 | + (eval $ac_link) 2>&5 |
| 20150 | + ac_status=$? |
| 20151 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20152 | + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20153 | + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20154 | + (eval $ac_try) 2>&5 |
| 20155 | + ac_status=$? |
| 20156 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20157 | + (exit $ac_status); }; }; then |
| 20158 | + ac_cv_broken_ftell=yes |
| 20159 | +else |
| 20160 | + echo "$as_me: program exited with status $ac_status" >&5 |
| 20161 | +echo "$as_me: failed program was:" >&5 |
| 20162 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 20163 | + |
| 20164 | +( exit $ac_status ) |
| 20165 | +ac_cv_broken_ftell=no |
| 20166 | +fi |
| 20167 | +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20168 | +fi |
| 20169 | +fi |
| 20170 | + |
| 20171 | +echo "$as_me:$LINENO: result: $ac_cv_broken_ftell" >&5 |
| 20172 | +echo "${ECHO_T}$ac_cv_broken_ftell" >&6 |
| 20173 | +if test "$ac_cv_broken_ftell" = yes |
| 20174 | +then |
| 20175 | + |
| 20176 | +cat >>confdefs.h <<\_ACEOF |
| 20177 | +#define HAVE_BROKEN_FTELL 1 |
| 20178 | +_ACEOF |
| 20179 | + |
| 20180 | +fi |
| 20181 | + |
20121 | 20182 | # Before we can test tzset, we need to check if struct tm has a tm_zone |
20122 | 20183 | # (which is not required by ISO C or UNIX spec) and/or if we support |
20123 | 20184 | # tzname[] |
|
0 commit comments