From 22b689b274c0d2ac2369e7969055dede3e0907cf Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 14 Nov 2002 12:13:26 +0000 Subject: 2002-11-14 Ralf Corsepius * capture/Makefile.am: Remove AUTOMAKE_OPTIONS. * serdbg/Makefile.am: Remove AUTOMAKE_OPTIONS. * serdbg/serdbgio.c: Add #include . * shell/Makefile.am: Add RTEMS_LIBSHELL conditional. * wrapup/Makefile.am: Add RTEMS_LIBSHELL conditional. * configure.ac: Check for stdio assignments. Add RTEMS_LIBSHELL conditional. --- cpukit/libmisc/configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cpukit/libmisc/configure.ac') diff --git a/cpukit/libmisc/configure.ac b/cpukit/libmisc/configure.ac index 141242d756..3907b776cd 100644 --- a/cpukit/libmisc/configure.ac +++ b/cpukit/libmisc/configure.ac @@ -29,6 +29,18 @@ RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes") +# shell/* wants to assign file descriptors to stdio file descriptors. +AC_MSG_CHECKING([for assignable stdio]) +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [#include ], + [stdin = fopen("/tmp", "r")])], + [HAVE_ASSIGNABLE_STDIO=yes], + [HAVE_ASSIGNABLE_STDIO=no]) +AC_MSG_RESULT([$HAVE_ASSIGNABLE_STDIO]) + +AM_CONDITIONAL([RTEMS_LIBSHELL],[test x"$HAVE_ASSIGNABLE_STDIO" = x"yes"]) + # Explicitly list all Makefiles here AC_CONFIG_FILES([Makefile cpuuse/Makefile -- cgit v1.2.3