Blame sysdeps/aarch64/configure

Packit 6c4009
# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
Packit 6c4009
 # Local configure fragment for sysdeps/aarch64.
Packit 6c4009
Packit 6c4009
# We check to see if the compiler and flags are
Packit 6c4009
# selecting the big endian ABI and if they are then
Packit 6c4009
# we set libc_cv_aarch64_be to yes which causes
Packit 6c4009
# HAVE_AARCH64_BE 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 for big endian" >&5
Packit 6c4009
$as_echo_n "checking for big endian... " >&6; }
Packit 6c4009
if ${libc_cv_aarch64_be+:} 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 __AARCH64EB__
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_aarch64_be=yes
Packit 6c4009
else
Packit 6c4009
  libc_cv_aarch64_be=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_aarch64_be" >&5
Packit 6c4009
$as_echo "$libc_cv_aarch64_be" >&6; }
Packit 6c4009
if test $libc_cv_aarch64_be = yes; then
Packit 6c4009
  $as_echo "#define HAVE_AARCH64_BE 1" >>confdefs.h
Packit 6c4009
Packit 6c4009
  config_vars="$config_vars
Packit 6c4009
default-abi = lp64_be"
Packit 6c4009
else
Packit 6c4009
  config_vars="$config_vars
Packit 6c4009
default-abi = lp64"
Packit 6c4009
fi
Packit Service 399ab1
Packit Service 399ab1
# Check if binutils supports variant PCS symbols.
Packit Service 399ab1
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variant PCS support" >&5
Packit Service 399ab1
$as_echo_n "checking for variant PCS support... " >&6; }
Packit Service 399ab1
if ${libc_cv_aarch64_variant_pcs+:} false; then :
Packit Service 399ab1
  $as_echo_n "(cached) " >&6
Packit Service 399ab1
else
Packit Service 399ab1
    cat > conftest.S <
Packit Service 399ab1
.global foo
Packit Service 399ab1
.type foo, %function
Packit Service 399ab1
.variant_pcs foo
Packit Service 399ab1
foo:
Packit Service 399ab1
	ret
Packit Service 399ab1
.global bar
Packit Service 399ab1
.type bar, %function
Packit Service 399ab1
bar:
Packit Service 399ab1
	b foo
Packit Service 399ab1
EOF
Packit Service 399ab1
  libc_cv_aarch64_variant_pcs=no
Packit Service 399ab1
  if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles $no_ssp -shared -fPIC -o conftest.so conftest.S'
Packit Service 399ab1
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
Packit Service 399ab1
  (eval $ac_try) 2>&5
Packit Service 399ab1
  ac_status=$?
Packit Service 399ab1
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Packit Service 399ab1
  test $ac_status = 0; }; } \
Packit Service 399ab1
     && { ac_try='$READELF -dW conftest.so | grep -q AARCH64_VARIANT_PCS'
Packit Service 399ab1
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
Packit Service 399ab1
  (eval $ac_try) 2>&5
Packit Service 399ab1
  ac_status=$?
Packit Service 399ab1
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Packit Service 399ab1
  test $ac_status = 0; }; }
Packit Service 399ab1
  then
Packit Service 399ab1
    libc_cv_aarch64_variant_pcs=yes
Packit Service 399ab1
  fi
Packit Service 399ab1
  rm -rf conftest.*
Packit Service 399ab1
fi
Packit Service 399ab1
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_variant_pcs" >&5
Packit Service 399ab1
$as_echo "$libc_cv_aarch64_variant_pcs" >&6; }
Packit Service 399ab1
config_vars="$config_vars
Packit Service 399ab1
aarch64-variant-pcs = $libc_cv_aarch64_variant_pcs"