mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/check-itron.m4: New. * aclocal/enable-inlines.m4: New. * Makefile.am: Add -I aclocal to ACLOCAL_AMFLAGS.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
|
* aclocal/check-itron.m4: New.
|
||||||
|
* aclocal/enable-inlines.m4: New.
|
||||||
|
* Makefile.am: Add -I aclocal to ACLOCAL_AMFLAGS.
|
||||||
|
|
||||||
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* Makefile.am: Reflect having moved aclocal/.
|
* Makefile.am: Reflect having moved aclocal/.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
## $Id$
|
## $Id$
|
||||||
##
|
##
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I ../aclocal
|
ACLOCAL_AMFLAGS = -I aclocal -I ../aclocal
|
||||||
|
|
||||||
rtems_makedir = $(prefix)/make
|
rtems_makedir = $(prefix)/make
|
||||||
|
|
||||||
|
|||||||
37
c/src/make/aclocal/check-itron.m4
Normal file
37
c/src/make/aclocal/check-itron.m4
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_CHECK_ITRON_API,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
|
||||||
|
AC_REQUIRE([RTEMS_ENABLE_ITRON])dnl
|
||||||
|
|
||||||
|
AC_CACHE_CHECK([whether CPU supports libitron],
|
||||||
|
rtems_cv_HAS_ITRON_API,
|
||||||
|
[dnl
|
||||||
|
case "$RTEMS_CPU" in
|
||||||
|
unix*)
|
||||||
|
rtems_cv_HAS_ITRON_API="no"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if test "${RTEMS_HAS_ITRON_API}" = "yes"; then
|
||||||
|
rtems_cv_HAS_ITRON_API="yes";
|
||||||
|
else
|
||||||
|
rtems_cv_HAS_ITRON_API="disabled";
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac])
|
||||||
|
if test "$rtems_cv_HAS_ITRON_API" = "yes"; then
|
||||||
|
HAS_ITRON_API="yes";
|
||||||
|
else
|
||||||
|
HAS_ITRON_API="no";
|
||||||
|
fi
|
||||||
|
AC_SUBST(HAS_ITRON_API)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_DEFINE_ITRON_API,
|
||||||
|
[AC_REQUIRE([RTEMS_CHECK_ITRON_API])dnl
|
||||||
|
if test x"${HAS_ITRON_API}" = x"yes";
|
||||||
|
then
|
||||||
|
AC_DEFINE_UNQUOTED(RTEMS_ITRON_API,1,[if itron api is supported])
|
||||||
|
fi
|
||||||
|
])
|
||||||
17
c/src/make/aclocal/enable-inlines.m4
Normal file
17
c/src/make/aclocal/enable-inlines.m4
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_INLINES,
|
||||||
|
[AC_ARG_ENABLE(rtems-inlines,
|
||||||
|
[AC_HELP_STRING([--enable-rtems-inlines],
|
||||||
|
[enable RTEMS inline functions (default:enabled, disable to use macros)])],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_USE_MACROS=no ;;
|
||||||
|
no) RTEMS_USE_MACROS=yes ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;
|
||||||
|
esac],[RTEMS_USE_MACROS=no])
|
||||||
|
AC_SUBST(RTEMS_USE_MACROS)dnl
|
||||||
|
|
||||||
|
AS_IF([test x"${RTEMS_USE_MACROS}" = x"yes"],
|
||||||
|
[AC_DEFINE_UNQUOTED(USE_MACROS,1,[if using macros])],
|
||||||
|
[AC_DEFINE_UNQUOTED(USE_INLINES,1,[if using inlines])])
|
||||||
|
])
|
||||||
Reference in New Issue
Block a user