mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
configure: Invocations of RB_CHK_SYSHEADER are no-op after first success.
This commit is contained in:
parent
e8f8008ea9
commit
2935d35f7d
1 changed files with 10 additions and 7 deletions
17
configure.ac
17
configure.ac
|
@ -616,13 +616,16 @@ dnl
|
||||||
|
|
||||||
AC_DEFUN([RB_CHK_SYSHEADER],
|
AC_DEFUN([RB_CHK_SYSHEADER],
|
||||||
[
|
[
|
||||||
AC_CHECK_HEADER([$1],
|
if test -z "$rb_have_sysheader_$2"; then
|
||||||
[
|
AC_CHECK_HEADER([$1],
|
||||||
AC_DEFINE([HAVE_$2], [1], [ Indication $1 is available. ])
|
[
|
||||||
RB_DEFINE_UNQUOTED([INC_$2], [$1>], [ The computed-include location of $1. ])
|
rb_have_sysheader_$2=1;
|
||||||
], [
|
AC_DEFINE([HAVE_$2], [1], [ Indication $1 is available. ])
|
||||||
RB_DEFINE_UNQUOTED([INC_$2], [stddef.h>], [ The dead-header in place of $1. ])
|
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
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_HEADER_STDBOOL
|
AC_HEADER_STDBOOL
|
||||||
|
|
Loading…
Reference in a new issue