diff options
author | Chris Johns <chrisj@rtems.org> | 2014-10-26 18:09:41 -0700 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-10-31 11:04:15 +1100 |
commit | ae5fe7e6bca2874c5f1ef077204bb63124fb3db3 (patch) | |
tree | 90a6e9e7b414ed3713011267b1fee404b5f6093f /cpukit/configure.ac | |
parent | Added missing stm32f4xxxx_adc.h (diff) | |
download | rtems-ae5fe7e6bca2874c5f1ef077204bb63124fb3db3.tar.bz2 |
cpukit: Add libdl with the Runtime Loader (RTL) code.
This is a merge of the RTL project.
Diffstat (limited to 'cpukit/configure.ac')
-rw-r--r-- | cpukit/configure.ac | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cpukit/configure.ac b/cpukit/configure.ac index fcf3437a1b..b3c818c861 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -298,7 +298,7 @@ AC_ENABLE_MULTILIB([Makefile],[..]) AC_MSG_CHECKING([for assignable stdio]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( - [#include <stdio.h>], + [#include <stdio.h>], [stdin = fopen("/tmp", "r")])], [HAVE_ASSIGNABLE_STDIO=yes], [HAVE_ASSIGNABLE_STDIO=no]) @@ -322,7 +322,7 @@ AC_CHECK_SIZEOF([time_t]) AC_CHECK_SIZEOF([size_t]) -# FIXME: Mandatory in SUSv4, optional in SUSv3. +# FIXME: Mandatory in SUSv4, optional in SUSv3. # Not implemented in GCC/newlib, so far. AC_CHECK_DECLS([WORD_BIT],,,[#include <limits.h>]) AC_CHECK_DECLS([LONG_BIT],,,[#include <limits.h>]) @@ -372,6 +372,19 @@ AM_CONDITIONAL([RPCTOOLS],[test "$RPCGEN" = rpcgen \ && test -n "$AWK" \ && test "$enable_rpcgen" = yes]) +# Filter dynamic loading to only build for architectures that have +# reloc backends +AC_MSG_CHECKING([whether CPU supports libdl]) +case $RTEMS_CPU in + arm | bfin | h8300 | i386 | lm32 | m32r | m68k | mips | \ + moxie | nios2 | powerpc | sparc | v850) + HAVE_LIBDL=yes ;; + *) + HAVE_LIBDL=no ;; +esac +AM_CONDITIONAL(LIBDL,[test x"$HAVE_LIBDL" = x"yes"]) +AC_MSG_RESULT([$HAVE_LIBDL]) + RTEMS_AMPOLISH3 # Explicitly list all Makefiles here @@ -412,6 +425,7 @@ librpc/Makefile libmisc/Makefile libi2c/Makefile libmd/Makefile +libdl/Makefile zlib/Makefile ftpd/Makefile telnetd/Makefile |