blob: e73ea10fc1afbca687658e086d7633714b9712d8 [file] [log] [blame]
temporal40ee5512008-07-10 02:12:20 +00001## Process this file with autoconf to produce configure.
2## In general, the safest way to proceed is to run ./autogen.sh
3
4AC_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
kenton@google.coma001ed02008-12-01 23:47:49 +000010# * src/Makefile.am (Update -version-info for LDFLAGS if needed)
kenton@google.com7b29a262008-10-16 22:56:18 +000011AC_INIT([protobuf],[2.0.3-SNAPSHOT],[protobuf@googlegroups.com])
temporal40ee5512008-07-10 02:12:20 +000012
13AC_CONFIG_SRCDIR(src/google/protobuf/message.cc)
kenton@google.comc76caac2008-09-30 22:11:21 +000014AC_CONFIG_HEADERS([config.h])
temporal40ee5512008-07-10 02:12:20 +000015AM_INIT_AUTOMAKE
16
17# Checks for programs.
18AC_PROG_CC
19AC_PROG_CXX
20AC_PROG_LIBTOOL
21AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
22
23# Checks for header files.
24AC_HEADER_STDC
25AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdlib.h unistd.h])
26
27# Checks for library functions.
28AC_FUNC_MEMCMP
29AC_FUNC_STRTOD
30AC_CHECK_FUNCS([ftruncate memset mkdir strchr strerror strtol])
31
32ACX_PTHREAD
33AC_CXX_STL_HASH
34
kenton@google.comc76caac2008-09-30 22:11:21 +000035AC_CONFIG_FILES([Makefile src/Makefile ])
36AC_OUTPUT