Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_sysv_ipc.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_SYSV_IPC
  8. #
  9. # DESCRIPTION
  10. #
  11. # This macro checks for the SysV IPC header files. It only checks that you
  12. # can compile a program with them, not whether the system actually
  13. # implements working SysV IPC.
  14. #
  15. # LICENSE
  16. #
  17. # Copyright (c) 2008 Warren Young <warren@etr-usa.com>
  18. #
  19. # Copying and distribution of this file, with or without modification, are
  20. # permitted in any medium without royalty provided the copyright notice
  21. # and this notice are preserved. This file is offered as-is, without any
  22. # warranty.
  23. #serial 8
  24. AU_ALIAS([ETR_SYSV_IPC], [AX_SYSV_IPC])
  25. AC_DEFUN([AX_SYSV_IPC],
  26. [
  27. AC_CACHE_CHECK([for System V IPC headers], ac_cv_sysv_ipc, [
  28. AC_TRY_COMPILE(
  29. [
  30. #include <sys/types.h>
  31. #include <sys/ipc.h>
  32. #include <sys/msg.h>
  33. #include <sys/sem.h>
  34. #include <sys/shm.h>
  35. ],, ac_cv_sysv_ipc=yes, ac_cv_sysv_ipc=no)
  36. ])
  37. if test x"$ac_cv_sysv_ipc" = "xyes"
  38. then
  39. AC_DEFINE(HAVE_SYSV_IPC, 1, [ Define if you have System V IPC ])
  40. fi
  41. ]) dnl AX_SYSV_IPC