Blame sysdeps/arm/configure

Packit 6c4009
# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
Packit 6c4009
 # Local configure fragment for sysdeps/arm.
Packit 6c4009
Packit 6c4009
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
Packit 6c4009
Packit 6c4009
Packit 6c4009
# We check to see if the compiler and flags are
Packit 6c4009
# selecting the hard-float ABI and if they are then
Packit 6c4009
# we set libc_cv_arm_pcs_vfp to yes which causes
Packit 6c4009
# HAVE_ARM_PCS_VFP to be defined in config.h and
Packit 6c4009
# in include/libc-symbols.h and thus available to
Packit 6c4009
# shlib-versions to select the appropriate name for
Packit 6c4009
# the dynamic linker via %ifdef.
Packit 6c4009
Packit 6c4009
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Packit 6c4009
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Packit 6c4009
if ${ac_cv_path_GREP+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
  if test -z "$GREP"; then
Packit 6c4009
  ac_path_GREP_found=false
Packit 6c4009
  # Loop through the user's path and test for each of PROGNAME-LIST
Packit 6c4009
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Packit 6c4009
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Packit 6c4009
do
Packit 6c4009
  IFS=$as_save_IFS
Packit 6c4009
  test -z "$as_dir" && as_dir=.
Packit 6c4009
    for ac_prog in grep ggrep; do
Packit 6c4009
    for ac_exec_ext in '' $ac_executable_extensions; do
Packit 6c4009
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Packit 6c4009
      as_fn_executable_p "$ac_path_GREP" || continue
Packit 6c4009
# Check for GNU ac_path_GREP and select it if it is found.
Packit 6c4009
  # Check for GNU $ac_path_GREP
Packit 6c4009
case `"$ac_path_GREP" --version 2>&1` in
Packit 6c4009
*GNU*)
Packit 6c4009
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Packit 6c4009
*)
Packit 6c4009
  ac_count=0
Packit 6c4009
  $as_echo_n 0123456789 >"conftest.in"
Packit 6c4009
  while :
Packit 6c4009
  do
Packit 6c4009
    cat "conftest.in" "conftest.in" >"conftest.tmp"
Packit 6c4009
    mv "conftest.tmp" "conftest.in"
Packit 6c4009
    cp "conftest.in" "conftest.nl"
Packit 6c4009
    $as_echo 'GREP' >> "conftest.nl"
Packit 6c4009
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Packit 6c4009
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Packit 6c4009
    as_fn_arith $ac_count + 1 && ac_count=$as_val
Packit 6c4009
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
Packit 6c4009
      # Best one so far, save it but keep looking for a better one
Packit 6c4009
      ac_cv_path_GREP="$ac_path_GREP"
Packit 6c4009
      ac_path_GREP_max=$ac_count
Packit 6c4009
    fi
Packit 6c4009
    # 10*(2^10) chars as input seems more than enough
Packit 6c4009
    test $ac_count -gt 10 && break
Packit 6c4009
  done
Packit 6c4009
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Packit 6c4009
esac
Packit 6c4009
Packit 6c4009
      $ac_path_GREP_found && break 3
Packit 6c4009
    done
Packit 6c4009
  done
Packit 6c4009
  done
Packit 6c4009
IFS=$as_save_IFS
Packit 6c4009
  if test -z "$ac_cv_path_GREP"; then
Packit 6c4009
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Packit 6c4009
  fi
Packit 6c4009
else
Packit 6c4009
  ac_cv_path_GREP=$GREP
Packit 6c4009
fi
Packit 6c4009
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Packit 6c4009
$as_echo "$ac_cv_path_GREP" >&6; }
Packit 6c4009
 GREP="$ac_cv_path_GREP"
Packit 6c4009
Packit 6c4009
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Packit 6c4009
$as_echo_n "checking for egrep... " >&6; }
Packit 6c4009
if ${ac_cv_path_EGREP+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Packit 6c4009
   then ac_cv_path_EGREP="$GREP -E"
Packit 6c4009
   else
Packit 6c4009
     if test -z "$EGREP"; then
Packit 6c4009
  ac_path_EGREP_found=false
Packit 6c4009
  # Loop through the user's path and test for each of PROGNAME-LIST
Packit 6c4009
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Packit 6c4009
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Packit 6c4009
do
Packit 6c4009
  IFS=$as_save_IFS
Packit 6c4009
  test -z "$as_dir" && as_dir=.
Packit 6c4009
    for ac_prog in egrep; do
Packit 6c4009
    for ac_exec_ext in '' $ac_executable_extensions; do
Packit 6c4009
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Packit 6c4009
      as_fn_executable_p "$ac_path_EGREP" || continue
Packit 6c4009
# Check for GNU ac_path_EGREP and select it if it is found.
Packit 6c4009
  # Check for GNU $ac_path_EGREP
Packit 6c4009
case `"$ac_path_EGREP" --version 2>&1` in
Packit 6c4009
*GNU*)
Packit 6c4009
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Packit 6c4009
*)
Packit 6c4009
  ac_count=0
Packit 6c4009
  $as_echo_n 0123456789 >"conftest.in"
Packit 6c4009
  while :
Packit 6c4009
  do
Packit 6c4009
    cat "conftest.in" "conftest.in" >"conftest.tmp"
Packit 6c4009
    mv "conftest.tmp" "conftest.in"
Packit 6c4009
    cp "conftest.in" "conftest.nl"
Packit 6c4009
    $as_echo 'EGREP' >> "conftest.nl"
Packit 6c4009
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Packit 6c4009
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Packit 6c4009
    as_fn_arith $ac_count + 1 && ac_count=$as_val
Packit 6c4009
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Packit 6c4009
      # Best one so far, save it but keep looking for a better one
Packit 6c4009
      ac_cv_path_EGREP="$ac_path_EGREP"
Packit 6c4009
      ac_path_EGREP_max=$ac_count
Packit 6c4009
    fi
Packit 6c4009
    # 10*(2^10) chars as input seems more than enough
Packit 6c4009
    test $ac_count -gt 10 && break
Packit 6c4009
  done
Packit 6c4009
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Packit 6c4009
esac
Packit 6c4009
Packit 6c4009
      $ac_path_EGREP_found && break 3
Packit 6c4009
    done
Packit 6c4009
  done
Packit 6c4009
  done
Packit 6c4009
IFS=$as_save_IFS
Packit 6c4009
  if test -z "$ac_cv_path_EGREP"; then
Packit 6c4009
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Packit 6c4009
  fi
Packit 6c4009
else
Packit 6c4009
  ac_cv_path_EGREP=$EGREP
Packit 6c4009
fi
Packit 6c4009
Packit 6c4009
   fi
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Packit 6c4009
$as_echo "$ac_cv_path_EGREP" >&6; }
Packit 6c4009
 EGREP="$ac_cv_path_EGREP"
Packit 6c4009
Packit 6c4009
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the ARM hard-float ABI" >&5
Packit 6c4009
$as_echo_n "checking whether the compiler is using the ARM hard-float ABI... " >&6; }
Packit 6c4009
if ${libc_cv_arm_pcs_vfp+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Packit 6c4009
/* end confdefs.h.  */
Packit 6c4009
#ifdef __ARM_PCS_VFP
Packit 6c4009
		      yes
Packit 6c4009
		     #endif
Packit 6c4009
Packit 6c4009
_ACEOF
Packit 6c4009
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Packit 6c4009
  $EGREP "yes" >/dev/null 2>&1; then :
Packit 6c4009
  libc_cv_arm_pcs_vfp=yes
Packit 6c4009
else
Packit 6c4009
  libc_cv_arm_pcs_vfp=no
Packit 6c4009
fi
Packit 6c4009
rm -f conftest*
Packit 6c4009
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp" >&5
Packit 6c4009
$as_echo "$libc_cv_arm_pcs_vfp" >&6; }
Packit 6c4009
if test $libc_cv_arm_pcs_vfp = yes; then
Packit 6c4009
  $as_echo "#define HAVE_ARM_PCS_VFP 1" >>confdefs.h
Packit 6c4009
Packit 6c4009
  config_vars="$config_vars
Packit 6c4009
default-abi = hard"
Packit 6c4009
else
Packit 6c4009
  config_vars="$config_vars
Packit 6c4009
default-abi = soft"
Packit 6c4009
fi
Packit 6c4009
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PC-relative relocs in movw/movt work properly" >&5
Packit 6c4009
$as_echo_n "checking whether PC-relative relocs in movw/movt work properly... " >&6; }
Packit 6c4009
if ${libc_cv_arm_pcrel_movw+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
Packit 6c4009
cat > conftest.s <<\EOF
Packit 6c4009
	.syntax unified
Packit 6c4009
	.arm
Packit 6c4009
	.arch armv7-a
Packit 6c4009
Packit 6c4009
	.text
Packit 6c4009
	.globl foo
Packit 6c4009
	.type foo,%function
Packit 6c4009
foo:	movw r0, #:lower16:symbol - 1f - 8
Packit 6c4009
	movt r0, #:upper16:symbol - 1f - 8
Packit 6c4009
1:	add r0, pc
Packit 6c4009
	@ And now a case with a local symbol.
Packit 6c4009
	movw r0, #:lower16:3f - 2f - 8
Packit 6c4009
	movt r0, #:upper16:3f - 2f - 8
Packit 6c4009
2:	add r0, pc
Packit 6c4009
	bx lr
Packit 6c4009
Packit 6c4009
.data
Packit 6c4009
	.globl symbol
Packit 6c4009
	.hidden symbol
Packit 6c4009
symbol:	.long 23
Packit 6c4009
3:	.long 17
Packit 6c4009
EOF
Packit 6c4009
libc_cv_arm_pcrel_movw=no
Packit 6c4009
${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
Packit 6c4009
	 -nostartfiles -nostdlib -shared \
Packit 6c4009
	 -o conftest.so conftest.s 1>&5 2>&5 &&
Packit 6c4009
LC_ALL=C $READELF -dr conftest.so > conftest.dr 2>&5 &&
Packit 6c4009
{
Packit 6c4009
  cat conftest.dr 1>&5
Packit 6c4009
  fgrep 'TEXTREL
Packit 6c4009
R_ARM_NONE' conftest.dr > /dev/null || libc_cv_arm_pcrel_movw=yes
Packit 6c4009
}
Packit 6c4009
rm -f conftest*
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcrel_movw" >&5
Packit 6c4009
$as_echo "$libc_cv_arm_pcrel_movw" >&6; }
Packit 6c4009
if test $libc_cv_arm_pcrel_movw = yes; then
Packit 6c4009
  $as_echo "#define ARM_PCREL_MOVW_OK 1" >>confdefs.h
Packit 6c4009
Packit 6c4009
fi
Packit 6c4009
Packit 6c4009
# This was buggy in assemblers from GNU binutils versions before 2.25.1
Packit 6c4009
# (it's known to be broken in 2.24 and 2.25; see
Packit 6c4009
# https://sourceware.org/bugzilla/show_bug.cgi?id=18383).
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TPOFF relocs with addends are assembled correctly" >&5
Packit 6c4009
$as_echo_n "checking whether TPOFF relocs with addends are assembled correctly... " >&6; }
Packit 6c4009
if ${libc_cv_arm_tpoff_addend+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
Packit 6c4009
cat > conftest.s <<\EOF
Packit 6c4009
	.syntax unified
Packit 6c4009
	.arm
Packit 6c4009
	.arch armv7-a
Packit 6c4009
Packit 6c4009
	.text
Packit 6c4009
foo:
Packit 6c4009
	.word tbase(tpoff)+4
Packit 6c4009
Packit 6c4009
	.section .tdata,"awT",%progbits
Packit 6c4009
	.word -4
Packit 6c4009
tbase:	.word 0
Packit 6c4009
	.word 4
Packit 6c4009
EOF
Packit 6c4009
libc_cv_arm_tpoff_addend=no
Packit 6c4009
${CC-cc} -c $CFLAGS $CPPFLAGS \
Packit 6c4009
	 -o conftest.o conftest.s 1>&5 2>&5 &&
Packit 6c4009
LC_ALL=C $READELF -x.text conftest.o > conftest.x 2>&5 &&
Packit 6c4009
{
Packit 6c4009
  cat conftest.x 1>&5
Packit 6c4009
  $AWK 'BEGIN { result = 2 }
Packit 6c4009
$1 ~ /0x0+/ && $2 ~ /[0-9a-f]+/ {
Packit 6c4009
# Check for little-endian or big-endian encoding of 4 in the in-place addend.
Packit 6c4009
  result = ($2 == "04000000" || $2 == "00000004") ? 0 : 1
Packit 6c4009
}
Packit 6c4009
END { exit(result) }
Packit 6c4009
' conftest.x 2>&5 && libc_cv_arm_tpoff_addend=yes
Packit 6c4009
}
Packit 6c4009
rm -f conftest*
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_tpoff_addend" >&5
Packit 6c4009
$as_echo "$libc_cv_arm_tpoff_addend" >&6; }
Packit 6c4009
if test $libc_cv_arm_tpoff_addend = no; then
Packit 6c4009
  config_vars="$config_vars
Packit 6c4009
test-xfail-tst-tlsalign = yes"
Packit 6c4009
  config_vars="$config_vars
Packit 6c4009
test-xfail-tst-tlsalign-static = yes"
Packit 6c4009
fi
Packit 6c4009
Packit 6c4009
Packit 6c4009
libc_cv_gcc_unwind_find_fde=no
Packit 6c4009
Packit 6c4009
# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.ac.
Packit 6c4009
CFLAGS=${CFLAGS% -fno-unwind-tables}