protobuf-c/configure.ac
Robert Edmonds 3128296851 t/test-full.proto: revert 'option allow_alias = true;'
this option is only supported by the upstream protobuf compiler starting
with version 2.5.0. this version is not yet widely available in the
debian/ubuntu repositories, and we would like to avoid breaking the
build on those platforms with the distribution version of protobuf
installed, so revert the following commits:

 - 5ee9c03478ea13bba03e7d7edacf723f324200c2
 - 84e41e7329f1f0fc09b41ee96e17b28a792cefcf
2013-11-18 13:00:44 -05:00

83 lines
2.3 KiB
Plaintext

AC_PREREQ(2.60)
AC_INIT([protobuf-c], [0.16])
AC_CONFIG_SRCDIR([protobuf-c/protobuf-c.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules subdir-objects])
AC_PROG_CC_STDC
AC_PROG_CXX
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AC_CONFIG_MACRO_DIR([m4])
AM_SILENT_RULES([yes])
LT_INIT
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([Makefile protobuf-c/libprotobuf-c.pc protobuf-c-rpc/libprotobuf-c-rpc.pc])
AC_CHECK_HEADERS(alloca.h)
AC_CHECK_HEADERS(inttypes.h)
AC_CHECK_HEADERS(io.h)
AC_CHECK_HEADERS(malloc.h)
AC_CHECK_HEADERS(sys/poll.h)
AC_CHECK_HEADERS(sys/select.h)
AC_CHECK_HEADERS(sys/uio.h)
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(winsock.h)
AC_PATH_PROG(PROTOC, protoc)
PKG_PROG_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
# Horrible hack for systems where the pkg-config install directory is simply wrong!
if $PKG_CONFIG --variable=pc_path pkg-config 2>/dev/null | grep -q /libdata/; then
PKG_INSTALLDIR(['${prefix}/libdata/pkgconfig'])
else
PKG_INSTALLDIR
fi
else
AC_MSG_ERROR([pkg-config is required!])
fi
AC_ARG_ENABLE(
[protoc],
AS_HELP_STRING([--disable-protoc], [Disable building the protobuf-c compiler])
)
AS_IF(
[test "x$enable_protoc" != "xno"],
[
PKG_CHECK_MODULES([protobuf], [protobuf])
AC_LANG_PUSH([C++])
]
)
AM_CONDITIONAL([BUILD_PROTOC_C], [test "x$enable_protoc" != "xno"])
AC_ARG_ENABLE(
[rpc],
AS_HELP_STRING([--enable-rpc], [Enable building the protobuf-c rpc library])
)
AM_CONDITIONAL([BUILD_RPC], [test "x$enable_rpc" = "xyes"])
AC_C_BIGENDIAN(
[AC_DEFINE([IS_LITTLE_ENDIAN], [0], [Define to 1 if system is little endian])],
[AC_DEFINE([IS_LITTLE_ENDIAN], [1], [Define to 1 if system is little endian])],
[AC_MSG_FAILURE([unable to determine endianness])]
)
AC_OUTPUT
AC_MSG_RESULT([
$PACKAGE $VERSION
compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}
libs: ${LIBS}
prefix: ${prefix}
sysconfdir: ${sysconfdir}
libdir: ${libdir}
includedir: ${includedir}
pkgconfigdir: ${pkgconfigdir}
bigendian: ${ac_cv_c_bigendian}
])