|
1 | 1 | #! /bin/sh |
2 | | -# From configure.in Revision: 1.370 . |
| 2 | +# From configure.in Revision: 1.371 . |
3 | 3 | # Guess values for system-dependent variables and create Makefiles. |
4 | 4 | # Generated by GNU Autoconf 2.53 for python 2.3. |
5 | 5 | # |
@@ -15306,69 +15306,6 @@ done |
15306 | 15306 |
|
15307 | 15307 | LIBS=$LIBS_SAVE |
15308 | 15308 |
|
15309 | | -# check whether malloc(0) returns NULL or not |
15310 | | -echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
15311 | | -echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
15312 | | -if test "${ac_cv_malloc_zero+set}" = set; then |
15313 | | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
15314 | | -else |
15315 | | - if test "$cross_compiling" = yes; then |
15316 | | - ac_cv_malloc_zero=nonnull |
15317 | | -else |
15318 | | - cat >conftest.$ac_ext <<_ACEOF |
15319 | | -#line $LINENO "configure" |
15320 | | -#include "confdefs.h" |
15321 | | -#include <stdio.h> |
15322 | | -#ifdef HAVE_STDLIB |
15323 | | -#include <stdlib.h> |
15324 | | -#else |
15325 | | -char *malloc(), *realloc(); |
15326 | | -int *free(); |
15327 | | -#endif |
15328 | | -main() { |
15329 | | - char *p; |
15330 | | - p = malloc(0); |
15331 | | - if (p == NULL) exit(1); |
15332 | | - p = realloc(p, 0); |
15333 | | - if (p == NULL) exit(1); |
15334 | | - free(p); |
15335 | | - exit(0); |
15336 | | -} |
15337 | | -_ACEOF |
15338 | | -rm -f conftest$ac_exeext |
15339 | | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15340 | | - (eval $ac_link) 2>&5 |
15341 | | - ac_status=$? |
15342 | | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15343 | | - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
15344 | | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15345 | | - (eval $ac_try) 2>&5 |
15346 | | - ac_status=$? |
15347 | | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15348 | | - (exit $ac_status); }; }; then |
15349 | | - ac_cv_malloc_zero=nonnull |
15350 | | -else |
15351 | | - echo "$as_me: program exited with status $ac_status" >&5 |
15352 | | -echo "$as_me: failed program was:" >&5 |
15353 | | -cat conftest.$ac_ext >&5 |
15354 | | -( exit $ac_status ) |
15355 | | -ac_cv_malloc_zero=null |
15356 | | -fi |
15357 | | -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15358 | | -fi |
15359 | | -fi |
15360 | | - # XXX arm cross-compile? |
15361 | | -echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
15362 | | -echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
15363 | | -if test "$ac_cv_malloc_zero" = null |
15364 | | -then |
15365 | | -
|
15366 | | -cat >>confdefs.h <<\_ACEOF |
15367 | | -#define MALLOC_ZERO_RETURNS_NULL 1 |
15368 | | -_ACEOF |
15369 | | -
|
15370 | | -fi |
15371 | | -
|
15372 | 15309 | # check for wchar.h |
15373 | 15310 | if test "${ac_cv_header_wchar_h+set}" = set; then |
15374 | 15311 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
|
0 commit comments