source: rtems/testsuites/samples/configure.ac @ 4dec352

4.11
Last change on this file since 4dec352 was 4dec352, checked in by Ralf Corsépius <ralf.corsepius@…>, on May 4, 2012 at 6:54:41 AM

Remove CVS-Ids.

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