aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPaul Eggert2011-02-20 00:48:52 -0800
committerPaul Eggert2011-02-20 00:48:52 -0800
commit61353ac8cdbdda53d75f5ab9aa7f0b637aee5a00 (patch)
tree2cfc088246ad9c97eea1ba1c7a1b7e5af64bea2d /configure
parent01baa1e6f227a87530f65b7e45049968a1afc12a (diff)
parentff05203ec64be4e2148ca607d4f7e04375426916 (diff)
downloademacs-61353ac8cdbdda53d75f5ab9aa7f0b637aee5a00.tar.gz
emacs-61353ac8cdbdda53d75f5ab9aa7f0b637aee5a00.zip
Merge: Import crypto/md5 and stdint modules from gnulib.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1359
1 files changed, 1317 insertions, 42 deletions
diff --git a/configure b/configure
index a9cec714412..d3607aec316 100755
--- a/configure
+++ b/configure
@@ -679,6 +679,30 @@ NEXT_AS_FIRST_DIRECTIVE_TIME_H
679NEXT_TIME_H 679NEXT_TIME_H
680NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 680NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
681NEXT_STDLIB_H 681NEXT_STDLIB_H
682STDINT_H
683WINT_T_SUFFIX
684WCHAR_T_SUFFIX
685SIG_ATOMIC_T_SUFFIX
686SIZE_T_SUFFIX
687PTRDIFF_T_SUFFIX
688HAVE_SIGNED_WINT_T
689HAVE_SIGNED_WCHAR_T
690HAVE_SIGNED_SIG_ATOMIC_T
691BITSIZEOF_WINT_T
692BITSIZEOF_WCHAR_T
693BITSIZEOF_SIG_ATOMIC_T
694BITSIZEOF_SIZE_T
695BITSIZEOF_PTRDIFF_T
696HAVE_SYS_BITYPES_H
697HAVE_SYS_INTTYPES_H
698HAVE_STDINT_H
699NEXT_AS_FIRST_DIRECTIVE_STDINT_H
700NEXT_STDINT_H
701HAVE_SYS_TYPES_H
702HAVE_INTTYPES_H
703HAVE_WCHAR_H
704HAVE_UNSIGNED_LONG_LONG_INT
705HAVE_LONG_LONG_INT
682NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 706NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
683NEXT_STDDEF_H 707NEXT_STDDEF_H
684STDDEF_H 708STDDEF_H
@@ -2431,6 +2455,184 @@ $as_echo "$ac_res" >&6; }
2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 2456
2433} # ac_fn_c_check_type 2457} # ac_fn_c_check_type
2458
2459# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2460# --------------------------------------------
2461# Tries to find the compile-time value of EXPR in a program that includes
2462# INCLUDES, setting VAR accordingly. Returns whether the value could be
2463# computed
2464ac_fn_c_compute_int ()
2465{
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 if test "$cross_compiling" = yes; then
2468 # Depending upon the size, compute the lo and hi bounds.
2469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470/* end confdefs.h. */
2471$4
2472int
2473main ()
2474{
2475static int test_array [1 - 2 * !(($2) >= 0)];
2476test_array [0] = 0
2477
2478 ;
2479 return 0;
2480}
2481_ACEOF
2482if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_lo=0 ac_mid=0
2484 while :; do
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486/* end confdefs.h. */
2487$4
2488int
2489main ()
2490{
2491static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2492test_array [0] = 0
2493
2494 ;
2495 return 0;
2496}
2497_ACEOF
2498if ac_fn_c_try_compile "$LINENO"; then :
2499 ac_hi=$ac_mid; break
2500else
2501 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2502 if test $ac_lo -le $ac_mid; then
2503 ac_lo= ac_hi=
2504 break
2505 fi
2506 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2507fi
2508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 done
2510else
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512/* end confdefs.h. */
2513$4
2514int
2515main ()
2516{
2517static int test_array [1 - 2 * !(($2) < 0)];
2518test_array [0] = 0
2519
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_hi=-1 ac_mid=-1
2526 while :; do
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528/* end confdefs.h. */
2529$4
2530int
2531main ()
2532{
2533static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2534test_array [0] = 0
2535
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540if ac_fn_c_try_compile "$LINENO"; then :
2541 ac_lo=$ac_mid; break
2542else
2543 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2544 if test $ac_mid -le $ac_hi; then
2545 ac_lo= ac_hi=
2546 break
2547 fi
2548 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2549fi
2550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 done
2552else
2553 ac_lo= ac_hi=
2554fi
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556fi
2557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558# Binary search between lo and hi bounds.
2559while test "x$ac_lo" != "x$ac_hi"; do
2560 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562/* end confdefs.h. */
2563$4
2564int
2565main ()
2566{
2567static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2568test_array [0] = 0
2569
2570 ;
2571 return 0;
2572}
2573_ACEOF
2574if ac_fn_c_try_compile "$LINENO"; then :
2575 ac_hi=$ac_mid
2576else
2577 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2578fi
2579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580done
2581case $ac_lo in #((
2582?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2583'') ac_retval=1 ;;
2584esac
2585 else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587/* end confdefs.h. */
2588$4
2589static long int longval () { return $2; }
2590static unsigned long int ulongval () { return $2; }
2591#include <stdio.h>
2592#include <stdlib.h>
2593int
2594main ()
2595{
2596
2597 FILE *f = fopen ("conftest.val", "w");
2598 if (! f)
2599 return 1;
2600 if (($2) < 0)
2601 {
2602 long int i = longval ();
2603 if (i != ($2))
2604 return 1;
2605 fprintf (f, "%ld", i);
2606 }
2607 else
2608 {
2609 unsigned long int i = ulongval ();
2610 if (i != ($2))
2611 return 1;
2612 fprintf (f, "%lu", i);
2613 }
2614 /* Do not output a trailing newline, as this causes \r\n confusion
2615 on some platforms. */
2616 return ferror (f) || fclose (f) != 0;
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_run "$LINENO"; then :
2623 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2624else
2625 ac_retval=1
2626fi
2627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2628 conftest.$ac_objext conftest.beam conftest.$ac_ext
2629rm -f conftest.val
2630
2631 fi
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 as_fn_set_status $ac_retval
2634
2635} # ac_fn_c_compute_int
2434cat >config.log <<_ACEOF 2636cat >config.log <<_ACEOF
2435This file contains any messages produced by compilers while 2637This file contains any messages produced by compilers while
2436running configure, to aid debugging if configure makes a mistake. 2638running configure, to aid debugging if configure makes a mistake.
@@ -2721,6 +2923,8 @@ as_fn_append ac_header_list " sys/param.h"
2721gl_getopt_required=GNU 2923gl_getopt_required=GNU
2722as_fn_append ac_header_list " getopt.h" 2924as_fn_append ac_header_list " getopt.h"
2723as_fn_append ac_func_list " alarm" 2925as_fn_append ac_func_list " alarm"
2926as_fn_append ac_header_list " wchar.h"
2927as_fn_append ac_header_list " stdint.h"
2724as_fn_append ac_func_list " tzset" 2928as_fn_append ac_func_list " tzset"
2725as_fn_append ac_header_list " sys/time.h" 2929as_fn_append ac_header_list " sys/time.h"
2726as_fn_append ac_func_list " localtime_r" 2930as_fn_append ac_func_list " localtime_r"
@@ -5881,6 +6085,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5881 6085
5882 # Code from module arg-nonnull: 6086 # Code from module arg-nonnull:
5883 # Code from module c++defs: 6087 # Code from module c++defs:
6088 # Code from module crypto/md5:
5884 # Code from module dtoastr: 6089 # Code from module dtoastr:
5885 # Code from module extensions: 6090 # Code from module extensions:
5886 6091
@@ -5895,6 +6100,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5895 # Code from module multiarch: 6100 # Code from module multiarch:
5896 # Code from module stdbool: 6101 # Code from module stdbool:
5897 # Code from module stddef: 6102 # Code from module stddef:
6103 # Code from module stdint:
5898 # Code from module stdlib: 6104 # Code from module stdlib:
5899 # Code from module strftime: 6105 # Code from module strftime:
5900 # Code from module time: 6106 # Code from module time:
@@ -13201,6 +13407,274 @@ fi
13201 export LIBC_FATAL_STDERR_ 13407 export LIBC_FATAL_STDERR_
13202 13408
13203 13409
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13411$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13412if ${ac_cv_c_bigendian+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414else
13415 ac_cv_c_bigendian=unknown
13416 # See if we're dealing with a universal compiler.
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418/* end confdefs.h. */
13419#ifndef __APPLE_CC__
13420 not a universal capable compiler
13421 #endif
13422 typedef int dummy;
13423
13424_ACEOF
13425if ac_fn_c_try_compile "$LINENO"; then :
13426
13427 # Check for potential -arch flags. It is not universal unless
13428 # there are at least two -arch flags with different values.
13429 ac_arch=
13430 ac_prev=
13431 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13432 if test -n "$ac_prev"; then
13433 case $ac_word in
13434 i?86 | x86_64 | ppc | ppc64)
13435 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13436 ac_arch=$ac_word
13437 else
13438 ac_cv_c_bigendian=universal
13439 break
13440 fi
13441 ;;
13442 esac
13443 ac_prev=
13444 elif test "x$ac_word" = "x-arch"; then
13445 ac_prev=arch
13446 fi
13447 done
13448fi
13449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 if test $ac_cv_c_bigendian = unknown; then
13451 # See if sys/param.h defines the BYTE_ORDER macro.
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h. */
13454#include <sys/types.h>
13455 #include <sys/param.h>
13456
13457int
13458main ()
13459{
13460#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13461 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13462 && LITTLE_ENDIAN)
13463 bogus endian macros
13464 #endif
13465
13466 ;
13467 return 0;
13468}
13469_ACEOF
13470if ac_fn_c_try_compile "$LINENO"; then :
13471 # It does; now see whether it defined to BIG_ENDIAN or not.
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473/* end confdefs.h. */
13474#include <sys/types.h>
13475 #include <sys/param.h>
13476
13477int
13478main ()
13479{
13480#if BYTE_ORDER != BIG_ENDIAN
13481 not big endian
13482 #endif
13483
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488if ac_fn_c_try_compile "$LINENO"; then :
13489 ac_cv_c_bigendian=yes
13490else
13491 ac_cv_c_bigendian=no
13492fi
13493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494fi
13495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 fi
13497 if test $ac_cv_c_bigendian = unknown; then
13498 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500/* end confdefs.h. */
13501#include <limits.h>
13502
13503int
13504main ()
13505{
13506#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13507 bogus endian macros
13508 #endif
13509
13510 ;
13511 return 0;
13512}
13513_ACEOF
13514if ac_fn_c_try_compile "$LINENO"; then :
13515 # It does; now see whether it defined to _BIG_ENDIAN or not.
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517/* end confdefs.h. */
13518#include <limits.h>
13519
13520int
13521main ()
13522{
13523#ifndef _BIG_ENDIAN
13524 not big endian
13525 #endif
13526
13527 ;
13528 return 0;
13529}
13530_ACEOF
13531if ac_fn_c_try_compile "$LINENO"; then :
13532 ac_cv_c_bigendian=yes
13533else
13534 ac_cv_c_bigendian=no
13535fi
13536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537fi
13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 fi
13540 if test $ac_cv_c_bigendian = unknown; then
13541 # Compile a test program.
13542 if test "$cross_compiling" = yes; then :
13543 # Try to guess by grepping values from an object file.
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545/* end confdefs.h. */
13546short int ascii_mm[] =
13547 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13548 short int ascii_ii[] =
13549 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13550 int use_ascii (int i) {
13551 return ascii_mm[i] + ascii_ii[i];
13552 }
13553 short int ebcdic_ii[] =
13554 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13555 short int ebcdic_mm[] =
13556 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13557 int use_ebcdic (int i) {
13558 return ebcdic_mm[i] + ebcdic_ii[i];
13559 }
13560 extern int foo;
13561
13562int
13563main ()
13564{
13565return use_ascii (foo) == use_ebcdic (foo);
13566 ;
13567 return 0;
13568}
13569_ACEOF
13570if ac_fn_c_try_compile "$LINENO"; then :
13571 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13572 ac_cv_c_bigendian=yes
13573 fi
13574 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13575 if test "$ac_cv_c_bigendian" = unknown; then
13576 ac_cv_c_bigendian=no
13577 else
13578 # finding both strings is unlikely to happen, but who knows?
13579 ac_cv_c_bigendian=unknown
13580 fi
13581 fi
13582fi
13583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584else
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586/* end confdefs.h. */
13587$ac_includes_default
13588int
13589main ()
13590{
13591
13592 /* Are we little or big endian? From Harbison&Steele. */
13593 union
13594 {
13595 long int l;
13596 char c[sizeof (long int)];
13597 } u;
13598 u.l = 1;
13599 return u.c[sizeof (long int) - 1] == 1;
13600
13601 ;
13602 return 0;
13603}
13604_ACEOF
13605if ac_fn_c_try_run "$LINENO"; then :
13606 ac_cv_c_bigendian=no
13607else
13608 ac_cv_c_bigendian=yes
13609fi
13610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13611 conftest.$ac_objext conftest.beam conftest.$ac_ext
13612fi
13613
13614 fi
13615fi
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13617$as_echo "$ac_cv_c_bigendian" >&6; }
13618 case $ac_cv_c_bigendian in #(
13619 yes)
13620 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13621;; #(
13622 no)
13623 ;; #(
13624 universal)
13625
13626$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13627
13628 ;; #(
13629 *)
13630 as_fn_error $? "unknown endianness
13631 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13632 esac
13633
13634
13635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13636$as_echo_n "checking for inline... " >&6; }
13637if ${ac_cv_c_inline+:} false; then :
13638 $as_echo_n "(cached) " >&6
13639else
13640 ac_cv_c_inline=no
13641for ac_kw in inline __inline__ __inline; do
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643/* end confdefs.h. */
13644#ifndef __cplusplus
13645typedef int foo_t;
13646static $ac_kw foo_t static_foo () {return 0; }
13647$ac_kw foo_t foo () {return 0; }
13648#endif
13649
13650_ACEOF
13651if ac_fn_c_try_compile "$LINENO"; then :
13652 ac_cv_c_inline=$ac_kw
13653fi
13654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 test "$ac_cv_c_inline" != no && break
13656done
13657
13658fi
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13660$as_echo "$ac_cv_c_inline" >&6; }
13661
13662case $ac_cv_c_inline in
13663 inline | yes) ;;
13664 *)
13665 case $ac_cv_c_inline in
13666 no) ac_val=;;
13667 *) ac_val=$ac_cv_c_inline;;
13668 esac
13669 cat >>confdefs.h <<_ACEOF
13670#ifndef __cplusplus
13671#define inline $ac_val
13672#endif
13673_ACEOF
13674 ;;
13675esac
13676
13677
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13205$as_echo_n "checking whether strtold conforms to C99... " >&6; } 13679$as_echo_n "checking whether strtold conforms to C99... " >&6; }
13206if ${gl_cv_func_c99_strtold+:} false; then : 13680if ${gl_cv_func_c99_strtold+:} false; then :
@@ -13964,48 +14438,6 @@ $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13964fi 14438fi
13965 14439
13966 14440
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13968$as_echo_n "checking for inline... " >&6; }
13969if ${ac_cv_c_inline+:} false; then :
13970 $as_echo_n "(cached) " >&6
13971else
13972 ac_cv_c_inline=no
13973for ac_kw in inline __inline__ __inline; do
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975/* end confdefs.h. */
13976#ifndef __cplusplus
13977typedef int foo_t;
13978static $ac_kw foo_t static_foo () {return 0; }
13979$ac_kw foo_t foo () {return 0; }
13980#endif
13981
13982_ACEOF
13983if ac_fn_c_try_compile "$LINENO"; then :
13984 ac_cv_c_inline=$ac_kw
13985fi
13986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 test "$ac_cv_c_inline" != no && break
13988done
13989
13990fi
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13992$as_echo "$ac_cv_c_inline" >&6; }
13993
13994case $ac_cv_c_inline in
13995 inline | yes) ;;
13996 *)
13997 case $ac_cv_c_inline in
13998 no) ac_val=;;
13999 *) ac_val=$ac_cv_c_inline;;
14000 esac
14001 cat >>confdefs.h <<_ACEOF
14002#ifndef __cplusplus
14003#define inline $ac_val
14004#endif
14005_ACEOF
14006 ;;
14007esac
14008
14009 14441
14010 GNULIB_MKTIME=0; 14442 GNULIB_MKTIME=0;
14011 GNULIB_NANOSLEEP=0; 14443 GNULIB_NANOSLEEP=0;
@@ -14206,6 +14638,127 @@ $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14206 fi 14638 fi
14207 14639
14208 14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14642$as_echo_n "checking for unsigned long long int... " >&6; }
14643if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14644 $as_echo_n "(cached) " >&6
14645else
14646 ac_cv_type_unsigned_long_long_int=yes
14647 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649/* end confdefs.h. */
14650
14651 /* For now, do not test the preprocessor; as of 2007 there are too many
14652 implementations with broken preprocessors. Perhaps this can
14653 be revisited in 2012. In the meantime, code should not expect
14654 #if to work with literals wider than 32 bits. */
14655 /* Test literals. */
14656 long long int ll = 9223372036854775807ll;
14657 long long int nll = -9223372036854775807LL;
14658 unsigned long long int ull = 18446744073709551615ULL;
14659 /* Test constant expressions. */
14660 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14661 ? 1 : -1)];
14662 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14663 ? 1 : -1)];
14664 int i = 63;
14665int
14666main ()
14667{
14668/* Test availability of runtime routines for shift and division. */
14669 long long int llmax = 9223372036854775807ll;
14670 unsigned long long int ullmax = 18446744073709551615ull;
14671 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14672 | (llmax / ll) | (llmax % ll)
14673 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14674 | (ullmax / ull) | (ullmax % ull));
14675 ;
14676 return 0;
14677}
14678
14679_ACEOF
14680if ac_fn_c_try_link "$LINENO"; then :
14681
14682else
14683 ac_cv_type_unsigned_long_long_int=no
14684fi
14685rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 fi
14688fi
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14690$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14691 if test $ac_cv_type_unsigned_long_long_int = yes; then
14692
14693$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14694
14695 fi
14696
14697
14698
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14700$as_echo_n "checking for long long int... " >&6; }
14701if ${ac_cv_type_long_long_int+:} false; then :
14702 $as_echo_n "(cached) " >&6
14703else
14704 ac_cv_type_long_long_int=yes
14705 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14706 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14707 if test $ac_cv_type_long_long_int = yes; then
14708 if test "$cross_compiling" = yes; then :
14709 :
14710else
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712/* end confdefs.h. */
14713#include <limits.h>
14714 #ifndef LLONG_MAX
14715 # define HALF \
14716 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14717 # define LLONG_MAX (HALF - 1 + HALF)
14718 #endif
14719int
14720main ()
14721{
14722long long int n = 1;
14723 int i;
14724 for (i = 0; ; i++)
14725 {
14726 long long int m = n << i;
14727 if (m >> i != n)
14728 return 1;
14729 if (LLONG_MAX / 2 < m)
14730 break;
14731 }
14732 return 0;
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737if ac_fn_c_try_run "$LINENO"; then :
14738
14739else
14740 ac_cv_type_long_long_int=no
14741fi
14742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14743 conftest.$ac_objext conftest.beam conftest.$ac_ext
14744fi
14745
14746 fi
14747 fi
14748fi
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14750$as_echo "$ac_cv_type_long_long_int" >&6; }
14751 if test $ac_cv_type_long_long_int = yes; then
14752
14753$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14754
14755 fi
14756
14757
14758
14759
14760
14761
14209 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 14762 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14210" 14763"
14211if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 14764if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
@@ -14460,6 +15013,23 @@ fi
14460 gl_source_base='lib' 15013 gl_source_base='lib'
14461 # Code from module arg-nonnull: 15014 # Code from module arg-nonnull:
14462 # Code from module c++defs: 15015 # Code from module c++defs:
15016 # Code from module crypto/md5:
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15027
15028
15029
15030
15031 :
15032
14463 # Code from module dtoastr: 15033 # Code from module dtoastr:
14464 15034
14465 # Code from module extensions: 15035 # Code from module extensions:
@@ -15424,6 +15994,710 @@ $as_echo "$gl_cv_next_stddef_h" >&6; }
15424 15994
15425 fi 15995 fi
15426 15996
15997 # Code from module stdint:
15998
15999
16000
16001 if test $ac_cv_type_long_long_int = yes; then
16002 HAVE_LONG_LONG_INT=1
16003 else
16004 HAVE_LONG_LONG_INT=0
16005 fi
16006
16007
16008 if test $ac_cv_type_unsigned_long_long_int = yes; then
16009 HAVE_UNSIGNED_LONG_LONG_INT=1
16010 else
16011 HAVE_UNSIGNED_LONG_LONG_INT=0
16012 fi
16013
16014
16015
16016 if test $ac_cv_header_wchar_h = yes; then
16017 HAVE_WCHAR_H=1
16018 else
16019 HAVE_WCHAR_H=0
16020 fi
16021
16022
16023 if test $ac_cv_header_inttypes_h = yes; then
16024 HAVE_INTTYPES_H=1
16025 else
16026 HAVE_INTTYPES_H=0
16027 fi
16028
16029
16030 if test $ac_cv_header_sys_types_h = yes; then
16031 HAVE_SYS_TYPES_H=1
16032 else
16033 HAVE_SYS_TYPES_H=0
16034 fi
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046 if test $gl_cv_have_include_next = yes; then
16047 gl_cv_next_stdint_h='<'stdint.h'>'
16048 else
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16050$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16051if ${gl_cv_next_stdint_h+:} false; then :
16052 $as_echo_n "(cached) " >&6
16053else
16054
16055 if test $ac_cv_header_stdint_h = yes; then
16056
16057
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059/* end confdefs.h. */
16060#include <stdint.h>
16061
16062_ACEOF
16063 case "$host_os" in
16064 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16065 *) gl_absname_cpp="$ac_cpp" ;;
16066 esac
16067 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16068 sed -n '\#/stdint.h#{
16069 s#.*"\(.*/stdint.h\)".*#\1#
16070 s#^/[^/]#//&#
16071 p
16072 q
16073 }'`'"'
16074 else
16075 gl_cv_next_stdint_h='<'stdint.h'>'
16076 fi
16077
16078
16079fi
16080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16081$as_echo "$gl_cv_next_stdint_h" >&6; }
16082 fi
16083 NEXT_STDINT_H=$gl_cv_next_stdint_h
16084
16085 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16087 gl_next_as_first_directive='<'stdint.h'>'
16088 else
16089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16090 gl_next_as_first_directive=$gl_cv_next_stdint_h
16091 fi
16092 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16093
16094
16095
16096
16097 if test $ac_cv_header_stdint_h = yes; then
16098 HAVE_STDINT_H=1
16099 else
16100 HAVE_STDINT_H=0
16101 fi
16102
16103
16104 if test $ac_cv_header_stdint_h = yes; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16106$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16107if ${gl_cv_header_working_stdint_h+:} false; then :
16108 $as_echo_n "(cached) " >&6
16109else
16110 gl_cv_header_working_stdint_h=no
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112/* end confdefs.h. */
16113
16114
16115#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16116#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16117#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16118#include <stdint.h>
16119/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16120#if !(defined WCHAR_MIN && defined WCHAR_MAX)
16121#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16122#endif
16123
16124
16125 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16126 included before <wchar.h>. */
16127 #include <stddef.h>
16128 #include <signal.h>
16129 #if HAVE_WCHAR_H
16130 # include <stdio.h>
16131 # include <time.h>
16132 # include <wchar.h>
16133 #endif
16134
16135
16136#ifdef INT8_MAX
16137int8_t a1 = INT8_MAX;
16138int8_t a1min = INT8_MIN;
16139#endif
16140#ifdef INT16_MAX
16141int16_t a2 = INT16_MAX;
16142int16_t a2min = INT16_MIN;
16143#endif
16144#ifdef INT32_MAX
16145int32_t a3 = INT32_MAX;
16146int32_t a3min = INT32_MIN;
16147#endif
16148#ifdef INT64_MAX
16149int64_t a4 = INT64_MAX;
16150int64_t a4min = INT64_MIN;
16151#endif
16152#ifdef UINT8_MAX
16153uint8_t b1 = UINT8_MAX;
16154#else
16155typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16156#endif
16157#ifdef UINT16_MAX
16158uint16_t b2 = UINT16_MAX;
16159#endif
16160#ifdef UINT32_MAX
16161uint32_t b3 = UINT32_MAX;
16162#endif
16163#ifdef UINT64_MAX
16164uint64_t b4 = UINT64_MAX;
16165#endif
16166int_least8_t c1 = INT8_C (0x7f);
16167int_least8_t c1max = INT_LEAST8_MAX;
16168int_least8_t c1min = INT_LEAST8_MIN;
16169int_least16_t c2 = INT16_C (0x7fff);
16170int_least16_t c2max = INT_LEAST16_MAX;
16171int_least16_t c2min = INT_LEAST16_MIN;
16172int_least32_t c3 = INT32_C (0x7fffffff);
16173int_least32_t c3max = INT_LEAST32_MAX;
16174int_least32_t c3min = INT_LEAST32_MIN;
16175int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16176int_least64_t c4max = INT_LEAST64_MAX;
16177int_least64_t c4min = INT_LEAST64_MIN;
16178uint_least8_t d1 = UINT8_C (0xff);
16179uint_least8_t d1max = UINT_LEAST8_MAX;
16180uint_least16_t d2 = UINT16_C (0xffff);
16181uint_least16_t d2max = UINT_LEAST16_MAX;
16182uint_least32_t d3 = UINT32_C (0xffffffff);
16183uint_least32_t d3max = UINT_LEAST32_MAX;
16184uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16185uint_least64_t d4max = UINT_LEAST64_MAX;
16186int_fast8_t e1 = INT_FAST8_MAX;
16187int_fast8_t e1min = INT_FAST8_MIN;
16188int_fast16_t e2 = INT_FAST16_MAX;
16189int_fast16_t e2min = INT_FAST16_MIN;
16190int_fast32_t e3 = INT_FAST32_MAX;
16191int_fast32_t e3min = INT_FAST32_MIN;
16192int_fast64_t e4 = INT_FAST64_MAX;
16193int_fast64_t e4min = INT_FAST64_MIN;
16194uint_fast8_t f1 = UINT_FAST8_MAX;
16195uint_fast16_t f2 = UINT_FAST16_MAX;
16196uint_fast32_t f3 = UINT_FAST32_MAX;
16197uint_fast64_t f4 = UINT_FAST64_MAX;
16198#ifdef INTPTR_MAX
16199intptr_t g = INTPTR_MAX;
16200intptr_t gmin = INTPTR_MIN;
16201#endif
16202#ifdef UINTPTR_MAX
16203uintptr_t h = UINTPTR_MAX;
16204#endif
16205intmax_t i = INTMAX_MAX;
16206uintmax_t j = UINTMAX_MAX;
16207
16208#include <limits.h> /* for CHAR_BIT */
16209#define TYPE_MINIMUM(t) \
16210 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16211#define TYPE_MAXIMUM(t) \
16212 ((t) ((t) 0 < (t) -1 \
16213 ? (t) -1 \
16214 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16215struct s {
16216 int check_PTRDIFF:
16217 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16218 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16219 ? 1 : -1;
16220 /* Detect bug in FreeBSD 6.0 / ia64. */
16221 int check_SIG_ATOMIC:
16222 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16223 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16224 ? 1 : -1;
16225 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16226 int check_WCHAR:
16227 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16228 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16229 ? 1 : -1;
16230 /* Detect bug in mingw. */
16231 int check_WINT:
16232 WINT_MIN == TYPE_MINIMUM (wint_t)
16233 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16234 ? 1 : -1;
16235
16236 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16237 int check_UINT8_C:
16238 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16239 int check_UINT16_C:
16240 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16241
16242 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16243#ifdef UINT8_MAX
16244 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16245#endif
16246#ifdef UINT16_MAX
16247 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16248#endif
16249#ifdef UINT32_MAX
16250 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16251#endif
16252#ifdef UINT64_MAX
16253 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16254#endif
16255 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16256 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16257 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16258 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16259 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16260 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16261 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16262 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16263 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16264 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16265 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16266};
16267
16268int
16269main ()
16270{
16271
16272 ;
16273 return 0;
16274}
16275_ACEOF
16276if ac_fn_c_try_compile "$LINENO"; then :
16277 if test "$cross_compiling" = yes; then :
16278 gl_cv_header_working_stdint_h=yes
16279
16280else
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282/* end confdefs.h. */
16283
16284
16285#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16286#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16287#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16288#include <stdint.h>
16289
16290
16291 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16292 included before <wchar.h>. */
16293 #include <stddef.h>
16294 #include <signal.h>
16295 #if HAVE_WCHAR_H
16296 # include <stdio.h>
16297 # include <time.h>
16298 # include <wchar.h>
16299 #endif
16300
16301
16302#include <stdio.h>
16303#include <string.h>
16304#define MVAL(macro) MVAL1(macro)
16305#define MVAL1(expression) #expression
16306static const char *macro_values[] =
16307 {
16308#ifdef INT8_MAX
16309 MVAL (INT8_MAX),
16310#endif
16311#ifdef INT16_MAX
16312 MVAL (INT16_MAX),
16313#endif
16314#ifdef INT32_MAX
16315 MVAL (INT32_MAX),
16316#endif
16317#ifdef INT64_MAX
16318 MVAL (INT64_MAX),
16319#endif
16320#ifdef UINT8_MAX
16321 MVAL (UINT8_MAX),
16322#endif
16323#ifdef UINT16_MAX
16324 MVAL (UINT16_MAX),
16325#endif
16326#ifdef UINT32_MAX
16327 MVAL (UINT32_MAX),
16328#endif
16329#ifdef UINT64_MAX
16330 MVAL (UINT64_MAX),
16331#endif
16332 NULL
16333 };
16334
16335int
16336main ()
16337{
16338
16339 const char **mv;
16340 for (mv = macro_values; *mv != NULL; mv++)
16341 {
16342 const char *value = *mv;
16343 /* Test whether it looks like a cast expression. */
16344 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16345 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16346 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16347 || strncmp (value, "((int)"/*)*/, 6) == 0
16348 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16349 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16350 return mv - macro_values + 1;
16351 }
16352 return 0;
16353
16354 ;
16355 return 0;
16356}
16357_ACEOF
16358if ac_fn_c_try_run "$LINENO"; then :
16359 gl_cv_header_working_stdint_h=yes
16360fi
16361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16362 conftest.$ac_objext conftest.beam conftest.$ac_ext
16363fi
16364
16365
16366fi
16367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368
16369fi
16370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16371$as_echo "$gl_cv_header_working_stdint_h" >&6; }
16372 fi
16373 if test "$gl_cv_header_working_stdint_h" = yes; then
16374 STDINT_H=
16375 else
16376 for ac_header in sys/inttypes.h sys/bitypes.h
16377do :
16378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16379ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16380if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16381 cat >>confdefs.h <<_ACEOF
16382#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16383_ACEOF
16384
16385fi
16386
16387done
16388
16389 if test $ac_cv_header_sys_inttypes_h = yes; then
16390 HAVE_SYS_INTTYPES_H=1
16391 else
16392 HAVE_SYS_INTTYPES_H=0
16393 fi
16394
16395 if test $ac_cv_header_sys_bitypes_h = yes; then
16396 HAVE_SYS_BITYPES_H=1
16397 else
16398 HAVE_SYS_BITYPES_H=0
16399 fi
16400
16401
16402
16403
16404 if test $APPLE_UNIVERSAL_BUILD = 0; then
16405
16406
16407 for gltype in ptrdiff_t size_t ; do
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16409$as_echo_n "checking for bit size of $gltype... " >&6; }
16410if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16411 $as_echo_n "(cached) " >&6
16412else
16413 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16414 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16415 included before <wchar.h>. */
16416 #include <stddef.h>
16417 #include <signal.h>
16418 #if HAVE_WCHAR_H
16419 # include <stdio.h>
16420 # include <time.h>
16421 # include <wchar.h>
16422 #endif
16423
16424#include <limits.h>"; then :
16425
16426else
16427 result=unknown
16428fi
16429
16430 eval gl_cv_bitsizeof_${gltype}=\$result
16431
16432fi
16433eval ac_res=\$gl_cv_bitsizeof_${gltype}
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16435$as_echo "$ac_res" >&6; }
16436 eval result=\$gl_cv_bitsizeof_${gltype}
16437 if test $result = unknown; then
16438 result=0
16439 fi
16440 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16441 cat >>confdefs.h <<_ACEOF
16442#define BITSIZEOF_${GLTYPE} $result
16443_ACEOF
16444
16445 eval BITSIZEOF_${GLTYPE}=\$result
16446 done
16447
16448
16449 fi
16450
16451
16452 for gltype in sig_atomic_t wchar_t wint_t ; do
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16454$as_echo_n "checking for bit size of $gltype... " >&6; }
16455if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16456 $as_echo_n "(cached) " >&6
16457else
16458 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16459 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16460 included before <wchar.h>. */
16461 #include <stddef.h>
16462 #include <signal.h>
16463 #if HAVE_WCHAR_H
16464 # include <stdio.h>
16465 # include <time.h>
16466 # include <wchar.h>
16467 #endif
16468
16469#include <limits.h>"; then :
16470
16471else
16472 result=unknown
16473fi
16474
16475 eval gl_cv_bitsizeof_${gltype}=\$result
16476
16477fi
16478eval ac_res=\$gl_cv_bitsizeof_${gltype}
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16480$as_echo "$ac_res" >&6; }
16481 eval result=\$gl_cv_bitsizeof_${gltype}
16482 if test $result = unknown; then
16483 result=0
16484 fi
16485 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16486 cat >>confdefs.h <<_ACEOF
16487#define BITSIZEOF_${GLTYPE} $result
16488_ACEOF
16489
16490 eval BITSIZEOF_${GLTYPE}=\$result
16491 done
16492
16493
16494
16495
16496 for gltype in sig_atomic_t wchar_t wint_t ; do
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16498$as_echo_n "checking whether $gltype is signed... " >&6; }
16499if eval \${gl_cv_type_${gltype}_signed+:} false; then :
16500 $as_echo_n "(cached) " >&6
16501else
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503/* end confdefs.h. */
16504
16505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16506 included before <wchar.h>. */
16507 #include <stddef.h>
16508 #include <signal.h>
16509 #if HAVE_WCHAR_H
16510 # include <stdio.h>
16511 # include <time.h>
16512 # include <wchar.h>
16513 #endif
16514
16515 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16516int
16517main ()
16518{
16519
16520 ;
16521 return 0;
16522}
16523_ACEOF
16524if ac_fn_c_try_compile "$LINENO"; then :
16525 result=yes
16526else
16527 result=no
16528fi
16529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 eval gl_cv_type_${gltype}_signed=\$result
16531
16532fi
16533eval ac_res=\$gl_cv_type_${gltype}_signed
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16535$as_echo "$ac_res" >&6; }
16536 eval result=\$gl_cv_type_${gltype}_signed
16537 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16538 if test "$result" = yes; then
16539 cat >>confdefs.h <<_ACEOF
16540#define HAVE_SIGNED_${GLTYPE} 1
16541_ACEOF
16542
16543 eval HAVE_SIGNED_${GLTYPE}=1
16544 else
16545 eval HAVE_SIGNED_${GLTYPE}=0
16546 fi
16547 done
16548
16549
16550 gl_cv_type_ptrdiff_t_signed=yes
16551 gl_cv_type_size_t_signed=no
16552 if test $APPLE_UNIVERSAL_BUILD = 0; then
16553
16554
16555 for gltype in ptrdiff_t size_t ; do
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16557$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16558if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16559 $as_echo_n "(cached) " >&6
16560else
16561 eval gl_cv_type_${gltype}_suffix=no
16562 eval result=\$gl_cv_type_${gltype}_signed
16563 if test "$result" = yes; then
16564 glsufu=
16565 else
16566 glsufu=u
16567 fi
16568 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16569 case $glsuf in
16570 '') gltype1='int';;
16571 l) gltype1='long int';;
16572 ll) gltype1='long long int';;
16573 i64) gltype1='__int64';;
16574 u) gltype1='unsigned int';;
16575 ul) gltype1='unsigned long int';;
16576 ull) gltype1='unsigned long long int';;
16577 ui64)gltype1='unsigned __int64';;
16578 esac
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580/* end confdefs.h. */
16581
16582 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16583 included before <wchar.h>. */
16584 #include <stddef.h>
16585 #include <signal.h>
16586 #if HAVE_WCHAR_H
16587 # include <stdio.h>
16588 # include <time.h>
16589 # include <wchar.h>
16590 #endif
16591
16592 extern $gltype foo;
16593 extern $gltype1 foo;
16594int
16595main ()
16596{
16597
16598 ;
16599 return 0;
16600}
16601_ACEOF
16602if ac_fn_c_try_compile "$LINENO"; then :
16603 eval gl_cv_type_${gltype}_suffix=\$glsuf
16604fi
16605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 eval result=\$gl_cv_type_${gltype}_suffix
16607 test "$result" != no && break
16608 done
16609fi
16610eval ac_res=\$gl_cv_type_${gltype}_suffix
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16612$as_echo "$ac_res" >&6; }
16613 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16614 eval result=\$gl_cv_type_${gltype}_suffix
16615 test "$result" = no && result=
16616 eval ${GLTYPE}_SUFFIX=\$result
16617 cat >>confdefs.h <<_ACEOF
16618#define ${GLTYPE}_SUFFIX $result
16619_ACEOF
16620
16621 done
16622
16623
16624 fi
16625
16626
16627 for gltype in sig_atomic_t wchar_t wint_t ; do
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16629$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16630if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16631 $as_echo_n "(cached) " >&6
16632else
16633 eval gl_cv_type_${gltype}_suffix=no
16634 eval result=\$gl_cv_type_${gltype}_signed
16635 if test "$result" = yes; then
16636 glsufu=
16637 else
16638 glsufu=u
16639 fi
16640 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16641 case $glsuf in
16642 '') gltype1='int';;
16643 l) gltype1='long int';;
16644 ll) gltype1='long long int';;
16645 i64) gltype1='__int64';;
16646 u) gltype1='unsigned int';;
16647 ul) gltype1='unsigned long int';;
16648 ull) gltype1='unsigned long long int';;
16649 ui64)gltype1='unsigned __int64';;
16650 esac
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652/* end confdefs.h. */
16653
16654 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16655 included before <wchar.h>. */
16656 #include <stddef.h>
16657 #include <signal.h>
16658 #if HAVE_WCHAR_H
16659 # include <stdio.h>
16660 # include <time.h>
16661 # include <wchar.h>
16662 #endif
16663
16664 extern $gltype foo;
16665 extern $gltype1 foo;
16666int
16667main ()
16668{
16669
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674if ac_fn_c_try_compile "$LINENO"; then :
16675 eval gl_cv_type_${gltype}_suffix=\$glsuf
16676fi
16677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 eval result=\$gl_cv_type_${gltype}_suffix
16679 test "$result" != no && break
16680 done
16681fi
16682eval ac_res=\$gl_cv_type_${gltype}_suffix
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16684$as_echo "$ac_res" >&6; }
16685 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16686 eval result=\$gl_cv_type_${gltype}_suffix
16687 test "$result" = no && result=
16688 eval ${GLTYPE}_SUFFIX=\$result
16689 cat >>confdefs.h <<_ACEOF
16690#define ${GLTYPE}_SUFFIX $result
16691_ACEOF
16692
16693 done
16694
16695
16696
16697 STDINT_H=stdint.h
16698 fi
16699
16700
15427 # Code from module stdlib: 16701 # Code from module stdlib:
15428 16702
15429 16703
@@ -17861,6 +19135,7 @@ if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17861Usually this means the macro was only invoked conditionally." "$LINENO" 5 19135Usually this means the macro was only invoked conditionally." "$LINENO" 5
17862fi 19136fi
17863 19137
19138
17864 gl_libobjs= 19139 gl_libobjs=
17865 gl_ltlibobjs= 19140 gl_ltlibobjs=
17866 if test -n "$gl_LIBOBJS"; then 19141 if test -n "$gl_LIBOBJS"; then