2013-10-30 03:20:52 +00:00
|
|
|
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
2013-03-11 16:26:43 +00:00
|
|
|
# Local preconfigure fragment for sysdeps/arm
|
|
|
|
|
2005-05-24 06:12:39 +00:00
|
|
|
case "$machine" in
|
2005-10-10 15:29:32 +00:00
|
|
|
arm*)
|
2013-03-11 16:26:43 +00:00
|
|
|
case $config_os in
|
|
|
|
linux-gnueabi*)
|
2013-03-11 23:55:55 +00:00
|
|
|
# If the compiler enables unwind tables by default, this causes
|
|
|
|
# problems with undefined symbols in -nostdlib link tests. To
|
|
|
|
# avoid this, add -fno-unwind-tables here and remove it in
|
2013-10-30 03:20:52 +00:00
|
|
|
# sysdeps/unix/sysv/linux/arm/configure.ac after those tests have
|
2013-03-11 23:55:55 +00:00
|
|
|
# been run.
|
2013-03-26 20:53:16 +00:00
|
|
|
if test "${CFLAGS+set}" != "set"; then
|
2013-03-11 16:26:43 +00:00
|
|
|
CFLAGS="-g -O2"
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS -fno-unwind-tables"
|
|
|
|
;;
|
|
|
|
linux*)
|
|
|
|
as_fn_error $? "Old ABI no longer supported" "$LINENO" 5
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
base_machine=arm
|
|
|
|
# Lets ask the compiler which ARM family we've got
|
|
|
|
# Unfortunately it doesn't define any flags for implementations
|
|
|
|
# that you might pass to -mcpu or -mtune
|
|
|
|
# Note if you add patterns here you must ensure that
|
|
|
|
# an appropriate directory exists in sysdeps/arm
|
|
|
|
archcppflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
|
|
|
|
sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'`
|
2011-12-08 15:45:14 +00:00
|
|
|
|
2013-03-11 16:26:43 +00:00
|
|
|
case "x$archcppflag" in
|
|
|
|
x__ARM_ARCH_89*__)
|
|
|
|
machine=armv7
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for something newer than v7 - using v7" >&5
|
|
|
|
$as_echo "$as_me: Found compiler is configured for something newer than v7 - using v7" >&6;}
|
|
|
|
;;
|
2011-12-08 15:45:14 +00:00
|
|
|
|
2013-03-11 16:26:43 +00:00
|
|
|
x__ARM_ARCH_7A__)
|
|
|
|
machine=armv7
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
|
|
|
|
$as_echo "$as_me: Found compiler is configured for $machine" >&6;}
|
|
|
|
;;
|
2011-12-08 15:45:14 +00:00
|
|
|
|
2013-03-11 16:26:43 +00:00
|
|
|
x__ARM_ARCH_6T2__)
|
|
|
|
machine=armv6t2
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
|
|
|
|
$as_echo "$as_me: Found compiler is configured for $machine" >&6;}
|
|
|
|
;;
|
|
|
|
x__ARM_ARCH_6*__)
|
|
|
|
machine=armv6
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
|
|
|
|
$as_echo "$as_me: Found compiler is configured for $machine" >&6;}
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
machine=arm
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: arm/preconfigure: Did not find ARM architecture type; using default" >&5
|
|
|
|
$as_echo "$as_me: WARNING: arm/preconfigure: Did not find ARM architecture type; using default" >&2;}
|
|
|
|
;;
|
|
|
|
esac
|
2011-12-08 15:45:14 +00:00
|
|
|
|
2013-03-11 16:26:43 +00:00
|
|
|
machine=arm/$machine
|
2005-05-24 06:12:39 +00:00
|
|
|
esac
|
2014-05-09 12:53:56 +00:00
|
|
|
|
|
|
|
case "$machine" in
|
|
|
|
arm*)
|
|
|
|
# Parameters to allow auto-detection of -z relro.
|
|
|
|
libc_commonpagesize=0x1000
|
|
|
|
libc_relro_required=yes
|
|
|
|
;;
|
|
|
|
esac
|