2022-07-24 18:31:54 -07:00
|
|
|
AC_DEFUN([RB_HELP_STRING], [AS_HELP_STRING([$1], [$2], 40, 200)])
|
|
|
|
|
|
|
|
AC_DEFUN([RB_VAR_PREPEND],
|
|
|
|
[
|
|
|
|
AS_VAR_SET([$1], ["$2 ${$1}"])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([RB_VAR_APPEND],
|
|
|
|
[
|
|
|
|
AS_VAR_SET([$1], ["${$1} $2"])
|
|
|
|
])
|
|
|
|
|
2019-12-01 13:12:31 -08:00
|
|
|
AC_DEFUN([RB_DEFINE],
|
|
|
|
[
|
|
|
|
AC_DEFINE([RB_$1], [$2], [$3])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([RB_DEFINE_UNQUOTED],
|
|
|
|
[
|
|
|
|
AC_DEFINE_UNQUOTED([RB_$1], [$2], [$3])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([IRCD_DEFINE],
|
|
|
|
[
|
|
|
|
AC_DEFINE([IRCD_$1], [$2], [$3])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([IRCD_DEFINE_UNQUOTED],
|
|
|
|
[
|
|
|
|
AC_DEFINE_UNQUOTED([IRCD_$1], [$2], [$3])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([CPPDEFINE],
|
|
|
|
[
|
|
|
|
if [[ -z "$2" ]]; then
|
2022-07-24 18:31:54 -07:00
|
|
|
RB_VAR_PREPEND([CPPFLAGS], ["-D$1"])
|
2019-12-01 13:12:31 -08:00
|
|
|
else
|
2022-07-24 18:31:54 -07:00
|
|
|
RB_VAR_PREPEND([CPPFLAGS], ["-D$1=$2"])
|
2019-12-01 13:12:31 -08:00
|
|
|
fi
|
|
|
|
])
|
2020-05-08 15:14:44 -07:00
|
|
|
|
2022-06-13 18:29:42 -07:00
|
|
|
AC_DEFUN([AM_COND_IF_NOT],
|
|
|
|
[
|
|
|
|
AM_COND_IF([$1], [], [$2])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([AM_COND_IF_NAND],
|
|
|
|
[
|
|
|
|
AM_COND_IF([$1], [],
|
|
|
|
[
|
|
|
|
AM_COND_IF([$2], [], [$3])
|
|
|
|
])
|
|
|
|
])
|
2023-01-26 12:29:31 -08:00
|
|
|
|
|
|
|
AC_DEFUN([RB_CHK_SYSHEADER],
|
|
|
|
[
|
|
|
|
if test -z "$rb_cv_header_have_$2"; then
|
|
|
|
AC_CHECK_HEADER([$1],
|
|
|
|
[
|
|
|
|
rb_cv_header_have_$2=1;
|
|
|
|
AC_DEFINE([HAVE_$2], [1], [ Indication $1 is available. ])
|
|
|
|
RB_DEFINE_UNQUOTED([INC_$2], [$1>], [ The computed-include location of $1. ])
|
|
|
|
], [
|
|
|
|
RB_DEFINE_UNQUOTED([INC_$2], [stddef.h>], [ The dead-header in place of $1. ])
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
])
|