forked from traviscrawford/scribe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
109 lines (85 loc) · 3.8 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Autoconf input file
# $Id$
# AC - autoconf
# FB - facebook
#########################################################################
# DO NOT TOUCH EXCEPT TO CHANGE REV# IN AC_INIT
AC_PREREQ(2.52)
AC_INIT([scribe], [1.5.0])
AC_CONFIG_MACRO_DIR([aclocal])
AM_INIT_AUTOMAKE([foreign -Wall])
# To install locally
FB_INITIALIZE([localinstall])
AC_PREFIX_DEFAULT([/usr/local])
AM_PATH_CPPUNIT(1.9.6)
############################################################################
# User Configurable. Change With CAUTION!
# User can include custom makefile rules. Uncomment and update only <name> in PRODUCT_MK.
# Include where appropriate in any Makefile.am as @PRODUCT_MK@
#PRODUCT_MK="include ${EXTERNAL_PATH}/shared/build/<name>.mk"
# Default path to external Facebook components and shared build toools I.e fb303 etc.
# To point to other locations set environment variable EXTERNAL_PATH.
# To change the current default you must change bootstrap.sh.
FB_WITH_EXTERNAL_PATH([`pwd`])
AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules.
(Normal --prefix is ignored for Python because
Python has different conventions.)
Default = "/usr"])
AS_IF([test "x$PY_PREFIX" = x], [PY_PREFIX="/usr"])
##########################################################################
# User Configurable
# Pre-defined macro to set opt build mode. Run with --disable-shared option to turn off optimization.
FB_ENABLE_DEFAULT_OPT_BUILD
# Predefined macro to set static library mode. Run with --disable-static option to turn off static lib mode.
FB_ENABLE_DEFAULT_STATIC
# Personalized feature generator. Creates defines/conditionals and --enable --disable command line options.
# FB_ENABLE_FEATURE([FEATURE], [feature]) OR FB_ENABLE_FEATURE([FEATURE], [feature], [\"<value>\"])
# Example: Macro supplies -DFACEBOOK at compile time and "if FACEBOOK endif" capabilities.
FB_ENABLE_FEATURE([FACEBOOK], [facebook])
FB_ENABLE_FEATURE([USE_SCRIBE_HDFS], [hdfs])
FB_ENABLE_FEATURE([HAVE_LZO], [lzo])
FB_ENABLE_FEATURE([USE_ZOOKEEPER], [zookeeper])
FB_ENABLE_FEATURE([USE_TCMALLOC], [tcmalloc])
FB_ENABLE_FEATURE([THRIFT_POST_2_0], [thriftpost20])
# Personalized path generator Sets default paths. Provides --with-xx=DIR options.
# FB_WITH_PATH([<var>_home], [<var>path], [<default location>]
# Example: sets $(thrift_home) variable with default path set to /usr/local.
FB_WITH_PATH([thrift_home], [thriftpath], [/usr/local])
FB_WITH_PATH([fb303_home], [fb303path], [/usr/local])
FB_WITH_PATH([smc_home], [smcpath], [${EXTERNAL_PATH}/services/trunk/src])
FB_WITH_PATH([fb_home], [fbpath], [${EXTERNAL_PATH}/libfacebook])
FB_WITH_PATH([hadoop_home], [hadooppath], [/usr/local])
# Require boost 1.36 with system and filesytem libraries
AX_BOOST_BASE([1.36])
AX_BOOST_SYSTEM
AX_BOOST_FILESYSTEM
# Generates Makefile from Makefile.am. Modify when new subdirs are added.
# Change Makefile.am also to add subdirectly.
AC_CONFIG_FILES(Makefile src/Makefile lib/py/Makefile)
############################################################################
# DO NOT TOUCH.
AC_SUBST(PRODUCT_MK)
AC_OUTPUT
#############################################################################
######### FINISH ############################################################
echo "EXTERNAL_PATH $EXTERNAL_PATH"
#make clean
#
# NOTES FOR USER
# Short cut to create conditional flags.
#enable_facebook="yes"
#AM_CONDITIONAL([FACEBOOK], [test "$enable_facebook" = yes])
# Enable options with --enable and --disable configurable.
#AC_MSG_CHECKING([whether to enable FACEBOOK])
#FACEBOOK=""
#AC_ARG_ENABLE([facebook],
# [ --enable-facebook Enable facebook.],
# [
# ENABLE_FACEBOOK=$enableval
# ],
# [
# ENABLE_FACEBOOK="no"
# ]
#)
#AM_CONDITIONAL([FACEBOOK], [test "$ENABLE_FACEBOOK" = yes])
#AC_MSG_RESULT($ENABLE_FACEBOOK)