2008-08-14 19:33:26 +00:00
|
|
|
## Process this file with autoconf to produce configure.
|
|
|
|
## In general, the safest way to proceed is to run ./autogen.sh
|
|
|
|
|
|
|
|
AC_PREREQ(2.59)
|
|
|
|
|
|
|
|
# Note: If you change the version, you must also update it in:
|
|
|
|
# * java/pom.xml
|
|
|
|
# * python/setup.py
|
|
|
|
# * src/google/protobuf/stubs/common.h
|
|
|
|
AC_INIT(protobuf, 2.0.1-SNAPSHOT, protobuf@googlegroups.com)
|
|
|
|
|
|
|
|
AC_CONFIG_SRCDIR(src/google/protobuf/message.cc)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdlib.h unistd.h])
|
|
|
|
|
2008-08-14 19:33:37 +00:00
|
|
|
if pkg-config --atleast-version=1.9 mono; then
|
|
|
|
with_mono=yes
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(MONO, test x$with_mono = xyes)
|
|
|
|
|
2008-08-14 19:33:26 +00:00
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MEMCMP
|
|
|
|
AC_FUNC_STRTOD
|
|
|
|
AC_CHECK_FUNCS([ftruncate memset mkdir strchr strerror strtol])
|
|
|
|
|
|
|
|
ACX_PTHREAD
|
|
|
|
AC_CXX_STL_HASH
|
|
|
|
|
2008-08-14 19:33:37 +00:00
|
|
|
AC_OUTPUT( Makefile src/Makefile csharp/Makefile )
|