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