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.

39 lines
1.3KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_have_adns.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_HAVE_ADNS([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  8. #
  9. # DESCRIPTION
  10. #
  11. # Check whether the GNU ADNS library available from
  12. # http://www.chiark.greenend.org.uk/~ian/adns/ is installed on this
  13. # system. The test is known to work with version 1.4 (or later). If the
  14. # library is found, the flags necessary to link it are added to $LIBS.
  15. #
  16. # LICENSE
  17. #
  18. # Copyright (c) 2008 Peter Simons <simons@cryp.to>
  19. #
  20. # Copying and distribution of this file, with or without modification, are
  21. # permitted in any medium without royalty provided the copyright notice
  22. # and this notice are preserved. This file is offered as-is, without any
  23. # warranty.
  24. #serial 7
  25. AC_DEFUN([AX_HAVE_ADNS], [dnl
  26. AC_CHECK_HEADER([adns.h], [dnl
  27. AC_SEARCH_LIBS([adns_init], [adns], [dnl
  28. AC_CACHE_CHECK([for GNU ADNS], [ax_cv_have_adns], [dnl
  29. AC_LINK_IFELSE([dnl
  30. AC_LANG_PROGRAM(
  31. [#include <adns.h>],
  32. [int rc; rc = adns_init((adns_state *)(0), adns_if_none, (FILE *)(0));])],
  33. [ax_cv_have_adns=yes],
  34. [ax_cv_have_adns=no])])])])
  35. AS_IF([test "${ax_cv_have_adns}" = "yes"], [$1], [$2])
  36. ])dnl