Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

96 lines (82 sloc) 2.53 kb
# libvbucket
# Copyright (C) 2010 NorthScale, Inc
# All rights reserved.
#
# Use and distribution licensed under the BSD license. See
# the COPYING file in this directory for full text.
AC_PREREQ(2.59)
m4_include([m4/version.m4])
AC_INIT(libvbucket, VERSION_NUMBER, trond@northscale.com)
AC_CONFIG_SRCDIR([src/vbucket.c])
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_DISABLE_STATIC
# the malloc tests seems to be broken for cross compilation.. ignore them
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, force-gcc42)
PANDORA_REQUIRE_LIBHASHKIT
AH_TOP([
#ifndef CONFIG_H
#define CONFIG_H
/*
* Copyright (C) 2010 NorthScale, Inc
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the COPYING file in this directory for full text.
*/
#ifdef _SYS_FEATURE_TESTS_H
#error "You should include config.h as your first include file"
#endif
])
if test "x${enable_dependency_tracking}" = "x"
then
enable_dependency_tracking=yes
fi
AM_CPPFLAGS="$AM_CPPFLAGS -I\${top_srcdir}/include"
AS_IF([test "x$SUNCC" = "xyes"],
[
CFLAGS="-D_XOPEN_SOURCE=600 $CFLAGS"
CPPFLAGS="-xldscope=hidden -mt $CPPFLAGS"
])
AH_BOTTOM([
#endif
])
AC_ARG_WITH([docs],
[AS_HELP_STRING([--with-docs],
[Generate documentation (yes|no) @<:@default=yes@:>@])],
[with_docs=$withval],
[with_docs=yes])
AS_IF([test "$with_docs" = "yes"],
[
REQUIRE_POD2MAN
])
AM_CONDITIONAL(BUILD_DOCS, test "$with_docs" = "yes")
dnl ----------------------------------------------------------------------------
AC_CONFIG_FILES(Makefile libvbucket.pc)
AC_OUTPUT
echo "---"
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
echo ""
echo " * Installation prefix: $prefix"
echo " * System type: $host_vendor-$host_os"
echo " * Host CPU: $host_cpu"
echo " * C Compiler: $CC_VERSION"
echo " * C++ Compiler: $CXX_VERSION"
echo " * Assertions enabled: $ac_cv_assert"
echo " * Debug enabled: $with_debug"
echo " * Warnings as failure: $ac_cv_warnings_as_errors"
echo ""
echo "---"
AS_IF(test "$with_docs" = "no",
[
echo "*****"
echo "*"
echo "* WARNING: You are not generating any documentation."
echo "* Please don't ship libvbucket to an end user"
echo "* without documentation..."
echo "*"
echo "*****"
])
Jump to Line
Something went wrong with that request. Please try again.