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.

37 lines
1.1 KiB

  1. # ===========================================================================
  2. # http://www.gnu.org/software/autoconf-archive/ax_c_ifdef.html
  3. # ===========================================================================
  4. #
  5. # OBSOLETE MACRO
  6. #
  7. # Deprecated in favor of the standard Autoconf macro AC_CHECK_DECL.
  8. #
  9. # SYNOPSIS
  10. #
  11. # AX_C_IFDEF(MACRO-NAME, ACTION-IF-DEF, ACTION-IF-NOT-DEF)
  12. #
  13. # DESCRIPTION
  14. #
  15. # Check for the definition of macro MACRO-NAME using the current
  16. # language's compiler.
  17. #
  18. # LICENSE
  19. #
  20. # Copyright (c) 2008 Ludovic Courtes <ludo@chbouib.org>
  21. #
  22. # Copying and distribution of this file, with or without modification, are
  23. # permitted in any medium without royalty provided the copyright notice
  24. # and this notice are preserved. This file is offered as-is, without any
  25. # warranty.
  26. #serial 6
  27. AU_ALIAS([_AC_C_IFDEF], [AX_C_IFDEF])
  28. AC_DEFUN([AX_C_IFDEF],
  29. [AC_COMPILE_IFELSE([#ifndef $1
  30. # error "Macro $1 is undefined!"
  31. /* For some compilers (eg. SGI's CC), #error is not
  32. enough... */
  33. please, do fail
  34. #endif],
  35. [$2], [$3])])