-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
54 lines (48 loc) · 1.6 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# memcached-engines
# Copyright (C) 2009 Trond Norbye
# All rights reserved.
#
# Use and distribution licensed under the BSD license. See
# the COPYING file in this directory for full text.
AC_PREREQ(2.61)
m4_include([m4/version.m4])
AC_INIT(sqlengine, VERSION_NUMBER, [email protected])
AC_CONFIG_SRCDIR([src])
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
PANDORA_CANONICAL_TARGET
AC_CHECK_HEADERS([memcached/engine.h])
AS_IF([test "x$ac_cv_header_memcached_engine_h" = "xno"],
[AC_MSG_ERROR([You need to install the engine interface to build engines])])
PANDORA_HAVE_LIBSQLITE3
PANDORA_HAVE_LIBZ
AS_IF([test "x$SUNCC" = "xyes"],
[
CPPFLAGS="-xldscope=hidden $CPPFLAGS"
CXXFLAGS="-erroff=truncwarn1,signextwarn,notused,inllargeuse $CXXFLAGS"
],
[ AS_IF([test "x$GCC" = "xyes" ],
[ CPPFLAGS="-fvisibility=hidden $CPPFLAGS" ])
])
AH_BOTTOM([
#if ((defined (__SUNPRO_C) || defined(__SUNPRO_CC)) || defined GCC)
#define EXPORT_FUNCTION __attribute__ ((visibility("default")))
#else
#define EXPORT_FUNCTION
#endif
])
AC_CONFIG_FILES(Makefile)
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 " * Assertions enabled: $ac_cv_assert"
echo " * Debug enabled: $with_debug"
echo " * Warnings as failure: $ac_cv_warnings_as_errors"
echo ""
echo "---"