forked from Imagelibrary/rtems
2004-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>
* aclocal/enable-itron.m4, aclocal/check-itron.m4: Allow building itron for unix.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* aclocal/enable-itron.m4, aclocal/check-itron.m4:
|
||||||
|
Allow building itron for unix.
|
||||||
|
|
||||||
2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
* configure.ac: Require automake > 1.9.
|
* configure.ac: Require automake > 1.9.
|
||||||
|
|||||||
@@ -2,36 +2,15 @@ dnl $Id$
|
|||||||
dnl
|
dnl
|
||||||
AC_DEFUN([RTEMS_CHECK_ITRON_API],
|
AC_DEFUN([RTEMS_CHECK_ITRON_API],
|
||||||
[dnl
|
[dnl
|
||||||
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
|
|
||||||
AC_REQUIRE([RTEMS_ENABLE_ITRON])dnl
|
AC_REQUIRE([RTEMS_ENABLE_ITRON])dnl
|
||||||
|
|
||||||
AC_CACHE_CHECK([whether CPU supports libitron],
|
AC_CACHE_CHECK([whether CPU supports libitron],
|
||||||
rtems_cv_HAS_ITRON_API,
|
rtems_cv_HAS_ITRON_API,
|
||||||
[dnl
|
[dnl
|
||||||
case "$RTEMS_CPU" in
|
|
||||||
unix*)
|
|
||||||
rtems_cv_HAS_ITRON_API="no"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
if test "${RTEMS_HAS_ITRON_API}" = "yes"; then
|
if test "${RTEMS_HAS_ITRON_API}" = "yes"; then
|
||||||
rtems_cv_HAS_ITRON_API="yes";
|
rtems_cv_HAS_ITRON_API="yes";
|
||||||
else
|
else
|
||||||
rtems_cv_HAS_ITRON_API="disabled";
|
rtems_cv_HAS_ITRON_API="disabled";
|
||||||
fi
|
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
|
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -2,32 +2,11 @@ dnl $Id$
|
|||||||
|
|
||||||
AC_DEFUN([RTEMS_ENABLE_ITRON],
|
AC_DEFUN([RTEMS_ENABLE_ITRON],
|
||||||
[
|
[
|
||||||
## AC_BEFORE([$0], [RTEMS_CHECK_ITRON_API])dnl
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(itron,
|
AC_ARG_ENABLE(itron,
|
||||||
[AS_HELP_STRING(--enable-itron,enable itron interface)],
|
AS_HELP_STRING(--enable-itron,enable itron interface),
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
yes) RTEMS_HAS_ITRON_API=yes ;;
|
yes) RTEMS_HAS_ITRON_API=yes ;;
|
||||||
no) RTEMS_HAS_ITRON_API=no ;;
|
no) RTEMS_HAS_ITRON_API=no ;;
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for enable-itron option) ;;
|
*) AC_MSG_ERROR(bad value ${enableval} for enable-itron option) ;;
|
||||||
esac],[RTEMS_HAS_ITRON_API=yes])
|
esac],[RTEMS_HAS_ITRON_API=yes])
|
||||||
|
|
||||||
case "${host}" in
|
|
||||||
# hpux unix port should go here
|
|
||||||
i[[34567]]86-pc-linux*) # unix "simulator" port
|
|
||||||
RTEMS_HAS_ITRON_API=no
|
|
||||||
;;
|
|
||||||
i[[34567]]86-*freebsd*) # unix "simulator" port
|
|
||||||
RTEMS_HAS_ITRON_API=no
|
|
||||||
;;
|
|
||||||
no_cpu-*rtems*)
|
|
||||||
RTEMS_HAS_ITRON_API=no
|
|
||||||
;;
|
|
||||||
sparc-sun-solaris*) # unix "simulator" port
|
|
||||||
RTEMS_HAS_ITRON_API=no
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
AC_SUBST(RTEMS_HAS_ITRON_API)
|
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user