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.

72 lines
2.1KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_xsdcxx.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_XSDCXX
  8. #
  9. # DESCRIPTION
  10. #
  11. # This macro tries to find the CodeSynthesis XSD executable and the
  12. # corresponding headers.
  13. #
  14. # Supported options:
  15. #
  16. # --with-xsdcxx
  17. # use CodeSynthesis XSD from given prefix (ARG=path);
  18. # check PATH (ARG=yes); disable (ARG=no)
  19. #
  20. # --with-xsdcxx-inc
  21. # path to CodeSynthesis XSD headers (ARG=path); use standard prefix
  22. # (ARG=yes); disable (ARG=no)
  23. #
  24. # Output variables:
  25. #
  26. # XSDCXX
  27. # XSDCXX_CPPFLAGS
  28. #
  29. # LICENSE
  30. #
  31. # Copyright (c) 2013 Laszlo Kajan <lkajan@rostlab.org>
  32. #
  33. # Copying and distribution of this file, with or without modification, are
  34. # permitted in any medium without royalty provided the copyright notice
  35. # and this notice are preserved. This file is offered as-is, without any
  36. # warranty.
  37. #serial 3
  38. AC_DEFUN([AX_XSDCXX],
  39. [
  40. AC_ARG_WITH([xsdcxx],
  41. [AS_HELP_STRING([--with-xsdcxx=@<:@ARG@:>@],
  42. [use CodeSynthesis XSD from given prefix (ARG=path); check PATH (ARG=yes); disable (ARG=no)])],
  43. [],
  44. [with_xsdcxx=yes])
  45. AS_IF([test "x$with_xsdcxx" != xno],
  46. [if test "$with_xsdcxx" = "yes"; then with_xsdcxx=xsdcxx; fi
  47. AC_CHECK_PROG([XSDCXX], [$with_xsdcxx], [$with_xsdcxx])
  48. if test "x$XSDCXX" = x; then
  49. AC_CHECK_PROG([XSDCXX], [xsdcxx], [xsdcxx])
  50. if test "x$XSDCXX" = x; then
  51. AC_CHECK_PROG([XSDCXX], [xsd], [xsd])
  52. fi
  53. fi])
  54. AC_ARG_WITH([xsdcxx-inc],
  55. AS_HELP_STRING([--with-xsdcxx-inc=@<:@DIR@:>@],
  56. [path to CodeSynthesis XSD headers (ARG=path); use standard prefix (ARG=); disable (ARG=no)]
  57. ),
  58. [xsdcxx_include_dir="$withval"],
  59. [xsdcxx_include_dir=]
  60. )
  61. XSDCXX_CPPFLAGS=""
  62. if test "x$xsdcxx_include_dir" != "xno" -a "x$xsdcxx_include_dir" != "x"; then
  63. AC_SUBST([XSDCXX_CPPFLAGS],[-I$xsdcxx_include_dir])
  64. fi
  65. ])
  66. # vim:et: