Files
rtems/cpukit/aclocal/check-func.m4
Joel Sherrill 9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00

22 lines
622 B
Plaintext

# Check whether FUNCTION is declared in INCLUDES
# and whether rtems_stub_FUNCTION or FUNCTION is supplied.
# RTEMS_CHECK_FUNC(FUNCTION[,INCLUDES])
AC_DEFUN([RTEMS_CHECK_FUNC],
[AC_REQUIRE([RTEMS_CHECK_NEWLIB])
AC_CHECK_DECLS([$1],,,[$2])
AC_CACHE_CHECK([for $1],[ac_cv_$1],[
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[$2]],[[rtems_stub_$1()]])],
[ac_cv_$1="stub"],
[AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[$2]],[[$1()]])],
[ac_cv_$1="yes"],
[ac_cv_$1="no"])
])
])
AS_IF([test "$ac_cv_$1" = yes],
[AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_]$1),[1],[Define to 1 if you have the `$1' function.])])
])