configure.ac 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Gearman server and library
  2. # Copyright (C) 2008 Brian Aker, Eric Day, Monty Taylor
  3. # All rights reserved.
  4. #
  5. # Use and distribution licensed under the BSD license. See
  6. # the COPYING file in this directory for full text.
  7. AC_PREREQ(2.59)
  8. AC_INIT([gearmand],[0.11],[https://launchpad.net/gearmand])
  9. AC_CONFIG_SRCDIR(libgearman/gearman.c)
  10. AC_CONFIG_AUX_DIR(config)
  11. AC_CONFIG_HEADERS([config.h])
  12. AC_CONFIG_MACRO_DIR([m4])
  13. PANDORA_CANONICAL_TARGET(require-cxx)
  14. GEARMAN_LIBRARY_VERSION=3:0:0
  15. # | | |
  16. # +------+ | +---+
  17. # | | |
  18. # current:revision:age
  19. # | | |
  20. # | | +- increment if interfaces have been added
  21. # | | set to zero if interfaces have been removed
  22. # | | or changed
  23. # | +- increment if source code has changed
  24. # | set to zero if current is incremented
  25. # +- increment if interfaces have been added, removed or changed
  26. AC_SUBST(GEARMAN_LIBRARY_VERSION)
  27. GEARMAN_SERVER_LIBRARY_VERSION=0:1:0
  28. # | | |
  29. # +------+ | +---+
  30. # | | |
  31. # current:revision:age
  32. # | | |
  33. # | | +- increment if interfaces have been
  34. # | | added, set to zero if interfaces
  35. # | | have been removed or changed
  36. # | +- increment if source code has changed
  37. # | set to zero if current is incremented
  38. # +- increment if interfaces have been added, removed
  39. # or changed
  40. AC_SUBST(GEARMAN_SERVER_LIBRARY_VERSION)
  41. PANDORA_REQUIRE_PTHREAD
  42. PANDORA_REQUIRE_LIBEVENT
  43. PANDORA_REQUIRE_LIBUUID
  44. PANDORA_HAVE_BETTER_MALLOC
  45. PANDORA_HAVE_LIBSQLITE3
  46. PANDORA_HAVE_LIBDRIZZLE
  47. PANDORA_HAVE_LIBMEMCACHED
  48. PANDORA_HAVE_LIBPQ
  49. AC_CHECK_HEADERS(errno.h fcntl.h getopt.h netinet/tcp.h pwd.h signal.h)
  50. AC_CHECK_HEADERS(stdarg.h stddef.h stdio.h stdlib.h string.h)
  51. AC_CHECK_HEADERS(sys/resource.h sys/stat.h)
  52. AC_CHECK_HEADERS(sys/socket.h sys/types.h sys/utsname.h unistd.h strings.h)
  53. AC_CONFIG_FILES(Makefile
  54. libgearman/Makefile
  55. libgearman-server/Makefile
  56. gearmand/Makefile
  57. bin/Makefile
  58. tests/Makefile
  59. examples/Makefile
  60. scripts/Makefile
  61. support/Makefile
  62. benchmark/Makefile
  63. scripts/gearmand-init
  64. scripts/gearmand.xml
  65. scripts/gearmand
  66. scripts/smf_install.sh
  67. support/gearmand.pc
  68. support/gearmand.spec)
  69. AC_OUTPUT
  70. echo "---"
  71. echo "Configuration summary for $PACKAGE_NAME version $VERSION"
  72. echo ""
  73. echo " * Installation prefix: $prefix"
  74. echo " * System type: $host_vendor-$host_os"
  75. echo " * Host CPU: $host_cpu"
  76. echo " * C Compiler: $CC_VERSION"
  77. echo " * Assertions enabled: $ac_cv_assert"
  78. echo " * Debug enabled: $with_debug"
  79. echo " * Warnings as failure: $ac_cv_warnings_as_errors"
  80. echo " * Building with libsqlite3 $ac_cv_libsqlite3"
  81. echo " * Building with libdrizzle $ac_cv_libdrizzle"
  82. echo " * Building with libmemcached $ac_cv_libmemcached"
  83. echo " * Building with libpq $ac_cv_libpq"
  84. echo ""
  85. echo "---"