*** empty log message ***
[educational.data.git] / projekt-c / configure.in
blob3ae56833698e7bdb4450a88cc88eee76fec22bbd
1 AC_INIT(src/kernel.cpp)
2 AM_CONFIG_HEADER(src/conf.h)
3 AM_INIT_AUTOMAKE(Kernel,1.0)
5 AC_PROG_MAKE_SET
6 AC_SUBST(LIBTOOL_DEPS)
7 AC_PROG_CXX
8 AC_PROG_CC
9 AC_PROG_CPP
11 AC_LIBTOOL_WIN32_DLL
12 AC_PROG_LIBTOOL
13 AC_PREP_CC_SOLARIS
15 # Checks for typedefs, structures, and compiler characteristics.
16 AC_C_CONST
17 AC_C_INLINE
18 AM_SYS_POSIX_TERMIOS
20 AC_MSG_CHECKING([if we can use sched_yield])
22 AC_TRY_LINK([
23 #include <sched.h>
25 [sched_yield();],
26 [ac_have_sched=yes],
27 [ac_have_sched=no])
29 if test "$ac_have_sched" = "yes"; then
30   AC_DEFINE([HAVE_SCHED_YIELD],[1],[defined if the sched_yield() function is present on this system])
31   AC_MSG_RESULT([yes])
32 else
33   AC_MSG_RESULT([no])
36 AC_CHECK_LIB(pthread,pthread_create)
38 AC_PROG_DVI2PDF
40 AC_JNI_HEADER
42 AC_OUTPUT([
43         Makefile
44         docs/Makefile
45         docs2/Makefile
46         java/Makefile
47         src/Makefile
48         src/kernel/Makefile
49         src/proc/Makefile
50         src/test/Makefile
51         src/sync/Makefile
52         src/driver/Makefile
53         src/driver/timer/Makefile
54         src/driver/rs232/Makefile
55         src/protocol/Makefile
56         src/protocol/g1.net/Makefile
57         src/protocol/net/Makefile
58         src/utility/Makefile
59         src/funcs/Makefile