summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-10-10 00:00:05 -0700
committerKeith Packard <keithp@keithp.com>2013-10-10 00:01:26 -0700
commitd8d3835fedf9b7c4d203f321e72c2b086ebb3b97 (patch)
tree3a1dc1e645d3e2d83421c036765912714bcdde25 /configure.ac
parent7f6cbfac7c1965add91ebfc28ca3eac4561b4fb6 (diff)
altos: Use installed pdclib
Switch over to the installed pdclib everywhere Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 15 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index de344335..8024b7c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -242,22 +242,35 @@ AC_SUBST(ARM_CC)
if test "x$HAVE_ARM_CC" = "xyes"; then
save_CC="$CC"
save_CFLAGS="$CFLAGS"
+ save_LIBS="$LIBS"
CC="$ARM_CC"
CFLAGS="-mthumb -mcpu=cortex-m0"
+ LIBS="-ffreestanding -nostdlib"
AC_LANG_PUSH([C])
AC_MSG_CHECKING([if ]$ARM_CC[ supports cortex-m0])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int i;])],
[HAVE_ARM_M0_CC=yes],
[HAVE_ARM_M0_CC=no])
- AC_MSG_RESULT([$HAVE_ARM_M0])
+ AC_MSG_RESULT([$HAVE_ARM_M0_CC])
+
+ AC_CHECK_LIB(pdclib-cortex-m0,memcpy,
+ [],
+ [HAVE_ARM_M0_CC=no])
+
CFLAGS="-mthumb -mcpu=cortex-m3"
AC_MSG_CHECKING([if ]$ARM_CC[ supports cortex-m3])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int i;])],
[HAVE_ARM_M3_CC=yes],
[HAVE_ARM_M3_CC=no])
- AC_MSG_RESULT([$HAVE_ARM_M3])
+ AC_MSG_RESULT([$HAVE_ARM_M3_CC])
+
+ AC_CHECK_LIB(pdclib-cortex-m3,memcpy,
+ [],
+ [HAVE_ARM_M3_CC=no])
+
AC_LANG_POP([C])
+ LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
CC="$save_CC"
else