Convert to autoconf 2.72 (vanilla release, no distribution patches)

As discussed at the patch review meeting

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Reviewed-by: Simon Chopin <simon.chopin@canonical.com>
This commit is contained in:
Andreas K. Hüttel 2024-06-11 23:34:54 +02:00
parent 7ec903e028
commit 98ffc1bfeb
No known key found for this signature in database
GPG Key ID: DC2B16215ED5412A
31 changed files with 1817 additions and 1601 deletions

View File

@ -591,7 +591,7 @@ build the GNU C Library:
If you change any of the 'configure.ac' files you will also need If you change any of the 'configure.ac' files you will also need
* GNU 'autoconf' 2.71 (exactly) * GNU 'autoconf' 2.72 (exactly)
and if you change any of the message translation files you will need and if you change any of the message translation files you will need

2
aclocal.m4 vendored
View File

@ -2,7 +2,7 @@ dnl We require that everyone use exactly the same Autoconf version so that
dnl the internal functions defined and used by the main configure script dnl the internal functions defined and used by the main configure script
dnl match those expected by the fragments. When changing this version, dnl match those expected by the fragments. When changing this version,
dnl install.texi also needs to be updated. dnl install.texi also needs to be updated.
m4_define([GLIBC_AUTOCONF_VERSION], [2.71]) m4_define([GLIBC_AUTOCONF_VERSION], [2.72])
m4_if(m4_defn([AC_AUTOCONF_VERSION]), GLIBC_AUTOCONF_VERSION, [], m4_if(m4_defn([AC_AUTOCONF_VERSION]), GLIBC_AUTOCONF_VERSION, [],
[m4_fatal(m4_flatten( [m4_fatal(m4_flatten(
Exactly version GLIBC_AUTOCONF_VERSION of Autoconf is required but you have Exactly version GLIBC_AUTOCONF_VERSION of Autoconf is required but you have

1309
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -643,7 +643,7 @@ If you change any of the @file{configure.ac} files you will also need
@itemize @bullet @itemize @bullet
@item @item
GNU @code{autoconf} 2.71 (exactly) GNU @code{autoconf} 2.72 (exactly)
@end itemize @end itemize
@noindent @noindent

View File

@ -14,14 +14,14 @@ printf "%s\n" "#define SUPPORT_STATIC_PIE 1" >>confdefs.h
# the dynamic linker via %ifdef. # the dynamic linker via %ifdef.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -35,13 +35,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -50,14 +51,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -65,35 +66,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -107,13 +97,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -122,14 +113,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -137,32 +128,33 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
printf %s "checking for big endian... " >&6; } printf %s "checking for big endian... " >&6; }
if test ${libc_cv_aarch64_be+y} if test ${libc_cv_aarch64_be+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#ifdef __AARCH64EB__ #ifdef __AARCH64EB__
yes yes
@ -170,14 +162,16 @@ else $as_nop
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_aarch64_be=yes libc_cv_aarch64_be=yes
else $as_nop else case e in #(
libc_cv_aarch64_be=no e) libc_cv_aarch64_be=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_be" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_be" >&5
printf "%s\n" "$libc_cv_aarch64_be" >&6; } printf "%s\n" "$libc_cv_aarch64_be" >&6; }
@ -199,8 +193,8 @@ printf %s "checking for BTI support... " >&6; }
if test ${libc_cv_aarch64_bti+y} if test ${libc_cv_aarch64_bti+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
void foo (void) { } void foo (void) { }
EOF EOF
libc_cv_aarch64_bti=no libc_cv_aarch64_bti=no
@ -225,7 +219,8 @@ EOF
then then
libc_cv_aarch64_bti=yes libc_cv_aarch64_bti=yes
fi fi
rm -rf conftest.* rm -rf conftest.* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_bti" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_bti" >&5
printf "%s\n" "$libc_cv_aarch64_bti" >&6; } printf "%s\n" "$libc_cv_aarch64_bti" >&6; }
@ -246,8 +241,8 @@ printf %s "checking if pac-ret is enabled... " >&6; }
if test ${libc_cv_aarch64_pac_ret+y} if test ${libc_cv_aarch64_pac_ret+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
int bar (void); int bar (void);
int foo (void) { return bar () + 1; } int foo (void) { return bar () + 1; }
EOF EOF
@ -267,7 +262,8 @@ EOF
then then
libc_cv_aarch64_pac_ret=yes libc_cv_aarch64_pac_ret=yes
fi fi
rm -rf conftest.* rm -rf conftest.* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_pac_ret" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_pac_ret" >&5
printf "%s\n" "$libc_cv_aarch64_pac_ret" >&6; } printf "%s\n" "$libc_cv_aarch64_pac_ret" >&6; }
@ -282,8 +278,8 @@ printf %s "checking for variant PCS support... " >&6; }
if test ${libc_cv_aarch64_variant_pcs+y} if test ${libc_cv_aarch64_variant_pcs+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.S <<EOF e) cat > conftest.S <<EOF
.global foo .global foo
.type foo, %function .type foo, %function
.variant_pcs foo .variant_pcs foo
@ -310,7 +306,8 @@ EOF
then then
libc_cv_aarch64_variant_pcs=yes libc_cv_aarch64_variant_pcs=yes
fi fi
rm -rf conftest.* rm -rf conftest.* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_variant_pcs" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_variant_pcs" >&5
printf "%s\n" "$libc_cv_aarch64_variant_pcs" >&6; } printf "%s\n" "$libc_cv_aarch64_variant_pcs" >&6; }
@ -323,8 +320,8 @@ printf %s "checking for SVE support in assembler... " >&6; }
if test ${libc_cv_aarch64_sve_asm+y} if test ${libc_cv_aarch64_sve_asm+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.s <<\EOF e) cat > conftest.s <<\EOF
.arch armv8.2-a+sve .arch armv8.2-a+sve
ptrue p0.b ptrue p0.b
EOF EOF
@ -338,7 +335,8 @@ if { ac_try='${CC-cc} -c conftest.s 1>&5'
else else
libc_cv_aarch64_sve_asm=no libc_cv_aarch64_sve_asm=no
fi fi
rm -f conftest* rm -f conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_asm" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_asm" >&5
printf "%s\n" "$libc_cv_aarch64_sve_asm" >&6; } printf "%s\n" "$libc_cv_aarch64_sve_asm" >&6; }
@ -357,8 +355,8 @@ printf %s "checking for availability of SVE ACLE... " >&6; }
if test ${libc_cv_aarch64_sve_acle+y} if test ${libc_cv_aarch64_sve_acle+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
#include <arm_sve.h> #include <arm_sve.h>
EOF EOF
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fsyntax-only -ffreestanding conftest.c' if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fsyntax-only -ffreestanding conftest.c'
@ -371,7 +369,8 @@ EOF
else else
libc_cv_aarch64_sve_acle=no libc_cv_aarch64_sve_acle=no
fi fi
rm conftest.c rm conftest.c ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_acle" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_acle" >&5
printf "%s\n" "$libc_cv_aarch64_sve_acle" >&6; } printf "%s\n" "$libc_cv_aarch64_sve_acle" >&6; }

120
sysdeps/arc/configure vendored
View File

@ -13,14 +13,14 @@ printf "%s\n" "#define ASM_LINE_SEP $libc_cv_asm_line_sep" >>confdefs.h
# For big endian ABI, generate a symbol for selecting right dynamic linker # For big endian ABI, generate a symbol for selecting right dynamic linker
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -34,13 +34,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -49,14 +50,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -64,35 +65,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -106,13 +96,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -121,14 +112,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -136,32 +127,33 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
printf %s "checking for big endian... " >&6; } printf %s "checking for big endian... " >&6; }
if test ${libc_cv_arc_be+y} if test ${libc_cv_arc_be+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#ifdef __BIG_ENDIAN__ #ifdef __BIG_ENDIAN__
yes yes
@ -169,14 +161,16 @@ else $as_nop
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_arc_be=yes libc_cv_arc_be=yes
else $as_nop else case e in #(
libc_cv_arc_be=no e) libc_cv_arc_be=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5
printf "%s\n" "$libc_cv_arc_be" >&6; } printf "%s\n" "$libc_cv_arc_be" >&6; }

146
sysdeps/arm/configure vendored
View File

@ -10,14 +10,14 @@
# the dynamic linker via %ifdef. # the dynamic linker via %ifdef.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -31,13 +31,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -46,14 +47,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -61,35 +62,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -103,13 +93,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -118,14 +109,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -133,32 +124,33 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the ARM hard-float ABI" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the ARM hard-float ABI" >&5
printf %s "checking whether the compiler is using the ARM hard-float ABI... " >&6; } printf %s "checking whether the compiler is using the ARM hard-float ABI... " >&6; }
if test ${libc_cv_arm_pcs_vfp+y} if test ${libc_cv_arm_pcs_vfp+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#ifdef __ARM_PCS_VFP #ifdef __ARM_PCS_VFP
yes yes
@ -166,14 +158,16 @@ else $as_nop
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_arm_pcs_vfp=yes libc_cv_arm_pcs_vfp=yes
else $as_nop else case e in #(
libc_cv_arm_pcs_vfp=no e) libc_cv_arm_pcs_vfp=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp" >&5
printf "%s\n" "$libc_cv_arm_pcs_vfp" >&6; } printf "%s\n" "$libc_cv_arm_pcs_vfp" >&6; }
@ -192,8 +186,8 @@ printf %s "checking whether VFP supports 32 registers... " >&6; }
if test ${libc_cv_arm_pcs_vfp_d32+y} if test ${libc_cv_arm_pcs_vfp_d32+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -206,10 +200,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_arm_pcs_vfp_d32=yes libc_cv_arm_pcs_vfp_d32=yes
else $as_nop else case e in #(
libc_cv_arm_pcs_vfp_d32=no e) libc_cv_arm_pcs_vfp_d32=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp_d32" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp_d32" >&5
printf "%s\n" "$libc_cv_arm_pcs_vfp_d32" >&6; } printf "%s\n" "$libc_cv_arm_pcs_vfp_d32" >&6; }
@ -224,8 +220,8 @@ printf %s "checking whether PC-relative relocs in movw/movt work properly... " >
if test ${libc_cv_arm_pcrel_movw+y} if test ${libc_cv_arm_pcrel_movw+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
.syntax unified .syntax unified
.arm .arm
@ -259,7 +255,8 @@ LC_ALL=C $READELF -dr conftest.so > conftest.dr 2>&5 &&
grep -F 'TEXTREL grep -F 'TEXTREL
R_ARM_NONE' conftest.dr > /dev/null || libc_cv_arm_pcrel_movw=yes R_ARM_NONE' conftest.dr > /dev/null || libc_cv_arm_pcrel_movw=yes
} }
rm -f conftest* rm -f conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcrel_movw" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcrel_movw" >&5
printf "%s\n" "$libc_cv_arm_pcrel_movw" >&6; } printf "%s\n" "$libc_cv_arm_pcrel_movw" >&6; }
@ -276,8 +273,8 @@ printf %s "checking whether TPOFF relocs with addends are assembled correctly...
if test ${libc_cv_arm_tpoff_addend+y} if test ${libc_cv_arm_tpoff_addend+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
.syntax unified .syntax unified
.arm .arm
@ -306,7 +303,8 @@ $1 ~ /0x0+/ && $2 ~ /[0-9a-f]+/ {
END { exit(result) } END { exit(result) }
' conftest.x 2>&5 && libc_cv_arm_tpoff_addend=yes ' conftest.x 2>&5 && libc_cv_arm_tpoff_addend=yes
} }
rm -f conftest* rm -f conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_tpoff_addend" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_tpoff_addend" >&5
printf "%s\n" "$libc_cv_arm_tpoff_addend" >&6; } printf "%s\n" "$libc_cv_arm_tpoff_addend" >&6; }

View File

@ -5,8 +5,8 @@ printf %s "checking for assembler line separator... " >&6; }
if test ${libc_cv_asm_line_sep+y} if test ${libc_cv_asm_line_sep+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.s <<EOF e) cat > conftest.s <<EOF
nop ; is_old_puffin nop ; is_old_puffin
EOF EOF
if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
@ -24,7 +24,8 @@ else
fi fi
libc_cv_asm_line_sep=';' libc_cv_asm_line_sep=';'
fi fi
rm -f conftest* rm -f conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_line_sep" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_line_sep" >&5
printf "%s\n" "$libc_cv_asm_line_sep" >&6; } printf "%s\n" "$libc_cv_asm_line_sep" >&6; }

View File

@ -61,8 +61,8 @@ printf %s "checking for linker static PIE support... " >&6; }
if test ${libc_cv_ld_static_pie+y} if test ${libc_cv_ld_static_pie+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.s <<\EOF e) cat > conftest.s <<\EOF
.text .text
.global _start .global _start
_start: _start:
@ -80,7 +80,8 @@ EOF
libc_cv_ld_static_pie=yes libc_cv_ld_static_pie=yes
fi fi
fi fi
rm -f conftest* rm -f conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_static_pie" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_static_pie" >&5
printf "%s\n" "$libc_cv_ld_static_pie" >&6; } printf "%s\n" "$libc_cv_ld_static_pie" >&6; }

View File

@ -7,8 +7,8 @@ printf %s "checking whether $CC $CFLAGS supports -mlong-double-128... " >&6; }
if test ${libc_cv_mlong_double_128+y} if test ${libc_cv_mlong_double_128+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
save_CFLAGS="$CFLAGS" e) save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -mlong-double-128" CFLAGS="$CFLAGS -mlong-double-128"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -28,11 +28,13 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_mlong_double_128=yes libc_cv_mlong_double_128=yes
else $as_nop else case e in #(
libc_cv_mlong_double_128=no e) libc_cv_mlong_double_128=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS="$save_CFLAGS" CFLAGS="$save_CFLAGS" ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128" >&5
printf "%s\n" "$libc_cv_mlong_double_128" >&6; } printf "%s\n" "$libc_cv_mlong_double_128" >&6; }

View File

@ -9,8 +9,8 @@ printf %s "checking if ${CC-cc} is sufficient to build static PIE on LoongArch..
if test ${libc_cv_static_pie_on_loongarch+y} if test ${libc_cv_static_pie_on_loongarch+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat > conftest.S <<\EOF cat > conftest.S <<\EOF
.global _start .global _start
.type _start, @function .type _start, @function
@ -48,7 +48,8 @@ EOF
then then
libc_cv_static_pie_on_loongarch=yes libc_cv_static_pie_on_loongarch=yes
fi fi
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_loongarch" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_loongarch" >&5
printf "%s\n" "$libc_cv_static_pie_on_loongarch" >&6; } printf "%s\n" "$libc_cv_static_pie_on_loongarch" >&6; }
@ -64,8 +65,8 @@ printf %s "checking whether $CC supports option -mcmodel=medium... " >&6; }
if test ${libc_cv_loongarch_cmodel_medium+y} if test ${libc_cv_loongarch_cmodel_medium+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
if { ac_try='${CC-cc} -c $CFLAGS -mcmodel=medium /dev/null 1>&5' if { ac_try='${CC-cc} -c $CFLAGS -mcmodel=medium /dev/null 1>&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
@ -75,7 +76,8 @@ else $as_nop
libc_cv_loongarch_cmodel_medium=yes libc_cv_loongarch_cmodel_medium=yes
else else
libc_cv_loongarch_cmodel_medium=no libc_cv_loongarch_cmodel_medium=no
fi fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_cmodel_medium" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_cmodel_medium" >&5
printf "%s\n" "$libc_cv_loongarch_cmodel_medium" >&6; } printf "%s\n" "$libc_cv_loongarch_cmodel_medium" >&6; }
@ -88,8 +90,8 @@ printf %s "checking for vector support in assembler... " >&6; }
if test ${libc_cv_loongarch_vec_asm+y} if test ${libc_cv_loongarch_vec_asm+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.s <<\EOF e) cat > conftest.s <<\EOF
vld $vr0, $sp, 0 vld $vr0, $sp, 0
EOF EOF
if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5' if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5'
@ -102,7 +104,8 @@ if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5'
else else
libc_cv_loongarch_vec_asm=no libc_cv_loongarch_vec_asm=no
fi fi
rm -f conftest* rm -f conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_asm" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_asm" >&5
printf "%s\n" "$libc_cv_loongarch_vec_asm" >&6; } printf "%s\n" "$libc_cv_loongarch_vec_asm" >&6; }
@ -116,8 +119,8 @@ printf %s "checking for vector support in compiler... " >&6; }
if test ${libc_cv_loongarch_vec_com+y} if test ${libc_cv_loongarch_vec_com+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -131,10 +134,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_loongarch_vec_com=yes libc_cv_loongarch_vec_com=yes
else $as_nop else case e in #(
libc_cv_loongarch_vec_com=no e) libc_cv_loongarch_vec_com=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_com" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_com" >&5
printf "%s\n" "$libc_cv_loongarch_vec_com" >&6; } printf "%s\n" "$libc_cv_loongarch_vec_com" >&6; }

229
sysdeps/mach/configure vendored
View File

@ -11,18 +11,20 @@ printf %s "checking for $2... " >&6; }
if eval test \${$3+y} if eval test \${$3+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <$2> #include <$2>
_ACEOF _ACEOF
if ac_fn_c_try_cpp "$LINENO" if ac_fn_c_try_cpp "$LINENO"
then : then :
eval "$3=yes" eval "$3=yes"
else $as_nop else case e in #(
eval "$3=no" e) eval "$3=no" ;;
esac
fi fi
rm -f conftest.err conftest.i conftest.$ac_ext rm -f conftest.err conftest.i conftest.$ac_ext ;;
esac
fi fi
eval ac_res=\$$3 eval ac_res=\$$3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
@ -40,8 +42,8 @@ printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_MIG+y} if test ${ac_cv_prog_MIG+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -n "$MIG"; then e) if test -n "$MIG"; then
ac_cv_prog_MIG="$MIG" # Let the user override the test. ac_cv_prog_MIG="$MIG" # Let the user override the test.
else else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@ -63,7 +65,8 @@ done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
fi fi ;;
esac
fi fi
MIG=$ac_cv_prog_MIG MIG=$ac_cv_prog_MIG
if test -n "$MIG"; then if test -n "$MIG"; then
@ -85,8 +88,8 @@ printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_MIG+y} if test ${ac_cv_prog_ac_ct_MIG+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -n "$ac_ct_MIG"; then e) if test -n "$ac_ct_MIG"; then
ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
else else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@ -108,7 +111,8 @@ done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
fi fi ;;
esac
fi fi
ac_ct_MIG=$ac_cv_prog_ac_ct_MIG ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
if test -n "$ac_ct_MIG"; then if test -n "$ac_ct_MIG"; then
@ -153,16 +157,18 @@ ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.h" "ac_cv_header_mach_ma
if test "x$ac_cv_header_mach_mach_types_h" = xyes if test "x$ac_cv_header_mach_mach_types_h" = xyes
then : then :
else $as_nop else case e in #(
as_fn_error $? "cannot find Mach headers" "$LINENO" 5 e) as_fn_error $? "cannot find Mach headers" "$LINENO" 5 ;;
esac
fi fi
ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.defs" "ac_cv_header_mach_mach_types_defs" ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.defs" "ac_cv_header_mach_mach_types_defs"
if test "x$ac_cv_header_mach_mach_types_defs" = xyes if test "x$ac_cv_header_mach_mach_types_defs" = xyes
then : then :
else $as_nop else case e in #(
as_fn_error $? "cannot find Mach .defs files" "$LINENO" 5 e) as_fn_error $? "cannot find Mach .defs files" "$LINENO" 5 ;;
esac
fi fi
@ -173,8 +179,8 @@ printf %s "checking for task_t in mach/mach_types.h... " >&6; }
if test ${libc_cv_mach_task_t+y} if test ${libc_cv_mach_task_t+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <mach/mach_types.h> #include <mach/mach_types.h>
int int
@ -188,10 +194,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_mach_task_t=task_t libc_cv_mach_task_t=task_t
else $as_nop else case e in #(
libc_cv_mach_task_t=task_port_t e) libc_cv_mach_task_t=task_port_t ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_t" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_t" >&5
printf "%s\n" "$libc_cv_mach_task_t" >&6; } printf "%s\n" "$libc_cv_mach_task_t" >&6; }
@ -203,8 +211,8 @@ printf %s "checking for thread_t in mach/mach_types.h... " >&6; }
if test ${libc_cv_mach_thread_t+y} if test ${libc_cv_mach_thread_t+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <mach/mach_types.h> #include <mach/mach_types.h>
int int
@ -218,10 +226,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_mach_thread_t=thread_t libc_cv_mach_thread_t=thread_t
else $as_nop else case e in #(
libc_cv_mach_thread_t=thread_port_t e) libc_cv_mach_thread_t=thread_port_t ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_thread_t" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_thread_t" >&5
printf "%s\n" "$libc_cv_mach_thread_t" >&6; } printf "%s\n" "$libc_cv_mach_thread_t" >&6; }
@ -234,8 +244,8 @@ printf %s "checking for creation_time in task_basic_info... " >&6; }
if test ${libc_cv_mach_task_creation_time+y} if test ${libc_cv_mach_task_creation_time+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <mach/task_info.h> #include <mach/task_info.h>
int int
@ -252,10 +262,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_mach_task_creation_time=yes libc_cv_mach_task_creation_time=yes
else $as_nop else case e in #(
libc_cv_mach_task_creation_time=no e) libc_cv_mach_task_creation_time=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_creation_time" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_creation_time" >&5
printf "%s\n" "$libc_cv_mach_task_creation_time" >&6; } printf "%s\n" "$libc_cv_mach_task_creation_time" >&6; }
@ -269,7 +281,7 @@ for ifc in mach mach4 gnumach \
processor processor_set task task_notify thread_act vm_map \ processor processor_set task task_notify thread_act vm_map \
memory_object memory_object_default i386/mach_i386 x86_64/mach_i386 \ memory_object memory_object_default i386/mach_i386 x86_64/mach_i386 \
; do ; do
as_ac_Header=`printf "%s\n" "ac_cv_header_mach/${ifc}.defs" | $as_tr_sh` as_ac_Header=`printf "%s\n" "ac_cv_header_mach/${ifc}.defs" | sed "$as_sed_sh"`
ac_fn_c_check_header_preproc "$LINENO" "mach/${ifc}.defs" "$as_ac_Header" ac_fn_c_check_header_preproc "$LINENO" "mach/${ifc}.defs" "$as_ac_Header"
if eval test \"x\$"$as_ac_Header"\" = x"yes" if eval test \"x\$"$as_ac_Header"\" = x"yes"
then : then :
@ -281,14 +293,14 @@ if test "x$mach_interface_list" = x; then
as_fn_error $? "what manner of Mach is this?" "$LINENO" 5 as_fn_error $? "what manner of Mach is this?" "$LINENO" 5
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -302,13 +314,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -317,14 +330,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -332,35 +345,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -374,13 +376,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -389,14 +392,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -404,45 +407,48 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for host_page_size in mach_host.defs" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for host_page_size in mach_host.defs" >&5
printf %s "checking for host_page_size in mach_host.defs... " >&6; } printf %s "checking for host_page_size in mach_host.defs... " >&6; }
if test ${libc_cv_mach_host_page_size+y} if test ${libc_cv_mach_host_page_size+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <mach/mach_host.defs> #include <mach/mach_host.defs>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "host_page_size" >/dev/null 2>&1 $EGREP_TRADITIONAL "host_page_size" >/dev/null 2>&1
then : then :
libc_cv_mach_host_page_size=yes libc_cv_mach_host_page_size=yes
else $as_nop else case e in #(
libc_cv_mach_host_page_size=no e) libc_cv_mach_host_page_size=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_host_page_size" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_host_page_size" >&5
printf "%s\n" "$libc_cv_mach_host_page_size" >&6; } printf "%s\n" "$libc_cv_mach_host_page_size" >&6; }
@ -455,13 +461,14 @@ ac_fn_c_check_header_preproc "$LINENO" "mach/machine/ndr_def.h" "ac_cv_header_ma
if test "x$ac_cv_header_mach_machine_ndr_def_h" = xyes if test "x$ac_cv_header_mach_machine_ndr_def_h" = xyes
then : then :
DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'" DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'"
else $as_nop else case e in #(
ac_fn_c_check_header_preproc "$LINENO" "machine/ndr_def.h" "ac_cv_header_machine_ndr_def_h" e) ac_fn_c_check_header_preproc "$LINENO" "machine/ndr_def.h" "ac_cv_header_machine_ndr_def_h"
if test "x$ac_cv_header_machine_ndr_def_h" = xyes if test "x$ac_cv_header_machine_ndr_def_h" = xyes
then : then :
DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'" DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'"
fi fi
;;
esac
fi fi
@ -470,21 +477,23 @@ printf %s "checking for i386_io_perm_modify in mach_i386.defs... " >&6; }
if test ${libc_cv_mach_i386_ioports+y} if test ${libc_cv_mach_i386_ioports+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <mach/machine/mach_i386.defs> #include <mach/machine/mach_i386.defs>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "i386_io_perm_modify" >/dev/null 2>&1 $EGREP_TRADITIONAL "i386_io_perm_modify" >/dev/null 2>&1
then : then :
libc_cv_mach_i386_ioports=yes libc_cv_mach_i386_ioports=yes
else $as_nop else case e in #(
libc_cv_mach_i386_ioports=no e) libc_cv_mach_i386_ioports=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_ioports" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_ioports" >&5
printf "%s\n" "$libc_cv_mach_i386_ioports" >&6; } printf "%s\n" "$libc_cv_mach_i386_ioports" >&6; }
@ -498,21 +507,23 @@ printf %s "checking for i386_set_gdt in mach_i386.defs... " >&6; }
if test ${libc_cv_mach_i386_gdt+y} if test ${libc_cv_mach_i386_gdt+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <mach/machine/mach_i386.defs> #include <mach/machine/mach_i386.defs>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "i386_set_gdt" >/dev/null 2>&1 $EGREP_TRADITIONAL "i386_set_gdt" >/dev/null 2>&1
then : then :
libc_cv_mach_i386_gdt=yes libc_cv_mach_i386_gdt=yes
else $as_nop else case e in #(
libc_cv_mach_i386_gdt=no e) libc_cv_mach_i386_gdt=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_gdt" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_gdt" >&5
printf "%s\n" "$libc_cv_mach_i386_gdt" >&6; } printf "%s\n" "$libc_cv_mach_i386_gdt" >&6; }

View File

@ -15,8 +15,8 @@ printf %s "checking Hurd header version... " >&6; }
if test ${libc_cv_hurd_version+y} if test ${libc_cv_hurd_version+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <hurd/version.h> #include <hurd/version.h>
int int
@ -34,10 +34,12 @@ _ACEOF
if ac_fn_c_try_cpp "$LINENO" if ac_fn_c_try_cpp "$LINENO"
then : then :
libc_cv_hurd_version=ok libc_cv_hurd_version=ok
else $as_nop else case e in #(
libc_cv_hurd_version=bad e) libc_cv_hurd_version=bad ;;
esac
fi fi
rm -f conftest.err conftest.i conftest.$ac_ext rm -f conftest.err conftest.i conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5
printf "%s\n" "$libc_cv_hurd_version" >&6; } printf "%s\n" "$libc_cv_hurd_version" >&6; }
@ -47,15 +49,14 @@ fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 printf %s "checking for egrep -e... " >&6; }
printf %s "checking for grep that handles long lines and -e... " >&6; } if test ${ac_cv_path_EGREP_TRADITIONAL+y}
if test ${ac_cv_path_GREP+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -69,13 +70,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -84,14 +86,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -99,35 +101,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -141,13 +132,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -156,14 +148,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -171,45 +163,48 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc_getchildren_rusage in process.defs" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc_getchildren_rusage in process.defs" >&5
printf %s "checking for proc_getchildren_rusage in process.defs... " >&6; } printf %s "checking for proc_getchildren_rusage in process.defs... " >&6; }
if test ${libc_cv_hurd_rpc_proc_getchildren_rusage+y} if test ${libc_cv_hurd_rpc_proc_getchildren_rusage+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <hurd/process.defs> #include <hurd/process.defs>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "proc_getchildren_rusage" >/dev/null 2>&1 $EGREP_TRADITIONAL "proc_getchildren_rusage" >/dev/null 2>&1
then : then :
libc_cv_hurd_rpc_proc_getchildren_rusage=yes libc_cv_hurd_rpc_proc_getchildren_rusage=yes
else $as_nop else case e in #(
libc_cv_hurd_rpc_proc_getchildren_rusage=no e) libc_cv_hurd_rpc_proc_getchildren_rusage=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_rpc_proc_getchildren_rusage" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_rpc_proc_getchildren_rusage" >&5
printf "%s\n" "$libc_cv_hurd_rpc_proc_getchildren_rusage" >&6; } printf "%s\n" "$libc_cv_hurd_rpc_proc_getchildren_rusage" >&6; }

120
sysdeps/mips/configure vendored
View File

@ -6,14 +6,14 @@ printf "%s\n" "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -27,13 +27,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -99,13 +89,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -129,32 +120,33 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5
printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; } printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; }
if test ${libc_cv_mips_nan2008+y} if test ${libc_cv_mips_nan2008+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
dnl dnl
#ifdef __mips_nan2008 #ifdef __mips_nan2008
@ -162,14 +154,16 @@ yes
#endif #endif
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_mips_nan2008=yes libc_cv_mips_nan2008=yes
else $as_nop else case e in #(
libc_cv_mips_nan2008=no e) libc_cv_mips_nan2008=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5
printf "%s\n" "$libc_cv_mips_nan2008" >&6; } printf "%s\n" "$libc_cv_mips_nan2008" >&6; }

View File

@ -4,14 +4,14 @@
# Nios II big endian is not yet supported. # Nios II big endian is not yet supported.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -25,13 +25,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -40,14 +41,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -55,35 +56,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -97,13 +87,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -112,14 +103,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -127,32 +118,33 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
printf %s "checking for big endian... " >&6; } printf %s "checking for big endian... " >&6; }
if test ${libc_cv_nios2_be+y} if test ${libc_cv_nios2_be+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#ifdef __nios2_big_endian__ #ifdef __nios2_big_endian__
yes yes
@ -160,14 +152,16 @@ else $as_nop
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_nios2_be=yes libc_cv_nios2_be=yes
else $as_nop else case e in #(
libc_cv_nios2_be=no e) libc_cv_nios2_be=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_nios2_be" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_nios2_be" >&5
printf "%s\n" "$libc_cv_nios2_be" >&6; } printf "%s\n" "$libc_cv_nios2_be" >&6; }

View File

@ -7,8 +7,8 @@ printf %s "checking for fcfid use... " >&6; }
if test ${libc_cv_ppc_fcfid+y} if test ${libc_cv_ppc_fcfid+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
echo 'double foo (int x) { return (double) x; }' > conftest.c e) echo 'double foo (int x) { return (double) x; }' > conftest.c
libc_cv_ppc_fcfid=no libc_cv_ppc_fcfid=no
if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
@ -20,7 +20,8 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5'
libc_cv_ppc_fcfid=yes libc_cv_ppc_fcfid=yes
fi fi
fi fi
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fcfid" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fcfid" >&5
printf "%s\n" "$libc_cv_ppc_fcfid" >&6; } printf "%s\n" "$libc_cv_ppc_fcfid" >&6; }
@ -35,8 +36,8 @@ printf %s "checking for fctidz use... " >&6; }
if test ${libc_cv_ppc_fctidz+y} if test ${libc_cv_ppc_fctidz+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c e) echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c
libc_cv_ppc_fctidz=no libc_cv_ppc_fctidz=no
if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
@ -48,7 +49,8 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5'
libc_cv_ppc_fctidz=yes libc_cv_ppc_fctidz=yes
fi fi
fi fi
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fctidz" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fctidz" >&5
printf "%s\n" "$libc_cv_ppc_fctidz" >&6; } printf "%s\n" "$libc_cv_ppc_fctidz" >&6; }

View File

@ -9,8 +9,8 @@ printf %s "checking for support for overlapping .opd entries... " >&6; }
if test ${libc_cv_overlapping_opd+y} if test ${libc_cv_overlapping_opd+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
libc_cv_overlapping_opd=no e) libc_cv_overlapping_opd=no
echo 'void foo (void) {}' > conftest.c echo 'void foo (void) {}' > conftest.c
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $libc_cv_cc_submachine -S conftest.c -o conftest.s 1>&5' if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $libc_cv_cc_submachine -S conftest.c -o conftest.s 1>&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
@ -27,7 +27,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $libc_cv_cc_submachine -S conftest.c -o
fi fi
fi fi
rm -f conftest.c conftest.s rm -f conftest.c conftest.s
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_overlapping_opd" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_overlapping_opd" >&5
printf "%s\n" "$libc_cv_overlapping_opd" >&6; } printf "%s\n" "$libc_cv_overlapping_opd" >&6; }
@ -45,8 +46,8 @@ printf %s "checking if the compiler supports @notoc... " >&6; }
if test ${libc_cv_ppc64_notoc+y} if test ${libc_cv_ppc64_notoc+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
int bar (void); int bar (void);
int foo (void) { return bar () + 1; } int foo (void) { return bar () + 1; }
EOF EOF
@ -66,7 +67,8 @@ EOF
then then
libc_cv_ppc64_notoc=yes libc_cv_ppc64_notoc=yes
fi fi
rm -rf conftest.* rm -rf conftest.* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_notoc" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_notoc" >&5
printf "%s\n" "$libc_cv_ppc64_notoc" >&6; } printf "%s\n" "$libc_cv_ppc64_notoc" >&6; }

View File

@ -9,8 +9,8 @@ printf %s "checking if the target machine is at least POWER8... " >&6; }
if test ${libc_cv_target_power8_ok+y} if test ${libc_cv_target_power8_ok+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -22,10 +22,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_target_power8_ok=yes libc_cv_target_power8_ok=yes
else $as_nop else case e in #(
libc_cv_target_power8_ok=no e) libc_cv_target_power8_ok=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5
printf "%s\n" "$libc_cv_target_power8_ok" >&6; } printf "%s\n" "$libc_cv_target_power8_ok" >&6; }
@ -42,8 +44,8 @@ printf %s "checking if the compiler supports -mno-gnu-attribute... " >&6; }
if test ${libc_cv_no_gnu_attr_ok+y} if test ${libc_cv_no_gnu_attr_ok+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -52,10 +54,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_no_gnu_attr_ok=yes libc_cv_no_gnu_attr_ok=yes
else $as_nop else case e in #(
libc_cv_no_gnu_attr_ok=no e) libc_cv_no_gnu_attr_ok=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_no_gnu_attr_ok" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_no_gnu_attr_ok" >&5
printf "%s\n" "$libc_cv_no_gnu_attr_ok" >&6; } printf "%s\n" "$libc_cv_no_gnu_attr_ok" >&6; }
@ -70,8 +74,8 @@ printf %s "checking if $CC compiles signbit with 128-bit floating point type...
if test ${libc_cv_compiler_powerpc64le_ice+y} if test ${libc_cv_compiler_powerpc64le_ice+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
save_CFLAGS="$CFLAGS" e) save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -mabi=ieeelongdouble -Wno-psabi" CFLAGS="$CFLAGS -mabi=ieeelongdouble -Wno-psabi"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -86,11 +90,13 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_compiler_powerpc64le_ice=yes libc_cv_compiler_powerpc64le_ice=yes
else $as_nop else case e in #(
libc_cv_compiler_powerpc64le_ice=no e) libc_cv_compiler_powerpc64le_ice=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS="$save_CFLAGS" CFLAGS="$save_CFLAGS" ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5
printf "%s\n" "$libc_cv_compiler_powerpc64le_ice" >&6; } printf "%s\n" "$libc_cv_compiler_powerpc64le_ice" >&6; }
@ -104,8 +110,8 @@ printf %s "checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-
if test ${libc_cv_compiler_powerpc64le_ldbl128_mabi+y} if test ${libc_cv_compiler_powerpc64le_ldbl128_mabi+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
save_CFLAGS="$CFLAGS" e) save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -mabi=ieeelongdouble -mlong-double-128" CFLAGS="$CFLAGS -mabi=ieeelongdouble -mlong-double-128"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -116,11 +122,13 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_compiler_powerpc64le_ldbl128_mabi=yes libc_cv_compiler_powerpc64le_ldbl128_mabi=yes
else $as_nop else case e in #(
libc_cv_compiler_powerpc64le_ldbl128_mabi=no e) libc_cv_compiler_powerpc64le_ldbl128_mabi=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS="$save_CFLAGS" CFLAGS="$save_CFLAGS" ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ldbl128_mabi" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ldbl128_mabi" >&5
printf "%s\n" "$libc_cv_compiler_powerpc64le_ldbl128_mabi" >&6; } printf "%s\n" "$libc_cv_compiler_powerpc64le_ldbl128_mabi" >&6; }
@ -138,8 +146,8 @@ printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_OBJCOPY+y} if test ${ac_cv_prog_OBJCOPY+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -n "$OBJCOPY"; then e) if test -n "$OBJCOPY"; then
ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
else else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@ -161,7 +169,8 @@ done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
fi fi ;;
esac
fi fi
OBJCOPY=$ac_cv_prog_OBJCOPY OBJCOPY=$ac_cv_prog_OBJCOPY
if test -n "$OBJCOPY"; then if test -n "$OBJCOPY"; then

View File

@ -8,8 +8,8 @@ printf %s "checking if the compiler supports -mcpu=power10... " >&6; }
if test ${libc_cv_mcpu_power10+y} if test ${libc_cv_mcpu_power10+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -18,10 +18,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_mcpu_power10=yes libc_cv_mcpu_power10=yes
else $as_nop else case e in #(
libc_cv_mcpu_power10=no e) libc_cv_mcpu_power10=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mcpu_power10" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mcpu_power10" >&5
printf "%s\n" "$libc_cv_mcpu_power10" >&6; } printf "%s\n" "$libc_cv_mcpu_power10" >&6; }

View File

@ -7,8 +7,8 @@ printf %s "checking for R_RISCV_ALIGN linker relaxation support... " >&6; }
if test ${libc_cv_riscv_r_align+y} if test ${libc_cv_riscv_r_align+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.S <<EOF e) cat > conftest.S <<EOF
.align 3 .align 3
foo: foo:
li a0,42 li a0,42
@ -24,7 +24,8 @@ EOF
then then
libc_cv_riscv_r_align=yes libc_cv_riscv_r_align=yes
fi fi
rm -rf conftest.* rm -rf conftest.* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_riscv_r_align" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_riscv_r_align" >&5
printf "%s\n" "$libc_cv_riscv_r_align" >&6; } printf "%s\n" "$libc_cv_riscv_r_align" >&6; }
@ -36,8 +37,8 @@ printf %s "checking if the toolchain is sufficient to build static PIE on RISC-V
if test ${libc_cv_static_pie_on_riscv+y} if test ${libc_cv_static_pie_on_riscv+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat > conftest1.S <<\EOF cat > conftest1.S <<\EOF
.globl _start .globl _start
.type _start, @function .type _start, @function
@ -71,7 +72,8 @@ EOF
then then
libc_cv_static_pie_on_riscv=yes libc_cv_static_pie_on_riscv=yes
fi fi
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_riscv" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_riscv" >&5
printf "%s\n" "$libc_cv_static_pie_on_riscv" >&6; } printf "%s\n" "$libc_cv_static_pie_on_riscv" >&6; }
@ -80,3 +82,4 @@ if test "$libc_cv_static_pie_on_riscv" = yes; then
printf "%s\n" "#define SUPPORT_STATIC_PIE 1" >>confdefs.h printf "%s\n" "#define SUPPORT_STATIC_PIE 1" >>confdefs.h
fi fi

103
sysdeps/s390/configure vendored
View File

@ -6,8 +6,8 @@ printf %s "checking for __builtin_tbegin... " >&6; }
if test ${libc_cv_gcc_builtin_tbegin+y} if test ${libc_cv_gcc_builtin_tbegin+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<\EOF e) cat > conftest.c <<\EOF
#include <htmintrin.h> #include <htmintrin.h>
void testtransaction () void testtransaction ()
{ {
@ -28,7 +28,8 @@ then
else else
libc_cv_gcc_builtin_tbegin=no libc_cv_gcc_builtin_tbegin=no
fi fi
rm -f conftest* rm -f conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5
printf "%s\n" "$libc_cv_gcc_builtin_tbegin" >&6; } printf "%s\n" "$libc_cv_gcc_builtin_tbegin" >&6; }
@ -44,8 +45,8 @@ printf %s "checking for S390 vector instruction support... " >&6; }
if test ${libc_cv_asm_s390_vx+y} if test ${libc_cv_asm_s390_vx+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -61,10 +62,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_asm_s390_vx=yes libc_cv_asm_s390_vx=yes
else $as_nop else case e in #(
libc_cv_asm_s390_vx=no e) libc_cv_asm_s390_vx=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5
printf "%s\n" "$libc_cv_asm_s390_vx" >&6; } printf "%s\n" "$libc_cv_asm_s390_vx" >&6; }
@ -83,8 +86,8 @@ printf %s "checking for S390 vector support in gcc... " >&6; }
if test ${libc_cv_gcc_s390_vx+y} if test ${libc_cv_gcc_s390_vx+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -97,10 +100,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_gcc_s390_vx=yes libc_cv_gcc_s390_vx=yes
else $as_nop else case e in #(
libc_cv_gcc_s390_vx=no e) libc_cv_gcc_s390_vx=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5
printf "%s\n" "$libc_cv_gcc_s390_vx" >&6; } printf "%s\n" "$libc_cv_gcc_s390_vx" >&6; }
@ -116,8 +121,8 @@ printf %s "checking for S390 arch13 zarch instruction support... " >&6; }
if test ${libc_cv_asm_s390_arch13+y} if test ${libc_cv_asm_s390_arch13+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -135,10 +140,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_asm_s390_arch13=yes libc_cv_asm_s390_arch13=yes
else $as_nop else case e in #(
libc_cv_asm_s390_arch13=no e) libc_cv_asm_s390_arch13=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_arch13" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_arch13" >&5
printf "%s\n" "$libc_cv_asm_s390_arch13" >&6; } printf "%s\n" "$libc_cv_asm_s390_arch13" >&6; }
@ -154,8 +161,8 @@ printf %s "checking for S390 z10 zarch instruction support as default... " >&6;
if test ${libc_cv_asm_s390_min_z10_zarch+y} if test ${libc_cv_asm_s390_min_z10_zarch+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -173,10 +180,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_asm_s390_min_z10_zarch=yes libc_cv_asm_s390_min_z10_zarch=yes
else $as_nop else case e in #(
libc_cv_asm_s390_min_z10_zarch=no e) libc_cv_asm_s390_min_z10_zarch=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z10_zarch" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z10_zarch" >&5
printf "%s\n" "$libc_cv_asm_s390_min_z10_zarch" >&6; } printf "%s\n" "$libc_cv_asm_s390_min_z10_zarch" >&6; }
@ -192,8 +201,8 @@ printf %s "checking for S390 z196 zarch instruction support as default... " >&6;
if test ${libc_cv_asm_s390_min_z196_zarch+y} if test ${libc_cv_asm_s390_min_z196_zarch+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -208,10 +217,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_asm_s390_min_z196_zarch=yes libc_cv_asm_s390_min_z196_zarch=yes
else $as_nop else case e in #(
libc_cv_asm_s390_min_z196_zarch=no e) libc_cv_asm_s390_min_z196_zarch=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z196_zarch" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z196_zarch" >&5
printf "%s\n" "$libc_cv_asm_s390_min_z196_zarch" >&6; } printf "%s\n" "$libc_cv_asm_s390_min_z196_zarch" >&6; }
@ -227,8 +238,8 @@ printf %s "checking for S390 z13 zarch instruction support as default... " >&6;
if test ${libc_cv_asm_s390_min_z13_zarch+y} if test ${libc_cv_asm_s390_min_z13_zarch+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -245,10 +256,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_asm_s390_min_z13_zarch=yes libc_cv_asm_s390_min_z13_zarch=yes
else $as_nop else case e in #(
libc_cv_asm_s390_min_z13_zarch=no e) libc_cv_asm_s390_min_z13_zarch=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z13_zarch" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z13_zarch" >&5
printf "%s\n" "$libc_cv_asm_s390_min_z13_zarch" >&6; } printf "%s\n" "$libc_cv_asm_s390_min_z13_zarch" >&6; }
@ -264,8 +277,8 @@ printf %s "checking for S390 arch13 zarch instruction support as default... " >&
if test ${libc_cv_asm_s390_min_arch13_zarch+y} if test ${libc_cv_asm_s390_min_arch13_zarch+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -281,10 +294,12 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_asm_s390_min_arch13_zarch=yes libc_cv_asm_s390_min_arch13_zarch=yes
else $as_nop else case e in #(
libc_cv_asm_s390_min_arch13_zarch=no e) libc_cv_asm_s390_min_arch13_zarch=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_arch13_zarch" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_arch13_zarch" >&5
printf "%s\n" "$libc_cv_asm_s390_min_arch13_zarch" >&6; } printf "%s\n" "$libc_cv_asm_s390_min_arch13_zarch" >&6; }
@ -301,8 +316,8 @@ printf %s "checking if $CC is sufficient to build libc on s390x... " >&6; }
if test ${libc_cv_compiler_ok_on_s390x+y} if test ${libc_cv_compiler_ok_on_s390x+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -321,10 +336,12 @@ _ACEOF
if ac_fn_c_try_cpp "$LINENO" if ac_fn_c_try_cpp "$LINENO"
then : then :
libc_cv_compiler_ok_on_s390x=yes libc_cv_compiler_ok_on_s390x=yes
else $as_nop else case e in #(
libc_cv_compiler_ok_on_s390x=no e) libc_cv_compiler_ok_on_s390x=no ;;
esac
fi fi
rm -f conftest.err conftest.i conftest.$ac_ext rm -f conftest.err conftest.i conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok_on_s390x" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok_on_s390x" >&5
printf "%s\n" "$libc_cv_compiler_ok_on_s390x" >&6; } printf "%s\n" "$libc_cv_compiler_ok_on_s390x" >&6; }

View File

@ -10,8 +10,8 @@ if { as_var=\
libc_cv_s390x_staticpie_req_runtime; eval test \${$as_var+y}; } libc_cv_s390x_staticpie_req_runtime; eval test \${$as_var+y}; }
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest1.c <<EOF e) cat > conftest1.c <<EOF
__thread int * foo; __thread int * foo;
void void
@ -77,7 +77,8 @@ EOF
then then
libc_cv_s390x_staticpie_req_runtime=yes libc_cv_s390x_staticpie_req_runtime=yes
fi fi
rm -rf conftest.* rm -rf conftest.* ;;
esac
fi fi
eval ac_res=\$\ eval ac_res=\$\
libc_cv_s390x_staticpie_req_runtime libc_cv_s390x_staticpie_req_runtime

View File

@ -4,14 +4,14 @@
# Test if compiler targets at least sparcv8. # Test if compiler targets at least sparcv8.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -25,13 +25,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -40,14 +41,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -55,35 +56,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -97,13 +87,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -112,14 +103,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -127,32 +118,33 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for at least sparcv8 support" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for at least sparcv8 support" >&5
printf %s "checking for at least sparcv8 support... " >&6; } printf %s "checking for at least sparcv8 support... " >&6; }
if test ${libc_cv_sparcv8+y} if test ${libc_cv_sparcv8+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if defined (__sparc_v8__) || defined (__sparc_v9__) #if defined (__sparc_v8__) || defined (__sparc_v9__)
yes yes
@ -160,14 +152,16 @@ else $as_nop
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_sparcv8=yes libc_cv_sparcv8=yes
else $as_nop else case e in #(
libc_cv_sparcv8=no e) libc_cv_sparcv8=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparcv8" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparcv8" >&5
printf "%s\n" "$libc_cv_sparcv8" >&6; } printf "%s\n" "$libc_cv_sparcv8" >&6; }
@ -183,8 +177,8 @@ printf %s "checking for external libatomic calls... " >&6; }
if test ${libc_cv_cas_uses_libatomic+y} if test ${libc_cv_cas_uses_libatomic+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
_Bool foo (int *ptr, int *expected, int desired) _Bool foo (int *ptr, int *expected, int desired)
{ {
return __atomic_compare_exchange_n (ptr, expected, desired, 0, return __atomic_compare_exchange_n (ptr, expected, desired, 0,
@ -203,7 +197,8 @@ EOF
fi fi
fi fi
rm -f conftest.c conftest.s rm -f conftest.c conftest.s
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cas_uses_libatomic" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cas_uses_libatomic" >&5
printf "%s\n" "$libc_cv_cas_uses_libatomic" >&6; } printf "%s\n" "$libc_cv_cas_uses_libatomic" >&6; }

View File

@ -12,8 +12,8 @@ printf %s "checking installed Linux kernel header files... " >&6; }
if test ${libc_cv_linux320+y} if test ${libc_cv_linux320+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <linux/version.h> #include <linux/version.h>
#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < (3 *65536+ 2 *256+ 0) /* 3.2.0 */ #if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < (3 *65536+ 2 *256+ 0) /* 3.2.0 */
@ -30,10 +30,12 @@ _ACEOF
if ac_fn_c_try_cpp "$LINENO" if ac_fn_c_try_cpp "$LINENO"
then : then :
libc_cv_linux320='3.2.0 or later' libc_cv_linux320='3.2.0 or later'
else $as_nop else case e in #(
libc_cv_linux320='missing or too old!' e) libc_cv_linux320='missing or too old!' ;;
esac
fi fi
rm -f conftest.err conftest.i conftest.$ac_ext rm -f conftest.err conftest.i conftest.$ac_ext ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_linux320" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_linux320" >&5
printf "%s\n" "$libc_cv_linux320" >&6; } printf "%s\n" "$libc_cv_linux320" >&6; }
@ -91,8 +93,9 @@ _ACEOF
if ac_fn_c_try_cpp "$LINENO" if ac_fn_c_try_cpp "$LINENO"
then : then :
libc_minimum_kernel=ok libc_minimum_kernel=ok
else $as_nop else case e in #(
libc_minimum_kernel='too old!' e) libc_minimum_kernel='too old!' ;;
esac
fi fi
rm -f conftest.err conftest.i conftest.$ac_ext rm -f conftest.err conftest.i conftest.$ac_ext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_minimum_kernel" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_minimum_kernel" >&5

View File

@ -6,14 +6,14 @@ arch_minimum_kernel=5.19.0
libc_cv_loongarch_int_abi=no libc_cv_loongarch_int_abi=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -27,13 +27,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -99,13 +89,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -129,24 +120,25 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -154,7 +146,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "4 8 8" >/dev/null 2>&1 $EGREP_TRADITIONAL "4 8 8" >/dev/null 2>&1
then : then :
libc_cv_loongarch_int_abi=lp64 libc_cv_loongarch_int_abi=lp64
fi fi
@ -173,7 +165,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_loongarch_float_abi=d libc_cv_loongarch_float_abi=d
fi fi
@ -187,7 +179,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_loongarch_float_abi=s libc_cv_loongarch_float_abi=s
fi fi

View File

@ -19,8 +19,8 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_abi=o32 libc_mips_abi=o32
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if (_MIPS_SIM != _ABIN32) #if (_MIPS_SIM != _ABIN32)
@ -37,8 +37,8 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_abi=n32 libc_mips_abi=n32
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if (_MIPS_SIM != _ABI64) #if (_MIPS_SIM != _ABI64)
@ -56,9 +56,11 @@ if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_abi=n64 libc_mips_abi=n64
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
@ -83,8 +85,8 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_float=soft libc_mips_float=soft
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if !defined(__mips_hard_float) #if !defined(__mips_hard_float)
@ -102,7 +104,8 @@ if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_float=hard libc_mips_float=hard
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
@ -148,8 +151,8 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_o32_fp=32 libc_mips_o32_fp=32
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if (__mips_fpr != 0) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16) #if (__mips_fpr != 0) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16)
@ -166,8 +169,8 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_o32_fp=xx libc_mips_o32_fp=xx
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if (__mips_fpr != 0) #if (__mips_fpr != 0)
@ -184,8 +187,8 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_o32_fp=xxo libc_mips_o32_fp=xxo
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if (__mips_fpr != 64) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16) #if (__mips_fpr != 64) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16)
@ -202,8 +205,8 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_o32_fp=64a libc_mips_o32_fp=64a
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if (__mips_fpr != 64) #if (__mips_fpr != 64)
@ -221,13 +224,17 @@ if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_o32_fp=64 libc_mips_o32_fp=64
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi fi
@ -241,8 +248,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
test $ac_status = 0; }; } test $ac_status = 0; }; }
then : then :
libc_cv_mips_fp64=yes libc_cv_mips_fp64=yes
else $as_nop else case e in #(
libc_cv_mips_fp64=no e) libc_cv_mips_fp64=no ;;
esac
fi fi
if { ac_try='${CC-cc} -Werror -modd-spreg -xc /dev/null -S -o /dev/null' if { ac_try='${CC-cc} -Werror -modd-spreg -xc /dev/null -S -o /dev/null'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
@ -252,8 +260,9 @@ fi
test $ac_status = 0; }; } test $ac_status = 0; }; }
then : then :
libc_cv_mips_modd_spreg=yes libc_cv_mips_modd_spreg=yes
else $as_nop else case e in #(
libc_cv_mips_modd_spreg=no e) libc_cv_mips_modd_spreg=no ;;
esac
fi fi
fi fi
config_vars="$config_vars config_vars="$config_vars
@ -281,22 +290,23 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_mips_mode_switch=yes libc_mips_mode_switch=yes
else $as_nop else case e in #(
libc_mips_mode_switch=no e) libc_mips_mode_switch=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
config_vars="$config_vars config_vars="$config_vars
mips-mode-switch = ${libc_mips_mode_switch}" mips-mode-switch = ${libc_mips_mode_switch}"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -310,13 +320,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -325,14 +336,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -340,35 +351,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -382,13 +382,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -397,14 +398,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -412,32 +413,33 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5
printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; } printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; }
if test ${libc_cv_mips_nan2008+y} if test ${libc_cv_mips_nan2008+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
dnl dnl
#ifdef __mips_nan2008 #ifdef __mips_nan2008
@ -445,14 +447,16 @@ yes
#endif #endif
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_mips_nan2008=yes libc_cv_mips_nan2008=yes
else $as_nop else case e in #(
libc_cv_mips_nan2008=no e) libc_cv_mips_nan2008=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5
printf "%s\n" "$libc_cv_mips_nan2008" >&6; } printf "%s\n" "$libc_cv_mips_nan2008" >&6; }
@ -515,8 +519,8 @@ printf %s "checking whether the compiler must use executable stack... " >&6; }
if test ${libc_cv_mips_force_execstack+y} if test ${libc_cv_mips_force_execstack+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
libc_cv_mips_force_execstack=no e) libc_cv_mips_force_execstack=no
if test $libc_mips_float = hard; then if test $libc_mips_float = hard; then
if test -n "$minimum_kernel"; then if test -n "$minimum_kernel"; then
@ -528,7 +532,8 @@ else $as_nop
else else
libc_cv_mips_force_execstack=yes libc_cv_mips_force_execstack=yes
fi fi
fi fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_force_execstack" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_force_execstack" >&5
printf "%s\n" "$libc_cv_mips_force_execstack" >&6; } printf "%s\n" "$libc_cv_mips_force_execstack" >&6; }

View File

@ -7,8 +7,8 @@ printf %s "checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended form
if test ${libc_cv_mlong_double_128ibm+y} if test ${libc_cv_mlong_double_128ibm+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
save_CFLAGS="$CFLAGS" e) save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -mlong-double-128" CFLAGS="$CFLAGS -mlong-double-128"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -28,11 +28,13 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_mlong_double_128ibm=yes libc_cv_mlong_double_128ibm=yes
else $as_nop else case e in #(
libc_cv_mlong_double_128ibm=no e) libc_cv_mlong_double_128ibm=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS="$save_CFLAGS" CFLAGS="$save_CFLAGS" ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128ibm" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128ibm" >&5
printf "%s\n" "$libc_cv_mlong_double_128ibm" >&6; } printf "%s\n" "$libc_cv_mlong_double_128ibm" >&6; }
@ -43,8 +45,8 @@ printf %s "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... " >&6; }
if test ${libc_cv_mabi_ibmlongdouble+y} if test ${libc_cv_mabi_ibmlongdouble+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
save_CFLAGS="$CFLAGS" e) save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble" CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -64,11 +66,13 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO" if ac_fn_c_try_compile "$LINENO"
then : then :
libc_cv_mabi_ibmlongdouble=yes libc_cv_mabi_ibmlongdouble=yes
else $as_nop else case e in #(
libc_cv_mabi_ibmlongdouble=no e) libc_cv_mabi_ibmlongdouble=no ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS="$save_CFLAGS" CFLAGS="$save_CFLAGS" ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mabi_ibmlongdouble" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mabi_ibmlongdouble" >&5
printf "%s\n" "$libc_cv_mabi_ibmlongdouble" >&6; } printf "%s\n" "$libc_cv_mabi_ibmlongdouble" >&6; }

View File

@ -17,14 +17,14 @@ esac
# Define default-abi according to compiler flags. # Define default-abi according to compiler flags.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -38,13 +38,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -53,14 +54,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -68,35 +69,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -110,13 +100,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -125,14 +116,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -140,32 +131,33 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the PowerPC64 ELFv2 ABI" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the PowerPC64 ELFv2 ABI" >&5
printf %s "checking whether the compiler is using the PowerPC64 ELFv2 ABI... " >&6; } printf %s "checking whether the compiler is using the PowerPC64 ELFv2 ABI... " >&6; }
if test ${libc_cv_ppc64_elfv2_abi+y} if test ${libc_cv_ppc64_elfv2_abi+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if _CALL_ELF == 2 #if _CALL_ELF == 2
yes yes
@ -173,14 +165,16 @@ else $as_nop
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_ppc64_elfv2_abi=yes libc_cv_ppc64_elfv2_abi=yes
else $as_nop else case e in #(
libc_cv_ppc64_elfv2_abi=no e) libc_cv_ppc64_elfv2_abi=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_elfv2_abi" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_elfv2_abi" >&5
printf "%s\n" "$libc_cv_ppc64_elfv2_abi" >&6; } printf "%s\n" "$libc_cv_ppc64_elfv2_abi" >&6; }
@ -199,8 +193,8 @@ printf %s "checking whether the compiler defines _CALL_ELF... " >&6; }
if test ${libc_cv_ppc64_def_call_elf+y} if test ${libc_cv_ppc64_def_call_elf+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#ifdef _CALL_ELF #ifdef _CALL_ELF
yes yes
@ -208,14 +202,16 @@ else $as_nop
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_ppc64_def_call_elf=yes libc_cv_ppc64_def_call_elf=yes
else $as_nop else case e in #(
libc_cv_ppc64_def_call_elf=no e) libc_cv_ppc64_def_call_elf=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_def_call_elf" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_def_call_elf" >&5
printf "%s\n" "$libc_cv_ppc64_def_call_elf" >&6; } printf "%s\n" "$libc_cv_ppc64_def_call_elf" >&6; }
@ -229,8 +225,8 @@ printf %s "checking the machine type to set minimum kernel version... " >&6; }
if test ${libc_cv_ppc64_le+y} if test ${libc_cv_ppc64_le+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat confdefs.h - <<_ACEOF >conftest.$ac_ext e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
yes yes
@ -238,14 +234,16 @@ else $as_nop
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
arch_minimum_kernel=3.10.0 arch_minimum_kernel=3.10.0
else $as_nop else case e in #(
libc_cv_ppc64_le=no e) libc_cv_ppc64_le=no ;;
esac
fi fi
rm -rf conftest* rm -rf conftest*
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_le" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_le" >&5
printf "%s\n" "$libc_cv_ppc64_le" >&6; } printf "%s\n" "$libc_cv_ppc64_le" >&6; }

View File

@ -6,14 +6,14 @@ arch_minimum_kernel=4.15.0
libc_cv_riscv_int_abi=no libc_cv_riscv_int_abi=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; } printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_GREP+y} if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if test -z "$GREP"; then e) if test -z "$EGREP_TRADITIONAL"; then
ac_path_GREP_found=false ac_path_EGREP_TRADITIONAL_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -27,13 +27,14 @@ do
for ac_prog in grep ggrep for ac_prog in grep ggrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_GREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_GREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_GREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_GREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 :
fi fi
else else
ac_cv_path_GREP=$GREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
fi if test "$ac_cv_path_EGREP_TRADITIONAL"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then : then :
printf %s "(cached) " >&6 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else $as_nop else case e in #(
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 e) if test -z "$EGREP_TRADITIONAL"; then
then ac_cv_path_EGREP="$GREP -E" ac_path_EGREP_TRADITIONAL_found=false
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST # Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
@ -99,13 +89,14 @@ do
for ac_prog in egrep for ac_prog in egrep
do do
for ac_exec_ext in '' $ac_executable_extensions; do for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
# Check for GNU $ac_path_EGREP # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP" --version 2>&1` in case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*) *GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*) *)
ac_count=0 ac_count=0
printf %s 0123456789 >"conftest.in" printf %s 0123456789 >"conftest.in"
@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in
cat "conftest.in" "conftest.in" >"conftest.tmp" cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in" mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl" cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl" printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
# Best one so far, save it but keep looking for a better one # Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP" ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
ac_path_EGREP_max=$ac_count ac_path_EGREP_TRADITIONAL_max=$ac_count
fi fi
# 10*(2^10) chars as input seems more than enough # 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break test $ac_count -gt 10 && break
@ -129,24 +120,25 @@ case `"$ac_path_EGREP" --version 2>&1` in
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac esac
$ac_path_EGREP_found && break 3 $ac_path_EGREP_TRADITIONAL_found && break 3
done done
done done
done done
IFS=$as_save_IFS IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi fi
else else
ac_cv_path_EGREP=$EGREP ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi fi
;;
fi esac
fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; } printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
EGREP="$ac_cv_path_EGREP" EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -154,7 +146,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "4 8 8" >/dev/null 2>&1 $EGREP_TRADITIONAL "4 8 8" >/dev/null 2>&1
then : then :
libc_cv_riscv_int_abi=lp64 libc_cv_riscv_int_abi=lp64
fi fi
@ -166,7 +158,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "4 4 4" >/dev/null 2>&1 $EGREP_TRADITIONAL "4 4 4" >/dev/null 2>&1
then : then :
libc_cv_riscv_int_abi=ilp32 libc_cv_riscv_int_abi=ilp32
fi fi
@ -189,7 +181,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_riscv_float_abi=d libc_cv_riscv_float_abi=d
fi fi
@ -203,7 +195,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
then : then :
libc_cv_riscv_float_abi= libc_cv_riscv_float_abi=
fi fi

28
sysdeps/x86/configure vendored
View File

@ -7,8 +7,8 @@ printf %s "checking for linker x86 ISA level support... " >&6; }
if test ${libc_cv_include_x86_isa_level+y} if test ${libc_cv_include_x86_isa_level+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest1.S <<EOF e) cat > conftest1.S <<EOF
#ifdef __LP64__ #ifdef __LP64__
# define P2ALIGN 3 # define P2ALIGN 3
#else #else
@ -70,7 +70,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -nostartfiles -nostdlib -r -o conftest c
libc_cv_include_x86_isa_level=yes libc_cv_include_x86_isa_level=yes
fi fi
fi fi
rm -f conftest* rm -f conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_include_x86_isa_level" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_include_x86_isa_level" >&5
printf "%s\n" "$libc_cv_include_x86_isa_level" >&6; } printf "%s\n" "$libc_cv_include_x86_isa_level" >&6; }
@ -82,8 +83,8 @@ printf %s "checking for LAHF/SAHF instruction support... " >&6; }
if test ${libc_cv_have_x86_lahf_sahf+y} if test ${libc_cv_have_x86_lahf_sahf+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
libc_cv_have_x86_lahf_sahf=no e) libc_cv_have_x86_lahf_sahf=no
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fverbose-asm -S -o - -x c /dev/null' if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fverbose-asm -S -o - -x c /dev/null'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
@ -91,7 +92,8 @@ else $as_nop
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; } | grep -qE '(-msahf\b|-march=x86-64-v)'; then test $ac_status = 0; }; } | grep -qE '(-msahf\b|-march=x86-64-v)'; then
libc_cv_have_x86_lahf_sahf=yes libc_cv_have_x86_lahf_sahf=yes
fi fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_lahf_sahf" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_lahf_sahf" >&5
printf "%s\n" "$libc_cv_have_x86_lahf_sahf" >&6; } printf "%s\n" "$libc_cv_have_x86_lahf_sahf" >&6; }
@ -105,8 +107,8 @@ printf %s "checking for MOVBE instruction support... " >&6; }
if test ${libc_cv_have_x86_movbe+y} if test ${libc_cv_have_x86_movbe+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
libc_cv_have_x86_movbe=no e) libc_cv_have_x86_movbe=no
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fverbose-asm -S -o - -x c /dev/null' if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fverbose-asm -S -o - -x c /dev/null'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
@ -114,7 +116,8 @@ else $as_nop
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; } | grep -qE '(-mmovbe\b|-march=x86-64-v([3-9]|[1-9][0-9]))'; then test $ac_status = 0; }; } | grep -qE '(-mmovbe\b|-march=x86-64-v([3-9]|[1-9][0-9]))'; then
libc_cv_have_x86_movbe=yes libc_cv_have_x86_movbe=yes
fi fi ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_movbe" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_movbe" >&5
printf "%s\n" "$libc_cv_have_x86_movbe" >&6; } printf "%s\n" "$libc_cv_have_x86_movbe" >&6; }
@ -130,8 +133,8 @@ printf %s "checking for ISA level support... " >&6; }
if test ${libc_cv_have_x86_isa_level+y} if test ${libc_cv_have_x86_isa_level+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
#include <sysdeps/x86/isa-level.h> #include <sysdeps/x86/isa-level.h>
#if MINIMUM_X86_ISA_LEVEL >= 4 #if MINIMUM_X86_ISA_LEVEL >= 4
libc_cv_have_x86_isa_level=4 libc_cv_have_x86_isa_level=4
@ -148,7 +151,8 @@ libc_cv_have_x86_isa_level=0
#endif #endif
EOF EOF
eval `${CC-cc} $CFLAGS $CPPFLAGS $ISAFLAG -I$srcdir -E conftest.c | grep libc_cv_have_x86_isa_level` eval `${CC-cc} $CFLAGS $CPPFLAGS $ISAFLAG -I$srcdir -E conftest.c | grep libc_cv_have_x86_isa_level`
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_isa_level" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_isa_level" >&5
printf "%s\n" "$libc_cv_have_x86_isa_level" >&6; } printf "%s\n" "$libc_cv_have_x86_isa_level" >&6; }

View File

@ -6,8 +6,8 @@ printf %s "checking -mprefer-vector-width=128... " >&6; }
if test ${libc_cv_cc_mprefer_vector_width+y} if test ${libc_cv_cc_mprefer_vector_width+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
if { ac_try='${CC-cc} -mprefer-vector-width=128 -xc /dev/null -S -o /dev/null' e) if { ac_try='${CC-cc} -mprefer-vector-width=128 -xc /dev/null -S -o /dev/null'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
@ -15,10 +15,12 @@ else $as_nop
test $ac_status = 0; }; } test $ac_status = 0; }; }
then : then :
libc_cv_cc_mprefer_vector_width=yes libc_cv_cc_mprefer_vector_width=yes
else $as_nop else case e in #(
libc_cv_cc_mprefer_vector_width=no e) libc_cv_cc_mprefer_vector_width=no ;;
esac
fi fi
;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_mprefer_vector_width" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_mprefer_vector_width" >&5
printf "%s\n" "$libc_cv_cc_mprefer_vector_width" >&6; } printf "%s\n" "$libc_cv_cc_mprefer_vector_width" >&6; }
@ -71,8 +73,8 @@ printf %s "checking whether CET can be enabled... " >&6; }
if test ${libc_cv_x86_cet_available+y} if test ${libc_cv_x86_cet_available+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
#if !defined __CET__ || __CET__ != 3 #if !defined __CET__ || __CET__ != 3
# error CET isn't available. # error CET isn't available.
#endif #endif
@ -87,7 +89,8 @@ EOF
else else
libc_cv_x86_cet_available=no libc_cv_x86_cet_available=no
fi fi
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5
printf "%s\n" "$libc_cv_x86_cet_available" >&6; } printf "%s\n" "$libc_cv_x86_cet_available" >&6; }
@ -102,8 +105,8 @@ printf %s "checking whether assembler supports CET... " >&6; }
if test ${libc_cv_x86_cet_as+y} if test ${libc_cv_x86_cet_as+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.s <<EOF e) cat > conftest.s <<EOF
incsspd %ecx incsspd %ecx
EOF EOF
if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5' if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5'
@ -116,7 +119,8 @@ EOF
else else
libc_cv_x86_cet_as=no libc_cv_x86_cet_as=no
fi fi
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5
printf "%s\n" "$libc_cv_x86_cet_as" >&6; } printf "%s\n" "$libc_cv_x86_cet_as" >&6; }
@ -140,8 +144,8 @@ printf %s "checking whether -mamx-tile works properly... " >&6; }
if test ${libc_cv_x86_have_amx_tile+y} if test ${libc_cv_x86_have_amx_tile+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
#include <x86intrin.h> #include <x86intrin.h>
EOF EOF
libc_cv_x86_have_amx_tile=no libc_cv_x86_have_amx_tile=no
@ -155,7 +159,8 @@ EOF
libc_cv_x86_have_amx_tile=yes libc_cv_x86_have_amx_tile=yes
fi fi
fi fi
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_have_amx_tile" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_have_amx_tile" >&5
printf "%s\n" "$libc_cv_x86_have_amx_tile" >&6; } printf "%s\n" "$libc_cv_x86_have_amx_tile" >&6; }
@ -168,8 +173,8 @@ printf %s "checking whether -mapxf is enabled... " >&6; }
if test ${libc_cv_x86_have_apx+y} if test ${libc_cv_x86_have_apx+y}
then : then :
printf %s "(cached) " >&6 printf %s "(cached) " >&6
else $as_nop else case e in #(
cat > conftest.c <<EOF e) cat > conftest.c <<EOF
#ifndef __APX_F__ #ifndef __APX_F__
# error APX isn't enabled # error APX isn't enabled
#endif #endif
@ -183,7 +188,8 @@ EOF
test $ac_status = 0; }; }; then test $ac_status = 0; }; }; then
libc_cv_x86_have_apx=yes libc_cv_x86_have_apx=yes
fi fi
rm -rf conftest* rm -rf conftest* ;;
esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_have_apx" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_have_apx" >&5
printf "%s\n" "$libc_cv_x86_have_apx" >&6; } printf "%s\n" "$libc_cv_x86_have_apx" >&6; }