configure.ac 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. # -*- Autoconf -*-
  17. # Process this file with autoconf to produce a configure script.
  18. AC_PREREQ(2.59)
  19. AC_INIT([zoolock], [3.2.0])
  20. AC_CONFIG_SRCDIR([include/zoo_lock.h])
  21. PACKAGE=zoolock
  22. VERSION=1.0
  23. AC_SUBST(PACKAGE)
  24. AC_SUBST(VERSION)
  25. BUILD_PATH="`pwd`"
  26. # Checks for programs.
  27. AC_LANG_CPLUSPLUS
  28. AM_INIT_AUTOMAKE([-Wall foreign])
  29. # Checks for libraries.
  30. #initialize Doxygen support
  31. DX_HTML_FEATURE(ON)
  32. DX_CHM_FEATURE(OFF)
  33. DX_CHI_FEATURE(OFF)
  34. DX_MAN_FEATURE(OFF)
  35. DX_RTF_FEATURE(OFF)
  36. DX_XML_FEATURE(OFF)
  37. DX_PDF_FEATURE(OFF)
  38. DX_PS_FEATURE(OFF)
  39. DX_INIT_DOXYGEN([zookeeper-locks],[c-doc.Doxyfile],[docs])
  40. ZOOKEEPER_PATH=${BUILD_PATH}/../../../../../src/c
  41. ZOOKEEPER_LD=-L${BUILD_PATH}/../../../../../src/c\ -lzookeeper_mt
  42. AC_SUBST(ZOOKEEPER_PATH)
  43. AC_SUBST(ZOOKEEPER_LD)
  44. # Checks for header files.
  45. AC_HEADER_DIRENT
  46. AC_HEADER_STDC
  47. AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
  48. # Checks for typedefs, structures, and compiler characteristics.
  49. AC_HEADER_STDBOOL
  50. AC_C_CONST
  51. AC_TYPE_UID_T
  52. AC_C_INLINE
  53. AC_TYPE_OFF_T
  54. AC_TYPE_SIZE_T
  55. AC_STRUCT_ST_BLOCKS
  56. AC_HEADER_TIME
  57. AC_C_VOLATILE
  58. AC_PROG_CC
  59. AC_PROG_LIBTOOL
  60. #check for cppunit
  61. AM_PATH_CPPUNIT(1.10.2)
  62. # Checks for library functions.
  63. AC_FUNC_UTIME_NULL
  64. AC_CHECK_FUNCS([gettimeofday memset mkdir rmdir strdup strerror strstr strtol strtoul strtoull utime])
  65. AC_CONFIG_FILES([Makefile])
  66. AC_OUTPUT
  67. AC_C_VOLATILE