aboutsummaryrefslogtreecommitdiff
path: root/libffi/configure
diff options
context:
space:
mode:
authorBradley Smith <brad@brad-smith.co.uk>2009-12-26 04:21:07 +0000
committerAnthony Green <green@gcc.gnu.org>2009-12-26 04:21:07 +0000
commit124f60ab29f46aefdf892a4fcf981e4e292eb08c (patch)
tree984389db502cb8627d3aa23e9674f5c9aefa6d7a /libffi/configure
parentf8b9b505f2700ba50e83636ba98d87c4e86c9790 (diff)
downloadgcc-124f60ab29f46aefdf892a4fcf981e4e292eb08c.zip
gcc-124f60ab29f46aefdf892a4fcf981e4e292eb08c.tar.gz
gcc-124f60ab29f46aefdf892a4fcf981e4e292eb08c.tar.bz2
avr32 libffi port
From-SVN: r155469
Diffstat (limited to 'libffi/configure')
-rwxr-xr-xlibffi/configure22
1 files changed, 20 insertions, 2 deletions
diff --git a/libffi/configure b/libffi/configure
index cdefd57..f8456c9 100755
--- a/libffi/configure
+++ b/libffi/configure
@@ -628,6 +628,8 @@ FRV_FALSE
FRV_TRUE
LIBFFI_CRIS_FALSE
LIBFFI_CRIS_TRUE
+AVR32_FALSE
+AVR32_TRUE
ARM_FALSE
ARM_TRUE
POWERPC_FREEBSD_FALSE
@@ -10771,7 +10773,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10774 "configure"
+#line 10776 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10877,7 +10879,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10880 "configure"
+#line 10882 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11329,6 +11331,10 @@ case "$host" in
TARGET=X86_64; TARGETDIR=x86
;;
+ avr32*-*-*)
+ TARGET=AVR32; TARGETDIR=avr32
+ ;;
+
cris-*-*)
TARGET=LIBFFI_CRIS; TARGETDIR=cris
;;
@@ -11563,6 +11569,14 @@ else
ARM_FALSE=
fi
+ if test x$TARGET = xAVR32; then
+ AVR32_TRUE=
+ AVR32_FALSE='#'
+else
+ AVR32_TRUE='#'
+ AVR32_FALSE=
+fi
+
if test x$TARGET = xLIBFFI_CRIS; then
LIBFFI_CRIS_TRUE=
LIBFFI_CRIS_FALSE='#'
@@ -12723,6 +12737,10 @@ if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
as_fn_error "conditional \"ARM\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
+ as_fn_error "conditional \"AVR32\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5