From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 70A4C3858437; Wed, 2 Feb 2022 04:28:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70A4C3858437 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libgloss: merge epiphany & libnosys & or1k configure scripts up a level X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: d5ebf5277ed397b87428510fff49d4a1b584c85d X-Git-Newrev: d5a20f0b70c73c72ec2bc4b639815bb821859255 Message-Id: <20220202042806.70A4C3858437@sourceware.org> Date: Wed, 2 Feb 2022 04:28:06 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2022 04:28:06 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dd5a20f0b70c= 73c72ec2bc4b639815bb821859255 commit d5a20f0b70c73c72ec2bc4b639815bb821859255 Author: Mike Frysinger Date: Mon Jan 24 00:12:58 2022 -0500 libgloss: merge epiphany & libnosys & or1k configure scripts up a level =20 These subdirs have unique configure scripts to do some compiler tests. The checks should work for all targets, so hoist them up to the top libgloss dir. This should allow us to delete these subdir configure scripts. =20 It means the top-level gains autoheader support, but that's fine. It wasn't exporting any defines previously (i.e. -D into CPPFLAGS), and all of the defines it now exports are only used by code in the libnosys subdir which was expecting to have a config.h. Diff: --- libgloss/aclocal.m4 | 64 + libgloss/{libnosys =3D> }/config.h.in | 0 libgloss/config/default.mh | 2 +- libgloss/configure | 1932 ++++++++++++++-- libgloss/configure.ac | 89 +- libgloss/cris/Makefile.in | 44 +- libgloss/cris/linunistd.h | 2 +- libgloss/epiphany/Makefile.in | 7 +- libgloss/epiphany/aclocal.m4 | 383 ---- libgloss/epiphany/config.h.in | 31 - libgloss/epiphany/configure | 4057 -------------------------------= --- libgloss/epiphany/configure.ac | 110 - libgloss/libnosys/Makefile.in | 7 +- libgloss/libnosys/acinclude.m4 | 27 + libgloss/libnosys/aclocal.m4 | 383 ---- libgloss/libnosys/configure | 4179 -------------------------------= ---- libgloss/libnosys/configure.ac | 181 -- libgloss/or1k/Makefile.in | 7 +- libgloss/or1k/aclocal.m4 | 383 ---- libgloss/or1k/configure | 3887 -------------------------------- libgloss/or1k/configure.ac | 65 - 21 files changed, 1976 insertions(+), 13864 deletions(-) diff --git a/libgloss/aclocal.m4 b/libgloss/aclocal.m4 index 67babf171..3b8142a4b 100644 --- a/libgloss/aclocal.m4 +++ b/libgloss/aclocal.m4 @@ -746,6 +746,70 @@ AC_DEFUN([_AM_SET_OPTIONS], AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) =20 +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_CC_C_O +# --------------- +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC +# to automatically call this. +AC_DEFUN([_AM_PROG_CC_C_O], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +AC_LANG_PUSH([C])dnl +AC_CACHE_CHECK( + [whether $CC understands -c and -o together], + [am_cv_prog_cc_c_o], + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=3Dyes + for am_i in 1 2; do + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=3Dno + break + fi + done + rm -f core conftest* + unset am_i]) +if test "$am_cv_prog_cc_c_o" !=3D yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC=3D"\$(top_srcdir)/compile \$(CC)" + CC=3D"$am_aux_dir/compile $CC" +fi +AC_LANG_POP([C])]) + +# For backward compatibility. +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) + # Check to make sure that the build environment is sane. -*- Autoconf -= *- =20 # Copyright (C) 1996-2017 Free Software Foundation, Inc. diff --git a/libgloss/libnosys/config.h.in b/libgloss/config.h.in similarity index 100% rename from libgloss/libnosys/config.h.in rename to libgloss/config.h.in diff --git a/libgloss/config/default.mh b/libgloss/config/default.mh index a86430263..987dc390d 100644 --- a/libgloss/config/default.mh +++ b/libgloss/config/default.mh @@ -1,7 +1,7 @@ NEWLIB_CFLAGS =3D `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/new= lib/targ-include -I${srcroot}/newlib/libc/include; fi` NEWLIB_LDFLAGS =3D `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/ne= wlib/ -L${objroot}/newlib/; fi` =20 -INCLUDES =3D -I. -I$(srcdir)/.. +INCLUDES =3D -I. -I$(srcdir)/.. -I$(objdir)/.. # Note that when building the library, ${MULTILIB} is not the way multilib # options are passed; they're passed in $(CFLAGS). CFLAGS_FOR_TARGET =3D -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS} diff --git a/libgloss/configure b/libgloss/configure index ac168d742..3c5f5feda 100755 --- a/libgloss/configure +++ b/libgloss/configure @@ -581,12 +581,21 @@ PACKAGE_STRING=3D'libgloss LIBGLOSS_VERSION' PACKAGE_BUGREPORT=3D'' PACKAGE_URL=3D'' =20 -ac_unique_file=3D"libnosys" +ac_no_link=3Dno enable_option_checking=3Dno -ac_subst_vars=3D'LTLIBOBJS +ac_subst_vars=3D'am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS LIBOBJS target_makefile_frag_path host_makefile_frag_path +CPP +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS CCASFLAGS CCAS RANLIB @@ -693,10 +702,15 @@ enable_dependency_tracking host_alias target_alias CCAS -CCASFLAGS' +CCASFLAGS +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP' ac_subdirs_all=3D'aarch64 csky -epiphany i386 m68k sparc @@ -709,9 +723,7 @@ mcore moxie xc16x arm -spu -or1k -libnosys' +spu' =20 # Initialize some variables set by options. ac_init_help=3D @@ -1340,6 +1352,14 @@ Optional Features: Some influential environment variables: CCAS assembler compiler command (defaults to CC) CCASFLAGS assembler compiler flags (defaults to CFLAGS) + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor =20 Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -1458,6 +1478,43 @@ fi as_fn_set_status $ac_retval =20 } # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=3D${as_lineno-"$1"} as_lineno_stack=3Das_lineno_stack=3D$as_li= neno_stack + if { { ac_try=3D"$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=3D$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=3D0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=3D1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. @@ -1813,6 +1870,7 @@ ac_compiler_gnu=3D$ac_cv_c_compiler_gnu =20 =20 =20 +ac_config_headers=3D"$ac_config_headers config.h" =20 =20 if test "${enable_shared}" =3D "yes" ; then @@ -2538,6 +2596,8 @@ if test -z "${with_multisubdir}" ; then =20 fi =20 + + config_testsuite=3Dtrue =20 config_libnosys=3Dtrue @@ -2560,8 +2620,9 @@ subdirs=3D"$subdirs aarch64" =20 ;; epiphany-*-*) - subdirs=3D"$subdirs epiphany" + ac_config_files=3D"$ac_config_files epiphany/Makefile" =20 + subdirs=3D"$subdirs epiphany" config_testsuite=3Dtrue ;; i[3456]86-*-elf* | i[3456]86-*-coff*) @@ -2762,8 +2823,9 @@ subdirs=3D"$subdirs aarch64" subdirs=3D"$subdirs iq2000" ;; or1k-*-* | or1knd-*-* ) - subdirs=3D"$subdirs or1k" + ac_config_files=3D"$ac_config_files or1k/Makefile" =20 + subdirs=3D"$subdirs or1k" ;; pru-*-*) ac_config_files=3D"$ac_config_files pru/Makefile" @@ -2779,8 +2841,9 @@ esac =20 =20 if test "${config_libnosys}" =3D "true"; then - subdirs=3D"$subdirs libnosys" + ac_config_files=3D"$ac_config_files libnosys/Makefile" =20 + subdirs=3D"$subdirs libnosys" fi =20 DEPDIR=3D"${am__leading_dot}deps" @@ -3335,178 +3398,1529 @@ test "${CCASFLAGS+set}" =3D set || CCASFLAGS=3D$= CFLAGS =20 =20 =20 -host_makefile_frag=3D${srcdir}/config/default.mh -target_makefile_frag=3D${srcdir}/config/default.mt - -host_makefile_frag_path=3D$host_makefile_frag - =20 -target_makefile_frag_path=3D$target_makefile_frag +$as_echo "#define HAVE_GNU_LD 1" >>confdefs.h =20 =20 +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a progr= am name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS =20 -if test "${multilib}" =3D "yes"; then - multilib_arg=3D"--enable-multilib" +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - multilib_arg=3D + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi =20 -# for now, only add multilibs for specific targets -ac_config_files=3D"$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF =20 -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=3D.*/\= 1/p'`; do - eval ac_val=3D\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache vari= able $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;= } ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var=3D ;; #( - *) { eval $ac_var=3D; unset $ac_var;} ;; - esac ;; - esac +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=3D$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC=3D"$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC=3D"gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done done +IFS=3D$as_save_IFS =20 - (set) 2>&1 | - case $as_nl`(ac_space=3D' '; set) 2>&1` in #( - *${as_nl}ac_space=3D\ *) - # `set' does not quote correctly, so add quotes: double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \. - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=3D\\(.*\\)/\\1=3D'\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=3D/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=3D]*\)=3D\(.*[{}].*\)$/test "${\1+set}" =3D set || &/ - t end - s/^\([^=3D]*\)=3D\(.*\)$/\1=3D${\1=3D\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - if test "x$cache_file" !=3D "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file"= >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - fi - fi +fi +fi +ac_ct_CC=3D$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" =3D x; then + CC=3D"" else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache= $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} +ac_tool_warned=3Dyes ;; +esac + CC=3D$ac_ct_CC fi +else + CC=3D"$ac_cv_prog_CC" fi -rm -f confcache - -test "x$prefix" =3D xNONE && prefix=3D$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" =3D xNONE && exec_prefix=3D'${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=3D' -:mline -/\\$/{ - N - s,\\\n,, - b mline -} -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=3D\2= /g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=3D\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=3D`sed -n "$ac_script" confdefs.h` =20 - -ac_libobjs=3D -ac_ltlibobjs=3D -U=3D -for ac_i in : $LIBOBJS; do test "x$ac_i" =3D x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script=3D's/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=3D`$as_echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=3D1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a prog= ram name with args. +set dummy ${ac_tool_prefix}cc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi done -LIBOBJS=3D$ac_libobjs + done +IFS=3D$as_save_IFS =20 -LTLIBOBJS=3D$ac_ltlibobjs +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi =20 =20 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are= newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&= 6; } - if test -n "$am_sleep_pid"; then + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else + ac_prog_rejected=3Dno +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" =3D "/usr/ucb/cc"; then + ac_prog_rejected=3Dyes + continue + fi + ac_cv_prog_CC=3D"cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS + +if test $ac_prog_rejected =3D yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# !=3D 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC=3D"$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a = program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS + +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=3D$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with= args. +set dummy $ac_prog; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC=3D"$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC=3D"$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS + +fi +fi +ac_ct_CC=3D$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" =3D x; then + CC=3D"" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} +ac_tool_warned=3Dyes ;; +esac + CC=3D$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$a= c_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=3D$2 +for ac_option in --version -v -V -qversion; do + { { ac_try=3D"$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=3D$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if { { ac_try=3D"$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; then + ac_no_link=3Dno + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=3D$ac_clean_files +ac_clean_files=3D"$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler w= orks" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=3D`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files=3D"a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles=3D +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles=3D"$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try=3D"$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT =3D no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext=3D'' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" =3D set && test "$ac_cv_exeext" !=3D no; + then :; else + ac_cv_exeext=3D`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" =3D no && ac_cv_exeext=3D + +else + ac_file=3D'' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default o= utput file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=3D$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=3D$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executable= s" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try=3D"$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=3D`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and l= ink +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=3D$ac_cv_exeext +ac_exeext=3D$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f =3D fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) !=3D 0; + + ; + return 0; +} +_ACEOF +ac_clean_files=3D"$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross com= piling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" !=3D yes; then + { { ac_try=3D"$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; } + if { ac_try=3D'./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + cross_compiling=3Dno + else + if test "$cross_compiling" =3D maybe; then + cross_compiling=3Dyes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=3D$ac_clean_files_save + +else + rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.o conftest.obj conf= test.dSYM + ac_no_link=3Dyes + # Setting cross_compile will disable run tests; it will + # also disable AC_CHECK_FILE but that's generally + # correct if we can't link. + cross_compiling=3Dyes + EXEEXT=3D + # Check that the compiler produces executables we can run. If not, eith= er +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross com= piling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" !=3D yes; then + { { ac_try=3D"$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; } + if { ac_try=3D'./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + cross_compiling=3Dno + else + if test "$cross_compiling" =3D maybe; then + cross_compiling=3Dyes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object fil= es" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try=3D"$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=3D`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=3D$ac_cv_objext +ac_objext=3D$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the= GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=3Dyes +else + ac_compiler_gnu=3Dno +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=3D$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu =3D yes; then + GCC=3Dyes +else + GCC=3D +fi +ac_test_CFLAGS=3D${CFLAGS+set} +ac_save_CFLAGS=3D$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" = >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=3D$ac_c_werror_flag + ac_c_werror_flag=3Dyes + ac_cv_prog_cc_g=3Dno + CFLAGS=3D"-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=3Dyes +else + CFLAGS=3D"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=3D$ac_save_c_werror_flag + CFLAGS=3D"-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=3Dyes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=3D$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" =3D set; then + CFLAGS=3D$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g =3D yes; then + if test "$GCC" =3D yes; then + CFLAGS=3D"-g -O2" + else + CFLAGS=3D"-g" + fi +else + if test "$GCC" =3D yes; then + CFLAGS=3D"-O2" + else + CFLAGS=3D + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept= ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=3Dno +ac_save_CC=3D$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s =3D g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!=3D'x' always comes out true, for an + array size at least. It's necessary to write '\x00'=3D=3D0 to get some= thing + that's true only with -std. */ +int osf4_cc_array ['\x00' =3D=3D 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parame= ters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) =3D=3D 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), = int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) !=3D argv[0] || f (e, argv, 1) !=3D argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=3Dextc89 -qlanglvl=3Dansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC=3D"$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=3D$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" !=3D "xno" && break +done +rm -f conftest.$ac_ext +CC=3D$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC=3D"$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >= &5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" !=3D xno; then : + +fi + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands = -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=3Dyes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_ob= jext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=3Dno + break + fi + done + rm -f core conftest* + unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" !=3D yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC=3D"\$(top_srcdir)/compile \$(CC)" + CC=3D"$am_aux_dir/compile $CC" +fi +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu + + +depcc=3D"$CC" am_compiler_list=3D + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $dep= cc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=3Dnone + if test "$am_compiler_list" =3D ""; then + am_compiler_list=3D`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=3Dfalse + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=3Dtrue ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=3Dsub/conftest.${OBJEXT-o} + am__minus_obj=3D"-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" =3D false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" =3D xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=3Dconftest.${OBJEXT-o} + am__minus_obj=3D + ;; + none) break ;; + esac + if depmode=3D$depmode \ + source=3Dsub/conftest.c object=3D$am__obj \ + depfile=3Dsub/conftest.Po tmpdepfile=3Dsub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument req= uired + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=3D$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=3Dnone +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_co= mpiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=3Ddepmode=3D$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" !=3D xno \ + && test "$am_cv_CC_dependencies_compiler_type" =3D gcc3; then + am__fastdepCC_TRUE=3D + am__fastdepCC_FALSE=3D'#' +else + am__fastdepCC_TRUE=3D'#' + am__fastdepCC_FALSE=3D +fi + + + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preproc= essor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP=3D +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=3Dfalse +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=3D: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=3D$CPP + +fi + CPP=3D$ac_cv_prog_CPP +else + ac_cv_prog_CPP=3D$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=3Dfalse +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=3D: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if target is ELF" >&5 +$as_echo_n "checking if target is ELF... " >&6; } +if ${libc_cv_is_elf+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __ELF__ +# error "not ELF" +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + libc_cv_is_elf=3Dyes +else + libc_cv_is_elf=3Dno +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_is_elf" >&5 +$as_echo "$libc_cv_is_elf" >&6; } +if test "x${libc_cv_is_elf}" =3D "xyes"; then + +$as_echo "#define HAVE_ELF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler = directive" >&5 +$as_echo_n "checking for .previous assembler directive... " >&6; } +if ${libc_cv_asm_previous_directive+:} false; then : + $as_echo_n "(cached) " >&6 +else + libc_cv_asm_previous_directive=3Dno + cat > conftest.s <&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + libc_cv_asm_previous_directive=3Dyes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_dir= ective" >&5 +$as_echo "$libc_cv_asm_previous_directive" >&6; } +if test "x${libc_cv_asm_previous_directive}" =3D "xyes"; then + +$as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assemble= r directive" >&5 +$as_echo_n "checking for .popsection assembler directive... " >&6; } +if ${libc_cv_asm_popsection_directive+:} false; then : + $as_echo_n "(cached) " >&6 +else + libc_cv_asm_popsection_directive=3Dno + cat > conftest.s <&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + libc_cv_asm_popsection_directive=3Dyes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_d= irective" >&5 +$as_echo "$libc_cv_asm_popsection_directive" >&6; } +if test "x${libc_cv_asm_popsection_directive}" =3D "xyes"; then + +$as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for section attributes" = >&5 +$as_echo_n "checking for section attributes... " >&6; } +if ${libc_cv_section_attributes+:} false; then : + $as_echo_n "(cached) " >&6 +else + libc_cv_section_attributes=3Dno + cat > conftest.c <&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + libc_cv_section_attributes=3Dyes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_section_attribut= es" >&5 +$as_echo "$libc_cv_section_attributes" >&6; } +if test "x${libc_cv_section_attributes}" =3D "xyes"; then + +$as_echo "#define HAVE_SECTION_ATTRIBUTES 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5 +$as_echo_n "checking for symbol prefix... " >&6; } +if ${libc_cv_symbol_prefix+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat > conftest.c <<\EOF +foo () { } +EOF + libc_cv_symbol_prefix=3D'' + if { ac_try=3D'${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + libc_cv_symbol_prefix=3D'$' + else + if { ac_try=3D'${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + libc_cv_symbol_prefix=3D_ + fi + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symbol_prefix" >= &5 +$as_echo "$libc_cv_symbol_prefix" >&6; } + +cat >>confdefs.h <<_ACEOF +#define __SYMBOL_PREFIX "$libc_cv_symbol_prefix" +_ACEOF + + +case "${target}" in + *-*-cygwin*) ;; + a29k-amd-udi) ;; + aarch64*-*-*) ;; + arc-*-*) ;; + arm*-*-*) ;; + bfin-*-*) ;; + cris-*-* | crisv32-*-*) ;; + d10v*) ;; + h8300*-*-*) ;; + h8500-*-*) ;; + i345686-*-sco*) ;; + lm32-*-*) ;; + m32r-*-*) ;; + mn10?00-*-*) ;; + riscv*-*-*) ;; + powerpcle-*-pe) ;; + sh*-*-*) ;; + sparc-sun-sunos*) ;; + sparc64-*-*) ;; + v850*-*-*) ;; + w65-*-*) ;; + xstormy16-*-*) ;; + z8k-*-*) ;; + *) +$as_echo "#define MISSING_SYSCALL_NAMES 1" >>confdefs.h + ;; +esac + + +host_makefile_frag=3D${srcdir}/config/default.mh +target_makefile_frag=3D${srcdir}/config/default.mt + +host_makefile_frag_path=3D$host_makefile_frag + + +target_makefile_frag_path=3D$target_makefile_frag + + + +if test "${multilib}" =3D "yes"; then + multilib_arg=3D"--enable-multilib" +else + multilib_arg=3D +fi + +# for now, only add multilibs for specific targets +ac_config_files=3D"$ac_config_files Makefile" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=3D.*/\= 1/p'`; do + eval ac_val=3D\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache vari= able $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;= } ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var=3D ;; #( + *) { eval $ac_var=3D; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=3D' '; set) 2>&1` in #( + *${as_nl}ac_space=3D\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=3D\\(.*\\)/\\1=3D'\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=3D/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=3D]*\)=3D\(.*[{}].*\)$/test "${\1+set}" =3D set || &/ + t end + s/^\([^=3D]*\)=3D\(.*\)$/\1=3D${\1=3D\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" !=3D "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file"= >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache= $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" =3D xNONE && prefix=3D$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" =3D xNONE && exec_prefix=3D'${prefix}' + +DEFS=3D-DHAVE_CONFIG_H + +ac_libobjs=3D +ac_ltlibobjs=3D +U=3D +for ac_i in : $LIBOBJS; do test "x$ac_i" =3D x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script=3D's/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=3D`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=3D1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=3D$ac_libobjs + +LTLIBOBJS=3D$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are= newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&= 6; } + if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE=3D + am__EXEEXT_FALSE=3D'#' +else + am__EXEEXT_TRUE=3D'#' + am__EXEEXT_FALSE=3D +fi =20 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. @@ -3516,6 +4930,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am_= _fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; th= en + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi =20 : "${CONFIG_STATUS=3D./config.status}" ac_write_fail=3D0 @@ -3931,11 +5349,15 @@ case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=3D$*;; esac =20 +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=3D$*;; +esac =20 =20 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=3D1 # Files that config.status was made for. config_files=3D"$ac_config_files" +config_headers=3D"$ac_config_headers" config_commands=3D"$ac_config_commands" =20 _ACEOF @@ -3957,10 +5379,15 @@ Usage: $0 [OPTION]... [TAG]... --recheck update $as_me by reconfiguring in the same conditions --file=3DFILE[:TEMPLATE] instantiate the configuration file FILE + --header=3DFILE[:TEMPLATE] + instantiate the configuration header FILE =20 Configuration files: $config_files =20 +Configuration headers: +$config_headers + Configuration commands: $config_commands =20 @@ -4027,7 +5454,18 @@ do esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=3Dfalse;; - --he | --h | --help | --hel | -h ) + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=3D`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=3Dfalse;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) @@ -4097,8 +5535,10 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=3D1 for ac_config_target in $ac_config_targets do case $ac_config_target in + "config.h") CONFIG_HEADERS=3D"$CONFIG_HEADERS config.h" ;; "doc/Makefile") CONFIG_FILES=3D"$CONFIG_FILES doc/Makefile" ;; "arc/Makefile") CONFIG_FILES=3D"$CONFIG_FILES arc/Makefile" ;; + "epiphany/Makefile") CONFIG_FILES=3D"$CONFIG_FILES epiphany/Makefile" = ;; "m32r/Makefile") CONFIG_FILES=3D"$CONFIG_FILES m32r/Makefile" ;; "m68hc11/Makefile") CONFIG_FILES=3D"$CONFIG_FILES m68hc11/Makefile" ;; "nds32/Makefile") CONFIG_FILES=3D"$CONFIG_FILES nds32/Makefile" ;; @@ -4127,8 +5567,10 @@ do "rx/Makefile") CONFIG_FILES=3D"$CONFIG_FILES rx/Makefile" ;; "tic6x/Makefile") CONFIG_FILES=3D"$CONFIG_FILES tic6x/Makefile" ;; "iq2000/Makefile") CONFIG_FILES=3D"$CONFIG_FILES iq2000/Makefile" ;; + "or1k/Makefile") CONFIG_FILES=3D"$CONFIG_FILES or1k/Makefile" ;; "pru/Makefile") CONFIG_FILES=3D"$CONFIG_FILES pru/Makefile" ;; "nios2/Makefile") CONFIG_FILES=3D"$CONFIG_FILES nios2/Makefile" ;; + "libnosys/Makefile") CONFIG_FILES=3D"$CONFIG_FILES libnosys/Makefile" = ;; "depfiles") CONFIG_COMMANDS=3D"$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES=3D"$CONFIG_FILES Makefile" ;; =20 @@ -4143,6 +5585,7 @@ done # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" =3D set || CONFIG_FILES=3D$config_files + test "${CONFIG_HEADERS+set}" =3D set || CONFIG_HEADERS=3D$config_headers test "${CONFIG_COMMANDS+set}" =3D set || CONFIG_COMMANDS=3D$config_comma= nds fi =20 @@ -4365,8 +5808,116 @@ fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=3D1 fi # test -n "$CONFIG_FILES" =20 +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim=3D'%!_!# ' +for ac_last_try in false false :; do + ac_tt=3D`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim=3D"$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=3D[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]=3D"\2"\ +D["\1"]=3D" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=3D" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]=3D"\2"\ +D["\1"]=3D" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=3D" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=3D1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=3D1 + for (key in D) D_is_set[key] =3D 1 + FS =3D "=07" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line =3D \$ 0 + split(line, arg, " ") + if (arg[1] =3D=3D "#") { + defundef =3D arg[2] + mac1 =3D arg[3] + } else { + defundef =3D substr(arg[1], 2) + mac1 =3D arg[2] + } + split(mac1, mac2, "(") #) + macro =3D mac2[1] + prefix =3D substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef =3D=3D "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=3D1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + =20 -eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do @@ -4590,7 +6141,64 @@ which seems to be undefined. Please make sure it is= defined" >&2;} esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; - + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" !=3D x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg=3D"$ac_file" +_am_stamp_count=3D1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=3D`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; =20 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file command= s" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} diff --git a/libgloss/configure.ac b/libgloss/configure.ac index f738a6c98..c288854ee 100644 --- a/libgloss/configure.ac +++ b/libgloss/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT([libgloss],[LIBGLOSS_VERSION]) -AC_CONFIG_SRCDIR([libnosys]) +AC_CONFIG_HEADER(config.h) =20 if test "${enable_shared}" =3D "yes" ; then AC_MSG_WARN([Shared libraries not supported for cross compiling, ignored= ]) @@ -17,6 +17,8 @@ if test -z "${with_multisubdir}" ; then AC_CONFIG_FILES([doc/Makefile]) fi =20 +AC_NO_EXECUTABLES + dnl indicates whether to run configure within the testsuite subdirectory config_testsuite=3Dtrue =20 @@ -36,7 +38,8 @@ case "${target}" in AC_CONFIG_SUBDIRS(csky) ;; epiphany-*-*) - AC_CONFIG_SUBDIRS(epiphany) + AC_CONFIG_FILES([epiphany/Makefile]) + subdirs=3D"$subdirs epiphany" config_testsuite=3Dtrue ;; i[[3456]]86-*-elf* | i[[3456]]86-*-coff*) @@ -196,7 +199,8 @@ case "${target}" in subdirs=3D"$subdirs iq2000" ;; or1k-*-* | or1knd-*-* ) - AC_CONFIG_SUBDIRS([or1k]) + AC_CONFIG_FILES([or1k/Makefile]) + subdirs=3D"$subdirs or1k" ;; pru-*-*) AC_CONFIG_FILES([pru/Makefile]) @@ -215,7 +219,8 @@ dnl then AC_CONFIG_SUBDIRS([testsuite]) dnl fi =20 if test "${config_libnosys}" =3D "true"; then - AC_CONFIG_SUBDIRS([libnosys]) + AC_CONFIG_FILES([libnosys/Makefile]) + subdirs=3D"$subdirs libnosys" fi =20 LIB_AC_PROG_CC @@ -229,6 +234,82 @@ AC_SUBST(LD) AC_PROG_RANLIB LIB_AM_PROG_AS =20 +AC_DEFINE(HAVE_GNU_LD, 1, [Using GNU LD]) + +AC_CACHE_CHECK([if target is ELF], libc_cv_is_elf, [dnl + AC_PREPROC_IFELSE([AC_LANG_PROGRAM( +[[#ifndef __ELF__ +# error "not ELF" +#endif +]])], [libc_cv_is_elf=3Dyes], [libc_cv_is_elf=3Dno]) +]) +if test "x${libc_cv_is_elf}" =3D "xyes"; then + AC_DEFINE(HAVE_ELF, 1, [Using ELF format]) +fi + +AC_CACHE_CHECK([for .previous assembler directive], + libc_cv_asm_previous_directive, [dnl + libc_cv_asm_previous_directive=3Dno + cat > conftest.s <&AC_FD_CC); then + libc_cv_asm_previous_directive=3Dyes + fi + rm -f conftest*]) +if test "x${libc_cv_asm_previous_directive}" =3D "xyes"; then + AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE, 1, [.previous directive allowed]) +fi + +AC_CACHE_CHECK([for .popsection assembler directive], + libc_cv_asm_popsection_directive, [dnl + libc_cv_asm_popsection_directive=3Dno + cat > conftest.s <&AC_FD_CC); then + libc_cv_asm_popsection_directive=3Dyes + fi + rm -f conftest*]) +if test "x${libc_cv_asm_popsection_directive}" =3D "xyes"; then + AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE, 1, [.pushsection/.popsection di= rectives allowed]) +fi + +AC_CACHE_CHECK([for section attributes], + libc_cv_section_attributes, [dnl + libc_cv_section_attributes=3Dno + cat > conftest.c <&AC_FD_CC); then + libc_cv_section_attributes=3Dyes + fi + rm -f conftest*]) +if test "x${libc_cv_section_attributes}" =3D "xyes"; then + AC_DEFINE(HAVE_SECTION_ATTRIBUTES, 1, [support for section attributes]) +fi + +AC_CACHE_CHECK([for symbol prefix], libc_cv_symbol_prefix, [dnl + cat > conftest.c <<\EOF +foo () { } +EOF +dnl + libc_cv_symbol_prefix=3D'' + if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/nu= ll]); then + libc_cv_symbol_prefix=3D'$' + else + if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/n= ull]); then + libc_cv_symbol_prefix=3D_ + fi + fi + rm -f conftest* ]) +AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix", [symbol pref= ix]) + +m4_include([libnosys/acinclude.m4]) + host_makefile_frag=3D${srcdir}/config/default.mh target_makefile_frag=3D${srcdir}/config/default.mt =20 diff --git a/libgloss/cris/Makefile.in b/libgloss/cris/Makefile.in index e254ce548..b8aaa3cce 100644 --- a/libgloss/cris/Makefile.in +++ b/libgloss/cris/Makefile.in @@ -252,28 +252,28 @@ syscalls.stamp: gensyscalls touch $@ =20 # Dependencies that could and should be auto-generated. -close.o: close.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../l= ibnosys/warning.h -execve.o: execve.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/..= /libnosys/warning.h -exit.o: exit.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -fork.o: fork.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -fstat.o: fstat.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../l= ibnosys/warning.h -fcntl.o: fcntl.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../l= ibnosys/warning.h -getpid.o: getpid.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/..= /libnosys/warning.h -gettod.o: gettod.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/..= /libnosys/warning.h -isatty.o: isatty.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/..= /libnosys/warning.h -kill.o: kill.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -link.o: link.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -lseek.o: lseek.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../l= ibnosys/warning.h -open.o: open.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -read.o: read.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -rename.o: rename.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/..= /libnosys/warning.h -sbrk.o: sbrk.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -stat.o: stat.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -times.o: times.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../l= ibnosys/warning.h -unlink.o: unlink.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/..= /libnosys/warning.h -wait.o: wait.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../lib= nosys/warning.h -write.o: write.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../l= ibnosys/warning.h -lcrt0.o: lcrt0.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../l= ibnosys/warning.h +close.o: close.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/w= arning.h +execve.o: execve.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys= /warning.h +exit.o: exit.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +fork.o: fork.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +fstat.o: fstat.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/w= arning.h +fcntl.o: fcntl.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/w= arning.h +getpid.o: getpid.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys= /warning.h +gettod.o: gettod.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys= /warning.h +isatty.o: isatty.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys= /warning.h +kill.o: kill.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +link.o: link.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +lseek.o: lseek.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/w= arning.h +open.o: open.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +read.o: read.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +rename.o: rename.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys= /warning.h +sbrk.o: sbrk.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +stat.o: stat.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +times.o: times.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/w= arning.h +unlink.o: unlink.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys= /warning.h +wait.o: wait.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/war= ning.h +write.o: write.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/w= arning.h +lcrt0.o: lcrt0.c linunistd.h $(objdir)/../config.h $(srcdir)/../libnosys/w= arning.h setup.o: setup.S irqtable.o: irqtable.S crti.o: crti.c diff --git a/libgloss/cris/linunistd.h b/libgloss/cris/linunistd.h index 310e4702f..3a6f318a3 100644 --- a/libgloss/cris/linunistd.h +++ b/libgloss/cris/linunistd.h @@ -33,7 +33,7 @@ #define _ASM_ELINUX_UNISTD_H_ =20 /* Our callers might want to use link_warning, so provide it from here. */ -#include "../libnosys/config.h" +#include "../config.h" #include "libnosys/warning.h" =20 #include diff --git a/libgloss/epiphany/Makefile.in b/libgloss/epiphany/Makefile.in index 4f77c3316..6cf55e25e 100644 --- a/libgloss/epiphany/Makefile.in +++ b/libgloss/epiphany/Makefile.in @@ -190,8 +190,5 @@ info: install-info: clean-info: =20 -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck +Makefile: Makefile.in ../config.status + cd .. && $(SHELL) config.status diff --git a/libgloss/epiphany/aclocal.m4 b/libgloss/epiphany/aclocal.m4 deleted file mode 100644 index 24271f381..000000000 --- a/libgloss/epiphany/aclocal.m4 +++ /dev/null @@ -1,383 +0,0 @@ -# generated automatically by aclocal 1.15.1 -*- Autoconf -*- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4= _defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -# AM_CONDITIONAL -*- Autoconf -= *- - -# Copyright (C) 1997-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ([2.52])dnl - m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE=3D - $1_FALSE=3D'#' -else - $1_TRUE=3D'#' - $1_FALSE=3D -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -m4_if([$1], [CC], [depcc=3D"$CC" am_compiler_list=3D], - [$1], [CXX], [depcc=3D"$CXX" am_compiler_list=3D], - [$1], [OBJC], [depcc=3D"$OBJC" am_compiler_list=3D'gcc3 gcc'], - [$1], [OBJCXX], [depcc=3D"$OBJCXX" am_compiler_list=3D'gcc3 gcc'], - [$1], [UPC], [depcc=3D"$UPC" am_compiler_list=3D], - [$1], [GCJ], [depcc=3D"$GCJ" am_compiler_list=3D'gcc3 gcc'], - [depcc=3D"$$1" am_compiler_list=3D]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=3Dnone - if test "$am_compiler_list" =3D ""; then - am_compiler_list=3D`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depco= mp` - fi - am__universal=3Dfalse - m4_case([$1], [CC], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=3Dtrue ;; - esac], - [CXX], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=3Dtrue ;; - esac]) - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=3Dsub/conftest.${OBJEXT-o} - am__minus_obj=3D"-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" =3D false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" =3D xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=3Dconftest.${OBJEXT-o} - am__minus_obj=3D - ;; - none) break ;; - esac - if depmode=3D$depmode \ - source=3Dsub/conftest.c object=3D$am__obj \ - depfile=3Dsub/conftest.Po tmpdepfile=3Dsub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument req= uired - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=3D$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=3Dnone -fi -]) -AC_SUBST([$1DEPMODE], [depmode=3D$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" !=3D xno \ - && test "$am_cv_$1_dependencies_compiler_type" =3D gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES. -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE([dependency-tracking], [dnl -AS_HELP_STRING( - [--enable-dependency-tracking], - [do not reject slow dependency extractors]) -AS_HELP_STRING( - [--disable-dependency-tracking], - [speeds up one-time build])]) -if test "x$enable_dependency_tracking" !=3D xno; then - am_depcomp=3D"$ac_aux_dir/depcomp" - AMDEPBACKSLASH=3D'\' - am__nodep=3D'_no' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" !=3D xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -AC_SUBST([am__nodep])dnl -_AM_SUBST_NOTMAKE([am__nodep])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -= *- - -# Copyright (C) 1999-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[{ - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=3D`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/nul= l 2>&1; then - dirpart=3D`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=3D`sed -n 's/^DEPDIR =3D //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=3D`sed -n 's/^am__include =3D //p' < "$mf"` - test -z "$am__include" && continue - am__quote=3D`sed -n 's/^am__quote =3D //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf"= | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=3D`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each '.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" !=3D x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE=3D"$AMDEP_TRUE" ac_aux_dir=3D"$ac_aux_dir"]) -]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=3D${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include=3D"#" -am__quote=3D -_am_result=3Dnone -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=3Dinclude - am__quote=3D - _am_result=3DGNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" =3D "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=3D.include - am__quote=3D"\"" - _am_result=3DBSD - ;; - esac -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Copyright (C) 2006-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputting VARIABLE =3D @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# AM_SUBST_NOTMAKE(VARIABLE) -# -------------------------- -# Public sister of _AM_SUBST_NOTMAKE. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) - -m4_include([../../config/depstand.m4]) -m4_include([../../config/lead-dot.m4]) -m4_include([../../config/override.m4]) -m4_include([../acinclude.m4]) diff --git a/libgloss/epiphany/config.h.in b/libgloss/epiphany/config.h.in deleted file mode 100644 index d5019b310..000000000 --- a/libgloss/epiphany/config.h.in +++ /dev/null @@ -1,31 +0,0 @@ -/* config.h.in. Generated from configure.in by autoheader. */ - -/* .pushsection/.popsection directives allowed */ -#undef HAVE_ASM_POPSECTION_DIRECTIVE - -/* .previous directive allowed */ -#undef HAVE_ASM_PREVIOUS_DIRECTIVE - -/* Using ELF format */ -#undef HAVE_ELF - -/* Using GNU ld */ -#undef HAVE_GNU_LD - -/* Define to the address where bug reports for this package should be sent= . */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* symbol prefix */ -#undef __SYMBOL_PREFIX diff --git a/libgloss/epiphany/configure b/libgloss/epiphany/configure deleted file mode 100755 index 54b0969ac..000000000 --- a/libgloss/epiphany/configure +++ /dev/null @@ -1,4057 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libepiphany 0.0.1. -# -# -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -# -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=3D1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=3D: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'=3D'"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=3D' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo=3D'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\= \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=3D$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=3D$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" =3D "X$as_echo") 2>/dev/null; then - as_echo=3D'print -r --' - as_echo_n=3D'print -rn --' -elif (test "X`printf %s $as_echo`" =3D "X$as_echo") 2>/dev/null; then - as_echo=3D'printf %s\n' - as_echo_n=3D'printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" =3D "X-n $as_ech= o"; then - as_echo_body=3D'eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n=3D'/usr/ucb/echo -n' - else - as_echo_body=3D'eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body=3D'eval - arg=3D$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=3D`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n=3D'sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo=3D'sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" !=3D set; then - PATH_SEPARATOR=3D: - (PATH=3D'/bin;/bin'; FPATH=3D$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH=3D'/bin:/bin'; FPATH=3D$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=3D';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=3D" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself=3D -case $0 in #(( - *[\\/]* ) as_myself=3D$0 ;; - *) as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - test -r "$as_dir/$0" && as_myself=3D$as_dir/$0 && break - done -IFS=3D$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" =3D x; then - as_myself=3D$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute = file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} =3D xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1=3D'$ ' -PS2=3D'> ' -PS4=3D'+ ' - -# NLS nuisances. -LC_ALL=3DC -export LC_ALL -LANGUAGE=3DC -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" !=3D xno && test "x$CONFIG_SHELL" !=3D x; t= hen - _as_can_reexec=3Dno; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=3D/dev/null -ENV=3D/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=3D-vx ;; - *v* ) as_opts=3D-v ;; - *x* ) as_opts=3D-x ;; - * ) as_opts=3D ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=3D; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" =3D x; then - as_bourne_compatible=3D"if test -n \"\${ZSH_VERSION+set}\" && (emulate s= h) >/dev/null 2>&1; then : - emulate sh - NULLCMD=3D: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'=3D'\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi -" - as_required=3D"as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -a[...] [diff truncated at 100000 bytes]