source: rtems/testsuites/samples/configure.ac @ beda88f

4.9
Last change on this file since beda88f was 8db468f, checked in by Chris Johns <chrisj@…>, on Aug 17, 2007 at 1:07:10 AM

2007-08-17 Chris Johns <chrisj@…>

  • Makefile.am, README, configure.ac, capture/.cvsignore, capture/Makefile.am, capture/capture.doc, capture/capture.scn, capture/init.c, capture/system.h, capture/test1.c: Add a sample test for the capture engine.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.60)
6AC_INIT([rtems-c-src-tests-samples],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
7AC_CONFIG_SRCDIR([hello])
8RTEMS_TOP([../..],[..])
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE([no-define foreign 1.10])
13AM_MAINTAINER_MODE
14
15RTEMS_ENABLE_CXX
16
17RTEMS_ENV_RTEMSBSP
18
19RTEMS_PROJECT_ROOT
20
21RTEMS_PROG_CC_FOR_TARGET
22
23RTEMS_PROG_CXX_FOR_TARGET
24RTEMS_CANONICALIZE_TOOLS
25
26RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
27RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING])
28RTEMS_CHECK_CXX(RTEMS_BSP)
29RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
30
31
32CXXTESTS=$HAS_CPLUSPLUS
33AS_IF([test $HAS_CPLUSPLUS = yes],[
34  AC_LANG_PUSH([C++])
35  AC_CHECK_HEADERS([cstdio cstdlib iostream],[],[CXXTESTS=no])
36  AC_CACHE_CHECK(
37  [if iostream supports std:: namespace],
38  [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE],
39  [AC_COMPILE_IFELSE(
40    [AC_LANG_PROGRAM(
41      [[#include <iostream>]],
42      [[std::cout << "hello" << std::endl;]])
43    ],
44    [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=yes],
45    [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=no])
46  ])
47  AS_IF([test $rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE = no],[CXXTESTS=no])
48  AS_IF([test $CXXTESTS = no],[
49    AC_MSG_WARN([disabling C++ tests])
50  ])
51  AC_LANG_POP
52])
53
54AM_CONDITIONAL([CXXTESTS],[test $CXXTESTS = "yes"])
55AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes")
56AM_CONDITIONAL(MPTESTS,test "$rtems_cv_RTEMS_MULTIPROCESSING" = "yes")
57
58#FIXME: We should use a feature based check
59AM_CONDITIONAL(LIBCHIP,[test "$RTEMS_BSP_FAMILY" != "posix"])
60
61# Explicitly list all Makefiles here
62AC_CONFIG_FILES([Makefile
63base_sp/Makefile
64hello/Makefile
65loopback/Makefile
66minimum/Makefile
67fileio/Makefile
68nsecs/Makefile
69paranoia/Makefile
70ticker/Makefile
71unlimited/Makefile
72base_mp/Makefile
73base_mp/node1/Makefile
74base_mp/node2/Makefile
75iostream/Makefile
76cdtest/Makefile
77pppd/Makefile
78capture/Makefile
79])
80AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.