source: rtems/testsuites/libtests/configure.ac @ f54e503

4.115
Last change on this file since f54e503 was f54e503, checked in by Sebastian Huber <sebastian.huber@…>, on 12/02/14 at 09:35:13

libtests: Omit libdl tests if no RTEMS tools

  • Property mode set to 100644
File size: 3.1 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-tests-libtests],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
5AC_CONFIG_SRCDIR([cpuuse])
6AC_CONFIG_HEADER([config.h])
7RTEMS_TOP([../..],[..])
8
9RTEMS_CANONICAL_TARGET_CPU
10
11AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
12AM_MAINTAINER_MODE
13
14RTEMS_ENABLE_CXX
15
16RTEMS_ENV_RTEMSBSP
17RTEMS_CHECK_RTEMS_TEST_NO_PAUSE
18
19RTEMS_PROJECT_ROOT
20
21RTEMS_PROG_CC_FOR_TARGET
22
23RTEMS_PROG_CXX_FOR_TARGET
24
25RTEMS_CANONICALIZE_TOOLS
26
27RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
28RTEMS_CHECK_CXX(RTEMS_BSP)
29RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
30RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
31
32AC_PROG_LN_S
33AC_PATH_PROG([PAX],[pax])
34
35AC_CHECK_HEADERS([complex.h])
36
37AM_CONDITIONAL(TARTESTS,test "$as_ln_s" = "ln -s" && test -n "$PAX")
38
39AM_CONDITIONAL(HAS_CXX,test "$rtems_cv_HAS_CPLUSPLUS" = "yes")
40AM_CONDITIONAL([HAS_COMPLEX],[test "$ac_cv_header_complex_h" = yes])
41AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes")
42AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
43
44# Must match the list in cpukit.
45AC_MSG_CHECKING([whether CPU supports libdl])
46case $RTEMS_CPU in
47  arm | bfin | h8300 | i386 | lm32 | m32r | m68k | mips | \
48  moxie | powerpc | sparc | v850)
49   TEST_LIBDL=yes ;;
50  *)
51   TEST_LIBDL=no ;;
52esac
53AC_MSG_RESULT([$TEST_LIBDL])
54
55AS_IF([test x"$TEST_LIBDL" = x"yes"],[
56  AC_CHECK_PROG(RTEMS_LD_CHECK,rtems-ld,yes)
57  if test x"$RTEMS_LD_CHECK" != x"yes" ; then
58    TEST_LIBDL=no
59  fi
60  AC_CHECK_PROG(RTEMS_SYMS_CHECK,rtems-syms,yes)
61  if test x"$RTEMS_SYMS_CHECK" != x"yes" ; then
62    TEST_LIBDL=no
63  fi
64])
65
66AM_CONDITIONAL(DLTESTS,[test x"$TEST_LIBDL" = x"yes"])
67
68# Explicitly list all Makefiles here
69AC_CONFIG_FILES([Makefile
70pwdgrp02/Makefile
71shell01/Makefile
72pwdgrp01/Makefile
73crypt01/Makefile
74sha/Makefile
75i2c01/Makefile
76newlib01/Makefile
77block17/Makefile
78exit02/Makefile
79exit01/Makefile
80utf8proc01/Makefile
81md501/Makefile
82sparsedisk01/Makefile
83block16/Makefile
84mghttpd01/Makefile
85block15/Makefile
86block14/Makefile
87block13/Makefile
88rbheap01/Makefile
89syscall01/Makefile
90flashdisk01/Makefile
91block01/Makefile
92block02/Makefile
93block03/Makefile
94block04/Makefile
95block05/Makefile
96block06/Makefile
97block07/Makefile
98block08/Makefile
99block09/Makefile
100block10/Makefile
101block11/Makefile
102block12/Makefile
103bspcmdline01/Makefile
104cpuuse/Makefile
105devfs01/Makefile
106devfs02/Makefile
107devfs03/Makefile
108devfs04/Makefile
109deviceio01/Makefile
110devnullfatal01/Makefile
111dl01/Makefile
112dl02/Makefile
113dumpbuf01/Makefile
114ftp01/Makefile
115gxx01/Makefile
116heapwalk/Makefile
117malloctest/Makefile
118malloc02/Makefile
119malloc03/Makefile
120malloc04/Makefile
121monitor/Makefile
122monitor02/Makefile
123mouse01/Makefile
124uid01/Makefile
125putenvtest/Makefile
126rtems++/Makefile
127rtmonuse/Makefile
128stackchk/Makefile
129stackchk01/Makefile
130stringto01/Makefile
131tar01/Makefile
132tar02/Makefile
133tar03/Makefile
134termios/Makefile
135termios01/Makefile
136termios02/Makefile
137termios03/Makefile
138termios04/Makefile
139termios05/Makefile
140termios06/Makefile
141termios07/Makefile
142termios08/Makefile
143top/Makefile
144tztest/Makefile
145capture01/Makefile
146POSIX/Makefile
147math/Makefile
148mathf/Makefile
149mathl/Makefile
150complex/Makefile
151])
152AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.