1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id$ |
---|
4 | |
---|
5 | AC_PREREQ(2.57) |
---|
6 | AC_INIT([rtems-cpukit-libmisc],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com]) |
---|
7 | AC_CONFIG_SRCDIR([dumpbuf]) |
---|
8 | RTEMS_TOP(../..) |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | |
---|
12 | AM_INIT_AUTOMAKE([no-define foreign 1.7.2]) |
---|
13 | AM_MAINTAINER_MODE |
---|
14 | |
---|
15 | RTEMS_ENABLE_BARE |
---|
16 | |
---|
17 | RTEMS_ENV_RTEMSCPU |
---|
18 | RTEMS_CHECK_CPU |
---|
19 | RTEMS_CANONICAL_HOST |
---|
20 | |
---|
21 | RTEMS_PROG_CC_FOR_TARGET |
---|
22 | RTEMS_CANONICALIZE_TOOLS |
---|
23 | |
---|
24 | RTEMS_CHECK_MULTIPROCESSING |
---|
25 | |
---|
26 | AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes") |
---|
27 | |
---|
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 | |
---|
38 | # serdbg exploits weak symbols |
---|
39 | AC_CACHE_CHECK([whether $CC supports function __attribute__((weak))], |
---|
40 | [rtems_cv_cc_attribute_weak],[ |
---|
41 | AS_IF([test x"$GCC" = xyes],[ |
---|
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 | |
---|
53 | AS_IF([test x"$GCC" = xyes],[ |
---|
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"]) |
---|
59 | |
---|
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 |
---|
69 | serdbg/Makefile |
---|
70 | stackchk/Makefile |
---|
71 | capture/Makefile |
---|
72 | untar/Makefile |
---|
73 | mw-fb/Makefile |
---|
74 | wrapup/Makefile |
---|
75 | ]) |
---|
76 | AC_OUTPUT |
---|