configure.ac 900 B

1234567891011121314151617181920212223242526272829303132333435
  1. ## Process this file with autoconf to produce configure.
  2. ## In general, the safest way to proceed is to run ./autogen.sh
  3. AC_PREREQ(2.59)
  4. # Note: If you change the version, you must also update it in:
  5. # * java/pom.xml
  6. # * python/setup.py
  7. # * src/google/protobuf/stubs/common.h
  8. AC_INIT([protobuf],[2.0.3-SNAPSHOT],[protobuf@googlegroups.com])
  9. AC_CONFIG_SRCDIR(src/google/protobuf/message.cc)
  10. AC_CONFIG_HEADERS([config.h])
  11. AM_INIT_AUTOMAKE
  12. # Checks for programs.
  13. AC_PROG_CC
  14. AC_PROG_CXX
  15. AC_PROG_LIBTOOL
  16. AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
  17. # Checks for header files.
  18. AC_HEADER_STDC
  19. AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdlib.h unistd.h])
  20. # Checks for library functions.
  21. AC_FUNC_MEMCMP
  22. AC_FUNC_STRTOD
  23. AC_CHECK_FUNCS([ftruncate memset mkdir strchr strerror strtol])
  24. ACX_PTHREAD
  25. AC_CXX_STL_HASH
  26. AC_CONFIG_FILES([Makefile src/Makefile ])
  27. AC_OUTPUT