mconnect - KDE Connect protocol implementation in Vala/C
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.

67 lines
2.0 KiB

  1. #
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License version 2 as
  4. # published by the Free Software Foundation.
  5. #
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. # GNU General Public License for more details.
  10. #
  11. # You should have received a copy of the GNU General Public License along
  12. # with this program; if not, write to the Free Software Foundation, Inc.,
  13. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  14. #
  15. # AUTHORS
  16. # Maciek Borzecki <maciek.borzecki (at] gmail.com>
  17. #
  18. AC_PREREQ(2.61)
  19. AC_INIT([mconnect], [0.1.0], [maciek.borzecki@gmail.com])
  20. AC_CONFIG_SRCDIR([src/main.vala])
  21. AC_CONFIG_AUX_DIR([.])
  22. AC_PROG_MAKE_SET
  23. AM_PROG_LIBTOOL
  24. AM_INIT_AUTOMAKE([tar-pax foreign subdir-objects])
  25. AM_SILENT_RULES([yes])
  26. AM_MAINTAINER_MODE
  27. # Checks for header files.
  28. # AC_HEADER_STDC
  29. # AC_CHECK_HEADERS([stdlib.h])
  30. # Checks for typedefs, structures, and compiler characteristics.
  31. # AC_C_CONST
  32. # Checks for programs.
  33. AC_PROG_CC
  34. AM_PROG_VALAC([0.7.0])
  35. AC_PROG_INSTALL
  36. AC_SUBST(MCONNECT_VALAFLAGS, ["--pkg=json-glib-1.0 --pkg=gee-0.8 --pkg=libnotify"])
  37. # AC_SUBST(MCONNECT_VALAFLAGS, [--pkg=json-glib-1.0 --pkg=gee-0.8])
  38. PKG_CHECK_MODULES(MCONNECT, [glib-2.0,
  39. gobject-2.0,
  40. gobject-introspection-1.0
  41. gio-2.0,
  42. gio-unix-2.0,
  43. json-glib-1.0,
  44. gee-0.8,
  45. libcrypto
  46. libnotify
  47. ])
  48. AC_SUBST(MCONNECT_CFLAGS)
  49. AC_SUBST(MCONNECT_LIBS)
  50. AC_SUBST(G_IR_SCANNER,$($PKG_CONFIG gobject-introspection-1.0 --variable=g_ir_scanner))
  51. AC_PATH_PROG([VALA_API_GEN], [vapigen])
  52. if test -z "$VALA_API_GEN"; then
  53. AC_MSG_ERROR([vapigen is needed])
  54. fi
  55. # Files to generate
  56. AC_CONFIG_FILES([Makefile])
  57. # Output
  58. AC_OUTPUT