mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-12 22:01:56 +00:00
config: use newer AC_COMPILE_IFELSE()
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
9f90b16d06
commit
2f4fa09b1c
29
configure.ac
29
configure.ac
@ -153,22 +153,21 @@ AC_CHECK_MEMBER([struct sockaddr_un.sun_len],
|
||||
[],
|
||||
[#include <sys/un.h>])
|
||||
|
||||
|
||||
AC_MSG_CHECKING(looking for union semun in sys/sem.h)
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/sem.h>
|
||||
],[
|
||||
union semun arg;
|
||||
semctl(0, 0, 0, arg);
|
||||
], [have_union_semun="1" union_semun=yes ]
|
||||
msg=yes, [
|
||||
have_union_semun="0"
|
||||
msg=no ] )
|
||||
AC_MSG_RESULT([$msg])
|
||||
AM_CONDITIONAL(HAVE_SEMUN,
|
||||
[test "x$have_union_semun" = xyes])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
||||
[[#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/sem.h>]],
|
||||
[[union semun arg; semctl(0, 0, 0, arg);]])],
|
||||
[
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_DEFINE_UNQUOTED([HAVE_SEMUN], 1, [Define to 1 if you have union semun.])
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_CHOWN
|
||||
|
||||
Loading…
Reference in New Issue
Block a user