source: rtems/cpukit/libcsupport/configure.ac @ 3f4876a

4.104.114.84.95
Last change on this file since 3f4876a was 3f4876a, checked in by Ralf Corsepius <ralf.corsepius@…>, on May 30, 2003 at 11:49:08 AM

Merger from rtems-4.6-branch

  • Property mode set to 100644
File size: 2.7 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.57)
6AC_INIT([rtems-cpukit-lib],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
7AC_CONFIG_SRCDIR([src])
8RTEMS_TOP(../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.7.2])
12AM_MAINTAINER_MODE
13
14RTEMS_ENV_RTEMSCPU
15
16RTEMS_CHECK_CPU
17RTEMS_CANONICAL_HOST
18
19RTEMS_PROG_CC_FOR_TARGET
20RTEMS_CANONICALIZE_TOOLS
21AC_PROG_RANLIB
22
23RTEMS_CHECK_NEWLIB
24RTEMS_CHECK_MULTIPROCESSING
25
26AM_CONDITIONAL(UNIX,test x"$RTEMS_CPU" = x"unix")
27AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes")
28
29AS_IF([test x"$RTEMS_USE_NEWLIB" != x"yes"],[
30## Provide headers only if the host doesn't.
31  AC_CHECK_HEADERS([sys/cdefs.h],[NEED_SYS_CDEFS_H=no],[NEED_SYS_CDEFS_H=yes])
32  AC_CHECK_HEADERS([stdint.h],[NEED_STDINT_H=no],[NEED_STDINT_H=yes])
33  AC_CHECK_HEADERS([inttypes.h],[NEED_INTTYPES_H=no],[NEED_INTTYPES=yes])
34],[
35## Using newlib, we provide sys/cdefs.h
36  NEED_SYS_CDEFS_H=yes
37  NEED_STDINT_H=yes
38  NEED_INTTYPES_H=yes
39])
40
41# FIXME: These checks are only in here to provide
42# configuration-time diagnostics and are not really used.
43AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>])
44AC_CHECK_DECLS([CHAR_BIT],,,[#include <limits.h>])
45
46AS_IF([test x"${RTEMS_USE_NEWLIB}" = x"yes"],[
47ac_cv_have_decl_XTABS=yes
48ac_cv_have_decl_OLCUC=yes
49## SUSV3, but seemingly not available on some platforms (reportedly FreeBSD)
50ac_cv_have_decl_ONLRET=yes
51ac_cv_have_decl_ONOCR=yes
52ac_cv_have_decl_TABDLY=yes
53ac_cv_have_decl_OCRNL=yes
54ac_cv_have_decl_IUCLC=yes
55## SUSV3-XSI extension
56ac_cv_have_decl_ECHOPRT=yes
57])
58
59# FIXME: Some cruft to work around portability issues with termios.c
60## Seemingly not covered by any standard.
61AC_CHECK_DECLS([XTABS],,,[#include <termios.h>])
62AC_CHECK_DECLS([OLCUC],,,[#include <termios.h>])
63## SUSV3, but seemingly not available on some platforms (reportedly FreeBSD)
64AC_CHECK_DECLS([ONLRET],,,[#include <termios.h>])
65AC_CHECK_DECLS([ONOCR],,,[#include <termios.h>])
66AC_CHECK_DECLS([TABDLY],,,[#include <termios.h>])
67AC_CHECK_DECLS([OCRNL],,,[#include <termios.h>])
68AC_CHECK_DECLS([IUCLC],,,[#include <termios.h>])
69## SUSV3-XSI extension
70AC_CHECK_DECLS([ECHOPRT],,,[#include <termios.h>])
71
72## BSD-ism, excluded from POSIX, but available on most platforms
73AC_CHECK_DECLS([sbrk],,,[#include <unistd.h>])
74
75## Check if libc provides BSD's strlcpy/strlcat
76AC_CHECK_FUNCS(strlcpy strlcat)
77
78AM_CONDITIONAL([NEED_SYS_CDEFS_H],[test x"$NEED_SYS_CDEFS_H" = x"yes"])
79AM_CONDITIONAL([NEED_STDINT_H],[test x"$NEED_STDINT_H" = x"yes"])
80AM_CONDITIONAL([NEED_INTTYPES_H],[test x"$NEED_INTTYPES_H" = x"yes"])
81
82AM_CONFIG_HEADER([src/config.h])
83
84# Explicitly list all Makefiles here
85AC_CONFIG_FILES([Makefile])
86AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.