aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-30 21:01:58 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-30 21:01:58 -0500
commiteca4255a1a6c3603e05c4f3ca9c0849f529657c3 (patch)
treed697a4d42fed0045460438cb14f667711ced4838 /sim/m68hc11/configure
parent356a418c5dbff10ae4a2afc599163c0a85385f07 (diff)
downloadgdb-eca4255a1a6c3603e05c4f3ca9c0849f529657c3.zip
gdb-eca4255a1a6c3603e05c4f3ca9c0849f529657c3.tar.gz
gdb-eca4255a1a6c3603e05c4f3ca9c0849f529657c3.tar.bz2
sim: cris/m68hc11: move default endian/alignment to configure
Diffstat (limited to 'sim/m68hc11/configure')
-rwxr-xr-xsim/m68hc11/configure52
1 files changed, 50 insertions, 2 deletions
diff --git a/sim/m68hc11/configure b/sim/m68hc11/configure
index 6870e8c..d7926d6 100755
--- a/sim/m68hc11/configure
+++ b/sim/m68hc11/configure
@@ -762,6 +762,7 @@ enable_sim_profile
with_pkgversion
with_bugurl
enable_sim_inline
+enable_sim_endian
enable_sim_alignment
enable_sim_hostendian
enable_werror
@@ -1416,6 +1417,8 @@ Optional Features:
Enable profiling flags
--enable-sim-inline=inlines
Specify which functions should be inlined
+ --enable-sim-endian=endian
+ Specify target byte endian orientation
--enable-sim-alignment=align
Specify strict, nonstrict or forced alignment of
memory accesses
@@ -12311,7 +12314,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12314 "configure"
+#line 12317 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12417,7 +12420,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12420 "configure"
+#line 12423 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12951,6 +12954,51 @@ else
fi
fi
+
+wire_endian="LITTLE_ENDIAN"
+default_endian=""
+# Check whether --enable-sim-endian was given.
+if test "${enable_sim_endian+set}" = set; then :
+ enableval=$enable_sim_endian; case "${enableval}" in
+ b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
+ l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
+ yes) if test x"$wire_endian" != x; then
+ sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
+ else
+ if test x"$default_endian" != x; then
+ sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
+ else
+ echo "No hard-wired endian for target $target" 1>&6
+ sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
+ fi
+ fi;;
+ no) if test x"$default_endian" != x; then
+ sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
+ else
+ if test x"$wire_endian" != x; then
+ sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
+ else
+ echo "No default endian for target $target" 1>&6
+ sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
+ fi
+ fi;;
+ *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
+esac
+if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
+ echo "Setting endian flags = $sim_endian" 6>&1
+fi
+else
+ if test x"$default_endian" != x; then
+ sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
+else
+ if test x"$wire_endian" != x; then
+ sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
+ else
+ sim_endian=
+ fi
+fi
+fi
+
wire_alignment="NONSTRICT_ALIGNMENT"
default_alignment=""