36 kx #! /bin/sh
36 kx # Guess values for system-dependent variables and create Makefiles.
36 kx # Generated by GNU Autoconf 2.71 for GNU C Library (see version.h).
36 kx #
36 kx # Report bugs to <https://sourceware.org/bugzilla/>.
36 kx #
36 kx #
36 kx # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
36 kx # Inc.
36 kx #
36 kx #
36 kx # This configure script is free software; the Free Software Foundation
36 kx # gives unlimited permission to copy, distribute and modify it.
36 kx ## -------------------- ##
36 kx ## M4sh Initialization. ##
36 kx ## -------------------- ##
36 kx
36 kx # Be more Bourne compatible
36 kx DUALCASE=1; export DUALCASE # for MKS sh
36 kx as_nop=:
36 kx if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
36 kx then :
36 kx emulate sh
36 kx NULLCMD=:
36 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36 kx # is contrary to our usage. Disable this feature.
36 kx alias -g '${1+"$@"}'='"$@"'
36 kx setopt NO_GLOB_SUBST
36 kx else $as_nop
36 kx case `(set -o) 2>/dev/null` in #(
36 kx *posix*) :
36 kx set -o posix ;; #(
36 kx *) :
36 kx ;;
36 kx esac
36 kx fi
36 kx
36 kx
36 kx
36 kx # Reset variables that may have inherited troublesome values from
36 kx # the environment.
36 kx
36 kx # IFS needs to be set, to space, tab, and newline, in precisely that order.
36 kx # (If _AS_PATH_WALK were called with IFS unset, it would have the
36 kx # side effect of setting IFS to empty, thus disabling word splitting.)
36 kx # Quoting is to prevent editors from complaining about space-tab.
36 kx as_nl='
36 kx '
36 kx export as_nl
36 kx IFS=" "" $as_nl"
36 kx
36 kx PS1='$ '
36 kx PS2='> '
36 kx PS4='+ '
36 kx
36 kx # Ensure predictable behavior from utilities with locale-dependent output.
36 kx LC_ALL=C
36 kx export LC_ALL
36 kx LANGUAGE=C
36 kx export LANGUAGE
36 kx
36 kx # We cannot yet rely on "unset" to work, but we need these variables
36 kx # to be unset--not just set to an empty or harmless value--now, to
36 kx # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
36 kx # also avoids known problems related to "unset" and subshell syntax
36 kx # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
36 kx for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
36 kx do eval test \${$as_var+y} \
36 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36 kx done
36 kx
36 kx # Ensure that fds 0, 1, and 2 are open.
36 kx if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
36 kx if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
36 kx if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
36 kx
36 kx # The user is always right.
36 kx if ${PATH_SEPARATOR+false} :; then
36 kx PATH_SEPARATOR=:
36 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36 kx PATH_SEPARATOR=';'
36 kx }
36 kx fi
36 kx
36 kx
36 kx # Find who we are. Look in the path if we contain no directory separator.
36 kx as_myself=
36 kx case $0 in #((
36 kx *[\\/]* ) as_myself=$0 ;;
36 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx test -r "$as_dir$0" && as_myself=$as_dir$0 && break
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx ;;
36 kx esac
36 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
36 kx # in which case we are not to be found in the path.
36 kx if test "x$as_myself" = x; then
36 kx as_myself=$0
36 kx fi
36 kx if test ! -f "$as_myself"; then
36 kx printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36 kx exit 1
36 kx fi
36 kx
36 kx
36 kx # Use a proper internal environment variable to ensure we don't fall
36 kx # into an infinite loop, continuously re-executing ourselves.
36 kx if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
36 kx _as_can_reexec=no; export _as_can_reexec;
36 kx # We cannot yet assume a decent shell, so we have to provide a
36 kx # neutralization value for shells without unset; and this also
36 kx # works around shells that cannot unset nonexistent variables.
36 kx # Preserve -v and -x to the replacement shell.
36 kx BASH_ENV=/dev/null
36 kx ENV=/dev/null
36 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
36 kx case $- in # ((((
36 kx *v*x* | *x*v* ) as_opts=-vx ;;
36 kx *v* ) as_opts=-v ;;
36 kx *x* ) as_opts=-x ;;
36 kx * ) as_opts= ;;
36 kx esac
36 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
36 kx # Admittedly, this is quite paranoid, since all the known shells bail
36 kx # out after a failed `exec'.
36 kx printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
36 kx exit 255
36 kx fi
36 kx # We don't want this to propagate to other subprocesses.
36 kx { _as_can_reexec=; unset _as_can_reexec;}
36 kx if test "x$CONFIG_SHELL" = x; then
36 kx as_bourne_compatible="as_nop=:
36 kx if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
36 kx then :
36 kx emulate sh
36 kx NULLCMD=:
36 kx # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
36 kx # is contrary to our usage. Disable this feature.
36 kx alias -g '\${1+\"\$@\"}'='\"\$@\"'
36 kx setopt NO_GLOB_SUBST
36 kx else \$as_nop
36 kx case \`(set -o) 2>/dev/null\` in #(
36 kx *posix*) :
36 kx set -o posix ;; #(
36 kx *) :
36 kx ;;
36 kx esac
36 kx fi
36 kx "
36 kx as_required="as_fn_return () { (exit \$1); }
36 kx as_fn_success () { as_fn_return 0; }
36 kx as_fn_failure () { as_fn_return 1; }
36 kx as_fn_ret_success () { return 0; }
36 kx as_fn_ret_failure () { return 1; }
36 kx
36 kx exitcode=0
36 kx as_fn_success || { exitcode=1; echo as_fn_success failed.; }
36 kx as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
36 kx as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
36 kx as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
36 kx if ( set x; as_fn_ret_success y && test x = \"\$1\" )
36 kx then :
36 kx
36 kx else \$as_nop
36 kx exitcode=1; echo positional parameters were not saved.
36 kx fi
36 kx test x\$exitcode = x0 || exit 1
36 kx blah=\$(echo \$(echo blah))
36 kx test x\"\$blah\" = xblah || exit 1
36 kx test -x / || exit 1"
36 kx as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
36 kx as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
36 kx eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
36 kx test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
36 kx if (eval "$as_required") 2>/dev/null
36 kx then :
36 kx as_have_required=yes
36 kx else $as_nop
36 kx as_have_required=no
36 kx fi
36 kx if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
36 kx then :
36 kx
36 kx else $as_nop
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx as_found=false
36 kx for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx as_found=:
36 kx case $as_dir in #(
36 kx /*)
36 kx for as_base in sh bash ksh sh5; do
36 kx # Try only shells that exist, to save several forks.
36 kx as_shell=$as_dir$as_base
36 kx if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
36 kx as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
36 kx then :
36 kx CONFIG_SHELL=$as_shell as_have_required=yes
36 kx if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
36 kx then :
36 kx break 2
36 kx fi
36 kx fi
36 kx done;;
36 kx esac
36 kx as_found=false
36 kx done
36 kx IFS=$as_save_IFS
36 kx if $as_found
36 kx then :
36 kx
36 kx else $as_nop
36 kx if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
36 kx as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
36 kx then :
36 kx CONFIG_SHELL=$SHELL as_have_required=yes
36 kx fi
36 kx fi
36 kx
36 kx
36 kx if test "x$CONFIG_SHELL" != x
36 kx then :
36 kx export CONFIG_SHELL
36 kx # We cannot yet assume a decent shell, so we have to provide a
36 kx # neutralization value for shells without unset; and this also
36 kx # works around shells that cannot unset nonexistent variables.
36 kx # Preserve -v and -x to the replacement shell.
36 kx BASH_ENV=/dev/null
36 kx ENV=/dev/null
36 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
36 kx case $- in # ((((
36 kx *v*x* | *x*v* ) as_opts=-vx ;;
36 kx *v* ) as_opts=-v ;;
36 kx *x* ) as_opts=-x ;;
36 kx * ) as_opts= ;;
36 kx esac
36 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
36 kx # Admittedly, this is quite paranoid, since all the known shells bail
36 kx # out after a failed `exec'.
36 kx printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
36 kx exit 255
36 kx fi
36 kx
36 kx if test x$as_have_required = xno
36 kx then :
36 kx printf "%s\n" "$0: This script requires a shell more modern than all"
36 kx printf "%s\n" "$0: the shells that I found on your system."
36 kx if test ${ZSH_VERSION+y} ; then
36 kx printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
36 kx printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
36 kx else
36 kx printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
36 kx $0: https://sourceware.org/bugzilla/ about your system,
36 kx $0: including any error possibly output before this
36 kx $0: message. Then install a modern shell, or manually run
36 kx $0: the script under such a shell if you do have one."
36 kx fi
36 kx exit 1
36 kx fi
36 kx fi
36 kx fi
36 kx SHELL=${CONFIG_SHELL-/bin/sh}
36 kx export SHELL
36 kx # Unset more variables known to interfere with behavior of common tools.
36 kx CLICOLOR_FORCE= GREP_OPTIONS=
36 kx unset CLICOLOR_FORCE GREP_OPTIONS
36 kx
36 kx ## --------------------- ##
36 kx ## M4sh Shell Functions. ##
36 kx ## --------------------- ##
36 kx # as_fn_unset VAR
36 kx # ---------------
36 kx # Portably unset VAR.
36 kx as_fn_unset ()
36 kx {
36 kx { eval $1=; unset $1;}
36 kx }
36 kx as_unset=as_fn_unset
36 kx
36 kx
36 kx # as_fn_set_status STATUS
36 kx # -----------------------
36 kx # Set $? to STATUS, without forking.
36 kx as_fn_set_status ()
36 kx {
36 kx return $1
36 kx } # as_fn_set_status
36 kx
36 kx # as_fn_exit STATUS
36 kx # -----------------
36 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36 kx as_fn_exit ()
36 kx {
36 kx set +e
36 kx as_fn_set_status $1
36 kx exit $1
36 kx } # as_fn_exit
36 kx # as_fn_nop
36 kx # ---------
36 kx # Do nothing but, unlike ":", preserve the value of $?.
36 kx as_fn_nop ()
36 kx {
36 kx return $?
36 kx }
36 kx as_nop=as_fn_nop
36 kx
36 kx # as_fn_mkdir_p
36 kx # -------------
36 kx # Create "$as_dir" as a directory, including parents if necessary.
36 kx as_fn_mkdir_p ()
36 kx {
36 kx
36 kx case $as_dir in #(
36 kx -*) as_dir=./$as_dir;;
36 kx esac
36 kx test -d "$as_dir" || eval $as_mkdir_p || {
36 kx as_dirs=
36 kx while :; do
36 kx case $as_dir in #(
36 kx *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36 kx *) as_qdir=$as_dir;;
36 kx esac
36 kx as_dirs="'$as_qdir' $as_dirs"
36 kx as_dir=`$as_dirname -- "$as_dir" ||
36 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36 kx X"$as_dir" : 'X\(//\)[^/]' \| \
36 kx X"$as_dir" : 'X\(//\)$' \| \
36 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36 kx printf "%s\n" X"$as_dir" |
36 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\/\)[^/].*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\/\)$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\).*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx s/.*/./; q'`
36 kx test -d "$as_dir" && break
36 kx done
36 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
36 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36 kx
36 kx
36 kx } # as_fn_mkdir_p
36 kx
36 kx # as_fn_executable_p FILE
36 kx # -----------------------
36 kx # Test if FILE is an executable regular file.
36 kx as_fn_executable_p ()
36 kx {
36 kx test -f "$1" && test -x "$1"
36 kx } # as_fn_executable_p
36 kx # as_fn_append VAR VALUE
36 kx # ----------------------
36 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
36 kx # advantage of any shell optimizations that allow amortized linear growth over
36 kx # repeated appends, instead of the typical quadratic growth present in naive
36 kx # implementations.
36 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
36 kx then :
36 kx eval 'as_fn_append ()
36 kx {
36 kx eval $1+=\$2
36 kx }'
36 kx else $as_nop
36 kx as_fn_append ()
36 kx {
36 kx eval $1=\$$1\$2
36 kx }
36 kx fi # as_fn_append
36 kx
36 kx # as_fn_arith ARG...
36 kx # ------------------
36 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
36 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
36 kx # must be portable across $(()) and expr.
36 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
36 kx then :
36 kx eval 'as_fn_arith ()
36 kx {
36 kx as_val=$(( $* ))
36 kx }'
36 kx else $as_nop
36 kx as_fn_arith ()
36 kx {
36 kx as_val=`expr "$@" || test $? -eq 1`
36 kx }
36 kx fi # as_fn_arith
36 kx
36 kx # as_fn_nop
36 kx # ---------
36 kx # Do nothing but, unlike ":", preserve the value of $?.
36 kx as_fn_nop ()
36 kx {
36 kx return $?
36 kx }
36 kx as_nop=as_fn_nop
36 kx
36 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
36 kx # ----------------------------------------
36 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36 kx # script with STATUS, using 1 if that was 0.
36 kx as_fn_error ()
36 kx {
36 kx as_status=$1; test $as_status -eq 0 && as_status=1
36 kx if test "$4"; then
36 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36 kx fi
36 kx printf "%s\n" "$as_me: error: $2" >&2
36 kx as_fn_exit $as_status
36 kx } # as_fn_error
36 kx
36 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
36 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
36 kx as_expr=expr
36 kx else
36 kx as_expr=false
36 kx fi
36 kx
36 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36 kx as_basename=basename
36 kx else
36 kx as_basename=false
36 kx fi
36 kx
36 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36 kx as_dirname=dirname
36 kx else
36 kx as_dirname=false
36 kx fi
36 kx
36 kx as_me=`$as_basename -- "$0" ||
36 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36 kx X"$0" : 'X\(//\)$' \| \
36 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36 kx printf "%s\n" X/"$0" |
36 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\/\(\/\/\)$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\/\(\/\).*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx s/.*/./; q'`
36 kx
36 kx # Avoid depending upon Character Ranges.
36 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 kx as_cr_digits='0123456789'
36 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
36 kx
36 kx
36 kx as_lineno_1=$LINENO as_lineno_1a=$LINENO
36 kx as_lineno_2=$LINENO as_lineno_2a=$LINENO
36 kx eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
36 kx test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
36 kx # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
36 kx sed -n '
36 kx p
36 kx /[$]LINENO/=
36 kx ' <$as_myself |
36 kx sed '
36 kx s/[$]LINENO.*/&-/
36 kx t lineno
36 kx b
36 kx :lineno
36 kx N
36 kx :loop
36 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
36 kx t loop
36 kx s/-\n.*//
36 kx ' >$as_me.lineno &&
36 kx chmod +x "$as_me.lineno" ||
36 kx { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
36 kx
36 kx # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
36 kx # already done that, so ensure we don't try to do so again and fall
36 kx # in an infinite loop. This has already happened in practice.
36 kx _as_can_reexec=no; export _as_can_reexec
36 kx # Don't try to exec as it changes $[0], causing all sort of problems
36 kx # (the dirname of $[0] is not the place where we might find the
36 kx # original and so on. Autoconf is especially sensitive to this).
36 kx . "./$as_me.lineno"
36 kx # Exit status is that of the last command.
36 kx exit
36 kx }
36 kx
36 kx
36 kx # Determine whether it's possible to make 'echo' print without a newline.
36 kx # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
36 kx # for compatibility with existing Makefiles.
36 kx ECHO_C= ECHO_N= ECHO_T=
36 kx case `echo -n x` in #(((((
36 kx -n*)
36 kx case `echo 'xy\c'` in
36 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
36 kx xy) ECHO_C='\c';;
36 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36 kx ECHO_T=' ';;
36 kx esac;;
36 kx *)
36 kx ECHO_N='-n';;
36 kx esac
36 kx
36 kx # For backward compatibility with old third-party macros, we provide
36 kx # the shell variables $as_echo and $as_echo_n. New code should use
36 kx # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
36 kx as_echo='printf %s\n'
36 kx as_echo_n='printf %s'
36 kx
36 kx
36 kx rm -f conf$$ conf$$.exe conf$$.file
36 kx if test -d conf$$.dir; then
36 kx rm -f conf$$.dir/conf$$.file
36 kx else
36 kx rm -f conf$$.dir
36 kx mkdir conf$$.dir 2>/dev/null
36 kx fi
36 kx if (echo >conf$$.file) 2>/dev/null; then
36 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
36 kx as_ln_s='ln -s'
36 kx # ... but there are two gotchas:
36 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36 kx # In both cases, we have to default to `cp -pR'.
36 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36 kx as_ln_s='cp -pR'
36 kx elif ln conf$$.file conf$$ 2>/dev/null; then
36 kx as_ln_s=ln
36 kx else
36 kx as_ln_s='cp -pR'
36 kx fi
36 kx else
36 kx as_ln_s='cp -pR'
36 kx fi
36 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36 kx rmdir conf$$.dir 2>/dev/null
36 kx
36 kx if mkdir -p . 2>/dev/null; then
36 kx as_mkdir_p='mkdir -p "$as_dir"'
36 kx else
36 kx test -d ./-p && rmdir ./-p
36 kx as_mkdir_p=false
36 kx fi
36 kx
36 kx as_test_x='test -x'
36 kx as_executable_p=as_fn_executable_p
36 kx
36 kx # Sed expression to map a string onto a valid CPP name.
36 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36 kx
36 kx # Sed expression to map a string onto a valid variable name.
36 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36 kx
36 kx
36 kx test -n "$DJDIR" || exec 7<&0 </dev/null
36 kx exec 6>&1
36 kx
36 kx # Name of the host.
36 kx # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
36 kx # so uname gets run too.
36 kx ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
36 kx
36 kx #
36 kx # Initializations.
36 kx #
36 kx ac_default_prefix=/usr/local
36 kx ac_clean_files=
36 kx ac_config_libobj_dir=.
36 kx LIBOBJS=
36 kx cross_compiling=no
36 kx subdirs=
36 kx MFLAGS=
36 kx MAKEFLAGS=
36 kx
36 kx # Identity of this package.
36 kx PACKAGE_NAME='GNU C Library'
36 kx PACKAGE_TARNAME='glibc'
36 kx PACKAGE_VERSION='(see version.h)'
36 kx PACKAGE_STRING='GNU C Library (see version.h)'
36 kx PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/'
36 kx PACKAGE_URL='https://www.gnu.org/software/glibc/'
36 kx
36 kx ac_unique_file="include/features.h"
36 kx enable_option_checking=no
36 kx ac_subst_vars='LTLIBOBJS
36 kx LIBOBJS
36 kx pthread_in_libc
36 kx RELEASE
36 kx VERSION
36 kx mach_interface_list
36 kx DEFINES
36 kx static_nss
36 kx profile
36 kx libc_cv_multidir
36 kx shared
36 kx static
36 kx ldd_rewrite_script
36 kx use_ldconfig
36 kx libc_cv_rootsbindir
36 kx libc_cv_localstatedir
36 kx libc_cv_sysconfdir
36 kx libc_cv_complocaledir
36 kx libc_cv_rtlddir
36 kx libc_cv_slibdir
36 kx use_nscd
36 kx libc_cv_gcc_unwind_find_fde
36 kx libc_extra_cppflags
36 kx libc_extra_cflags
36 kx libc_cv_cxx_thread_local
36 kx fortify_source
36 kx no_fortify_source
36 kx libc_cv_fortify_source
36 kx enable_fortify_source
36 kx have_selinux
36 kx have_libcap
36 kx have_libaudit
36 kx LIBGD
36 kx libc_cv_cc_loop_to_function
36 kx libc_cv_cc_submachine
36 kx libc_cv_cc_nofma
36 kx libc_cv_mtls_dialect_gnu2
36 kx libc_cv_has_glob_dat
36 kx libc_cv_hashstyle
36 kx libc_cv_fpie
36 kx libc_cv_z_execstack
36 kx ASFLAGS_config
36 kx libc_cv_cc_with_libunwind
36 kx libc_cv_insert
36 kx libc_cv_protected_data
36 kx INSTALL_INFO
36 kx PERL
36 kx BASH_SHELL
36 kx CXX_BITS_STD_ABS_H
36 kx CXX_CMATH_HEADER
36 kx CXX_CSTDLIB_HEADER
36 kx CXX_SYSINCLUDES
36 kx SYSINCLUDES
36 kx sysnames
36 kx submachine
36 kx multi_arch
36 kx libc_cv_textrel_ifunc
36 kx no_stack_protector
36 kx stack_protector
36 kx libc_cv_ssp
36 kx libc_cv_with_fp
36 kx PYTHON
36 kx PYTHON_PROG
36 kx AUTOCONF
36 kx BISON
36 kx AWK
36 kx SED
36 kx MAKEINFO
36 kx MSGFMT
36 kx MAKE
36 kx LD
36 kx NM
36 kx OBJDUMP
36 kx READELF
36 kx GPROF
36 kx OBJCOPY
36 kx AR
36 kx LN_S
36 kx INSTALL_DATA
36 kx INSTALL_SCRIPT
36 kx INSTALL_PROGRAM
36 kx base_machine
36 kx build_pt_chown
36 kx build_nscd
36 kx memory_tagging
36 kx enable_werror
36 kx force_install
36 kx bindnow
36 kx hardcoded_path_in_tests
36 kx enable_timezone_tools
36 kx rtld_early_cflags
36 kx extra_nonshared_cflags
36 kx sysheaders
36 kx ac_ct_CXX
36 kx CXXFLAGS
36 kx CXX
36 kx CPP
36 kx cross_compiling
36 kx BUILD_CC
36 kx OBJEXT
36 kx ac_ct_CC
36 kx CPPFLAGS
36 kx LDFLAGS
36 kx CFLAGS
36 kx CC
36 kx host_os
36 kx host_vendor
36 kx host_cpu
36 kx host
36 kx build_os
36 kx build_vendor
36 kx build_cpu
36 kx build
36 kx subdirs
36 kx REPORT_BUGS_TEXI
36 kx REPORT_BUGS_TO
36 kx PKGVERSION_TEXI
36 kx PKGVERSION
36 kx target_alias
36 kx host_alias
36 kx build_alias
36 kx LIBS
36 kx ECHO_T
36 kx ECHO_N
36 kx ECHO_C
36 kx DEFS
36 kx mandir
36 kx localedir
36 kx libdir
36 kx psdir
36 kx pdfdir
36 kx dvidir
36 kx htmldir
36 kx infodir
36 kx docdir
36 kx oldincludedir
36 kx includedir
36 kx runstatedir
36 kx localstatedir
36 kx sharedstatedir
36 kx sysconfdir
36 kx datadir
36 kx datarootdir
36 kx libexecdir
36 kx sbindir
36 kx bindir
36 kx program_transform_name
36 kx prefix
36 kx exec_prefix
36 kx PACKAGE_URL
36 kx PACKAGE_BUGREPORT
36 kx PACKAGE_STRING
36 kx PACKAGE_VERSION
36 kx PACKAGE_TARNAME
36 kx PACKAGE_NAME
36 kx PATH_SEPARATOR
36 kx SHELL'
36 kx ac_subst_files=''
36 kx ac_user_opts='
36 kx enable_option_checking
36 kx with_pkgversion
36 kx with_bugurl
36 kx with_gd
36 kx with_gd_include
36 kx with_gd_lib
36 kx with_binutils
36 kx with_selinux
36 kx with_headers
36 kx with_nonshared_cflags
36 kx with_rtld_early_cflags
36 kx with_timeoutfactor
36 kx enable_sanity_checks
36 kx enable_shared
36 kx enable_profile
36 kx enable_default_pie
36 kx enable_timezone_tools
36 kx enable_hardcoded_path_in_tests
36 kx enable_hidden_plt
36 kx enable_bind_now
36 kx enable_stack_protector
36 kx enable_static_nss
36 kx enable_force_install
36 kx enable_maintainer_mode
36 kx enable_kernel
36 kx enable_werror
36 kx enable_multi_arch
36 kx enable_memory_tagging
36 kx enable_systemtap
36 kx enable_build_nscd
36 kx enable_nscd
36 kx enable_pt_chown
36 kx enable_mathvec
36 kx enable_cet
36 kx enable_scv
36 kx enable_fortify_source
36 kx with_cpu
36 kx '
36 kx ac_precious_vars='build_alias
36 kx host_alias
36 kx target_alias
36 kx CC
36 kx CFLAGS
36 kx LDFLAGS
36 kx LIBS
36 kx CPPFLAGS
36 kx CPP
36 kx CXX
36 kx CXXFLAGS
36 kx CCC'
36 kx ac_subdirs_all=''
36 kx
36 kx # Initialize some variables set by options.
36 kx ac_init_help=
36 kx ac_init_version=false
36 kx ac_unrecognized_opts=
36 kx ac_unrecognized_sep=
36 kx # The variables have the same names as the options, with
36 kx # dashes changed to underlines.
36 kx cache_file=/dev/null
36 kx exec_prefix=NONE
36 kx no_create=
36 kx no_recursion=
36 kx prefix=NONE
36 kx program_prefix=NONE
36 kx program_suffix=NONE
36 kx program_transform_name=s,x,x,
36 kx silent=
36 kx site=
36 kx srcdir=
36 kx verbose=
36 kx x_includes=NONE
36 kx x_libraries=NONE
36 kx
36 kx # Installation directory options.
36 kx # These are left unexpanded so users can "make install exec_prefix=/foo"
36 kx # and all the variables that are supposed to be based on exec_prefix
36 kx # by default will actually change.
36 kx # Use braces instead of parens because sh, perl, etc. also accept them.
36 kx # (The list follows the same order as the GNU Coding Standards.)
36 kx bindir='${exec_prefix}/bin'
36 kx sbindir='${exec_prefix}/sbin'
36 kx libexecdir='${exec_prefix}/libexec'
36 kx datarootdir='${prefix}/share'
36 kx datadir='${datarootdir}'
36 kx sysconfdir='${prefix}/etc'
36 kx sharedstatedir='${prefix}/com'
36 kx localstatedir='${prefix}/var'
36 kx runstatedir='${localstatedir}/run'
36 kx includedir='${prefix}/include'
36 kx oldincludedir='/usr/include'
36 kx docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
36 kx infodir='${datarootdir}/info'
36 kx htmldir='${docdir}'
36 kx dvidir='${docdir}'
36 kx pdfdir='${docdir}'
36 kx psdir='${docdir}'
36 kx libdir='${exec_prefix}/lib'
36 kx localedir='${datarootdir}/locale'
36 kx mandir='${datarootdir}/man'
36 kx
36 kx ac_prev=
36 kx ac_dashdash=
36 kx for ac_option
36 kx do
36 kx # If the previous option needs an argument, assign it.
36 kx if test -n "$ac_prev"; then
36 kx eval $ac_prev=\$ac_option
36 kx ac_prev=
36 kx continue
36 kx fi
36 kx
36 kx case $ac_option in
36 kx *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
36 kx *=) ac_optarg= ;;
36 kx *) ac_optarg=yes ;;
36 kx esac
36 kx
36 kx case $ac_dashdash$ac_option in
36 kx --)
36 kx ac_dashdash=yes ;;
36 kx
36 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
36 kx ac_prev=bindir ;;
36 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
36 kx bindir=$ac_optarg ;;
36 kx
36 kx -build | --build | --buil | --bui | --bu)
36 kx ac_prev=build_alias ;;
36 kx -build=* | --build=* | --buil=* | --bui=* | --bu=*)
36 kx build_alias=$ac_optarg ;;
36 kx
36 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
36 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36 kx ac_prev=cache_file ;;
36 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
36 kx cache_file=$ac_optarg ;;
36 kx
36 kx --config-cache | -C)
36 kx cache_file=config.cache ;;
36 kx
36 kx -datadir | --datadir | --datadi | --datad)
36 kx ac_prev=datadir ;;
36 kx -datadir=* | --datadir=* | --datadi=* | --datad=*)
36 kx datadir=$ac_optarg ;;
36 kx
36 kx -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
36 kx | --dataroo | --dataro | --datar)
36 kx ac_prev=datarootdir ;;
36 kx -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
36 kx | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
36 kx datarootdir=$ac_optarg ;;
36 kx
36 kx -disable-* | --disable-*)
36 kx ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
36 kx # Reject names that are not valid shell variable names.
36 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
36 kx as_fn_error $? "invalid feature name: \`$ac_useropt'"
36 kx ac_useropt_orig=$ac_useropt
36 kx ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
36 kx case $ac_user_opts in
36 kx *"
36 kx "enable_$ac_useropt"
36 kx "*) ;;
36 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
36 kx ac_unrecognized_sep=', ';;
36 kx esac
36 kx eval enable_$ac_useropt=no ;;
36 kx
36 kx -docdir | --docdir | --docdi | --doc | --do)
36 kx ac_prev=docdir ;;
36 kx -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
36 kx docdir=$ac_optarg ;;
36 kx
36 kx -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
36 kx ac_prev=dvidir ;;
36 kx -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
36 kx dvidir=$ac_optarg ;;
36 kx
36 kx -enable-* | --enable-*)
36 kx ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
36 kx # Reject names that are not valid shell variable names.
36 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
36 kx as_fn_error $? "invalid feature name: \`$ac_useropt'"
36 kx ac_useropt_orig=$ac_useropt
36 kx ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
36 kx case $ac_user_opts in
36 kx *"
36 kx "enable_$ac_useropt"
36 kx "*) ;;
36 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
36 kx ac_unrecognized_sep=', ';;
36 kx esac
36 kx eval enable_$ac_useropt=\$ac_optarg ;;
36 kx
36 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
36 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
36 kx | --exec | --exe | --ex)
36 kx ac_prev=exec_prefix ;;
36 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
36 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
36 kx | --exec=* | --exe=* | --ex=*)
36 kx exec_prefix=$ac_optarg ;;
36 kx
36 kx -gas | --gas | --ga | --g)
36 kx # Obsolete; use --with-gas.
36 kx with_gas=yes ;;
36 kx
36 kx -help | --help | --hel | --he | -h)
36 kx ac_init_help=long ;;
36 kx -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
36 kx ac_init_help=recursive ;;
36 kx -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
36 kx ac_init_help=short ;;
36 kx
36 kx -host | --host | --hos | --ho)
36 kx ac_prev=host_alias ;;
36 kx -host=* | --host=* | --hos=* | --ho=*)
36 kx host_alias=$ac_optarg ;;
36 kx
36 kx -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
36 kx ac_prev=htmldir ;;
36 kx -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
36 kx | --ht=*)
36 kx htmldir=$ac_optarg ;;
36 kx
36 kx -includedir | --includedir | --includedi | --included | --include \
36 kx | --includ | --inclu | --incl | --inc)
36 kx ac_prev=includedir ;;
36 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
36 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
36 kx includedir=$ac_optarg ;;
36 kx
36 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
36 kx ac_prev=infodir ;;
36 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
36 kx infodir=$ac_optarg ;;
36 kx
36 kx -libdir | --libdir | --libdi | --libd)
36 kx ac_prev=libdir ;;
36 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
36 kx libdir=$ac_optarg ;;
36 kx
36 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
36 kx | --libexe | --libex | --libe)
36 kx ac_prev=libexecdir ;;
36 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
36 kx | --libexe=* | --libex=* | --libe=*)
36 kx libexecdir=$ac_optarg ;;
36 kx
36 kx -localedir | --localedir | --localedi | --localed | --locale)
36 kx ac_prev=localedir ;;
36 kx -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
36 kx localedir=$ac_optarg ;;
36 kx
36 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
36 kx | --localstate | --localstat | --localsta | --localst | --locals)
36 kx ac_prev=localstatedir ;;
36 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
36 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
36 kx localstatedir=$ac_optarg ;;
36 kx
36 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
36 kx ac_prev=mandir ;;
36 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
36 kx mandir=$ac_optarg ;;
36 kx
36 kx -nfp | --nfp | --nf)
36 kx # Obsolete; use --without-fp.
36 kx with_fp=no ;;
36 kx
36 kx -no-create | --no-create | --no-creat | --no-crea | --no-cre \
36 kx | --no-cr | --no-c | -n)
36 kx no_create=yes ;;
36 kx
36 kx -no-recursion | --no-recursion | --no-recursio | --no-recursi \
36 kx | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
36 kx no_recursion=yes ;;
36 kx
36 kx -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
36 kx | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
36 kx | --oldin | --oldi | --old | --ol | --o)
36 kx ac_prev=oldincludedir ;;
36 kx -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
36 kx | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
36 kx | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
36 kx oldincludedir=$ac_optarg ;;
36 kx
36 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36 kx ac_prev=prefix ;;
36 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36 kx prefix=$ac_optarg ;;
36 kx
36 kx -program-prefix | --program-prefix | --program-prefi | --program-pref \
36 kx | --program-pre | --program-pr | --program-p)
36 kx ac_prev=program_prefix ;;
36 kx -program-prefix=* | --program-prefix=* | --program-prefi=* \
36 kx | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
36 kx program_prefix=$ac_optarg ;;
36 kx
36 kx -program-suffix | --program-suffix | --program-suffi | --program-suff \
36 kx | --program-suf | --program-su | --program-s)
36 kx ac_prev=program_suffix ;;
36 kx -program-suffix=* | --program-suffix=* | --program-suffi=* \
36 kx | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
36 kx program_suffix=$ac_optarg ;;
36 kx
36 kx -program-transform-name | --program-transform-name \
36 kx | --program-transform-nam | --program-transform-na \
36 kx | --program-transform-n | --program-transform- \
36 kx | --program-transform | --program-transfor \
36 kx | --program-transfo | --program-transf \
36 kx | --program-trans | --program-tran \
36 kx | --progr-tra | --program-tr | --program-t)
36 kx ac_prev=program_transform_name ;;
36 kx -program-transform-name=* | --program-transform-name=* \
36 kx | --program-transform-nam=* | --program-transform-na=* \
36 kx | --program-transform-n=* | --program-transform-=* \
36 kx | --program-transform=* | --program-transfor=* \
36 kx | --program-transfo=* | --program-transf=* \
36 kx | --program-trans=* | --program-tran=* \
36 kx | --progr-tra=* | --program-tr=* | --program-t=*)
36 kx program_transform_name=$ac_optarg ;;
36 kx
36 kx -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
36 kx ac_prev=pdfdir ;;
36 kx -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
36 kx pdfdir=$ac_optarg ;;
36 kx
36 kx -psdir | --psdir | --psdi | --psd | --ps)
36 kx ac_prev=psdir ;;
36 kx -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
36 kx psdir=$ac_optarg ;;
36 kx
36 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36 kx | -silent | --silent | --silen | --sile | --sil)
36 kx silent=yes ;;
36 kx
36 kx -runstatedir | --runstatedir | --runstatedi | --runstated \
36 kx | --runstate | --runstat | --runsta | --runst | --runs \
36 kx | --run | --ru | --r)
36 kx ac_prev=runstatedir ;;
36 kx -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
36 kx | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
36 kx | --run=* | --ru=* | --r=*)
36 kx runstatedir=$ac_optarg ;;
36 kx
36 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
36 kx ac_prev=sbindir ;;
36 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
36 kx | --sbi=* | --sb=*)
36 kx sbindir=$ac_optarg ;;
36 kx
36 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
36 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
36 kx | --sharedst | --shareds | --shared | --share | --shar \
36 kx | --sha | --sh)
36 kx ac_prev=sharedstatedir ;;
36 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
36 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
36 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
36 kx | --sha=* | --sh=*)
36 kx sharedstatedir=$ac_optarg ;;
36 kx
36 kx -site | --site | --sit)
36 kx ac_prev=site ;;
36 kx -site=* | --site=* | --sit=*)
36 kx site=$ac_optarg ;;
36 kx
36 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36 kx ac_prev=srcdir ;;
36 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36 kx srcdir=$ac_optarg ;;
36 kx
36 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
36 kx | --syscon | --sysco | --sysc | --sys | --sy)
36 kx ac_prev=sysconfdir ;;
36 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
36 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
36 kx sysconfdir=$ac_optarg ;;
36 kx
36 kx -target | --target | --targe | --targ | --tar | --ta | --t)
36 kx ac_prev=target_alias ;;
36 kx -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
36 kx target_alias=$ac_optarg ;;
36 kx
36 kx -v | -verbose | --verbose | --verbos | --verbo | --verb)
36 kx verbose=yes ;;
36 kx
36 kx -version | --version | --versio | --versi | --vers | -V)
36 kx ac_init_version=: ;;
36 kx
36 kx -with-* | --with-*)
36 kx ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
36 kx # Reject names that are not valid shell variable names.
36 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
36 kx as_fn_error $? "invalid package name: \`$ac_useropt'"
36 kx ac_useropt_orig=$ac_useropt
36 kx ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
36 kx case $ac_user_opts in
36 kx *"
36 kx "with_$ac_useropt"
36 kx "*) ;;
36 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
36 kx ac_unrecognized_sep=', ';;
36 kx esac
36 kx eval with_$ac_useropt=\$ac_optarg ;;
36 kx
36 kx -without-* | --without-*)
36 kx ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
36 kx # Reject names that are not valid shell variable names.
36 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
36 kx as_fn_error $? "invalid package name: \`$ac_useropt'"
36 kx ac_useropt_orig=$ac_useropt
36 kx ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
36 kx case $ac_user_opts in
36 kx *"
36 kx "with_$ac_useropt"
36 kx "*) ;;
36 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
36 kx ac_unrecognized_sep=', ';;
36 kx esac
36 kx eval with_$ac_useropt=no ;;
36 kx
36 kx --x)
36 kx # Obsolete; use --with-x.
36 kx with_x=yes ;;
36 kx
36 kx -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
36 kx | --x-incl | --x-inc | --x-in | --x-i)
36 kx ac_prev=x_includes ;;
36 kx -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
36 kx | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
36 kx x_includes=$ac_optarg ;;
36 kx
36 kx -x-libraries | --x-libraries | --x-librarie | --x-librari \
36 kx | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
36 kx ac_prev=x_libraries ;;
36 kx -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
36 kx | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
36 kx x_libraries=$ac_optarg ;;
36 kx
36 kx -*) as_fn_error $? "unrecognized option: \`$ac_option'
36 kx Try \`$0 --help' for more information"
36 kx ;;
36 kx
36 kx *=*)
36 kx ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
36 kx # Reject names that are not valid shell variable names.
36 kx case $ac_envvar in #(
36 kx '' | [0-9]* | *[!_$as_cr_alnum]* )
36 kx as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
36 kx esac
36 kx eval $ac_envvar=\$ac_optarg
36 kx export $ac_envvar ;;
36 kx
36 kx *)
36 kx # FIXME: should be removed in autoconf 3.0.
36 kx printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
36 kx expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
36 kx printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
36 kx : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
36 kx ;;
36 kx
36 kx esac
36 kx done
36 kx
36 kx if test -n "$ac_prev"; then
36 kx ac_option=--`echo $ac_prev | sed 's/_/-/g'`
36 kx as_fn_error $? "missing argument to $ac_option"
36 kx fi
36 kx
36 kx if test -n "$ac_unrecognized_opts"; then
36 kx case $enable_option_checking in
36 kx no) ;;
36 kx fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
36 kx *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
36 kx esac
36 kx fi
36 kx
36 kx # Check all directory arguments for consistency.
36 kx for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
36 kx datadir sysconfdir sharedstatedir localstatedir includedir \
36 kx oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
36 kx libdir localedir mandir runstatedir
36 kx do
36 kx eval ac_val=\$$ac_var
36 kx # Remove trailing slashes.
36 kx case $ac_val in
36 kx */ )
36 kx ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
36 kx eval $ac_var=\$ac_val;;
36 kx esac
36 kx # Be sure to have absolute directory names.
36 kx case $ac_val in
36 kx [\\/$]* | ?:[\\/]* ) continue;;
36 kx NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
36 kx esac
36 kx as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
36 kx done
36 kx
36 kx # There might be people who depend on the old broken behavior: `$host'
36 kx # used to hold the argument of --host etc.
36 kx # FIXME: To remove some day.
36 kx build=$build_alias
36 kx host=$host_alias
36 kx target=$target_alias
36 kx
36 kx # FIXME: To remove some day.
36 kx if test "x$host_alias" != x; then
36 kx if test "x$build_alias" = x; then
36 kx cross_compiling=maybe
36 kx elif test "x$build_alias" != "x$host_alias"; then
36 kx cross_compiling=yes
36 kx fi
36 kx fi
36 kx
36 kx ac_tool_prefix=
36 kx test -n "$host_alias" && ac_tool_prefix=$host_alias-
36 kx
36 kx test "$silent" = yes && exec 6>/dev/null
36 kx
36 kx
36 kx ac_pwd=`pwd` && test -n "$ac_pwd" &&
36 kx ac_ls_di=`ls -di .` &&
36 kx ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
36 kx as_fn_error $? "working directory cannot be determined"
36 kx test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
36 kx as_fn_error $? "pwd does not report name of working directory"
36 kx
36 kx
36 kx # Find the source files, if location was not specified.
36 kx if test -z "$srcdir"; then
36 kx ac_srcdir_defaulted=yes
36 kx # Try the directory containing this script, then the parent directory.
36 kx ac_confdir=`$as_dirname -- "$as_myself" ||
36 kx $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36 kx X"$as_myself" : 'X\(//\)[^/]' \| \
36 kx X"$as_myself" : 'X\(//\)$' \| \
36 kx X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
36 kx printf "%s\n" X"$as_myself" |
36 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\/\)[^/].*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\/\)$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\).*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx s/.*/./; q'`
36 kx srcdir=$ac_confdir
36 kx if test ! -r "$srcdir/$ac_unique_file"; then
36 kx srcdir=..
36 kx fi
36 kx else
36 kx ac_srcdir_defaulted=no
36 kx fi
36 kx if test ! -r "$srcdir/$ac_unique_file"; then
36 kx test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
36 kx as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
36 kx fi
36 kx ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
36 kx ac_abs_confdir=`(
36 kx cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
36 kx pwd)`
36 kx # When building in place, set srcdir=.
36 kx if test "$ac_abs_confdir" = "$ac_pwd"; then
36 kx srcdir=.
36 kx fi
36 kx # Remove unnecessary trailing slashes from srcdir.
36 kx # Double slashes in file names in object file debugging info
36 kx # mess up M-x gdb in Emacs.
36 kx case $srcdir in
36 kx */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
36 kx esac
36 kx for ac_var in $ac_precious_vars; do
36 kx eval ac_env_${ac_var}_set=\${${ac_var}+set}
36 kx eval ac_env_${ac_var}_value=\$${ac_var}
36 kx eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
36 kx eval ac_cv_env_${ac_var}_value=\$${ac_var}
36 kx done
36 kx
36 kx #
36 kx # Report the --help message.
36 kx #
36 kx if test "$ac_init_help" = "long"; then
36 kx # Omit some internal or obsolete options to make the list less imposing.
36 kx # This message is too long to be a string in the A/UX 3.1 sh.
36 kx cat <<_ACEOF
36 kx \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
36 kx
36 kx Usage: $0 [OPTION]... [VAR=VALUE]...
36 kx
36 kx To assign environment variables (e.g., CC, CFLAGS...), specify them as
36 kx VAR=VALUE. See below for descriptions of some of the useful variables.
36 kx
36 kx Defaults for the options are specified in brackets.
36 kx
36 kx Configuration:
36 kx -h, --help display this help and exit
36 kx --help=short display options specific to this package
36 kx --help=recursive display the short help of all the included packages
36 kx -V, --version display version information and exit
36 kx -q, --quiet, --silent do not print \`checking ...' messages
36 kx --cache-file=FILE cache test results in FILE [disabled]
36 kx -C, --config-cache alias for \`--cache-file=config.cache'
36 kx -n, --no-create do not create output files
36 kx --srcdir=DIR find the sources in DIR [configure dir or \`..']
36 kx
36 kx Installation directories:
36 kx --prefix=PREFIX install architecture-independent files in PREFIX
36 kx [$ac_default_prefix]
36 kx --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
36 kx [PREFIX]
36 kx
36 kx By default, \`make install' will install all the files in
36 kx \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
36 kx an installation prefix other than \`$ac_default_prefix' using \`--prefix',
36 kx for instance \`--prefix=\$HOME'.
36 kx
36 kx For better control, use the options below.
36 kx
36 kx Fine tuning of the installation directories:
36 kx --bindir=DIR user executables [EPREFIX/bin]
36 kx --sbindir=DIR system admin executables [EPREFIX/sbin]
36 kx --libexecdir=DIR program executables [EPREFIX/libexec]
36 kx --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
36 kx --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
36 kx --localstatedir=DIR modifiable single-machine data [PREFIX/var]
36 kx --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
36 kx --libdir=DIR object code libraries [EPREFIX/lib]
36 kx --includedir=DIR C header files [PREFIX/include]
36 kx --oldincludedir=DIR C header files for non-gcc [/usr/include]
36 kx --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
36 kx --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
36 kx --infodir=DIR info documentation [DATAROOTDIR/info]
36 kx --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
36 kx --mandir=DIR man documentation [DATAROOTDIR/man]
36 kx --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
36 kx --htmldir=DIR html documentation [DOCDIR]
36 kx --dvidir=DIR dvi documentation [DOCDIR]
36 kx --pdfdir=DIR pdf documentation [DOCDIR]
36 kx --psdir=DIR ps documentation [DOCDIR]
36 kx _ACEOF
36 kx
36 kx cat <<\_ACEOF
36 kx
36 kx System types:
36 kx --build=BUILD configure for building on BUILD [guessed]
36 kx --host=HOST cross-compile to build programs to run on HOST [BUILD]
36 kx _ACEOF
36 kx fi
36 kx
36 kx if test -n "$ac_init_help"; then
36 kx case $ac_init_help in
36 kx short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
36 kx esac
36 kx cat <<\_ACEOF
36 kx
36 kx Optional Features:
36 kx --disable-option-checking ignore unrecognized --enable/--with options
36 kx --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
36 kx --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
36 kx --disable-sanity-checks really do not use threads (should not be used except
36 kx in special situations) [default=yes]
36 kx --enable-shared build shared library [default=yes if GNU ld]
36 kx --enable-profile build profiled library [default=no]
36 kx --disable-default-pie Do not build glibc programs and the testsuite as PIE
36 kx [default=no]
36 kx --disable-timezone-tools
36 kx do not install timezone tools [default=install]
36 kx --enable-hardcoded-path-in-tests
36 kx hardcode newly built glibc path in tests
36 kx [default=no]
36 kx --disable-hidden-plt do not hide internal function calls to avoid PLT
36 kx --enable-bind-now disable lazy relocations in DSOs
36 kx --enable-stack-protector=[yes|no|all|strong]
36 kx Use -fstack-protector[-all|-strong] to detect glibc
36 kx buffer overflows
36 kx --enable-static-nss build static NSS modules [default=no]
36 kx --disable-force-install don't force installation of files from this package,
36 kx even if they are older than the installed files
36 kx --enable-maintainer-mode
36 kx enable make rules and dependencies not useful (and
36 kx sometimes confusing) to the casual installer
36 kx --enable-kernel=VERSION compile for compatibility with kernel not older than
36 kx VERSION
36 kx --disable-werror do not build with -Werror
36 kx --enable-multi-arch enable single DSO with optimizations for multiple
36 kx architectures
36 kx --enable-memory-tagging enable memory tagging if supported by the
36 kx architecture [default=no]
36 kx --enable-systemtap enable systemtap static probe points [default=no]
36 kx --disable-build-nscd disable building and installing the nscd daemon
36 kx --disable-nscd library functions will not contact the nscd daemon
36 kx --enable-pt_chown Enable building and installing pt_chown
36 kx --enable-mathvec Enable building and installing mathvec [default
36 kx depends on architecture]
36 kx --enable-cet enable Intel Control-flow Enforcement Technology
36 kx (CET), x86 only
36 kx --disable-scv syscalls will not use scv instruction, even if the
36 kx kernel supports it, powerpc only
36 kx --enable-fortify-source[=1|2|3]
36 kx Use -D_FORTIFY_SOURCE=[1|2|3] to control code
36 kx hardening, defaults to highest possible value
36 kx supported by the build compiler.
36 kx
36 kx Optional Packages:
36 kx --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
36 kx --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
36 kx --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
36 kx --with-bugurl=URL Direct users to URL to report a bug
36 kx --with-gd=DIR find libgd include dir and library with prefix DIR
36 kx --with-gd-include=DIR find libgd include files in DIR
36 kx --with-gd-lib=DIR find libgd library files in DIR
36 kx --with-binutils=PATH specify location of binutils (as and ld)
36 kx --with-selinux if building with SELinux support
36 kx --with-headers=PATH location of system headers to use (for example
36 kx /usr/src/linux/include) [default=compiler default]
36 kx --with-nonshared-cflags=CFLAGS
36 kx build nonshared libraries with additional CFLAGS
36 kx --with-rtld-early-cflags=CFLAGS
36 kx build early initialization with additional CFLAGS
36 kx --with-timeoutfactor=NUM
36 kx specify an integer to scale the timeout
36 kx --with-cpu=CPU select code for CPU variant
36 kx
36 kx Some influential environment variables:
36 kx CC C compiler command
36 kx CFLAGS C compiler flags
36 kx LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
36 kx nonstandard directory <lib dir>
36 kx LIBS libraries to pass to the linker, e.g. -l<library>
36 kx CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
36 kx you have headers in a nonstandard directory <include dir>
36 kx CPP C preprocessor
36 kx CXX C++ compiler command
36 kx CXXFLAGS C++ compiler flags
36 kx
36 kx Use these variables to override the choices made by `configure' or to help
36 kx it to find libraries and programs with nonstandard names/locations.
36 kx
36 kx Report bugs to <https://sourceware.org/bugzilla/>.
36 kx GNU C Library home page: <https://www.gnu.org/software/glibc/>.
36 kx General help using GNU software: <https://www.gnu.org/gethelp/>.
36 kx _ACEOF
36 kx ac_status=$?
36 kx fi
36 kx
36 kx if test "$ac_init_help" = "recursive"; then
36 kx # If there are subdirs, report their specific --help.
36 kx for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
36 kx test -d "$ac_dir" ||
36 kx { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
36 kx continue
36 kx ac_builddir=.
36 kx
36 kx case "$ac_dir" in
36 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36 kx *)
36 kx ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
36 kx # A ".." for each directory in $ac_dir_suffix.
36 kx ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36 kx case $ac_top_builddir_sub in
36 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36 kx esac ;;
36 kx esac
36 kx ac_abs_top_builddir=$ac_pwd
36 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
36 kx # for backward compatibility:
36 kx ac_top_builddir=$ac_top_build_prefix
36 kx
36 kx case $srcdir in
36 kx .) # We are building in place.
36 kx ac_srcdir=.
36 kx ac_top_srcdir=$ac_top_builddir_sub
36 kx ac_abs_top_srcdir=$ac_pwd ;;
36 kx [\\/]* | ?:[\\/]* ) # Absolute name.
36 kx ac_srcdir=$srcdir$ac_dir_suffix;
36 kx ac_top_srcdir=$srcdir
36 kx ac_abs_top_srcdir=$srcdir ;;
36 kx *) # Relative name.
36 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
36 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36 kx esac
36 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36 kx
36 kx cd "$ac_dir" || { ac_status=$?; continue; }
36 kx # Check for configure.gnu first; this name is used for a wrapper for
36 kx # Metaconfig's "Configure" on case-insensitive file systems.
36 kx if test -f "$ac_srcdir/configure.gnu"; then
36 kx echo &&
36 kx $SHELL "$ac_srcdir/configure.gnu" --help=recursive
36 kx elif test -f "$ac_srcdir/configure"; then
36 kx echo &&
36 kx $SHELL "$ac_srcdir/configure" --help=recursive
36 kx else
36 kx printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
36 kx fi || ac_status=$?
36 kx cd "$ac_pwd" || { ac_status=$?; break; }
36 kx done
36 kx fi
36 kx
36 kx test -n "$ac_init_help" && exit $ac_status
36 kx if $ac_init_version; then
36 kx cat <<\_ACEOF
36 kx GNU C Library configure (see version.h)
36 kx generated by GNU Autoconf 2.71
36 kx
36 kx Copyright (C) 2021 Free Software Foundation, Inc.
36 kx This configure script is free software; the Free Software Foundation
36 kx gives unlimited permission to copy, distribute and modify it.
36 kx _ACEOF
36 kx exit
36 kx fi
36 kx
36 kx ## ------------------------ ##
36 kx ## Autoconf initialization. ##
36 kx ## ------------------------ ##
36 kx
36 kx # ac_fn_c_try_compile LINENO
36 kx # --------------------------
36 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
36 kx ac_fn_c_try_compile ()
36 kx {
36 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36 kx rm -f conftest.$ac_objext conftest.beam
36 kx if { { ac_try="$ac_compile"
36 kx case "(($ac_try" in
36 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36 kx *) ac_try_echo=$ac_try;;
36 kx esac
36 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36 kx printf "%s\n" "$ac_try_echo"; } >&5
36 kx (eval "$ac_compile") 2>conftest.err
36 kx ac_status=$?
36 kx if test -s conftest.err; then
36 kx grep -v '^ *+' conftest.err >conftest.er1
36 kx cat conftest.er1 >&5
36 kx mv -f conftest.er1 conftest.err
36 kx fi
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; } && {
36 kx test -z "$ac_c_werror_flag" ||
36 kx test ! -s conftest.err
36 kx } && test -s conftest.$ac_objext
36 kx then :
36 kx ac_retval=0
36 kx else $as_nop
36 kx printf "%s\n" "$as_me: failed program was:" >&5
36 kx sed 's/^/| /' conftest.$ac_ext >&5
36 kx
36 kx ac_retval=1
36 kx fi
36 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
36 kx as_fn_set_status $ac_retval
36 kx
36 kx } # ac_fn_c_try_compile
36 kx
36 kx # ac_fn_cxx_try_compile LINENO
36 kx # ----------------------------
36 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
36 kx ac_fn_cxx_try_compile ()
36 kx {
36 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36 kx rm -f conftest.$ac_objext conftest.beam
36 kx if { { ac_try="$ac_compile"
36 kx case "(($ac_try" in
36 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36 kx *) ac_try_echo=$ac_try;;
36 kx esac
36 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36 kx printf "%s\n" "$ac_try_echo"; } >&5
36 kx (eval "$ac_compile") 2>conftest.err
36 kx ac_status=$?
36 kx if test -s conftest.err; then
36 kx grep -v '^ *+' conftest.err >conftest.er1
36 kx cat conftest.er1 >&5
36 kx mv -f conftest.er1 conftest.err
36 kx fi
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; } && {
36 kx test -z "$ac_cxx_werror_flag" ||
36 kx test ! -s conftest.err
36 kx } && test -s conftest.$ac_objext
36 kx then :
36 kx ac_retval=0
36 kx else $as_nop
36 kx printf "%s\n" "$as_me: failed program was:" >&5
36 kx sed 's/^/| /' conftest.$ac_ext >&5
36 kx
36 kx ac_retval=1
36 kx fi
36 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
36 kx as_fn_set_status $ac_retval
36 kx
36 kx } # ac_fn_cxx_try_compile
36 kx
36 kx # ac_fn_cxx_try_link LINENO
36 kx # -------------------------
36 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
36 kx ac_fn_cxx_try_link ()
36 kx {
36 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36 kx rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
36 kx if { { ac_try="$ac_link"
36 kx case "(($ac_try" in
36 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36 kx *) ac_try_echo=$ac_try;;
36 kx esac
36 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36 kx printf "%s\n" "$ac_try_echo"; } >&5
36 kx (eval "$ac_link") 2>conftest.err
36 kx ac_status=$?
36 kx if test -s conftest.err; then
36 kx grep -v '^ *+' conftest.err >conftest.er1
36 kx cat conftest.er1 >&5
36 kx mv -f conftest.er1 conftest.err
36 kx fi
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; } && {
36 kx test -z "$ac_cxx_werror_flag" ||
36 kx test ! -s conftest.err
36 kx } && test -s conftest$ac_exeext && {
36 kx test "$cross_compiling" = yes ||
36 kx test -x conftest$ac_exeext
36 kx }
36 kx then :
36 kx ac_retval=0
36 kx else $as_nop
36 kx printf "%s\n" "$as_me: failed program was:" >&5
36 kx sed 's/^/| /' conftest.$ac_ext >&5
36 kx
36 kx ac_retval=1
36 kx fi
36 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
36 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
36 kx # interfere with the next link command; also delete a directory that is
36 kx # left behind by Apple's compiler. We do this before executing the actions.
36 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
36 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
36 kx as_fn_set_status $ac_retval
36 kx
36 kx } # ac_fn_cxx_try_link
36 kx
36 kx # ac_fn_c_try_cpp LINENO
36 kx # ----------------------
36 kx # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
36 kx ac_fn_c_try_cpp ()
36 kx {
36 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36 kx if { { ac_try="$ac_cpp conftest.$ac_ext"
36 kx case "(($ac_try" in
36 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36 kx *) ac_try_echo=$ac_try;;
36 kx esac
36 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36 kx printf "%s\n" "$ac_try_echo"; } >&5
36 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
36 kx ac_status=$?
36 kx if test -s conftest.err; then
36 kx grep -v '^ *+' conftest.err >conftest.er1
36 kx cat conftest.er1 >&5
36 kx mv -f conftest.er1 conftest.err
36 kx fi
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; } > conftest.i && {
36 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36 kx test ! -s conftest.err
36 kx }
36 kx then :
36 kx ac_retval=0
36 kx else $as_nop
36 kx printf "%s\n" "$as_me: failed program was:" >&5
36 kx sed 's/^/| /' conftest.$ac_ext >&5
36 kx
36 kx ac_retval=1
36 kx fi
36 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
36 kx as_fn_set_status $ac_retval
36 kx
36 kx } # ac_fn_c_try_cpp
36 kx
36 kx # ac_fn_c_try_link LINENO
36 kx # -----------------------
36 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
36 kx ac_fn_c_try_link ()
36 kx {
36 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36 kx rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
36 kx if { { ac_try="$ac_link"
36 kx case "(($ac_try" in
36 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36 kx *) ac_try_echo=$ac_try;;
36 kx esac
36 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36 kx printf "%s\n" "$ac_try_echo"; } >&5
36 kx (eval "$ac_link") 2>conftest.err
36 kx ac_status=$?
36 kx if test -s conftest.err; then
36 kx grep -v '^ *+' conftest.err >conftest.er1
36 kx cat conftest.er1 >&5
36 kx mv -f conftest.er1 conftest.err
36 kx fi
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; } && {
36 kx test -z "$ac_c_werror_flag" ||
36 kx test ! -s conftest.err
36 kx } && test -s conftest$ac_exeext && {
36 kx test "$cross_compiling" = yes ||
36 kx test -x conftest$ac_exeext
36 kx }
36 kx then :
36 kx ac_retval=0
36 kx else $as_nop
36 kx printf "%s\n" "$as_me: failed program was:" >&5
36 kx sed 's/^/| /' conftest.$ac_ext >&5
36 kx
36 kx ac_retval=1
36 kx fi
36 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
36 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
36 kx # interfere with the next link command; also delete a directory that is
36 kx # left behind by Apple's compiler. We do this before executing the actions.
36 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
36 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
36 kx as_fn_set_status $ac_retval
36 kx
36 kx } # ac_fn_c_try_link
36 kx ac_configure_args_raw=
36 kx for ac_arg
36 kx do
36 kx case $ac_arg in
36 kx *\'*)
36 kx ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36 kx esac
36 kx as_fn_append ac_configure_args_raw " '$ac_arg'"
36 kx done
36 kx
36 kx case $ac_configure_args_raw in
36 kx *$as_nl*)
36 kx ac_safe_unquote= ;;
36 kx *)
36 kx ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
36 kx ac_unsafe_a="$ac_unsafe_z#~"
36 kx ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
36 kx ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
36 kx esac
36 kx
36 kx cat >config.log <<_ACEOF
36 kx This file contains any messages produced by compilers while
36 kx running configure, to aid debugging if configure makes a mistake.
36 kx
36 kx It was created by GNU C Library $as_me (see version.h), which was
36 kx generated by GNU Autoconf 2.71. Invocation command line was
36 kx
36 kx $ $0$ac_configure_args_raw
36 kx
36 kx _ACEOF
36 kx exec 5>>config.log
36 kx {
36 kx cat <<_ASUNAME
36 kx ## --------- ##
36 kx ## Platform. ##
36 kx ## --------- ##
36 kx
36 kx hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
36 kx uname -m = `(uname -m) 2>/dev/null || echo unknown`
36 kx uname -r = `(uname -r) 2>/dev/null || echo unknown`
36 kx uname -s = `(uname -s) 2>/dev/null || echo unknown`
36 kx uname -v = `(uname -v) 2>/dev/null || echo unknown`
36 kx
36 kx /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
36 kx /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
36 kx
36 kx /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
36 kx /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
36 kx /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
36 kx /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
36 kx /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
36 kx /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
36 kx /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
36 kx
36 kx _ASUNAME
36 kx
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx printf "%s\n" "PATH: $as_dir"
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx } >&5
36 kx
36 kx cat >&5 <<_ACEOF
36 kx
36 kx
36 kx ## ----------- ##
36 kx ## Core tests. ##
36 kx ## ----------- ##
36 kx
36 kx _ACEOF
36 kx
36 kx
36 kx # Keep a trace of the command line.
36 kx # Strip out --no-create and --no-recursion so they do not pile up.
36 kx # Strip out --silent because we don't want to record it for future runs.
36 kx # Also quote any args containing shell meta-characters.
36 kx # Make two passes to allow for proper duplicate-argument suppression.
36 kx ac_configure_args=
36 kx ac_configure_args0=
36 kx ac_configure_args1=
36 kx ac_must_keep_next=false
36 kx for ac_pass in 1 2
36 kx do
36 kx for ac_arg
36 kx do
36 kx case $ac_arg in
36 kx -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
36 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36 kx | -silent | --silent | --silen | --sile | --sil)
36 kx continue ;;
36 kx *\'*)
36 kx ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36 kx esac
36 kx case $ac_pass in
36 kx 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
36 kx 2)
36 kx as_fn_append ac_configure_args1 " '$ac_arg'"
36 kx if test $ac_must_keep_next = true; then
36 kx ac_must_keep_next=false # Got value, back to normal.
36 kx else
36 kx case $ac_arg in
36 kx *=* | --config-cache | -C | -disable-* | --disable-* \
36 kx | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
36 kx | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
36 kx | -with-* | --with-* | -without-* | --without-* | --x)
36 kx case "$ac_configure_args0 " in
36 kx "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
36 kx esac
36 kx ;;
36 kx -* ) ac_must_keep_next=true ;;
36 kx esac
36 kx fi
36 kx as_fn_append ac_configure_args " '$ac_arg'"
36 kx ;;
36 kx esac
36 kx done
36 kx done
36 kx { ac_configure_args0=; unset ac_configure_args0;}
36 kx { ac_configure_args1=; unset ac_configure_args1;}
36 kx
36 kx # When interrupted or exit'd, cleanup temporary files, and complete
36 kx # config.log. We remove comments because anyway the quotes in there
36 kx # would cause problems or look ugly.
36 kx # WARNING: Use '\'' to represent an apostrophe within the trap.
36 kx # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
36 kx trap 'exit_status=$?
36 kx # Sanitize IFS.
36 kx IFS=" "" $as_nl"
36 kx # Save into config.log some information that might help in debugging.
36 kx {
36 kx echo
36 kx
36 kx printf "%s\n" "## ---------------- ##
36 kx ## Cache variables. ##
36 kx ## ---------------- ##"
36 kx echo
36 kx # The following way of writing the cache mishandles newlines in values,
36 kx (
36 kx for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
36 kx eval ac_val=\$$ac_var
36 kx case $ac_val in #(
36 kx *${as_nl}*)
36 kx case $ac_var in #(
36 kx *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36 kx printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36 kx esac
36 kx case $ac_var in #(
36 kx _ | IFS | as_nl) ;; #(
36 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36 kx *) { eval $ac_var=; unset $ac_var;} ;;
36 kx esac ;;
36 kx esac
36 kx done
36 kx (set) 2>&1 |
36 kx case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
36 kx *${as_nl}ac_space=\ *)
36 kx sed -n \
36 kx "s/'\''/'\''\\\\'\'''\''/g;
36 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
36 kx ;; #(
36 kx *)
36 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36 kx ;;
36 kx esac |
36 kx sort
36 kx )
36 kx echo
36 kx
36 kx printf "%s\n" "## ----------------- ##
36 kx ## Output variables. ##
36 kx ## ----------------- ##"
36 kx echo
36 kx for ac_var in $ac_subst_vars
36 kx do
36 kx eval ac_val=\$$ac_var
36 kx case $ac_val in
36 kx *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
36 kx esac
36 kx printf "%s\n" "$ac_var='\''$ac_val'\''"
36 kx done | sort
36 kx echo
36 kx
36 kx if test -n "$ac_subst_files"; then
36 kx printf "%s\n" "## ------------------- ##
36 kx ## File substitutions. ##
36 kx ## ------------------- ##"
36 kx echo
36 kx for ac_var in $ac_subst_files
36 kx do
36 kx eval ac_val=\$$ac_var
36 kx case $ac_val in
36 kx *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
36 kx esac
36 kx printf "%s\n" "$ac_var='\''$ac_val'\''"
36 kx done | sort
36 kx echo
36 kx fi
36 kx
36 kx if test -s confdefs.h; then
36 kx printf "%s\n" "## ----------- ##
36 kx ## confdefs.h. ##
36 kx ## ----------- ##"
36 kx echo
36 kx cat confdefs.h
36 kx echo
36 kx fi
36 kx test "$ac_signal" != 0 &&
36 kx printf "%s\n" "$as_me: caught signal $ac_signal"
36 kx printf "%s\n" "$as_me: exit $exit_status"
36 kx } >&5
36 kx rm -f core *.core core.conftest.* &&
36 kx rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
36 kx exit $exit_status
36 kx ' 0
36 kx for ac_signal in 1 2 13 15; do
36 kx trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
36 kx done
36 kx ac_signal=0
36 kx
36 kx # confdefs.h avoids OS command line length limits that DEFS can exceed.
36 kx rm -f -r conftest* confdefs.h
36 kx
36 kx printf "%s\n" "/* confdefs.h */" > confdefs.h
36 kx
36 kx # Predefined preprocessor variables.
36 kx
36 kx printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
36 kx
36 kx printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
36 kx
36 kx printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
36 kx
36 kx printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
36 kx
36 kx printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
36 kx
36 kx printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
36 kx
36 kx
36 kx # Let the site file select an alternate cache file if it wants to.
36 kx # Prefer an explicitly selected file to automatically selected ones.
36 kx if test -n "$CONFIG_SITE"; then
36 kx ac_site_files="$CONFIG_SITE"
36 kx elif test "x$prefix" != xNONE; then
36 kx ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
36 kx else
36 kx ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
36 kx fi
36 kx
36 kx for ac_site_file in $ac_site_files
36 kx do
36 kx case $ac_site_file in #(
36 kx */*) :
36 kx ;; #(
36 kx *) :
36 kx ac_site_file=./$ac_site_file ;;
36 kx esac
36 kx if test -f "$ac_site_file" && test -r "$ac_site_file"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
36 kx printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
36 kx sed 's/^/| /' "$ac_site_file" >&5
36 kx . "$ac_site_file" \
36 kx || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36 kx as_fn_error $? "failed to load site script $ac_site_file
36 kx See \`config.log' for more details" "$LINENO" 5; }
36 kx fi
36 kx done
36 kx
36 kx if test -r "$cache_file"; then
36 kx # Some versions of bash will fail to source /dev/null (special files
36 kx # actually), so we avoid doing that. DJGPP emulates it as a regular file.
36 kx if test /dev/null != "$cache_file" && test -f "$cache_file"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
36 kx printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
36 kx case $cache_file in
36 kx [\\/]* | ?:[\\/]* ) . "$cache_file";;
36 kx *) . "./$cache_file";;
36 kx esac
36 kx fi
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
36 kx printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
36 kx >$cache_file
36 kx fi
36 kx
36 kx # Test code for whether the C compiler supports C89 (global declarations)
36 kx ac_c_conftest_c89_globals='
36 kx /* Does the compiler advertise C89 conformance?
36 kx Do not test the value of __STDC__, because some compilers set it to 0
36 kx while being otherwise adequately conformant. */
36 kx #if !defined __STDC__
36 kx # error "Compiler does not advertise C89 conformance"
36 kx #endif
36 kx
36 kx #include <stddef.h>
36 kx #include <stdarg.h>
36 kx struct stat;
36 kx /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
36 kx struct buf { int x; };
36 kx struct buf * (*rcsopen) (struct buf *, struct stat *, int);
36 kx static char *e (p, i)
36 kx char **p;
36 kx int i;
36 kx {
36 kx return p[i];
36 kx }
36 kx static char *f (char * (*g) (char **, int), char **p, ...)
36 kx {
36 kx char *s;
36 kx va_list v;
36 kx va_start (v,p);
36 kx s = g (p, va_arg (v,int));
36 kx va_end (v);
36 kx return s;
36 kx }
36 kx
36 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
36 kx function prototypes and stuff, but not \xHH hex character constants.
36 kx These do not provoke an error unfortunately, instead are silently treated
36 kx as an "x". The following induces an error, until -std is added to get
36 kx proper ANSI mode. Curiously \x00 != x always comes out true, for an
36 kx array size at least. It is necessary to write \x00 == 0 to get something
36 kx that is true only with -std. */
36 kx int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
36 kx
36 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
36 kx inside strings and character constants. */
36 kx #define FOO(x) '\''x'\''
36 kx int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
36 kx
36 kx int test (int i, double x);
36 kx struct s1 {int (*f) (int a);};
36 kx struct s2 {int (*f) (double a);};
36 kx int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
36 kx int, int);'
36 kx
36 kx # Test code for whether the C compiler supports C89 (body of main).
36 kx ac_c_conftest_c89_main='
36 kx ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
36 kx '
36 kx
36 kx # Test code for whether the C compiler supports C99 (global declarations)
36 kx ac_c_conftest_c99_globals='
36 kx // Does the compiler advertise C99 conformance?
36 kx #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
36 kx # error "Compiler does not advertise C99 conformance"
36 kx #endif
36 kx
36 kx #include <stdbool.h>
36 kx extern int puts (const char *);
36 kx extern int printf (const char *, ...);
36 kx extern int dprintf (int, const char *, ...);
36 kx extern void *malloc (size_t);
36 kx
36 kx // Check varargs macros. These examples are taken from C99 6.10.3.5.
36 kx // dprintf is used instead of fprintf to avoid needing to declare
36 kx // FILE and stderr.
36 kx #define debug(...) dprintf (2, __VA_ARGS__)
36 kx #define showlist(...) puts (#__VA_ARGS__)
36 kx #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
36 kx static void
36 kx test_varargs_macros (void)
36 kx {
36 kx int x = 1234;
36 kx int y = 5678;
36 kx debug ("Flag");
36 kx debug ("X = %d\n", x);
36 kx showlist (The first, second, and third items.);
36 kx report (x>y, "x is %d but y is %d", x, y);
36 kx }
36 kx
36 kx // Check long long types.
36 kx #define BIG64 18446744073709551615ull
36 kx #define BIG32 4294967295ul
36 kx #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
36 kx #if !BIG_OK
36 kx #error "your preprocessor is broken"
36 kx #endif
36 kx #if BIG_OK
36 kx #else
36 kx #error "your preprocessor is broken"
36 kx #endif
36 kx static long long int bignum = -9223372036854775807LL;
36 kx static unsigned long long int ubignum = BIG64;
36 kx
36 kx struct incomplete_array
36 kx {
36 kx int datasize;
36 kx double data[];
36 kx };
36 kx
36 kx struct named_init {
36 kx int number;
36 kx const wchar_t *name;
36 kx double average;
36 kx };
36 kx
36 kx typedef const char *ccp;
36 kx
36 kx static inline int
36 kx test_restrict (ccp restrict text)
36 kx {
36 kx // See if C++-style comments work.
36 kx // Iterate through items via the restricted pointer.
36 kx // Also check for declarations in for loops.
36 kx for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
36 kx continue;
36 kx return 0;
36 kx }
36 kx
36 kx // Check varargs and va_copy.
36 kx static bool
36 kx test_varargs (const char *format, ...)
36 kx {
36 kx va_list args;
36 kx va_start (args, format);
36 kx va_list args_copy;
36 kx va_copy (args_copy, args);
36 kx
36 kx const char *str = "";
36 kx int number = 0;
36 kx float fnumber = 0;
36 kx
36 kx while (*format)
36 kx {
36 kx switch (*format++)
36 kx {
36 kx case '\''s'\'': // string
36 kx str = va_arg (args_copy, const char *);
36 kx break;
36 kx case '\''d'\'': // int
36 kx number = va_arg (args_copy, int);
36 kx break;
36 kx case '\''f'\'': // float
36 kx fnumber = va_arg (args_copy, double);
36 kx break;
36 kx default:
36 kx break;
36 kx }
36 kx }
36 kx va_end (args_copy);
36 kx va_end (args);
36 kx
36 kx return *str && number && fnumber;
36 kx }
36 kx '
36 kx
36 kx # Test code for whether the C compiler supports C99 (body of main).
36 kx ac_c_conftest_c99_main='
36 kx // Check bool.
36 kx _Bool success = false;
36 kx success |= (argc != 0);
36 kx
36 kx // Check restrict.
36 kx if (test_restrict ("String literal") == 0)
36 kx success = true;
36 kx char *restrict newvar = "Another string";
36 kx
36 kx // Check varargs.
36 kx success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
36 kx test_varargs_macros ();
36 kx
36 kx // Check flexible array members.
36 kx struct incomplete_array *ia =
36 kx malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
36 kx ia->datasize = 10;
36 kx for (int i = 0; i < ia->datasize; ++i)
36 kx ia->data[i] = i * 1.234;
36 kx
36 kx // Check named initializers.
36 kx struct named_init ni = {
36 kx .number = 34,
36 kx .name = L"Test wide string",
36 kx .average = 543.34343,
36 kx };
36 kx
36 kx ni.number = 58;
36 kx
36 kx int dynamic_array[ni.number];
36 kx dynamic_array[0] = argv[0][0];
36 kx dynamic_array[ni.number - 1] = 543;
36 kx
36 kx // work around unused variable warnings
36 kx ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
36 kx || dynamic_array[ni.number - 1] != 543);
36 kx '
36 kx
36 kx # Test code for whether the C compiler supports C11 (global declarations)
36 kx ac_c_conftest_c11_globals='
36 kx // Does the compiler advertise C11 conformance?
36 kx #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
36 kx # error "Compiler does not advertise C11 conformance"
36 kx #endif
36 kx
36 kx // Check _Alignas.
36 kx char _Alignas (double) aligned_as_double;
36 kx char _Alignas (0) no_special_alignment;
36 kx extern char aligned_as_int;
36 kx char _Alignas (0) _Alignas (int) aligned_as_int;
36 kx
36 kx // Check _Alignof.
36 kx enum
36 kx {
36 kx int_alignment = _Alignof (int),
36 kx int_array_alignment = _Alignof (int[100]),
36 kx char_alignment = _Alignof (char)
36 kx };
36 kx _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
36 kx
36 kx // Check _Noreturn.
36 kx int _Noreturn does_not_return (void) { for (;;) continue; }
36 kx
36 kx // Check _Static_assert.
36 kx struct test_static_assert
36 kx {
36 kx int x;
36 kx _Static_assert (sizeof (int) <= sizeof (long int),
36 kx "_Static_assert does not work in struct");
36 kx long int y;
36 kx };
36 kx
36 kx // Check UTF-8 literals.
36 kx #define u8 syntax error!
36 kx char const utf8_literal[] = u8"happens to be ASCII" "another string";
36 kx
36 kx // Check duplicate typedefs.
36 kx typedef long *long_ptr;
36 kx typedef long int *long_ptr;
36 kx typedef long_ptr long_ptr;
36 kx
36 kx // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
36 kx struct anonymous
36 kx {
36 kx union {
36 kx struct { int i; int j; };
36 kx struct { int k; long int l; } w;
36 kx };
36 kx int m;
36 kx } v1;
36 kx '
36 kx
36 kx # Test code for whether the C compiler supports C11 (body of main).
36 kx ac_c_conftest_c11_main='
36 kx _Static_assert ((offsetof (struct anonymous, i)
36 kx == offsetof (struct anonymous, w.k)),
36 kx "Anonymous union alignment botch");
36 kx v1.i = 2;
36 kx v1.w.k = 5;
36 kx ok |= v1.i != 5;
36 kx '
36 kx
36 kx # Test code for whether the C compiler supports C11 (complete).
36 kx ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
36 kx ${ac_c_conftest_c99_globals}
36 kx ${ac_c_conftest_c11_globals}
36 kx
36 kx int
36 kx main (int argc, char **argv)
36 kx {
36 kx int ok = 0;
36 kx ${ac_c_conftest_c89_main}
36 kx ${ac_c_conftest_c99_main}
36 kx ${ac_c_conftest_c11_main}
36 kx return ok;
36 kx }
36 kx "
36 kx
36 kx # Test code for whether the C compiler supports C99 (complete).
36 kx ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
36 kx ${ac_c_conftest_c99_globals}
36 kx
36 kx int
36 kx main (int argc, char **argv)
36 kx {
36 kx int ok = 0;
36 kx ${ac_c_conftest_c89_main}
36 kx ${ac_c_conftest_c99_main}
36 kx return ok;
36 kx }
36 kx "
36 kx
36 kx # Test code for whether the C compiler supports C89 (complete).
36 kx ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
36 kx
36 kx int
36 kx main (int argc, char **argv)
36 kx {
36 kx int ok = 0;
36 kx ${ac_c_conftest_c89_main}
36 kx return ok;
36 kx }
36 kx "
36 kx
36 kx # Test code for whether the C++ compiler supports C++98 (global declarations)
36 kx ac_cxx_conftest_cxx98_globals='
36 kx // Does the compiler advertise C++98 conformance?
36 kx #if !defined __cplusplus || __cplusplus < 199711L
36 kx # error "Compiler does not advertise C++98 conformance"
36 kx #endif
36 kx
36 kx // These inclusions are to reject old compilers that
36 kx // lack the unsuffixed header files.
36 kx #include <cstdlib>
36 kx #include <exception>
36 kx
36 kx // <cassert> and <cstring> are *not* freestanding headers in C++98.
36 kx extern void assert (int);
36 kx namespace std {
36 kx extern int strcmp (const char *, const char *);
36 kx }
36 kx
36 kx // Namespaces, exceptions, and templates were all added after "C++ 2.0".
36 kx using std::exception;
36 kx using std::strcmp;
36 kx
36 kx namespace {
36 kx
36 kx void test_exception_syntax()
36 kx {
36 kx try {
36 kx throw "test";
36 kx } catch (const char *s) {
36 kx // Extra parentheses suppress a warning when building autoconf itself,
36 kx // due to lint rules shared with more typical C programs.
36 kx assert (!(strcmp) (s, "test"));
36 kx }
36 kx }
36 kx
36 kx template <typename T> struct test_template
36 kx {
36 kx T const val;
36 kx explicit test_template(T t) : val(t) {}
36 kx template <typename U> T add(U u) { return static_cast<T>(u) + val; }
36 kx };
36 kx
36 kx } // anonymous namespace
36 kx '
36 kx
36 kx # Test code for whether the C++ compiler supports C++98 (body of main)
36 kx ac_cxx_conftest_cxx98_main='
36 kx assert (argc);
36 kx assert (! argv[0]);
36 kx {
36 kx test_exception_syntax ();
36 kx test_template<double> tt (2.0);
36 kx assert (tt.add (4) == 6.0);
36 kx assert (true && !false);
36 kx }
36 kx '
36 kx
36 kx # Test code for whether the C++ compiler supports C++11 (global declarations)
36 kx ac_cxx_conftest_cxx11_globals='
36 kx // Does the compiler advertise C++ 2011 conformance?
36 kx #if !defined __cplusplus || __cplusplus < 201103L
36 kx # error "Compiler does not advertise C++11 conformance"
36 kx #endif
36 kx
36 kx namespace cxx11test
36 kx {
36 kx constexpr int get_val() { return 20; }
36 kx
36 kx struct testinit
36 kx {
36 kx int i;
36 kx double d;
36 kx };
36 kx
36 kx class delegate
36 kx {
36 kx public:
36 kx delegate(int n) : n(n) {}
36 kx delegate(): delegate(2354) {}
36 kx
36 kx virtual int getval() { return this->n; };
36 kx protected:
36 kx int n;
36 kx };
36 kx
36 kx class overridden : public delegate
36 kx {
36 kx public:
36 kx overridden(int n): delegate(n) {}
36 kx virtual int getval() override final { return this->n * 2; }
36 kx };
36 kx
36 kx class nocopy
36 kx {
36 kx public:
36 kx nocopy(int i): i(i) {}
36 kx nocopy() = default;
36 kx nocopy(const nocopy&) = delete;
36 kx nocopy & operator=(const nocopy&) = delete;
36 kx private:
36 kx int i;
36 kx };
36 kx
36 kx // for testing lambda expressions
36 kx template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
36 kx {
36 kx return f(v);
36 kx }
36 kx
36 kx // for testing variadic templates and trailing return types
36 kx template <typename V> auto sum(V first) -> V
36 kx {
36 kx return first;
36 kx }
36 kx template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
36 kx {
36 kx return first + sum(rest...);
36 kx }
36 kx }
36 kx '
36 kx
36 kx # Test code for whether the C++ compiler supports C++11 (body of main)
36 kx ac_cxx_conftest_cxx11_main='
36 kx {
36 kx // Test auto and decltype
36 kx auto a1 = 6538;
36 kx auto a2 = 48573953.4;
36 kx auto a3 = "String literal";
36 kx
36 kx int total = 0;
36 kx for (auto i = a3; *i; ++i) { total += *i; }
36 kx
36 kx decltype(a2) a4 = 34895.034;
36 kx }
36 kx {
36 kx // Test constexpr
36 kx short sa[cxx11test::get_val()] = { 0 };
36 kx }
36 kx {
36 kx // Test initializer lists
36 kx cxx11test::testinit il = { 4323, 435234.23544 };
36 kx }
36 kx {
36 kx // Test range-based for
36 kx int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
36 kx 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
36 kx for (auto &x : array) { x += 23; }
36 kx }
36 kx {
36 kx // Test lambda expressions
36 kx using cxx11test::eval;
36 kx assert (eval ([](int x) { return x*2; }, 21) == 42);
36 kx double d = 2.0;
36 kx assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
36 kx assert (d == 5.0);
36 kx assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
36 kx assert (d == 5.0);
36 kx }
36 kx {
36 kx // Test use of variadic templates
36 kx using cxx11test::sum;
36 kx auto a = sum(1);
36 kx auto b = sum(1, 2);
36 kx auto c = sum(1.0, 2.0, 3.0);
36 kx }
36 kx {
36 kx // Test constructor delegation
36 kx cxx11test::delegate d1;
36 kx cxx11test::delegate d2();
36 kx cxx11test::delegate d3(45);
36 kx }
36 kx {
36 kx // Test override and final
36 kx cxx11test::overridden o1(55464);
36 kx }
36 kx {
36 kx // Test nullptr
36 kx char *c = nullptr;
36 kx }
36 kx {
36 kx // Test template brackets
36 kx test_template<::test_template<int>> v(test_template<int>(12));
36 kx }
36 kx {
36 kx // Unicode literals
36 kx char const *utf8 = u8"UTF-8 string \u2500";
36 kx char16_t const *utf16 = u"UTF-8 string \u2500";
36 kx char32_t const *utf32 = U"UTF-32 string \u2500";
36 kx }
36 kx '
36 kx
36 kx # Test code for whether the C compiler supports C++11 (complete).
36 kx ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
36 kx ${ac_cxx_conftest_cxx11_globals}
36 kx
36 kx int
36 kx main (int argc, char **argv)
36 kx {
36 kx int ok = 0;
36 kx ${ac_cxx_conftest_cxx98_main}
36 kx ${ac_cxx_conftest_cxx11_main}
36 kx return ok;
36 kx }
36 kx "
36 kx
36 kx # Test code for whether the C compiler supports C++98 (complete).
36 kx ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
36 kx int
36 kx main (int argc, char **argv)
36 kx {
36 kx int ok = 0;
36 kx ${ac_cxx_conftest_cxx98_main}
36 kx return ok;
36 kx }
36 kx "
36 kx
36 kx
36 kx # Auxiliary files required by this configure script.
36 kx ac_aux_files="install-sh config.guess config.sub"
36 kx
36 kx # Locations in which to look for auxiliary files.
36 kx ac_aux_dir_candidates="${srcdir}/scripts"
36 kx
36 kx # Search for a directory containing all of the required auxiliary files,
36 kx # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
36 kx # If we don't find one directory that contains all the files we need,
36 kx # we report the set of missing files from the *first* directory in
36 kx # $ac_aux_dir_candidates and give up.
36 kx ac_missing_aux_files=""
36 kx ac_first_candidate=:
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx as_found=false
36 kx for as_dir in $ac_aux_dir_candidates
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx as_found=:
36 kx
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
36 kx ac_aux_dir_found=yes
36 kx ac_install_sh=
36 kx for ac_aux in $ac_aux_files
36 kx do
36 kx # As a special case, if "install-sh" is required, that requirement
36 kx # can be satisfied by any of "install-sh", "install.sh", or "shtool",
36 kx # and $ac_install_sh is set appropriately for whichever one is found.
36 kx if test x"$ac_aux" = x"install-sh"
36 kx then
36 kx if test -f "${as_dir}install-sh"; then
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
36 kx ac_install_sh="${as_dir}install-sh -c"
36 kx elif test -f "${as_dir}install.sh"; then
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
36 kx ac_install_sh="${as_dir}install.sh -c"
36 kx elif test -f "${as_dir}shtool"; then
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
36 kx ac_install_sh="${as_dir}shtool install -c"
36 kx else
36 kx ac_aux_dir_found=no
36 kx if $ac_first_candidate; then
36 kx ac_missing_aux_files="${ac_missing_aux_files} install-sh"
36 kx else
36 kx break
36 kx fi
36 kx fi
36 kx else
36 kx if test -f "${as_dir}${ac_aux}"; then
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
36 kx else
36 kx ac_aux_dir_found=no
36 kx if $ac_first_candidate; then
36 kx ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
36 kx else
36 kx break
36 kx fi
36 kx fi
36 kx fi
36 kx done
36 kx if test "$ac_aux_dir_found" = yes; then
36 kx ac_aux_dir="$as_dir"
36 kx break
36 kx fi
36 kx ac_first_candidate=false
36 kx
36 kx as_found=false
36 kx done
36 kx IFS=$as_save_IFS
36 kx if $as_found
36 kx then :
36 kx
36 kx else $as_nop
36 kx as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
36 kx fi
36 kx
36 kx
36 kx # These three variables are undocumented and unsupported,
36 kx # and are intended to be withdrawn in a future Autoconf release.
36 kx # They can cause serious problems if a builder's source tree is in a directory
36 kx # whose full name contains unusual characters.
36 kx if test -f "${ac_aux_dir}config.guess"; then
36 kx ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
36 kx fi
36 kx if test -f "${ac_aux_dir}config.sub"; then
36 kx ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
36 kx fi
36 kx if test -f "$ac_aux_dir/configure"; then
36 kx ac_configure="$SHELL ${ac_aux_dir}configure"
36 kx fi
36 kx
36 kx # Check that the precious variables saved in the cache have kept the same
36 kx # value.
36 kx ac_cache_corrupted=false
36 kx for ac_var in $ac_precious_vars; do
36 kx eval ac_old_set=\$ac_cv_env_${ac_var}_set
36 kx eval ac_new_set=\$ac_env_${ac_var}_set
36 kx eval ac_old_val=\$ac_cv_env_${ac_var}_value
36 kx eval ac_new_val=\$ac_env_${ac_var}_value
36 kx case $ac_old_set,$ac_new_set in
36 kx set,)
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
36 kx printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
36 kx ac_cache_corrupted=: ;;
36 kx ,set)
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
36 kx printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
36 kx ac_cache_corrupted=: ;;
36 kx ,);;
36 kx *)
36 kx if test "x$ac_old_val" != "x$ac_new_val"; then
36 kx # differences in whitespace do not lead to failure.
36 kx ac_old_val_w=`echo x $ac_old_val`
36 kx ac_new_val_w=`echo x $ac_new_val`
36 kx if test "$ac_old_val_w" != "$ac_new_val_w"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
36 kx printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
36 kx ac_cache_corrupted=:
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
36 kx printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
36 kx eval $ac_var=\$ac_old_val
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
36 kx printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
36 kx printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
36 kx fi;;
36 kx esac
36 kx # Pass precious variables to config.status.
36 kx if test "$ac_new_set" = set; then
36 kx case $ac_new_val in
36 kx *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
36 kx *) ac_arg=$ac_var=$ac_new_val ;;
36 kx esac
36 kx case " $ac_configure_args " in
36 kx *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
36 kx *) as_fn_append ac_configure_args " '$ac_arg'" ;;
36 kx esac
36 kx fi
36 kx done
36 kx if $ac_cache_corrupted; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
36 kx printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
36 kx as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
36 kx and start over" "$LINENO" 5
36 kx fi
36 kx ## -------------------- ##
36 kx ## Main body of script. ##
36 kx ## -------------------- ##
36 kx
36 kx ac_ext=c
36 kx ac_cpp='$CPP $CPPFLAGS'
36 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
36 kx
36 kx
36 kx
36 kx ac_config_headers="$ac_config_headers config.h"
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx # Check whether --with-pkgversion was given.
36 kx if test ${with_pkgversion+y}
36 kx then :
36 kx withval=$with_pkgversion; case "$withval" in
36 kx yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
36 kx no) PKGVERSION= ;;
36 kx *) PKGVERSION="($withval) " ;;
36 kx esac
36 kx else $as_nop
36 kx PKGVERSION="(GNU libc) "
36 kx
36 kx fi
36 kx
36 kx PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx # Check whether --with-bugurl was given.
36 kx if test ${with_bugurl+y}
36 kx then :
36 kx withval=$with_bugurl; case "$withval" in
36 kx yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
36 kx no) BUGURL=
36 kx ;;
36 kx *) BUGURL="$withval"
36 kx ;;
36 kx esac
36 kx else $as_nop
36 kx BUGURL="https://www.gnu.org/software/libc/bugs.html"
36 kx
36 kx fi
36 kx
36 kx case ${BUGURL} in
36 kx "")
36 kx REPORT_BUGS_TO=
36 kx REPORT_BUGS_TEXI=
36 kx ;;
36 kx *)
36 kx REPORT_BUGS_TO="<$BUGURL>"
36 kx REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
36 kx ;;
36 kx esac;
36 kx
36 kx
36 kx
36 kx
36 kx printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
36 kx
36 kx
36 kx printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
36 kx
36 kx
36 kx # Glibc should not depend on any header files
36 kx
36 kx
36 kx # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
36 kx # here to work around the Autoconf issue discussed in
36 kx # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
36 kx # AC_PROG_CPP
36 kx
36 kx # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
36 kx # issue discussed in
36 kx # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
36 kx
36 kx
36 kx
36 kx
36 kx subdirs="$subdirs "
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx # Make sure we can run config.sub.
36 kx $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
36 kx as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
36 kx printf %s "checking build system type... " >&6; }
36 kx if test ${ac_cv_build+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_build_alias=$build_alias
36 kx test "x$ac_build_alias" = x &&
36 kx ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
36 kx test "x$ac_build_alias" = x &&
36 kx as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
36 kx ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
36 kx as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
36 kx printf "%s\n" "$ac_cv_build" >&6; }
36 kx case $ac_cv_build in
36 kx *-*-*) ;;
36 kx *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
36 kx esac
36 kx build=$ac_cv_build
36 kx ac_save_IFS=$IFS; IFS='-'
36 kx set x $ac_cv_build
36 kx shift
36 kx build_cpu=$1
36 kx build_vendor=$2
36 kx shift; shift
36 kx # Remember, the first character of IFS is used to create $*,
36 kx # except with old shells:
36 kx build_os=$*
36 kx IFS=$ac_save_IFS
36 kx case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
36 kx printf %s "checking host system type... " >&6; }
36 kx if test ${ac_cv_host+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test "x$host_alias" = x; then
36 kx ac_cv_host=$ac_cv_build
36 kx else
36 kx ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
36 kx as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
36 kx fi
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
36 kx printf "%s\n" "$ac_cv_host" >&6; }
36 kx case $ac_cv_host in
36 kx *-*-*) ;;
36 kx *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
36 kx esac
36 kx host=$ac_cv_host
36 kx ac_save_IFS=$IFS; IFS='-'
36 kx set x $ac_cv_host
36 kx shift
36 kx host_cpu=$1
36 kx host_vendor=$2
36 kx shift; shift
36 kx # Remember, the first character of IFS is used to create $*,
36 kx # except with old shells:
36 kx host_os=$*
36 kx IFS=$ac_save_IFS
36 kx case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx ac_ext=c
36 kx ac_cpp='$CPP $CPPFLAGS'
36 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
36 kx if test -n "$ac_tool_prefix"; then
36 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
36 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$CC"; then
36 kx ac_cv_prog_CC="$CC" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx CC=$ac_cv_prog_CC
36 kx if test -n "$CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
36 kx printf "%s\n" "$CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx fi
36 kx if test -z "$ac_cv_prog_CC"; then
36 kx ac_ct_CC=$CC
36 kx # Extract the first word of "gcc", so it can be a program name with args.
36 kx set dummy gcc; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_ac_ct_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$ac_ct_CC"; then
36 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_ac_ct_CC="gcc"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
36 kx if test -n "$ac_ct_CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
36 kx printf "%s\n" "$ac_ct_CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx if test "x$ac_ct_CC" = x; then
36 kx CC=""
36 kx else
36 kx case $cross_compiling:$ac_tool_warned in
36 kx yes:)
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36 kx ac_tool_warned=yes ;;
36 kx esac
36 kx CC=$ac_ct_CC
36 kx fi
36 kx else
36 kx CC="$ac_cv_prog_CC"
36 kx fi
36 kx
36 kx if test -z "$CC"; then
36 kx if test -n "$ac_tool_prefix"; then
36 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
36 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$CC"; then
36 kx ac_cv_prog_CC="$CC" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx CC=$ac_cv_prog_CC
36 kx if test -n "$CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
36 kx printf "%s\n" "$CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx fi
36 kx fi
36 kx if test -z "$CC"; then
36 kx # Extract the first word of "cc", so it can be a program name with args.
36 kx set dummy cc; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$CC"; then
36 kx ac_cv_prog_CC="$CC" # Let the user override the test.
36 kx else
36 kx ac_prog_rejected=no
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
36 kx ac_prog_rejected=yes
36 kx continue
36 kx fi
36 kx ac_cv_prog_CC="cc"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx if test $ac_prog_rejected = yes; then
36 kx # We found a bogon in the path, so make sure we never use it.
36 kx set dummy $ac_cv_prog_CC
36 kx shift
36 kx if test $# != 0; then
36 kx # We chose a different compiler from the bogus one.
36 kx # However, it has the same basename, so the bogon will be chosen
36 kx # first if we set CC to just the basename; use the full file name.
36 kx shift
36 kx ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
36 kx fi
36 kx fi
36 kx fi
36 kx fi
36 kx CC=$ac_cv_prog_CC
36 kx if test -n "$CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
36 kx printf "%s\n" "$CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx fi
36 kx if test -z "$CC"; then
36 kx if test -n "$ac_tool_prefix"; then
36 kx for ac_prog in cl.exe
36 kx do
36 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$CC"; then
36 kx ac_cv_prog_CC="$CC" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx CC=$ac_cv_prog_CC
36 kx if test -n "$CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
36 kx printf "%s\n" "$CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$CC" && break
36 kx done
36 kx fi
36 kx if test -z "$CC"; then
36 kx ac_ct_CC=$CC
36 kx for ac_prog in cl.exe
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_ac_ct_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$ac_ct_CC"; then
36 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_ac_ct_CC="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
36 kx if test -n "$ac_ct_CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
36 kx printf "%s\n" "$ac_ct_CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$ac_ct_CC" && break
36 kx done
36 kx
36 kx if test "x$ac_ct_CC" = x; then
36 kx CC=""
36 kx else
36 kx case $cross_compiling:$ac_tool_warned in
36 kx yes:)
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36 kx ac_tool_warned=yes ;;
36 kx esac
36 kx CC=$ac_ct_CC
36 kx fi
36 kx fi
36 kx
36 kx fi
36 kx if test -z "$CC"; then
36 kx if test -n "$ac_tool_prefix"; then
36 kx # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
36 kx set dummy ${ac_tool_prefix}clang; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$CC"; then
36 kx ac_cv_prog_CC="$CC" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_CC="${ac_tool_prefix}clang"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx CC=$ac_cv_prog_CC
36 kx if test -n "$CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
36 kx printf "%s\n" "$CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx fi
36 kx if test -z "$ac_cv_prog_CC"; then
36 kx ac_ct_CC=$CC
36 kx # Extract the first word of "clang", so it can be a program name with args.
36 kx set dummy clang; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_ac_ct_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$ac_ct_CC"; then
36 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_ac_ct_CC="clang"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
36 kx if test -n "$ac_ct_CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
36 kx printf "%s\n" "$ac_ct_CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx if test "x$ac_ct_CC" = x; then
36 kx CC=""
36 kx else
36 kx case $cross_compiling:$ac_tool_warned in
36 kx yes:)
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36 kx ac_tool_warned=yes ;;
36 kx esac
36 kx CC=$ac_ct_CC
36 kx fi
36 kx else
36 kx CC="$ac_cv_prog_CC"
36 kx fi
36 kx
36 kx fi
36 kx
36 kx
36 kx test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36 kx as_fn_error $? "no acceptable C compiler found in \$PATH
36 kx See \`config.log' for more details" "$LINENO" 5; }
36 kx
36 kx # Provide some information about the compiler.
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
36 kx set X $ac_compile
36 kx ac_compiler=$2
36 kx for ac_option in --version -v -V -qversion -version; do
36 kx { { ac_try="$ac_compiler $ac_option >&5"
36 kx case "(($ac_try" in
36 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36 kx *) ac_try_echo=$ac_try;;
36 kx esac
36 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36 kx printf "%s\n" "$ac_try_echo"; } >&5
36 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
36 kx ac_status=$?
36 kx if test -s conftest.err; then
36 kx sed '10a\
36 kx ... rest of stderr output deleted ...
36 kx 10q' conftest.err >conftest.er1
36 kx cat conftest.er1 >&5
36 kx fi
36 kx rm -f conftest.er1 conftest.err
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }
36 kx done
36 kx
36 kx EXEEXT=
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
36 kx printf %s "checking for suffix of object files... " >&6; }
36 kx if test ${ac_cv_objext+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx rm -f conftest.o conftest.obj
36 kx if { { ac_try="$ac_compile"
36 kx case "(($ac_try" in
36 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36 kx *) ac_try_echo=$ac_try;;
36 kx esac
36 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36 kx printf "%s\n" "$ac_try_echo"; } >&5
36 kx (eval "$ac_compile") 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }
36 kx then :
36 kx for ac_file in conftest.o conftest.obj conftest.*; do
36 kx test -f "$ac_file" || continue;
36 kx case $ac_file in
36 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
36 kx *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
36 kx break;;
36 kx esac
36 kx done
36 kx else $as_nop
36 kx printf "%s\n" "$as_me: failed program was:" >&5
36 kx sed 's/^/| /' conftest.$ac_ext >&5
36 kx
36 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36 kx as_fn_error $? "cannot compute suffix of object files: cannot compile
36 kx See \`config.log' for more details" "$LINENO" 5; }
36 kx fi
36 kx rm -f conftest.$ac_cv_objext conftest.$ac_ext
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
36 kx printf "%s\n" "$ac_cv_objext" >&6; }
36 kx OBJEXT=$ac_cv_objext
36 kx ac_objext=$OBJEXT
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
36 kx printf %s "checking whether the compiler supports GNU C... " >&6; }
36 kx if test ${ac_cv_c_compiler_gnu+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx #ifndef __GNUC__
36 kx choke me
36 kx #endif
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx ac_compiler_gnu=yes
36 kx else $as_nop
36 kx ac_compiler_gnu=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
36 kx printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
36 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
36 kx
36 kx if test $ac_compiler_gnu = yes; then
36 kx GCC=yes
36 kx else
36 kx GCC=
36 kx fi
36 kx ac_test_CFLAGS=${CFLAGS+y}
36 kx ac_save_CFLAGS=$CFLAGS
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
36 kx printf %s "checking whether $CC accepts -g... " >&6; }
36 kx if test ${ac_cv_prog_cc_g+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_save_c_werror_flag=$ac_c_werror_flag
36 kx ac_c_werror_flag=yes
36 kx ac_cv_prog_cc_g=no
36 kx CFLAGS="-g"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cc_g=yes
36 kx else $as_nop
36 kx CFLAGS=""
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx
36 kx else $as_nop
36 kx ac_c_werror_flag=$ac_save_c_werror_flag
36 kx CFLAGS="-g"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cc_g=yes
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx ac_c_werror_flag=$ac_save_c_werror_flag
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
36 kx printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
36 kx if test $ac_test_CFLAGS; then
36 kx CFLAGS=$ac_save_CFLAGS
36 kx elif test $ac_cv_prog_cc_g = yes; then
36 kx if test "$GCC" = yes; then
36 kx CFLAGS="-g -O2"
36 kx else
36 kx CFLAGS="-g"
36 kx fi
36 kx else
36 kx if test "$GCC" = yes; then
36 kx CFLAGS="-O2"
36 kx else
36 kx CFLAGS=
36 kx fi
36 kx fi
36 kx ac_prog_cc_stdc=no
36 kx if test x$ac_prog_cc_stdc = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
36 kx printf %s "checking for $CC option to enable C11 features... " >&6; }
36 kx if test ${ac_cv_prog_cc_c11+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_cv_prog_cc_c11=no
36 kx ac_save_CC=$CC
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx $ac_c_conftest_c11_program
36 kx _ACEOF
36 kx for ac_arg in '' -std=gnu11
36 kx do
36 kx CC="$ac_save_CC $ac_arg"
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cc_c11=$ac_arg
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
36 kx test "x$ac_cv_prog_cc_c11" != "xno" && break
36 kx done
36 kx rm -f conftest.$ac_ext
36 kx CC=$ac_save_CC
36 kx fi
36 kx
36 kx if test "x$ac_cv_prog_cc_c11" = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
36 kx printf "%s\n" "unsupported" >&6; }
36 kx else $as_nop
36 kx if test "x$ac_cv_prog_cc_c11" = x
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
36 kx printf "%s\n" "none needed" >&6; }
36 kx else $as_nop
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
36 kx printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
36 kx CC="$CC $ac_cv_prog_cc_c11"
36 kx fi
36 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
36 kx ac_prog_cc_stdc=c11
36 kx fi
36 kx fi
36 kx if test x$ac_prog_cc_stdc = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
36 kx printf %s "checking for $CC option to enable C99 features... " >&6; }
36 kx if test ${ac_cv_prog_cc_c99+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_cv_prog_cc_c99=no
36 kx ac_save_CC=$CC
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx $ac_c_conftest_c99_program
36 kx _ACEOF
36 kx for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
36 kx do
36 kx CC="$ac_save_CC $ac_arg"
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cc_c99=$ac_arg
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
36 kx test "x$ac_cv_prog_cc_c99" != "xno" && break
36 kx done
36 kx rm -f conftest.$ac_ext
36 kx CC=$ac_save_CC
36 kx fi
36 kx
36 kx if test "x$ac_cv_prog_cc_c99" = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
36 kx printf "%s\n" "unsupported" >&6; }
36 kx else $as_nop
36 kx if test "x$ac_cv_prog_cc_c99" = x
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
36 kx printf "%s\n" "none needed" >&6; }
36 kx else $as_nop
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
36 kx printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
36 kx CC="$CC $ac_cv_prog_cc_c99"
36 kx fi
36 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
36 kx ac_prog_cc_stdc=c99
36 kx fi
36 kx fi
36 kx if test x$ac_prog_cc_stdc = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
36 kx printf %s "checking for $CC option to enable C89 features... " >&6; }
36 kx if test ${ac_cv_prog_cc_c89+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_cv_prog_cc_c89=no
36 kx ac_save_CC=$CC
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx $ac_c_conftest_c89_program
36 kx _ACEOF
36 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
36 kx do
36 kx CC="$ac_save_CC $ac_arg"
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cc_c89=$ac_arg
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
36 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
36 kx done
36 kx rm -f conftest.$ac_ext
36 kx CC=$ac_save_CC
36 kx fi
36 kx
36 kx if test "x$ac_cv_prog_cc_c89" = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
36 kx printf "%s\n" "unsupported" >&6; }
36 kx else $as_nop
36 kx if test "x$ac_cv_prog_cc_c89" = x
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
36 kx printf "%s\n" "none needed" >&6; }
36 kx else $as_nop
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
36 kx printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
36 kx CC="$CC $ac_cv_prog_cc_c89"
36 kx fi
36 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
36 kx ac_prog_cc_stdc=c89
36 kx fi
36 kx fi
36 kx
36 kx ac_ext=c
36 kx ac_cpp='$CPP $CPPFLAGS'
36 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
36 kx
36 kx if test $host != $build; then
36 kx for ac_prog in gcc cc
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_BUILD_CC+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$BUILD_CC"; then
36 kx ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_BUILD_CC="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx BUILD_CC=$ac_cv_prog_BUILD_CC
36 kx if test -n "$BUILD_CC"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
36 kx printf "%s\n" "$BUILD_CC" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$BUILD_CC" && break
36 kx done
36 kx
36 kx fi
36 kx
36 kx # On Suns, sometimes $CPP names a directory.
36 kx if test -n "$CPP" && test -d "$CPP"; then
36 kx CPP=
36 kx fi
36 kx if test -z "$CPP"; then
36 kx CPP="$CC -E"
36 kx fi
36 kx
36 kx
36 kx # We need the C++ compiler only for testing.
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx ac_ext=cpp
36 kx ac_cpp='$CXXCPP $CPPFLAGS'
36 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36 kx if test -z "$CXX"; then
36 kx if test -n "$CCC"; then
36 kx CXX=$CCC
36 kx else
36 kx if test -n "$ac_tool_prefix"; then
36 kx for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
36 kx do
36 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_CXX+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$CXX"; then
36 kx ac_cv_prog_CXX="$CXX" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx CXX=$ac_cv_prog_CXX
36 kx if test -n "$CXX"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
36 kx printf "%s\n" "$CXX" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$CXX" && break
36 kx done
36 kx fi
36 kx if test -z "$CXX"; then
36 kx ac_ct_CXX=$CXX
36 kx for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_ac_ct_CXX+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$ac_ct_CXX"; then
36 kx ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_ac_ct_CXX="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
36 kx if test -n "$ac_ct_CXX"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
36 kx printf "%s\n" "$ac_ct_CXX" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$ac_ct_CXX" && break
36 kx done
36 kx
36 kx if test "x$ac_ct_CXX" = x; then
36 kx CXX="g++"
36 kx else
36 kx case $cross_compiling:$ac_tool_warned in
36 kx yes:)
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36 kx ac_tool_warned=yes ;;
36 kx esac
36 kx CXX=$ac_ct_CXX
36 kx fi
36 kx fi
36 kx
36 kx fi
36 kx fi
36 kx # Provide some information about the compiler.
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
36 kx set X $ac_compile
36 kx ac_compiler=$2
36 kx for ac_option in --version -v -V -qversion; do
36 kx { { ac_try="$ac_compiler $ac_option >&5"
36 kx case "(($ac_try" in
36 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36 kx *) ac_try_echo=$ac_try;;
36 kx esac
36 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36 kx printf "%s\n" "$ac_try_echo"; } >&5
36 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
36 kx ac_status=$?
36 kx if test -s conftest.err; then
36 kx sed '10a\
36 kx ... rest of stderr output deleted ...
36 kx 10q' conftest.err >conftest.er1
36 kx cat conftest.er1 >&5
36 kx fi
36 kx rm -f conftest.er1 conftest.err
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }
36 kx done
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
36 kx printf %s "checking whether the compiler supports GNU C++... " >&6; }
36 kx if test ${ac_cv_cxx_compiler_gnu+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx #ifndef __GNUC__
36 kx choke me
36 kx #endif
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_cxx_try_compile "$LINENO"
36 kx then :
36 kx ac_compiler_gnu=yes
36 kx else $as_nop
36 kx ac_compiler_gnu=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
36 kx printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
36 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36 kx
36 kx if test $ac_compiler_gnu = yes; then
36 kx GXX=yes
36 kx else
36 kx GXX=
36 kx fi
36 kx ac_test_CXXFLAGS=${CXXFLAGS+y}
36 kx ac_save_CXXFLAGS=$CXXFLAGS
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
36 kx printf %s "checking whether $CXX accepts -g... " >&6; }
36 kx if test ${ac_cv_prog_cxx_g+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
36 kx ac_cxx_werror_flag=yes
36 kx ac_cv_prog_cxx_g=no
36 kx CXXFLAGS="-g"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_cxx_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cxx_g=yes
36 kx else $as_nop
36 kx CXXFLAGS=""
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_cxx_try_compile "$LINENO"
36 kx then :
36 kx
36 kx else $as_nop
36 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
36 kx CXXFLAGS="-g"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_cxx_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cxx_g=yes
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
36 kx printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
36 kx if test $ac_test_CXXFLAGS; then
36 kx CXXFLAGS=$ac_save_CXXFLAGS
36 kx elif test $ac_cv_prog_cxx_g = yes; then
36 kx if test "$GXX" = yes; then
36 kx CXXFLAGS="-g -O2"
36 kx else
36 kx CXXFLAGS="-g"
36 kx fi
36 kx else
36 kx if test "$GXX" = yes; then
36 kx CXXFLAGS="-O2"
36 kx else
36 kx CXXFLAGS=
36 kx fi
36 kx fi
36 kx ac_prog_cxx_stdcxx=no
36 kx if test x$ac_prog_cxx_stdcxx = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
36 kx printf %s "checking for $CXX option to enable C++11 features... " >&6; }
36 kx if test ${ac_cv_prog_cxx_cxx11+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_cv_prog_cxx_cxx11=no
36 kx ac_save_CXX=$CXX
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx $ac_cxx_conftest_cxx11_program
36 kx _ACEOF
36 kx for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
36 kx do
36 kx CXX="$ac_save_CXX $ac_arg"
36 kx if ac_fn_cxx_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cxx_cxx11=$ac_arg
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
36 kx test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
36 kx done
36 kx rm -f conftest.$ac_ext
36 kx CXX=$ac_save_CXX
36 kx fi
36 kx
36 kx if test "x$ac_cv_prog_cxx_cxx11" = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
36 kx printf "%s\n" "unsupported" >&6; }
36 kx else $as_nop
36 kx if test "x$ac_cv_prog_cxx_cxx11" = x
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
36 kx printf "%s\n" "none needed" >&6; }
36 kx else $as_nop
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
36 kx printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
36 kx CXX="$CXX $ac_cv_prog_cxx_cxx11"
36 kx fi
36 kx ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
36 kx ac_prog_cxx_stdcxx=cxx11
36 kx fi
36 kx fi
36 kx if test x$ac_prog_cxx_stdcxx = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
36 kx printf %s "checking for $CXX option to enable C++98 features... " >&6; }
36 kx if test ${ac_cv_prog_cxx_cxx98+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_cv_prog_cxx_cxx98=no
36 kx ac_save_CXX=$CXX
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx $ac_cxx_conftest_cxx98_program
36 kx _ACEOF
36 kx for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
36 kx do
36 kx CXX="$ac_save_CXX $ac_arg"
36 kx if ac_fn_cxx_try_compile "$LINENO"
36 kx then :
36 kx ac_cv_prog_cxx_cxx98=$ac_arg
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
36 kx test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
36 kx done
36 kx rm -f conftest.$ac_ext
36 kx CXX=$ac_save_CXX
36 kx fi
36 kx
36 kx if test "x$ac_cv_prog_cxx_cxx98" = xno
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
36 kx printf "%s\n" "unsupported" >&6; }
36 kx else $as_nop
36 kx if test "x$ac_cv_prog_cxx_cxx98" = x
36 kx then :
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
36 kx printf "%s\n" "none needed" >&6; }
36 kx else $as_nop
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
36 kx printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
36 kx CXX="$CXX $ac_cv_prog_cxx_cxx98"
36 kx fi
36 kx ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
36 kx ac_prog_cxx_stdcxx=cxx98
36 kx fi
36 kx fi
36 kx
36 kx ac_ext=c
36 kx ac_cpp='$CPP $CPPFLAGS'
36 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
36 kx
36 kx # It's useless to us if it can't link programs (e.g. missing -lstdc++).
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
36 kx printf %s "checking whether $CXX can link programs... " >&6; }
36 kx if test ${libc_cv_cxx_link_ok+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_ext=cpp
36 kx ac_cpp='$CXXCPP $CPPFLAGS'
36 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36 kx
36 kx # Default, dynamic case.
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_cxx_try_link "$LINENO"
36 kx then :
36 kx libc_cv_cxx_link_ok=yes
36 kx else $as_nop
36 kx libc_cv_cxx_link_ok=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
36 kx conftest$ac_exeext conftest.$ac_ext
36 kx # Static case.
36 kx old_LDFLAGS="$LDFLAGS"
36 kx LDFLAGS="$LDFLAGS -static"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx #include <iostream>
36 kx
36 kx int
36 kx main()
36 kx {
36 kx std::cout << "Hello, world!";
36 kx return 0;
36 kx }
36 kx
36 kx _ACEOF
36 kx if ac_fn_cxx_try_link "$LINENO"
36 kx then :
36 kx
36 kx else $as_nop
36 kx libc_cv_cxx_link_ok=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
36 kx conftest$ac_exeext conftest.$ac_ext
36 kx LDFLAGS="$old_LDFLAGS"
36 kx ac_ext=c
36 kx ac_cpp='$CPP $CPPFLAGS'
36 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
36 kx printf "%s\n" "$libc_cv_cxx_link_ok" >&6; }
36 kx if test $libc_cv_cxx_link_ok != yes
36 kx then :
36 kx CXX=
36 kx fi
36 kx
36 kx if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
36 kx as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
36 kx fi
36 kx
36 kx # This will get text that should go into config.make.
36 kx config_vars=
36 kx
36 kx # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
36 kx
36 kx # Check whether --with-gd was given.
36 kx if test ${with_gd+y}
36 kx then :
36 kx withval=$with_gd; case "$with_gd" in
36 kx yes|''|no) ;;
36 kx *) libgd_include="-I$withval/include"
36 kx libgd_ldflags="-L$withval/lib" ;;
36 kx esac
36 kx
36 kx fi
36 kx
36 kx
36 kx # Check whether --with-gd-include was given.
36 kx if test ${with_gd_include+y}
36 kx then :
36 kx withval=$with_gd_include; case "$with_gd_include" in
36 kx ''|no) ;;
36 kx *) libgd_include="-I$withval" ;;
36 kx esac
36 kx
36 kx fi
36 kx
36 kx
36 kx # Check whether --with-gd-lib was given.
36 kx if test ${with_gd_lib+y}
36 kx then :
36 kx withval=$with_gd_lib; case "$with_gd_lib" in
36 kx ''|no) ;;
36 kx *) libgd_ldflags="-L$withval" ;;
36 kx esac
36 kx
36 kx fi
36 kx
36 kx
36 kx if test -n "$libgd_include"; then
36 kx config_vars="$config_vars
36 kx CFLAGS-memusagestat.c = $libgd_include"
36 kx fi
36 kx if test -n "$libgd_ldflags"; then
36 kx config_vars="$config_vars
36 kx libgd-LDFLAGS = $libgd_ldflags"
36 kx fi
36 kx
36 kx
36 kx # Check whether --with-binutils was given.
36 kx if test ${with_binutils+y}
36 kx then :
36 kx withval=$with_binutils; path_binutils=$withval
36 kx else $as_nop
36 kx path_binutils=''
36 kx fi
36 kx
36 kx
36 kx # Check whether --with-selinux was given.
36 kx if test ${with_selinux+y}
36 kx then :
36 kx withval=$with_selinux; with_selinux=$withval
36 kx else $as_nop
36 kx with_selinux=auto
36 kx fi
36 kx
36 kx
36 kx
36 kx # Check whether --with-headers was given.
36 kx if test ${with_headers+y}
36 kx then :
36 kx withval=$with_headers; sysheaders=$withval
36 kx else $as_nop
36 kx sysheaders=''
36 kx fi
36 kx
36 kx
36 kx
36 kx
36 kx # Check whether --with-nonshared-cflags was given.
36 kx if test ${with_nonshared_cflags+y}
36 kx then :
36 kx withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
36 kx else $as_nop
36 kx extra_nonshared_cflags=
36 kx fi
36 kx
36 kx
36 kx
36 kx # Check whether --with-rtld-early-cflags was given.
36 kx if test ${with_rtld_early_cflags+y}
36 kx then :
36 kx withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
36 kx else $as_nop
36 kx rtld_early_cflags=
36 kx fi
36 kx
36 kx
36 kx
36 kx
36 kx # Check whether --with-timeoutfactor was given.
36 kx if test ${with_timeoutfactor+y}
36 kx then :
36 kx withval=$with_timeoutfactor; timeoutfactor=$withval
36 kx else $as_nop
36 kx timeoutfactor=1
36 kx fi
36 kx
36 kx printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
36 kx
36 kx
36 kx # Check whether --enable-sanity-checks was given.
36 kx if test ${enable_sanity_checks+y}
36 kx then :
36 kx enableval=$enable_sanity_checks; enable_sanity=$enableval
36 kx else $as_nop
36 kx enable_sanity=yes
36 kx fi
36 kx
36 kx
36 kx # Check whether --enable-shared was given.
36 kx if test ${enable_shared+y}
36 kx then :
36 kx enableval=$enable_shared; shared=$enableval
36 kx else $as_nop
36 kx shared=yes
36 kx fi
36 kx
36 kx # Check whether --enable-profile was given.
36 kx if test ${enable_profile+y}
36 kx then :
36 kx enableval=$enable_profile; profile=$enableval
36 kx else $as_nop
36 kx profile=no
36 kx fi
36 kx
36 kx # Check whether --enable-default-pie was given.
36 kx if test ${enable_default_pie+y}
36 kx then :
36 kx enableval=$enable_default_pie; default_pie=$enableval
36 kx else $as_nop
36 kx default_pie=yes
36 kx fi
36 kx
36 kx # Check whether --enable-timezone-tools was given.
36 kx if test ${enable_timezone_tools+y}
36 kx then :
36 kx enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
36 kx else $as_nop
36 kx enable_timezone_tools=yes
36 kx fi
36 kx
36 kx
36 kx
36 kx # Check whether --enable-hardcoded-path-in-tests was given.
36 kx if test ${enable_hardcoded_path_in_tests+y}
36 kx then :
36 kx enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
36 kx else $as_nop
36 kx hardcoded_path_in_tests=no
36 kx fi
36 kx
36 kx
36 kx
36 kx # Check whether --enable-hidden-plt was given.
36 kx if test ${enable_hidden_plt+y}
36 kx then :
36 kx enableval=$enable_hidden_plt; hidden=$enableval
36 kx else $as_nop
36 kx hidden=yes
36 kx fi
36 kx
36 kx if test "x$hidden" = xno; then
36 kx printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx # Check whether --enable-bind-now was given.
36 kx if test ${enable_bind_now+y}
36 kx then :
36 kx enableval=$enable_bind_now; bindnow=$enableval
36 kx else $as_nop
36 kx bindnow=no
36 kx fi
36 kx
36 kx
36 kx if test "x$bindnow" = xyes; then
36 kx printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx # Check whether --enable-stack-protector was given.
36 kx if test ${enable_stack_protector+y}
36 kx then :
36 kx enableval=$enable_stack_protector; enable_stack_protector=$enableval
36 kx else $as_nop
36 kx enable_stack_protector=no
36 kx fi
36 kx
36 kx case "$enable_stack_protector" in
36 kx all|yes|no|strong) ;;
36 kx *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
36 kx esac
36 kx
36 kx # Check whether --enable-static-nss was given.
36 kx if test ${enable_static_nss+y}
36 kx then :
36 kx enableval=$enable_static_nss; static_nss=$enableval
36 kx else $as_nop
36 kx static_nss=no
36 kx fi
36 kx
36 kx if test x"$static_nss" = xyes || test x"$shared" = xno; then
36 kx static_nss=yes
36 kx printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx # Check whether --enable-force-install was given.
36 kx if test ${enable_force_install+y}
36 kx then :
36 kx enableval=$enable_force_install; force_install=$enableval
36 kx else $as_nop
36 kx force_install=yes
36 kx fi
36 kx
36 kx
36 kx
36 kx # Check whether --enable-maintainer-mode was given.
36 kx if test ${enable_maintainer_mode+y}
36 kx then :
36 kx enableval=$enable_maintainer_mode; maintainer=$enableval
36 kx else $as_nop
36 kx maintainer=no
36 kx fi
36 kx
36 kx
36 kx # Check whether --enable-kernel was given.
36 kx if test ${enable_kernel+y}
36 kx then :
36 kx enableval=$enable_kernel; minimum_kernel=$enableval
36 kx fi
36 kx
36 kx if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
36 kx # Better nothing than this.
36 kx minimum_kernel=""
36 kx else
36 kx if test "$minimum_kernel" = current; then
36 kx minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
36 kx fi
36 kx fi
36 kx
36 kx # Check whether --enable-werror was given.
36 kx if test ${enable_werror+y}
36 kx then :
36 kx enableval=$enable_werror; enable_werror=$enableval
36 kx else $as_nop
36 kx enable_werror=yes
36 kx fi
36 kx
36 kx
36 kx
36 kx # Check whether --enable-multi-arch was given.
36 kx if test ${enable_multi_arch+y}
36 kx then :
36 kx enableval=$enable_multi_arch; multi_arch=$enableval
36 kx else $as_nop
36 kx multi_arch=default
36 kx fi
36 kx
36 kx
36 kx # Check whether --enable-memory-tagging was given.
36 kx if test ${enable_memory_tagging+y}
36 kx then :
36 kx enableval=$enable_memory_tagging; memory_tagging=$enableval
36 kx else $as_nop
36 kx memory_tagging=no
36 kx fi
36 kx
36 kx if test "$memory_tagging" = yes; then
36 kx # Only enable this on architectures that support it.
36 kx case $host_cpu in
36 kx aarch64)
36 kx printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
36 kx
36 kx ;;
36 kx esac
36 kx fi
36 kx
36 kx
36 kx # Check whether --enable-systemtap was given.
36 kx if test ${enable_systemtap+y}
36 kx then :
36 kx enableval=$enable_systemtap; systemtap=$enableval
36 kx else $as_nop
36 kx systemtap=no
36 kx fi
36 kx
36 kx if test "x$systemtap" != xno; then
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
36 kx printf %s "checking for systemtap static probe support... " >&6; }
36 kx if test ${libc_cv_sdt+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx old_CFLAGS="$CFLAGS"
36 kx CFLAGS="-std=gnu11 $CFLAGS"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx #include <sys/sdt.h>
36 kx void foo (int i, void *p)
36 kx {
36 kx asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
36 kx :: STAP_PROBE_ASM_OPERANDS (2, i, p));
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx libc_cv_sdt=yes
36 kx else $as_nop
36 kx libc_cv_sdt=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx CFLAGS="$old_CFLAGS"
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
36 kx printf "%s\n" "$libc_cv_sdt" >&6; }
36 kx if test $libc_cv_sdt = yes; then
36 kx printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
36 kx
36 kx elif test "x$systemtap" != xauto; then
36 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36 kx as_fn_error $? "systemtap support needs sys/sdt.h with asm support
36 kx See \`config.log' for more details" "$LINENO" 5; }
36 kx fi
36 kx fi
36 kx
36 kx # Check whether --enable-build-nscd was given.
36 kx if test ${enable_build_nscd+y}
36 kx then :
36 kx enableval=$enable_build_nscd; build_nscd=$enableval
36 kx else $as_nop
36 kx build_nscd=default
36 kx fi
36 kx
36 kx
36 kx
36 kx # Note the use of $use_nscd is near the bottom of the file.
36 kx # Check whether --enable-nscd was given.
36 kx if test ${enable_nscd+y}
36 kx then :
36 kx enableval=$enable_nscd; use_nscd=$enableval
36 kx else $as_nop
36 kx use_nscd=yes
36 kx fi
36 kx
36 kx
36 kx # Check whether --enable-pt_chown was given.
36 kx if test ${enable_pt_chown+y}
36 kx then :
36 kx enableval=$enable_pt_chown; build_pt_chown=$enableval
36 kx else $as_nop
36 kx build_pt_chown=no
36 kx fi
36 kx
36 kx
36 kx if test "$build_pt_chown" = yes; then
36 kx printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx # The abi-tags file uses a fairly simplistic model for name recognition that
36 kx # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
36 kx # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
36 kx # This doesn't get used much beyond that, so it's fairly safe.
36 kx case "$host_os" in
36 kx linux*)
36 kx ;;
36 kx gnu*)
36 kx host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
36 kx ;;
36 kx esac
36 kx
36 kx # Check whether --enable-mathvec was given.
36 kx if test ${enable_mathvec+y}
36 kx then :
36 kx enableval=$enable_mathvec; build_mathvec=$enableval
36 kx else $as_nop
36 kx build_mathvec=notset
36 kx fi
36 kx
36 kx
36 kx
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx #ifndef __CET__
36 kx # error no CET compiler support
36 kx #endif
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_cpp "$LINENO"
36 kx then :
36 kx libc_cv_compiler_default_cet=yes
36 kx else $as_nop
36 kx libc_cv_compiler_default_cet=no
36 kx fi
36 kx rm -f conftest.err conftest.i conftest.$ac_ext
36 kx
36 kx # Check whether --enable-cet was given.
36 kx if test ${enable_cet+y}
36 kx then :
36 kx enableval=$enable_cet; enable_cet=$enableval
36 kx else $as_nop
36 kx enable_cet=$libc_cv_compiler_default_cet
36 kx fi
36 kx
36 kx
36 kx # Check whether --enable-scv was given.
36 kx if test ${enable_scv+y}
36 kx then :
36 kx enableval=$enable_scv; use_scv=$enableval
36 kx else $as_nop
36 kx use_scv=yes
36 kx fi
36 kx
36 kx
36 kx if test "$use_scv" != "no"
36 kx then :
36 kx printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx # Check whether --enable-fortify-source was given.
36 kx if test ${enable_fortify_source+y}
36 kx then :
36 kx enableval=$enable_fortify_source; enable_fortify_source=$enableval
36 kx else $as_nop
36 kx enable_fortify_source=no
36 kx fi
36 kx
36 kx case "$enable_fortify_source" in
36 kx 1|2|3|no|yes) ;;
36 kx *) as_fn_error $? "Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
36 kx esac
36 kx
36 kx # We keep the original values in `$config_*' and never modify them, so we
36 kx # can write them unchanged into config.make. Everything else uses
36 kx # $machine, $vendor, and $os, and changes them whenever convenient.
36 kx config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
36 kx
36 kx # Don't allow vendor == "unknown"
36 kx test "$config_vendor" = unknown && config_vendor=
36 kx config_os="`echo $config_os | sed 's/^unknown-//'`"
36 kx
36 kx # Some configurations imply other options.
36 kx elf=yes
36 kx
36 kx # The configure fragment of a port can modify these to supplement
36 kx # or override the table in the case statement below. No fragment should
36 kx # ever change the config_* variables, however.
36 kx machine=$config_machine
36 kx vendor=$config_vendor
36 kx os=$config_os
36 kx base_os=''
36 kx
36 kx submachine=
36 kx
36 kx # Check whether --with-cpu was given.
36 kx if test ${with_cpu+y}
36 kx then :
36 kx withval=$with_cpu; case "$withval" in
36 kx yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
36 kx no) ;;
36 kx *) submachine="$withval" ;;
36 kx esac
36 kx
36 kx fi
36 kx
36 kx
36 kx # An preconfigure script can set this when it wants to disable the sanity
36 kx # check below.
36 kx libc_config_ok=no
36 kx
36 kx # A preconfigure script for a system that may or may not use fpu
36 kx # sysdeps directories sets this to a preprocessor conditional for
36 kx # whether to use such directories.
36 kx with_fp_cond=1
36 kx
36 kx if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
36 kx then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
36 kx printf %s "checking for sysdeps preconfigure fragments... " >&6; }
36 kx for frag in $frags; do
36 kx name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
36 kx echo $ECHO_N "$name $ECHO_C" >&6
36 kx . "$frag"
36 kx done
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
36 kx printf "%s\n" "" >&6; }
36 kx fi
36 kx
36 kx
36 kx ###
36 kx ### By using the undocumented --enable-hacker-mode option for configure
36 kx ### one can skip this test to make the configuration not fail for unsupported
36 kx ### platforms.
36 kx ###
36 kx if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
36 kx case "$machine-$host_os" in
36 kx *-linux* | *-gnu*)
36 kx ;;
36 kx *)
36 kx as_fn_error $? "
36 kx *** The GNU C library is currently unavailable for this platform.
36 kx *** If you are interested in seeing glibc on this platform visit
36 kx *** the \"How to submit a new port\" in the wiki:
36 kx *** https://sourceware.org/glibc/wiki/#Development
36 kx *** and join the community!" "$LINENO" 5
36 kx ;;
36 kx esac
36 kx fi
36 kx
36 kx # Set base_machine if not set by a preconfigure fragment.
36 kx test -n "$base_machine" || base_machine=$machine
36 kx
36 kx
36 kx ### Locate tools.
36 kx
36 kx
36 kx # Find a good install program. We prefer a C program (faster),
36 kx # so one script is as good as another. But avoid the broken or
36 kx # incompatible versions:
36 kx # SysV /etc/install, /usr/sbin/install
36 kx # SunOS /usr/etc/install
36 kx # IRIX /sbin/install
36 kx # AIX /bin/install
36 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
36 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
36 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
36 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
36 kx # OS/2's system install, which has a completely different semantic
36 kx # ./install, which can be erroneously created by make from ./install.sh.
36 kx # Reject install programs that cannot install multiple files.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
36 kx printf %s "checking for a BSD-compatible install... " >&6; }
36 kx if test -z "$INSTALL"; then
36 kx if test ${ac_cv_path_install+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx # Account for fact that we put trailing slashes in our PATH walk.
36 kx case $as_dir in #((
36 kx ./ | /[cC]/* | \
36 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
36 kx ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
36 kx /usr/ucb/* ) ;;
36 kx *)
36 kx # OSF1 and SCO ODT 3.0 have their own names for install.
36 kx # Don't use installbsd from OSF since it installs stuff as root
36 kx # by default.
36 kx for ac_prog in ginstall scoinst install; do
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
36 kx if test $ac_prog = install &&
36 kx grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36 kx # AIX install. It has an incompatible calling convention.
36 kx :
36 kx elif test $ac_prog = install &&
36 kx grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36 kx # program-specific install script used by HP pwplus--don't use.
36 kx :
36 kx else
36 kx rm -rf conftest.one conftest.two conftest.dir
36 kx echo one > conftest.one
36 kx echo two > conftest.two
36 kx mkdir conftest.dir
36 kx if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
36 kx test -s conftest.one && test -s conftest.two &&
36 kx test -s conftest.dir/conftest.one &&
36 kx test -s conftest.dir/conftest.two
36 kx then
36 kx ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
36 kx break 3
36 kx fi
36 kx fi
36 kx fi
36 kx done
36 kx done
36 kx ;;
36 kx esac
36 kx
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx rm -rf conftest.one conftest.two conftest.dir
36 kx
36 kx fi
36 kx if test ${ac_cv_path_install+y}; then
36 kx INSTALL=$ac_cv_path_install
36 kx else
36 kx # As a last resort, use the slow shell script. Don't cache a
36 kx # value for INSTALL within a source directory, because that will
36 kx # break other packages using the cache if that directory is
36 kx # removed, or if the value is a relative name.
36 kx INSTALL=$ac_install_sh
36 kx fi
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
36 kx printf "%s\n" "$INSTALL" >&6; }
36 kx
36 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36 kx # It thinks the first close brace ends the variable substitution.
36 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36 kx
36 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36 kx
36 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36 kx
36 kx if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
36 kx # The makefiles need to use a different form to find it in $srcdir.
36 kx INSTALL='\$(..)./scripts/install-sh -c'
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
36 kx printf %s "checking whether ln -s works... " >&6; }
36 kx LN_S=$as_ln_s
36 kx if test "$LN_S" = "ln -s"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36 kx printf "%s\n" "yes" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
36 kx printf "%s\n" "no, using $LN_S" >&6; }
36 kx fi
36 kx
36 kx
36 kx # Was a --with-binutils option given?
36 kx if test -n "$path_binutils"; then
36 kx # Make absolute; ensure a single trailing slash.
36 kx path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
36 kx CC="$CC -B$path_binutils"
36 kx fi
36 kx case "$CC" in
36 kx *fuse-ld=lld*) LDNAME=ld.lld;;
36 kx *) LDNAME=ld;;
36 kx esac
36 kx if test -z "$LD"; then
36 kx LD=`$CC -print-prog-name=$LDNAME`
36 kx fi
36 kx if test -z "$AR"; then
36 kx AR=`$CC -print-prog-name=ar`
36 kx fi
36 kx
36 kx if test -z "$OBJCOPY"; then
36 kx OBJCOPY=`$CC -print-prog-name=objcopy`
36 kx fi
36 kx
36 kx if test -z "$GPROF"; then
36 kx GPROF=`$CC -print-prog-name=gprof`
36 kx fi
36 kx
36 kx if test -z "$READELF"; then
36 kx READELF=`$CC -print-prog-name=readelf`
36 kx fi
36 kx
36 kx if test -z "$OBJDUMP"; then
36 kx OBJDUMP=`$CC -print-prog-name=objdump`
36 kx fi
36 kx
36 kx if test -z "$NM"; then
36 kx NM=`$CC -print-prog-name=nm`
36 kx fi
36 kx
36 kx
36 kx
36 kx # Accept binutils 2.25 or newer.
36 kx libc_cv_with_lld=no
36 kx case $($LD --version) in
36 kx "GNU gold"*)
36 kx # Accept gold 1.14 or higher
36 kx for ac_prog in $LD
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_LD+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$LD"; then
36 kx ac_cv_prog_LD="$LD" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_LD="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx LD=$ac_cv_prog_LD
36 kx if test -n "$LD"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
36 kx printf "%s\n" "$LD" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$LD" && break
36 kx done
36 kx
36 kx if test -z "$LD"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
36 kx printf %s "checking version of $LD... " >&6; }
36 kx ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx LD=: critic_missing="$critic_missing GNU gold"
36 kx fi
36 kx
36 kx ;;
36 kx "LLD"*)
36 kx # Accept LLD 13.0.0 or higher
36 kx for ac_prog in $LD
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_LD+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$LD"; then
36 kx ac_cv_prog_LD="$LD" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_LD="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx LD=$ac_cv_prog_LD
36 kx if test -n "$LD"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
36 kx printf "%s\n" "$LD" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$LD" && break
36 kx done
36 kx
36 kx if test -z "$LD"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
36 kx printf %s "checking version of $LD... " >&6; }
36 kx ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 1[3-9].*|[2-9][0-9].*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx LD=: critic_missing="$critic_missing LLD"
36 kx fi
36 kx
36 kx libc_cv_with_lld=yes
36 kx ;;
36 kx *)
36 kx for ac_prog in $LD
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_LD+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$LD"; then
36 kx ac_cv_prog_LD="$LD" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_LD="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx LD=$ac_cv_prog_LD
36 kx if test -n "$LD"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
36 kx printf "%s\n" "$LD" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$LD" && break
36 kx done
36 kx
36 kx if test -z "$LD"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
36 kx printf %s "checking version of $LD... " >&6; }
36 kx ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx LD=: critic_missing="$critic_missing GNU ld"
36 kx fi
36 kx
36 kx ;;
36 kx esac
36 kx config_vars="$config_vars
36 kx with-lld = $libc_cv_with_lld"
36 kx
36 kx # These programs are version sensitive.
36 kx for ac_prog in gnumake gmake make
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_MAKE+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$MAKE"; then
36 kx ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_MAKE="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx MAKE=$ac_cv_prog_MAKE
36 kx if test -n "$MAKE"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
36 kx printf "%s\n" "$MAKE" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$MAKE" && break
36 kx done
36 kx
36 kx if test -z "$MAKE"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
36 kx printf %s "checking version of $MAKE... " >&6; }
36 kx ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx [4-9].* | [1-9][0-9]*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx critic_missing="$critic_missing make"
36 kx fi
36 kx
36 kx
36 kx for ac_prog in gnumsgfmt gmsgfmt msgfmt
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_MSGFMT+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$MSGFMT"; then
36 kx ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_MSGFMT="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx MSGFMT=$ac_cv_prog_MSGFMT
36 kx if test -n "$MSGFMT"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
36 kx printf "%s\n" "$MSGFMT" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$MSGFMT" && break
36 kx done
36 kx
36 kx if test -z "$MSGFMT"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
36 kx printf %s "checking version of $MSGFMT... " >&6; }
36 kx ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx MSGFMT=: aux_missing="$aux_missing msgfmt"
36 kx fi
36 kx
36 kx for ac_prog in makeinfo
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_MAKEINFO+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$MAKEINFO"; then
36 kx ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_MAKEINFO="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx MAKEINFO=$ac_cv_prog_MAKEINFO
36 kx if test -n "$MAKEINFO"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
36 kx printf "%s\n" "$MAKEINFO" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$MAKEINFO" && break
36 kx done
36 kx
36 kx if test -z "$MAKEINFO"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
36 kx printf %s "checking version of $MAKEINFO... " >&6; }
36 kx ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx MAKEINFO=: aux_missing="$aux_missing makeinfo"
36 kx fi
36 kx
36 kx for ac_prog in sed
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_SED+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$SED"; then
36 kx ac_cv_prog_SED="$SED" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_SED="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx SED=$ac_cv_prog_SED
36 kx if test -n "$SED"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
36 kx printf "%s\n" "$SED" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$SED" && break
36 kx done
36 kx
36 kx if test -z "$SED"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
36 kx printf %s "checking version of $SED... " >&6; }
36 kx ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 3.0[2-9]*|3.[1-9]*|[4-9]*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx SED=: aux_missing="$aux_missing sed"
36 kx fi
36 kx
36 kx for ac_prog in gawk
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_AWK+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$AWK"; then
36 kx ac_cv_prog_AWK="$AWK" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_AWK="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx AWK=$ac_cv_prog_AWK
36 kx if test -n "$AWK"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
36 kx printf "%s\n" "$AWK" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$AWK" && break
36 kx done
36 kx
36 kx if test -z "$AWK"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
36 kx printf %s "checking version of $AWK... " >&6; }
36 kx ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 3.1.[2-9]*|3.[2-9]*|[4-9]*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx critic_missing="$critic_missing gawk"
36 kx fi
36 kx
36 kx for ac_prog in bison
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_BISON+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$BISON"; then
36 kx ac_cv_prog_BISON="$BISON" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_BISON="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx BISON=$ac_cv_prog_BISON
36 kx if test -n "$BISON"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
36 kx printf "%s\n" "$BISON" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$BISON" && break
36 kx done
36 kx
36 kx if test -z "$BISON"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
36 kx printf %s "checking version of $BISON... " >&6; }
36 kx ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 2.7*|[3-9].*|[1-9][0-9]*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx critic_missing="$critic_missing bison"
36 kx fi
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
36 kx printf %s "checking if $CC is sufficient to build libc... " >&6; }
36 kx if test ${libc_cv_compiler_ok+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx
36 kx #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
36 kx #error insufficient compiler
36 kx #endif
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_cpp "$LINENO"
36 kx then :
36 kx libc_cv_compiler_ok=yes
36 kx else $as_nop
36 kx libc_cv_compiler_ok=no
36 kx fi
36 kx rm -f conftest.err conftest.i conftest.$ac_ext
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
36 kx printf "%s\n" "$libc_cv_compiler_ok" >&6; }
36 kx if test $libc_cv_compiler_ok != yes
36 kx then :
36 kx critic_missing="$critic_missing compiler"
36 kx fi
36 kx
36 kx if test "x$maintainer" = "xyes"; then
36 kx for ac_prog in autoconf
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_AUTOCONF+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$AUTOCONF"; then
36 kx ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_AUTOCONF="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx AUTOCONF=$ac_cv_prog_AUTOCONF
36 kx if test -n "$AUTOCONF"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
36 kx printf "%s\n" "$AUTOCONF" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$AUTOCONF" && break
36 kx done
36 kx test -n "$AUTOCONF" || AUTOCONF="no"
36 kx
36 kx case "x$AUTOCONF" in
36 kx xno|x|x:) AUTOCONF=no ;;
36 kx *)
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
36 kx printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
36 kx if test ${libc_cv_autoconf_works+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
36 kx libc_cv_autoconf_works=yes
36 kx else
36 kx libc_cv_autoconf_works=no
36 kx fi
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
36 kx printf "%s\n" "$libc_cv_autoconf_works" >&6; }
36 kx test $libc_cv_autoconf_works = yes || AUTOCONF=no
36 kx ;;
36 kx esac
36 kx if test "x$AUTOCONF" = xno; then
36 kx aux_missing="$aux_missing autoconf"
36 kx fi
36 kx else
36 kx AUTOCONF=no
36 kx fi
36 kx
36 kx # Check for python3 if available, or else python.
36 kx for ac_prog in python3 python
36 kx do
36 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
36 kx set dummy $ac_prog; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_prog_PYTHON_PROG+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if test -n "$PYTHON_PROG"; then
36 kx ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
36 kx else
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_prog_PYTHON_PROG="$ac_prog"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx fi
36 kx fi
36 kx PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
36 kx if test -n "$PYTHON_PROG"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
36 kx printf "%s\n" "$PYTHON_PROG" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx test -n "$PYTHON_PROG" && break
36 kx done
36 kx
36 kx if test -z "$PYTHON_PROG"; then
36 kx ac_verc_fail=yes
36 kx else
36 kx # Found it, now check the version.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
36 kx printf %s "checking version of $PYTHON_PROG... " >&6; }
36 kx ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
36 kx case $ac_prog_version in
36 kx '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
36 kx 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
36 kx ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
36 kx *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
36 kx
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
36 kx printf "%s\n" "$ac_prog_version" >&6; }
36 kx fi
36 kx if test $ac_verc_fail = yes; then
36 kx critic_missing="$critic_missing python"
36 kx fi
36 kx
36 kx PYTHON="$PYTHON_PROG -B"
36 kx
36 kx
36 kx test -n "$critic_missing" && as_fn_error $? "
36 kx *** These critical programs are missing or too old:$critic_missing
36 kx *** Check the INSTALL file for required versions." "$LINENO" 5
36 kx
36 kx test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
36 kx *** These auxiliary programs are missing or incompatible versions:$aux_missing
36 kx *** some features or tests will be disabled.
36 kx *** Check the INSTALL file for required versions." >&5
36 kx printf "%s\n" "$as_me: WARNING:
36 kx *** These auxiliary programs are missing or incompatible versions:$aux_missing
36 kx *** some features or tests will be disabled.
36 kx *** Check the INSTALL file for required versions." >&2;}
36 kx
36 kx
36 kx # Determine whether to use fpu or nofpu sysdeps directories.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
36 kx printf %s "checking for use of fpu sysdeps directories... " >&6; }
36 kx if test ${libc_cv_with_fp+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx #if $with_fp_cond
36 kx int dummy;
36 kx #else
36 kx # error "no hardware floating point"
36 kx #endif
36 kx EOF
36 kx libc_cv_with_fp=no
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
36 kx 1>&5 2>&5 ; then
36 kx libc_cv_with_fp=yes
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
36 kx printf "%s\n" "$libc_cv_with_fp" >&6; }
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
36 kx printf %s "checking for -fstack-protector... " >&6; }
36 kx if test ${libc_cv_ssp+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then :
36 kx libc_cv_ssp=yes
36 kx else $as_nop
36 kx libc_cv_ssp=no
36 kx fi
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
36 kx printf "%s\n" "$libc_cv_ssp" >&6; }
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
36 kx printf %s "checking for -fstack-protector-strong... " >&6; }
36 kx if test ${libc_cv_ssp_strong+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then :
36 kx libc_cv_ssp_strong=yes
36 kx else $as_nop
36 kx libc_cv_ssp_strong=no
36 kx fi
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
36 kx printf "%s\n" "$libc_cv_ssp_strong" >&6; }
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
36 kx printf %s "checking for -fstack-protector-all... " >&6; }
36 kx if test ${libc_cv_ssp_all+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then :
36 kx libc_cv_ssp_all=yes
36 kx else $as_nop
36 kx libc_cv_ssp_all=no
36 kx fi
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
36 kx printf "%s\n" "$libc_cv_ssp_all" >&6; }
36 kx
36 kx stack_protector=
36 kx no_stack_protector=
36 kx if test "$libc_cv_ssp" = yes; then
36 kx no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
36 kx printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
36 kx stack_protector="-fstack-protector"
36 kx printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
36 kx
36 kx elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
36 kx stack_protector="-fstack-protector-all"
36 kx printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
36 kx
36 kx elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
36 kx stack_protector="-fstack-protector-strong"
36 kx printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
36 kx
36 kx else
36 kx stack_protector="-fno-stack-protector"
36 kx printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx
36 kx
36 kx
36 kx if test -n "$stack_protector"; then
36 kx no_ssp=-fno-stack-protector
36 kx else
36 kx no_ssp=
36 kx
36 kx if test "$enable_stack_protector" != no; then
36 kx as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
36 kx fi
36 kx fi
36 kx
36 kx # For the multi-arch option we need support in the assembler & linker.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
36 kx printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
36 kx if test ${libc_cv_ld_gnu_indirect_function+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.S <<EOF
36 kx .type foo,%gnu_indirect_function
36 kx foo:
36 kx .globl _start
36 kx _start:
36 kx .globl __start
36 kx __start:
36 kx .data
36 kx #ifdef _LP64
36 kx .quad foo
36 kx #else
36 kx .long foo
36 kx #endif
36 kx EOF
36 kx libc_cv_ld_gnu_indirect_function=no
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
36 kx -nostartfiles -nostdlib $no_ssp \
36 kx -o conftest conftest.S 1>&5 2>&5; then
36 kx # Do a link to see if the backend supports IFUNC relocs.
36 kx $READELF -r conftest 1>&5
36 kx LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
36 kx libc_cv_ld_gnu_indirect_function=yes
36 kx }
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
36 kx printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; }
36 kx
36 kx # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
36 kx printf %s "checking for gcc attribute ifunc support... " >&6; }
36 kx if test ${libc_cv_gcc_indirect_function+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx extern int func (int);
36 kx int used_func (int a)
36 kx {
36 kx return a;
36 kx }
36 kx static void *resolver ()
36 kx {
36 kx return &used_func;
36 kx }
36 kx extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
36 kx EOF
36 kx libc_cv_gcc_indirect_function=no
36 kx if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
36 kx 2>&5 ; then
36 kx if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
36 kx libc_cv_gcc_indirect_function=yes
36 kx fi
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
36 kx printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; }
36 kx
36 kx # Check if linker supports textrel relocation with ifunc (used on elf/tests).
36 kx # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
36 kx printf %s "checking whether the linker supports textrels along with ifunc... " >&6; }
36 kx if test ${libc_cv_textrel_ifunc+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.S <<EOF
36 kx .type foo,%gnu_indirect_function
36 kx foo:
36 kx .globl _start
36 kx _start:
36 kx .globl __start
36 kx __start:
36 kx .data
36 kx #ifdef _LP64
36 kx .quad foo
36 kx #else
36 kx .long foo
36 kx #endif
36 kx .text
36 kx .globl address
36 kx address:
36 kx #ifdef _LP64
36 kx .quad address
36 kx #else
36 kx .long address
36 kx #endif
36 kx EOF
36 kx libc_cv_textrel_ifunc=no
36 kx if test $libc_cv_ld_gnu_indirect_function = yes; then
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }; then
36 kx libc_cv_textrel_ifunc=yes
36 kx fi
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
36 kx printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
36 kx
36 kx
36 kx # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
36 kx printf %s "checking for GNU attribute retain support... " >&6; }
36 kx if test ${libc_cv_gnu_retain+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx static int var __attribute__ ((used, retain, section ("__libc_atexit")));
36 kx EOF
36 kx libc_cv_gnu_retain=no
36 kx if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \
36 kx 2>&5 ; then
36 kx libc_cv_gnu_retain=yes
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
36 kx printf "%s\n" "$libc_cv_gnu_retain" >&6; }
36 kx if test $libc_cv_gnu_retain = yes; then
36 kx printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
36 kx
36 kx fi
36 kx config_vars="$config_vars
36 kx have-gnu-retain = $libc_cv_gnu_retain"
36 kx
36 kx # Check if gcc warns about alias for function with incompatible types.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
36 kx printf %s "checking if compiler warns about alias for function with incompatible types... " >&6; }
36 kx if test ${libc_cv_gcc_incompatible_alias+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx int __redirect_foo (const void *s, int c);
36 kx
36 kx __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
36 kx __typeof (__redirect_foo) *foo_impl (void)
36 kx {
36 kx return 0;
36 kx }
36 kx
36 kx extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
36 kx EOF
36 kx libc_cv_gcc_incompatible_alias=yes
36 kx if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
36 kx libc_cv_gcc_incompatible_alias=no
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
36 kx printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; }
36 kx
36 kx if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
36 kx if test x"$multi_arch" = xyes; then
36 kx as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
36 kx else
36 kx multi_arch=no
36 kx fi
36 kx fi
36 kx if test x"$libc_cv_gcc_indirect_function" != xyes; then
36 kx # GCC 8+ emits a warning for alias with incompatible types and it might
36 kx # fail to build ifunc resolvers aliases to either weak or internal
36 kx # symbols. Disables multiarch build in this case.
36 kx if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
36 kx printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
36 kx if test x"$multi_arch" = xyes; then
36 kx as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
36 kx printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;}
36 kx multi_arch=no
36 kx elif test x"$multi_arch" = xyes; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
36 kx Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
36 kx printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
36 kx Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
36 kx fi
36 kx fi
36 kx multi_arch_d=
36 kx if test x"$multi_arch" != xno; then
36 kx multi_arch_d=/multiarch
36 kx fi
36 kx
36 kx # Compute the list of sysdep directories for this configuration.
36 kx # This can take a while to compute.
36 kx sysdep_dir=$srcdir/sysdeps
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
36 kx printf %s "checking sysdep dirs... " >&6; }
36 kx # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
36 kx os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
36 kx
36 kx test "x$base_os" != x || case "$os" in
36 kx gnu*)
36 kx base_os=mach/hurd ;;
36 kx linux*)
36 kx base_os=unix/sysv ;;
36 kx esac
36 kx
36 kx # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
36 kx tail=$os
36 kx ostry=$os
36 kx while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
36 kx ostry="$ostry /$o"
36 kx tail=$o
36 kx done
36 kx o=`echo $tail | sed 's/[0-9]*$//'`
36 kx if test $o != $tail; then
36 kx ostry="$ostry /$o"
36 kx fi
36 kx # For linux-gnu, try linux-gnu, then linux.
36 kx o=`echo $tail | sed 's/-.*$//'`
36 kx if test $o != $tail; then
36 kx ostry="$ostry /$o"
36 kx fi
36 kx
36 kx # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
36 kx base=
36 kx tail=$base_os
36 kx while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
36 kx set $b
36 kx base="$base /$1"
36 kx tail="$2"
36 kx done
36 kx
36 kx # For sparc/sparc32, try sparc/sparc32 and then sparc.
36 kx mach=
36 kx tail=$machine${submachine:+/$submachine}
36 kx while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
36 kx set $m
36 kx # Prepend the machine's FPU directory unless the architecture specific
36 kx # preconfigure disables it.
36 kx if test "$libc_cv_with_fp" = yes; then
36 kx maybe_fpu=/fpu
36 kx else
36 kx maybe_fpu=/nofpu
36 kx fi
36 kx # For each machine term, try it with and then without /multiarch.
36 kx for try_fpu in $maybe_fpu ''; do
36 kx for try_multi in $multi_arch_d ''; do
36 kx mach="$mach /$1$try_fpu$try_multi"
36 kx done
36 kx done
36 kx tail="$2"
36 kx done
36 kx
36 kx
36 kx # Find what sysdep directories exist.
36 kx sysnames=
36 kx for b in $base ''; do
36 kx for m0 in $mach ''; do
36 kx for v in /$vendor ''; do
36 kx test "$v" = / && continue
36 kx for o in /$ostry ''; do
36 kx test "$o" = / && continue
36 kx for m in $mach ''; do
36 kx try_suffix="$m0$b$v$o$m"
36 kx if test -n "$try_suffix"; then
36 kx try_srcdir="${srcdir}/"
36 kx try="sysdeps$try_suffix"
36 kx test -n "$enable_debug_configure" &&
36 kx echo "$0 DEBUG: try $try" >&2
36 kx if test -d "$try_srcdir$try"; then
36 kx sysnames="$sysnames $try"
36 kx { test -n "$o" || test -n "$b"; } && os_used=t
36 kx { test -n "$m" || test -n "$m0"; } && machine_used=t
36 kx case x${m0:-$m} in
36 kx x*/$submachine) submachine_used=t ;;
36 kx esac
36 kx fi
36 kx fi
36 kx done
36 kx done
36 kx done
36 kx done
36 kx done
36 kx
36 kx # If the assembler supports gnu_indirect_function symbol type and the
36 kx # architecture supports multi-arch, we enable multi-arch by default.
36 kx case $sysnames in
36 kx *"$multi_arch_d"*)
36 kx ;;
36 kx *)
36 kx test x"$multi_arch" = xdefault && multi_arch=no
36 kx ;;
36 kx esac
36 kx if test x"$multi_arch" != xno; then
36 kx printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx
36 kx if test -z "$os_used" && test "$os" != none; then
36 kx as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
36 kx fi
36 kx if test -z "$machine_used" && test "$machine" != none; then
36 kx as_fn_error $? "The $machine is not supported." "$LINENO" 5
36 kx fi
36 kx if test -z "$submachine_used" && test -n "$submachine"; then
36 kx as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
36 kx fi
36 kx
36 kx
36 kx # We have now validated the configuration.
36 kx
36 kx # Expand the list of system names into a full list of directories
36 kx # from each element's parent name and Implies file (if present).
36 kx set $sysnames
36 kx names=
36 kx while test $# -gt 0; do
36 kx name=$1
36 kx shift
36 kx
36 kx case " $names " in *" $name "*)
36 kx # Already in the list.
36 kx continue
36 kx esac
36 kx
36 kx # Report each name as we discover it, so there is no long pause in output.
36 kx echo $ECHO_N "$name $ECHO_C" >&6
36 kx
36 kx name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
36 kx
36 kx case $name in
36 kx /*) xsrcdir= ;;
36 kx *) xsrcdir=$srcdir/ ;;
36 kx esac
36 kx test -n "$enable_debug_configure" &&
36 kx echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
36 kx
36 kx for implies_file in Implies Implies-before Implies-after; do
36 kx implies_type=`echo $implies_file | sed s/-/_/`
36 kx eval ${implies_type}=
36 kx if test -f $xsrcdir$name/$implies_file; then
36 kx # Collect more names from the `Implies' file (removing comments).
36 kx implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
36 kx for x in $implied_candidate; do
36 kx found=no
36 kx if test -d $xsrcdir$name_base/$x; then
36 kx eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
36 kx found=yes
36 kx fi
36 kx try="sysdeps/$x"
36 kx try_srcdir=$srcdir/
36 kx test -n "$enable_debug_configure" &&
36 kx echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
36 kx if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
36 kx then
36 kx eval "${implies_type}=\"\$${implies_type} \$try\""
36 kx found=yes
36 kx fi
36 kx if test $found = no; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
36 kx printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
36 kx fi
36 kx done
36 kx fi
36 kx done
36 kx
36 kx # Add NAME to the list of names.
36 kx names="$names $name"
36 kx
36 kx # Find the parent of NAME, using the empty string if it has none.
36 kx parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
36 kx
36 kx test -n "$enable_debug_configure" &&
36 kx echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
36 kx Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
36 kx
36 kx # Add the names implied by NAME, and NAME's parent (if it has one), to
36 kx # the list of names to be processed (the argument list). We prepend the
36 kx # implied names to the list and append the parent. We want implied
36 kx # directories to come before further directories inferred from the
36 kx # configuration components; this ensures that for sysv4, unix/common
36 kx # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
36 kx # after sysv4).
36 kx sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
36 kx test -n "$sysnames" && set $sysnames
36 kx done
36 kx
36 kx # Add the default directories.
36 kx default_sysnames="sysdeps/generic"
36 kx sysnames="$names $default_sysnames"
36 kx
36 kx # The other names were emitted during the scan.
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
36 kx printf "%s\n" "$default_sysnames" >&6; }
36 kx
36 kx # if using special system headers, find out the compiler's sekrit
36 kx # header directory and add that to the list. NOTE: Only does the right
36 kx # thing on a system that doesn't need fixincludes. (Not presently a problem.)
36 kx if test -n "$sysheaders"; then
36 kx SYSINCLUDES=-nostdinc
36 kx for d in include include-fixed; do
36 kx i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
36 kx SYSINCLUDES="$SYSINCLUDES -isystem $i"
36 kx done
36 kx SYSINCLUDES="$SYSINCLUDES \
36 kx -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
36 kx if test -n "$CXX"; then
36 kx CXX_SYSINCLUDES=
36 kx for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
36 kx | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
36 kx test "x$cxxheaders" != x &&
36 kx CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
36 kx done
36 kx fi
36 kx fi
36 kx
36 kx
36 kx
36 kx # Obtain some C++ header file paths. This is used to make a local
36 kx # copy of those headers in Makerules.
36 kx if test -n "$CXX"; then
36 kx find_cxx_header () {
36 kx echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
36 kx | $AWK '$1 == "."{print $2}'
36 kx }
36 kx CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
36 kx CXX_CMATH_HEADER="$(find_cxx_header cmath)"
36 kx CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
36 kx fi
36 kx
36 kx
36 kx
36 kx
36 kx # Test if LD_LIBRARY_PATH contains the notation for the current directory
36 kx # since this would lead to problems installing/building glibc.
36 kx # LD_LIBRARY_PATH contains the current directory if one of the following
36 kx # is true:
36 kx # - one of the terminals (":" and ";") is the first or last sign
36 kx # - two terminals occur directly after each other
36 kx # - the path contains an element with a dot in it
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
36 kx printf %s "checking LD_LIBRARY_PATH variable... " >&6; }
36 kx case ${LD_LIBRARY_PATH} in
36 kx [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
36 kx ld_library_path_setting="contains current directory"
36 kx ;;
36 kx *)
36 kx ld_library_path_setting="ok"
36 kx ;;
36 kx esac
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
36 kx printf "%s\n" "$ld_library_path_setting" >&6; }
36 kx if test "$ld_library_path_setting" != "ok"; then
36 kx as_fn_error $? "
36 kx *** LD_LIBRARY_PATH shouldn't contain the current directory when
36 kx *** building glibc. Please change the environment variable
36 kx *** and run configure again." "$LINENO" 5
36 kx fi
36 kx
36 kx # Extract the first word of "bash", so it can be a program name with args.
36 kx set dummy bash; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_path_BASH_SHELL+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx case $BASH_SHELL in
36 kx [\\/]* | ?:[\\/]*)
36 kx ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
36 kx ;;
36 kx *)
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_path_BASH_SHELL="$as_dir$ac_word$ac_exec_ext"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
36 kx ;;
36 kx esac
36 kx fi
36 kx BASH_SHELL=$ac_cv_path_BASH_SHELL
36 kx if test -n "$BASH_SHELL"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
36 kx printf "%s\n" "$BASH_SHELL" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx
36 kx # Extract the first word of "perl", so it can be a program name with args.
36 kx set dummy perl; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_path_PERL+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx case $PERL in
36 kx [\\/]* | ?:[\\/]*)
36 kx ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36 kx ;;
36 kx *)
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
36 kx ;;
36 kx esac
36 kx fi
36 kx PERL=$ac_cv_path_PERL
36 kx if test -n "$PERL"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
36 kx printf "%s\n" "$PERL" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx if test "$PERL" != no &&
36 kx (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
36 kx PERL=no
36 kx fi
36 kx # Extract the first word of "install-info", so it can be a program name with args.
36 kx set dummy install-info; ac_word=$2
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36 kx printf %s "checking for $ac_word... " >&6; }
36 kx if test ${ac_cv_path_INSTALL_INFO+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx case $INSTALL_INFO in
36 kx [\\/]* | ?:[\\/]*)
36 kx ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
36 kx ;;
36 kx *)
36 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
36 kx for as_dir in $as_dummy
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx for ac_exec_ext in '' $ac_executable_extensions; do
36 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36 kx ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36 kx break 2
36 kx fi
36 kx done
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
36 kx ;;
36 kx esac
36 kx fi
36 kx INSTALL_INFO=$ac_cv_path_INSTALL_INFO
36 kx if test -n "$INSTALL_INFO"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
36 kx printf "%s\n" "$INSTALL_INFO" >&6; }
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36 kx printf "%s\n" "no" >&6; }
36 kx fi
36 kx
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
36 kx printf %s "checking for .set assembler directive... " >&6; }
36 kx if test ${libc_cv_asm_set_directive+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.s <<EOF
36 kx .text
36 kx foo:
36 kx .set glibc_conftest_frobozz,foo
36 kx .globl glibc_conftest_frobozz
36 kx EOF
36 kx # The alpha-dec-osf1 assembler gives only a warning for `.set'
36 kx # (but it doesn't work), so we must do a linking check to be sure.
36 kx cat > conftest1.c <<\EOF
36 kx extern int glibc_conftest_frobozz;
36 kx void _start() { glibc_conftest_frobozz = 1; }
36 kx EOF
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
36 kx -nostartfiles -nostdlib $no_ssp \
36 kx -o conftest conftest.s conftest1.c 1>&5 2>&5; then
36 kx libc_cv_asm_set_directive=yes
36 kx else
36 kx libc_cv_asm_set_directive=no
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
36 kx printf "%s\n" "$libc_cv_asm_set_directive" >&6; }
36 kx if test $libc_cv_asm_set_directive = yes; then
36 kx printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
36 kx printf %s "checking linker support for protected data symbol... " >&6; }
36 kx if test ${libc_cv_protected_data+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx int bar __attribute__ ((visibility ("protected"))) = 1;
36 kx EOF
36 kx libc_cv_protected_data=no
36 kx if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }; then
36 kx cat > conftest.c <<EOF
36 kx extern int bar;
36 kx int main (void) { return bar; }
36 kx EOF
36 kx if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }; then
36 kx libc_cv_protected_data=yes
36 kx fi
36 kx fi
36 kx rm -f conftest.*
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
36 kx printf "%s\n" "$libc_cv_protected_data" >&6; }
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
36 kx printf %s "checking linker support for INSERT in linker script... " >&6; }
36 kx if test ${libc_cv_insert+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx int __attribute__ ((section(".bar"))) bar = 0x12345678;
36 kx int test (void) { return bar; }
36 kx EOF
36 kx cat > conftest.t <<EOF
36 kx SECTIONS
36 kx {
36 kx .bar : { *(.bar) }
36 kx }
36 kx INSERT AFTER .rela.dyn;
36 kx EOF
36 kx libc_cv_insert=no
36 kx if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }; then
36 kx libc_cv_insert=yes
36 kx fi
36 kx rm -f conftest.*
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
36 kx printf "%s\n" "$libc_cv_insert" >&6; }
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
36 kx printf %s "checking for broken __attribute__((alias()))... " >&6; }
36 kx if test ${libc_cv_broken_alias_attribute+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx extern int foo (int x) __asm ("xyzzy");
36 kx int bar (int x) { return x; }
36 kx extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
36 kx extern int dfoo;
36 kx extern __typeof (dfoo) dfoo __asm ("abccb");
36 kx int dfoo = 1;
36 kx EOF
36 kx libc_cv_broken_alias_attribute=yes
36 kx if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }; then
36 kx if grep 'xyzzy' conftest.s >/dev/null &&
36 kx grep 'abccb' conftest.s >/dev/null; then
36 kx libc_cv_broken_alias_attribute=no
36 kx fi
36 kx fi
36 kx rm -f conftest.c conftest.s
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
36 kx printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; }
36 kx if test $libc_cv_broken_alias_attribute = yes; then
36 kx as_fn_error $? "working alias attribute support required" "$LINENO" 5
36 kx fi
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
36 kx printf %s "checking whether to put _rtld_local into .sdata section... " >&6; }
36 kx if test ${libc_cv_have_sdata_section+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx echo "int i;" > conftest.c
36 kx libc_cv_have_sdata_section=no
36 kx if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
36 kx | grep '\.sdata' >/dev/null; then
36 kx libc_cv_have_sdata_section=yes
36 kx fi
36 kx rm -f conftest.c conftest.so
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
36 kx printf "%s\n" "$libc_cv_have_sdata_section" >&6; }
36 kx if test $libc_cv_have_sdata_section = yes; then
36 kx printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
36 kx printf %s "checking for libunwind-support in compiler... " >&6; }
36 kx if test ${libc_cv_cc_with_libunwind+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx
36 kx cat > conftest.c <<EOF
36 kx int main (void) { return 0; }
36 kx EOF
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
36 kx conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
36 kx libc_cv_cc_with_libunwind=yes
36 kx else
36 kx libc_cv_cc_with_libunwind=no
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
36 kx printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; }
36 kx
36 kx if test $libc_cv_cc_with_libunwind = yes; then
36 kx printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx ASFLAGS_config=
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
36 kx printf %s "checking whether --noexecstack is desirable for .S files... " >&6; }
36 kx if test ${libc_cv_as_noexecstack+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx void foo (void) { }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
36 kx -S -o conftest.s conftest.c 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; } \
36 kx && grep .note.GNU-stack conftest.s >/dev/null \
36 kx && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
36 kx -c -o conftest.o conftest.s 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx libc_cv_as_noexecstack=yes
36 kx else
36 kx libc_cv_as_noexecstack=no
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
36 kx printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
36 kx if test $libc_cv_as_noexecstack = yes; then
36 kx ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
36 kx fi
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
36 kx printf %s "checking for linker that supports -z execstack... " >&6; }
36 kx libc_linker_feature=no
36 kx cat > conftest.c <<EOF
36 kx int _start (void) { return 42; }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
36 kx -Wl,-z,execstack -nostdlib -nostartfiles
36 kx -fPIC -shared -o conftest.so conftest.c
36 kx 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \
36 kx -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
36 kx | grep "warning: -z execstack ignored" > /dev/null 2>&1; then
36 kx true
36 kx else
36 kx libc_linker_feature=yes
36 kx fi
36 kx fi
36 kx rm -f conftest*
36 kx if test $libc_linker_feature = yes; then
36 kx libc_cv_z_execstack=yes
36 kx else
36 kx libc_cv_z_execstack=no
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
36 kx printf "%s\n" "$libc_linker_feature" >&6; }
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
36 kx printf %s "checking for linker that supports -z start-stop-gc... " >&6; }
36 kx libc_linker_feature=no
36 kx cat > conftest.c <<EOF
36 kx int _start (void) { return 42; }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
36 kx -Wl,-z,start-stop-gc -nostdlib -nostartfiles
36 kx -fPIC -shared -o conftest.so conftest.c
36 kx 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \
36 kx -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
36 kx | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then
36 kx true
36 kx else
36 kx libc_linker_feature=yes
36 kx fi
36 kx fi
36 kx rm -f conftest*
36 kx if test $libc_linker_feature = yes; then
36 kx libc_cv_z_start_stop_gc=yes
36 kx else
36 kx libc_cv_z_start_stop_gc=no
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
36 kx printf "%s\n" "$libc_linker_feature" >&6; }
36 kx config_vars="$config_vars
36 kx have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
36 kx printf %s "checking for linker that supports --depaudit... " >&6; }
36 kx libc_linker_feature=no
36 kx cat > conftest.c <<EOF
36 kx int _start (void) { return 42; }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
36 kx -Wl,--depaudit,x -nostdlib -nostartfiles
36 kx -fPIC -shared -o conftest.so conftest.c
36 kx 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \
36 kx -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
36 kx | grep "warning: --depaudit ignored" > /dev/null 2>&1; then
36 kx true
36 kx else
36 kx libc_linker_feature=yes
36 kx fi
36 kx fi
36 kx rm -f conftest*
36 kx if test $libc_linker_feature = yes; then
36 kx libc_cv_depaudit=yes
36 kx else
36 kx libc_cv_depaudit=no
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
36 kx printf "%s\n" "$libc_linker_feature" >&6; }
36 kx config_vars="$config_vars
36 kx have-depaudit = $libc_cv_depaudit"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
36 kx printf %s "checking for linker that supports -z pack-relative-relocs... " >&6; }
36 kx libc_linker_feature=no
36 kx cat > conftest.c <<EOF
36 kx int _start (void) { return 42; }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
36 kx -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
36 kx -fPIC -shared -o conftest.so conftest.c
36 kx 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \
36 kx -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
36 kx | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then
36 kx true
36 kx else
36 kx libc_linker_feature=yes
36 kx fi
36 kx fi
36 kx rm -f conftest*
36 kx if test $libc_linker_feature = yes; then
36 kx libc_cv_dt_relr=yes
36 kx else
36 kx libc_cv_dt_relr=no
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
36 kx printf "%s\n" "$libc_linker_feature" >&6; }
36 kx config_vars="$config_vars
36 kx have-dt-relr = $libc_cv_dt_relr"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
36 kx printf %s "checking for linker that supports --no-dynamic-linker... " >&6; }
36 kx libc_linker_feature=no
36 kx cat > conftest.c <<EOF
36 kx int _start (void) { return 42; }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
36 kx -Wl,--no-dynamic-linker -nostdlib -nostartfiles
36 kx -fPIC -shared -o conftest.so conftest.c
36 kx 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
36 kx -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
36 kx | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then
36 kx true
36 kx else
36 kx libc_linker_feature=yes
36 kx fi
36 kx fi
36 kx rm -f conftest*
36 kx if test $libc_linker_feature = yes; then
36 kx libc_cv_no_dynamic_linker=yes
36 kx else
36 kx libc_cv_no_dynamic_linker=no
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
36 kx printf "%s\n" "$libc_linker_feature" >&6; }
36 kx config_vars="$config_vars
36 kx have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
36 kx printf %s "checking for -static-pie... " >&6; }
36 kx if test ${libc_cv_static_pie+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then :
36 kx libc_cv_static_pie=yes
36 kx else $as_nop
36 kx libc_cv_static_pie=no
36 kx fi
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
36 kx printf "%s\n" "$libc_cv_static_pie" >&6; }
36 kx config_vars="$config_vars
36 kx have-static-pie = $libc_cv_static_pie"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
36 kx printf %s "checking for -fpie... " >&6; }
36 kx if test ${libc_cv_fpie+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then :
36 kx libc_cv_fpie=yes
36 kx else $as_nop
36 kx libc_cv_fpie=no
36 kx fi
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
36 kx printf "%s\n" "$libc_cv_fpie" >&6; }
36 kx
36 kx
36 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
36 kx $as_echo_n "checking for --hash-style option... " >&6; }
36 kx if ${libc_cv_hashstyle+:} false; then :
36 kx $as_echo_n "(cached) " >&6
36 kx else
36 kx cat > conftest.c <<EOF
36 kx int _start (void) { return 42; }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
36 kx -fPIC -shared -o conftest.so conftest.c
36 kx -Wl,--hash-style=both -nostdlib 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx libc_cv_hashstyle=yes
36 kx else
36 kx libc_cv_hashstyle=no
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
36 kx $as_echo "$libc_cv_hashstyle" >&6; }
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
36 kx printf %s "checking for GLOB_DAT reloc... " >&6; }
36 kx if test ${libc_cv_has_glob_dat+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx extern int mumble;
36 kx int foo (void) { return mumble; }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
36 kx -fPIC -shared -o conftest.so conftest.c
36 kx -nostdlib -nostartfiles $no_ssp
36 kx 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
36 kx libc_cv_has_glob_dat=yes
36 kx else
36 kx libc_cv_has_glob_dat=no
36 kx fi
36 kx else
36 kx libc_cv_has_glob_dat=no
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
36 kx printf "%s\n" "$libc_cv_has_glob_dat" >&6; }
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
36 kx printf %s "checking for -mtls-dialect=gnu2... " >&6; }
36 kx if test ${libc_cv_mtls_dialect_gnu2+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx __thread int i;
36 kx void foo (void)
36 kx {
36 kx i = 10;
36 kx }
36 kx EOF
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
36 kx conftest.c -o conftest 1>&5'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx libc_cv_mtls_dialect_gnu2=yes
36 kx else
36 kx libc_cv_mtls_dialect_gnu2=no
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
36 kx printf "%s\n" "$libc_cv_mtls_dialect_gnu2" >&6; }
36 kx
36 kx config_vars="$config_vars
36 kx have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
36 kx printf %s "checking if -Wno-ignored-attributes is required for aliases... " >&6; }
36 kx if test ${libc_cv_wno_ignored_attributes+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx void __foo (void)
36 kx {
36 kx }
36 kx extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
36 kx extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
36 kx EOF
36 kx libc_cv_wno_ignored_attributes=""
36 kx if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx libc_cv_wno_ignored_attributes="-Wno-ignored-attributes"
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
36 kx printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; }
36 kx config_vars="$config_vars
36 kx config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
36 kx printf %s "checking whether cc puts quotes around section names... " >&6; }
36 kx if test ${libc_cv_have_section_quotes+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx static const int foo
36 kx __attribute__ ((section ("bar"))) = 1;
36 kx EOF
36 kx if ${CC-cc} -S conftest.c -o conftest.s; then
36 kx if grep '\.section.*"bar"' conftest.s >/dev/null; then
36 kx libc_cv_have_section_quotes=yes
36 kx else
36 kx libc_cv_have_section_quotes=no
36 kx fi
36 kx else
36 kx libc_cv_have_section_quotes=unknown
36 kx fi
36 kx rm -f conftest.{c,s}
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
36 kx printf "%s\n" "$libc_cv_have_section_quotes" >&6; }
36 kx if test $libc_cv_have_section_quotes = yes; then
36 kx printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
36 kx printf %s "checking for __builtin_memset... " >&6; }
36 kx if test ${libc_cv_gcc_builtin_memset+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<\EOF
36 kx void zero (void *x)
36 kx {
36 kx __builtin_memset (x, 0, 1000);
36 kx }
36 kx EOF
36 kx if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; };
36 kx then
36 kx libc_cv_gcc_builtin_memset=no
36 kx else
36 kx libc_cv_gcc_builtin_memset=yes
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
36 kx printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; }
36 kx if test "$libc_cv_gcc_builtin_memset" = yes ; then
36 kx printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
36 kx printf %s "checking for redirection of built-in functions... " >&6; }
36 kx if test ${libc_cv_gcc_builtin_redirection+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<\EOF
36 kx extern char *strstr (const char *, const char *) __asm ("my_strstr");
36 kx char *foo (const char *a, const char *b)
36 kx {
36 kx return __builtin_strstr (a, b);
36 kx }
36 kx EOF
36 kx if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; };
36 kx then
36 kx libc_cv_gcc_builtin_redirection=yes
36 kx else
36 kx libc_cv_gcc_builtin_redirection=no
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
36 kx printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; }
36 kx if test "$libc_cv_gcc_builtin_redirection" = no; then
36 kx as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
36 kx fi
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
36 kx printf %s "checking for compiler option to disable generation of FMA instructions... " >&6; }
36 kx if test ${libc_cv_cc_nofma+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx libc_cv_cc_nofma=
36 kx for opt in -ffp-contract=off -mno-fused-madd; do
36 kx if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then :
36 kx libc_cv_cc_nofma=$opt; break
36 kx fi
36 kx done
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
36 kx printf "%s\n" "$libc_cv_cc_nofma" >&6; }
36 kx
36 kx
36 kx if test -n "$submachine"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
36 kx printf %s "checking for compiler option for CPU variant... " >&6; }
36 kx if test ${libc_cv_cc_submachine+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx libc_cv_cc_submachine=no
36 kx for opt in "-march=$submachine" "-mcpu=$submachine"; do
36 kx if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then :
36 kx
36 kx libc_cv_cc_submachine="$opt"
36 kx break
36 kx fi
36 kx done
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
36 kx printf "%s\n" "$libc_cv_cc_submachine" >&6; }
36 kx if test "x$libc_cv_cc_submachine" = xno; then
36 kx as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
36 kx fi
36 kx fi
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
36 kx printf %s "checking for compiler option that -fsignaling-nans... " >&6; }
36 kx if test ${libc_cv_cc_signaling_nans+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then :
36 kx libc_cv_cc_signaling_nans=-fsignaling-nans
36 kx else $as_nop
36 kx libc_cv_cc_signaling_nans=
36 kx fi
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
36 kx printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; }
36 kx config_vars="$config_vars
36 kx config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
36 kx __attribute__ ((__optimize__))" >&5
36 kx printf %s "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
36 kx __attribute__ ((__optimize__))... " >&6; }
36 kx if test ${libc_cv_cc_loop_to_function+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.c <<EOF
36 kx void
36 kx __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
36 kx foo (void) {}
36 kx EOF
36 kx libc_cv_cc_loop_to_function=no
36 kx if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
36 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36 kx (eval $ac_try) 2>&5
36 kx ac_status=$?
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36 kx test $ac_status = 0; }; }
36 kx then
36 kx libc_cv_cc_loop_to_function=yes
36 kx fi
36 kx rm -f conftest*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
36 kx printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; }
36 kx if test $libc_cv_cc_loop_to_function = yes; then
36 kx printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
36 kx printf %s "checking for libgd... " >&6; }
36 kx if test "$with_gd" != "no"; then
36 kx old_CFLAGS="$CFLAGS"
36 kx CFLAGS="$CFLAGS $libgd_include"
36 kx old_LDFLAGS="$LDFLAGS"
36 kx LDFLAGS="$LDFLAGS $libgd_ldflags"
36 kx old_LIBS="$LIBS"
36 kx LIBS="$LIBS -lgd -lpng -lz -lm"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx #include <gd.h>
36 kx int
36 kx main (void)
36 kx {
36 kx gdImagePng (0, 0)
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_link "$LINENO"
36 kx then :
36 kx LIBGD=yes
36 kx else $as_nop
36 kx LIBGD=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
36 kx conftest$ac_exeext conftest.$ac_ext
36 kx CFLAGS="$old_CFLAGS"
36 kx LDFLAGS="$old_LDFLAGS"
36 kx LIBS="$old_LIBS"
36 kx else
36 kx LIBGD=no
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
36 kx printf "%s\n" "$LIBGD" >&6; }
36 kx
36 kx
36 kx # SELinux detection
36 kx if test x$with_selinux = xno ; then
36 kx have_selinux=no;
36 kx else
36 kx # See if we have the SELinux library
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
36 kx printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
36 kx if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_check_lib_save_LIBS=$LIBS
36 kx LIBS="-lselinux $LIBS"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx /* Override any GCC internal prototype to avoid an error.
36 kx Use char because int might match the return type of a GCC
36 kx builtin and then its argument prototype would still apply. */
36 kx char is_selinux_enabled ();
36 kx int
36 kx main (void)
36 kx {
36 kx return is_selinux_enabled ();
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_link "$LINENO"
36 kx then :
36 kx ac_cv_lib_selinux_is_selinux_enabled=yes
36 kx else $as_nop
36 kx ac_cv_lib_selinux_is_selinux_enabled=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
36 kx conftest$ac_exeext conftest.$ac_ext
36 kx LIBS=$ac_check_lib_save_LIBS
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
36 kx printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
36 kx if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
36 kx then :
36 kx have_selinux=yes
36 kx else $as_nop
36 kx have_selinux=no
36 kx fi
36 kx
36 kx if test x$with_selinux = xyes ; then
36 kx if test x$have_selinux = xno ; then
36 kx as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
36 kx fi
36 kx fi
36 kx fi
36 kx # Check if we're building with SELinux support.
36 kx if test "x$have_selinux" = xyes; then
36 kx
36 kx printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
36 kx
36 kx
36 kx # See if we have the libaudit library
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
36 kx printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; }
36 kx if test ${ac_cv_lib_audit_audit_log_user_avc_message+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_check_lib_save_LIBS=$LIBS
36 kx LIBS="-laudit $LIBS"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx /* Override any GCC internal prototype to avoid an error.
36 kx Use char because int might match the return type of a GCC
36 kx builtin and then its argument prototype would still apply. */
36 kx char audit_log_user_avc_message ();
36 kx int
36 kx main (void)
36 kx {
36 kx return audit_log_user_avc_message ();
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_link "$LINENO"
36 kx then :
36 kx ac_cv_lib_audit_audit_log_user_avc_message=yes
36 kx else $as_nop
36 kx ac_cv_lib_audit_audit_log_user_avc_message=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
36 kx conftest$ac_exeext conftest.$ac_ext
36 kx LIBS=$ac_check_lib_save_LIBS
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
36 kx printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
36 kx if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
36 kx then :
36 kx have_libaudit=yes
36 kx else $as_nop
36 kx have_libaudit=no
36 kx fi
36 kx
36 kx if test "x$have_libaudit" = xyes; then
36 kx
36 kx printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx
36 kx # See if we have the libcap library
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
36 kx printf %s "checking for cap_init in -lcap... " >&6; }
36 kx if test ${ac_cv_lib_cap_cap_init+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx ac_check_lib_save_LIBS=$LIBS
36 kx LIBS="-lcap $LIBS"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx /* Override any GCC internal prototype to avoid an error.
36 kx Use char because int might match the return type of a GCC
36 kx builtin and then its argument prototype would still apply. */
36 kx char cap_init ();
36 kx int
36 kx main (void)
36 kx {
36 kx return cap_init ();
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_link "$LINENO"
36 kx then :
36 kx ac_cv_lib_cap_cap_init=yes
36 kx else $as_nop
36 kx ac_cv_lib_cap_cap_init=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
36 kx conftest$ac_exeext conftest.$ac_ext
36 kx LIBS=$ac_check_lib_save_LIBS
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
36 kx printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
36 kx if test "x$ac_cv_lib_cap_cap_init" = xyes
36 kx then :
36 kx have_libcap=yes
36 kx else $as_nop
36 kx have_libcap=no
36 kx fi
36 kx
36 kx if test "x$have_libcap" = xyes; then
36 kx
36 kx printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx fi
36 kx
36 kx
36 kx no_fortify_source="-Wp,-U_FORTIFY_SOURCE"
36 kx fortify_source="${no_fortify_source}"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5
36 kx printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; }
36 kx if test ${libc_cv_supported_fortify_source+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx __builtin_dynamic_object_size("", 0)
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_link "$LINENO"
36 kx then :
36 kx libc_cv_supported_fortify_source=3
36 kx else $as_nop
36 kx libc_cv_supported_fortify_source=2
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
36 kx conftest$ac_exeext conftest.$ac_ext
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5
36 kx printf "%s\n" "$libc_cv_supported_fortify_source" >&6; }
36 kx
36 kx case $enable_fortify_source in #(
36 kx yes) :
36 kx libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #(
36 kx 1|2) :
36 kx libc_cv_fortify_source=yes ;; #(
36 kx 3) :
36 kx if test $libc_cv_supported_fortify_source = 3
36 kx then :
36 kx libc_cv_fortify_source=yes
36 kx else $as_nop
36 kx as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5
36 kx fi ;; #(
36 kx *) :
36 kx libc_cv_fortify_source=no ;;
36 kx esac
36 kx
36 kx if test "$libc_cv_fortify_source" = yes
36 kx then :
36 kx fortify_source="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}"
36 kx
36 kx fi
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx config_vars="$config_vars
36 kx supported-fortify = $libc_cv_supported_fortify_source"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
36 kx printf %s "checking whether the assembler requires one version per symbol... " >&6; }
36 kx if test ${libc_cv_symver_needs_alias+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx cat > conftest.s <<EOF
36 kx .text
36 kx testfunc:
36 kx .globl testfunc
36 kx .symver testfunc, testfunc1@VERSION1
36 kx .symver testfunc, testfunc1@VERSION2
36 kx EOF
36 kx libc_cv_symver_needs_alias=no
36 kx if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then
36 kx libc_cv_symver_needs_alias=no
36 kx else
36 kx libc_cv_symver_needs_alias=yes
36 kx fi
36 kx rm conftest.*
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
36 kx printf "%s\n" "$libc_cv_symver_needs_alias" >&6; }
36 kx if test "$libc_cv_symver_needs_alias" = yes; then
36 kx printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
36 kx printf %s "checking for __builtin_trap with no external dependencies... " >&6; }
36 kx if test ${libc_cv_builtin_trap+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx libc_cv_builtin_trap=no
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx int
36 kx main (void)
36 kx {
36 kx __builtin_trap ()
36 kx ;
36 kx return 0;
36 kx }
36 kx _ACEOF
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx
36 kx libc_undefs=`$NM -u conftest.o |
36 kx LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
36 kx 2>&5` || {
36 kx as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
36 kx }
36 kx echo >&5 "libc_undefs='$libc_undefs'"
36 kx if test -z "$libc_undefs"; then
36 kx libc_cv_builtin_trap=yes
36 kx fi
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
36 kx printf "%s\n" "$libc_cv_builtin_trap" >&6; }
36 kx if test $libc_cv_builtin_trap = yes; then
36 kx printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx ac_ext=cpp
36 kx ac_cpp='$CXXCPP $CPPFLAGS'
36 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
36 kx printf %s "checking whether the C++ compiler supports thread_local... " >&6; }
36 kx if test ${libc_cv_cxx_thread_local+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx
36 kx old_CXXFLAGS="$CXXFLAGS"
36 kx CXXFLAGS="$CXXFLAGS -std=gnu++11"
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx
36 kx #include <thread>
36 kx
36 kx // Compiler support.
36 kx struct S
36 kx {
36 kx S ();
36 kx ~S ();
36 kx };
36 kx thread_local S s;
36 kx S * get () { return &s; }
36 kx
36 kx // libstdc++ support.
36 kx #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
36 kx #error __cxa_thread_atexit_impl not supported
36 kx #endif
36 kx
36 kx _ACEOF
36 kx if ac_fn_cxx_try_compile "$LINENO"
36 kx then :
36 kx libc_cv_cxx_thread_local=yes
36 kx else $as_nop
36 kx libc_cv_cxx_thread_local=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx CXXFLAGS="$old_CXXFLAGS"
36 kx
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
36 kx printf "%s\n" "$libc_cv_cxx_thread_local" >&6; }
36 kx
36 kx
36 kx ac_ext=c
36 kx ac_cpp='$CPP $CPPFLAGS'
36 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
36 kx
36 kx
36 kx ### End of automated tests.
36 kx ### Now run sysdeps configure fragments.
36 kx
36 kx # They also can set these variables.
36 kx use_ldconfig=no
36 kx ldd_rewrite_script=no
36 kx libc_cv_sysconfdir=$sysconfdir
36 kx libc_cv_localstatedir=$localstatedir
36 kx libc_cv_gcc_unwind_find_fde=no
36 kx libc_cv_idn=no
36 kx pthread_in_libc=yes
36 kx
36 kx # Iterate over all the sysdep directories we will use, running their
36 kx # configure fragments.
36 kx for dir in $sysnames; do
36 kx case $dir in
36 kx /*) dest=$dir ;;
36 kx *) dest=$srcdir/$dir ;;
36 kx esac
36 kx if test -r $dest/configure; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
36 kx printf "%s\n" "running configure fragment for $dir" >&6; }
36 kx . $dest/configure
36 kx fi
36 kx done
36 kx
36 kx if test x"$build_mathvec" = xnotset; then
36 kx build_mathvec=no
36 kx fi
36 kx config_vars="$config_vars
36 kx build-mathvec = $build_mathvec"
36 kx
36 kx
36 kx
36 kx
36 kx if test x$libc_cv_gcc_unwind_find_fde = xyes; then
36 kx printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx
36 kx # A sysdeps configure fragment can reset this if IFUNC is not actually
36 kx # usable even though the assembler knows how to generate the symbol type.
36 kx if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
36 kx printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
36 kx
36 kx fi
36 kx config_vars="$config_vars
36 kx have-ifunc = $libc_cv_ld_gnu_indirect_function"
36 kx
36 kx if test x"$libc_cv_gcc_indirect_function" = xyes; then
36 kx printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
36 kx
36 kx fi
36 kx config_vars="$config_vars
36 kx have-gcc-ifunc = $libc_cv_gcc_indirect_function"
36 kx
36 kx # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
36 kx # configure fragment can override the value to prevent this AC_DEFINE.
36 kx
36 kx if test "x$use_nscd" != xno; then
36 kx printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
36 kx
36 kx fi
36 kx if test "x$build_nscd" = xdefault; then
36 kx build_nscd=$use_nscd
36 kx fi
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx if test x$use_ldconfig = xyes; then
36 kx printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
36 kx printf %s "checking whether -fPIC is default... " >&6; }
36 kx if test ${libc_cv_pic_default+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx libc_cv_pic_default=yes
36 kx cat > conftest.c <<EOF
36 kx #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
36 kx # error PIC is default.
36 kx #endif
36 kx EOF
36 kx if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
36 kx libc_cv_pic_default=no
36 kx fi
36 kx rm -f conftest.*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
36 kx printf "%s\n" "$libc_cv_pic_default" >&6; }
36 kx config_vars="$config_vars
36 kx build-pic-default = $libc_cv_pic_default"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
36 kx printf %s "checking whether -fPIE is default... " >&6; }
36 kx if test ${libc_cv_cc_pie_default+y}
36 kx then :
36 kx printf %s "(cached) " >&6
36 kx else $as_nop
36 kx libc_cv_cc_pie_default=yes
36 kx cat > conftest.c <<EOF
36 kx #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
36 kx # error PIE is default.
36 kx #endif
36 kx EOF
36 kx if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
36 kx libc_cv_cc_pie_default=no
36 kx fi
36 kx rm -f conftest.*
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
36 kx printf "%s\n" "$libc_cv_cc_pie_default" >&6; }
36 kx config_vars="$config_vars
36 kx cc-pie-default = $libc_cv_cc_pie_default"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
36 kx printf %s "checking if we can build programs as PIE... " >&6; }
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx #ifdef PIE_UNSUPPORTED
36 kx # error PIE is not supported
36 kx #endif
36 kx _ACEOF
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx libc_cv_pie_supported=yes
36 kx else $as_nop
36 kx libc_cv_pie_supported=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
36 kx printf "%s\n" "$libc_cv_pie_supported" >&6; }
36 kx # Disable build-pie-default if target does not support it or glibc is
36 kx # configured with --disable-default-pie.
36 kx if test "x$default_pie" = xno; then
36 kx build_pie_default=no
36 kx else
36 kx build_pie_default=$libc_cv_pie_supported
36 kx fi
36 kx config_vars="$config_vars
36 kx build-pie-default = $build_pie_default"
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
36 kx printf %s "checking if we can build static PIE programs... " >&6; }
36 kx libc_cv_static_pie_supported=$libc_cv_pie_supported
36 kx if test "x$libc_cv_pie_supported" != xno \
36 kx -a "$libc_cv_no_dynamic_linker" = yes; then
36 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 kx /* end confdefs.h. */
36 kx #ifndef SUPPORT_STATIC_PIE
36 kx # error static PIE is not supported
36 kx #endif
36 kx _ACEOF
36 kx if ac_fn_c_try_compile "$LINENO"
36 kx then :
36 kx libc_cv_static_pie_supported=yes
36 kx else $as_nop
36 kx libc_cv_static_pie_supported=no
36 kx fi
36 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 kx fi
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
36 kx printf "%s\n" "$libc_cv_static_pie_supported" >&6; }
36 kx
36 kx # Enable static-pie only if it is available and glibc isn't configured
36 kx # with --disable-default-pie.
36 kx if test "x$default_pie" = xno; then
36 kx libc_cv_static_pie=no
36 kx else
36 kx libc_cv_static_pie=$libc_cv_static_pie_supported
36 kx fi
36 kx if test "$libc_cv_static_pie" = "yes"; then
36 kx printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
36 kx
36 kx fi
36 kx config_vars="$config_vars
36 kx enable-static-pie = $libc_cv_static_pie"
36 kx
36 kx # Set the `multidir' variable by grabbing the variable from the compiler.
36 kx # We do it once and save the result in a generated makefile.
36 kx libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx
36 kx VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
36 kx RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
36 kx
36 kx
36 kx
36 kx if test "$pthread_in_libc" = yes; then
36 kx printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
36 kx
36 kx fi
36 kx
36 kx
36 kx ac_config_files="$ac_config_files config.make Makefile"
36 kx
36 kx ac_config_commands="$ac_config_commands default"
36 kx
36 kx cat >confcache <<\_ACEOF
36 kx # This file is a shell script that caches the results of configure
36 kx # tests run on this system so they can be shared between configure
36 kx # scripts and configure runs, see configure's option --config-cache.
36 kx # It is not useful on other systems. If it contains results you don't
36 kx # want to keep, you may remove or edit it.
36 kx #
36 kx # config.status only pays attention to the cache file if you give it
36 kx # the --recheck option to rerun configure.
36 kx #
36 kx # `ac_cv_env_foo' variables (set or unset) will be overridden when
36 kx # loading this file, other *unset* `ac_cv_foo' will be assigned the
36 kx # following values.
36 kx
36 kx _ACEOF
36 kx
36 kx # The following way of writing the cache mishandles newlines in values,
36 kx # but we know of no workaround that is simple, portable, and efficient.
36 kx # So, we kill variables containing newlines.
36 kx # Ultrix sh set writes to stderr and can't be redirected directly,
36 kx # and sets the high bit in the cache file unless we assign to the vars.
36 kx (
36 kx for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36 kx eval ac_val=\$$ac_var
36 kx case $ac_val in #(
36 kx *${as_nl}*)
36 kx case $ac_var in #(
36 kx *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36 kx printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36 kx esac
36 kx case $ac_var in #(
36 kx _ | IFS | as_nl) ;; #(
36 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36 kx *) { eval $ac_var=; unset $ac_var;} ;;
36 kx esac ;;
36 kx esac
36 kx done
36 kx
36 kx (set) 2>&1 |
36 kx case $as_nl`(ac_space=' '; set) 2>&1` in #(
36 kx *${as_nl}ac_space=\ *)
36 kx # `set' does not quote correctly, so add quotes: double-quote
36 kx # substitution turns \\\\ into \\, and sed turns \\ into \.
36 kx sed -n \
36 kx "s/'/'\\\\''/g;
36 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36 kx ;; #(
36 kx *)
36 kx # `set' quotes correctly as required by POSIX, so do not add quotes.
36 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36 kx ;;
36 kx esac |
36 kx sort
36 kx ) |
36 kx sed '
36 kx /^ac_cv_env_/b end
36 kx t clear
36 kx :clear
36 kx s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
36 kx t end
36 kx s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36 kx :end' >>confcache
36 kx if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36 kx if test -w "$cache_file"; then
36 kx if test "x$cache_file" != "x/dev/null"; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36 kx printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
36 kx if test ! -f "$cache_file" || test -h "$cache_file"; then
36 kx cat confcache >"$cache_file"
36 kx else
36 kx case $cache_file in #(
36 kx */* | ?:*)
36 kx mv -f confcache "$cache_file"$$ &&
36 kx mv -f "$cache_file"$$ "$cache_file" ;; #(
36 kx *)
36 kx mv -f confcache "$cache_file" ;;
36 kx esac
36 kx fi
36 kx fi
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36 kx printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
36 kx fi
36 kx fi
36 kx rm -f confcache
36 kx
36 kx test "x$prefix" = xNONE && prefix=$ac_default_prefix
36 kx # Let make expand exec_prefix.
36 kx test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36 kx
36 kx DEFS=-DHAVE_CONFIG_H
36 kx
36 kx ac_libobjs=
36 kx ac_ltlibobjs=
36 kx U=
36 kx for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36 kx # 1. Remove the extension, and $U if already installed.
36 kx ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36 kx ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
36 kx # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36 kx # will be set to the directory where LIBOBJS objects are built.
36 kx as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36 kx as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36 kx done
36 kx LIBOBJS=$ac_libobjs
36 kx
36 kx LTLIBOBJS=$ac_ltlibobjs
36 kx
36 kx
36 kx
36 kx : "${CONFIG_STATUS=./config.status}"
36 kx ac_write_fail=0
36 kx ac_clean_files_save=$ac_clean_files
36 kx ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36 kx printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
36 kx as_write_fail=0
36 kx cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36 kx #! $SHELL
36 kx # Generated by $as_me.
36 kx # Run this file to recreate the current configuration.
36 kx # Compiler output produced by configure, useful for debugging
36 kx # configure, is in config.log if it exists.
36 kx
36 kx debug=false
36 kx ac_cs_recheck=false
36 kx ac_cs_silent=false
36 kx
36 kx SHELL=\${CONFIG_SHELL-$SHELL}
36 kx export SHELL
36 kx _ASEOF
36 kx cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36 kx ## -------------------- ##
36 kx ## M4sh Initialization. ##
36 kx ## -------------------- ##
36 kx
36 kx # Be more Bourne compatible
36 kx DUALCASE=1; export DUALCASE # for MKS sh
36 kx as_nop=:
36 kx if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
36 kx then :
36 kx emulate sh
36 kx NULLCMD=:
36 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36 kx # is contrary to our usage. Disable this feature.
36 kx alias -g '${1+"$@"}'='"$@"'
36 kx setopt NO_GLOB_SUBST
36 kx else $as_nop
36 kx case `(set -o) 2>/dev/null` in #(
36 kx *posix*) :
36 kx set -o posix ;; #(
36 kx *) :
36 kx ;;
36 kx esac
36 kx fi
36 kx
36 kx
36 kx
36 kx # Reset variables that may have inherited troublesome values from
36 kx # the environment.
36 kx
36 kx # IFS needs to be set, to space, tab, and newline, in precisely that order.
36 kx # (If _AS_PATH_WALK were called with IFS unset, it would have the
36 kx # side effect of setting IFS to empty, thus disabling word splitting.)
36 kx # Quoting is to prevent editors from complaining about space-tab.
36 kx as_nl='
36 kx '
36 kx export as_nl
36 kx IFS=" "" $as_nl"
36 kx
36 kx PS1='$ '
36 kx PS2='> '
36 kx PS4='+ '
36 kx
36 kx # Ensure predictable behavior from utilities with locale-dependent output.
36 kx LC_ALL=C
36 kx export LC_ALL
36 kx LANGUAGE=C
36 kx export LANGUAGE
36 kx
36 kx # We cannot yet rely on "unset" to work, but we need these variables
36 kx # to be unset--not just set to an empty or harmless value--now, to
36 kx # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
36 kx # also avoids known problems related to "unset" and subshell syntax
36 kx # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
36 kx for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
36 kx do eval test \${$as_var+y} \
36 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36 kx done
36 kx
36 kx # Ensure that fds 0, 1, and 2 are open.
36 kx if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
36 kx if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
36 kx if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
36 kx
36 kx # The user is always right.
36 kx if ${PATH_SEPARATOR+false} :; then
36 kx PATH_SEPARATOR=:
36 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36 kx PATH_SEPARATOR=';'
36 kx }
36 kx fi
36 kx
36 kx
36 kx # Find who we are. Look in the path if we contain no directory separator.
36 kx as_myself=
36 kx case $0 in #((
36 kx *[\\/]* ) as_myself=$0 ;;
36 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36 kx for as_dir in $PATH
36 kx do
36 kx IFS=$as_save_IFS
36 kx case $as_dir in #(((
36 kx '') as_dir=./ ;;
36 kx */) ;;
36 kx *) as_dir=$as_dir/ ;;
36 kx esac
36 kx test -r "$as_dir$0" && as_myself=$as_dir$0 && break
36 kx done
36 kx IFS=$as_save_IFS
36 kx
36 kx ;;
36 kx esac
36 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
36 kx # in which case we are not to be found in the path.
36 kx if test "x$as_myself" = x; then
36 kx as_myself=$0
36 kx fi
36 kx if test ! -f "$as_myself"; then
36 kx printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36 kx exit 1
36 kx fi
36 kx
36 kx
36 kx
36 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
36 kx # ----------------------------------------
36 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36 kx # script with STATUS, using 1 if that was 0.
36 kx as_fn_error ()
36 kx {
36 kx as_status=$1; test $as_status -eq 0 && as_status=1
36 kx if test "$4"; then
36 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36 kx fi
36 kx printf "%s\n" "$as_me: error: $2" >&2
36 kx as_fn_exit $as_status
36 kx } # as_fn_error
36 kx
36 kx
36 kx
36 kx # as_fn_set_status STATUS
36 kx # -----------------------
36 kx # Set $? to STATUS, without forking.
36 kx as_fn_set_status ()
36 kx {
36 kx return $1
36 kx } # as_fn_set_status
36 kx
36 kx # as_fn_exit STATUS
36 kx # -----------------
36 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36 kx as_fn_exit ()
36 kx {
36 kx set +e
36 kx as_fn_set_status $1
36 kx exit $1
36 kx } # as_fn_exit
36 kx
36 kx # as_fn_unset VAR
36 kx # ---------------
36 kx # Portably unset VAR.
36 kx as_fn_unset ()
36 kx {
36 kx { eval $1=; unset $1;}
36 kx }
36 kx as_unset=as_fn_unset
36 kx
36 kx # as_fn_append VAR VALUE
36 kx # ----------------------
36 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
36 kx # advantage of any shell optimizations that allow amortized linear growth over
36 kx # repeated appends, instead of the typical quadratic growth present in naive
36 kx # implementations.
36 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
36 kx then :
36 kx eval 'as_fn_append ()
36 kx {
36 kx eval $1+=\$2
36 kx }'
36 kx else $as_nop
36 kx as_fn_append ()
36 kx {
36 kx eval $1=\$$1\$2
36 kx }
36 kx fi # as_fn_append
36 kx
36 kx # as_fn_arith ARG...
36 kx # ------------------
36 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
36 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
36 kx # must be portable across $(()) and expr.
36 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
36 kx then :
36 kx eval 'as_fn_arith ()
36 kx {
36 kx as_val=$(( $* ))
36 kx }'
36 kx else $as_nop
36 kx as_fn_arith ()
36 kx {
36 kx as_val=`expr "$@" || test $? -eq 1`
36 kx }
36 kx fi # as_fn_arith
36 kx
36 kx
36 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
36 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
36 kx as_expr=expr
36 kx else
36 kx as_expr=false
36 kx fi
36 kx
36 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36 kx as_basename=basename
36 kx else
36 kx as_basename=false
36 kx fi
36 kx
36 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36 kx as_dirname=dirname
36 kx else
36 kx as_dirname=false
36 kx fi
36 kx
36 kx as_me=`$as_basename -- "$0" ||
36 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36 kx X"$0" : 'X\(//\)$' \| \
36 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36 kx printf "%s\n" X/"$0" |
36 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\/\(\/\/\)$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\/\(\/\).*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx s/.*/./; q'`
36 kx
36 kx # Avoid depending upon Character Ranges.
36 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 kx as_cr_digits='0123456789'
36 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
36 kx
36 kx
36 kx # Determine whether it's possible to make 'echo' print without a newline.
36 kx # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
36 kx # for compatibility with existing Makefiles.
36 kx ECHO_C= ECHO_N= ECHO_T=
36 kx case `echo -n x` in #(((((
36 kx -n*)
36 kx case `echo 'xy\c'` in
36 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
36 kx xy) ECHO_C='\c';;
36 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36 kx ECHO_T=' ';;
36 kx esac;;
36 kx *)
36 kx ECHO_N='-n';;
36 kx esac
36 kx
36 kx # For backward compatibility with old third-party macros, we provide
36 kx # the shell variables $as_echo and $as_echo_n. New code should use
36 kx # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
36 kx as_echo='printf %s\n'
36 kx as_echo_n='printf %s'
36 kx
36 kx rm -f conf$$ conf$$.exe conf$$.file
36 kx if test -d conf$$.dir; then
36 kx rm -f conf$$.dir/conf$$.file
36 kx else
36 kx rm -f conf$$.dir
36 kx mkdir conf$$.dir 2>/dev/null
36 kx fi
36 kx if (echo >conf$$.file) 2>/dev/null; then
36 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
36 kx as_ln_s='ln -s'
36 kx # ... but there are two gotchas:
36 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36 kx # In both cases, we have to default to `cp -pR'.
36 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36 kx as_ln_s='cp -pR'
36 kx elif ln conf$$.file conf$$ 2>/dev/null; then
36 kx as_ln_s=ln
36 kx else
36 kx as_ln_s='cp -pR'
36 kx fi
36 kx else
36 kx as_ln_s='cp -pR'
36 kx fi
36 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36 kx rmdir conf$$.dir 2>/dev/null
36 kx
36 kx
36 kx # as_fn_mkdir_p
36 kx # -------------
36 kx # Create "$as_dir" as a directory, including parents if necessary.
36 kx as_fn_mkdir_p ()
36 kx {
36 kx
36 kx case $as_dir in #(
36 kx -*) as_dir=./$as_dir;;
36 kx esac
36 kx test -d "$as_dir" || eval $as_mkdir_p || {
36 kx as_dirs=
36 kx while :; do
36 kx case $as_dir in #(
36 kx *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36 kx *) as_qdir=$as_dir;;
36 kx esac
36 kx as_dirs="'$as_qdir' $as_dirs"
36 kx as_dir=`$as_dirname -- "$as_dir" ||
36 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36 kx X"$as_dir" : 'X\(//\)[^/]' \| \
36 kx X"$as_dir" : 'X\(//\)$' \| \
36 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36 kx printf "%s\n" X"$as_dir" |
36 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\/\)[^/].*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\/\)$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\).*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx s/.*/./; q'`
36 kx test -d "$as_dir" && break
36 kx done
36 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
36 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36 kx
36 kx
36 kx } # as_fn_mkdir_p
36 kx if mkdir -p . 2>/dev/null; then
36 kx as_mkdir_p='mkdir -p "$as_dir"'
36 kx else
36 kx test -d ./-p && rmdir ./-p
36 kx as_mkdir_p=false
36 kx fi
36 kx
36 kx
36 kx # as_fn_executable_p FILE
36 kx # -----------------------
36 kx # Test if FILE is an executable regular file.
36 kx as_fn_executable_p ()
36 kx {
36 kx test -f "$1" && test -x "$1"
36 kx } # as_fn_executable_p
36 kx as_test_x='test -x'
36 kx as_executable_p=as_fn_executable_p
36 kx
36 kx # Sed expression to map a string onto a valid CPP name.
36 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36 kx
36 kx # Sed expression to map a string onto a valid variable name.
36 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36 kx
36 kx
36 kx exec 6>&1
36 kx ## ----------------------------------- ##
36 kx ## Main body of $CONFIG_STATUS script. ##
36 kx ## ----------------------------------- ##
36 kx _ASEOF
36 kx test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36 kx
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx # Save the log message, to keep $0 and so on meaningful, and to
36 kx # report actual input values of CONFIG_FILES etc. instead of their
36 kx # values after options handling.
36 kx ac_log="
36 kx This file was extended by GNU C Library $as_me (see version.h), which was
36 kx generated by GNU Autoconf 2.71. Invocation command line was
36 kx
36 kx CONFIG_FILES = $CONFIG_FILES
36 kx CONFIG_HEADERS = $CONFIG_HEADERS
36 kx CONFIG_LINKS = $CONFIG_LINKS
36 kx CONFIG_COMMANDS = $CONFIG_COMMANDS
36 kx $ $0 $@
36 kx
36 kx on `(hostname || uname -n) 2>/dev/null | sed 1q`
36 kx "
36 kx
36 kx _ACEOF
36 kx
36 kx case $ac_config_files in *"
36 kx "*) set x $ac_config_files; shift; ac_config_files=$*;;
36 kx esac
36 kx
36 kx case $ac_config_headers in *"
36 kx "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36 kx esac
36 kx
36 kx
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx # Files that config.status was made for.
36 kx config_files="$ac_config_files"
36 kx config_headers="$ac_config_headers"
36 kx config_commands="$ac_config_commands"
36 kx
36 kx _ACEOF
36 kx
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx ac_cs_usage="\
36 kx \`$as_me' instantiates files and other configuration actions
36 kx from templates according to the current configuration. Unless the files
36 kx and actions are specified as TAGs, all are instantiated by default.
36 kx
36 kx Usage: $0 [OPTION]... [TAG]...
36 kx
36 kx -h, --help print this help, then exit
36 kx -V, --version print version number and configuration settings, then exit
36 kx --config print configuration, then exit
36 kx -q, --quiet, --silent
36 kx do not print progress messages
36 kx -d, --debug don't remove temporary files
36 kx --recheck update $as_me by reconfiguring in the same conditions
36 kx --file=FILE[:TEMPLATE]
36 kx instantiate the configuration file FILE
36 kx --header=FILE[:TEMPLATE]
36 kx instantiate the configuration header FILE
36 kx
36 kx Configuration files:
36 kx $config_files
36 kx
36 kx Configuration headers:
36 kx $config_headers
36 kx
36 kx Configuration commands:
36 kx $config_commands
36 kx
36 kx Report bugs to <https://sourceware.org/bugzilla/>.
36 kx GNU C Library home page: <https://www.gnu.org/software/glibc/>.
36 kx General help using GNU software: <https://www.gnu.org/gethelp/>."
36 kx
36 kx _ACEOF
36 kx ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
36 kx ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx ac_cs_config='$ac_cs_config_escaped'
36 kx ac_cs_version="\\
36 kx GNU C Library config.status (see version.h)
36 kx configured by $0, generated by GNU Autoconf 2.71,
36 kx with options \\"\$ac_cs_config\\"
36 kx
36 kx Copyright (C) 2021 Free Software Foundation, Inc.
36 kx This config.status script is free software; the Free Software Foundation
36 kx gives unlimited permission to copy, distribute and modify it."
36 kx
36 kx ac_pwd='$ac_pwd'
36 kx srcdir='$srcdir'
36 kx INSTALL='$INSTALL'
36 kx test -n "\$AWK" || AWK=awk
36 kx _ACEOF
36 kx
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx # The default lists apply if the user does not specify any file.
36 kx ac_need_defaults=:
36 kx while test $# != 0
36 kx do
36 kx case $1 in
36 kx --*=?*)
36 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
36 kx ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36 kx ac_shift=:
36 kx ;;
36 kx --*=)
36 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
36 kx ac_optarg=
36 kx ac_shift=:
36 kx ;;
36 kx *)
36 kx ac_option=$1
36 kx ac_optarg=$2
36 kx ac_shift=shift
36 kx ;;
36 kx esac
36 kx
36 kx case $ac_option in
36 kx # Handling of the options.
36 kx -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36 kx ac_cs_recheck=: ;;
36 kx --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36 kx printf "%s\n" "$ac_cs_version"; exit ;;
36 kx --config | --confi | --conf | --con | --co | --c )
36 kx printf "%s\n" "$ac_cs_config"; exit ;;
36 kx --debug | --debu | --deb | --de | --d | -d )
36 kx debug=: ;;
36 kx --file | --fil | --fi | --f )
36 kx $ac_shift
36 kx case $ac_optarg in
36 kx *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36 kx '') as_fn_error $? "missing file argument" ;;
36 kx esac
36 kx as_fn_append CONFIG_FILES " '$ac_optarg'"
36 kx ac_need_defaults=false;;
36 kx --header | --heade | --head | --hea )
36 kx $ac_shift
36 kx case $ac_optarg in
36 kx *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36 kx esac
36 kx as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36 kx ac_need_defaults=false;;
36 kx --he | --h)
36 kx # Conflict between --help and --header
36 kx as_fn_error $? "ambiguous option: \`$1'
36 kx Try \`$0 --help' for more information.";;
36 kx --help | --hel | -h )
36 kx printf "%s\n" "$ac_cs_usage"; exit ;;
36 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36 kx | -silent | --silent | --silen | --sile | --sil | --si | --s)
36 kx ac_cs_silent=: ;;
36 kx
36 kx # This is an error.
36 kx -*) as_fn_error $? "unrecognized option: \`$1'
36 kx Try \`$0 --help' for more information." ;;
36 kx
36 kx *) as_fn_append ac_config_targets " $1"
36 kx ac_need_defaults=false ;;
36 kx
36 kx esac
36 kx shift
36 kx done
36 kx
36 kx ac_configure_extra_args=
36 kx
36 kx if $ac_cs_silent; then
36 kx exec 6>/dev/null
36 kx ac_configure_extra_args="$ac_configure_extra_args --silent"
36 kx fi
36 kx
36 kx _ACEOF
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx if \$ac_cs_recheck; then
36 kx set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36 kx shift
36 kx \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
36 kx CONFIG_SHELL='$SHELL'
36 kx export CONFIG_SHELL
36 kx exec "\$@"
36 kx fi
36 kx
36 kx _ACEOF
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx exec 5>>config.log
36 kx {
36 kx echo
36 kx sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36 kx ## Running $as_me. ##
36 kx _ASBOX
36 kx printf "%s\n" "$ac_log"
36 kx } >&5
36 kx
36 kx _ACEOF
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx #
36 kx # INIT-COMMANDS
36 kx #
36 kx config_vars='$config_vars'
36 kx
36 kx _ACEOF
36 kx
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx
36 kx # Handling of arguments.
36 kx for ac_config_target in $ac_config_targets
36 kx do
36 kx case $ac_config_target in
36 kx "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36 kx "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
36 kx "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36 kx "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36 kx
36 kx *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
36 kx esac
36 kx done
36 kx
36 kx
36 kx # If the user did not use the arguments to specify the items to instantiate,
36 kx # then the envvar interface is used. Set only those that are not.
36 kx # We use the long form for the default assignment because of an extremely
36 kx # bizarre bug on SunOS 4.1.3.
36 kx if $ac_need_defaults; then
36 kx test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
36 kx test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
36 kx test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
36 kx fi
36 kx
36 kx # Have a temporary directory for convenience. Make it in the build tree
36 kx # simply because there is no reason against having it here, and in addition,
36 kx # creating and moving files from /tmp can sometimes cause problems.
36 kx # Hook for its removal unless debugging.
36 kx # Note that there is a small window in which the directory will not be cleaned:
36 kx # after its creation but before its name has been assigned to `$tmp'.
36 kx $debug ||
36 kx {
36 kx tmp= ac_tmp=
36 kx trap 'exit_status=$?
36 kx : "${ac_tmp:=$tmp}"
36 kx { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
36 kx ' 0
36 kx trap 'as_fn_exit 1' 1 2 13 15
36 kx }
36 kx # Create a (secure) tmp directory for tmp files.
36 kx
36 kx {
36 kx tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36 kx test -d "$tmp"
36 kx } ||
36 kx {
36 kx tmp=./conf$$-$RANDOM
36 kx (umask 077 && mkdir "$tmp")
36 kx } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36 kx ac_tmp=$tmp
36 kx
36 kx # Set up the scripts for CONFIG_FILES section.
36 kx # No need to generate them if there are no CONFIG_FILES.
36 kx # This happens for instance with `./config.status config.h'.
36 kx if test -n "$CONFIG_FILES"; then
36 kx
36 kx
36 kx ac_cr=`echo X | tr X '\015'`
36 kx # On cygwin, bash can eat \r inside `` if the user requested igncr.
36 kx # But we know of no other shell where ac_cr would be empty at this
36 kx # point, so we can use a bashism as a fallback.
36 kx if test "x$ac_cr" = x; then
36 kx eval ac_cr=\$\'\\r\'
36 kx fi
36 kx ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36 kx if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36 kx ac_cs_awk_cr='\\r'
36 kx else
36 kx ac_cs_awk_cr=$ac_cr
36 kx fi
36 kx
36 kx echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36 kx _ACEOF
36 kx
36 kx
36 kx {
36 kx echo "cat >conf$$subs.awk <<_ACEOF" &&
36 kx echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36 kx echo "_ACEOF"
36 kx } >conf$$subs.sh ||
36 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36 kx ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36 kx ac_delim='%!_!# '
36 kx for ac_last_try in false false false false false :; do
36 kx . ./conf$$subs.sh ||
36 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36 kx
36 kx ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36 kx if test $ac_delim_n = $ac_delim_num; then
36 kx break
36 kx elif $ac_last_try; then
36 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36 kx else
36 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36 kx fi
36 kx done
36 kx rm -f conf$$subs.sh
36 kx
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36 kx _ACEOF
36 kx sed -n '
36 kx h
36 kx s/^/S["/; s/!.*/"]=/
36 kx p
36 kx g
36 kx s/^[^!]*!//
36 kx :repl
36 kx t repl
36 kx s/'"$ac_delim"'$//
36 kx t delim
36 kx :nl
36 kx h
36 kx s/\(.\{148\}\)..*/\1/
36 kx t more1
36 kx s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36 kx p
36 kx n
36 kx b repl
36 kx :more1
36 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36 kx p
36 kx g
36 kx s/.\{148\}//
36 kx t nl
36 kx :delim
36 kx h
36 kx s/\(.\{148\}\)..*/\1/
36 kx t more2
36 kx s/["\\]/\\&/g; s/^/"/; s/$/"/
36 kx p
36 kx b
36 kx :more2
36 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36 kx p
36 kx g
36 kx s/.\{148\}//
36 kx t delim
36 kx ' <conf$$subs.awk | sed '
36 kx /^[^""]/{
36 kx N
36 kx s/\n//
36 kx }
36 kx ' >>$CONFIG_STATUS || ac_write_fail=1
36 kx rm -f conf$$subs.awk
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx _ACAWK
36 kx cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36 kx for (key in S) S_is_set[key] = 1
36 kx FS = ""
36 kx
36 kx }
36 kx {
36 kx line = $ 0
36 kx nfields = split(line, field, "@")
36 kx substed = 0
36 kx len = length(field[1])
36 kx for (i = 2; i < nfields; i++) {
36 kx key = field[i]
36 kx keylen = length(key)
36 kx if (S_is_set[key]) {
36 kx value = S[key]
36 kx line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36 kx len += length(value) + length(field[++i])
36 kx substed = 1
36 kx } else
36 kx len += 1 + keylen
36 kx }
36 kx
36 kx print line
36 kx }
36 kx
36 kx _ACAWK
36 kx _ACEOF
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36 kx sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36 kx else
36 kx cat
36 kx fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36 kx || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36 kx _ACEOF
36 kx
36 kx # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36 kx # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36 kx # trailing colons and then remove the whole line if VPATH becomes empty
36 kx # (actually we leave an empty line to preserve line numbers).
36 kx if test "x$srcdir" = x.; then
36 kx ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36 kx h
36 kx s///
36 kx s/^/:/
36 kx s/[ ]*$/:/
36 kx s/:\$(srcdir):/:/g
36 kx s/:\${srcdir}:/:/g
36 kx s/:@srcdir@:/:/g
36 kx s/^:*//
36 kx s/:*$//
36 kx x
36 kx s/\(=[ ]*\).*/\1/
36 kx G
36 kx s/\n//
36 kx s/^[^=]*=[ ]*$//
36 kx }'
36 kx fi
36 kx
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx fi # test -n "$CONFIG_FILES"
36 kx
36 kx # Set up the scripts for CONFIG_HEADERS section.
36 kx # No need to generate them if there are no CONFIG_HEADERS.
36 kx # This happens for instance with `./config.status Makefile'.
36 kx if test -n "$CONFIG_HEADERS"; then
36 kx cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36 kx BEGIN {
36 kx _ACEOF
36 kx
36 kx # Transform confdefs.h into an awk script `defines.awk', embedded as
36 kx # here-document in config.status, that substitutes the proper values into
36 kx # config.h.in to produce config.h.
36 kx
36 kx # Create a delimiter string that does not exist in confdefs.h, to ease
36 kx # handling of long lines.
36 kx ac_delim='%!_!# '
36 kx for ac_last_try in false false :; do
36 kx ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36 kx if test -z "$ac_tt"; then
36 kx break
36 kx elif $ac_last_try; then
36 kx as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36 kx else
36 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36 kx fi
36 kx done
36 kx
36 kx # For the awk script, D is an array of macro values keyed by name,
36 kx # likewise P contains macro parameters if any. Preserve backslash
36 kx # newline sequences.
36 kx
36 kx ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36 kx sed -n '
36 kx s/.\{148\}/&'"$ac_delim"'/g
36 kx t rset
36 kx :rset
36 kx s/^[ ]*#[ ]*define[ ][ ]*/ /
36 kx t def
36 kx d
36 kx :def
36 kx s/\\$//
36 kx t bsnl
36 kx s/["\\]/\\&/g
36 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36 kx D["\1"]=" \3"/p
36 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36 kx d
36 kx :bsnl
36 kx s/["\\]/\\&/g
36 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36 kx D["\1"]=" \3\\\\\\n"\\/p
36 kx t cont
36 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36 kx t cont
36 kx d
36 kx :cont
36 kx n
36 kx s/.\{148\}/&'"$ac_delim"'/g
36 kx t clear
36 kx :clear
36 kx s/\\$//
36 kx t bsnlc
36 kx s/["\\]/\\&/g; s/^/"/; s/$/"/p
36 kx d
36 kx :bsnlc
36 kx s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36 kx b cont
36 kx ' <confdefs.h | sed '
36 kx s/'"$ac_delim"'/"\\\
36 kx "/g' >>$CONFIG_STATUS || ac_write_fail=1
36 kx
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx for (key in D) D_is_set[key] = 1
36 kx FS = ""
36 kx }
36 kx /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36 kx line = \$ 0
36 kx split(line, arg, " ")
36 kx if (arg[1] == "#") {
36 kx defundef = arg[2]
36 kx mac1 = arg[3]
36 kx } else {
36 kx defundef = substr(arg[1], 2)
36 kx mac1 = arg[2]
36 kx }
36 kx split(mac1, mac2, "(") #)
36 kx macro = mac2[1]
36 kx prefix = substr(line, 1, index(line, defundef) - 1)
36 kx if (D_is_set[macro]) {
36 kx # Preserve the white space surrounding the "#".
36 kx print prefix "define", macro P[macro] D[macro]
36 kx next
36 kx } else {
36 kx # Replace #undef with comments. This is necessary, for example,
36 kx # in the case of _POSIX_SOURCE, which is predefined and required
36 kx # on some systems where configure will not decide to define it.
36 kx if (defundef == "undef") {
36 kx print "/*", prefix defundef, macro, "*/"
36 kx next
36 kx }
36 kx }
36 kx }
36 kx { print }
36 kx _ACAWK
36 kx _ACEOF
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36 kx fi # test -n "$CONFIG_HEADERS"
36 kx
36 kx
36 kx eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36 kx shift
36 kx for ac_tag
36 kx do
36 kx case $ac_tag in
36 kx :[FHLC]) ac_mode=$ac_tag; continue;;
36 kx esac
36 kx case $ac_mode$ac_tag in
36 kx :[FHL]*:*);;
36 kx :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36 kx :[FH]-) ac_tag=-:-;;
36 kx :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36 kx esac
36 kx ac_save_IFS=$IFS
36 kx IFS=:
36 kx set x $ac_tag
36 kx IFS=$ac_save_IFS
36 kx shift
36 kx ac_file=$1
36 kx shift
36 kx
36 kx case $ac_mode in
36 kx :L) ac_source=$1;;
36 kx :[FH])
36 kx ac_file_inputs=
36 kx for ac_f
36 kx do
36 kx case $ac_f in
36 kx -) ac_f="$ac_tmp/stdin";;
36 kx *) # Look for the file first in the build tree, then in the source tree
36 kx # (if the path is not absolute). The absolute path cannot be DOS-style,
36 kx # because $ac_f cannot contain `:'.
36 kx test -f "$ac_f" ||
36 kx case $ac_f in
36 kx [\\/$]*) false;;
36 kx *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36 kx esac ||
36 kx as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36 kx esac
36 kx case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36 kx as_fn_append ac_file_inputs " '$ac_f'"
36 kx done
36 kx
36 kx # Let's still pretend it is `configure' which instantiates (i.e., don't
36 kx # use $as_me), people would be surprised to read:
36 kx # /* config.h. Generated by config.status. */
36 kx configure_input='Generated from '`
36 kx printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36 kx `' by configure.'
36 kx if test x"$ac_file" != x-; then
36 kx configure_input="$ac_file. $configure_input"
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36 kx printf "%s\n" "$as_me: creating $ac_file" >&6;}
36 kx fi
36 kx # Neutralize special characters interpreted by sed in replacement strings.
36 kx case $configure_input in #(
36 kx *\&* | *\|* | *\\* )
36 kx ac_sed_conf_input=`printf "%s\n" "$configure_input" |
36 kx sed 's/[\\\\&|]/\\\\&/g'`;; #(
36 kx *) ac_sed_conf_input=$configure_input;;
36 kx esac
36 kx
36 kx case $ac_tag in
36 kx *:-:* | *:-) cat >"$ac_tmp/stdin" \
36 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36 kx esac
36 kx ;;
36 kx esac
36 kx
36 kx ac_dir=`$as_dirname -- "$ac_file" ||
36 kx $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36 kx X"$ac_file" : 'X\(//\)[^/]' \| \
36 kx X"$ac_file" : 'X\(//\)$' \| \
36 kx X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36 kx printf "%s\n" X"$ac_file" |
36 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\/\)[^/].*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\/\)$/{
36 kx s//\1/
36 kx q
36 kx }
36 kx /^X\(\/\).*/{
36 kx s//\1/
36 kx q
36 kx }
36 kx s/.*/./; q'`
36 kx as_dir="$ac_dir"; as_fn_mkdir_p
36 kx ac_builddir=.
36 kx
36 kx case "$ac_dir" in
36 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36 kx *)
36 kx ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
36 kx # A ".." for each directory in $ac_dir_suffix.
36 kx ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36 kx case $ac_top_builddir_sub in
36 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36 kx esac ;;
36 kx esac
36 kx ac_abs_top_builddir=$ac_pwd
36 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
36 kx # for backward compatibility:
36 kx ac_top_builddir=$ac_top_build_prefix
36 kx
36 kx case $srcdir in
36 kx .) # We are building in place.
36 kx ac_srcdir=.
36 kx ac_top_srcdir=$ac_top_builddir_sub
36 kx ac_abs_top_srcdir=$ac_pwd ;;
36 kx [\\/]* | ?:[\\/]* ) # Absolute name.
36 kx ac_srcdir=$srcdir$ac_dir_suffix;
36 kx ac_top_srcdir=$srcdir
36 kx ac_abs_top_srcdir=$srcdir ;;
36 kx *) # Relative name.
36 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
36 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36 kx esac
36 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36 kx
36 kx
36 kx case $ac_mode in
36 kx :F)
36 kx #
36 kx # CONFIG_FILE
36 kx #
36 kx
36 kx case $INSTALL in
36 kx [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36 kx *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36 kx esac
36 kx _ACEOF
36 kx
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx # If the template does not know about datarootdir, expand it.
36 kx # FIXME: This hack should be removed a few years after 2.60.
36 kx ac_datarootdir_hack=; ac_datarootdir_seen=
36 kx ac_sed_dataroot='
36 kx /datarootdir/ {
36 kx p
36 kx q
36 kx }
36 kx /@datadir@/p
36 kx /@docdir@/p
36 kx /@infodir@/p
36 kx /@localedir@/p
36 kx /@mandir@/p'
36 kx case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36 kx *datarootdir*) ac_datarootdir_seen=yes;;
36 kx *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36 kx printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36 kx _ACEOF
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx ac_datarootdir_hack='
36 kx s&@datadir@&$datadir&g
36 kx s&@docdir@&$docdir&g
36 kx s&@infodir@&$infodir&g
36 kx s&@localedir@&$localedir&g
36 kx s&@mandir@&$mandir&g
36 kx s&\\\${datarootdir}&$datarootdir&g' ;;
36 kx esac
36 kx _ACEOF
36 kx
36 kx # Neutralize VPATH when `$srcdir' = `.'.
36 kx # Shell code in configure.ac might set extrasub.
36 kx # FIXME: do we really want to maintain this feature?
36 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36 kx ac_sed_extra="$ac_vpsub
36 kx $extrasub
36 kx _ACEOF
36 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36 kx :t
36 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36 kx s|@configure_input@|$ac_sed_conf_input|;t t
36 kx s&@top_builddir@&$ac_top_builddir_sub&;t t
36 kx s&@top_build_prefix@&$ac_top_build_prefix&;t t
36 kx s&@srcdir@&$ac_srcdir&;t t
36 kx s&@abs_srcdir@&$ac_abs_srcdir&;t t
36 kx s&@top_srcdir@&$ac_top_srcdir&;t t
36 kx s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36 kx s&@builddir@&$ac_builddir&;t t
36 kx s&@abs_builddir@&$ac_abs_builddir&;t t
36 kx s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36 kx s&@INSTALL@&$ac_INSTALL&;t t
36 kx $ac_datarootdir_hack
36 kx "
36 kx eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36 kx >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36 kx
36 kx test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36 kx { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36 kx { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36 kx "$ac_tmp/out"`; test -z "$ac_out"; } &&
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36 kx which seems to be undefined. Please make sure it is defined" >&5
36 kx printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36 kx which seems to be undefined. Please make sure it is defined" >&2;}
36 kx
36 kx rm -f "$ac_tmp/stdin"
36 kx case $ac_file in
36 kx -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36 kx *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36 kx esac \
36 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36 kx ;;
36 kx :H)
36 kx #
36 kx # CONFIG_HEADER
36 kx #
36 kx if test x"$ac_file" != x-; then
36 kx {
36 kx printf "%s\n" "/* $configure_input */" >&1 \
36 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36 kx } >"$ac_tmp/config.h" \
36 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36 kx if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36 kx printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
36 kx else
36 kx rm -f "$ac_file"
36 kx mv "$ac_tmp/config.h" "$ac_file" \
36 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36 kx fi
36 kx else
36 kx printf "%s\n" "/* $configure_input */" >&1 \
36 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36 kx || as_fn_error $? "could not create -" "$LINENO" 5
36 kx fi
36 kx ;;
36 kx
36 kx :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36 kx printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
36 kx ;;
36 kx esac
36 kx
36 kx
36 kx case $ac_file$ac_mode in
36 kx "default":C)
36 kx case $CONFIG_FILES in *config.make*)
36 kx echo "$config_vars" >> config.make;;
36 kx esac
36 kx test -d bits || mkdir bits ;;
36 kx
36 kx esac
36 kx done # for ac_tag
36 kx
36 kx
36 kx as_fn_exit 0
36 kx _ACEOF
36 kx ac_clean_files=$ac_clean_files_save
36 kx
36 kx test $ac_write_fail = 0 ||
36 kx as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36 kx
36 kx
36 kx # configure is writing to config.log, and then calls config.status.
36 kx # config.status does its own redirection, appending to config.log.
36 kx # Unfortunately, on DOS this fails, as config.log is still kept open
36 kx # by configure, so config.status won't be able to write to it; its
36 kx # output is simply discarded. So we exec the FD to /dev/null,
36 kx # effectively closing config.log, so it can be properly (re)opened and
36 kx # appended to by config.status. When coming back to configure, we
36 kx # need to make the FD available again.
36 kx if test "$no_create" != yes; then
36 kx ac_cs_success=:
36 kx ac_config_status_args=
36 kx test "$silent" = yes &&
36 kx ac_config_status_args="$ac_config_status_args --quiet"
36 kx exec 5>/dev/null
36 kx $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36 kx exec 5>>config.log
36 kx # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36 kx # would make configure fail if this is the last instruction.
36 kx $ac_cs_success || as_fn_exit 1
36 kx fi
36 kx
36 kx #
36 kx # CONFIG_SUBDIRS section.
36 kx #
36 kx if test "$no_recursion" != yes; then
36 kx
36 kx # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36 kx # so they do not pile up.
36 kx ac_sub_configure_args=
36 kx ac_prev=
36 kx eval "set x $ac_configure_args"
36 kx shift
36 kx for ac_arg
36 kx do
36 kx if test -n "$ac_prev"; then
36 kx ac_prev=
36 kx continue
36 kx fi
36 kx case $ac_arg in
36 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
36 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36 kx ac_prev=cache_file ;;
36 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36 kx | --c=*)
36 kx ;;
36 kx --config-cache | -C)
36 kx ;;
36 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36 kx ac_prev=srcdir ;;
36 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36 kx ;;
36 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36 kx ac_prev=prefix ;;
36 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36 kx ;;
36 kx --disable-option-checking)
36 kx ;;
36 kx *)
36 kx case $ac_arg in
36 kx *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36 kx esac
36 kx as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
36 kx esac
36 kx done
36 kx
36 kx # Always prepend --prefix to ensure using the same prefix
36 kx # in subdir configurations.
36 kx ac_arg="--prefix=$prefix"
36 kx case $ac_arg in
36 kx *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36 kx esac
36 kx ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
36 kx
36 kx # Pass --silent
36 kx if test "$silent" = yes; then
36 kx ac_sub_configure_args="--silent $ac_sub_configure_args"
36 kx fi
36 kx
36 kx # Always prepend --disable-option-checking to silence warnings, since
36 kx # different subdirs can have different --enable and --with options.
36 kx ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
36 kx
36 kx ac_popdir=`pwd`
36 kx for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36 kx
36 kx # Do not complain, so a configure script can configure whichever
36 kx # parts of a large source tree are present.
36 kx test -d "$srcdir/$ac_dir" || continue
36 kx
36 kx ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36 kx printf "%s\n" "$ac_msg" >&6
36 kx as_dir="$ac_dir"; as_fn_mkdir_p
36 kx ac_builddir=.
36 kx
36 kx case "$ac_dir" in
36 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36 kx *)
36 kx ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
36 kx # A ".." for each directory in $ac_dir_suffix.
36 kx ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36 kx case $ac_top_builddir_sub in
36 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36 kx esac ;;
36 kx esac
36 kx ac_abs_top_builddir=$ac_pwd
36 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
36 kx # for backward compatibility:
36 kx ac_top_builddir=$ac_top_build_prefix
36 kx
36 kx case $srcdir in
36 kx .) # We are building in place.
36 kx ac_srcdir=.
36 kx ac_top_srcdir=$ac_top_builddir_sub
36 kx ac_abs_top_srcdir=$ac_pwd ;;
36 kx [\\/]* | ?:[\\/]* ) # Absolute name.
36 kx ac_srcdir=$srcdir$ac_dir_suffix;
36 kx ac_top_srcdir=$srcdir
36 kx ac_abs_top_srcdir=$srcdir ;;
36 kx *) # Relative name.
36 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
36 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36 kx esac
36 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36 kx
36 kx
36 kx cd "$ac_dir"
36 kx
36 kx # Check for configure.gnu first; this name is used for a wrapper for
36 kx # Metaconfig's "Configure" on case-insensitive file systems.
36 kx if test -f "$ac_srcdir/configure.gnu"; then
36 kx ac_sub_configure=$ac_srcdir/configure.gnu
36 kx elif test -f "$ac_srcdir/configure"; then
36 kx ac_sub_configure=$ac_srcdir/configure
36 kx else
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36 kx printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36 kx ac_sub_configure=
36 kx fi
36 kx
36 kx # The recursion is here.
36 kx if test -n "$ac_sub_configure"; then
36 kx # Make the cache file name correct relative to the subdirectory.
36 kx case $cache_file in
36 kx [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36 kx *) # Relative name.
36 kx ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36 kx esac
36 kx
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36 kx printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36 kx # The eval makes quoting arguments work.
36 kx eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36 kx --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36 kx as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36 kx fi
36 kx
36 kx cd "$ac_popdir"
36 kx done
36 kx fi
36 kx if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36 kx printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36 kx fi
36 kx
36 kx