[d7aecdc] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id$ |
---|
| 4 | |
---|
[126660c5] | 5 | AC_PREREQ(2.57) |
---|
[5e622a9] | 6 | AC_INIT([rtems-cpukit-libmisc],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com]) |
---|
[d7aecdc] | 7 | AC_CONFIG_SRCDIR([dumpbuf]) |
---|
[5e622a9] | 8 | RTEMS_TOP(../..) |
---|
[d7aecdc] | 9 | |
---|
| 10 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 11 | |
---|
[126660c5] | 12 | AM_INIT_AUTOMAKE([no-define foreign 1.7.2]) |
---|
[d7aecdc] | 13 | AM_MAINTAINER_MODE |
---|
| 14 | |
---|
| 15 | RTEMS_ENABLE_BARE |
---|
| 16 | |
---|
[5e622a9] | 17 | RTEMS_ENV_RTEMSCPU |
---|
[d7aecdc] | 18 | RTEMS_CHECK_CPU |
---|
| 19 | RTEMS_CANONICAL_HOST |
---|
| 20 | |
---|
| 21 | RTEMS_PROG_CC_FOR_TARGET |
---|
| 22 | RTEMS_CANONICALIZE_TOOLS |
---|
| 23 | |
---|
[38028293] | 24 | RTEMS_CHECK_MULTIPROCESSING |
---|
[d7aecdc] | 25 | |
---|
| 26 | AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes") |
---|
| 27 | |
---|
[22b689b] | 28 | # shell/* wants to assign file descriptors to stdio file descriptors. |
---|
| 29 | AC_MSG_CHECKING([for assignable stdio]) |
---|
| 30 | AC_COMPILE_IFELSE( |
---|
| 31 | [AC_LANG_PROGRAM( |
---|
| 32 | [#include <stdio.h>], |
---|
| 33 | [stdin = fopen("/tmp", "r")])], |
---|
| 34 | [HAVE_ASSIGNABLE_STDIO=yes], |
---|
| 35 | [HAVE_ASSIGNABLE_STDIO=no]) |
---|
| 36 | AC_MSG_RESULT([$HAVE_ASSIGNABLE_STDIO]) |
---|
| 37 | |
---|
[5a8a05b] | 38 | # serdbg exploits weak symbols |
---|
| 39 | AC_CACHE_CHECK([whether $CC supports function __attribute__((weak))], |
---|
| 40 | [rtems_cv_cc_attribute_weak],[ |
---|
[d790ca3] | 41 | AS_IF([test x"$GCC" = xyes],[ |
---|
[5a8a05b] | 42 | save_CFLAGS=$CFLAGS |
---|
| 43 | CFLAGS=-Werror]) |
---|
| 44 | |
---|
| 45 | AC_COMPILE_IFELSE([ |
---|
| 46 | AC_LANG_PROGRAM( |
---|
| 47 | [void myfunc(char c) __attribute__ ((weak)); |
---|
| 48 | void myfunc(char c) {}], |
---|
| 49 | [])], |
---|
| 50 | [rtems_cv_cc_attribute_weak=yes], |
---|
| 51 | [rtems_cv_cc_attribute_weak=no]) |
---|
| 52 | |
---|
[d790ca3] | 53 | AS_IF([test x"$GCC" = xyes],[ |
---|
[5a8a05b] | 54 | CFLAGS=$save_CFLAGS]) |
---|
| 55 | ]) |
---|
| 56 | |
---|
| 57 | AM_CONDITIONAL([LIBSHELL],[test x"$HAVE_ASSIGNABLE_STDIO" = x"yes"]) |
---|
| 58 | AM_CONDITIONAL([LIBSERDBG],[test x"$rtems_cv_cc_attribute_weak" = x"yes"]) |
---|
[22b689b] | 59 | |
---|
[d7aecdc] | 60 | # Explicitly list all Makefiles here |
---|
| 61 | AC_CONFIG_FILES([Makefile |
---|
| 62 | cpuuse/Makefile |
---|
| 63 | shell/Makefile |
---|
| 64 | devnull/Makefile |
---|
| 65 | dummy/Makefile |
---|
| 66 | dumpbuf/Makefile |
---|
| 67 | monitor/Makefile |
---|
| 68 | rtmonuse/Makefile |
---|
[9e633f5] | 69 | serdbg/Makefile |
---|
[d7aecdc] | 70 | stackchk/Makefile |
---|
[a923a82] | 71 | capture/Makefile |
---|
[d7aecdc] | 72 | untar/Makefile |
---|
| 73 | mw-fb/Makefile |
---|
| 74 | wrapup/Makefile |
---|
| 75 | ]) |
---|
| 76 | AC_OUTPUT |
---|