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.

61 lines
2.4KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_missing_prog.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_MISSING_PROG(VARIABLE,PROGRAM,[MESSAGE])
  8. #
  9. # DESCRIPTION
  10. #
  11. # Simple wrapper for the AM_MISSING_PROG which displays a warning MESSAGE
  12. # if provided. A typical use is the following:
  13. #
  14. # AC_PROG_AWK
  15. # AS_IF([test -z "$AWK"],[
  16. # AX_MISSING_PROG(AWK,[awk],[awk seems missing ...])
  17. # ])
  18. #
  19. # Programs wrapped with AX_MISSING_PROG should be used only in the package
  20. # building phase (because they will be wrapped with the automake 'missing'
  21. # script, which will not be installed).
  22. #
  23. # LICENSE
  24. #
  25. # Copyright (c) 2008 Francesco Salvestrini <salvestrini@users.sourceforge.net>
  26. #
  27. # This program is free software; you can redistribute it and/or modify it
  28. # under the terms of the GNU General Public License as published by the
  29. # Free Software Foundation; either version 2 of the License, or (at your
  30. # option) any later version.
  31. #
  32. # This program is distributed in the hope that it will be useful, but
  33. # WITHOUT ANY WARRANTY; without even the implied warranty of
  34. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  35. # Public License for more details.
  36. #
  37. # You should have received a copy of the GNU General Public License along
  38. # with this program. If not, see <https://www.gnu.org/licenses/>.
  39. #
  40. # As a special exception, the respective Autoconf Macro's copyright owner
  41. # gives unlimited permission to copy, distribute and modify the configure
  42. # scripts that are the output of Autoconf when processing the Macro. You
  43. # need not follow the terms of the GNU General Public License when using
  44. # or distributing such scripts, even though portions of the text of the
  45. # Macro appear in them. The GNU General Public License (GPL) does govern
  46. # all other use of the material that constitutes the Autoconf Macro.
  47. #
  48. # This special exception to the GPL applies to versions of the Autoconf
  49. # Macro released by the Autoconf Archive. When you make and distribute a
  50. # modified version of the Autoconf Macro, you may extend this special
  51. # exception to the GPL to apply to your modified version as well.
  52. #serial 8
  53. AC_DEFUN([AX_MISSING_PROG],[dnl
  54. AS_IF([ test ! -z "$3" ],[
  55. AC_MSG_WARN([$3])
  56. ])
  57. AM_MISSING_PROG([$1],[$2])
  58. ])