forked from Imagelibrary/rtems
Further preparations for autoconf > 2.52: * aclocal/enable-inlines.m4: Use AS_IF instead of if/then/else. * aclocal/quoting.m4: Use `eval echo $ac_args` to unquote $ac_arg. * aclocal/target.m4: Use `eval echo $rtems_args` to unquote $ac_arg.
18 lines
575 B
Plaintext
18 lines
575 B
Plaintext
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])])
|
|
])
|