1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## --- 295 unchanged lines hidden (view full) --- 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 |
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS' |
313ac_subst_files='language_hooks' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null --- 444 unchanged lines hidden (view full) --- 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP |
773ac_env_GMPLIBS_set=${GMPLIBS+set} 774ac_env_GMPLIBS_value=$GMPLIBS 775ac_cv_env_GMPLIBS_set=${GMPLIBS+set} 776ac_cv_env_GMPLIBS_value=$GMPLIBS 777ac_env_GMPINC_set=${GMPINC+set} 778ac_env_GMPINC_value=$GMPINC 779ac_cv_env_GMPINC_set=${GMPINC+set} 780ac_cv_env_GMPINC_value=$GMPINC |
781 782# 783# Report the --help message. 784# 785if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF --- 68 unchanged lines hidden (view full) --- 857 858Optional Features: 859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 861 --enable-generated-files-in-srcdir 862 put copies of generated files in source dir 863 intended for creating source tarballs for users 864 without texinfo bison or flex. |
865 --enable-werror-always enable -Werror always |
866 --enable-werror enable -Werror in bootstrap stage2 and later 867 --enable-checking=LIST 868 enable expensive run-time checks. With LIST, 869 enable only specific categories of checks. |
870 Categories are: yes,no,all,none,release. 871 Flags are: assert,fold,gc,gcac,misc, 872 rtlflag,rtl,runtime,tree,valgrind. 873 --enable-mapped-location location_t is fileline integer cookie |
874 --enable-coverage=LEVEL |
875 enable compiler's code coverage collection. |
876 Use to measure compiler performance and locate 877 unused parts of the compiler. With LEVEL, specify 878 optimization. Values are opt, noopt, 879 default is noopt 880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering 881 --enable-multilib enable library support for multiple ABIs 882 --enable-__cxa_atexit enable __cxa_atexit for C++ |
883 --enable-decimal-float enable decimal float extension to C |
884 --enable-threads enable thread usage for target GCC 885 --enable-threads=LIB use LIB thread package for target GCC |
886 --enable-tls enable or disable generation of tls code 887 overriding the assembler check for tls support |
888 --enable-objc-gc enable the use of Boehm's garbage collector with 889 the GNU Objective-C runtime 890 --disable-shared don't provide a shared libgcc 891 --enable-intermodule build the compiler in one step |
892 --enable-languages=LIST specify which front-ends to build 893 --disable-rpath do not hardcode runtime library paths |
894 --enable-initfini-array use .init_array/.fini_array sections 895 --enable-sjlj-exceptions 896 arrange to use setjmp/longjmp exception handling |
897 --enable-secureplt enable -msecure-plt by default for PowerPC |
898 --disable-win32-registry 899 disable lookup of installation paths in the 900 Registry on Windows hosts 901 --enable-win32-registry enable registry lookup (default) 902 --enable-win32-registry=KEY 903 use KEY instead of GCC version as the last portion 904 of the registry key 905 --enable-maintainer-mode 906 enable make rules and dependencies not useful 907 (and sometimes confusing) to the casual installer 908 --enable-version-specific-runtime-libs 909 specify that runtime libraries should be 910 installed in a compiler-specific directory 911 912Optional Packages: 913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
915 --with-build-libsubdir=DIR Directory where to find libraries for build system |
916 --with-local-prefix=DIR specifies directory to put local include 917 --with-gxx-include-dir=DIR 918 specifies directory to put g++ header files 919 --with-cpp-install-dir=DIR 920 install the user visible C preprocessor in DIR 921 (relative to PREFIX) as well as PREFIX/bin 922 --with-gnu-ld arrange to work with GNU ld. 923 --with-ld arrange to use the specified ld (full pathname) |
924 --with-demangler-in-ld try to use demangler in GNU ld. |
925 --with-gnu-as arrange to work with GNU as 926 --with-as arrange to use the specified as (full pathname) 927 --with-stabs arrange to use stabs instead of host debug format 928 --with-dwarf2 force the default debug format to be DWARF 2 |
929 --with-build-sysroot=sysroot 930 use sysroot as the system root during the build |
931 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR. |
932 --with-gnu-ld assume the C compiler uses GNU ld default=no 933 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 934 --without-libiconv-prefix don't search for libiconv in includedir and libdir |
935 --with-system-libunwind use installed libunwind |
936 --with-long-double-128 Use 128-bit long double by default. 937 --with-gc={page,zone} choose the garbage collection mechanism to use |
938 with the compiler 939 --with-system-zlib use installed libz |
940 --with-slibdir=DIR shared libraries in DIR [LIBDIR] 941 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share] 942 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR] 943 --with-htmldir=DIR html documentation in in DIR [DOCDIR] |
944 945Some influential environment variables: 946 CC C compiler command 947 CFLAGS C compiler flags 948 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 949 nonstandard directory <lib dir> 950 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 951 headers in a nonstandard directory <include dir> 952 CPP C preprocessor |
953 GMPLIBS How to link GMP 954 GMPINC How to find GMP include files |
955 956Use these variables to override the choices made by `configure' or to help 957it to find libraries and programs with nonstandard names/locations. 958 959_ACEOF 960fi 961 962if test "$ac_init_help" = "recursive"; then --- 427 unchanged lines hidden (view full) --- 1390 1391 1392 1393 1394 1395 ac_config_headers="$ac_config_headers auto-host.h:config.in" 1396 1397 |
1398gcc_version=`cat $srcdir/BASE-VER` 1399 |
1400# Determine the host, build, and target systems 1401ac_aux_dir= 1402for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1403 if test -f $ac_dir/install-sh; then 1404 ac_aux_dir=$ac_dir 1405 ac_install_sh="$ac_aux_dir/install-sh -c" 1406 break 1407 elif test -f $ac_dir/install.sh; then --- 110 unchanged lines hidden (view full) --- 1518esac 1519 1520 case ${target_alias} in 1521 "") target_noncanonical=${host_noncanonical} ;; 1522 *) target_noncanonical=${target_alias} ;; 1523esac 1524 1525 |
1526 1527 |
1528# Determine the target- and build-specific subdirectories |
1529 1530# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 1531# have matching libraries, they should use host libraries: Makefile.tpl 1532# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 1533# However, they still use the build modules, because the corresponding 1534# host modules (e.g. bison) are only built for the host when bootstrap 1535# finishes. So: 1536# - build_subdir is where we find build modules, and never changes. 1537# - build_libsubdir is where we find build libraries, and can be overridden. 1538 1539# Prefix 'build-' so this never conflicts with target_subdir. |
1540build_subdir="build-${build_noncanonical}" |
1541 1542# Check whether --with-build-libsubdir or --without-build-libsubdir was given. 1543if test "${with_build_libsubdir+set}" = set; then 1544 withval="$with_build_libsubdir" 1545 build_libsubdir="$withval" 1546else 1547 build_libsubdir="$build_subdir" 1548fi; 1549# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 1550if ( test $srcdir = . && test -d gcc ) \ 1551 || test -d $srcdir/../host-${host_noncanonical}; then 1552 host_subdir="host-${host_noncanonical}" 1553else 1554 host_subdir=. 1555fi |
1556# No prefix. 1557target_subdir=${target_noncanonical} 1558 1559 1560# Set program_transform_name 1561test "$program_prefix" != NONE && 1562 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1563# Use a double $ so make ignores it. --- 108 unchanged lines hidden (view full) --- 1672yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5 1673echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;} 1674 { (exit 1); exit 1; }; } ;; 1675no) ;; 1676*) gcc_gxx_include_dir=$with_gxx_include_dir ;; 1677esac 1678fi; 1679 |
1680# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO. |
1681if test x${gcc_gxx_include_dir} = x; then 1682 if test x${enable_version_specific_runtime_libs} = xyes; then 1683 gcc_gxx_include_dir='${libsubdir}/include/c++' 1684 else |
1685 libstdcxx_incdir='include/c++/$(version)' 1686 if test x$host != x$target; then 1687 libstdcxx_incdir="$target_alias/$libstdcxx_incdir" 1688 fi 1689 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir" |
1690 fi 1691fi 1692 1693 1694# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. 1695if test "${with_cpp_install_dir+set}" = set; then 1696 withval="$with_cpp_install_dir" 1697 if test x$withval = xyes; then --- 49 unchanged lines hidden (view full) --- 1747 1748# Check whether --with-ld or --without-ld was given. 1749if test "${with_ld+set}" = set; then 1750 withval="$with_ld" 1751 DEFAULT_LINKER="$with_ld" 1752fi; 1753if test x"${DEFAULT_LINKER+set}" = x"set"; then 1754 if test ! -x "$DEFAULT_LINKER"; then |
1755 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5 1756echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;} 1757 { (exit 1); exit 1; }; } |
1758 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 1759 gnu_ld_flag=yes 1760 fi 1761 1762cat >>confdefs.h <<_ACEOF 1763#define DEFAULT_LINKER "$DEFAULT_LINKER" 1764_ACEOF 1765 --- 9 unchanged lines hidden (view full) --- 1775 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5 1776echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6 1777 fi 1778else 1779 echo "$as_me:$LINENO: result: no" >&5 1780echo "${ECHO_T}no" >&6 1781fi 1782 |
1783# With demangler in GNU ld 1784 1785# Check whether --with-demangler-in-ld or --without-demangler-in-ld was given. 1786if test "${with_demangler_in_ld+set}" = set; then 1787 withval="$with_demangler_in_ld" 1788 demangler_in_ld="$with_demangler_in_ld" 1789else 1790 demangler_in_ld=no 1791fi; 1792 |
1793# ---------------------- 1794# Find default assembler 1795# ---------------------- 1796 1797# With GNU as 1798 1799# Check whether --with-gnu-as or --without-gnu-as was given. 1800if test "${with_gnu_as+set}" = set; then --- 6 unchanged lines hidden (view full) --- 1807 1808# Check whether --with-as or --without-as was given. 1809if test "${with_as+set}" = set; then 1810 withval="$with_as" 1811 DEFAULT_ASSEMBLER="$with_as" 1812fi; 1813if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 1814 if test ! -x "$DEFAULT_ASSEMBLER"; then |
1815 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5 1816echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;} 1817 { (exit 1); exit 1; }; } |
1818 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 1819 gas_flag=yes 1820 fi 1821 1822cat >>confdefs.h <<_ACEOF 1823#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" 1824_ACEOF 1825 --- 1043 unchanged lines hidden (view full) --- 2869echo "${ECHO_T}no" >&6 2870 2871cat >>confdefs.h <<\_ACEOF 2872#define NO_MINUS_C_MINUS_O 1 2873_ACEOF 2874 2875fi 2876 |
2877# expand $ac_aux_dir to an absolute path 2878am_aux_dir=`cd $ac_aux_dir && pwd` 2879 2880# FIXME: we rely on the cache variable name because 2881# there is no other way. 2882set dummy $CC 2883ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 2884if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 2885 # Losing compiler, so override with the script. 2886 # FIXME: It is wrong to rewrite CC. 2887 # But if we don't then we get into trouble of one sort or another. 2888 # A longer-term fix would be to have automake use am__CC in this case, 2889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 2890 CC="$am_aux_dir/compile $CC" 2891fi 2892 |
2893# autoconf is lame and doesn't give us any substitution variable for this. 2894if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then 2895 NO_MINUS_C_MINUS_O=yes 2896else 2897 OUTPUT_OPTION='-o $@' 2898fi 2899 2900 2901 |
2902# Remove the -O2: for historical reasons, unless bootstrapping we prefer 2903# optimizations to be activated explicitly by the toplevel. 2904case "$CC" in 2905 */prev-gcc/xgcc*) ;; 2906 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;; 2907esac 2908 2909 |
2910# ------------------------- 2911# Check C compiler features 2912# ------------------------- 2913 |
2914ac_ext=c 2915ac_cpp='$CPP $CPPFLAGS' 2916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2918ac_compiler_gnu=$ac_cv_c_compiler_gnu 2919echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2920echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2921# On Suns, sometimes $CPP names a directory. --- 218 unchanged lines hidden (view full) --- 3140fi 3141 3142ac_ext=c 3143ac_cpp='$CPP $CPPFLAGS' 3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3146ac_compiler_gnu=$ac_cv_c_compiler_gnu 3147 |
3148 |
3149echo "$as_me:$LINENO: checking for inline" >&5 3150echo $ECHO_N "checking for inline... $ECHO_C" >&6 3151if test "${ac_cv_c_inline+set}" = set; then 3152 echo $ECHO_N "(cached) $ECHO_C" >&6 3153else 3154 ac_cv_c_inline=no 3155for ac_kw in inline __inline__ __inline; do 3156 cat >conftest.$ac_ext <<_ACEOF --- 56 unchanged lines hidden (view full) --- 3213#ifndef __cplusplus 3214#define inline $ac_val 3215#endif 3216_ACEOF 3217 ;; 3218esac 3219 3220 |
3221# sizeof(char) is 1 by definition. 3222 3223echo "$as_me:$LINENO: checking for egrep" >&5 3224echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3225if test "${ac_cv_prog_egrep+set}" = set; then |
3226 echo $ECHO_N "(cached) $ECHO_C" >&6 3227else |
3228 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3229 then ac_cv_prog_egrep='grep -E' 3230 else ac_cv_prog_egrep='egrep' 3231 fi 3232fi 3233echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3234echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3235 EGREP=$ac_cv_prog_egrep 3236 3237 3238echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3239echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3240if test "${ac_cv_header_stdc+set}" = set; then 3241 echo $ECHO_N "(cached) $ECHO_C" >&6 3242else |
3243 cat >conftest.$ac_ext <<_ACEOF 3244/* confdefs.h. */ 3245_ACEOF 3246cat confdefs.h >>conftest.$ac_ext 3247cat >>conftest.$ac_ext <<_ACEOF 3248/* end confdefs.h. */ |
3249#include <stdlib.h> 3250#include <stdarg.h> 3251#include <string.h> 3252#include <float.h> |
3253 3254int 3255main () 3256{ |
3257 |
3258 ; 3259 return 0; 3260} 3261_ACEOF 3262rm -f conftest.$ac_objext 3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3264 (eval $ac_compile) 2>conftest.er1 3265 ac_status=$? --- 10 unchanged lines hidden (view full) --- 3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3277 (exit $ac_status); }; } && 3278 { ac_try='test -s conftest.$ac_objext' 3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3280 (eval $ac_try) 2>&5 3281 ac_status=$? 3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3283 (exit $ac_status); }; }; then |
3284 ac_cv_header_stdc=yes |
3285else 3286 echo "$as_me: failed program was:" >&5 3287sed 's/^/| /' conftest.$ac_ext >&5 3288 |
3289ac_cv_header_stdc=no |
3290fi 3291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3292 3293if test $ac_cv_header_stdc = yes; then 3294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3295 cat >conftest.$ac_ext <<_ACEOF 3296/* confdefs.h. */ 3297_ACEOF 3298cat confdefs.h >>conftest.$ac_ext 3299cat >>conftest.$ac_ext <<_ACEOF 3300/* end confdefs.h. */ 3301#include <string.h> 3302 3303_ACEOF 3304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3305 $EGREP "memchr" >/dev/null 2>&1; then 3306 : 3307else 3308 ac_cv_header_stdc=no |
3309fi |
3310rm -f conftest* |
3311 |
3312fi 3313 3314if test $ac_cv_header_stdc = yes; then 3315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3316 cat >conftest.$ac_ext <<_ACEOF 3317/* confdefs.h. */ |
3318_ACEOF |
3319cat confdefs.h >>conftest.$ac_ext 3320cat >>conftest.$ac_ext <<_ACEOF 3321/* end confdefs.h. */ 3322#include <stdlib.h> |
3323 |
3324_ACEOF 3325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3326 $EGREP "free" >/dev/null 2>&1; then 3327 : |
3328else |
3329 ac_cv_header_stdc=no 3330fi 3331rm -f conftest* 3332 3333fi 3334 3335if test $ac_cv_header_stdc = yes; then 3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3337 if test "$cross_compiling" = yes; then 3338 : 3339else |
3340 cat >conftest.$ac_ext <<_ACEOF 3341/* confdefs.h. */ 3342_ACEOF 3343cat confdefs.h >>conftest.$ac_ext 3344cat >>conftest.$ac_ext <<_ACEOF 3345/* end confdefs.h. */ |
3346#include <ctype.h> 3347#if ((' ' & 0x0FF) == 0x020) 3348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3350#else 3351# define ISLOWER(c) \ 3352 (('a' <= (c) && (c) <= 'i') \ 3353 || ('j' <= (c) && (c) <= 'r') \ 3354 || ('s' <= (c) && (c) <= 'z')) 3355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3356#endif |
3357 |
3358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3359int 3360main () 3361{ |
3362 int i; 3363 for (i = 0; i < 256; i++) 3364 if (XOR (islower (i), ISLOWER (i)) 3365 || toupper (i) != TOUPPER (i)) 3366 exit(2); 3367 exit (0); |
3368} 3369_ACEOF |
3370rm -f conftest$ac_exeext 3371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3372 (eval $ac_link) 2>&5 3373 ac_status=$? 3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3377 (eval $ac_try) 2>&5 3378 ac_status=$? 3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3380 (exit $ac_status); }; }; then 3381 : 3382else 3383 echo "$as_me: program exited with status $ac_status" >&5 3384echo "$as_me: failed program was:" >&5 3385sed 's/^/| /' conftest.$ac_ext >&5 3386 3387( exit $ac_status ) 3388ac_cv_header_stdc=no 3389fi 3390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3391fi 3392fi 3393fi 3394echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3395echo "${ECHO_T}$ac_cv_header_stdc" >&6 3396if test $ac_cv_header_stdc = yes; then 3397 3398cat >>confdefs.h <<\_ACEOF 3399#define STDC_HEADERS 1 3400_ACEOF 3401 3402fi 3403 3404# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3415 inttypes.h stdint.h unistd.h 3416do 3417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3418echo "$as_me:$LINENO: checking for $ac_header" >&5 3419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3420if eval "test \"\${$as_ac_Header+set}\" = set"; then 3421 echo $ECHO_N "(cached) $ECHO_C" >&6 3422else 3423 cat >conftest.$ac_ext <<_ACEOF 3424/* confdefs.h. */ 3425_ACEOF 3426cat confdefs.h >>conftest.$ac_ext 3427cat >>conftest.$ac_ext <<_ACEOF 3428/* end confdefs.h. */ 3429$ac_includes_default 3430 3431#include <$ac_header> 3432_ACEOF |
3433rm -f conftest.$ac_objext 3434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3435 (eval $ac_compile) 2>conftest.er1 3436 ac_status=$? 3437 grep -v '^ *+' conftest.er1 >conftest.err 3438 rm -f conftest.er1 3439 cat conftest.err >&5 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 --- 6 unchanged lines hidden (view full) --- 3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3448 (exit $ac_status); }; } && 3449 { ac_try='test -s conftest.$ac_objext' 3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3451 (eval $ac_try) 2>&5 3452 ac_status=$? 3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3454 (exit $ac_status); }; }; then |
3455 eval "$as_ac_Header=yes" |
3456else 3457 echo "$as_me: failed program was:" >&5 3458sed 's/^/| /' conftest.$ac_ext >&5 3459 |
3460eval "$as_ac_Header=no" |
3461fi 3462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3463fi |
3464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3466if test `eval echo '${'$as_ac_Header'}'` = yes; then 3467 cat >>confdefs.h <<_ACEOF 3468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3469_ACEOF 3470 |
3471fi |
3472 |
3473done 3474 3475 3476echo "$as_me:$LINENO: checking for void *" >&5 3477echo $ECHO_N "checking for void *... $ECHO_C" >&6 3478if test "${ac_cv_type_void_p+set}" = set; then |
3479 echo $ECHO_N "(cached) $ECHO_C" >&6 3480else 3481 cat >conftest.$ac_ext <<_ACEOF 3482/* confdefs.h. */ 3483_ACEOF 3484cat confdefs.h >>conftest.$ac_ext 3485cat >>conftest.$ac_ext <<_ACEOF 3486/* end confdefs.h. */ |
3487$ac_includes_default |
3488int 3489main () 3490{ |
3491if ((void * *) 0) 3492 return 0; 3493if (sizeof (void *)) 3494 return 0; |
3495 ; 3496 return 0; 3497} 3498_ACEOF 3499rm -f conftest.$ac_objext 3500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3501 (eval $ac_compile) 2>conftest.er1 3502 ac_status=$? --- 10 unchanged lines hidden (view full) --- 3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3514 (exit $ac_status); }; } && 3515 { ac_try='test -s conftest.$ac_objext' 3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3517 (eval $ac_try) 2>&5 3518 ac_status=$? 3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3520 (exit $ac_status); }; }; then |
3521 ac_cv_type_void_p=yes |
3522else 3523 echo "$as_me: failed program was:" >&5 3524sed 's/^/| /' conftest.$ac_ext >&5 3525 |
3526ac_cv_type_void_p=no |
3527fi 3528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3529fi |
3530echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 3531echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
3532 |
3533echo "$as_me:$LINENO: checking size of void *" >&5 3534echo $ECHO_N "checking size of void *... $ECHO_C" >&6 3535if test "${ac_cv_sizeof_void_p+set}" = set; then 3536 echo $ECHO_N "(cached) $ECHO_C" >&6 3537else |
3538 if test "$ac_cv_type_void_p" = yes; then 3539 # The cast to unsigned long works around a bug in the HP C Compiler 3540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3542 # This bug is HP SR number 8606223364. 3543 if test "$cross_compiling" = yes; then 3544 # Depending upon the size, compute the lo and hi bounds. 3545cat >conftest.$ac_ext <<_ACEOF |
3546/* confdefs.h. */ 3547_ACEOF 3548cat confdefs.h >>conftest.$ac_ext 3549cat >>conftest.$ac_ext <<_ACEOF 3550/* end confdefs.h. */ |
3551$ac_includes_default 3552int 3553main () 3554{ 3555static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; 3556test_array [0] = 0 |
3557 |
3558 ; 3559 return 0; 3560} 3561_ACEOF 3562rm -f conftest.$ac_objext 3563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3564 (eval $ac_compile) 2>conftest.er1 3565 ac_status=$? 3566 grep -v '^ *+' conftest.er1 >conftest.err 3567 rm -f conftest.er1 3568 cat conftest.err >&5 3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3570 (exit $ac_status); } && 3571 { ac_try='test -z "$ac_c_werror_flag" 3572 || test ! -s conftest.err' 3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3574 (eval $ac_try) 2>&5 3575 ac_status=$? 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3577 (exit $ac_status); }; } && 3578 { ac_try='test -s conftest.$ac_objext' 3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3580 (eval $ac_try) 2>&5 3581 ac_status=$? 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3583 (exit $ac_status); }; }; then 3584 ac_lo=0 ac_mid=0 3585 while :; do 3586 cat >conftest.$ac_ext <<_ACEOF 3587/* confdefs.h. */ 3588_ACEOF 3589cat confdefs.h >>conftest.$ac_ext 3590cat >>conftest.$ac_ext <<_ACEOF 3591/* end confdefs.h. */ 3592$ac_includes_default 3593int 3594main () 3595{ 3596static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 3597test_array [0] = 0 |
3598 |
3599 ; 3600 return 0; 3601} 3602_ACEOF 3603rm -f conftest.$ac_objext 3604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3605 (eval $ac_compile) 2>conftest.er1 3606 ac_status=$? 3607 grep -v '^ *+' conftest.er1 >conftest.err 3608 rm -f conftest.er1 3609 cat conftest.err >&5 3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 (exit $ac_status); } && 3612 { ac_try='test -z "$ac_c_werror_flag" 3613 || test ! -s conftest.err' 3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3615 (eval $ac_try) 2>&5 3616 ac_status=$? 3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3618 (exit $ac_status); }; } && 3619 { ac_try='test -s conftest.$ac_objext' 3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3621 (eval $ac_try) 2>&5 3622 ac_status=$? 3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3624 (exit $ac_status); }; }; then 3625 ac_hi=$ac_mid; break 3626else 3627 echo "$as_me: failed program was:" >&5 3628sed 's/^/| /' conftest.$ac_ext >&5 3629 3630ac_lo=`expr $ac_mid + 1` 3631 if test $ac_lo -le $ac_mid; then 3632 ac_lo= ac_hi= 3633 break 3634 fi 3635 ac_mid=`expr 2 '*' $ac_mid + 1` 3636fi 3637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3638 done 3639else 3640 echo "$as_me: failed program was:" >&5 3641sed 's/^/| /' conftest.$ac_ext >&5 3642 3643cat >conftest.$ac_ext <<_ACEOF 3644/* confdefs.h. */ 3645_ACEOF 3646cat confdefs.h >>conftest.$ac_ext 3647cat >>conftest.$ac_ext <<_ACEOF 3648/* end confdefs.h. */ 3649$ac_includes_default |
3650int 3651main () 3652{ |
3653static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; 3654test_array [0] = 0 3655 |
3656 ; 3657 return 0; 3658} 3659_ACEOF 3660rm -f conftest.$ac_objext 3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3662 (eval $ac_compile) 2>conftest.er1 3663 ac_status=$? --- 10 unchanged lines hidden (view full) --- 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); }; } && 3676 { ac_try='test -s conftest.$ac_objext' 3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3678 (eval $ac_try) 2>&5 3679 ac_status=$? 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); }; }; then |
3682 ac_hi=-1 ac_mid=-1 3683 while :; do 3684 cat >conftest.$ac_ext <<_ACEOF 3685/* confdefs.h. */ 3686_ACEOF 3687cat confdefs.h >>conftest.$ac_ext 3688cat >>conftest.$ac_ext <<_ACEOF 3689/* end confdefs.h. */ 3690$ac_includes_default 3691int 3692main () 3693{ 3694static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; 3695test_array [0] = 0 3696 3697 ; 3698 return 0; 3699} 3700_ACEOF 3701rm -f conftest.$ac_objext 3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3703 (eval $ac_compile) 2>conftest.er1 3704 ac_status=$? 3705 grep -v '^ *+' conftest.er1 >conftest.err 3706 rm -f conftest.er1 3707 cat conftest.err >&5 3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3709 (exit $ac_status); } && 3710 { ac_try='test -z "$ac_c_werror_flag" 3711 || test ! -s conftest.err' 3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3713 (eval $ac_try) 2>&5 3714 ac_status=$? 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 (exit $ac_status); }; } && 3717 { ac_try='test -s conftest.$ac_objext' 3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3719 (eval $ac_try) 2>&5 3720 ac_status=$? 3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3722 (exit $ac_status); }; }; then 3723 ac_lo=$ac_mid; break |
3724else 3725 echo "$as_me: failed program was:" >&5 3726sed 's/^/| /' conftest.$ac_ext >&5 3727 |
3728ac_hi=`expr '(' $ac_mid ')' - 1` 3729 if test $ac_mid -le $ac_hi; then 3730 ac_lo= ac_hi= 3731 break 3732 fi 3733 ac_mid=`expr 2 '*' $ac_mid` |
3734fi 3735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3736 done 3737else 3738 echo "$as_me: failed program was:" >&5 3739sed 's/^/| /' conftest.$ac_ext >&5 |
3740 |
3741ac_lo= ac_hi= |
3742fi |
3743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3744fi 3745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3746# Binary search between lo and hi bounds. 3747while test "x$ac_lo" != "x$ac_hi"; do 3748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3749 cat >conftest.$ac_ext <<_ACEOF 3750/* confdefs.h. */ 3751_ACEOF 3752cat confdefs.h >>conftest.$ac_ext 3753cat >>conftest.$ac_ext <<_ACEOF 3754/* end confdefs.h. */ 3755$ac_includes_default 3756int 3757main () 3758{ 3759static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 3760test_array [0] = 0 |
3761 |
3762 ; 3763 return 0; 3764} 3765_ACEOF 3766rm -f conftest.$ac_objext 3767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3768 (eval $ac_compile) 2>conftest.er1 3769 ac_status=$? 3770 grep -v '^ *+' conftest.er1 >conftest.err 3771 rm -f conftest.er1 3772 cat conftest.err >&5 3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3774 (exit $ac_status); } && 3775 { ac_try='test -z "$ac_c_werror_flag" 3776 || test ! -s conftest.err' 3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3778 (eval $ac_try) 2>&5 3779 ac_status=$? 3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3781 (exit $ac_status); }; } && 3782 { ac_try='test -s conftest.$ac_objext' 3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3784 (eval $ac_try) 2>&5 3785 ac_status=$? 3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3787 (exit $ac_status); }; }; then 3788 ac_hi=$ac_mid 3789else 3790 echo "$as_me: failed program was:" >&5 3791sed 's/^/| /' conftest.$ac_ext >&5 3792 3793ac_lo=`expr '(' $ac_mid ')' + 1` 3794fi 3795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3796done 3797case $ac_lo in 3798?*) ac_cv_sizeof_void_p=$ac_lo;; 3799'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 3800See \`config.log' for more details." >&5 3801echo "$as_me: error: cannot compute sizeof (void *), 77 3802See \`config.log' for more details." >&2;} 3803 { (exit 1); exit 1; }; } ;; 3804esac 3805else 3806 if test "$cross_compiling" = yes; then 3807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3808See \`config.log' for more details." >&5 3809echo "$as_me: error: cannot run test program while cross compiling 3810See \`config.log' for more details." >&2;} |
3811 { (exit 1); exit 1; }; } |
3812else 3813 cat >conftest.$ac_ext <<_ACEOF 3814/* confdefs.h. */ 3815_ACEOF 3816cat confdefs.h >>conftest.$ac_ext 3817cat >>conftest.$ac_ext <<_ACEOF 3818/* end confdefs.h. */ 3819$ac_includes_default 3820long longval () { return (long) (sizeof (void *)); } 3821unsigned long ulongval () { return (long) (sizeof (void *)); } 3822#include <stdio.h> 3823#include <stdlib.h> 3824int 3825main () 3826{ 3827 3828 FILE *f = fopen ("conftest.val", "w"); 3829 if (! f) 3830 exit (1); 3831 if (((long) (sizeof (void *))) < 0) 3832 { 3833 long i = longval (); 3834 if (i != ((long) (sizeof (void *)))) 3835 exit (1); 3836 fprintf (f, "%ld\n", i); 3837 } 3838 else 3839 { 3840 unsigned long i = ulongval (); 3841 if (i != ((long) (sizeof (void *)))) 3842 exit (1); 3843 fprintf (f, "%lu\n", i); 3844 } 3845 exit (ferror (f) || fclose (f) != 0); 3846 3847 ; 3848 return 0; 3849} 3850_ACEOF 3851rm -f conftest$ac_exeext 3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3853 (eval $ac_link) 2>&5 3854 ac_status=$? 3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3858 (eval $ac_try) 2>&5 3859 ac_status=$? 3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3861 (exit $ac_status); }; }; then 3862 ac_cv_sizeof_void_p=`cat conftest.val` 3863else 3864 echo "$as_me: program exited with status $ac_status" >&5 3865echo "$as_me: failed program was:" >&5 3866sed 's/^/| /' conftest.$ac_ext >&5 3867 3868( exit $ac_status ) 3869{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 3870See \`config.log' for more details." >&5 3871echo "$as_me: error: cannot compute sizeof (void *), 77 3872See \`config.log' for more details." >&2;} 3873 { (exit 1); exit 1; }; } |
3874fi |
3875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3876fi 3877fi 3878rm -f conftest.val 3879else 3880 ac_cv_sizeof_void_p=0 3881fi 3882fi |
3883echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 3884echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
3885cat >>confdefs.h <<_ACEOF 3886#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 3887_ACEOF 3888 3889 |
3890echo "$as_me:$LINENO: checking for short" >&5 3891echo $ECHO_N "checking for short... $ECHO_C" >&6 3892if test "${ac_cv_type_short+set}" = set; then 3893 echo $ECHO_N "(cached) $ECHO_C" >&6 3894else 3895 cat >conftest.$ac_ext <<_ACEOF 3896/* confdefs.h. */ 3897_ACEOF 3898cat confdefs.h >>conftest.$ac_ext 3899cat >>conftest.$ac_ext <<_ACEOF 3900/* end confdefs.h. */ 3901$ac_includes_default 3902int 3903main () 3904{ 3905if ((short *) 0) 3906 return 0; 3907if (sizeof (short)) 3908 return 0; 3909 ; 3910 return 0; 3911} 3912_ACEOF 3913rm -f conftest.$ac_objext 3914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3915 (eval $ac_compile) 2>conftest.er1 3916 ac_status=$? 3917 grep -v '^ *+' conftest.er1 >conftest.err 3918 rm -f conftest.er1 3919 cat conftest.err >&5 3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3921 (exit $ac_status); } && 3922 { ac_try='test -z "$ac_c_werror_flag" 3923 || test ! -s conftest.err' 3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3925 (eval $ac_try) 2>&5 3926 ac_status=$? 3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3928 (exit $ac_status); }; } && 3929 { ac_try='test -s conftest.$ac_objext' 3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3931 (eval $ac_try) 2>&5 3932 ac_status=$? 3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3934 (exit $ac_status); }; }; then 3935 ac_cv_type_short=yes 3936else 3937 echo "$as_me: failed program was:" >&5 3938sed 's/^/| /' conftest.$ac_ext >&5 3939 3940ac_cv_type_short=no 3941fi 3942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3943fi 3944echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 3945echo "${ECHO_T}$ac_cv_type_short" >&6 3946 |
3947echo "$as_me:$LINENO: checking size of short" >&5 3948echo $ECHO_N "checking size of short... $ECHO_C" >&6 3949if test "${ac_cv_sizeof_short+set}" = set; then 3950 echo $ECHO_N "(cached) $ECHO_C" >&6 3951else |
3952 if test "$ac_cv_type_short" = yes; then 3953 # The cast to unsigned long works around a bug in the HP C Compiler 3954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3956 # This bug is HP SR number 8606223364. 3957 if test "$cross_compiling" = yes; then 3958 # Depending upon the size, compute the lo and hi bounds. 3959cat >conftest.$ac_ext <<_ACEOF |
3960/* confdefs.h. */ 3961_ACEOF 3962cat confdefs.h >>conftest.$ac_ext 3963cat >>conftest.$ac_ext <<_ACEOF 3964/* end confdefs.h. */ |
3965$ac_includes_default 3966int 3967main () 3968{ 3969static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 3970test_array [0] = 0 |
3971 |
3972 ; 3973 return 0; 3974} 3975_ACEOF 3976rm -f conftest.$ac_objext 3977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3978 (eval $ac_compile) 2>conftest.er1 3979 ac_status=$? 3980 grep -v '^ *+' conftest.er1 >conftest.err 3981 rm -f conftest.er1 3982 cat conftest.err >&5 3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3984 (exit $ac_status); } && 3985 { ac_try='test -z "$ac_c_werror_flag" 3986 || test ! -s conftest.err' 3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3988 (eval $ac_try) 2>&5 3989 ac_status=$? 3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991 (exit $ac_status); }; } && 3992 { ac_try='test -s conftest.$ac_objext' 3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3994 (eval $ac_try) 2>&5 3995 ac_status=$? 3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3997 (exit $ac_status); }; }; then 3998 ac_lo=0 ac_mid=0 3999 while :; do 4000 cat >conftest.$ac_ext <<_ACEOF 4001/* confdefs.h. */ 4002_ACEOF 4003cat confdefs.h >>conftest.$ac_ext 4004cat >>conftest.$ac_ext <<_ACEOF 4005/* end confdefs.h. */ 4006$ac_includes_default 4007int 4008main () 4009{ 4010static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4011test_array [0] = 0 |
4012 |
4013 ; 4014 return 0; 4015} 4016_ACEOF 4017rm -f conftest.$ac_objext 4018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4019 (eval $ac_compile) 2>conftest.er1 4020 ac_status=$? 4021 grep -v '^ *+' conftest.er1 >conftest.err 4022 rm -f conftest.er1 4023 cat conftest.err >&5 4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 (exit $ac_status); } && 4026 { ac_try='test -z "$ac_c_werror_flag" 4027 || test ! -s conftest.err' 4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4029 (eval $ac_try) 2>&5 4030 ac_status=$? 4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4032 (exit $ac_status); }; } && 4033 { ac_try='test -s conftest.$ac_objext' 4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4035 (eval $ac_try) 2>&5 4036 ac_status=$? 4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4038 (exit $ac_status); }; }; then 4039 ac_hi=$ac_mid; break 4040else 4041 echo "$as_me: failed program was:" >&5 4042sed 's/^/| /' conftest.$ac_ext >&5 4043 4044ac_lo=`expr $ac_mid + 1` 4045 if test $ac_lo -le $ac_mid; then 4046 ac_lo= ac_hi= 4047 break 4048 fi 4049 ac_mid=`expr 2 '*' $ac_mid + 1` 4050fi 4051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4052 done 4053else 4054 echo "$as_me: failed program was:" >&5 4055sed 's/^/| /' conftest.$ac_ext >&5 4056 4057cat >conftest.$ac_ext <<_ACEOF 4058/* confdefs.h. */ 4059_ACEOF 4060cat confdefs.h >>conftest.$ac_ext 4061cat >>conftest.$ac_ext <<_ACEOF 4062/* end confdefs.h. */ 4063$ac_includes_default |
4064int 4065main () 4066{ |
4067static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 4068test_array [0] = 0 4069 |
4070 ; 4071 return 0; 4072} 4073_ACEOF 4074rm -f conftest.$ac_objext 4075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4076 (eval $ac_compile) 2>conftest.er1 4077 ac_status=$? --- 10 unchanged lines hidden (view full) --- 4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4089 (exit $ac_status); }; } && 4090 { ac_try='test -s conftest.$ac_objext' 4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4092 (eval $ac_try) 2>&5 4093 ac_status=$? 4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4095 (exit $ac_status); }; }; then |
4096 ac_hi=-1 ac_mid=-1 4097 while :; do 4098 cat >conftest.$ac_ext <<_ACEOF 4099/* confdefs.h. */ 4100_ACEOF 4101cat confdefs.h >>conftest.$ac_ext 4102cat >>conftest.$ac_ext <<_ACEOF 4103/* end confdefs.h. */ 4104$ac_includes_default 4105int 4106main () 4107{ 4108static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 4109test_array [0] = 0 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115rm -f conftest.$ac_objext 4116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4117 (eval $ac_compile) 2>conftest.er1 4118 ac_status=$? 4119 grep -v '^ *+' conftest.er1 >conftest.err 4120 rm -f conftest.er1 4121 cat conftest.err >&5 4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4123 (exit $ac_status); } && 4124 { ac_try='test -z "$ac_c_werror_flag" 4125 || test ! -s conftest.err' 4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4127 (eval $ac_try) 2>&5 4128 ac_status=$? 4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4130 (exit $ac_status); }; } && 4131 { ac_try='test -s conftest.$ac_objext' 4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4133 (eval $ac_try) 2>&5 4134 ac_status=$? 4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4136 (exit $ac_status); }; }; then 4137 ac_lo=$ac_mid; break |
4138else 4139 echo "$as_me: failed program was:" >&5 4140sed 's/^/| /' conftest.$ac_ext >&5 4141 |
4142ac_hi=`expr '(' $ac_mid ')' - 1` 4143 if test $ac_mid -le $ac_hi; then 4144 ac_lo= ac_hi= 4145 break 4146 fi 4147 ac_mid=`expr 2 '*' $ac_mid` |
4148fi 4149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4150 done 4151else 4152 echo "$as_me: failed program was:" >&5 4153sed 's/^/| /' conftest.$ac_ext >&5 |
4154 |
4155ac_lo= ac_hi= |
4156fi |
4157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4158fi 4159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4160# Binary search between lo and hi bounds. 4161while test "x$ac_lo" != "x$ac_hi"; do 4162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4163 cat >conftest.$ac_ext <<_ACEOF 4164/* confdefs.h. */ 4165_ACEOF 4166cat confdefs.h >>conftest.$ac_ext 4167cat >>conftest.$ac_ext <<_ACEOF 4168/* end confdefs.h. */ 4169$ac_includes_default 4170int 4171main () 4172{ 4173static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4174test_array [0] = 0 |
4175 |
4176 ; 4177 return 0; 4178} 4179_ACEOF 4180rm -f conftest.$ac_objext 4181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4182 (eval $ac_compile) 2>conftest.er1 4183 ac_status=$? 4184 grep -v '^ *+' conftest.er1 >conftest.err 4185 rm -f conftest.er1 4186 cat conftest.err >&5 4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4188 (exit $ac_status); } && 4189 { ac_try='test -z "$ac_c_werror_flag" 4190 || test ! -s conftest.err' 4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4192 (eval $ac_try) 2>&5 4193 ac_status=$? 4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4195 (exit $ac_status); }; } && 4196 { ac_try='test -s conftest.$ac_objext' 4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4198 (eval $ac_try) 2>&5 4199 ac_status=$? 4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4201 (exit $ac_status); }; }; then 4202 ac_hi=$ac_mid 4203else 4204 echo "$as_me: failed program was:" >&5 4205sed 's/^/| /' conftest.$ac_ext >&5 4206 4207ac_lo=`expr '(' $ac_mid ')' + 1` 4208fi 4209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4210done 4211case $ac_lo in 4212?*) ac_cv_sizeof_short=$ac_lo;; 4213'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 4214See \`config.log' for more details." >&5 4215echo "$as_me: error: cannot compute sizeof (short), 77 4216See \`config.log' for more details." >&2;} 4217 { (exit 1); exit 1; }; } ;; 4218esac 4219else 4220 if test "$cross_compiling" = yes; then 4221 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4222See \`config.log' for more details." >&5 4223echo "$as_me: error: cannot run test program while cross compiling 4224See \`config.log' for more details." >&2;} |
4225 { (exit 1); exit 1; }; } |
4226else 4227 cat >conftest.$ac_ext <<_ACEOF 4228/* confdefs.h. */ 4229_ACEOF 4230cat confdefs.h >>conftest.$ac_ext 4231cat >>conftest.$ac_ext <<_ACEOF 4232/* end confdefs.h. */ 4233$ac_includes_default 4234long longval () { return (long) (sizeof (short)); } 4235unsigned long ulongval () { return (long) (sizeof (short)); } 4236#include <stdio.h> 4237#include <stdlib.h> 4238int 4239main () 4240{ 4241 4242 FILE *f = fopen ("conftest.val", "w"); 4243 if (! f) 4244 exit (1); 4245 if (((long) (sizeof (short))) < 0) 4246 { 4247 long i = longval (); 4248 if (i != ((long) (sizeof (short)))) 4249 exit (1); 4250 fprintf (f, "%ld\n", i); 4251 } 4252 else 4253 { 4254 unsigned long i = ulongval (); 4255 if (i != ((long) (sizeof (short)))) 4256 exit (1); 4257 fprintf (f, "%lu\n", i); 4258 } 4259 exit (ferror (f) || fclose (f) != 0); 4260 4261 ; 4262 return 0; 4263} 4264_ACEOF 4265rm -f conftest$ac_exeext 4266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4267 (eval $ac_link) 2>&5 4268 ac_status=$? 4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4272 (eval $ac_try) 2>&5 4273 ac_status=$? 4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 (exit $ac_status); }; }; then 4276 ac_cv_sizeof_short=`cat conftest.val` 4277else 4278 echo "$as_me: program exited with status $ac_status" >&5 4279echo "$as_me: failed program was:" >&5 4280sed 's/^/| /' conftest.$ac_ext >&5 4281 4282( exit $ac_status ) 4283{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 4284See \`config.log' for more details." >&5 4285echo "$as_me: error: cannot compute sizeof (short), 77 4286See \`config.log' for more details." >&2;} 4287 { (exit 1); exit 1; }; } |
4288fi |
4289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4290fi 4291fi 4292rm -f conftest.val 4293else 4294 ac_cv_sizeof_short=0 4295fi 4296fi |
4297echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 4298echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
4299cat >>confdefs.h <<_ACEOF 4300#define SIZEOF_SHORT $ac_cv_sizeof_short 4301_ACEOF 4302 4303 |
4304echo "$as_me:$LINENO: checking for int" >&5 4305echo $ECHO_N "checking for int... $ECHO_C" >&6 4306if test "${ac_cv_type_int+set}" = set; then 4307 echo $ECHO_N "(cached) $ECHO_C" >&6 4308else 4309 cat >conftest.$ac_ext <<_ACEOF 4310/* confdefs.h. */ 4311_ACEOF 4312cat confdefs.h >>conftest.$ac_ext 4313cat >>conftest.$ac_ext <<_ACEOF 4314/* end confdefs.h. */ 4315$ac_includes_default 4316int 4317main () 4318{ 4319if ((int *) 0) 4320 return 0; 4321if (sizeof (int)) 4322 return 0; 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327rm -f conftest.$ac_objext 4328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4329 (eval $ac_compile) 2>conftest.er1 4330 ac_status=$? 4331 grep -v '^ *+' conftest.er1 >conftest.err 4332 rm -f conftest.er1 4333 cat conftest.err >&5 4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4335 (exit $ac_status); } && 4336 { ac_try='test -z "$ac_c_werror_flag" 4337 || test ! -s conftest.err' 4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4339 (eval $ac_try) 2>&5 4340 ac_status=$? 4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4342 (exit $ac_status); }; } && 4343 { ac_try='test -s conftest.$ac_objext' 4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4345 (eval $ac_try) 2>&5 4346 ac_status=$? 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); }; }; then 4349 ac_cv_type_int=yes 4350else 4351 echo "$as_me: failed program was:" >&5 4352sed 's/^/| /' conftest.$ac_ext >&5 4353 4354ac_cv_type_int=no 4355fi 4356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4357fi 4358echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 4359echo "${ECHO_T}$ac_cv_type_int" >&6 4360 |
4361echo "$as_me:$LINENO: checking size of int" >&5 4362echo $ECHO_N "checking size of int... $ECHO_C" >&6 4363if test "${ac_cv_sizeof_int+set}" = set; then 4364 echo $ECHO_N "(cached) $ECHO_C" >&6 4365else |
4366 if test "$ac_cv_type_int" = yes; then 4367 # The cast to unsigned long works around a bug in the HP C Compiler 4368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4370 # This bug is HP SR number 8606223364. 4371 if test "$cross_compiling" = yes; then 4372 # Depending upon the size, compute the lo and hi bounds. 4373cat >conftest.$ac_ext <<_ACEOF |
4374/* confdefs.h. */ 4375_ACEOF 4376cat confdefs.h >>conftest.$ac_ext 4377cat >>conftest.$ac_ext <<_ACEOF 4378/* end confdefs.h. */ |
4379$ac_includes_default 4380int 4381main () 4382{ 4383static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 4384test_array [0] = 0 |
4385 |
4386 ; 4387 return 0; 4388} 4389_ACEOF 4390rm -f conftest.$ac_objext 4391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4392 (eval $ac_compile) 2>conftest.er1 4393 ac_status=$? 4394 grep -v '^ *+' conftest.er1 >conftest.err 4395 rm -f conftest.er1 4396 cat conftest.err >&5 4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4398 (exit $ac_status); } && 4399 { ac_try='test -z "$ac_c_werror_flag" 4400 || test ! -s conftest.err' 4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4402 (eval $ac_try) 2>&5 4403 ac_status=$? 4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4405 (exit $ac_status); }; } && 4406 { ac_try='test -s conftest.$ac_objext' 4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4408 (eval $ac_try) 2>&5 4409 ac_status=$? 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4411 (exit $ac_status); }; }; then 4412 ac_lo=0 ac_mid=0 4413 while :; do 4414 cat >conftest.$ac_ext <<_ACEOF 4415/* confdefs.h. */ 4416_ACEOF 4417cat confdefs.h >>conftest.$ac_ext 4418cat >>conftest.$ac_ext <<_ACEOF 4419/* end confdefs.h. */ 4420$ac_includes_default |
4421int 4422main () 4423{ |
4424static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4425test_array [0] = 0 4426 |
4427 ; 4428 return 0; 4429} 4430_ACEOF 4431rm -f conftest.$ac_objext 4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4433 (eval $ac_compile) 2>conftest.er1 4434 ac_status=$? --- 10 unchanged lines hidden (view full) --- 4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4446 (exit $ac_status); }; } && 4447 { ac_try='test -s conftest.$ac_objext' 4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4449 (eval $ac_try) 2>&5 4450 ac_status=$? 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); }; }; then |
4453 ac_hi=$ac_mid; break |
4454else 4455 echo "$as_me: failed program was:" >&5 4456sed 's/^/| /' conftest.$ac_ext >&5 4457 |
4458ac_lo=`expr $ac_mid + 1` 4459 if test $ac_lo -le $ac_mid; then 4460 ac_lo= ac_hi= 4461 break 4462 fi 4463 ac_mid=`expr 2 '*' $ac_mid + 1` |
4464fi 4465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4466 done 4467else 4468 echo "$as_me: failed program was:" >&5 4469sed 's/^/| /' conftest.$ac_ext >&5 |
4470 |
4471cat >conftest.$ac_ext <<_ACEOF 4472/* confdefs.h. */ 4473_ACEOF 4474cat confdefs.h >>conftest.$ac_ext 4475cat >>conftest.$ac_ext <<_ACEOF 4476/* end confdefs.h. */ 4477$ac_includes_default 4478int 4479main () 4480{ 4481static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 4482test_array [0] = 0 |
4483 |
4484 ; 4485 return 0; 4486} 4487_ACEOF 4488rm -f conftest.$ac_objext 4489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4490 (eval $ac_compile) 2>conftest.er1 4491 ac_status=$? 4492 grep -v '^ *+' conftest.er1 >conftest.err 4493 rm -f conftest.er1 4494 cat conftest.err >&5 4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4496 (exit $ac_status); } && 4497 { ac_try='test -z "$ac_c_werror_flag" 4498 || test ! -s conftest.err' 4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4500 (eval $ac_try) 2>&5 4501 ac_status=$? 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); }; } && 4504 { ac_try='test -s conftest.$ac_objext' 4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4506 (eval $ac_try) 2>&5 4507 ac_status=$? 4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4509 (exit $ac_status); }; }; then 4510 ac_hi=-1 ac_mid=-1 4511 while :; do 4512 cat >conftest.$ac_ext <<_ACEOF 4513/* confdefs.h. */ 4514_ACEOF 4515cat confdefs.h >>conftest.$ac_ext 4516cat >>conftest.$ac_ext <<_ACEOF 4517/* end confdefs.h. */ 4518$ac_includes_default 4519int 4520main () 4521{ 4522static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 4523test_array [0] = 0 |
4524 |
4525 ; 4526 return 0; 4527} |
4528_ACEOF |
4529rm -f conftest.$ac_objext 4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4531 (eval $ac_compile) 2>conftest.er1 4532 ac_status=$? 4533 grep -v '^ *+' conftest.er1 >conftest.err 4534 rm -f conftest.er1 4535 cat conftest.err >&5 4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4537 (exit $ac_status); } && 4538 { ac_try='test -z "$ac_c_werror_flag" 4539 || test ! -s conftest.err' 4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4541 (eval $ac_try) 2>&5 4542 ac_status=$? 4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4544 (exit $ac_status); }; } && 4545 { ac_try='test -s conftest.$ac_objext' 4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4547 (eval $ac_try) 2>&5 4548 ac_status=$? 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4550 (exit $ac_status); }; }; then 4551 ac_lo=$ac_mid; break 4552else 4553 echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 |
4555 |
4556ac_hi=`expr '(' $ac_mid ')' - 1` 4557 if test $ac_mid -le $ac_hi; then 4558 ac_lo= ac_hi= 4559 break 4560 fi 4561 ac_mid=`expr 2 '*' $ac_mid` 4562fi 4563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4564 done |
4565else |
4566 echo "$as_me: failed program was:" >&5 4567sed 's/^/| /' conftest.$ac_ext >&5 4568 4569ac_lo= ac_hi= 4570fi 4571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4572fi 4573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4574# Binary search between lo and hi bounds. 4575while test "x$ac_lo" != "x$ac_hi"; do 4576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
4577 cat >conftest.$ac_ext <<_ACEOF 4578/* confdefs.h. */ 4579_ACEOF 4580cat confdefs.h >>conftest.$ac_ext 4581cat >>conftest.$ac_ext <<_ACEOF 4582/* end confdefs.h. */ |
4583$ac_includes_default |
4584int 4585main () 4586{ |
4587static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4588test_array [0] = 0 4589 |
4590 ; 4591 return 0; 4592} 4593_ACEOF 4594rm -f conftest.$ac_objext 4595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4596 (eval $ac_compile) 2>conftest.er1 4597 ac_status=$? --- 10 unchanged lines hidden (view full) --- 4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4609 (exit $ac_status); }; } && 4610 { ac_try='test -s conftest.$ac_objext' 4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4612 (eval $ac_try) 2>&5 4613 ac_status=$? 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); }; }; then |
4616 ac_hi=$ac_mid |
4617else 4618 echo "$as_me: failed program was:" >&5 4619sed 's/^/| /' conftest.$ac_ext >&5 4620 |
4621ac_lo=`expr '(' $ac_mid ')' + 1` |
4622fi 4623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4624done |
4625case $ac_lo in 4626?*) ac_cv_sizeof_int=$ac_lo;; 4627'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4628See \`config.log' for more details." >&5 4629echo "$as_me: error: cannot compute sizeof (int), 77 4630See \`config.log' for more details." >&2;} 4631 { (exit 1); exit 1; }; } ;; 4632esac 4633else 4634 if test "$cross_compiling" = yes; then 4635 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4636See \`config.log' for more details." >&5 4637echo "$as_me: error: cannot run test program while cross compiling 4638See \`config.log' for more details." >&2;} 4639 { (exit 1); exit 1; }; } 4640else 4641 cat >conftest.$ac_ext <<_ACEOF 4642/* confdefs.h. */ 4643_ACEOF 4644cat confdefs.h >>conftest.$ac_ext 4645cat >>conftest.$ac_ext <<_ACEOF 4646/* end confdefs.h. */ 4647$ac_includes_default 4648long longval () { return (long) (sizeof (int)); } 4649unsigned long ulongval () { return (long) (sizeof (int)); } 4650#include <stdio.h> 4651#include <stdlib.h> 4652int 4653main () 4654{ |
4655 |
4656 FILE *f = fopen ("conftest.val", "w"); 4657 if (! f) 4658 exit (1); 4659 if (((long) (sizeof (int))) < 0) 4660 { 4661 long i = longval (); 4662 if (i != ((long) (sizeof (int)))) 4663 exit (1); 4664 fprintf (f, "%ld\n", i); 4665 } 4666 else 4667 { 4668 unsigned long i = ulongval (); 4669 if (i != ((long) (sizeof (int)))) 4670 exit (1); 4671 fprintf (f, "%lu\n", i); 4672 } 4673 exit (ferror (f) || fclose (f) != 0); |
4674 |
4675 ; 4676 return 0; 4677} 4678_ACEOF 4679rm -f conftest$ac_exeext 4680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4681 (eval $ac_link) 2>&5 4682 ac_status=$? 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4686 (eval $ac_try) 2>&5 4687 ac_status=$? 4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4689 (exit $ac_status); }; }; then 4690 ac_cv_sizeof_int=`cat conftest.val` 4691else 4692 echo "$as_me: program exited with status $ac_status" >&5 4693echo "$as_me: failed program was:" >&5 4694sed 's/^/| /' conftest.$ac_ext >&5 4695 4696( exit $ac_status ) 4697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4698See \`config.log' for more details." >&5 4699echo "$as_me: error: cannot compute sizeof (int), 77 4700See \`config.log' for more details." >&2;} |
4701 { (exit 1); exit 1; }; } 4702fi |
4703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4704fi 4705fi 4706rm -f conftest.val 4707else 4708 ac_cv_sizeof_int=0 4709fi 4710fi 4711echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 4712echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
4713cat >>confdefs.h <<_ACEOF |
4714#define SIZEOF_INT $ac_cv_sizeof_int |
4715_ACEOF 4716 4717 |
4718echo "$as_me:$LINENO: checking for long" >&5 4719echo $ECHO_N "checking for long... $ECHO_C" >&6 4720if test "${ac_cv_type_long+set}" = set; then |
4721 echo $ECHO_N "(cached) $ECHO_C" >&6 4722else |
4723 cat >conftest.$ac_ext <<_ACEOF 4724/* confdefs.h. */ 4725_ACEOF 4726cat confdefs.h >>conftest.$ac_ext 4727cat >>conftest.$ac_ext <<_ACEOF 4728/* end confdefs.h. */ |
4729$ac_includes_default |
4730int 4731main () 4732{ |
4733if ((long *) 0) 4734 return 0; 4735if (sizeof (long)) 4736 return 0; |
4737 ; 4738 return 0; 4739} 4740_ACEOF 4741rm -f conftest.$ac_objext 4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4743 (eval $ac_compile) 2>conftest.er1 4744 ac_status=$? --- 10 unchanged lines hidden (view full) --- 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4756 (exit $ac_status); }; } && 4757 { ac_try='test -s conftest.$ac_objext' 4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4759 (eval $ac_try) 2>&5 4760 ac_status=$? 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4762 (exit $ac_status); }; }; then |
4763 ac_cv_type_long=yes |
4764else 4765 echo "$as_me: failed program was:" >&5 4766sed 's/^/| /' conftest.$ac_ext >&5 4767 |
4768ac_cv_type_long=no |
4769fi 4770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4771fi |
4772echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 4773echo "${ECHO_T}$ac_cv_type_long" >&6 |
4774 |
4775echo "$as_me:$LINENO: checking size of long" >&5 4776echo $ECHO_N "checking size of long... $ECHO_C" >&6 4777if test "${ac_cv_sizeof_long+set}" = set; then 4778 echo $ECHO_N "(cached) $ECHO_C" >&6 4779else 4780 if test "$ac_cv_type_long" = yes; then 4781 # The cast to unsigned long works around a bug in the HP C Compiler 4782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4784 # This bug is HP SR number 8606223364. 4785 if test "$cross_compiling" = yes; then 4786 # Depending upon the size, compute the lo and hi bounds. 4787cat >conftest.$ac_ext <<_ACEOF 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793$ac_includes_default 4794int 4795main () 4796{ 4797static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 4798test_array [0] = 0 |
4799 |
4800 ; 4801 return 0; 4802} |
4803_ACEOF |
4804rm -f conftest.$ac_objext 4805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4806 (eval $ac_compile) 2>conftest.er1 4807 ac_status=$? 4808 grep -v '^ *+' conftest.er1 >conftest.err 4809 rm -f conftest.er1 4810 cat conftest.err >&5 4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4812 (exit $ac_status); } && 4813 { ac_try='test -z "$ac_c_werror_flag" 4814 || test ! -s conftest.err' 4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4816 (eval $ac_try) 2>&5 4817 ac_status=$? 4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4819 (exit $ac_status); }; } && 4820 { ac_try='test -s conftest.$ac_objext' 4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4822 (eval $ac_try) 2>&5 4823 ac_status=$? 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); }; }; then 4826 ac_lo=0 ac_mid=0 4827 while :; do 4828 cat >conftest.$ac_ext <<_ACEOF 4829/* confdefs.h. */ 4830_ACEOF 4831cat confdefs.h >>conftest.$ac_ext 4832cat >>conftest.$ac_ext <<_ACEOF 4833/* end confdefs.h. */ 4834$ac_includes_default 4835int 4836main () 4837{ 4838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 4839test_array [0] = 0 |
4840 |
4841 ; 4842 return 0; 4843} 4844_ACEOF 4845rm -f conftest.$ac_objext 4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4847 (eval $ac_compile) 2>conftest.er1 4848 ac_status=$? 4849 grep -v '^ *+' conftest.er1 >conftest.err 4850 rm -f conftest.er1 4851 cat conftest.err >&5 4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4853 (exit $ac_status); } && 4854 { ac_try='test -z "$ac_c_werror_flag" 4855 || test ! -s conftest.err' 4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4857 (eval $ac_try) 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); }; } && 4861 { ac_try='test -s conftest.$ac_objext' 4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4863 (eval $ac_try) 2>&5 4864 ac_status=$? 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4866 (exit $ac_status); }; }; then 4867 ac_hi=$ac_mid; break 4868else 4869 echo "$as_me: failed program was:" >&5 4870sed 's/^/| /' conftest.$ac_ext >&5 |
4871 |
4872ac_lo=`expr $ac_mid + 1` 4873 if test $ac_lo -le $ac_mid; then 4874 ac_lo= ac_hi= 4875 break 4876 fi 4877 ac_mid=`expr 2 '*' $ac_mid + 1` |
4878fi |
4879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4880 done |
4881else |
4882 echo "$as_me: failed program was:" >&5 4883sed 's/^/| /' conftest.$ac_ext >&5 4884 4885cat >conftest.$ac_ext <<_ACEOF |
4886/* confdefs.h. */ 4887_ACEOF 4888cat confdefs.h >>conftest.$ac_ext 4889cat >>conftest.$ac_ext <<_ACEOF 4890/* end confdefs.h. */ |
4891$ac_includes_default 4892int 4893main () 4894{ 4895static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 4896test_array [0] = 0 |
4897 |
4898 ; 4899 return 0; 4900} 4901_ACEOF 4902rm -f conftest.$ac_objext 4903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4904 (eval $ac_compile) 2>conftest.er1 4905 ac_status=$? 4906 grep -v '^ *+' conftest.er1 >conftest.err 4907 rm -f conftest.er1 4908 cat conftest.err >&5 4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4910 (exit $ac_status); } && 4911 { ac_try='test -z "$ac_c_werror_flag" 4912 || test ! -s conftest.err' 4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4914 (eval $ac_try) 2>&5 4915 ac_status=$? 4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 (exit $ac_status); }; } && 4918 { ac_try='test -s conftest.$ac_objext' 4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4920 (eval $ac_try) 2>&5 4921 ac_status=$? 4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4923 (exit $ac_status); }; }; then 4924 ac_hi=-1 ac_mid=-1 4925 while :; do 4926 cat >conftest.$ac_ext <<_ACEOF 4927/* confdefs.h. */ 4928_ACEOF 4929cat confdefs.h >>conftest.$ac_ext 4930cat >>conftest.$ac_ext <<_ACEOF 4931/* end confdefs.h. */ 4932$ac_includes_default |
4933int 4934main () 4935{ |
4936static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 4937test_array [0] = 0 4938 |
4939 ; 4940 return 0; 4941} 4942_ACEOF 4943rm -f conftest.$ac_objext 4944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4945 (eval $ac_compile) 2>conftest.er1 4946 ac_status=$? --- 10 unchanged lines hidden (view full) --- 4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4958 (exit $ac_status); }; } && 4959 { ac_try='test -s conftest.$ac_objext' 4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4961 (eval $ac_try) 2>&5 4962 ac_status=$? 4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4964 (exit $ac_status); }; }; then |
4965 ac_lo=$ac_mid; break |
4966else 4967 echo "$as_me: failed program was:" >&5 4968sed 's/^/| /' conftest.$ac_ext >&5 4969 |
4970ac_hi=`expr '(' $ac_mid ')' - 1` 4971 if test $ac_mid -le $ac_hi; then 4972 ac_lo= ac_hi= 4973 break 4974 fi 4975 ac_mid=`expr 2 '*' $ac_mid` |
4976fi 4977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4978 done 4979else 4980 echo "$as_me: failed program was:" >&5 4981sed 's/^/| /' conftest.$ac_ext >&5 |
4982 |
4983ac_lo= ac_hi= |
4984fi |
4985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4986fi |
4987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4988# Binary search between lo and hi bounds. 4989while test "x$ac_lo" != "x$ac_hi"; do 4990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4991 cat >conftest.$ac_ext <<_ACEOF 4992/* confdefs.h. */ 4993_ACEOF 4994cat confdefs.h >>conftest.$ac_ext 4995cat >>conftest.$ac_ext <<_ACEOF 4996/* end confdefs.h. */ 4997$ac_includes_default 4998int 4999main () 5000{ 5001static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5002test_array [0] = 0 |
5003 |
5004 ; 5005 return 0; 5006} |
5007_ACEOF |
5008rm -f conftest.$ac_objext 5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5010 (eval $ac_compile) 2>conftest.er1 5011 ac_status=$? 5012 grep -v '^ *+' conftest.er1 >conftest.err 5013 rm -f conftest.er1 5014 cat conftest.err >&5 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); } && 5017 { ac_try='test -z "$ac_c_werror_flag" 5018 || test ! -s conftest.err' 5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5020 (eval $ac_try) 2>&5 5021 ac_status=$? 5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5023 (exit $ac_status); }; } && 5024 { ac_try='test -s conftest.$ac_objext' 5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5026 (eval $ac_try) 2>&5 5027 ac_status=$? 5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5029 (exit $ac_status); }; }; then 5030 ac_hi=$ac_mid 5031else 5032 echo "$as_me: failed program was:" >&5 5033sed 's/^/| /' conftest.$ac_ext >&5 |
5034 |
5035ac_lo=`expr '(' $ac_mid ')' + 1` |
5036fi |
5037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5038done 5039case $ac_lo in 5040?*) ac_cv_sizeof_long=$ac_lo;; 5041'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5042See \`config.log' for more details." >&5 5043echo "$as_me: error: cannot compute sizeof (long), 77 5044See \`config.log' for more details." >&2;} 5045 { (exit 1); exit 1; }; } ;; 5046esac 5047else 5048 if test "$cross_compiling" = yes; then 5049 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5050See \`config.log' for more details." >&5 5051echo "$as_me: error: cannot run test program while cross compiling 5052See \`config.log' for more details." >&2;} 5053 { (exit 1); exit 1; }; } 5054else 5055 cat >conftest.$ac_ext <<_ACEOF 5056/* confdefs.h. */ 5057_ACEOF 5058cat confdefs.h >>conftest.$ac_ext 5059cat >>conftest.$ac_ext <<_ACEOF 5060/* end confdefs.h. */ 5061$ac_includes_default 5062long longval () { return (long) (sizeof (long)); } 5063unsigned long ulongval () { return (long) (sizeof (long)); } 5064#include <stdio.h> 5065#include <stdlib.h> 5066int 5067main () 5068{ |
5069 |
5070 FILE *f = fopen ("conftest.val", "w"); 5071 if (! f) 5072 exit (1); 5073 if (((long) (sizeof (long))) < 0) 5074 { 5075 long i = longval (); 5076 if (i != ((long) (sizeof (long)))) 5077 exit (1); 5078 fprintf (f, "%ld\n", i); 5079 } 5080 else 5081 { 5082 unsigned long i = ulongval (); 5083 if (i != ((long) (sizeof (long)))) 5084 exit (1); 5085 fprintf (f, "%lu\n", i); 5086 } 5087 exit (ferror (f) || fclose (f) != 0); |
5088 |
5089 ; 5090 return 0; 5091} 5092_ACEOF 5093rm -f conftest$ac_exeext 5094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5095 (eval $ac_link) 2>&5 5096 ac_status=$? 5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5100 (eval $ac_try) 2>&5 5101 ac_status=$? 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5103 (exit $ac_status); }; }; then 5104 ac_cv_sizeof_long=`cat conftest.val` |
5105else |
5106 echo "$as_me: program exited with status $ac_status" >&5 5107echo "$as_me: failed program was:" >&5 5108sed 's/^/| /' conftest.$ac_ext >&5 |
5109 |
5110( exit $ac_status ) 5111{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5112See \`config.log' for more details." >&5 5113echo "$as_me: error: cannot compute sizeof (long), 77 5114See \`config.log' for more details." >&2;} 5115 { (exit 1); exit 1; }; } |
5116fi |
5117rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5118fi |
5119fi 5120rm -f conftest.val |
5121else |
5122 ac_cv_sizeof_long=0 |
5123fi |
5124fi |
5125echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5126echo "${ECHO_T}$ac_cv_sizeof_long" >&6 5127cat >>confdefs.h <<_ACEOF 5128#define SIZEOF_LONG $ac_cv_sizeof_long 5129_ACEOF 5130 5131 5132echo "$as_me:$LINENO: checking for long long" >&5 5133echo $ECHO_N "checking for long long... $ECHO_C" >&6 5134if test "${ac_cv_type_long_long+set}" = set; then |
5135 echo $ECHO_N "(cached) $ECHO_C" >&6 5136else |
5137 cat >conftest.$ac_ext <<_ACEOF 5138/* confdefs.h. */ 5139_ACEOF 5140cat confdefs.h >>conftest.$ac_ext 5141cat >>conftest.$ac_ext <<_ACEOF 5142/* end confdefs.h. */ 5143$ac_includes_default 5144int 5145main () 5146{ 5147if ((long long *) 0) 5148 return 0; 5149if (sizeof (long long)) 5150 return 0; 5151 ; 5152 return 0; 5153} 5154_ACEOF 5155rm -f conftest.$ac_objext 5156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5157 (eval $ac_compile) 2>conftest.er1 5158 ac_status=$? 5159 grep -v '^ *+' conftest.er1 >conftest.err 5160 rm -f conftest.er1 5161 cat conftest.err >&5 5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5163 (exit $ac_status); } && 5164 { ac_try='test -z "$ac_c_werror_flag" 5165 || test ! -s conftest.err' 5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5167 (eval $ac_try) 2>&5 5168 ac_status=$? 5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5170 (exit $ac_status); }; } && 5171 { ac_try='test -s conftest.$ac_objext' 5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5173 (eval $ac_try) 2>&5 5174 ac_status=$? 5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5176 (exit $ac_status); }; }; then 5177 ac_cv_type_long_long=yes |
5178else |
5179 echo "$as_me: failed program was:" >&5 5180sed 's/^/| /' conftest.$ac_ext >&5 |
5181 |
5182ac_cv_type_long_long=no |
5183fi |
5184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5185fi |
5186echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5187echo "${ECHO_T}$ac_cv_type_long_long" >&6 5188if test $ac_cv_type_long_long = yes; then |
5189 |
5190cat >>confdefs.h <<_ACEOF 5191#define HAVE_LONG_LONG 1 5192_ACEOF |
5193 |
5194echo "$as_me:$LINENO: checking for long long" >&5 5195echo $ECHO_N "checking for long long... $ECHO_C" >&6 5196if test "${ac_cv_type_long_long+set}" = set; then |
5197 echo $ECHO_N "(cached) $ECHO_C" >&6 5198else |
5199 cat >conftest.$ac_ext <<_ACEOF 5200/* confdefs.h. */ 5201_ACEOF 5202cat confdefs.h >>conftest.$ac_ext 5203cat >>conftest.$ac_ext <<_ACEOF 5204/* end confdefs.h. */ 5205$ac_includes_default 5206int 5207main () 5208{ 5209if ((long long *) 0) 5210 return 0; 5211if (sizeof (long long)) 5212 return 0; 5213 ; 5214 return 0; 5215} 5216_ACEOF 5217rm -f conftest.$ac_objext 5218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5219 (eval $ac_compile) 2>conftest.er1 5220 ac_status=$? 5221 grep -v '^ *+' conftest.er1 >conftest.err 5222 rm -f conftest.er1 5223 cat conftest.err >&5 5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5225 (exit $ac_status); } && 5226 { ac_try='test -z "$ac_c_werror_flag" 5227 || test ! -s conftest.err' 5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5229 (eval $ac_try) 2>&5 5230 ac_status=$? 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); }; } && 5233 { ac_try='test -s conftest.$ac_objext' 5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5235 (eval $ac_try) 2>&5 5236 ac_status=$? 5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5238 (exit $ac_status); }; }; then 5239 ac_cv_type_long_long=yes 5240else 5241 echo "$as_me: failed program was:" >&5 5242sed 's/^/| /' conftest.$ac_ext >&5 5243 5244ac_cv_type_long_long=no |
5245fi |
5246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5247fi |
5248echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5249echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
5250 |
5251echo "$as_me:$LINENO: checking size of long long" >&5 5252echo $ECHO_N "checking size of long long... $ECHO_C" >&6 5253if test "${ac_cv_sizeof_long_long+set}" = set; then 5254 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5255else |
5256 if test "$ac_cv_type_long_long" = yes; then 5257 # The cast to unsigned long works around a bug in the HP C Compiler 5258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5260 # This bug is HP SR number 8606223364. 5261 if test "$cross_compiling" = yes; then 5262 # Depending upon the size, compute the lo and hi bounds. 5263cat >conftest.$ac_ext <<_ACEOF 5264/* confdefs.h. */ 5265_ACEOF 5266cat confdefs.h >>conftest.$ac_ext 5267cat >>conftest.$ac_ext <<_ACEOF 5268/* end confdefs.h. */ 5269$ac_includes_default 5270int 5271main () 5272{ 5273static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 5274test_array [0] = 0 |
5275 |
5276 ; 5277 return 0; 5278} 5279_ACEOF 5280rm -f conftest.$ac_objext 5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5282 (eval $ac_compile) 2>conftest.er1 5283 ac_status=$? 5284 grep -v '^ *+' conftest.er1 >conftest.err 5285 rm -f conftest.er1 5286 cat conftest.err >&5 5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5288 (exit $ac_status); } && 5289 { ac_try='test -z "$ac_c_werror_flag" 5290 || test ! -s conftest.err' 5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5292 (eval $ac_try) 2>&5 5293 ac_status=$? 5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5295 (exit $ac_status); }; } && 5296 { ac_try='test -s conftest.$ac_objext' 5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5298 (eval $ac_try) 2>&5 5299 ac_status=$? 5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5301 (exit $ac_status); }; }; then 5302 ac_lo=0 ac_mid=0 5303 while :; do 5304 cat >conftest.$ac_ext <<_ACEOF 5305/* confdefs.h. */ 5306_ACEOF 5307cat confdefs.h >>conftest.$ac_ext 5308cat >>conftest.$ac_ext <<_ACEOF 5309/* end confdefs.h. */ 5310$ac_includes_default 5311int 5312main () 5313{ 5314static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5315test_array [0] = 0 |
5316 |
5317 ; 5318 return 0; 5319} 5320_ACEOF 5321rm -f conftest.$ac_objext 5322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5323 (eval $ac_compile) 2>conftest.er1 5324 ac_status=$? 5325 grep -v '^ *+' conftest.er1 >conftest.err 5326 rm -f conftest.er1 5327 cat conftest.err >&5 5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5329 (exit $ac_status); } && 5330 { ac_try='test -z "$ac_c_werror_flag" 5331 || test ! -s conftest.err' 5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5333 (eval $ac_try) 2>&5 5334 ac_status=$? 5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5336 (exit $ac_status); }; } && 5337 { ac_try='test -s conftest.$ac_objext' 5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5339 (eval $ac_try) 2>&5 5340 ac_status=$? 5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5342 (exit $ac_status); }; }; then 5343 ac_hi=$ac_mid; break 5344else 5345 echo "$as_me: failed program was:" >&5 5346sed 's/^/| /' conftest.$ac_ext >&5 |
5347 |
5348ac_lo=`expr $ac_mid + 1` 5349 if test $ac_lo -le $ac_mid; then 5350 ac_lo= ac_hi= 5351 break 5352 fi 5353 ac_mid=`expr 2 '*' $ac_mid + 1` |
5354fi |
5355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5356 done 5357else 5358 echo "$as_me: failed program was:" >&5 5359sed 's/^/| /' conftest.$ac_ext >&5 |
5360 |
5361cat >conftest.$ac_ext <<_ACEOF 5362/* confdefs.h. */ 5363_ACEOF 5364cat confdefs.h >>conftest.$ac_ext 5365cat >>conftest.$ac_ext <<_ACEOF 5366/* end confdefs.h. */ 5367$ac_includes_default 5368int 5369main () 5370{ 5371static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 5372test_array [0] = 0 |
5373 |
5374 ; 5375 return 0; 5376} 5377_ACEOF 5378rm -f conftest.$ac_objext 5379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5380 (eval $ac_compile) 2>conftest.er1 5381 ac_status=$? 5382 grep -v '^ *+' conftest.er1 >conftest.err 5383 rm -f conftest.er1 5384 cat conftest.err >&5 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); } && 5387 { ac_try='test -z "$ac_c_werror_flag" 5388 || test ! -s conftest.err' 5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5390 (eval $ac_try) 2>&5 5391 ac_status=$? 5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 (exit $ac_status); }; } && 5394 { ac_try='test -s conftest.$ac_objext' 5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5396 (eval $ac_try) 2>&5 5397 ac_status=$? 5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5399 (exit $ac_status); }; }; then 5400 ac_hi=-1 ac_mid=-1 5401 while :; do 5402 cat >conftest.$ac_ext <<_ACEOF 5403/* confdefs.h. */ 5404_ACEOF 5405cat confdefs.h >>conftest.$ac_ext 5406cat >>conftest.$ac_ext <<_ACEOF 5407/* end confdefs.h. */ 5408$ac_includes_default 5409int 5410main () 5411{ 5412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 5413test_array [0] = 0 |
5414 |
5415 ; 5416 return 0; 5417} 5418_ACEOF 5419rm -f conftest.$ac_objext 5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5421 (eval $ac_compile) 2>conftest.er1 5422 ac_status=$? 5423 grep -v '^ *+' conftest.er1 >conftest.err 5424 rm -f conftest.er1 5425 cat conftest.err >&5 5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5427 (exit $ac_status); } && 5428 { ac_try='test -z "$ac_c_werror_flag" 5429 || test ! -s conftest.err' 5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5431 (eval $ac_try) 2>&5 5432 ac_status=$? 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); }; } && 5435 { ac_try='test -s conftest.$ac_objext' 5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5437 (eval $ac_try) 2>&5 5438 ac_status=$? 5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5440 (exit $ac_status); }; }; then 5441 ac_lo=$ac_mid; break 5442else 5443 echo "$as_me: failed program was:" >&5 5444sed 's/^/| /' conftest.$ac_ext >&5 |
5445 |
5446ac_hi=`expr '(' $ac_mid ')' - 1` 5447 if test $ac_mid -le $ac_hi; then 5448 ac_lo= ac_hi= 5449 break 5450 fi 5451 ac_mid=`expr 2 '*' $ac_mid` 5452fi 5453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5454 done |
5455else |
5456 echo "$as_me: failed program was:" >&5 5457sed 's/^/| /' conftest.$ac_ext >&5 5458 5459ac_lo= ac_hi= |
5460fi |
5461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5462fi 5463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5464# Binary search between lo and hi bounds. 5465while test "x$ac_lo" != "x$ac_hi"; do 5466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5467 cat >conftest.$ac_ext <<_ACEOF 5468/* confdefs.h. */ 5469_ACEOF 5470cat confdefs.h >>conftest.$ac_ext 5471cat >>conftest.$ac_ext <<_ACEOF 5472/* end confdefs.h. */ 5473$ac_includes_default 5474int 5475main () 5476{ 5477static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5478test_array [0] = 0 |
5479 |
5480 ; 5481 return 0; 5482} 5483_ACEOF 5484rm -f conftest.$ac_objext 5485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5486 (eval $ac_compile) 2>conftest.er1 5487 ac_status=$? 5488 grep -v '^ *+' conftest.er1 >conftest.err 5489 rm -f conftest.er1 5490 cat conftest.err >&5 5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 (exit $ac_status); } && 5493 { ac_try='test -z "$ac_c_werror_flag" 5494 || test ! -s conftest.err' 5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5496 (eval $ac_try) 2>&5 5497 ac_status=$? 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); }; } && 5500 { ac_try='test -s conftest.$ac_objext' 5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5502 (eval $ac_try) 2>&5 5503 ac_status=$? 5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 (exit $ac_status); }; }; then 5506 ac_hi=$ac_mid 5507else 5508 echo "$as_me: failed program was:" >&5 5509sed 's/^/| /' conftest.$ac_ext >&5 |
5510 |
5511ac_lo=`expr '(' $ac_mid ')' + 1` 5512fi 5513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5514done 5515case $ac_lo in 5516?*) ac_cv_sizeof_long_long=$ac_lo;; 5517'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 5518See \`config.log' for more details." >&5 5519echo "$as_me: error: cannot compute sizeof (long long), 77 5520See \`config.log' for more details." >&2;} |
5521 { (exit 1); exit 1; }; } ;; |
5522esac |
5523else |
5524 if test "$cross_compiling" = yes; then 5525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5526See \`config.log' for more details." >&5 5527echo "$as_me: error: cannot run test program while cross compiling 5528See \`config.log' for more details." >&2;} 5529 { (exit 1); exit 1; }; } 5530else 5531 cat >conftest.$ac_ext <<_ACEOF 5532/* confdefs.h. */ |
5533_ACEOF |
5534cat confdefs.h >>conftest.$ac_ext 5535cat >>conftest.$ac_ext <<_ACEOF 5536/* end confdefs.h. */ 5537$ac_includes_default 5538long longval () { return (long) (sizeof (long long)); } 5539unsigned long ulongval () { return (long) (sizeof (long long)); } 5540#include <stdio.h> 5541#include <stdlib.h> 5542int 5543main () 5544{ |
5545 |
5546 FILE *f = fopen ("conftest.val", "w"); 5547 if (! f) 5548 exit (1); 5549 if (((long) (sizeof (long long))) < 0) 5550 { 5551 long i = longval (); 5552 if (i != ((long) (sizeof (long long)))) 5553 exit (1); 5554 fprintf (f, "%ld\n", i); 5555 } 5556 else 5557 { 5558 unsigned long i = ulongval (); 5559 if (i != ((long) (sizeof (long long)))) 5560 exit (1); 5561 fprintf (f, "%lu\n", i); 5562 } 5563 exit (ferror (f) || fclose (f) != 0); |
5564 |
5565 ; 5566 return 0; 5567} |
5568_ACEOF |
5569rm -f conftest$ac_exeext 5570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5571 (eval $ac_link) 2>&5 5572 ac_status=$? 5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5576 (eval $ac_try) 2>&5 5577 ac_status=$? 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); }; }; then 5580 ac_cv_sizeof_long_long=`cat conftest.val` 5581else 5582 echo "$as_me: program exited with status $ac_status" >&5 5583echo "$as_me: failed program was:" >&5 5584sed 's/^/| /' conftest.$ac_ext >&5 |
5585 |
5586( exit $ac_status ) 5587{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 5588See \`config.log' for more details." >&5 5589echo "$as_me: error: cannot compute sizeof (long long), 77 5590See \`config.log' for more details." >&2;} 5591 { (exit 1); exit 1; }; } |
5592fi |
5593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5594fi |
5595fi |
5596rm -f conftest.val 5597else 5598 ac_cv_sizeof_long_long=0 5599fi 5600fi 5601echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 5602echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 5603cat >>confdefs.h <<_ACEOF 5604#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
5605_ACEOF 5606 |
5607 |
5608fi |
5609 |
5610echo "$as_me:$LINENO: checking for __int64" >&5 5611echo $ECHO_N "checking for __int64... $ECHO_C" >&6 5612if test "${ac_cv_type___int64+set}" = set; then 5613 echo $ECHO_N "(cached) $ECHO_C" >&6 5614else 5615 cat >conftest.$ac_ext <<_ACEOF 5616/* confdefs.h. */ |
5617_ACEOF |
5618cat confdefs.h >>conftest.$ac_ext 5619cat >>conftest.$ac_ext <<_ACEOF 5620/* end confdefs.h. */ 5621$ac_includes_default 5622int 5623main () 5624{ 5625if ((__int64 *) 0) 5626 return 0; 5627if (sizeof (__int64)) 5628 return 0; 5629 ; 5630 return 0; 5631} 5632_ACEOF 5633rm -f conftest.$ac_objext 5634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5635 (eval $ac_compile) 2>conftest.er1 5636 ac_status=$? 5637 grep -v '^ *+' conftest.er1 >conftest.err 5638 rm -f conftest.er1 5639 cat conftest.err >&5 5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5641 (exit $ac_status); } && 5642 { ac_try='test -z "$ac_c_werror_flag" 5643 || test ! -s conftest.err' 5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5645 (eval $ac_try) 2>&5 5646 ac_status=$? 5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 (exit $ac_status); }; } && 5649 { ac_try='test -s conftest.$ac_objext' 5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5651 (eval $ac_try) 2>&5 5652 ac_status=$? 5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5654 (exit $ac_status); }; }; then 5655 ac_cv_type___int64=yes 5656else 5657 echo "$as_me: failed program was:" >&5 5658sed 's/^/| /' conftest.$ac_ext >&5 |
5659 |
5660ac_cv_type___int64=no |
5661fi |
5662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5663fi 5664echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 5665echo "${ECHO_T}$ac_cv_type___int64" >&6 5666if test $ac_cv_type___int64 = yes; then |
5667 |
5668cat >>confdefs.h <<_ACEOF 5669#define HAVE___INT64 1 |
5670_ACEOF 5671 |
5672echo "$as_me:$LINENO: checking for __int64" >&5 5673echo $ECHO_N "checking for __int64... $ECHO_C" >&6 5674if test "${ac_cv_type___int64+set}" = set; then |
5675 echo $ECHO_N "(cached) $ECHO_C" >&6 5676else |
5677 cat >conftest.$ac_ext <<_ACEOF 5678/* confdefs.h. */ 5679_ACEOF 5680cat confdefs.h >>conftest.$ac_ext 5681cat >>conftest.$ac_ext <<_ACEOF 5682/* end confdefs.h. */ 5683$ac_includes_default 5684int 5685main () 5686{ 5687if ((__int64 *) 0) 5688 return 0; 5689if (sizeof (__int64)) 5690 return 0; 5691 ; 5692 return 0; 5693} 5694_ACEOF 5695rm -f conftest.$ac_objext 5696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5697 (eval $ac_compile) 2>conftest.er1 5698 ac_status=$? 5699 grep -v '^ *+' conftest.er1 >conftest.err 5700 rm -f conftest.er1 5701 cat conftest.err >&5 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); } && 5704 { ac_try='test -z "$ac_c_werror_flag" 5705 || test ! -s conftest.err' 5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5707 (eval $ac_try) 2>&5 5708 ac_status=$? 5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5710 (exit $ac_status); }; } && 5711 { ac_try='test -s conftest.$ac_objext' 5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5713 (eval $ac_try) 2>&5 5714 ac_status=$? 5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5716 (exit $ac_status); }; }; then 5717 ac_cv_type___int64=yes 5718else 5719 echo "$as_me: failed program was:" >&5 5720sed 's/^/| /' conftest.$ac_ext >&5 5721 5722ac_cv_type___int64=no |
5723fi |
5724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5725fi 5726echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 5727echo "${ECHO_T}$ac_cv_type___int64" >&6 |
5728 |
5729echo "$as_me:$LINENO: checking size of __int64" >&5 5730echo $ECHO_N "checking size of __int64... $ECHO_C" >&6 5731if test "${ac_cv_sizeof___int64+set}" = set; then |
5732 echo $ECHO_N "(cached) $ECHO_C" >&6 5733else |
5734 if test "$ac_cv_type___int64" = yes; then 5735 # The cast to unsigned long works around a bug in the HP C Compiler 5736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5738 # This bug is HP SR number 8606223364. 5739 if test "$cross_compiling" = yes; then 5740 # Depending upon the size, compute the lo and hi bounds. 5741cat >conftest.$ac_ext <<_ACEOF |
5742/* confdefs.h. */ 5743_ACEOF 5744cat confdefs.h >>conftest.$ac_ext 5745cat >>conftest.$ac_ext <<_ACEOF 5746/* end confdefs.h. */ |
5747$ac_includes_default 5748int 5749main () 5750{ 5751static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)]; 5752test_array [0] = 0 |
5753 |
5754 ; 5755 return 0; 5756} 5757_ACEOF 5758rm -f conftest.$ac_objext 5759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5760 (eval $ac_compile) 2>conftest.er1 5761 ac_status=$? 5762 grep -v '^ *+' conftest.er1 >conftest.err 5763 rm -f conftest.er1 5764 cat conftest.err >&5 5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5766 (exit $ac_status); } && 5767 { ac_try='test -z "$ac_c_werror_flag" 5768 || test ! -s conftest.err' 5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5770 (eval $ac_try) 2>&5 5771 ac_status=$? 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); }; } && 5774 { ac_try='test -s conftest.$ac_objext' 5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5776 (eval $ac_try) 2>&5 5777 ac_status=$? 5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5779 (exit $ac_status); }; }; then 5780 ac_lo=0 ac_mid=0 5781 while :; do 5782 cat >conftest.$ac_ext <<_ACEOF 5783/* confdefs.h. */ 5784_ACEOF 5785cat confdefs.h >>conftest.$ac_ext 5786cat >>conftest.$ac_ext <<_ACEOF 5787/* end confdefs.h. */ 5788$ac_includes_default |
5789int 5790main () 5791{ |
5792static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; 5793test_array [0] = 0 |
5794 5795 ; 5796 return 0; 5797} 5798_ACEOF 5799rm -f conftest.$ac_objext 5800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5801 (eval $ac_compile) 2>conftest.er1 --- 11 unchanged lines hidden (view full) --- 5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5814 (exit $ac_status); }; } && 5815 { ac_try='test -s conftest.$ac_objext' 5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5817 (eval $ac_try) 2>&5 5818 ac_status=$? 5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5820 (exit $ac_status); }; }; then |
5821 ac_hi=$ac_mid; break |
5822else 5823 echo "$as_me: failed program was:" >&5 5824sed 's/^/| /' conftest.$ac_ext >&5 5825 |
5826ac_lo=`expr $ac_mid + 1` 5827 if test $ac_lo -le $ac_mid; then 5828 ac_lo= ac_hi= 5829 break 5830 fi 5831 ac_mid=`expr 2 '*' $ac_mid + 1` |
5832fi 5833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5834 done 5835else 5836 echo "$as_me: failed program was:" >&5 5837sed 's/^/| /' conftest.$ac_ext >&5 |
5838 |
5839cat >conftest.$ac_ext <<_ACEOF |
5840/* confdefs.h. */ 5841_ACEOF 5842cat confdefs.h >>conftest.$ac_ext 5843cat >>conftest.$ac_ext <<_ACEOF 5844/* end confdefs.h. */ |
5845$ac_includes_default 5846int 5847main () 5848{ 5849static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)]; 5850test_array [0] = 0 |
5851 |
5852 ; 5853 return 0; 5854} |
5855_ACEOF |
5856rm -f conftest.$ac_objext 5857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5858 (eval $ac_compile) 2>conftest.er1 5859 ac_status=$? 5860 grep -v '^ *+' conftest.er1 >conftest.err 5861 rm -f conftest.er1 5862 cat conftest.err >&5 5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5864 (exit $ac_status); } && 5865 { ac_try='test -z "$ac_c_werror_flag" 5866 || test ! -s conftest.err' 5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5868 (eval $ac_try) 2>&5 5869 ac_status=$? 5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5871 (exit $ac_status); }; } && 5872 { ac_try='test -s conftest.$ac_objext' 5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5874 (eval $ac_try) 2>&5 5875 ac_status=$? 5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5877 (exit $ac_status); }; }; then 5878 ac_hi=-1 ac_mid=-1 5879 while :; do 5880 cat >conftest.$ac_ext <<_ACEOF 5881/* confdefs.h. */ 5882_ACEOF 5883cat confdefs.h >>conftest.$ac_ext 5884cat >>conftest.$ac_ext <<_ACEOF 5885/* end confdefs.h. */ 5886$ac_includes_default 5887int 5888main () 5889{ 5890static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)]; 5891test_array [0] = 0 5892 5893 ; 5894 return 0; 5895} 5896_ACEOF 5897rm -f conftest.$ac_objext 5898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5899 (eval $ac_compile) 2>conftest.er1 5900 ac_status=$? 5901 grep -v '^ *+' conftest.er1 >conftest.err 5902 rm -f conftest.er1 5903 cat conftest.err >&5 5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5905 (exit $ac_status); } && 5906 { ac_try='test -z "$ac_c_werror_flag" 5907 || test ! -s conftest.err' 5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5909 (eval $ac_try) 2>&5 5910 ac_status=$? 5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5912 (exit $ac_status); }; } && 5913 { ac_try='test -s conftest.$ac_objext' 5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5915 (eval $ac_try) 2>&5 5916 ac_status=$? 5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5918 (exit $ac_status); }; }; then 5919 ac_lo=$ac_mid; break |
5920else |
5921 echo "$as_me: failed program was:" >&5 5922sed 's/^/| /' conftest.$ac_ext >&5 |
5923 |
5924ac_hi=`expr '(' $ac_mid ')' - 1` 5925 if test $ac_mid -le $ac_hi; then 5926 ac_lo= ac_hi= 5927 break 5928 fi 5929 ac_mid=`expr 2 '*' $ac_mid` |
5930fi |
5931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5932 done 5933else 5934 echo "$as_me: failed program was:" >&5 5935sed 's/^/| /' conftest.$ac_ext >&5 |
5936 |
5937ac_lo= ac_hi= 5938fi 5939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5940fi 5941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5942# Binary search between lo and hi bounds. 5943while test "x$ac_lo" != "x$ac_hi"; do 5944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
5945 cat >conftest.$ac_ext <<_ACEOF 5946/* confdefs.h. */ 5947_ACEOF 5948cat confdefs.h >>conftest.$ac_ext 5949cat >>conftest.$ac_ext <<_ACEOF 5950/* end confdefs.h. */ |
5951$ac_includes_default 5952int 5953main () 5954{ 5955static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; 5956test_array [0] = 0 |
5957 |
5958 ; 5959 return 0; 5960} |
5961_ACEOF |
5962rm -f conftest.$ac_objext 5963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5964 (eval $ac_compile) 2>conftest.er1 5965 ac_status=$? 5966 grep -v '^ *+' conftest.er1 >conftest.err 5967 rm -f conftest.er1 5968 cat conftest.err >&5 5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5970 (exit $ac_status); } && 5971 { ac_try='test -z "$ac_c_werror_flag" 5972 || test ! -s conftest.err' 5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5974 (eval $ac_try) 2>&5 5975 ac_status=$? 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5977 (exit $ac_status); }; } && 5978 { ac_try='test -s conftest.$ac_objext' 5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5980 (eval $ac_try) 2>&5 5981 ac_status=$? 5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); }; }; then 5984 ac_hi=$ac_mid |
5985else |
5986 echo "$as_me: failed program was:" >&5 5987sed 's/^/| /' conftest.$ac_ext >&5 |
5988 |
5989ac_lo=`expr '(' $ac_mid ')' + 1` |
5990fi |
5991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5992done 5993case $ac_lo in 5994?*) ac_cv_sizeof___int64=$ac_lo;; 5995'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 5996See \`config.log' for more details." >&5 5997echo "$as_me: error: cannot compute sizeof (__int64), 77 5998See \`config.log' for more details." >&2;} 5999 { (exit 1); exit 1; }; } ;; 6000esac 6001else |
6002 if test "$cross_compiling" = yes; then |
6003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6004See \`config.log' for more details." >&5 6005echo "$as_me: error: cannot run test program while cross compiling 6006See \`config.log' for more details." >&2;} 6007 { (exit 1); exit 1; }; } |
6008else 6009 cat >conftest.$ac_ext <<_ACEOF 6010/* confdefs.h. */ 6011_ACEOF 6012cat confdefs.h >>conftest.$ac_ext 6013cat >>conftest.$ac_ext <<_ACEOF 6014/* end confdefs.h. */ |
6015$ac_includes_default 6016long longval () { return (long) (sizeof (__int64)); } 6017unsigned long ulongval () { return (long) (sizeof (__int64)); } 6018#include <stdio.h> 6019#include <stdlib.h> |
6020int 6021main () 6022{ |
6023 6024 FILE *f = fopen ("conftest.val", "w"); 6025 if (! f) 6026 exit (1); 6027 if (((long) (sizeof (__int64))) < 0) 6028 { 6029 long i = longval (); 6030 if (i != ((long) (sizeof (__int64)))) 6031 exit (1); 6032 fprintf (f, "%ld\n", i); 6033 } 6034 else 6035 { 6036 unsigned long i = ulongval (); 6037 if (i != ((long) (sizeof (__int64)))) 6038 exit (1); 6039 fprintf (f, "%lu\n", i); 6040 } 6041 exit (ferror (f) || fclose (f) != 0); 6042 6043 ; 6044 return 0; |
6045} 6046_ACEOF 6047rm -f conftest$ac_exeext 6048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6049 (eval $ac_link) 2>&5 6050 ac_status=$? 6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6054 (eval $ac_try) 2>&5 6055 ac_status=$? 6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6057 (exit $ac_status); }; }; then |
6058 ac_cv_sizeof___int64=`cat conftest.val` |
6059else 6060 echo "$as_me: program exited with status $ac_status" >&5 6061echo "$as_me: failed program was:" >&5 6062sed 's/^/| /' conftest.$ac_ext >&5 6063 6064( exit $ac_status ) |
6065{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 6066See \`config.log' for more details." >&5 6067echo "$as_me: error: cannot compute sizeof (__int64), 77 6068See \`config.log' for more details." >&2;} 6069 { (exit 1); exit 1; }; } |
6070fi 6071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6072fi 6073fi |
6074rm -f conftest.val 6075else 6076 ac_cv_sizeof___int64=0 |
6077fi |
6078fi 6079echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5 6080echo "${ECHO_T}$ac_cv_sizeof___int64" >&6 6081cat >>confdefs.h <<_ACEOF 6082#define SIZEOF___INT64 $ac_cv_sizeof___int64 6083_ACEOF |
6084 |
6085 6086fi 6087 6088 6089# --------------------- 6090# Warnings and checking 6091# --------------------- 6092 6093# Check $CC warning features (if it's GCC). 6094# We want to use -pedantic, but we don't want warnings about 6095# * 'long long' 6096# * variadic macros 6097# * overlong strings 6098# So, we only use -pedantic if we can disable those warnings. 6099 6100echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5 6101echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6 6102if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then 6103 echo $ECHO_N "(cached) $ECHO_C" >&6 6104else 6105 save_CFLAGS="$CFLAGS" 6106 CFLAGS="-Wno-long-long" 6107 cat >conftest.$ac_ext <<_ACEOF 6108/* confdefs.h. */ |
6109_ACEOF |
6110cat confdefs.h >>conftest.$ac_ext 6111cat >>conftest.$ac_ext <<_ACEOF 6112/* end confdefs.h. */ |
6113 |
6114_ACEOF 6115rm -f conftest.$ac_objext 6116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6117 (eval $ac_compile) 2>conftest.er1 6118 ac_status=$? 6119 grep -v '^ *+' conftest.er1 >conftest.err 6120 rm -f conftest.er1 6121 cat conftest.err >&5 6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6123 (exit $ac_status); } && 6124 { ac_try='test -z "$ac_c_werror_flag" 6125 || test ! -s conftest.err' 6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6127 (eval $ac_try) 2>&5 6128 ac_status=$? 6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6130 (exit $ac_status); }; } && 6131 { ac_try='test -s conftest.$ac_objext' 6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6133 (eval $ac_try) 2>&5 6134 ac_status=$? 6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136 (exit $ac_status); }; }; then 6137 ac_cv_prog_cc_w_no_long_long=yes 6138else 6139 echo "$as_me: failed program was:" >&5 6140sed 's/^/| /' conftest.$ac_ext >&5 6141 6142ac_cv_prog_cc_w_no_long_long=no |
6143fi |
6144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6145 CFLAGS="$save_CFLAGS" |
6146 |
6147fi 6148echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5 6149echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6 |
6150 |
6151echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5 6152echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6 6153if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then 6154 echo $ECHO_N "(cached) $ECHO_C" >&6 6155else 6156 save_CFLAGS="$CFLAGS" 6157 CFLAGS="-Wno-variadic-macros" 6158 cat >conftest.$ac_ext <<_ACEOF 6159/* confdefs.h. */ 6160_ACEOF 6161cat confdefs.h >>conftest.$ac_ext 6162cat >>conftest.$ac_ext <<_ACEOF 6163/* end confdefs.h. */ |
6164 |
6165_ACEOF 6166rm -f conftest.$ac_objext 6167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6168 (eval $ac_compile) 2>conftest.er1 6169 ac_status=$? 6170 grep -v '^ *+' conftest.er1 >conftest.err 6171 rm -f conftest.er1 6172 cat conftest.err >&5 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); } && 6175 { ac_try='test -z "$ac_c_werror_flag" 6176 || test ! -s conftest.err' 6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6178 (eval $ac_try) 2>&5 6179 ac_status=$? 6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6181 (exit $ac_status); }; } && 6182 { ac_try='test -s conftest.$ac_objext' 6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6184 (eval $ac_try) 2>&5 6185 ac_status=$? 6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6187 (exit $ac_status); }; }; then 6188 ac_cv_prog_cc_w_no_variadic_macros=yes 6189else 6190 echo "$as_me: failed program was:" >&5 6191sed 's/^/| /' conftest.$ac_ext >&5 |
6192 |
6193ac_cv_prog_cc_w_no_variadic_macros=no 6194fi 6195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6196 CFLAGS="$save_CFLAGS" |
6197 |
6198fi 6199echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5 6200echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6 |
6201 |
6202echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5 6203echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6 6204if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then 6205 echo $ECHO_N "(cached) $ECHO_C" >&6 6206else 6207 save_CFLAGS="$CFLAGS" 6208 CFLAGS="-Wno-overlength-strings" 6209 cat >conftest.$ac_ext <<_ACEOF 6210/* confdefs.h. */ 6211_ACEOF 6212cat confdefs.h >>conftest.$ac_ext 6213cat >>conftest.$ac_ext <<_ACEOF 6214/* end confdefs.h. */ |
6215 |
6216_ACEOF 6217rm -f conftest.$ac_objext 6218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6219 (eval $ac_compile) 2>conftest.er1 6220 ac_status=$? 6221 grep -v '^ *+' conftest.er1 >conftest.err 6222 rm -f conftest.er1 6223 cat conftest.err >&5 6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6225 (exit $ac_status); } && 6226 { ac_try='test -z "$ac_c_werror_flag" 6227 || test ! -s conftest.err' 6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6229 (eval $ac_try) 2>&5 6230 ac_status=$? 6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6232 (exit $ac_status); }; } && 6233 { ac_try='test -s conftest.$ac_objext' 6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6235 (eval $ac_try) 2>&5 6236 ac_status=$? 6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6238 (exit $ac_status); }; }; then 6239 ac_cv_prog_cc_w_no_overlength_strings=yes 6240else 6241 echo "$as_me: failed program was:" >&5 6242sed 's/^/| /' conftest.$ac_ext >&5 |
6243 |
6244ac_cv_prog_cc_w_no_overlength_strings=no 6245fi 6246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6247 CFLAGS="$save_CFLAGS" |
6248 |
6249fi 6250echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5 6251echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6 |
6252 |
6253strict1_warn= 6254if test $ac_cv_prog_cc_w_no_long_long = yes \ 6255 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \ 6256 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then 6257 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" 6258fi 6259 6260# Add -Wold-style-definition if it's accepted 6261echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5 6262echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6 6263if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then |
6264 echo $ECHO_N "(cached) $ECHO_C" >&6 6265else |
6266 save_CFLAGS="$CFLAGS" 6267 CFLAGS="-Wold-style-definition" |
6268 cat >conftest.$ac_ext <<_ACEOF 6269/* confdefs.h. */ 6270_ACEOF 6271cat confdefs.h >>conftest.$ac_ext 6272cat >>conftest.$ac_ext <<_ACEOF 6273/* end confdefs.h. */ |
6274 |
6275_ACEOF 6276rm -f conftest.$ac_objext 6277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6278 (eval $ac_compile) 2>conftest.er1 6279 ac_status=$? 6280 grep -v '^ *+' conftest.er1 >conftest.err 6281 rm -f conftest.er1 6282 cat conftest.err >&5 --- 7 unchanged lines hidden (view full) --- 6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6291 (exit $ac_status); }; } && 6292 { ac_try='test -s conftest.$ac_objext' 6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6294 (eval $ac_try) 2>&5 6295 ac_status=$? 6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6297 (exit $ac_status); }; }; then |
6298 ac_cv_prog_cc_w_old_style_definition=yes |
6299else 6300 echo "$as_me: failed program was:" >&5 6301sed 's/^/| /' conftest.$ac_ext >&5 6302 |
6303ac_cv_prog_cc_w_old_style_definition=no |
6304fi 6305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6306 CFLAGS="$save_CFLAGS" 6307 |
6308fi |
6309echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5 6310echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6 6311if test $ac_cv_prog_cc_w_old_style_definition = yes ; then 6312 strict1_warn="${strict1_warn} -Wold-style-definition" 6313fi 6314 6315# Add -Wmissing-format-attribute if it's accepted 6316echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5 6317echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6 6318if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then 6319 echo $ECHO_N "(cached) $ECHO_C" >&6 6320else 6321 save_CFLAGS="$CFLAGS" 6322 CFLAGS="-Wmissing-format-attribute" 6323 cat >conftest.$ac_ext <<_ACEOF 6324/* confdefs.h. */ |
6325_ACEOF |
6326cat confdefs.h >>conftest.$ac_ext 6327cat >>conftest.$ac_ext <<_ACEOF 6328/* end confdefs.h. */ |
6329 |
6330_ACEOF 6331rm -f conftest.$ac_objext 6332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6333 (eval $ac_compile) 2>conftest.er1 6334 ac_status=$? 6335 grep -v '^ *+' conftest.er1 >conftest.err 6336 rm -f conftest.er1 6337 cat conftest.err >&5 6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6339 (exit $ac_status); } && 6340 { ac_try='test -z "$ac_c_werror_flag" 6341 || test ! -s conftest.err' 6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6343 (eval $ac_try) 2>&5 6344 ac_status=$? 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); }; } && 6347 { ac_try='test -s conftest.$ac_objext' 6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6349 (eval $ac_try) 2>&5 6350 ac_status=$? 6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6352 (exit $ac_status); }; }; then 6353 ac_cv_prog_cc_w_missing_format_attribute=yes 6354else 6355 echo "$as_me: failed program was:" >&5 6356sed 's/^/| /' conftest.$ac_ext >&5 6357 6358ac_cv_prog_cc_w_missing_format_attribute=no |
6359fi |
6360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6361 CFLAGS="$save_CFLAGS" |
6362 |
6363fi 6364echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5 6365echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6 6366if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then 6367 strict1_warn="${strict1_warn} -Wmissing-format-attribute" 6368fi 6369 6370# Enable -Werror, period. 6371# Check whether --enable-werror_always or --disable-werror_always was given. 6372if test "${enable_werror_always+set}" = set; then 6373 enableval="$enable_werror_always" 6374 6375else 6376 enable_werror_always=no 6377fi; 6378if test x${enable_werror_always} = xyes ; then 6379 strict1_warn="${strict1_warn} -Werror" 6380 WERROR=-Werror 6381fi 6382 6383 6384 6385# Get C++ compatibility warning flag, if supported. 6386echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5 6387echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6 6388if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then 6389 echo $ECHO_N "(cached) $ECHO_C" >&6 6390else 6391 save_CFLAGS="$CFLAGS" 6392 CFLAGS="-Wc++-compat" 6393 cat >conftest.$ac_ext <<_ACEOF 6394/* confdefs.h. */ 6395_ACEOF 6396cat confdefs.h >>conftest.$ac_ext 6397cat >>conftest.$ac_ext <<_ACEOF 6398/* end confdefs.h. */ 6399 6400_ACEOF 6401rm -f conftest.$ac_objext 6402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6403 (eval $ac_compile) 2>conftest.er1 6404 ac_status=$? 6405 grep -v '^ *+' conftest.er1 >conftest.err 6406 rm -f conftest.er1 6407 cat conftest.err >&5 6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6409 (exit $ac_status); } && 6410 { ac_try='test -z "$ac_c_werror_flag" 6411 || test ! -s conftest.err' 6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6413 (eval $ac_try) 2>&5 6414 ac_status=$? 6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6416 (exit $ac_status); }; } && 6417 { ac_try='test -s conftest.$ac_objext' 6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6419 (eval $ac_try) 2>&5 6420 ac_status=$? 6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); }; }; then 6423 ac_cv_prog_cc_w_cxx_compat=yes 6424else 6425 echo "$as_me: failed program was:" >&5 6426sed 's/^/| /' conftest.$ac_ext >&5 6427 6428ac_cv_prog_cc_w_cxx_compat=no 6429fi 6430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6431 CFLAGS="$save_CFLAGS" 6432 6433fi 6434echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5 6435echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6 6436if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then 6437 cxx_compat_warn="-Wc++-compat" 6438fi 6439 6440 6441 6442# If the native compiler is GCC, we can enable warnings even in stage1. 6443# That's useful for people building cross-compilers, or just running a 6444# quick `make'. 6445warn_cflags= 6446if test "x$GCC" = "xyes"; then 6447 warn_cflags='$(GCC_WARN_CFLAGS)' 6448fi 6449 6450 6451# Enable -Werror in bootstrap stage2 and later. 6452is_release= 6453if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then 6454 is_release=yes 6455fi 6456# Check whether --enable-werror or --disable-werror was given. 6457if test "${enable_werror+set}" = set; then 6458 enableval="$enable_werror" 6459 6460else 6461 if test x$is_release = x ; then 6462 # Default to "yes" on development branches. 6463 enable_werror=yes 6464else 6465 # Default to "no" on release branches. 6466 enable_werror=no 6467fi 6468fi; 6469if test x$enable_werror = xyes ; then 6470 WERROR=-Werror 6471fi 6472 6473 6474# Enable expensive internal checks 6475# Check whether --enable-checking or --disable-checking was given. 6476if test "${enable_checking+set}" = set; then 6477 enableval="$enable_checking" 6478 ac_checking_flags="${enableval}" 6479else 6480 6481# Determine the default checks. 6482if test x$is_release = x ; then 6483 ac_checking_flags=yes 6484else 6485 ac_checking_flags=release 6486fi 6487fi; 6488ac_assert_checking=1 6489ac_checking= 6490ac_fold_checking= 6491ac_gc_checking= 6492ac_gc_always_collect= 6493ac_rtl_checking= 6494ac_rtlflag_checking= 6495ac_runtime_checking=1 6496ac_tree_checking= 6497ac_valgrind_checking= 6498IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 6499for check in $ac_checking_flags 6500do 6501 case $check in 6502 # these set all the flags to specific states 6503 yes) ac_assert_checking=1 ; ac_checking=1 ; 6504 ac_fold_checking= ; ac_gc_checking=1 ; 6505 ac_gc_always_collect= ; ac_rtl_checking= ; 6506 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 6507 ac_tree_checking=1 ; ac_valgrind_checking= ;; 6508 no|none) ac_assert_checking= ; ac_checking= ; 6509 ac_fold_checking= ; ac_gc_checking= ; 6510 ac_gc_always_collect= ; ac_rtl_checking= ; 6511 ac_rtlflag_checking= ; ac_runtime_checking= ; 6512 ac_tree_checking= ; ac_valgrind_checking= ;; 6513 all) ac_assert_checking=1 ; ac_checking=1 ; 6514 ac_fold_checking=1 ; ac_gc_checking=1 ; 6515 ac_gc_always_collect=1 ; ac_rtl_checking=1 ; 6516 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 6517 ac_tree_checking=1 ; ac_valgrind_checking= ;; 6518 release) ac_assert_checking=1 ; ac_checking= ; 6519 ac_fold_checking= ; ac_gc_checking= ; 6520 ac_gc_always_collect= ; ac_rtl_checking= ; 6521 ac_rtlflag_checking= ; ac_runtime_checking=1 ; 6522 ac_tree_checking= ; ac_valgrind_checking= ;; 6523 # these enable particular checks 6524 assert) ac_assert_checking=1 ;; 6525 fold) ac_fold_checking=1 ;; 6526 gc) ac_gc_checking=1 ;; 6527 gcac) ac_gc_always_collect=1 ;; 6528 misc) ac_checking=1 ;; 6529 rtl) ac_rtl_checking=1 ;; 6530 rtlflag) ac_rtlflag_checking=1 ;; 6531 runtime) ac_runtime_checking=1 ;; 6532 tree) ac_tree_checking=1 ;; 6533 valgrind) ac_valgrind_checking=1 ;; 6534 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5 6535echo "$as_me: error: unknown check category $check" >&2;} 6536 { (exit 1); exit 1; }; } ;; 6537 esac |
6538done |
6539IFS="$ac_save_IFS" |
6540 |
6541nocommon_flag="" 6542if test x$ac_checking != x ; then |
6543 |
6544cat >>confdefs.h <<\_ACEOF 6545#define ENABLE_CHECKING 1 6546_ACEOF 6547 6548 nocommon_flag=-fno-common 6549fi 6550 6551if test x$ac_assert_checking != x ; then 6552 6553cat >>confdefs.h <<\_ACEOF 6554#define ENABLE_ASSERT_CHECKING 1 6555_ACEOF 6556 6557fi 6558 6559if test x$ac_runtime_checking != x ; then 6560 6561cat >>confdefs.h <<\_ACEOF 6562#define ENABLE_RUNTIME_CHECKING 1 6563_ACEOF 6564 6565fi 6566if test x$ac_tree_checking != x ; then 6567 6568cat >>confdefs.h <<\_ACEOF 6569#define ENABLE_TREE_CHECKING 1 6570_ACEOF 6571 6572 TREEBROWSER=tree-browser.o 6573fi 6574 6575if test x$ac_rtl_checking != x ; then 6576 6577cat >>confdefs.h <<\_ACEOF 6578#define ENABLE_RTL_CHECKING 1 6579_ACEOF 6580 6581fi 6582if test x$ac_rtlflag_checking != x ; then 6583 6584cat >>confdefs.h <<\_ACEOF 6585#define ENABLE_RTL_FLAG_CHECKING 1 6586_ACEOF 6587 6588fi 6589if test x$ac_gc_checking != x ; then 6590 6591cat >>confdefs.h <<\_ACEOF 6592#define ENABLE_GC_CHECKING 1 6593_ACEOF 6594 6595fi 6596if test x$ac_gc_always_collect != x ; then 6597 6598cat >>confdefs.h <<\_ACEOF 6599#define ENABLE_GC_ALWAYS_COLLECT 1 6600_ACEOF 6601 6602fi 6603if test x$ac_fold_checking != x ; then 6604 6605cat >>confdefs.h <<\_ACEOF 6606#define ENABLE_FOLD_CHECKING 1 6607_ACEOF 6608 6609fi 6610valgrind_path_defines= 6611valgrind_command= 6612 |
6613if test "${ac_cv_header_valgrind_h+set}" = set; then 6614 echo "$as_me:$LINENO: checking for valgrind.h" >&5 6615echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6 6616if test "${ac_cv_header_valgrind_h+set}" = set; then 6617 echo $ECHO_N "(cached) $ECHO_C" >&6 6618fi 6619echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5 6620echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6 --- 129 unchanged lines hidden (view full) --- 6750if test $ac_cv_header_valgrind_h = yes; then 6751 have_valgrind_h=yes 6752else 6753 have_valgrind_h=no 6754fi 6755 6756 6757 |
6758if test x$ac_valgrind_checking != x ; then |
6759 # It is certainly possible that there's valgrind but no valgrind.h. 6760 # GCC relies on making annotations so we must have both. 6761 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5 6762echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6 6763 cat >conftest.$ac_ext <<_ACEOF 6764/* confdefs.h. */ 6765_ACEOF 6766cat confdefs.h >>conftest.$ac_ext --- 168 unchanged lines hidden (view full) --- 6935#define HAVE_MEMCHECK_H 1 6936_ACEOF 6937 6938 fi 6939fi 6940 6941 6942 |
6943# Check whether --enable-mapped-location or --disable-mapped-location was given. 6944if test "${enable_mapped_location+set}" = set; then 6945 enableval="$enable_mapped_location" 6946 6947else 6948 enable_mapped_location=no 6949fi; 6950 6951if test "$enable_mapped_location" = yes ; then 6952 6953cat >>confdefs.h <<\_ACEOF 6954#define USE_MAPPED_LOCATION 1 6955_ACEOF 6956 6957fi 6958 |
6959# Enable code coverage collection 6960# Check whether --enable-coverage or --disable-coverage was given. 6961if test "${enable_coverage+set}" = set; then 6962 enableval="$enable_coverage" 6963 case "${enableval}" in |
6964 yes|noopt) 6965 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0" 6966 ;; 6967 opt) 6968 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2" 6969 ;; 6970 no) 6971 # a.k.a. --disable-coverage 6972 coverage_flags="" 6973 ;; 6974 *) 6975 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5 |
6976echo "$as_me: error: unknown coverage setting $enableval" >&2;} 6977 { (exit 1); exit 1; }; } |
6978 ;; |
6979esac 6980else 6981 coverage_flags="" 6982fi; 6983 6984 6985# Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given. 6986if test "${enable_gather_detailed_mem_stats+set}" = set; then --- 36 unchanged lines hidden (view full) --- 7023 7024# Enable __cxa_atexit for C++. 7025# Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given. 7026if test "${enable___cxa_atexit+set}" = set; then 7027 enableval="$enable___cxa_atexit" 7028 7029fi; 7030 |
7031# Enable C extension for decimal float if target supports it. 7032# Check whether --enable-decimal-float or --disable-decimal-float was given. 7033if test "${enable_decimal_float+set}" = set; then 7034 enableval="$enable_decimal_float" 7035 7036 if test x$enablevar = xyes ; then 7037 case $target in 7038 powerpc*-*-linux* | i?86*-*-linux*) 7039 enable_decimal_float=yes 7040 ;; 7041 *) 7042 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5 7043echo "$as_me: WARNING: decimal float is not supported for this target" >&2;} 7044 enable_decimal_float=no 7045 ;; 7046 esac 7047 fi 7048 7049else 7050 enable_decimal_float=no 7051fi; 7052 7053 7054 7055dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi` 7056 7057cat >>confdefs.h <<_ACEOF 7058#define ENABLE_DECIMAL_FLOAT $dfp 7059_ACEOF 7060 7061 |
7062# Enable threads 7063# Pass with no value to take the default 7064# Pass with a value to specify a thread package 7065# Check whether --enable-threads or --disable-threads was given. 7066if test "${enable_threads+set}" = set; then 7067 enableval="$enable_threads" 7068 7069else 7070 enable_threads='' 7071fi; |
7072 |
7073# Check whether --enable-tls or --disable-tls was given. 7074if test "${enable_tls+set}" = set; then 7075 enableval="$enable_tls" 7076 7077 case $enable_tls in 7078 yes | no) ;; 7079 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls. 7080Valid choices are 'yes' and 'no'." >&5 7081echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls. 7082Valid choices are 'yes' and 'no'." >&2;} 7083 { (exit 1); exit 1; }; } ;; 7084 esac 7085 7086else 7087 enable_tls='' 7088fi; 7089 |
7090# Check whether --enable-objc-gc or --disable-objc-gc was given. 7091if test "${enable_objc_gc+set}" = set; then 7092 enableval="$enable_objc_gc" 7093 if test x$enable_objc_gc = xno; then 7094 objc_boehm_gc='' 7095else 7096 objc_boehm_gc=1 7097fi --- 29 unchanged lines hidden (view full) --- 7127 esac 7128 7129else 7130 enable_shared=yes 7131fi; 7132 7133 7134 |
7135# Check whether --with-build-sysroot or --without-build-sysroot was given. 7136if test "${with_build_sysroot+set}" = set; then 7137 withval="$with_build_sysroot" 7138 7139fi; 7140 7141 |
7142# Check whether --with-sysroot or --without-sysroot was given. 7143if test "${with_sysroot+set}" = set; then 7144 withval="$with_sysroot" 7145 7146 case ${with_sysroot} in 7147 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;; 7148 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 7149 esac --- 37 unchanged lines hidden (view full) --- 7187 yes) onestep="-onestep";; 7188 *) onestep="";; 7189esac 7190else 7191 onestep="" 7192fi; 7193 7194 |
7195# Sanity check enable_languages in case someone does not run the toplevel 7196# configure # script. 7197# Check whether --enable-languages or --disable-languages was given. 7198if test "${enable_languages+set}" = set; then 7199 enableval="$enable_languages" 7200 case ,${enable_languages}, in 7201 ,,|,yes,) 7202 # go safe -- we cannot be much sure without the toplevel 7203 # configure's 7204 # analysis of which target libs are present and usable 7205 enable_languages=c 7206 ;; 7207 *,all,*) 7208 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5 7209echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;} 7210 { (exit 1); exit 1; }; } 7211 ;; 7212 *,c,*) 7213 ;; 7214 *) 7215 enable_languages=c,${enable_languages} 7216 ;; 7217esac 7218else 7219 enable_languages=c 7220fi; 7221 7222# Used by documentation targets 7223 7224 7225 7226 |
7227# ------------------------- 7228# Checks for other programs 7229# ------------------------- 7230 7231echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7232echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 7233set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 7234if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then --- 59 unchanged lines hidden (view full) --- 7294else 7295 echo "$as_me:$LINENO: result: no" >&5 7296echo "${ECHO_T}no" >&6 7297fi 7298 7299 test -n "$AWK" && break 7300done 7301 |
7302# We need awk to create options.c and options.h. |
7303# Bail out if it's missing. 7304case ${AWK} in 7305 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5 7306echo "$as_me: error: can't build without awk, bailing out" >&2;} 7307 { (exit 1); exit 1; }; } ;; 7308esac 7309 |
7310echo "$as_me:$LINENO: checking whether ln -s works" >&5 7311echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 7312if test "${gcc_cv_prog_LN_S+set}" = set; then |
7313 echo $ECHO_N "(cached) $ECHO_C" >&6 7314else 7315 rm -f conftestdata_t 7316echo >conftestdata_f |
7317if ln -s conftestdata_f conftestdata_t 2>/dev/null |
7318then |
7319 gcc_cv_prog_LN_S="ln -s" |
7320else |
7321 if ln conftestdata_f conftestdata_t 2>/dev/null |
7322 then |
7323 gcc_cv_prog_LN_S=ln |
7324 else |
7325 if cp -p conftestdata_f conftestdata_t 2>/dev/null 7326 then 7327 gcc_cv_prog_LN_S="cp -p" 7328 else 7329 gcc_cv_prog_LN_S=cp 7330 fi |
7331 fi 7332fi 7333rm -f conftestdata_f conftestdata_t 7334 7335fi |
7336LN_S="$gcc_cv_prog_LN_S" 7337if test "$gcc_cv_prog_LN_S" = "ln -s"; then |
7338 echo "$as_me:$LINENO: result: yes" >&5 7339echo "${ECHO_T}yes" >&6 7340else |
7341 if test "$gcc_cv_prog_LN_S" = "ln"; then 7342 echo "$as_me:$LINENO: result: no, using ln" >&5 7343echo "${ECHO_T}no, using ln" >&6 |
7344 else |
7345 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5 7346echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6 |
7347 fi 7348fi 7349 |
7350echo "$as_me:$LINENO: checking whether ln works" >&5 7351echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 7352if test "${acx_cv_prog_LN+set}" = set; then |
7353 echo $ECHO_N "(cached) $ECHO_C" >&6 7354else 7355 rm -f conftestdata_t 7356echo >conftestdata_f |
7357if ln conftestdata_f conftestdata_t 2>/dev/null |
7358then |
7359 acx_cv_prog_LN=ln |
7360else |
7361 acx_cv_prog_LN=no |
7362fi 7363rm -f conftestdata_f conftestdata_t 7364 7365fi |
7366if test $acx_cv_prog_LN = no; then 7367 LN="$LN_S" 7368 echo "$as_me:$LINENO: result: no, using $LN" >&5 7369echo "${ECHO_T}no, using $LN" >&6 7370else 7371 LN="$acx_cv_prog_LN" |
7372 echo "$as_me:$LINENO: result: yes" >&5 7373echo "${ECHO_T}yes" >&6 |
7374fi 7375 7376if test -n "$ac_tool_prefix"; then 7377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7378set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7379echo "$as_me:$LINENO: checking for $ac_word" >&5 7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7381if test "${ac_cv_prog_RANLIB+set}" = set; then --- 66 unchanged lines hidden (view full) --- 7448echo "${ECHO_T}no" >&6 7449fi 7450 7451 RANLIB=$ac_ct_RANLIB 7452else 7453 RANLIB="$ac_cv_prog_RANLIB" 7454fi 7455 |
7456case "${host}" in 7457*-*-darwin*) 7458 # By default, the Darwin ranlib will not treat common symbols as 7459 # definitions when building the archive table of contents. Other 7460 # ranlibs do that; pass an option to the Darwin ranlib that makes 7461 # it behave similarly. 7462 ranlib_flags="-c" 7463 ;; 7464*) 7465 ranlib_flags="" 7466esac 7467 7468 |
7469# Find a good install program. We prefer a C program (faster), 7470# so one script is as good as another. But avoid the broken or 7471# incompatible versions: 7472# SysV /etc/install, /usr/sbin/install 7473# SunOS /usr/etc/install 7474# IRIX /sbin/install 7475# AIX /bin/install 7476# AFS /usr/afsws/bin/install, which mishandles nonexistent args --- 118 unchanged lines hidden (view full) --- 7595 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5 7596echo "${ECHO_T}$have_mktemp_command" >&6 7597else 7598 echo "$as_me:$LINENO: result: no" >&5 7599echo "${ECHO_T}no" >&6 7600fi 7601 7602 |
7603MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing" 7604 7605# See if makeinfo has been installed and is modern enough 7606# that we can use it. 7607 7608ac_executable_extensions="$build_exeext" 7609 7610# Extract the first word of "makeinfo", so it can be a program name with args. |
7611set dummy makeinfo; ac_word=$2 7612echo "$as_me:$LINENO: checking for $ac_word" >&5 7613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7614if test "${ac_cv_prog_MAKEINFO+set}" = set; then 7615 echo $ECHO_N "(cached) $ECHO_C" >&6 7616else 7617 if test -n "$MAKEINFO"; then 7618 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. --- 27 unchanged lines hidden (view full) --- 7646 # Found it, now check the version. 7647 echo "$as_me:$LINENO: checking for modern makeinfo" >&5 7648echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6 7649if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then 7650 echo $ECHO_N "(cached) $ECHO_C" >&6 7651else 7652 ac_prog_version=`$MAKEINFO --version 2>&1 | 7653 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
7654 echo "configure:7654: version of makeinfo is $ac_prog_version" >&5 |
7655 case $ac_prog_version in 7656 '') gcc_cv_prog_makeinfo_modern=no;; |
7657 4.[4-9]*) |
7658 gcc_cv_prog_makeinfo_modern=yes;; 7659 *) gcc_cv_prog_makeinfo_modern=no;; 7660 esac 7661 7662fi 7663echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5 7664echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6 7665else 7666 gcc_cv_prog_makeinfo_modern=no 7667fi 7668 |
7669if test $gcc_cv_prog_makeinfo_modern = no; then |
7670 MAKEINFO="$MISSING makeinfo" |
7671 { echo "$as_me:$LINENO: WARNING: 7672*** Makeinfo is missing or too old. 7673*** Info documentation will not be built." >&5 7674echo "$as_me: WARNING: 7675*** Makeinfo is missing or too old. 7676*** Info documentation will not be built." >&2;} 7677 BUILD_INFO= 7678else 7679 BUILD_INFO=info 7680fi 7681 |
7682 |
7683# Is pod2man recent enough to regenerate manpages? 7684echo "$as_me:$LINENO: checking for recent Pod::Man" >&5 7685echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6 7686if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then 7687 echo "$as_me:$LINENO: result: yes" >&5 7688echo "${ECHO_T}yes" >&6 7689 GENERATED_MANPAGES=generated-manpages 7690else 7691 echo "$as_me:$LINENO: result: no" >&5 7692echo "${ECHO_T}no" >&6 7693 GENERATED_MANPAGES= 7694fi 7695 |
7696 |
7697# How about lex? |
7698for ac_prog in flex 7699do 7700 # Extract the first word of "$ac_prog", so it can be a program name with args. 7701set dummy $ac_prog; ac_word=$2 |
7702echo "$as_me:$LINENO: checking for $ac_word" >&5 7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7704if test "${ac_cv_prog_FLEX+set}" = set; then 7705 echo $ECHO_N "(cached) $ECHO_C" >&6 7706else 7707 if test -n "$FLEX"; then 7708 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 7709else 7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7711for as_dir in $PATH 7712do 7713 IFS=$as_save_IFS 7714 test -z "$as_dir" && as_dir=. 7715 for ac_exec_ext in '' $ac_executable_extensions; do 7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7717 ac_cv_prog_FLEX="$ac_prog" |
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7719 break 2 7720 fi 7721done 7722done 7723 |
7724fi 7725fi 7726FLEX=$ac_cv_prog_FLEX 7727if test -n "$FLEX"; then 7728 echo "$as_me:$LINENO: result: $FLEX" >&5 7729echo "${ECHO_T}$FLEX" >&6 7730else 7731 echo "$as_me:$LINENO: result: no" >&5 7732echo "${ECHO_T}no" >&6 7733fi 7734 |
7735 test -n "$FLEX" && break 7736done 7737test -n "$FLEX" || FLEX="$MISSING flex" |
7738 |
7739 |
7740# Bison? |
7741for ac_prog in bison 7742do 7743 # Extract the first word of "$ac_prog", so it can be a program name with args. 7744set dummy $ac_prog; ac_word=$2 |
7745echo "$as_me:$LINENO: checking for $ac_word" >&5 7746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7747if test "${ac_cv_prog_BISON+set}" = set; then 7748 echo $ECHO_N "(cached) $ECHO_C" >&6 7749else 7750 if test -n "$BISON"; then 7751 ac_cv_prog_BISON="$BISON" # Let the user override the test. 7752else 7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754for as_dir in $PATH 7755do 7756 IFS=$as_save_IFS 7757 test -z "$as_dir" && as_dir=. 7758 for ac_exec_ext in '' $ac_executable_extensions; do 7759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7760 ac_cv_prog_BISON="$ac_prog" |
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7762 break 2 7763 fi 7764done 7765done 7766 |
7767fi 7768fi 7769BISON=$ac_cv_prog_BISON 7770if test -n "$BISON"; then 7771 echo "$as_me:$LINENO: result: $BISON" >&5 7772echo "${ECHO_T}$BISON" >&6 7773else 7774 echo "$as_me:$LINENO: result: no" >&5 7775echo "${ECHO_T}no" >&6 7776fi 7777 |
7778 test -n "$BISON" && break 7779done 7780test -n "$BISON" || BISON="$MISSING bison" 7781 7782 7783# Binutils are not build modules, unlike bison/flex/makeinfo. So we 7784# check for build == host before using them. 7785 7786# NM 7787if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \ 7788 && test -d ../binutils ; then 7789 NM='$(objdir)/../binutils/nm-new' 7790else 7791 # Extract the first word of "nm", so it can be a program name with args. 7792set dummy nm; ac_word=$2 7793echo "$as_me:$LINENO: checking for $ac_word" >&5 7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7795if test "${ac_cv_prog_NM+set}" = set; then 7796 echo $ECHO_N "(cached) $ECHO_C" >&6 7797else 7798 if test -n "$NM"; then 7799 ac_cv_prog_NM="$NM" # Let the user override the test. 7800else 7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7802for as_dir in $PATH 7803do 7804 IFS=$as_save_IFS 7805 test -z "$as_dir" && as_dir=. 7806 for ac_exec_ext in '' $ac_executable_extensions; do 7807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7808 ac_cv_prog_NM="nm" 7809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7810 break 2 7811 fi 7812done 7813done 7814 7815 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm" |
7816fi |
7817fi 7818NM=$ac_cv_prog_NM 7819if test -n "$NM"; then 7820 echo "$as_me:$LINENO: result: $NM" >&5 7821echo "${ECHO_T}$NM" >&6 7822else 7823 echo "$as_me:$LINENO: result: no" >&5 7824echo "${ECHO_T}no" >&6 7825fi |
7826 |
7827fi 7828 7829# AR 7830if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \ 7831 && test -d ../binutils ; then 7832 AR='$(objdir)/../binutils/ar' 7833else 7834 # Extract the first word of "ar", so it can be a program name with args. 7835set dummy ar; ac_word=$2 7836echo "$as_me:$LINENO: checking for $ac_word" >&5 7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7838if test "${ac_cv_prog_AR+set}" = set; then 7839 echo $ECHO_N "(cached) $ECHO_C" >&6 7840else 7841 if test -n "$AR"; then 7842 ac_cv_prog_AR="$AR" # Let the user override the test. 7843else 7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7845for as_dir in $PATH 7846do 7847 IFS=$as_save_IFS 7848 test -z "$as_dir" && as_dir=. 7849 for ac_exec_ext in '' $ac_executable_extensions; do 7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7851 ac_cv_prog_AR="ar" 7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7853 break 2 7854 fi 7855done 7856done 7857 7858 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar" 7859fi 7860fi 7861AR=$ac_cv_prog_AR 7862if test -n "$AR"; then 7863 echo "$as_me:$LINENO: result: $AR" >&5 7864echo "${ECHO_T}$AR" >&6 7865else 7866 echo "$as_me:$LINENO: result: no" >&5 7867echo "${ECHO_T}no" >&6 7868fi 7869 7870fi 7871 7872 |
7873# -------------------- 7874# Checks for C headers 7875# -------------------- 7876 7877echo "$as_me:$LINENO: checking for GNU C library" >&5 7878echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6 7879if test "${gcc_cv_glibc+set}" = set; then 7880 echo $ECHO_N "(cached) $ECHO_C" >&6 --- 289 unchanged lines hidden (view full) --- 8170if test $ac_cv_header_time = yes; then 8171 8172cat >>confdefs.h <<\_ACEOF 8173#define TIME_WITH_SYS_TIME 1 8174_ACEOF 8175 8176fi 8177 |
8178echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 8179echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 8180if test "${gcc_cv_header_string+set}" = set; then 8181 echo $ECHO_N "(cached) $ECHO_C" >&6 8182else 8183 cat >conftest.$ac_ext <<_ACEOF 8184/* confdefs.h. */ 8185_ACEOF --- 138 unchanged lines hidden (view full) --- 8324 8325 8326 8327 8328 8329 8330 8331 |
8332 8333for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \ |
8334 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \ 8335 sys/resource.h sys/param.h sys/times.h sys/stat.h \ 8336 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h 8337do 8338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8339echo "$as_me:$LINENO: checking for $ac_header" >&5 8340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8341if eval "test \"\${$as_ac_Header+set}\" = set"; then --- 249 unchanged lines hidden (view full) --- 8591 8592fi 8593fi 8594echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 8595echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 8596if test "${ac_cv_c_bigendian+set}" = set; then 8597 echo $ECHO_N "(cached) $ECHO_C" >&6 8598else |
8599 # See if sys/param.h defines the BYTE_ORDER macro. |
8600cat >conftest.$ac_ext <<_ACEOF 8601/* confdefs.h. */ 8602_ACEOF 8603cat confdefs.h >>conftest.$ac_ext 8604cat >>conftest.$ac_ext <<_ACEOF 8605/* end confdefs.h. */ 8606#include <sys/types.h> 8607#include <sys/param.h> |
8608 |
8609int 8610main () 8611{ |
8612#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 8613 bogus endian macros 8614#endif |
8615 |
8616 ; 8617 return 0; 8618} 8619_ACEOF 8620rm -f conftest.$ac_objext 8621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8622 (eval $ac_compile) 2>conftest.er1 8623 ac_status=$? --- 19 unchanged lines hidden (view full) --- 8643cat >conftest.$ac_ext <<_ACEOF 8644/* confdefs.h. */ 8645_ACEOF 8646cat confdefs.h >>conftest.$ac_ext 8647cat >>conftest.$ac_ext <<_ACEOF 8648/* end confdefs.h. */ 8649#include <sys/types.h> 8650#include <sys/param.h> |
8651 |
8652int 8653main () 8654{ |
8655#if BYTE_ORDER != BIG_ENDIAN 8656 not big endian 8657#endif |
8658 |
8659 ; 8660 return 0; 8661} 8662_ACEOF 8663rm -f conftest.$ac_objext 8664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8665 (eval $ac_compile) 2>conftest.er1 8666 ac_status=$? --- 22 unchanged lines hidden (view full) --- 8689 8690ac_cv_c_bigendian=no 8691fi 8692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8693else 8694 echo "$as_me: failed program was:" >&5 8695sed 's/^/| /' conftest.$ac_ext >&5 8696 |
8697# It does not; compile a test program. 8698if test "$cross_compiling" = yes; then 8699 # try to guess the endianness by grepping values into an object file 8700 ac_cv_c_bigendian=unknown 8701 cat >conftest.$ac_ext <<_ACEOF 8702/* confdefs.h. */ 8703_ACEOF 8704cat confdefs.h >>conftest.$ac_ext 8705cat >>conftest.$ac_ext <<_ACEOF 8706/* end confdefs.h. */ 8707short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8708short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8709void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 8710short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8711short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8712void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 8713int 8714main () 8715{ 8716 _ascii (); _ebcdic (); 8717 ; 8718 return 0; 8719} 8720_ACEOF 8721rm -f conftest.$ac_objext 8722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8723 (eval $ac_compile) 2>conftest.er1 8724 ac_status=$? 8725 grep -v '^ *+' conftest.er1 >conftest.err 8726 rm -f conftest.er1 8727 cat conftest.err >&5 8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8729 (exit $ac_status); } && 8730 { ac_try='test -z "$ac_c_werror_flag" 8731 || test ! -s conftest.err' 8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8733 (eval $ac_try) 2>&5 8734 ac_status=$? 8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8736 (exit $ac_status); }; } && 8737 { ac_try='test -s conftest.$ac_objext' 8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8739 (eval $ac_try) 2>&5 8740 ac_status=$? 8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8742 (exit $ac_status); }; }; then 8743 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 8744 ac_cv_c_bigendian=yes |
8745fi |
8746if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8747 if test "$ac_cv_c_bigendian" = unknown; then 8748 ac_cv_c_bigendian=no 8749 else 8750 # finding both strings is unlikely to happen, but who knows? 8751 ac_cv_c_bigendian=unknown 8752 fi 8753fi 8754else 8755 echo "$as_me: failed program was:" >&5 8756sed 's/^/| /' conftest.$ac_ext >&5 8757 8758fi |
8759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8760else 8761 cat >conftest.$ac_ext <<_ACEOF 8762/* confdefs.h. */ 8763_ACEOF 8764cat confdefs.h >>conftest.$ac_ext 8765cat >>conftest.$ac_ext <<_ACEOF 8766/* end confdefs.h. */ |
8767int 8768main () 8769{ |
8770 /* Are we little or big endian? From Harbison&Steele. */ 8771 union 8772 { 8773 long l; 8774 char c[sizeof (long)]; 8775 } u; 8776 u.l = 1; 8777 exit (u.c[sizeof (long) - 1] == 1); --- 17 unchanged lines hidden (view full) --- 8795sed 's/^/| /' conftest.$ac_ext >&5 8796 8797( exit $ac_status ) 8798ac_cv_c_bigendian=yes 8799fi 8800rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8801fi 8802fi |
8803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8804fi 8805echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 8806echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
8807case $ac_cv_c_bigendian in 8808 yes) |
8809 |
8810cat >>confdefs.h <<\_ACEOF 8811#define WORDS_BIGENDIAN 1 8812_ACEOF |
8813 ;; 8814 no) 8815 ;; 8816 *) 8817 { { echo "$as_me:$LINENO: error: unknown endianness 8818presetting ac_cv_c_bigendian=no (or yes) will help" >&5 8819echo "$as_me: error: unknown endianness 8820presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 8821 { (exit 1); exit 1; }; } ;; 8822esac |
8823 8824 |
8825# -------- 8826# UNSORTED 8827# -------- 8828 8829# Stage specific cflags for build. 8830stage1_cflags= 8831case $build in 8832vax-*-*) 8833 if test x$GCC = xyes 8834 then 8835 stage1_cflags="-Wa,-J" 8836 else 8837 stage1_cflags="-J" 8838 fi 8839 ;; |
8840esac 8841 8842 8843# These libraries may be used by collect2. 8844# We may need a special search path to get them linked. 8845echo "$as_me:$LINENO: checking for collect2 libraries" >&5 8846echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6 8847if test "${gcc_cv_collect2_libs+set}" = set; then --- 423 unchanged lines hidden (view full) --- 9271 9272 9273 9274 9275 9276 9277 9278 |
9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290for ac_func in times clock kill getrlimit setrlimit atoll atoq \ 9291 sysconf strsignal getrusage nl_langinfo scandir alphasort \ 9292 gettimeofday mbstowcs wcswidth mmap mincore setlocale \ 9293 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked |
9294do 9295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9296echo "$as_me:$LINENO: checking for $ac_func" >&5 9297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9298if eval "test \"\${$as_ac_var+set}\" = set"; then 9299 echo $ECHO_N "(cached) $ECHO_C" >&6 9300else 9301 cat >conftest.$ac_ext <<_ACEOF --- 352 unchanged lines hidden (view full) --- 9654 ;; 9655 *) 9656 TARGET_GETGROUPS_T=gid_t 9657 ;; 9658 esac 9659fi 9660 9661 |
9662 9663echo "$as_me:$LINENO: checking for sys/mman.h" >&5 9664echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6 9665if test "${ac_cv_header_sys_mman_h+set}" = set; then |
9666 echo $ECHO_N "(cached) $ECHO_C" >&6 9667else |
9668 cat >conftest.$ac_ext <<_ACEOF 9669/* confdefs.h. */ 9670_ACEOF 9671cat confdefs.h >>conftest.$ac_ext 9672cat >>conftest.$ac_ext <<_ACEOF 9673/* end confdefs.h. */ 9674#include <sys/mman.h> 9675_ACEOF 9676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9678 ac_status=$? 9679 grep -v '^ *+' conftest.er1 >conftest.err 9680 rm -f conftest.er1 9681 cat conftest.err >&5 9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9683 (exit $ac_status); } >/dev/null; then 9684 if test -s conftest.err; then 9685 ac_cpp_err=$ac_c_preproc_warn_flag 9686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9687 else 9688 ac_cpp_err= 9689 fi |
9690else |
9691 ac_cpp_err=yes 9692fi 9693if test -z "$ac_cpp_err"; then 9694 ac_cv_header_sys_mman_h=yes 9695else 9696 echo "$as_me: failed program was:" >&5 9697sed 's/^/| /' conftest.$ac_ext >&5 9698 9699 ac_cv_header_sys_mman_h=no 9700fi 9701rm -f conftest.err conftest.$ac_ext 9702fi 9703echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5 9704echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6 9705if test $ac_cv_header_sys_mman_h = yes; then 9706 gcc_header_sys_mman_h=yes 9707else 9708 gcc_header_sys_mman_h=no 9709fi 9710 9711echo "$as_me:$LINENO: checking for mmap" >&5 9712echo $ECHO_N "checking for mmap... $ECHO_C" >&6 9713if test "${ac_cv_func_mmap+set}" = set; then 9714 echo $ECHO_N "(cached) $ECHO_C" >&6 9715else |
9716 cat >conftest.$ac_ext <<_ACEOF 9717/* confdefs.h. */ 9718_ACEOF 9719cat confdefs.h >>conftest.$ac_ext 9720cat >>conftest.$ac_ext <<_ACEOF 9721/* end confdefs.h. */ |
9722/* Define mmap to an innocuous variant, in case <limits.h> declares mmap. 9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9724#define mmap innocuous_mmap |
9725 |
9726/* System header to define __stub macros and hopefully few prototypes, 9727 which can conflict with char mmap (); below. 9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9729 <limits.h> exists even on freestanding compilers. */ 9730 9731#ifdef __STDC__ 9732# include <limits.h> 9733#else 9734# include <assert.h> 9735#endif 9736 9737#undef mmap 9738 9739/* Override any gcc2 internal prototype to avoid an error. */ 9740#ifdef __cplusplus 9741extern "C" |
9742{ |
9743#endif 9744/* We use char because int might match the return type of a gcc2 9745 builtin and then its argument prototype would still apply. */ 9746char mmap (); 9747/* The GNU C library defines this for functions which it implements 9748 to always fail with ENOSYS. Some functions are actually named 9749 something starting with __ and the normal name is an alias. */ 9750#if defined (__stub_mmap) || defined (__stub___mmap) 9751choke me 9752#else 9753char (*f) () = mmap; 9754#endif 9755#ifdef __cplusplus |
9756} |
9757#endif 9758 9759int 9760main () 9761{ 9762return f != mmap; 9763 ; 9764 return 0; 9765} |
9766_ACEOF |
9767rm -f conftest.$ac_objext conftest$ac_exeext |
9768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9769 (eval $ac_link) 2>conftest.er1 |
9770 ac_status=$? |
9771 grep -v '^ *+' conftest.er1 >conftest.err 9772 rm -f conftest.er1 9773 cat conftest.err >&5 |
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9775 (exit $ac_status); } && 9776 { ac_try='test -z "$ac_c_werror_flag" 9777 || test ! -s conftest.err' |
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9779 (eval $ac_try) 2>&5 9780 ac_status=$? 9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9782 (exit $ac_status); }; } && 9783 { ac_try='test -s conftest$ac_exeext' 9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9785 (eval $ac_try) 2>&5 9786 ac_status=$? 9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9788 (exit $ac_status); }; }; then |
9789 ac_cv_func_mmap=yes |
9790else |
9791 echo "$as_me: failed program was:" >&5 |
9792sed 's/^/| /' conftest.$ac_ext >&5 9793 |
9794ac_cv_func_mmap=no |
9795fi |
9796rm -f conftest.err conftest.$ac_objext \ 9797 conftest$ac_exeext conftest.$ac_ext |
9798fi |
9799echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5 9800echo "${ECHO_T}$ac_cv_func_mmap" >&6 9801if test $ac_cv_func_mmap = yes; then 9802 gcc_func_mmap=yes 9803else 9804 gcc_func_mmap=no |
9805fi |
9806 |
9807if test "$gcc_header_sys_mman_h" != yes \ 9808 || test "$gcc_func_mmap" != yes; then |
9809 gcc_cv_func_mmap_file=no 9810 gcc_cv_func_mmap_dev_zero=no 9811 gcc_cv_func_mmap_anon=no 9812else 9813 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5 9814echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6 9815if test "${gcc_cv_func_mmap_file+set}" = set; then 9816 echo $ECHO_N "(cached) $ECHO_C" >&6 --- 607 unchanged lines hidden (view full) --- 10424cat >>confdefs.h <<\_ACEOF 10425#define HAVE_WORKING_FORK 1 10426_ACEOF 10427 10428fi 10429 10430 10431 |
10432 if test "X$prefix" = "XNONE"; then 10433 acl_final_prefix="$ac_default_prefix" 10434 else 10435 acl_final_prefix="$prefix" 10436 fi 10437 if test "X$exec_prefix" = "XNONE"; then 10438 acl_final_exec_prefix='${prefix}' 10439 else 10440 acl_final_exec_prefix="$exec_prefix" 10441 fi 10442 acl_save_prefix="$prefix" 10443 prefix="$acl_final_prefix" 10444 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10445 prefix="$acl_save_prefix" |
10446 |
10447 |
10448# Check whether --with-gnu-ld or --without-gnu-ld was given. 10449if test "${with_gnu_ld+set}" = set; then 10450 withval="$with_gnu_ld" 10451 test "$withval" = no || with_gnu_ld=yes |
10452else |
10453 with_gnu_ld=no 10454fi; 10455# Prepare PATH_SEPARATOR. 10456# The user is always right. 10457if test "${PATH_SEPARATOR+set}" != set; then 10458 echo "#! /bin/sh" >conf$$.sh 10459 echo "exit 0" >>conf$$.sh 10460 chmod +x conf$$.sh 10461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10462 PATH_SEPARATOR=';' |
10463 else |
10464 PATH_SEPARATOR=: |
10465 fi |
10466 rm -f conf$$.sh 10467fi 10468ac_prog=ld 10469if test "$GCC" = yes; then 10470 # Check if gcc -print-prog-name=ld gives a path. 10471 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 10472echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 10473 case $host in 10474 *-*-mingw*) 10475 # gcc leaves a trailing carriage return which upsets mingw 10476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10477 *) 10478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10479 esac 10480 case $ac_prog in 10481 # Accept absolute paths. 10482 [\\/]* | [A-Za-z]:[\\/]*) 10483 re_direlt='/[^/][^/]*/\.\./' 10484 # Canonicalize the path of ld 10485 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10486 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10487 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10488 done 10489 test -z "$LD" && LD="$ac_prog" 10490 ;; 10491 "") 10492 # If it fails, then pretend we aren't using GCC. 10493 ac_prog=ld 10494 ;; 10495 *) 10496 # If it is relative, then search for the first ld in PATH. 10497 with_gnu_ld=unknown 10498 ;; 10499 esac 10500elif test "$with_gnu_ld" = yes; then 10501 echo "$as_me:$LINENO: checking for GNU ld" >&5 10502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10503else |
10504 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10506fi |
10507if test "${acl_cv_path_LD+set}" = set; then 10508 echo $ECHO_N "(cached) $ECHO_C" >&6 |
10509else |
10510 if test -z "$LD"; then 10511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10512 for ac_dir in $PATH; do 10513 test -z "$ac_dir" && ac_dir=. 10514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10515 acl_cv_path_LD="$ac_dir/$ac_prog" 10516 # Check to see if the program is GNU ld. I'd rather use --version, 10517 # but apparently some GNU ld's only accept -v. 10518 # Break only if it was the GNU/non-GNU ld that we prefer. 10519 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 10520 test "$with_gnu_ld" != no && break 10521 else 10522 test "$with_gnu_ld" != yes && break 10523 fi 10524 fi 10525 done 10526 IFS="$ac_save_ifs" 10527else 10528 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10529fi 10530fi |
10531 |
10532LD="$acl_cv_path_LD" 10533if test -n "$LD"; then 10534 echo "$as_me:$LINENO: result: $LD" >&5 10535echo "${ECHO_T}$LD" >&6 10536else 10537 echo "$as_me:$LINENO: result: no" >&5 10538echo "${ECHO_T}no" >&6 |
10539fi |
10540test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10541echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10542 { (exit 1); exit 1; }; } 10543echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10544echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10545if test "${acl_cv_prog_gnu_ld+set}" = set; then 10546 echo $ECHO_N "(cached) $ECHO_C" >&6 10547else 10548 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10549if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 10550 acl_cv_prog_gnu_ld=yes 10551else 10552 acl_cv_prog_gnu_ld=no |
10553fi |
10554fi 10555echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 10556echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 10557with_gnu_ld=$acl_cv_prog_gnu_ld |
10558 |
10559 10560 10561 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 10562echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 10563if test "${acl_cv_rpath+set}" = set; then 10564 echo $ECHO_N "(cached) $ECHO_C" >&6 10565else 10566 10567 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10568 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10569 . ./conftest.sh 10570 rm -f ./conftest.sh 10571 acl_cv_rpath=done 10572 |
10573fi |
10574echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 10575echo "${ECHO_T}$acl_cv_rpath" >&6 10576 wl="$acl_cv_wl" 10577 libext="$acl_cv_libext" 10578 shlibext="$acl_cv_shlibext" 10579 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10580 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10581 hardcode_direct="$acl_cv_hardcode_direct" 10582 hardcode_minus_L="$acl_cv_hardcode_minus_L" 10583 # Check whether --enable-rpath or --disable-rpath was given. 10584if test "${enable_rpath+set}" = set; then 10585 enableval="$enable_rpath" 10586 : 10587else 10588 enable_rpath=yes 10589fi; |
10590 10591 |
10592 10593 10594 10595 10596 10597 use_additional=yes 10598 10599 acl_save_prefix="$prefix" 10600 prefix="$acl_final_prefix" 10601 acl_save_exec_prefix="$exec_prefix" 10602 exec_prefix="$acl_final_exec_prefix" 10603 10604 eval additional_includedir=\"$includedir\" 10605 eval additional_libdir=\"$libdir\" 10606 10607 exec_prefix="$acl_save_exec_prefix" 10608 prefix="$acl_save_prefix" 10609 10610 10611# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 10612if test "${with_libiconv_prefix+set}" = set; then 10613 withval="$with_libiconv_prefix" 10614 10615 if test "X$withval" = "Xno"; then 10616 use_additional=no 10617 else 10618 if test "X$withval" = "X"; then 10619 10620 acl_save_prefix="$prefix" 10621 prefix="$acl_final_prefix" 10622 acl_save_exec_prefix="$exec_prefix" 10623 exec_prefix="$acl_final_exec_prefix" 10624 10625 eval additional_includedir=\"$includedir\" 10626 eval additional_libdir=\"$libdir\" 10627 10628 exec_prefix="$acl_save_exec_prefix" 10629 prefix="$acl_save_prefix" 10630 10631 else 10632 additional_includedir="$withval/include" 10633 additional_libdir="$withval/lib" 10634 fi 10635 fi 10636 10637fi; 10638 LIBICONV= 10639 LTLIBICONV= 10640 INCICONV= 10641 rpathdirs= 10642 ltrpathdirs= 10643 names_already_handled= 10644 names_next_round='iconv ' 10645 while test -n "$names_next_round"; do 10646 names_this_round="$names_next_round" 10647 names_next_round= 10648 for name in $names_this_round; do 10649 already_handled= 10650 for n in $names_already_handled; do 10651 if test "$n" = "$name"; then 10652 already_handled=yes 10653 break 10654 fi 10655 done 10656 if test -z "$already_handled"; then 10657 names_already_handled="$names_already_handled $name" 10658 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10659 eval value=\"\$HAVE_LIB$uppername\" 10660 if test -n "$value"; then 10661 if test "$value" = yes; then 10662 eval value=\"\$LIB$uppername\" 10663 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10664 eval value=\"\$LTLIB$uppername\" 10665 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10666 else 10667 : 10668 fi 10669 else 10670 found_dir= 10671 found_la= 10672 found_so= 10673 found_a= 10674 if test $use_additional = yes; then 10675 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10676 found_dir="$additional_libdir" 10677 found_so="$additional_libdir/lib$name.$shlibext" 10678 if test -f "$additional_libdir/lib$name.la"; then 10679 found_la="$additional_libdir/lib$name.la" 10680 fi 10681 else 10682 if test -f "$additional_libdir/lib$name.$libext"; then 10683 found_dir="$additional_libdir" 10684 found_a="$additional_libdir/lib$name.$libext" 10685 if test -f "$additional_libdir/lib$name.la"; then 10686 found_la="$additional_libdir/lib$name.la" 10687 fi 10688 fi 10689 fi 10690 fi 10691 if test "X$found_dir" = "X"; then 10692 for x in $LDFLAGS $LTLIBICONV; do 10693 10694 acl_save_prefix="$prefix" 10695 prefix="$acl_final_prefix" 10696 acl_save_exec_prefix="$exec_prefix" 10697 exec_prefix="$acl_final_exec_prefix" 10698 eval x=\"$x\" 10699 exec_prefix="$acl_save_exec_prefix" 10700 prefix="$acl_save_prefix" 10701 10702 case "$x" in 10703 -L*) 10704 dir=`echo "X$x" | sed -e 's/^X-L//'` 10705 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 10706 found_dir="$dir" 10707 found_so="$dir/lib$name.$shlibext" 10708 if test -f "$dir/lib$name.la"; then 10709 found_la="$dir/lib$name.la" 10710 fi 10711 else 10712 if test -f "$dir/lib$name.$libext"; then 10713 found_dir="$dir" 10714 found_a="$dir/lib$name.$libext" 10715 if test -f "$dir/lib$name.la"; then 10716 found_la="$dir/lib$name.la" 10717 fi 10718 fi 10719 fi 10720 ;; 10721 esac 10722 if test "X$found_dir" != "X"; then 10723 break 10724 fi 10725 done 10726 fi 10727 if test "X$found_dir" != "X"; then 10728 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 10729 if test "X$found_so" != "X"; then 10730 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 10731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10732 else 10733 haveit= 10734 for x in $ltrpathdirs; do 10735 if test "X$x" = "X$found_dir"; then 10736 haveit=yes 10737 break 10738 fi 10739 done 10740 if test -z "$haveit"; then 10741 ltrpathdirs="$ltrpathdirs $found_dir" 10742 fi 10743 if test "$hardcode_direct" = yes; then 10744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10745 else 10746 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10748 haveit= 10749 for x in $rpathdirs; do 10750 if test "X$x" = "X$found_dir"; then 10751 haveit=yes 10752 break 10753 fi 10754 done 10755 if test -z "$haveit"; then 10756 rpathdirs="$rpathdirs $found_dir" 10757 fi 10758 else 10759 haveit= 10760 for x in $LDFLAGS $LIBICONV; do 10761 10762 acl_save_prefix="$prefix" 10763 prefix="$acl_final_prefix" 10764 acl_save_exec_prefix="$exec_prefix" 10765 exec_prefix="$acl_final_exec_prefix" 10766 eval x=\"$x\" 10767 exec_prefix="$acl_save_exec_prefix" 10768 prefix="$acl_save_prefix" 10769 10770 if test "X$x" = "X-L$found_dir"; then 10771 haveit=yes 10772 break 10773 fi 10774 done 10775 if test -z "$haveit"; then 10776 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 10777 fi 10778 if test "$hardcode_minus_L" != no; then 10779 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10780 else 10781 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10782 fi 10783 fi 10784 fi 10785 fi 10786 else 10787 if test "X$found_a" != "X"; then 10788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 10789 else 10790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 10791 fi 10792 fi 10793 additional_includedir= 10794 case "$found_dir" in 10795 */lib | */lib/) 10796 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10797 additional_includedir="$basedir/include" 10798 ;; 10799 esac 10800 if test "X$additional_includedir" != "X"; then 10801 if test "X$additional_includedir" != "X/usr/include"; then 10802 haveit= 10803 if test "X$additional_includedir" = "X/usr/local/include"; then 10804 if test -n "$GCC"; then 10805 case $host_os in 10806 linux*) haveit=yes;; 10807 esac 10808 fi 10809 fi 10810 if test -z "$haveit"; then 10811 for x in $CPPFLAGS $INCICONV; do 10812 10813 acl_save_prefix="$prefix" 10814 prefix="$acl_final_prefix" 10815 acl_save_exec_prefix="$exec_prefix" 10816 exec_prefix="$acl_final_exec_prefix" 10817 eval x=\"$x\" 10818 exec_prefix="$acl_save_exec_prefix" 10819 prefix="$acl_save_prefix" 10820 10821 if test "X$x" = "X-I$additional_includedir"; then 10822 haveit=yes 10823 break 10824 fi 10825 done 10826 if test -z "$haveit"; then 10827 if test -d "$additional_includedir"; then 10828 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 10829 fi 10830 fi 10831 fi 10832 fi 10833 fi 10834 if test -n "$found_la"; then 10835 save_libdir="$libdir" 10836 case "$found_la" in 10837 */* | *\\*) . "$found_la" ;; 10838 *) . "./$found_la" ;; 10839 esac 10840 libdir="$save_libdir" 10841 for dep in $dependency_libs; do 10842 case "$dep" in 10843 -L*) 10844 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10845 if test "X$additional_libdir" != "X/usr/lib"; then 10846 haveit= 10847 if test "X$additional_libdir" = "X/usr/local/lib"; then 10848 if test -n "$GCC"; then 10849 case $host_os in 10850 linux*) haveit=yes;; 10851 esac 10852 fi 10853 fi 10854 if test -z "$haveit"; then 10855 haveit= 10856 for x in $LDFLAGS $LIBICONV; do 10857 10858 acl_save_prefix="$prefix" 10859 prefix="$acl_final_prefix" 10860 acl_save_exec_prefix="$exec_prefix" 10861 exec_prefix="$acl_final_exec_prefix" 10862 eval x=\"$x\" 10863 exec_prefix="$acl_save_exec_prefix" 10864 prefix="$acl_save_prefix" 10865 10866 if test "X$x" = "X-L$additional_libdir"; then 10867 haveit=yes 10868 break 10869 fi 10870 done 10871 if test -z "$haveit"; then 10872 if test -d "$additional_libdir"; then 10873 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 10874 fi 10875 fi 10876 haveit= 10877 for x in $LDFLAGS $LTLIBICONV; do 10878 10879 acl_save_prefix="$prefix" 10880 prefix="$acl_final_prefix" 10881 acl_save_exec_prefix="$exec_prefix" 10882 exec_prefix="$acl_final_exec_prefix" 10883 eval x=\"$x\" 10884 exec_prefix="$acl_save_exec_prefix" 10885 prefix="$acl_save_prefix" 10886 10887 if test "X$x" = "X-L$additional_libdir"; then 10888 haveit=yes 10889 break 10890 fi 10891 done 10892 if test -z "$haveit"; then 10893 if test -d "$additional_libdir"; then 10894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 10895 fi 10896 fi 10897 fi 10898 fi 10899 ;; 10900 -R*) 10901 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10902 if test "$enable_rpath" != no; then 10903 haveit= 10904 for x in $rpathdirs; do 10905 if test "X$x" = "X$dir"; then 10906 haveit=yes 10907 break 10908 fi 10909 done 10910 if test -z "$haveit"; then 10911 rpathdirs="$rpathdirs $dir" 10912 fi 10913 haveit= 10914 for x in $ltrpathdirs; do 10915 if test "X$x" = "X$dir"; then 10916 haveit=yes 10917 break 10918 fi 10919 done 10920 if test -z "$haveit"; then 10921 ltrpathdirs="$ltrpathdirs $dir" 10922 fi 10923 fi 10924 ;; 10925 -l*) 10926 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10927 ;; 10928 *.la) 10929 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10930 ;; 10931 *) 10932 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 10933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 10934 ;; 10935 esac 10936 done 10937 fi 10938 else 10939 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10940 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 10941 fi 10942 fi 10943 fi 10944 done 10945 done 10946 if test "X$rpathdirs" != "X"; then 10947 if test -n "$hardcode_libdir_separator"; then 10948 alldirs= 10949 for found_dir in $rpathdirs; do 10950 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10951 done 10952 acl_save_libdir="$libdir" 10953 libdir="$alldirs" 10954 eval flag=\"$hardcode_libdir_flag_spec\" 10955 libdir="$acl_save_libdir" 10956 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10957 else 10958 for found_dir in $rpathdirs; do 10959 acl_save_libdir="$libdir" 10960 libdir="$found_dir" 10961 eval flag=\"$hardcode_libdir_flag_spec\" 10962 libdir="$acl_save_libdir" 10963 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10964 done 10965 fi 10966 fi 10967 if test "X$ltrpathdirs" != "X"; then 10968 for found_dir in $ltrpathdirs; do 10969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 10970 done 10971 fi 10972 10973 10974 10975 10976 10977 10978 10979 am_save_CPPFLAGS="$CPPFLAGS" 10980 10981 for element in $INCICONV; do 10982 haveit= 10983 for x in $CPPFLAGS; do 10984 10985 acl_save_prefix="$prefix" 10986 prefix="$acl_final_prefix" 10987 acl_save_exec_prefix="$exec_prefix" 10988 exec_prefix="$acl_final_exec_prefix" 10989 eval x=\"$x\" 10990 exec_prefix="$acl_save_exec_prefix" 10991 prefix="$acl_save_prefix" 10992 10993 if test "X$x" = "X$element"; then 10994 haveit=yes 10995 break 10996 fi 10997 done 10998 if test -z "$haveit"; then 10999 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11000 fi 11001 done 11002 11003 |
11004 echo "$as_me:$LINENO: checking for iconv" >&5 11005echo $ECHO_N "checking for iconv... $ECHO_C" >&6 11006if test "${am_cv_func_iconv+set}" = set; then 11007 echo $ECHO_N "(cached) $ECHO_C" >&6 11008else 11009 11010 am_cv_func_iconv="no, consider installing GNU libiconv" 11011 am_cv_lib_iconv=no --- 42 unchanged lines hidden (view full) --- 11054 echo "$as_me: failed program was:" >&5 11055sed 's/^/| /' conftest.$ac_ext >&5 11056 11057fi 11058rm -f conftest.err conftest.$ac_objext \ 11059 conftest$ac_exeext conftest.$ac_ext 11060 if test "$am_cv_func_iconv" != yes; then 11061 am_save_LIBS="$LIBS" |
11062 LIBS="$LIBS $LIBICONV" |
11063 cat >conftest.$ac_ext <<_ACEOF 11064/* confdefs.h. */ 11065_ACEOF 11066cat confdefs.h >>conftest.$ac_ext 11067cat >>conftest.$ac_ext <<_ACEOF 11068/* end confdefs.h. */ 11069#include <stdlib.h> 11070#include <iconv.h> --- 45 unchanged lines hidden (view full) --- 11116echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 11117echo "${ECHO_T}$am_cv_func_iconv" >&6 11118 if test "$am_cv_func_iconv" = yes; then 11119 11120cat >>confdefs.h <<\_ACEOF 11121#define HAVE_ICONV 1 11122_ACEOF 11123 |
11124 fi 11125 if test "$am_cv_lib_iconv" = yes; then 11126 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 11127echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 11128 echo "$as_me:$LINENO: result: $LIBICONV" >&5 11129echo "${ECHO_T}$LIBICONV" >&6 11130 else 11131 CPPFLAGS="$am_save_CPPFLAGS" 11132 LIBICONV= 11133 LTLIBICONV= 11134 fi 11135 11136 11137 11138 if test "$am_cv_func_iconv" = yes; then |
11139 echo "$as_me:$LINENO: checking for iconv declaration" >&5 11140echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 11141 if test "${am_cv_proto_iconv+set}" = set; then 11142 echo $ECHO_N "(cached) $ECHO_C" >&6 11143else 11144 11145 cat >conftest.$ac_ext <<_ACEOF 11146/* confdefs.h. */ --- 61 unchanged lines hidden (view full) --- 11208echo "${ECHO_T}${ac_t:- 11209 }$am_cv_proto_iconv" >&6 11210 11211cat >>confdefs.h <<_ACEOF 11212#define ICONV_CONST $am_cv_proto_iconv_arg1 11213_ACEOF 11214 11215 fi |
11216 |
11217# Until we have in-tree GNU iconv: 11218LIBICONV_DEP= 11219 11220 11221 11222 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 11223echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 11224if test "${am_cv_val_LC_MESSAGES+set}" = set; then --- 52 unchanged lines hidden (view full) --- 11277 11278cat >>confdefs.h <<\_ACEOF 11279#define HAVE_LC_MESSAGES 1 11280_ACEOF 11281 11282 fi 11283 11284 |
11285 11286 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 11287echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 11288if test "${am_cv_langinfo_codeset+set}" = set; then 11289 echo $ECHO_N "(cached) $ECHO_C" >&6 11290else 11291 cat >conftest.$ac_ext <<_ACEOF 11292/* confdefs.h. */ 11293_ACEOF 11294cat confdefs.h >>conftest.$ac_ext 11295cat >>conftest.$ac_ext <<_ACEOF 11296/* end confdefs.h. */ 11297#include <langinfo.h> 11298int 11299main () 11300{ 11301char* cs = nl_langinfo(CODESET); 11302 ; 11303 return 0; 11304} 11305_ACEOF 11306rm -f conftest.$ac_objext conftest$ac_exeext 11307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11308 (eval $ac_link) 2>conftest.er1 11309 ac_status=$? 11310 grep -v '^ *+' conftest.er1 >conftest.err 11311 rm -f conftest.er1 11312 cat conftest.err >&5 11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11314 (exit $ac_status); } && 11315 { ac_try='test -z "$ac_c_werror_flag" 11316 || test ! -s conftest.err' 11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11318 (eval $ac_try) 2>&5 11319 ac_status=$? 11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11321 (exit $ac_status); }; } && 11322 { ac_try='test -s conftest$ac_exeext' 11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11324 (eval $ac_try) 2>&5 11325 ac_status=$? 11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11327 (exit $ac_status); }; }; then 11328 am_cv_langinfo_codeset=yes 11329else 11330 echo "$as_me: failed program was:" >&5 11331sed 's/^/| /' conftest.$ac_ext >&5 11332 11333am_cv_langinfo_codeset=no 11334fi 11335rm -f conftest.err conftest.$ac_objext \ 11336 conftest$ac_exeext conftest.$ac_ext 11337 11338fi 11339echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 11340echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 11341 if test $am_cv_langinfo_codeset = yes; then 11342 11343cat >>confdefs.h <<\_ACEOF 11344#define HAVE_LANGINFO_CODESET 1 11345_ACEOF 11346 11347 fi 11348 11349 |
11350# We will need to find libiberty.h and ansidecl.h 11351saved_CFLAGS="$CFLAGS" 11352CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" |
11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \ 11393 strsignal strstr strverscmp \ 11394 errno snprintf vsnprintf vasprintf malloc realloc calloc \ 11395 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked |
11396do |
11397 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` |
11398echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11399echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11400if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then 11401 echo $ECHO_N "(cached) $ECHO_C" >&6 11402else 11403 cat >conftest.$ac_ext <<_ACEOF 11404/* confdefs.h. */ 11405_ACEOF --- 58 unchanged lines hidden (view full) --- 11464 echo "$as_me:$LINENO: result: no" >&5 11465echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11466#define $ac_tr_decl 0 11467_ACEOF 11468 11469fi 11470 11471done |
11472 |
11473 |
11474 |
11475 |
11476 |
11477for ac_func in getrlimit setrlimit getrusage 11478do |
11479 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` |
11480echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11481echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11482if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then 11483 echo $ECHO_N "(cached) $ECHO_C" >&6 11484else 11485 cat >conftest.$ac_ext <<_ACEOF 11486/* confdefs.h. */ 11487_ACEOF --- 62 unchanged lines hidden (view full) --- 11550 echo "$as_me:$LINENO: result: no" >&5 11551echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11552#define $ac_tr_decl 0 11553_ACEOF 11554 11555fi 11556 11557done |
11558 |
11559 |
11560cat >conftest.$ac_ext <<_ACEOF 11561/* confdefs.h. */ 11562_ACEOF 11563cat confdefs.h >>conftest.$ac_ext 11564cat >>conftest.$ac_ext <<_ACEOF 11565/* end confdefs.h. */ 11566 11567#include "ansidecl.h" --- 40 unchanged lines hidden (view full) --- 11608 11609cat >>confdefs.h <<\_ACEOF 11610#define rlim_t long 11611_ACEOF 11612 11613fi 11614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11615 |
11616# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible 11617# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname 11618# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs 11619# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME. 11620 |
11621for ac_func in ldgetname 11622do |
11623 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` |
11624echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11625echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11626if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then 11627 echo $ECHO_N "(cached) $ECHO_C" >&6 11628else 11629 cat >conftest.$ac_ext <<_ACEOF 11630/* confdefs.h. */ 11631_ACEOF 11632cat confdefs.h >>conftest.$ac_ext 11633cat >>conftest.$ac_ext <<_ACEOF 11634/* end confdefs.h. */ 11635#undef $ac_tr_decl 11636#define $ac_tr_decl 1 11637 11638#include "ansidecl.h" 11639#include "system.h" 11640#ifdef HAVE_LDFCN_H |
11641#undef FREAD 11642#undef FWRITE |
11643#include <ldfcn.h> 11644#endif 11645 11646 11647int 11648main () 11649{ 11650#ifndef $ac_func --- 45 unchanged lines hidden (view full) --- 11696 echo "$as_me:$LINENO: result: no" >&5 11697echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11698#define $ac_tr_decl 0 11699_ACEOF 11700 11701fi 11702 11703done |
11704 |
11705 11706 11707for ac_func in times 11708do |
11709 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` |
11710echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11711echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11712if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then 11713 echo $ECHO_N "(cached) $ECHO_C" >&6 11714else 11715 cat >conftest.$ac_ext <<_ACEOF 11716/* confdefs.h. */ 11717_ACEOF --- 62 unchanged lines hidden (view full) --- 11780 echo "$as_me:$LINENO: result: no" >&5 11781echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11782#define $ac_tr_decl 0 11783_ACEOF 11784 11785fi 11786 11787done |
11788 |
11789 11790 |
11791for ac_func in sigaltstack 11792do 11793 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11794echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11795echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11796if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then |
11797 echo $ECHO_N "(cached) $ECHO_C" >&6 11798else |
11799 cat >conftest.$ac_ext <<_ACEOF |
11800/* confdefs.h. */ 11801_ACEOF 11802cat confdefs.h >>conftest.$ac_ext 11803cat >>conftest.$ac_ext <<_ACEOF 11804/* end confdefs.h. */ |
11805#undef $ac_tr_decl 11806#define $ac_tr_decl 1 |
11807 11808#include "ansidecl.h" 11809#include "system.h" |
11810#include <signal.h> |
11811 |
11812 |
11813int 11814main () 11815{ |
11816#ifndef $ac_func 11817char *(*pfn) = (char *(*)) $ac_func ; 11818#endif |
11819 ; 11820 return 0; 11821} 11822_ACEOF 11823rm -f conftest.$ac_objext 11824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11825 (eval $ac_compile) 2>conftest.er1 11826 ac_status=$? --- 10 unchanged lines hidden (view full) --- 11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11838 (exit $ac_status); }; } && 11839 { ac_try='test -s conftest.$ac_objext' 11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11841 (eval $ac_try) 2>&5 11842 ac_status=$? 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11844 (exit $ac_status); }; }; then |
11845 eval "gcc_cv_have_decl_$ac_func=yes" |
11846else 11847 echo "$as_me: failed program was:" >&5 11848sed 's/^/| /' conftest.$ac_ext >&5 11849 |
11850eval "gcc_cv_have_decl_$ac_func=no" |
11851fi 11852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11853fi |
11854 |
11855if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11856 echo "$as_me:$LINENO: result: yes" >&5 11857echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF 11858#define $ac_tr_decl 1 |
11859_ACEOF 11860 |
11861else 11862 echo "$as_me:$LINENO: result: no" >&5 11863echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11864#define $ac_tr_decl 0 11865_ACEOF 11866 |
11867fi 11868 |
11869done 11870 11871 11872# More time-related stuff. 11873echo "$as_me:$LINENO: checking for struct tms" >&5 11874echo $ECHO_N "checking for struct tms... $ECHO_C" >&6 11875if test "${ac_cv_struct_tms+set}" = set; then |
11876 echo $ECHO_N "(cached) $ECHO_C" >&6 11877else 11878 11879cat >conftest.$ac_ext <<_ACEOF 11880/* confdefs.h. */ 11881_ACEOF 11882cat confdefs.h >>conftest.$ac_ext 11883cat >>conftest.$ac_ext <<_ACEOF 11884/* end confdefs.h. */ 11885 11886#include "ansidecl.h" 11887#include "system.h" |
11888#ifdef HAVE_SYS_TIMES_H 11889#include <sys/times.h> 11890#endif |
11891 11892int 11893main () 11894{ |
11895struct tms tms; |
11896 ; 11897 return 0; 11898} 11899_ACEOF 11900rm -f conftest.$ac_objext 11901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11902 (eval $ac_compile) 2>conftest.er1 11903 ac_status=$? --- 10 unchanged lines hidden (view full) --- 11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11915 (exit $ac_status); }; } && 11916 { ac_try='test -s conftest.$ac_objext' 11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11918 (eval $ac_try) 2>&5 11919 ac_status=$? 11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11921 (exit $ac_status); }; }; then |
11922 ac_cv_struct_tms=yes |
11923else 11924 echo "$as_me: failed program was:" >&5 11925sed 's/^/| /' conftest.$ac_ext >&5 11926 |
11927ac_cv_struct_tms=no |
11928fi 11929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11930fi |
11931echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5 11932echo "${ECHO_T}$ac_cv_struct_tms" >&6 11933if test $ac_cv_struct_tms = yes; then |
11934 11935cat >>confdefs.h <<\_ACEOF |
11936#define HAVE_STRUCT_TMS 1 |
11937_ACEOF 11938 11939fi 11940 |
11941# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE. 11942# revisit after autoconf 2.50. 11943echo "$as_me:$LINENO: checking for clock_t" >&5 11944echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 11945if test "${gcc_cv_type_clock_t+set}" = set; then |
11946 echo $ECHO_N "(cached) $ECHO_C" >&6 11947else |
11948 11949cat >conftest.$ac_ext <<_ACEOF |
11950/* confdefs.h. */ 11951_ACEOF 11952cat confdefs.h >>conftest.$ac_ext 11953cat >>conftest.$ac_ext <<_ACEOF 11954/* end confdefs.h. */ 11955 11956#include "ansidecl.h" 11957#include "system.h" 11958 11959int 11960main () 11961{ |
11962clock_t x; |
11963 ; 11964 return 0; 11965} 11966_ACEOF 11967rm -f conftest.$ac_objext 11968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11969 (eval $ac_compile) 2>conftest.er1 11970 ac_status=$? --- 10 unchanged lines hidden (view full) --- 11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11982 (exit $ac_status); }; } && 11983 { ac_try='test -s conftest.$ac_objext' 11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11985 (eval $ac_try) 2>&5 11986 ac_status=$? 11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11988 (exit $ac_status); }; }; then |
11989 gcc_cv_type_clock_t=yes |
11990else 11991 echo "$as_me: failed program was:" >&5 11992sed 's/^/| /' conftest.$ac_ext >&5 11993 |
11994gcc_cv_type_clock_t=no |
11995fi 11996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11997fi |
11998echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5 11999echo "${ECHO_T}$gcc_cv_type_clock_t" >&6 12000if test $gcc_cv_type_clock_t = yes; then |
12001 12002cat >>confdefs.h <<\_ACEOF |
12003#define HAVE_CLOCK_T 1 |
12004_ACEOF 12005 12006fi 12007 12008# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. 12009CFLAGS="$saved_CFLAGS" 12010 12011# Check whether --enable-initfini-array or --disable-initfini-array was given. --- 153 unchanged lines hidden (view full) --- 12165# libunwind, we can choose to use the system libunwind. 12166 12167# Check whether --with-system-libunwind or --without-system-libunwind was given. 12168if test "${with_system_libunwind+set}" = set; then 12169 withval="$with_system_libunwind" 12170 12171fi; 12172 |
12173# config.gcc also contains tests of with_system_libunwind. 12174if test x$with_system_libunwind = xyes; then 12175 12176cat >>confdefs.h <<\_ACEOF 12177#define HAVE_GETIPINFO 1 12178_ACEOF 12179 12180fi 12181 |
12182# -------------------------------------------------------- 12183# Build, host, and target specific configuration fragments 12184# -------------------------------------------------------- 12185 12186# Collect build-machine-specific information. 12187. ${srcdir}/config.build 12188 12189# Collect host-machine-specific information. --- 81 unchanged lines hidden (view full) --- 12271if test x$need_64bit_hwint = xyes; then 12272 12273cat >>confdefs.h <<\_ACEOF 12274#define NEED_64BIT_HOST_WIDE_INT 1 12275_ACEOF 12276 12277fi 12278 |
12279if test x$use_long_long_for_widest_fast_int = xyes; then 12280 12281cat >>confdefs.h <<\_ACEOF 12282#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1 12283_ACEOF 12284 12285fi 12286 |
12287count=a 12288for f in $host_xm_file; do 12289 count=${count}x 12290done 12291if test $count = a; then 12292 : 12293elif test $count = ax; then 12294 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." --- 17 unchanged lines hidden (view full) --- 12312 else 12313 echo "Using the following build machine macro files:" 12314 for f in $build_xm_file; do 12315 echo " $srcdir/config/$f" 12316 done 12317 fi 12318fi 12319 |
12320case ${host} in 12321 powerpc*-*-darwin*) 12322 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5 12323echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6 12324if test "${gcc_cv_mcontext_underscores+set}" = set; then 12325 echo $ECHO_N "(cached) $ECHO_C" >&6 12326else 12327 cat >conftest.$ac_ext <<_ACEOF 12328 12329#include <sys/signal.h> 12330#include <ucontext.h> 12331int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; } 12332 12333_ACEOF 12334rm -f conftest.$ac_objext 12335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12336 (eval $ac_compile) 2>conftest.er1 12337 ac_status=$? 12338 grep -v '^ *+' conftest.er1 >conftest.err 12339 rm -f conftest.er1 12340 cat conftest.err >&5 12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12342 (exit $ac_status); } && 12343 { ac_try='test -z "$ac_c_werror_flag" 12344 || test ! -s conftest.err' 12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12346 (eval $ac_try) 2>&5 12347 ac_status=$? 12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12349 (exit $ac_status); }; } && 12350 { ac_try='test -s conftest.$ac_objext' 12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12352 (eval $ac_try) 2>&5 12353 ac_status=$? 12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12355 (exit $ac_status); }; }; then 12356 gcc_cv_mcontext_underscores=no 12357else 12358 echo "$as_me: failed program was:" >&5 12359sed 's/^/| /' conftest.$ac_ext >&5 12360 12361gcc_cv_mcontext_underscores=yes 12362fi 12363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12364fi 12365echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5 12366echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6 12367 if test $gcc_cv_mcontext_underscores = yes; then 12368 12369cat >>confdefs.h <<\_ACEOF 12370#define HAS_MCONTEXT_T_UNDERSCORES 12371_ACEOF 12372 12373 fi 12374 ;; 12375esac 12376 12377# --------- 12378# Threading 12379# --------- 12380 |
12381# Check if a valid thread package |
12382case ${enable_threads} in |
12383 "" | no) 12384 # No threads 12385 target_thread_file='single' 12386 ;; 12387 yes) 12388 # default 12389 target_thread_file='single' 12390 ;; |
12391 aix | dce | gnat | irix | posix | posix95 | rtems | \ |
12392 single | solaris | vxworks | win32 ) |
12393 target_thread_file=${enable_threads} |
12394 ;; 12395 *) |
12396 echo "${enable_threads} is an unknown thread package" 1>&2 |
12397 exit 1 12398 ;; 12399esac 12400 12401if test x${thread_file} = x; then 12402 # No thread file set by target-specific clauses in config.gcc, 12403 # so use file chosen by default logic above 12404 thread_file=${target_thread_file} 12405fi 12406 |
12407# Make gthr-default.h if we have a thread file. 12408gthread_flags= 12409if test $thread_file != single; then 12410 rm -f gthr-default.h 12411 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h 12412 gthread_flags=-DHAVE_GTHR_DEFAULT 12413fi 12414 12415 12416# -------- 12417# UNSORTED 12418# -------- 12419 12420use_cxa_atexit=no |
12421if test x$enable___cxa_atexit = xyes || \ 12422 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then |
12423 if test x$host = x$target; then 12424 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5 |
12425echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6 12426if test "${ac_cv_func___cxa_atexit+set}" = set; then 12427 echo $ECHO_N "(cached) $ECHO_C" >&6 12428else 12429 cat >conftest.$ac_ext <<_ACEOF 12430/* confdefs.h. */ 12431_ACEOF 12432cat confdefs.h >>conftest.$ac_ext --- 74 unchanged lines hidden (view full) --- 12507ac_cv_func___cxa_atexit=no 12508fi 12509rm -f conftest.err conftest.$ac_objext \ 12510 conftest$ac_exeext conftest.$ac_ext 12511fi 12512echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5 12513echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6 12514if test $ac_cv_func___cxa_atexit = yes; then |
12515 use_cxa_atexit=yes 12516else 12517 echo "__cxa_atexit can't be enabled on this target" 12518fi |
12519 |
12520 else 12521 # We can't check for __cxa_atexit when building a cross, so assume 12522 # it is available 12523 use_cxa_atexit=yes 12524 fi 12525 if test x$use_cxa_atexit = xyes; then 12526 |
12527cat >>confdefs.h <<\_ACEOF |
12528#define DEFAULT_USE_CXA_ATEXIT 2 |
12529_ACEOF 12530 |
12531 fi 12532fi 12533 12534use_getipinfo=yes 12535if test x$with_system_libunwind = xyes; then 12536 if test x$host = x$target; then 12537 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5 12538echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6 12539if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then 12540 echo $ECHO_N "(cached) $ECHO_C" >&6 |
12541else |
12542 ac_func_search_save_LIBS=$LIBS 12543ac_cv_search__Unwind_GetIPInfo=no 12544cat >conftest.$ac_ext <<_ACEOF 12545/* confdefs.h. */ 12546_ACEOF 12547cat confdefs.h >>conftest.$ac_ext 12548cat >>conftest.$ac_ext <<_ACEOF 12549/* end confdefs.h. */ 12550 12551/* Override any gcc2 internal prototype to avoid an error. */ 12552#ifdef __cplusplus 12553extern "C" 12554#endif 12555/* We use char because int might match the return type of a gcc2 12556 builtin and then its argument prototype would still apply. */ 12557char _Unwind_GetIPInfo (); 12558int 12559main () 12560{ 12561_Unwind_GetIPInfo (); 12562 ; 12563 return 0; 12564} 12565_ACEOF 12566rm -f conftest.$ac_objext conftest$ac_exeext 12567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12568 (eval $ac_link) 2>conftest.er1 12569 ac_status=$? 12570 grep -v '^ *+' conftest.er1 >conftest.err 12571 rm -f conftest.er1 12572 cat conftest.err >&5 12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12574 (exit $ac_status); } && 12575 { ac_try='test -z "$ac_c_werror_flag" 12576 || test ! -s conftest.err' 12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12578 (eval $ac_try) 2>&5 12579 ac_status=$? 12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12581 (exit $ac_status); }; } && 12582 { ac_try='test -s conftest$ac_exeext' 12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12584 (eval $ac_try) 2>&5 12585 ac_status=$? 12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12587 (exit $ac_status); }; }; then 12588 ac_cv_search__Unwind_GetIPInfo="none required" 12589else 12590 echo "$as_me: failed program was:" >&5 12591sed 's/^/| /' conftest.$ac_ext >&5 12592 |
12593fi |
12594rm -f conftest.err conftest.$ac_objext \ 12595 conftest$ac_exeext conftest.$ac_ext 12596if test "$ac_cv_search__Unwind_GetIPInfo" = no; then 12597 for ac_lib in unwind; do 12598 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12599 cat >conftest.$ac_ext <<_ACEOF 12600/* confdefs.h. */ 12601_ACEOF 12602cat confdefs.h >>conftest.$ac_ext 12603cat >>conftest.$ac_ext <<_ACEOF 12604/* end confdefs.h. */ |
12605 |
12606/* Override any gcc2 internal prototype to avoid an error. */ 12607#ifdef __cplusplus 12608extern "C" 12609#endif 12610/* We use char because int might match the return type of a gcc2 12611 builtin and then its argument prototype would still apply. */ 12612char _Unwind_GetIPInfo (); 12613int 12614main () 12615{ 12616_Unwind_GetIPInfo (); 12617 ; 12618 return 0; 12619} 12620_ACEOF 12621rm -f conftest.$ac_objext conftest$ac_exeext 12622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12623 (eval $ac_link) 2>conftest.er1 12624 ac_status=$? 12625 grep -v '^ *+' conftest.er1 >conftest.err 12626 rm -f conftest.er1 12627 cat conftest.err >&5 12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12629 (exit $ac_status); } && 12630 { ac_try='test -z "$ac_c_werror_flag" 12631 || test ! -s conftest.err' 12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12633 (eval $ac_try) 2>&5 12634 ac_status=$? 12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12636 (exit $ac_status); }; } && 12637 { ac_try='test -s conftest$ac_exeext' 12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12639 (eval $ac_try) 2>&5 12640 ac_status=$? 12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12642 (exit $ac_status); }; }; then 12643 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib" 12644break 12645else 12646 echo "$as_me: failed program was:" >&5 12647sed 's/^/| /' conftest.$ac_ext >&5 12648 |
12649fi |
12650rm -f conftest.err conftest.$ac_objext \ 12651 conftest$ac_exeext conftest.$ac_ext 12652 done 12653fi 12654LIBS=$ac_func_search_save_LIBS 12655fi 12656echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5 12657echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6 12658if test "$ac_cv_search__Unwind_GetIPInfo" != no; then 12659 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS" |
12660 |
12661else 12662 use_getipinfo=no 12663fi 12664 12665 fi 12666fi 12667 12668if test x$use_getipinfo = xyes; then 12669 12670cat >>confdefs.h <<\_ACEOF 12671#define HAVE_GETIPINFO 1 12672_ACEOF 12673 12674else 12675 echo "The system unwind library does not support _Unwind_GetIPInfo." 12676fi 12677 |
12678# Look for a file containing extra machine modes. 12679if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then 12680 extra_modes_file='$(srcdir)'/config/${extra_modes} 12681 12682 12683cat >>confdefs.h <<_ACEOF 12684#define EXTRA_MODES_FILE "config/$extra_modes" 12685_ACEOF 12686 12687fi 12688 |
12689# Convert extra_options into a form suitable for Makefile use. 12690extra_opt_files= 12691for f in $extra_options; do 12692 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f" 12693done 12694 12695 |
12696# auto-host.h is the file containing items generated by autoconf and is 12697# the first file included by config.h. 12698# If host=build, it is correct to have bconfig include auto-host.h 12699# as well. If host!=build, we are in error and need to do more 12700# work to find out the build config parameters. 12701if test x$host = x$build 12702then 12703 build_auto=auto-host.h |
12704else 12705 # We create a subdir, then run autoconf in the subdir. 12706 # To prevent recursion we set host and build for the new 12707 # invocation of configure to the build for this invocation 12708 # of configure. 12709 tempdir=build.$$ 12710 rm -rf $tempdir 12711 mkdir $tempdir 12712 cd $tempdir 12713 case ${srcdir} in 12714 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};; 12715 *) realsrcdir=../${srcdir};; 12716 esac 12717 saved_CFLAGS="${CFLAGS}" 12718 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ 12719 ${realsrcdir}/configure \ |
12720 --enable-languages=${enable_languages-all} \ |
12721 --target=$target_alias --host=$build_alias --build=$build_alias 12722 CFLAGS="${saved_CFLAGS}" 12723 12724 # We just finished tests for the build machine, so rename 12725 # the file auto-build.h in the gcc directory. 12726 mv auto-host.h ../auto-build.h 12727 cd .. 12728 rm -rf $tempdir 12729 build_auto=auto-build.h |
12730fi 12731 12732 12733tm_file="${tm_file} defaults.h" 12734tm_p_file="${tm_p_file} tm-preds.h" 12735host_xm_file="auto-host.h ansidecl.h ${host_xm_file}" 12736build_xm_file="${build_auto} ansidecl.h ${build_xm_file}" 12737# We don't want ansidecl.h in target files, write code there in ISO/GNU C. 12738# put this back in temporarily. |
12739xm_file="auto-host.h ansidecl.h ${xm_file}" |
12740 12741# -------- 12742# UNSORTED 12743# -------- 12744 |
12745# Compile in configure arguments. 12746if test -f configargs.h ; then 12747 # Being re-configured. 12748 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'` 12749 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" 12750else 12751 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS" 12752fi --- 12 unchanged lines hidden (view full) --- 12765static const char thread_model[] = "$thread_file"; 12766 12767static const struct { 12768 const char *name, *value; 12769} configure_default_options[] = $configure_default_options; 12770EOF 12771 12772# Internationalization |
12773# If we haven't got the data from the intl directory, 12774# assume NLS is disabled. 12775USE_NLS=no 12776LIBINTL= 12777LIBINTL_DEP= 12778INCINTL= 12779XGETTEXT= 12780GMSGFMT= 12781POSUB= |
12782 12783if test -f ../intl/config.intl; then 12784 . ../intl/config.intl |
12785fi 12786echo "$as_me:$LINENO: checking whether NLS is requested" >&5 12787echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 12788if test x"$USE_NLS" != xyes; then 12789 echo "$as_me:$LINENO: result: no" >&5 12790echo "${ECHO_T}no" >&6 12791else 12792 echo "$as_me:$LINENO: result: yes" >&5 --- 15 unchanged lines hidden (view full) --- 12808 # weeded out. 12809 case "$cat" in *\**) 12810 continue;; 12811 esac 12812 # The quadruple backslash is collapsed to a double backslash 12813 # by the backticks, then collapsed again by the double quotes, 12814 # leaving us with one backslash in the sed expression (right 12815 # before the dot that mustn't act as a wildcard). |
12816 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 12817 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` |
12818 # The user is allowed to set LINGUAS to a list of languages to 12819 # install catalogs for. If it's empty that means "all of them." 12820 if test "x$LINGUAS" = x; then 12821 CATALOGS="$CATALOGS $cat" 12822 XLINGUAS="$XLINGUAS $lang" 12823 else 12824 case "$LINGUAS" in *$lang*) 12825 CATALOGS="$CATALOGS $cat" 12826 XLINGUAS="$XLINGUAS $lang" 12827 ;; 12828 esac 12829 fi 12830 done 12831 LINGUAS="$XLINGUAS" 12832 echo "$as_me:$LINENO: result: $LINGUAS" >&5 12833echo "${ECHO_T}$LINGUAS" >&6 |
12834 12835 12836 DATADIRNAME=share 12837 12838 INSTOBJEXT=.mo 12839 12840 GENCAT=gencat 12841 12842 CATOBJEXT=.gmo 12843 |
12844fi 12845 12846# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get 12847# -liconv on the link line twice. 12848case "$LIBINTL" in *$LIBICONV*) 12849 LIBICONV= ;; 12850esac 12851 |
12852# Check whether --enable-secureplt or --disable-secureplt was given. 12853if test "${enable_secureplt+set}" = set; then 12854 enableval="$enable_secureplt" 12855 12856fi; 12857 |
12858# Windows32 Registry support for specifying GCC installation paths. 12859# Check whether --enable-win32-registry or --disable-win32-registry was given. 12860if test "${enable_win32_registry+set}" = set; then 12861 enableval="$enable_win32_registry" 12862 12863fi; |
12864 |
12865case $host_os in 12866 win32 | pe | cygwin* | mingw32* | uwin*) 12867 if test "x$enable_win32_registry" != xno; then 12868 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5 |
12869echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6 12870if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then 12871 echo $ECHO_N "(cached) $ECHO_C" >&6 12872else 12873 ac_func_search_save_LIBS=$LIBS 12874ac_cv_search_RegOpenKeyExA=no 12875cat >conftest.$ac_ext <<_ACEOF 12876/* confdefs.h. */ --- 107 unchanged lines hidden (view full) --- 12984fi 12985LIBS=$ac_func_search_save_LIBS 12986fi 12987echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5 12988echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6 12989if test "$ac_cv_search_RegOpenKeyExA" != no; then 12990 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS" 12991 |
12992else |
12993 enable_win32_registry=no |
12994fi 12995 |
12996 fi |
12997 |
12998 if test "x$enable_win32_registry" != xno; then |
12999 |
13000cat >>confdefs.h <<\_ACEOF 13001#define ENABLE_WIN32_REGISTRY 1 13002_ACEOF 13003 13004 13005 if test "x$enable_win32_registry" != xyes \ 13006 && test "x$enable_win32_registry" != x; then 13007 |
13008cat >>confdefs.h <<_ACEOF |
13009#define WIN32_REGISTRY_KEY "$enable_win32_registry" |
13010_ACEOF 13011 |
13012 fi 13013 fi 13014 ;; |
13015esac 13016 13017# Get an absolute path to the GCC top-level source directory 13018holddir=`${PWDCMD-pwd}` 13019cd $srcdir 13020topdir=`${PWDCMD-pwd}` 13021cd $holddir 13022 --- 13 unchanged lines hidden (view full) --- 13036do 13037 if test -f ${srcdir}/config/$f 13038 then 13039 tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 13040 fi 13041done 13042tmake_file="${tmake_file_}" 13043 |
13044# If the host doesn't support symlinks, modify CC in 13045# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. 13046# Otherwise, we can use "CC=$(CC)". 13047rm -f symtest.tem |
13048case "$LN_S" in 13049 *-s*) 13050 cc_set_by_configure="\$(CC)" 13051 quoted_cc_set_by_configure="\$(CC)" 13052 stage_prefix_set_by_configure="\$(STAGE_PREFIX)" 13053 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)" 13054 ;; 13055 *) 13056 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" 13057 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" 13058 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" 13059 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`" 13060 ;; 13061esac |
13062 |
13063# This is a terrible hack which will go away some day. 13064host_cc_for_libada=${CC} 13065 13066 |
13067out_object_file=`basename $out_file .c`.o 13068 |
13069tm_file_list="options.h" 13070tm_include_list="options.h" |
13071for f in $tm_file; do 13072 case $f in 13073 defaults.h ) 13074 tm_file_list="${tm_file_list} \$(srcdir)/$f" 13075 tm_include_list="${tm_include_list} $f" 13076 ;; 13077 * ) 13078 tm_file_list="${tm_file_list} \$(srcdir)/config/$f" --- 72 unchanged lines hidden (view full) --- 13151 esac 13152done 13153 13154# Define macro CROSS_COMPILE in compilation if this is a cross-compiler. 13155# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR. 13156CROSS= 13157ALL=all.internal 13158SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' |
13159 13160if test "x$with_build_sysroot" != x; then 13161 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)' 13162else 13163 # This value is used, even on a native system, because 13164 # CROSS_SYSTEM_HEADER_DIR is just 13165 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR). 13166 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)' 13167fi 13168 |
13169if test x$host != x$target 13170then 13171 CROSS="-DCROSS_COMPILE" 13172 ALL=all.cross |
13173 SYSTEM_HEADER_DIR=$build_system_header_dir |
13174 case "$host","$target" in 13175 # Darwin crosses can use the host system's libraries and headers, 13176 # because of the fat library support. Of course, it must be the 13177 # same version of Darwin on both sides. Allow the user to 13178 # just say --target=foo-darwin without a version number to mean 13179 # "the version on this system". 13180 *-*-darwin*,*-*-darwin*) 13181 hostos=`echo $host | sed 's/.*-darwin/darwin/'` --- 5 unchanged lines hidden (view full) --- 13187 fi 13188 ;; 13189 13190 i?86-*-*,x86_64-*-* \ 13191 | powerpc*-*-*,powerpc64*-*-*) 13192 CROSS="$CROSS -DNATIVE_CROSS" ;; 13193 esac 13194elif test "x$TARGET_SYSTEM_ROOT" != x; then |
13195 SYSTEM_HEADER_DIR=$build_system_header_dir |
13196fi 13197 13198# If this is a cross-compiler that does not 13199# have its own set of headers then define 13200# inhibit_libc 13201 13202# If this is using newlib, without having the headers available now, 13203# then define inhibit_libc in LIBGCC2_CFLAGS. 13204# This prevents libgcc2 from containing any code which requires libc 13205# support. |
13206inhibit_libc=false |
13207if { { test x$host != x$target && test "x$with_sysroot" = x ; } || 13208 test x$with_newlib = xyes ; } && 13209 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then |
13210 inhibit_libc=true |
13211fi 13212 13213 13214# When building gcc with a cross-compiler, we need to adjust things so 13215# that the generator programs are still built with the native compiler. 13216# Also, we cannot run fixincludes or fix-header. 13217 13218# These are the normal (build=host) settings: |
13219CC_FOR_BUILD='$(CC)' 13220BUILD_CFLAGS='$(ALL_CFLAGS)' |
13221STMP_FIXINC=stmp-fixinc 13222 13223# Possibly disable fixproto, on a per-target basis. 13224case ${use_fixproto} in 13225 no) 13226 STMP_FIXPROTO= 13227 ;; 13228 yes) 13229 STMP_FIXPROTO=stmp-fixproto 13230 ;; 13231esac 13232 13233 13234# And these apply if build != host, or we are generating coverage data 13235if test x$build != x$host || test "x$coverage_flags" != x 13236then |
13237 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' 13238 13239 if test "x$TARGET_SYSTEM_ROOT" = x; then |
13240 if test "x$STMP_FIXPROTO" != x; then 13241 STMP_FIXPROTO=stmp-install-fixproto 13242 fi |
13243 fi 13244fi 13245 13246# Expand extra_headers to include complete path. 13247# This substitutes for lots of t-* files. 13248extra_headers_list= 13249# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers. 13250for file in ${extra_headers} ; do 13251 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}" 13252done 13253 |
13254# Define collect2 in Makefile. 13255case $host_can_use_collect2 in 13256 no) collect2= ;; 13257 *) collect2='collect2$(exeext)' ;; 13258esac 13259 13260 |
13261# Add a definition of USE_COLLECT2 if system wants one. 13262case $use_collect2 in 13263 no) use_collect2= ;; 13264 "") ;; 13265 *) 13266 host_xm_defines="${host_xm_defines} USE_COLLECT2" 13267 xm_defines="${xm_defines} USE_COLLECT2" |
13268 case $host_can_use_collect2 in 13269 no) 13270 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5 13271echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;} 13272 { (exit 1); exit 1; }; } 13273 ;; 13274 esac |
13275 ;; 13276esac 13277 |
13278# --------------------------- 13279# Assembler & linker features 13280# --------------------------- 13281 |
13282# Identify the assembler which will work hand-in-glove with the newly 13283# built GCC, so that we can examine its features. This is the assembler 13284# which will be driven by the driver program. 13285# 13286# If build != host, and we aren't building gas in-tree, we identify a 13287# build->target assembler and hope that it will have the same features 13288# as the host->target assembler we'll be using. |
13289gcc_cv_gas_major_version= 13290gcc_cv_gas_minor_version= 13291gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas |
13292 13293if test "${gcc_cv_as+set}" = set; then 13294 : 13295else 13296 |
13297if test -x "$DEFAULT_ASSEMBLER"; then 13298 gcc_cv_as="$DEFAULT_ASSEMBLER" |
13299elif test -f $gcc_cv_as_gas_srcdir/configure.in \ |
13300 && test -f ../gas/Makefile \ 13301 && test x$build = x$host; then 13302 gcc_cv_as=../gas/as-new$build_exeext 13303elif test -x as$build_exeext; then 13304 # Build using assembler in the current directory. 13305 gcc_cv_as=./as$build_exeext 13306elif test -x $AS_FOR_TARGET; then 13307 gcc_cv_as="$AS_FOR_TARGET" 13308else 13309 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args. 13310set dummy $AS_FOR_TARGET; ac_word=$2 13311echo "$as_me:$LINENO: checking for $ac_word" >&5 13312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13313if test "${ac_cv_path_gcc_cv_as+set}" = set; then 13314 echo $ECHO_N "(cached) $ECHO_C" >&6 13315else 13316 case $gcc_cv_as in 13317 [\\/]* | ?:[\\/]*) 13318 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 13319 ;; 13320 *) 13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13322for as_dir in $PATH 13323do 13324 IFS=$as_save_IFS 13325 test -z "$as_dir" && as_dir=. 13326 for ac_exec_ext in '' $ac_executable_extensions; do 13327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13328 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 13329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13330 break 2 13331 fi 13332done 13333done 13334 13335 ;; 13336esac 13337fi 13338gcc_cv_as=$ac_cv_path_gcc_cv_as 13339 13340if test -n "$gcc_cv_as"; then 13341 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5 13342echo "${ECHO_T}$gcc_cv_as" >&6 13343else 13344 echo "$as_me:$LINENO: result: no" >&5 13345echo "${ECHO_T}no" >&6 13346fi 13347 13348fi 13349fi 13350 13351 13352ORIGINAL_AS_FOR_TARGET=$gcc_cv_as 13353 13354 13355echo "$as_me:$LINENO: checking what assembler to use" >&5 13356echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6 13357if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then 13358 # Single tree build which includes gas. We want to prefer it 13359 # over whatever linker top-level may have detected, since 13360 # we'll use what we're building after installation anyway. 13361 echo "$as_me:$LINENO: result: newly built gas" >&5 13362echo "${ECHO_T}newly built gas" >&6 |
13363 in_tree_gas=yes 13364 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 13365for f in $gcc_cv_as_bfd_srcdir/configure \ 13366 $gcc_cv_as_gas_srcdir/configure \ 13367 $gcc_cv_as_gas_srcdir/configure.in \ 13368 $gcc_cv_as_gas_srcdir/Makefile.in ; do |
13369 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f` |
13370 if test x$gcc_cv_gas_version != x; then 13371 break 13372 fi 13373done 13374gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` 13375gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 13376gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"` 13377case $gcc_cv_gas_patch_version in 13378 "") gcc_cv_gas_patch_version="0" ;; 13379esac 13380gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \ 13381 + $gcc_cv_gas_minor_version \) \* 1000 \ 13382 + $gcc_cv_gas_patch_version` 13383 |
13384 in_tree_gas_is_elf=no 13385 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \ 13386 || (grep 'obj_format = multi' ../gas/Makefile \ 13387 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null 13388 then 13389 in_tree_gas_is_elf=yes 13390 fi |
13391else 13392 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5 13393echo "${ECHO_T}$gcc_cv_as" >&6 13394 in_tree_gas=no |
13395fi 13396 |
13397# Identify the linker which will work hand-in-glove with the newly 13398# built GCC, so that we can examine its features. This is the linker 13399# which will be driven by the driver program. 13400# 13401# If build != host, and we aren't building gas in-tree, we identify a 13402# build->target linker and hope that it will have the same features 13403# as the host->target linker we'll be using. |
13404gcc_cv_gld_major_version= 13405gcc_cv_gld_minor_version= 13406gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld 13407gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd |
13408 13409if test "${gcc_cv_ld+set}" = set; then 13410 : 13411else 13412 |
13413if test -x "$DEFAULT_LINKER"; then 13414 gcc_cv_ld="$DEFAULT_LINKER" |
13415elif test -f $gcc_cv_ld_gld_srcdir/configure.in \ |
13416 && test -f ../ld/Makefile \ 13417 && test x$build = x$host; then 13418 gcc_cv_ld=../ld/ld-new$build_exeext 13419elif test -x collect-ld$build_exeext; then 13420 # Build using linker in the current directory. 13421 gcc_cv_ld=./collect-ld$build_exeext 13422elif test -x $LD_FOR_TARGET; then 13423 gcc_cv_ld="$LD_FOR_TARGET" 13424else 13425 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args. 13426set dummy $LD_FOR_TARGET; ac_word=$2 13427echo "$as_me:$LINENO: checking for $ac_word" >&5 13428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13429if test "${ac_cv_path_gcc_cv_ld+set}" = set; then 13430 echo $ECHO_N "(cached) $ECHO_C" >&6 13431else 13432 case $gcc_cv_ld in 13433 [\\/]* | ?:[\\/]*) 13434 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 13435 ;; 13436 *) 13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13438for as_dir in $PATH 13439do 13440 IFS=$as_save_IFS 13441 test -z "$as_dir" && as_dir=. 13442 for ac_exec_ext in '' $ac_executable_extensions; do 13443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13444 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 13445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13446 break 2 13447 fi 13448done 13449done 13450 13451 ;; 13452esac 13453fi 13454gcc_cv_ld=$ac_cv_path_gcc_cv_ld 13455 13456if test -n "$gcc_cv_ld"; then 13457 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5 13458echo "${ECHO_T}$gcc_cv_ld" >&6 13459else 13460 echo "$as_me:$LINENO: result: no" >&5 13461echo "${ECHO_T}no" >&6 13462fi 13463 13464fi 13465fi 13466 13467 13468ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld 13469 13470 13471echo "$as_me:$LINENO: checking what linker to use" >&5 13472echo $ECHO_N "checking what linker to use... $ECHO_C" >&6 13473if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then 13474 # Single tree build which includes ld. We want to prefer it 13475 # over whatever linker top-level may have detected, since 13476 # we'll use what we're building after installation anyway. 13477 echo "$as_me:$LINENO: result: newly built ld" >&5 13478echo "${ECHO_T}newly built ld" >&6 |
13479 in_tree_ld=yes 13480 in_tree_ld_is_elf=no 13481 if (grep 'EMUL = .*elf' ../ld/Makefile \ |
13482 || grep 'EMUL = .*linux' ../ld/Makefile \ 13483 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then |
13484 in_tree_ld_is_elf=yes 13485 fi 13486 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in 13487 do |
13488 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f` |
13489 if test x$gcc_cv_gld_version != x; then 13490 break 13491 fi 13492 done 13493 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"` 13494 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"` |
13495else 13496 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5 13497echo "${ECHO_T}$gcc_cv_ld" >&6 13498 in_tree_ld=no |
13499fi 13500 |
13501# Figure out what nm we will be using. 13502gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils 13503if test "${gcc_cv_nm+set}" = set; then 13504 : 13505else |
13506 |
13507if test -f $gcc_cv_binutils_srcdir/configure.in \ 13508 && test -f ../binutils/Makefile \ 13509 && test x$build = x$host; then 13510 gcc_cv_nm=../binutils/nm-new$build_exeext 13511elif test -x nm$build_exeext; then 13512 gcc_cv_nm=./nm$build_exeext 13513elif test -x $NM_FOR_TARGET; then 13514 gcc_cv_nm="$NM_FOR_TARGET" 13515else 13516 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args. 13517set dummy $NM_FOR_TARGET; ac_word=$2 13518echo "$as_me:$LINENO: checking for $ac_word" >&5 13519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13520if test "${ac_cv_path_gcc_cv_nm+set}" = set; then 13521 echo $ECHO_N "(cached) $ECHO_C" >&6 13522else 13523 case $gcc_cv_nm in 13524 [\\/]* | ?:[\\/]*) 13525 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 13526 ;; 13527 *) 13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13529for as_dir in $PATH 13530do 13531 IFS=$as_save_IFS 13532 test -z "$as_dir" && as_dir=. 13533 for ac_exec_ext in '' $ac_executable_extensions; do 13534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13535 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 13536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13537 break 2 13538 fi 13539done 13540done |
13541 |
13542 ;; 13543esac 13544fi 13545gcc_cv_nm=$ac_cv_path_gcc_cv_nm |
13546 |
13547if test -n "$gcc_cv_nm"; then 13548 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5 13549echo "${ECHO_T}$gcc_cv_nm" >&6 13550else 13551 echo "$as_me:$LINENO: result: no" >&5 13552echo "${ECHO_T}no" >&6 13553fi |
13554 |
13555fi |
13556fi |
13557 |
13558 |
13559echo "$as_me:$LINENO: checking what nm to use" >&5 13560echo $ECHO_N "checking what nm to use... $ECHO_C" >&6 |
13561if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then |
13562 # Single tree build which includes binutils. |
13563 echo "$as_me:$LINENO: result: newly built nm" >&5 13564echo "${ECHO_T}newly built nm" >&6 |
13565 in_tree_nm=yes |
13566else |
13567 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5 13568echo "${ECHO_T}$gcc_cv_nm" >&6 13569 in_tree_nm=no |
13570fi |
13571 |
13572ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm 13573 13574 |
13575# Figure out what objdump we will be using. |
13576if test "${gcc_cv_objdump+set}" = set; then 13577 : 13578else 13579 13580if test -f $gcc_cv_binutils_srcdir/configure.in \ 13581 && test -f ../binutils/Makefile \ 13582 && test x$build = x$host; then 13583 # Single tree build which includes binutils. 13584 gcc_cv_objdump=../binutils/objdump$build_exeext 13585elif test -x objdump$build_exeext; then 13586 gcc_cv_objdump=./objdump$build_exeext 13587elif test -x $OBJDUMP_FOR_TARGET; then 13588 gcc_cv_objdump="$OBJDUMP_FOR_TARGET" 13589else 13590 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args. 13591set dummy $OBJDUMP_FOR_TARGET; ac_word=$2 13592echo "$as_me:$LINENO: checking for $ac_word" >&5 13593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13594if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then 13595 echo $ECHO_N "(cached) $ECHO_C" >&6 13596else 13597 case $gcc_cv_objdump in 13598 [\\/]* | ?:[\\/]*) 13599 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 13600 ;; 13601 *) 13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13603for as_dir in $PATH 13604do 13605 IFS=$as_save_IFS 13606 test -z "$as_dir" && as_dir=. 13607 for ac_exec_ext in '' $ac_executable_extensions; do 13608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13609 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 13610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13611 break 2 13612 fi 13613done 13614done 13615 13616 ;; 13617esac 13618fi 13619gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 13620 13621if test -n "$gcc_cv_objdump"; then 13622 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5 13623echo "${ECHO_T}$gcc_cv_objdump" >&6 13624else 13625 echo "$as_me:$LINENO: result: no" >&5 13626echo "${ECHO_T}no" >&6 13627fi 13628 13629fi 13630fi 13631 13632 |
13633echo "$as_me:$LINENO: checking what objdump to use" >&5 13634echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6 |
13635if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then |
13636 # Single tree build which includes binutils. |
13637 echo "$as_me:$LINENO: result: newly built objdump" >&5 13638echo "${ECHO_T}newly built objdump" >&6 13639elif test x$gcc_cv_objdump = x; then 13640 echo "$as_me:$LINENO: result: not found" >&5 13641echo "${ECHO_T}not found" >&6 |
13642else |
13643 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5 13644echo "${ECHO_T}$gcc_cv_objdump" >&6 |
13645fi |
13646 13647# Figure out what assembler alignment features are present. 13648echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5 13649echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6 13650if test "${gcc_cv_as_balign_and_p2align+set}" = set; then 13651 echo $ECHO_N "(cached) $ECHO_C" >&6 13652else 13653 gcc_cv_as_balign_and_p2align=no --- 147 unchanged lines hidden (view full) --- 13801if test $gcc_cv_as_weak = yes; then 13802 13803cat >>confdefs.h <<\_ACEOF 13804#define HAVE_GAS_WEAK 1 13805_ACEOF 13806 13807fi 13808 |
13809echo "$as_me:$LINENO: checking assembler for .weakref" >&5 13810echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6 13811if test "${gcc_cv_as_weakref+set}" = set; then 13812 echo $ECHO_N "(cached) $ECHO_C" >&6 13813else 13814 gcc_cv_as_weakref=no 13815 if test $in_tree_gas = yes; then 13816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 13817 then gcc_cv_as_weakref=yes 13818fi 13819 elif test x$gcc_cv_as != x; then 13820 echo ' .weakref foobar, barfnot' > conftest.s 13821 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13823 (eval $ac_try) 2>&5 13824 ac_status=$? 13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13826 (exit $ac_status); }; } 13827 then 13828 gcc_cv_as_weakref=yes 13829 else 13830 echo "configure: failed program was" >&5 13831 cat conftest.s >&5 13832 fi 13833 rm -f conftest.o conftest.s 13834 fi 13835fi 13836echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5 13837echo "${ECHO_T}$gcc_cv_as_weakref" >&6 13838if test $gcc_cv_as_weakref = yes; then 13839 13840cat >>confdefs.h <<\_ACEOF 13841#define HAVE_GAS_WEAKREF 1 13842_ACEOF 13843 13844fi 13845 |
13846echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5 13847echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6 13848if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then 13849 echo $ECHO_N "(cached) $ECHO_C" >&6 13850else 13851 gcc_cv_as_nsubspa_comdat=no 13852 if test $in_tree_gas = yes; then 13853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` --- 83 unchanged lines hidden (view full) --- 13937 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` 13938 if echo "$ld_ver" | grep GNU > /dev/null; then 13939 ld_vers=`echo $ld_ver | sed -n \ 13940 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \ 13941 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \ 13942 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \ 13943 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \ 13944 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \ |
13945 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \ 13946 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'` |
13947 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` |
13948 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 13949 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 13950 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` |
13951 if test 0"$ld_date" -lt 20020404; then 13952 if test -n "$ld_date"; then 13953 # If there was date string, but was earlier than 2002-04-04, fail 13954 gcc_cv_ld_hidden=no 13955 elif test -z "$ld_vers"; then 13956 # If there was no date string nor ld version number, something is wrong 13957 gcc_cv_ld_hidden=no 13958 else |
13959 test -z "$ld_vers_patch" && ld_vers_patch=0 13960 if test "$ld_vers_major" -lt 2; then 13961 gcc_cv_ld_hidden=no 13962 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then 13963 gcc_cv_ld_hidden="no" 13964 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then 13965 gcc_cv_ld_hidden=no 13966 fi --- 10 unchanged lines hidden (view full) --- 13977 esac 13978 fi 13979fi 13980fi 13981echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5 13982echo "${ECHO_T}$gcc_cv_ld_hidden" >&6 13983libgcc_visibility=no 13984 |
13985 |
13986if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then 13987 libgcc_visibility=yes 13988 13989cat >>confdefs.h <<\_ACEOF 13990#define HAVE_GAS_HIDDEN 1 13991_ACEOF 13992 13993fi --- 116 unchanged lines hidden (view full) --- 14110EOF 14111cat > conftest.big <<EOF 14112 0000 00000010 00000000 017a0001 781a0004 .........z..x... 14113 0010 00000001 00000012 00000018 00000000 ................ 14114 0020 00000008 04000000 0844 .........D 14115EOF 14116 # If the assembler didn't choke, and we can objdump, 14117 # and we got the correct data, then succeed. |
14118 # The text in the here-document typically retains its unix-style line 14119 # endings, while the output of objdump will use host line endings. 14120 # Therefore, use diff -b for the comparisons. |
14121 if test x$gcc_cv_objdump != x \ 14122 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ 14123 | tail -3 > conftest.got \ |
14124 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \ 14125 || diff -b conftest.big conftest.got > /dev/null 2>&1; } |
14126 then 14127 gcc_cv_as_eh_frame=yes 14128 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null' 14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14130 (eval $ac_try) 2>&5 14131 ac_status=$? 14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14133 (exit $ac_status); }; }; then --- 47 unchanged lines hidden (view full) --- 14181 cat conftest.s >&5 14182 fi 14183 rm -f conftest.o conftest.s 14184 fi 14185fi 14186echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5 14187echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6 14188 |
14189if test $gcc_cv_as_shf_merge = no; then 14190 echo "$as_me:$LINENO: checking assembler for section merging support" >&5 14191echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6 14192if test "${gcc_cv_as_shf_merge+set}" = set; then 14193 echo $ECHO_N "(cached) $ECHO_C" >&6 14194else 14195 gcc_cv_as_shf_merge=no 14196 if test $in_tree_gas = yes; then 14197 if test $in_tree_gas_is_elf = yes \ 14198 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 14199 then gcc_cv_as_shf_merge=yes 14200fi 14201 elif test x$gcc_cv_as != x; then 14202 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s 14203 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5' 14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14205 (eval $ac_try) 2>&5 14206 ac_status=$? 14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14208 (exit $ac_status); }; } 14209 then 14210 gcc_cv_as_shf_merge=yes 14211 else 14212 echo "configure: failed program was" >&5 14213 cat conftest.s >&5 14214 fi 14215 rm -f conftest.o conftest.s 14216 fi 14217fi 14218echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5 14219echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6 |
14220 |
14221fi 14222 |
14223cat >>confdefs.h <<_ACEOF 14224#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi` 14225_ACEOF 14226 14227 |
14228echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5 14229echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6 14230if test "${gcc_cv_as_comdat_group+set}" = set; then 14231 echo $ECHO_N "(cached) $ECHO_C" >&6 14232else 14233 gcc_cv_as_comdat_group=no 14234 if test $in_tree_gas = yes; then 14235 if test $in_tree_gas_is_elf = yes \ 14236 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 14237 then gcc_cv_as_comdat_group=yes 14238fi 14239 elif test x$gcc_cv_as != x; then 14240 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s 14241 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5' 14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14243 (eval $ac_try) 2>&5 14244 ac_status=$? 14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14246 (exit $ac_status); }; } 14247 then 14248 gcc_cv_as_comdat_group=yes 14249 else 14250 echo "configure: failed program was" >&5 14251 cat conftest.s >&5 14252 fi 14253 rm -f conftest.o conftest.s 14254 fi 14255fi 14256echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5 14257echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6 14258 14259if test $gcc_cv_as_comdat_group = yes; then 14260 gcc_cv_as_comdat_group_percent=no 14261else 14262 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5 14263echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6 14264if test "${gcc_cv_as_comdat_group_percent+set}" = set; then 14265 echo $ECHO_N "(cached) $ECHO_C" >&6 14266else 14267 gcc_cv_as_comdat_group_percent=no 14268 if test $in_tree_gas = yes; then 14269 if test $in_tree_gas_is_elf = yes \ 14270 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 14271 then gcc_cv_as_comdat_group_percent=yes 14272fi 14273 elif test x$gcc_cv_as != x; then 14274 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s 14275 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5' 14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14277 (eval $ac_try) 2>&5 14278 ac_status=$? 14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14280 (exit $ac_status); }; } 14281 then 14282 gcc_cv_as_comdat_group_percent=yes 14283 else 14284 echo "configure: failed program was" >&5 14285 cat conftest.s >&5 14286 fi 14287 rm -f conftest.o conftest.s 14288 fi 14289fi 14290echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5 14291echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6 14292 14293fi 14294if test $in_tree_ld != yes && test x"$ld_vers" != x; then 14295 comdat_group=yes 14296 if test 0"$ld_date" -lt 20050308; then 14297 if test -n "$ld_date"; then 14298 # If there was date string, but was earlier than 2005-03-08, fail 14299 comdat_group=no 14300 elif test "$ld_vers_major" -lt 2; then 14301 comdat_group=no 14302 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 14303 comdat_group=no 14304 fi 14305 fi 14306else 14307 # assume linkers other than GNU ld don't support COMDAT group 14308 comdat_group=no 14309fi 14310if test $comdat_group = no; then 14311 gcc_cv_as_comdat_group=no 14312 gcc_cv_as_comdat_group_percent=no 14313fi 14314 14315cat >>confdefs.h <<_ACEOF 14316#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi` 14317_ACEOF 14318 14319 |
14320# Thread-local storage - the check is heavily parametrized. 14321conftest_s= 14322tls_first_major= 14323tls_first_minor= 14324tls_as_opt= 14325case "$target" in 14326 alpha*-*-*) 14327 conftest_s=' --- 13 unchanged lines hidden (view full) --- 14341 ldq $1,foo($29) !gottprel 14342 ldah $2,foo($29) !tprelhi 14343 lda $3,foo($2) !tprello 14344 lda $4,foo($29) !tprel' 14345 tls_first_major=2 14346 tls_first_minor=13 14347 tls_as_opt=--fatal-warnings 14348 ;; |
14349 frv*-*-*) 14350 conftest_s=' 14351 .section ".tdata","awT",@progbits 14352x: .long 25 14353 .text 14354 call #gettlsoff(x)' 14355 tls_first_major=2 14356 tls_first_minor=14 14357 ;; 14358 hppa*-*-linux*) 14359 conftest_s=' 14360t1: .reg %r20 14361t2: .reg %r21 14362gp: .reg %r19 14363 .section ".tdata","awT",@progbits 14364foo: .long 25 14365 .text 14366 .align 4 14367 addil LT%foo-$tls_gdidx$,gp 14368 ldo RT%foo-$tls_gdidx$(%r1),%arg0 14369 b __tls_get_addr 14370 nop 14371 addil LT%foo-$tls_ldidx$,gp 14372 b __tls_get_addr 14373 ldo RT%foo-$tls_ldidx$(%r1),%arg0 14374 addil LR%foo-$tls_dtpoff$,%ret0 14375 ldo RR%foo-$tls_dtpoff$(%r1),%t1 14376 mfctl %cr27,%t1 14377 addil LT%foo-$tls_ieoff$,gp 14378 ldw RT%foo-$tls_ieoff$(%r1),%t2 14379 add %t1,%t2,%t3 14380 mfctl %cr27,%t1 14381 addil LR%foo-$tls_leoff$,%t1 14382 ldo RR%foo-$tls_leoff$(%r1),%t2' 14383 tls_first_major=2 14384 tls_first_minor=15 14385 tls_as_opt=--fatal-warnings 14386 ;; 14387 arm*-*-*) 14388 conftest_s=' 14389 .section ".tdata","awT",%progbits 14390foo: .long 25 14391 .text 14392.word foo(gottpoff) 14393.word foo(tpoff) 14394.word foo(tlsgd) 14395.word foo(tlsldm) 14396.word foo(tlsldo)' 14397 tls_first_major=2 14398 tls_first_minor=17 14399 ;; |
14400 i[34567]86-*-*) 14401 conftest_s=' 14402 .section ".tdata","awT",@progbits 14403foo: .long 25 14404 .text 14405 movl %gs:0, %eax 14406 leal foo@TLSGD(,%ebx,1), %eax 14407 leal foo@TLSLDM(%ebx), %eax --- 37 unchanged lines hidden (view full) --- 14445 movl r23 = @dtprel(foo#) 14446 addl r20 = @tprel(foo#), gp 14447 adds r22 = @tprel(foo#), r13 14448 movl r24 = @tprel(foo#)' 14449 tls_first_major=2 14450 tls_first_minor=13 14451 tls_as_opt=--fatal-warnings 14452 ;; |
14453 mips*-*-*) 14454 conftest_s=' 14455 .section .tdata,"awT",@progbits 14456x: 14457 .word 2 14458 .text 14459 addiu $4, $28, %tlsgd(x) 14460 addiu $4, $28, %tlsldm(x) 14461 lui $4, %dtprel_hi(x) 14462 addiu $4, $4, %dtprel_lo(x) 14463 lw $4, %gottprel(x)($28) 14464 lui $4, %tprel_hi(x) 14465 addiu $4, $4, %tprel_lo(x)' 14466 tls_first_major=2 14467 tls_first_minor=16 14468 tls_as_opt='-32 --fatal-warnings' 14469 ;; |
14470 powerpc-*-*) 14471 conftest_s=' 14472 .section ".tdata","awT",@progbits 14473 .align 2 14474ld0: .space 4 14475ld1: .space 4 14476x1: .space 4 14477x2: .space 4 --- 97 unchanged lines hidden (view full) --- 14575 .long foo@GOTTPOFF 14576 .long foo@TPOFF' 14577 tls_first_major=2 14578 tls_first_minor=13 14579 tls_as_opt=--fatal-warnings 14580 ;; 14581 sparc*-*-*) 14582 case "$target" in |
14583 sparc*-sun-solaris2.[56789]*) 14584 # TLS was introduced in the Solaris 9 4/04 release but 14585 # we do not enable it by default on Solaris 9 either. 14586 if test "x$enable_tls" = xyes ; then 14587 on_solaris=yes 14588 else 14589 enable_tls=no; 14590 fi 14591 ;; |
14592 sparc*-sun-solaris2.*) 14593 on_solaris=yes 14594 ;; 14595 *) 14596 on_solaris=no 14597 ;; 14598 esac 14599 if test x$on_solaris = xyes && test x$gas_flag = xno; then --- 45 unchanged lines hidden (view full) --- 14645 xor %l1, %tle_lox10(foo), %o5 14646 ld [%g7 + %o5], %o1' 14647 tls_first_major=2 14648 tls_first_minor=14 14649 tls_as_opt="-32 --fatal-warnings" 14650 fi 14651 ;; 14652esac |
14653set_have_as_tls=no 14654if test "x$enable_tls" = xno ; then 14655 : # TLS explicitly disabled. 14656elif test "x$enable_tls" = xyes ; then 14657 set_have_as_tls=yes # TLS explicitly enabled. 14658elif test -z "$tls_first_major"; then |
14659 : # If we don't have a check, assume no support. 14660else 14661 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5 14662echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6 14663if test "${gcc_cv_as_tls+set}" = set; then 14664 echo $ECHO_N "(cached) $ECHO_C" >&6 14665else 14666 gcc_cv_as_tls=no --- 16 unchanged lines hidden (view full) --- 14683 cat conftest.s >&5 14684 fi 14685 rm -f conftest.o conftest.s 14686 fi 14687fi 14688echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5 14689echo "${ECHO_T}$gcc_cv_as_tls" >&6 14690if test $gcc_cv_as_tls = yes; then |
14691 set_have_as_tls=yes 14692fi 14693fi 14694if test $set_have_as_tls = yes ; then |
14695 14696cat >>confdefs.h <<\_ACEOF 14697#define HAVE_AS_TLS 1 14698_ACEOF 14699 14700fi |
14701 14702# Target-specific assembler checks. 14703 |
14704echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5 14705echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6 14706gcc_cv_ld_static_dynamic=no 14707if test $in_tree_ld = yes ; then 14708 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then 14709 gcc_cv_ld_static_dynamic=yes 14710 fi 14711elif test x$gcc_cv_ld != x; then 14712 # Check if linker supports -Bstatic/-Bdynamic option 14713 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \ 14714 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then 14715 gcc_cv_ld_static_dynamic=yes 14716 fi 14717fi 14718if test x"$gcc_cv_ld_static_dynamic" = xyes; then 14719 14720cat >>confdefs.h <<\_ACEOF 14721#define HAVE_LD_STATIC_DYNAMIC 1 14722_ACEOF 14723 14724fi 14725echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5 14726echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6 14727 14728if test x"$demangler_in_ld" = xyes; then 14729 echo "$as_me:$LINENO: checking linker --demangle support" >&5 14730echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6 14731 gcc_cv_ld_demangle=no 14732 if test $in_tree_ld = yes; then 14733 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \ 14734 gcc_cv_ld_demangle=yes 14735 fi 14736 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then 14737 # Check if the GNU linker supports --demangle option 14738 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then 14739 gcc_cv_ld_demangle=yes 14740 fi 14741 fi 14742 if test x"$gcc_cv_ld_demangle" = xyes; then 14743 14744cat >>confdefs.h <<\_ACEOF 14745#define HAVE_LD_DEMANGLE 1 14746_ACEOF 14747 14748 fi 14749 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5 14750echo "${ECHO_T}$gcc_cv_ld_demangle" >&6 14751fi 14752 |
14753case "$target" in 14754 # All TARGET_ABI_OSF targets. 14755 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*) 14756 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5 14757echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6 14758if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then 14759 echo $ECHO_N "(cached) $ECHO_C" >&6 14760else --- 319 unchanged lines hidden (view full) --- 15080cat >>confdefs.h <<\_ACEOF 15081#define HAVE_AS_OFFSETABLE_LO10 1 15082_ACEOF 15083 15084fi 15085 ;; 15086 15087 i[34567]86-*-* | x86_64-*-*) |
15088 case $target_os in 15089 cygwin* | pe | mingw32*) 15090 # Used for DWARF 2 in PE 15091 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5 15092echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6 15093if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then 15094 echo $ECHO_N "(cached) $ECHO_C" >&6 15095else 15096 gcc_cv_as_ix86_pe_secrel32=no 15097 if test $in_tree_gas = yes; then 15098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 15099 then gcc_cv_as_ix86_pe_secrel32=yes 15100fi 15101 elif test x$gcc_cv_as != x; then 15102 echo '.text 15103foo: nop 15104.data 15105 .secrel32 foo' > conftest.s 15106 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15108 (eval $ac_try) 2>&5 15109 ac_status=$? 15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15111 (exit $ac_status); }; } 15112 then 15113 if test x$gcc_cv_ld != x \ 15114 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then 15115 gcc_cv_as_ix86_pe_secrel32=yes 15116 fi 15117 rm -f conftest 15118 else 15119 echo "configure: failed program was" >&5 15120 cat conftest.s >&5 15121 fi 15122 rm -f conftest.o conftest.s 15123 fi 15124fi 15125echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5 15126echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6 15127if test $gcc_cv_as_ix86_pe_secrel32 = yes; then 15128 15129cat >>confdefs.h <<\_ACEOF 15130#define HAVE_GAS_PE_SECREL32_RELOC 1 15131_ACEOF 15132 15133fi 15134 ;; 15135 esac 15136 |
15137 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5 15138echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6 15139if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then 15140 echo $ECHO_N "(cached) $ECHO_C" >&6 15141else 15142 gcc_cv_as_ix86_filds_fists=no 15143 if test $in_tree_gas = yes; then 15144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0` --- 54 unchanged lines hidden (view full) --- 15199if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then 15200 15201cat >>confdefs.h <<\_ACEOF 15202#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1 15203_ACEOF 15204 15205fi 15206 |
15207 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5 15208echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6 15209if test "${gcc_cv_as_ix86_ffreep+set}" = set; then 15210 echo $ECHO_N "(cached) $ECHO_C" >&6 15211else 15212 gcc_cv_as_ix86_ffreep=no 15213 if test x$gcc_cv_as != x; then 15214 echo 'ffreep %st(1)' > conftest.s 15215 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15217 (eval $ac_try) 2>&5 15218 ac_status=$? 15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15220 (exit $ac_status); }; } 15221 then 15222 gcc_cv_as_ix86_ffreep=yes 15223 else 15224 echo "configure: failed program was" >&5 15225 cat conftest.s >&5 15226 fi 15227 rm -f conftest.o conftest.s 15228 fi 15229fi 15230echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5 15231echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6 15232if test $gcc_cv_as_ix86_ffreep = yes; then 15233 15234cat >>confdefs.h <<\_ACEOF 15235#define HAVE_AS_IX86_FFREEP 1 15236_ACEOF 15237 15238fi 15239 |
15240 # This one is used unconditionally by i386.[ch]; it is to be defined 15241 # to 1 if the feature is present, 0 otherwise. 15242 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5 15243echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6 15244if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then 15245 echo $ECHO_N "(cached) $ECHO_C" >&6 15246else 15247 gcc_cv_as_ix86_gotoff_in_data=no --- 72 unchanged lines hidden (view full) --- 15320_ACEOF 15321 15322fi 15323 15324 ;; 15325 15326 powerpc*-*-*) 15327 case $target in |
15328 *-*-aix*) conftest_s=' .machine "pwr5" 15329 .csect .text[PR] |
15330 mfcr 3,128';; |
15331 *-*-darwin*) 15332 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5 15333echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6 15334if test "${gcc_cv_as_machine_directive+set}" = set; then 15335 echo $ECHO_N "(cached) $ECHO_C" >&6 15336else 15337 gcc_cv_as_machine_directive=no 15338 if test x$gcc_cv_as != x; then 15339 echo ' .machine ppc7400' > conftest.s 15340 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15342 (eval $ac_try) 2>&5 15343 ac_status=$? 15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15345 (exit $ac_status); }; } 15346 then 15347 gcc_cv_as_machine_directive=yes 15348 else 15349 echo "configure: failed program was" >&5 15350 cat conftest.s >&5 15351 fi 15352 rm -f conftest.o conftest.s 15353 fi 15354fi 15355echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5 15356echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6 15357 15358 if test x$gcc_cv_as_machine_directive != xyes; then 15359 echo "*** This target requires an assembler supporting \".machine\"" >&2 15360 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2 15361 test x$build = x$target && exit 1 15362 fi 15363 conftest_s=' .text |
15364 mfcr r3,128';; |
15365 *) conftest_s=' .machine power4 15366 .text |
15367 mfcr 3,128';; 15368 esac 15369 15370 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5 15371echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6 15372if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then 15373 echo $ECHO_N "(cached) $ECHO_C" >&6 15374else --- 23 unchanged lines hidden (view full) --- 15398echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6 15399if test $gcc_cv_as_powerpc_mfcrf = yes; then 15400 15401cat >>confdefs.h <<\_ACEOF 15402#define HAVE_AS_MFCRF 1 15403_ACEOF 15404 15405fi |
15406 15407 case $target in 15408 *-*-aix*) conftest_s=' .machine "pwr5" 15409 .csect .text[PR] 15410 popcntb 3,3';; 15411 *) conftest_s=' .machine power5 15412 .text 15413 popcntb 3,3';; 15414 esac 15415 15416 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5 15417echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6 15418if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then 15419 echo $ECHO_N "(cached) $ECHO_C" >&6 15420else 15421 gcc_cv_as_powerpc_popcntb=no 15422 if test $in_tree_gas = yes; then 15423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 15424 then gcc_cv_as_powerpc_popcntb=yes 15425fi 15426 elif test x$gcc_cv_as != x; then 15427 echo "$conftest_s" > conftest.s 15428 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15430 (eval $ac_try) 2>&5 15431 ac_status=$? 15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15433 (exit $ac_status); }; } 15434 then 15435 gcc_cv_as_powerpc_popcntb=yes 15436 else 15437 echo "configure: failed program was" >&5 15438 cat conftest.s >&5 15439 fi 15440 rm -f conftest.o conftest.s 15441 fi 15442fi 15443echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5 15444echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6 15445if test $gcc_cv_as_powerpc_popcntb = yes; then 15446 15447cat >>confdefs.h <<\_ACEOF 15448#define HAVE_AS_POPCNTB 1 15449_ACEOF 15450 15451fi 15452 15453 case $target in 15454 *-*-aix*) conftest_s=' .machine "pwr5x" 15455 .csect .text[PR] 15456 frin 1,1';; 15457 *) conftest_s=' .machine power5 15458 .text 15459 frin 1,1';; 15460 esac 15461 15462 echo "$as_me:$LINENO: checking assembler for fp round support" >&5 15463echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6 15464if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then 15465 echo $ECHO_N "(cached) $ECHO_C" >&6 15466else 15467 gcc_cv_as_powerpc_fprnd=no 15468 if test $in_tree_gas = yes; then 15469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 15470 then gcc_cv_as_powerpc_fprnd=yes 15471fi 15472 elif test x$gcc_cv_as != x; then 15473 echo "$conftest_s" > conftest.s 15474 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15476 (eval $ac_try) 2>&5 15477 ac_status=$? 15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15479 (exit $ac_status); }; } 15480 then 15481 gcc_cv_as_powerpc_fprnd=yes 15482 else 15483 echo "configure: failed program was" >&5 15484 cat conftest.s >&5 15485 fi 15486 rm -f conftest.o conftest.s 15487 fi 15488fi 15489echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5 15490echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6 15491if test $gcc_cv_as_powerpc_fprnd = yes; then 15492 15493cat >>confdefs.h <<\_ACEOF 15494#define HAVE_AS_FPRND 1 15495_ACEOF 15496 15497fi 15498 15499 case $target in 15500 *-*-aix*) conftest_s=' .csect .text[PR] 15501LCF..0: 15502 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';; 15503 *-*-darwin*) 15504 conftest_s=' .text 15505LCF0: 15506 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';; 15507 *) conftest_s=' .text 15508.LCF0: 15509 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';; 15510 esac 15511 15512 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5 15513echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6 15514if test "${gcc_cv_as_powerpc_rel16+set}" = set; then 15515 echo $ECHO_N "(cached) $ECHO_C" >&6 15516else 15517 gcc_cv_as_powerpc_rel16=no 15518 if test $in_tree_gas = yes; then 15519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 15520 then gcc_cv_as_powerpc_rel16=yes 15521fi 15522 elif test x$gcc_cv_as != x; then 15523 echo "$conftest_s" > conftest.s 15524 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5' 15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15526 (eval $ac_try) 2>&5 15527 ac_status=$? 15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15529 (exit $ac_status); }; } 15530 then 15531 gcc_cv_as_powerpc_rel16=yes 15532 else 15533 echo "configure: failed program was" >&5 15534 cat conftest.s >&5 15535 fi 15536 rm -f conftest.o conftest.s 15537 fi 15538fi 15539echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5 15540echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6 15541if test $gcc_cv_as_powerpc_rel16 = yes; then 15542 15543cat >>confdefs.h <<\_ACEOF 15544#define HAVE_AS_REL16 1 15545_ACEOF 15546 15547fi |
15548 ;; 15549 15550 mips*-*-*) 15551 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5 15552echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6 15553if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then 15554 echo $ECHO_N "(cached) $ECHO_C" >&6 15555else --- 22 unchanged lines hidden (view full) --- 15578echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5 15579echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6 15580if test $gcc_cv_as_mips_explicit_relocs = yes; then 15581 if test x$target_cpu_default = x 15582 then target_cpu_default=MASK_EXPLICIT_RELOCS 15583 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS" 15584 fi 15585fi |
15586 ;; 15587esac |
15588 |
15589# Mips and HP-UX need the GNU assembler. 15590# Linux on IA64 might be able to use the Intel assembler. 15591 15592case "$target" in 15593 mips*-*-* | *-*-hpux* ) 15594 if test x$gas_flag = xyes \ 15595 || test x"$host" != x"$build" \ 15596 || test ! -x "$gcc_cv_as" \ 15597 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then 15598 : 15599 else 15600 echo "*** This configuration requires the GNU assembler" >&2 15601 exit 1 15602 fi |
15603 ;; 15604esac |
15605 |
15606# ??? Not all targets support dwarf2 debug_line, even within a version 15607# of gas. Moreover, we need to emit a valid instruction to trigger any 15608# info to the output file. So, as supported targets are added to gas 2.11, 15609# add some instruction here to (also) show we expect this might work. 15610# ??? Once 2.11 is released, probably need to add first known working 15611# version to the per-target configury. 15612case "$target" in 15613 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \ 15614 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \ |
15615 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-*) |
15616 insn="nop" 15617 ;; 15618 ia64*-*-* | s390*-*-*) 15619 insn="nop 0" 15620 ;; 15621 mmix-*-*) 15622 insn="swym 0" 15623 ;; --- 18 unchanged lines hidden (view full) --- 15642 echo "$conftest_s" > conftest.s 15643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15645 (eval $ac_try) 2>&5 15646 ac_status=$? 15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15648 (exit $ac_status); }; } 15649 then |
15650 if test x$gcc_cv_objdump != x \ 15651 && $gcc_cv_objdump -h conftest.o 2> /dev/null \ 15652 | grep debug_line > /dev/null 2>&1; then |
15653 gcc_cv_as_dwarf2_debug_line=yes 15654 fi 15655 else 15656 echo "configure: failed program was" >&5 15657 cat conftest.s >&5 15658 fi 15659 rm -f conftest.o conftest.s 15660 fi --- 181 unchanged lines hidden (view full) --- 15842 gcc_cv_ld_eh_frame_hdr=yes 15843 fi 15844elif test x$gcc_cv_ld != x; then 15845 # Check if linker supports --eh-frame-hdr option 15846 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then 15847 gcc_cv_ld_eh_frame_hdr=yes 15848 fi 15849fi |
15850 |
15851if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then 15852 15853cat >>confdefs.h <<\_ACEOF 15854#define HAVE_LD_EH_FRAME_HDR 1 15855_ACEOF 15856 15857fi 15858echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5 --- 18 unchanged lines hidden (view full) --- 15877cat >>confdefs.h <<\_ACEOF 15878#define HAVE_LD_PIE 1 15879_ACEOF 15880 15881fi 15882echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5 15883echo "${ECHO_T}$gcc_cv_ld_pie" >&6 15884 |
15885# -------- 15886# UNSORTED 15887# -------- 15888 15889echo "$as_me:$LINENO: checking linker --as-needed support" >&5 15890echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6 15891if test "${gcc_cv_ld_as_needed+set}" = set; then 15892 echo $ECHO_N "(cached) $ECHO_C" >&6 15893else 15894 gcc_cv_ld_as_needed=no |
15895if test $in_tree_ld = yes ; then |
15896 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \ 15897 && test $in_tree_ld_is_elf = yes; then 15898 gcc_cv_ld_as_needed=yes |
15899 fi 15900elif test x$gcc_cv_ld != x; then |
15901 # Check if linker supports --as-needed and --no-as-needed options 15902 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then 15903 gcc_cv_ld_as_needed=yes |
15904 fi 15905fi |
15906 |
15907fi 15908echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5 15909echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6 15910if test x"$gcc_cv_ld_as_needed" = xyes; then 15911 |
15912cat >>confdefs.h <<\_ACEOF |
15913#define HAVE_LD_AS_NEEDED 1 |
15914_ACEOF 15915 15916fi |
15917 |
15918case "$target:$tm_file" in 15919 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*) 15920 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5 15921echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6 15922if test "${gcc_cv_ld_no_dot_syms+set}" = set; then |
15923 echo $ECHO_N "(cached) $ECHO_C" >&6 15924else |
15925 gcc_cv_ld_no_dot_syms=no |
15926 if test $in_tree_ld = yes ; then |
15927 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then 15928 gcc_cv_ld_no_dot_syms=yes |
15929 fi |
15930 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 15931 cat > conftest1.s <<EOF 15932 .text 15933 bl .foo 15934EOF 15935 cat > conftest2.s <<EOF 15936 .section ".opd","aw" 15937 .align 3 15938 .globl foo 15939 .type foo,@function 15940foo: 15941 .quad .LEfoo,.TOC.@tocbase,0 15942 .text 15943.LEfoo: 15944 blr 15945 .size foo,.-.LEfoo 15946EOF 15947 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 15948 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 15949 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then 15950 gcc_cv_ld_no_dot_syms=yes |
15951 fi |
15952 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s |
15953 fi 15954 15955fi |
15956echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5 15957echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6 15958 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then |
15959 15960cat >>confdefs.h <<\_ACEOF |
15961#define HAVE_LD_NO_DOT_SYMS 1 |
15962_ACEOF 15963 15964 fi 15965 ;; 15966esac 15967 |
15968echo "$as_me:$LINENO: checking linker --sysroot support" >&5 15969echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6 15970if test "${gcc_cv_ld_sysroot+set}" = set; then 15971 echo $ECHO_N "(cached) $ECHO_C" >&6 15972else 15973 gcc_cv_ld_sysroot=no 15974 if test $in_tree_ld = yes ; then 15975 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then 15976 gcc_cv_ld_sysroot=yes 15977 fi 15978 elif test x$gcc_cv_ld != x; then 15979 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then 15980 gcc_cv_ld_sysroot=yes 15981 fi 15982 fi 15983fi 15984echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5 15985echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6 15986if test x"$gcc_cv_ld_sysroot" = xyes; then 15987 15988cat >>confdefs.h <<\_ACEOF 15989#define HAVE_LD_SYSROOT 1 15990_ACEOF 15991 15992fi 15993 |
15994if test x$with_sysroot = x && test x$host = x$target \ 15995 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then 15996 15997cat >>confdefs.h <<_ACEOF 15998#define PREFIX_INCLUDE_DIR "$prefix/include" 15999_ACEOF 16000 16001fi 16002 |
16003# Test for stack protector support in target C library. 16004case "$target" in 16005 *-*-linux*) 16006 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5 16007echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6 16008if test "${gcc_cv_libc_provides_ssp+set}" = set; then 16009 echo $ECHO_N "(cached) $ECHO_C" >&6 16010else 16011 gcc_cv_libc_provides_ssp=no 16012 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then 16013 if test "x$with_sysroot" = x; then 16014 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" 16015 elif test "x$with_sysroot" = xyes; then 16016 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include" |
16017 else |
16018 glibc_header_dir="${with_sysroot}/usr/include" |
16019 fi |
16020 else 16021 glibc_header_dir=/usr/include 16022 fi 16023 # glibc 2.4 and later provides __stack_chk_fail and 16024 # either __stack_chk_guard, or TLS access to stack guard canary. 16025 if test -f $glibc_header_dir/features.h \ 16026 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \ 16027 $glibc_header_dir/features.h > /dev/null; then 16028 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \ 16029 $glibc_header_dir/features.h > /dev/null; then 16030 gcc_cv_libc_provides_ssp=yes 16031 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \ 16032 $glibc_header_dir/features.h > /dev/null \ 16033 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \ 16034 $glibc_header_dir/features.h > /dev/null; then 16035 gcc_cv_libc_provides_ssp=yes |
16036 fi |
16037 fi |
16038fi |
16039echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5 16040echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;; 16041 *) gcc_cv_libc_provides_ssp=no ;; 16042esac 16043if test x$gcc_cv_libc_provides_ssp = xyes; then |
16044 |
16045cat >>confdefs.h <<\_ACEOF 16046#define TARGET_LIBC_PROVIDES_SSP 1 16047_ACEOF |
16048 |
16049fi |
16050 |
16051# Check if TFmode long double should be used by default or not. 16052# Some glibc targets used DFmode long double, but with glibc 2.4 16053# and later they can use TFmode. 16054case "$target" in 16055 powerpc*-*-*gnu* | \ 16056 sparc*-*-linux* | \ 16057 s390*-*-linux* | \ 16058 alpha*-*-linux*) |
16059 |
16060# Check whether --with-long-double-128 or --without-long-double-128 was given. 16061if test "${with_long_double_128+set}" = set; then 16062 withval="$with_long_double_128" 16063 gcc_cv_target_ldbl128="$with_long_double_128" 16064else 16065 gcc_cv_target_ldbl128=no 16066 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then 16067 if test "x$with_sysroot" = x; then 16068 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" 16069 elif test "x$with_sysroot" = xyes; then 16070 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include" 16071 else 16072 glibc_header_dir="${with_sysroot}/usr/include" 16073 fi 16074 else 16075 glibc_header_dir=/usr/include 16076 fi 16077 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \ 16078 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \ 16079 && gcc_cv_target_ldbl128=yes |
16080 |
16081fi; 16082 ;; 16083esac 16084if test x$gcc_cv_target_ldbl128 = xyes; then |
16085 |
16086cat >>confdefs.h <<\_ACEOF 16087#define TARGET_DEFAULT_LONG_DOUBLE_128 1 16088_ACEOF |
16089 |
16090fi 16091 |
16092# Find out what GC implementation we want, or may, use. 16093 16094# Check whether --with-gc or --without-gc was given. 16095if test "${with_gc+set}" = set; then 16096 withval="$with_gc" 16097 case "$withval" in |
16098 page) |
16099 GGC=ggc-$withval 16100 ;; |
16101 zone) 16102 GGC=ggc-$withval 16103 16104cat >>confdefs.h <<\_ACEOF 16105#define GGC_ZONE 1 16106_ACEOF 16107 16108 ;; |
16109 *) 16110 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5 16111echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;} 16112 { (exit 1); exit 1; }; } 16113 ;; 16114esac 16115else 16116 GGC=ggc-page --- 30 unchanged lines hidden (view full) --- 16147echo "${ECHO_T}$maintainer_mode" >&6 16148 16149if test "$maintainer_mode" = "yes"; then 16150 MAINT='' 16151else 16152 MAINT='#' 16153fi 16154 |
16155# -------------- 16156# Language hooks 16157# -------------- 16158 |
16159# Make empty files to contain the specs and options for each language. 16160# Then add #include lines to for a compiler that has specs and/or options. 16161 |
16162subdirs= |
16163lang_opt_files= 16164lang_specs_files= 16165lang_tree_files= |
16166# These (without "all_") are set in each config-lang.in. 16167# `language' must be a single word so is spelled singularly. 16168all_languages= 16169all_boot_languages= 16170all_compilers= 16171all_stagestuff= |
16172all_outputs='Makefile gccbug mklibgcc libada-mk' |
16173# List of language makefile fragments. 16174all_lang_makefrags= 16175# List of language subdirectory makefiles. Deprecated. 16176all_lang_makefiles= 16177# Files for gengtype 16178all_gtfiles="$target_gtfiles" 16179# Files for gengtype with language 16180all_gtfiles_files_langs= 16181all_gtfiles_files_files= 16182 |
16183# These are the languages that are set in --enable-languages, 16184# and are available in the GCC tree. 16185all_selected_languages= 16186 |
16187# Add the language fragments. 16188# Languages are added via two mechanisms. Some information must be 16189# recorded in makefile variables, these are defined in config-lang.in. 16190# We accumulate them and plug them into the main Makefile. 16191# The other mechanism is a set of hooks for each of the main targets 16192# like `clean', `install', etc. 16193 16194language_hooks="Make-hooks" 16195 |
16196for lang in ${srcdir}/*/config-lang.in |
16197do |
16198 test "$lang" = "${srcdir}/*/config-lang.in" && continue 16199 16200 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` 16201 if test "x$lang_alias" = x 16202 then 16203 echo "$lang doesn't set \$language." 1>&2 16204 exit 1 16205 fi 16206 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" 16207 subdirs="$subdirs $subdir" 16208 case ",$enable_languages," in 16209 *,$lang_alias,*) 16210 all_selected_languages="$all_selected_languages $lang_alias" 16211 if test -f $srcdir/$subdir/lang-specs.h; then 16212 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" 16213 fi 16214 ;; 16215 esac 16216 16217 language= 16218 boot_language= 16219 compilers= 16220 stagestuff= 16221 outputs= 16222 gtfiles= 16223 subdir_requires= 16224 . ${srcdir}/$subdir/config-lang.in 16225 if test "x$language" = x 16226 then 16227 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2 16228 exit 1 16229 fi 16230 16231 ok=: 16232 case ",$enable_languages," in 16233 *,$lang_alias,*) ;; 16234 *) 16235 for i in $subdir_requires; do 16236 test -f "${srcdir}/$i/config-lang.in" && continue 16237 ok=false 16238 break 16239 done 16240 ;; 16241 esac 16242 $ok || continue 16243 16244 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in" 16245 if test -f $srcdir/$subdir/lang.opt; then 16246 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt" 16247 fi 16248 if test -f $srcdir/$subdir/$subdir-tree.def; then 16249 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" 16250 fi 16251 if test -f ${srcdir}/$subdir/Makefile.in 16252 then all_lang_makefiles="$subdir/Makefile" 16253 fi 16254 all_languages="$all_languages $language" 16255 if test "x$boot_language" = xyes 16256 then 16257 all_boot_languages="$all_boot_languages $language" 16258 fi 16259 all_compilers="$all_compilers $compilers" 16260 all_stagestuff="$all_stagestuff $stagestuff" 16261 all_outputs="$all_outputs $outputs" 16262 all_gtfiles="$all_gtfiles $gtfiles" 16263 for f in $gtfiles 16264 do 16265 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} " 16266 all_gtfiles_files_files="$all_gtfiles_files_files ${f} " 16267 done |
16268done 16269 16270# Pick up gtfiles for c 16271gtfiles= |
16272subdir="c" |
16273. ${srcdir}/c-config-lang.in 16274all_gtfiles="$all_gtfiles $gtfiles" 16275for f in $gtfiles 16276do |
16277 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} " |
16278 all_gtfiles_files_files="$all_gtfiles_files_files ${f} " 16279done 16280 16281check_languages= |
16282for language in $all_selected_languages |
16283do |
16284 check_languages="$check_languages check-$language" |
16285done 16286 16287# We link each language in with a set of hooks, reached indirectly via |
16288# lang.${target}. Only do so for selected languages. |
16289 16290rm -f Make-hooks 16291touch Make-hooks |
16292target_list="all.cross start.encap rest.encap tags \ 16293 install-common install-man install-info dvi pdf html \ |
16294 uninstall info man srcextra srcman srcinfo \ 16295 mostlyclean clean distclean maintainer-clean \ 16296 stage1 stage2 stage3 stage4 stageprofile stagefeedback" |
16297 |
16298for t in $target_list 16299do 16300 x= |
16301 for lang in $all_selected_languages |
16302 do |
16303 x="$x $lang.$t" |
16304 done 16305 echo "lang.$t: $x" >> Make-hooks 16306done 16307 |
16308# -------- 16309# UNSORTED 16310# -------- 16311 |
16312# Create .gdbinit. 16313 16314echo "dir ." > .gdbinit 16315echo "dir ${srcdir}" >> .gdbinit 16316if test x$gdb_needs_out_file_path = xyes 16317then 16318 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit 16319fi --- 64 unchanged lines hidden (view full) --- 16384 slibdir='$(libdir)' 16385fi 16386fi; 16387 16388 16389objdir=`${PWDCMD-pwd}` 16390 16391 |
16392 |
16393# Check whether --with-datarootdir or --without-datarootdir was given. 16394if test "${with_datarootdir+set}" = set; then 16395 withval="$with_datarootdir" 16396 datarootdir="\${prefix}/$with_datarootdir" 16397else 16398 datarootdir='$(prefix)/share' 16399fi; |
16400 16401 16402 |
16403# Check whether --with-docdir or --without-docdir was given. 16404if test "${with_docdir+set}" = set; then 16405 withval="$with_docdir" 16406 docdir="\${prefix}/$with_docdir" 16407else 16408 docdir='$(datarootdir)' 16409fi; |
16410 16411 16412 |
16413# Check whether --with-htmldir or --without-htmldir was given. 16414if test "${with_htmldir+set}" = set; then 16415 withval="$with_htmldir" 16416 htmldir="\${prefix}/$with_htmldir" 16417else 16418 htmldir='$(docdir)' 16419fi; |
16420 16421 |
16422# Substitute configuration variables |
16423 16424 16425 16426 16427 16428 16429 16430 --- 45 unchanged lines hidden (view full) --- 16476 16477 16478 16479 16480 16481 16482 16483 |
16484 16485 |
16486# Echo link setup. 16487if test x${build} = x${host} ; then 16488 if test x${host} = x${target} ; then 16489 echo "Links are now set up to build a native compiler for ${target}." 1>&2 16490 else 16491 echo "Links are now set up to build a cross-compiler" 1>&2 16492 echo " from ${host} to ${target}." 1>&2 16493 fi 16494else 16495 if test x${host} = x${target} ; then 16496 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2 16497 echo " for ${target}." 1>&2 16498 else 16499 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2 16500 echo " from ${host} to ${target}." 1>&2 16501 fi 16502fi 16503 |
16504 16505 16506 |
16507# Configure the subdirectories 16508# AC_CONFIG_SUBDIRS($subdirs) 16509 16510# Create the Makefile 16511# and configure language subdirectories 16512 ac_config_files="$ac_config_files $all_outputs" 16513 16514 --- 518 unchanged lines hidden (view full) --- 17033_ACEOF 17034 17035cat >>$CONFIG_STATUS <<_ACEOF 17036# 17037# INIT-COMMANDS section. 17038# 17039 17040subdirs='$subdirs' |
17041 |
17042_ACEOF 17043 17044 17045 17046cat >>$CONFIG_STATUS <<\_ACEOF 17047for ac_config_target in $ac_config_targets 17048do 17049 case "$ac_config_target" in --- 93 unchanged lines hidden (view full) --- 17143s,@host@,$host,;t t 17144s,@host_cpu@,$host_cpu,;t t 17145s,@host_vendor@,$host_vendor,;t t 17146s,@host_os@,$host_os,;t t 17147s,@target@,$target,;t t 17148s,@target_cpu@,$target_cpu,;t t 17149s,@target_vendor@,$target_vendor,;t t 17150s,@target_os@,$target_os,;t t |
17151s,@target_noncanonical@,$target_noncanonical,;t t 17152s,@build_libsubdir@,$build_libsubdir,;t t |
17153s,@build_subdir@,$build_subdir,;t t 17154s,@host_subdir@,$host_subdir,;t t 17155s,@target_subdir@,$target_subdir,;t t 17156s,@GENINSRC@,$GENINSRC,;t t 17157s,@CC@,$CC,;t t 17158s,@CFLAGS@,$CFLAGS,;t t 17159s,@LDFLAGS@,$LDFLAGS,;t t 17160s,@CPPFLAGS@,$CPPFLAGS,;t t 17161s,@ac_ct_CC@,$ac_ct_CC,;t t 17162s,@EXEEXT@,$EXEEXT,;t t 17163s,@OBJEXT@,$OBJEXT,;t t 17164s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t 17165s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t 17166s,@CPP@,$CPP,;t t |
17167s,@EGREP@,$EGREP,;t t |
17168s,@strict1_warn@,$strict1_warn,;t t |
17169s,@cxx_compat_warn@,$cxx_compat_warn,;t t |
17170s,@warn_cflags@,$warn_cflags,;t t 17171s,@WERROR@,$WERROR,;t t 17172s,@nocommon_flag@,$nocommon_flag,;t t |
17173s,@TREEBROWSER@,$TREEBROWSER,;t t |
17174s,@valgrind_path@,$valgrind_path,;t t 17175s,@valgrind_path_defines@,$valgrind_path_defines,;t t 17176s,@valgrind_command@,$valgrind_command,;t t 17177s,@coverage_flags@,$coverage_flags,;t t 17178s,@enable_multilib@,$enable_multilib,;t t |
17179s,@enable_decimal_float@,$enable_decimal_float,;t t |
17180s,@enable_shared@,$enable_shared,;t t 17181s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t 17182s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t 17183s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t 17184s,@onestep@,$onestep,;t t |
17185s,@datarootdir@,$datarootdir,;t t 17186s,@docdir@,$docdir,;t t 17187s,@htmldir@,$htmldir,;t t |
17188s,@SET_MAKE@,$SET_MAKE,;t t 17189s,@AWK@,$AWK,;t t |
17190s,@LN_S@,$LN_S,;t t |
17191s,@LN@,$LN,;t t |
17192s,@RANLIB@,$RANLIB,;t t 17193s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
17194s,@ranlib_flags@,$ranlib_flags,;t t |
17195s,@INSTALL@,$INSTALL,;t t 17196s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 17197s,@INSTALL_DATA@,$INSTALL_DATA,;t t 17198s,@make_compare_target@,$make_compare_target,;t t 17199s,@have_mktemp_command@,$have_mktemp_command,;t t 17200s,@MAKEINFO@,$MAKEINFO,;t t 17201s,@BUILD_INFO@,$BUILD_INFO,;t t 17202s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t 17203s,@FLEX@,$FLEX,;t t 17204s,@BISON@,$BISON,;t t |
17205s,@NM@,$NM,;t t 17206s,@AR@,$AR,;t t |
17207s,@stage1_cflags@,$stage1_cflags,;t t 17208s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t 17209s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t 17210s,@LDEXP_LIB@,$LDEXP_LIB,;t t 17211s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t 17212s,@LIBICONV@,$LIBICONV,;t t |
17213s,@LTLIBICONV@,$LTLIBICONV,;t t |
17214s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t 17215s,@manext@,$manext,;t t 17216s,@objext@,$objext,;t t |
17217s,@gthread_flags@,$gthread_flags,;t t |
17218s,@extra_modes_file@,$extra_modes_file,;t t |
17219s,@extra_opt_files@,$extra_opt_files,;t t |
17220s,@USE_NLS@,$USE_NLS,;t t 17221s,@LIBINTL@,$LIBINTL,;t t 17222s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t 17223s,@INCINTL@,$INCINTL,;t t 17224s,@XGETTEXT@,$XGETTEXT,;t t 17225s,@GMSGFMT@,$GMSGFMT,;t t 17226s,@POSUB@,$POSUB,;t t 17227s,@CATALOGS@,$CATALOGS,;t t |
17228s,@DATADIRNAME@,$DATADIRNAME,;t t 17229s,@INSTOBJEXT@,$INSTOBJEXT,;t t 17230s,@GENCAT@,$GENCAT,;t t 17231s,@CATOBJEXT@,$CATOBJEXT,;t t 17232s,@host_cc_for_libada@,$host_cc_for_libada,;t t |
17233s,@CROSS@,$CROSS,;t t 17234s,@ALL@,$ALL,;t t 17235s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t 17236s,@inhibit_libc@,$inhibit_libc,;t t |
17237s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t 17238s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t 17239s,@STMP_FIXINC@,$STMP_FIXINC,;t t 17240s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t |
17241s,@collect2@,$collect2,;t t 17242s,@gcc_cv_as@,$gcc_cv_as,;t t 17243s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t 17244s,@gcc_cv_ld@,$gcc_cv_ld,;t t 17245s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t 17246s,@gcc_cv_nm@,$gcc_cv_nm,;t t 17247s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t 17248s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t |
17249s,@libgcc_visibility@,$libgcc_visibility,;t t |
17250s,@GGC@,$GGC,;t t 17251s,@zlibdir@,$zlibdir,;t t 17252s,@zlibinc@,$zlibinc,;t t 17253s,@MAINT@,$MAINT,;t t 17254s,@gcc_tooldir@,$gcc_tooldir,;t t 17255s,@dollar@,$dollar,;t t 17256s,@slibdir@,$slibdir,;t t 17257s,@objdir@,$objdir,;t t 17258s,@subdirs@,$subdirs,;t t 17259s,@srcdir@,$srcdir,;t t 17260s,@all_boot_languages@,$all_boot_languages,;t t 17261s,@all_compilers@,$all_compilers,;t t 17262s,@all_gtfiles@,$all_gtfiles,;t t 17263s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t 17264s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t 17265s,@all_lang_makefrags@,$all_lang_makefrags,;t t 17266s,@all_lang_makefiles@,$all_lang_makefiles,;t t 17267s,@all_languages@,$all_languages,;t t |
17268s,@all_selected_languages@,$all_selected_languages,;t t |
17269s,@all_stagestuff@,$all_stagestuff,;t t 17270s,@build_exeext@,$build_exeext,;t t 17271s,@build_install_headers_dir@,$build_install_headers_dir,;t t 17272s,@build_xm_file_list@,$build_xm_file_list,;t t 17273s,@build_xm_include_list@,$build_xm_include_list,;t t 17274s,@build_xm_defines@,$build_xm_defines,;t t 17275s,@check_languages@,$check_languages,;t t 17276s,@cc_set_by_configure@,$cc_set_by_configure,;t t --- 5 unchanged lines hidden (view full) --- 17282s,@extra_headers_list@,$extra_headers_list,;t t 17283s,@extra_objs@,$extra_objs,;t t 17284s,@extra_parts@,$extra_parts,;t t 17285s,@extra_passes@,$extra_passes,;t t 17286s,@extra_programs@,$extra_programs,;t t 17287s,@float_h_file@,$float_h_file,;t t 17288s,@gcc_config_arguments@,$gcc_config_arguments,;t t 17289s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t |
17290s,@host_exeext@,$host_exeext,;t t 17291s,@host_xm_file_list@,$host_xm_file_list,;t t 17292s,@host_xm_include_list@,$host_xm_include_list,;t t 17293s,@host_xm_defines@,$host_xm_defines,;t t 17294s,@out_host_hook_obj@,$out_host_hook_obj,;t t 17295s,@install@,$install,;t t 17296s,@lang_opt_files@,$lang_opt_files,;t t 17297s,@lang_specs_files@,$lang_specs_files,;t t 17298s,@lang_tree_files@,$lang_tree_files,;t t 17299s,@local_prefix@,$local_prefix,;t t 17300s,@md_file@,$md_file,;t t 17301s,@objc_boehm_gc@,$objc_boehm_gc,;t t 17302s,@out_file@,$out_file,;t t 17303s,@out_object_file@,$out_object_file,;t t 17304s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t 17305s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t |
17306s,@thread_file@,$thread_file,;t t 17307s,@tm_file_list@,$tm_file_list,;t t 17308s,@tm_include_list@,$tm_include_list,;t t 17309s,@tm_defines@,$tm_defines,;t t 17310s,@tm_p_file_list@,$tm_p_file_list,;t t 17311s,@tm_p_include_list@,$tm_p_include_list,;t t 17312s,@xm_file_list@,$xm_file_list,;t t 17313s,@xm_include_list@,$xm_include_list,;t t 17314s,@xm_defines@,$xm_defines,;t t |
17315s,@c_target_objs@,$c_target_objs,;t t 17316s,@cxx_target_objs@,$cxx_target_objs,;t t 17317s,@target_cpu_default@,$target_cpu_default,;t t |
17318s,@GMPLIBS@,$GMPLIBS,;t t 17319s,@GMPINC@,$GMPINC,;t t |
17320s,@LIBOBJS@,$LIBOBJS,;t t 17321s,@LTLIBOBJS@,$LTLIBOBJS,;t t 17322/@language_hooks@/r $language_hooks 17323s,@language_hooks@,,;t t 17324CEOF 17325 17326_ACEOF 17327 --- 564 unchanged lines hidden (view full) --- 17892echo "$as_me: executing $ac_dest commands" >&6;} 17893 case $ac_dest in 17894 default ) 17895case ${CONFIG_HEADERS} in 17896 *auto-host.h:config.in*) 17897 echo > cstamp-h ;; 17898esac 17899# Make sure all the subdirs exist. |
17900for d in $subdirs doc build |
17901do 17902 test -d $d || mkdir $d 17903done 17904# If the host supports symlinks, point stage[1234] at ../stage[1234] so 17905# bootstrapping and the installation procedure can still use 17906# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, 17907# FLAGS_TO_PASS has been modified to solve the problem there. 17908# This is virtually a duplicate of what happens in configure.lang; we do 17909# an extra check to make sure this only happens if ln -s can be used. |
17910case "$LN_S" in 17911 *-s*) 17912 for d in ${subdirs} ; do |
17913 STARTDIR=`${PWDCMD-pwd}` 17914 cd $d 17915 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include 17916 do 17917 rm -f $t |
17918 $LN_S ../$t $t 2>/dev/null |
17919 done 17920 cd $STARTDIR |
17921 done 17922 ;; 17923esac |
17924 ;; 17925 esac 17926done 17927_ACEOF 17928 17929cat >>$CONFIG_STATUS <<\_ACEOF 17930 17931{ (exit 0); exit 0; } --- 26 unchanged lines hidden --- |