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.

59 lines
2.6KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_prog_pgclient.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_PROG_PGCLIENT()
  8. #
  9. # DESCRIPTION
  10. #
  11. # This macro searches for a program called 'pgclient'. If found the
  12. # variable $pgclient is set to its path. Else it is set to 0. An option is
  13. # added to the configure script for setting an search path instead of
  14. # $PATH ($pgclient_dir). If pgclient is necessary for installing your
  15. # program, you can do something like the following to stop configure with
  16. # an error if pgclient wasn't found:
  17. #
  18. # if test "x$pgclient" = "x0"; then AC_MSG_ERROR([We need that to setup the database!]); fi
  19. #
  20. # pgclient can be found at http://pgclient.freesources.org
  21. #
  22. # LICENSE
  23. #
  24. # Copyright (c) 2008 Moritz Sinn <moritz@freesources.org>
  25. #
  26. # This program is free software; you can redistribute it and/or modify it
  27. # under the terms of the GNU General Public License as published by the
  28. # Free Software Foundation; either version 2 of the License, or (at your
  29. # option) any later version.
  30. #
  31. # This program is distributed in the hope that it will be useful, but
  32. # WITHOUT ANY WARRANTY; without even the implied warranty of
  33. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  34. # Public License for more details.
  35. #
  36. # You should have received a copy of the GNU General Public License along
  37. # with this program. If not, see <https://www.gnu.org/licenses/>.
  38. #
  39. # As a special exception, the respective Autoconf Macro's copyright owner
  40. # gives unlimited permission to copy, distribute and modify the configure
  41. # scripts that are the output of Autoconf when processing the Macro. You
  42. # need not follow the terms of the GNU General Public License when using
  43. # or distributing such scripts, even though portions of the text of the
  44. # Macro appear in them. The GNU General Public License (GPL) does govern
  45. # all other use of the material that constitutes the Autoconf Macro.
  46. #
  47. # This special exception to the GPL applies to versions of the Autoconf
  48. # Macro released by the Autoconf Archive. When you make and distribute a
  49. # modified version of the Autoconf Macro, you may extend this special
  50. # exception to the GPL to apply to your modified version as well.
  51. #serial 6
  52. AU_ALIAS([MS_PROG_PGCLIENT], [AX_PROG_PGCLIENT])
  53. AC_DEFUN([AX_PROG_PGCLIENT], [
  54. AC_ARG_WITH(pgclient, [ --with-pgclient=DIR where to find pgclient (default: $PATH)], [pgclient_dir=$withval], [pgclient_dir=$PATH])
  55. AC_PATH_PROG([pgclient], [pgclient], [0], $pgclient_dir)
  56. ])dnl