Subversion Repositories SmartDukaan

Rev

Rev 301 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
301 ashish 1
# Autoconf input file
2
# $Id$
3
 
4
# AC - autoconf
5
# FB - facebook
6
 
7
#########################################################################
8
# DO NOT TOUCH EXCEPT TO CHANGE REV# IN AC_INIT
9
 
10
AC_PREREQ(2.52)
11
AC_INIT([scribe], [1.5.0])
12
AC_CONFIG_MACRO_DIR([aclocal])
13
AM_INIT_AUTOMAKE([foreign -Wall])
14
# To install locally
15
FB_INITIALIZE([localinstall])
16
AC_PREFIX_DEFAULT([/usr/local])
17
 
18
############################################################################
19
# User Configurable. Change With CAUTION!
20
# User can include custom makefile rules. Uncomment and update only <name> in PRODUCT_MK.
21
# Include where appropriate in any Makefile.am as @PRODUCT_MK@
22
 
23
#PRODUCT_MK="include ${EXTERNAL_PATH}/shared/build/<name>.mk"
24
 
25
# Default path to external Facebook components and shared build toools I.e fb303 etc.
26
# To point to other locations set  environment variable EXTERNAL_PATH.
27
# To change the current default you must change bootstrap.sh.
28
FB_WITH_EXTERNAL_PATH([`pwd`])
29
 
30
AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules.
31
                         (Normal --prefix is ignored for Python because
32
                         Python has different conventions.)
33
                         Default = "/usr"])
34
AS_IF([test "x$PY_PREFIX" = x], [PY_PREFIX="/usr"])
35
 
36
##########################################################################
37
# User Configurable
38
 
39
# Pre-defined macro to set opt build mode. Run with --disable-shared option to turn off optimization.
40
FB_ENABLE_DEFAULT_OPT_BUILD
41
 
42
# Predefined macro to set static library mode. Run with --disable-static option to turn off static lib mode.
43
FB_ENABLE_DEFAULT_STATIC
44
 
45
# Personalized feature generator. Creates defines/conditionals and --enable --disable command line options.
46
# FB_ENABLE_FEATURE([FEATURE], [feature]) OR FB_ENABLE_FEATURE([FEATURE], [feature], [\"<value>\"])
47
 
48
# Example: Macro supplies -DFACEBOOK at compile time and "if FACEBOOK endif" capabilities.
49
FB_ENABLE_FEATURE([FACEBOOK], [facebook])
50
FB_ENABLE_FEATURE([USE_SCRIBE_HDFS], [hdfs])
51
 
52
# Personalized path generator Sets default paths. Provides --with-xx=DIR options.
53
# FB_WITH_PATH([<var>_home], [<var>path], [<default location>]
54
 
55
# Example: sets $(thrift_home) variable with default path set to /usr/local.
56
FB_WITH_PATH([thrift_home], [thriftpath], [/usr/local])
57
FB_WITH_PATH([fb303_home], [fb303path], [/usr/local])
58
FB_WITH_PATH([smc_home], [smcpath], [${EXTERNAL_PATH}/services/trunk/src])
59
FB_WITH_PATH([fb_home], [fbpath], [${EXTERNAL_PATH}/libfacebook])
60
FB_WITH_PATH([hadoop_home], [hadooppath], [/usr/local])
61
 
62
# Require boost 1.36 with system and filesytem libraries
63
AX_BOOST_BASE([1.36])
64
AX_BOOST_SYSTEM
65
AX_BOOST_FILESYSTEM
66
 
67
# Generates Makefile from Makefile.am. Modify when new subdirs are added.
68
# Change Makefile.am also to add subdirectly.
69
AC_CONFIG_FILES(Makefile src/Makefile lib/py/Makefile)
70
 
71
############################################################################
72
# DO NOT TOUCH.
73
 
74
AC_SUBST(PRODUCT_MK)
75
AC_OUTPUT
76
 
77
#############################################################################
78
######### FINISH ############################################################
79
 
80
echo "EXTERNAL_PATH $EXTERNAL_PATH"
81
 
82
#make clean
83
 
84
#
85
# NOTES FOR USER
86
# Short cut to create conditional flags.
87
#enable_facebook="yes"
88
#AM_CONDITIONAL([FACEBOOK], [test "$enable_facebook" = yes])
89
 
90
# Enable options with --enable and --disable configurable.
91
#AC_MSG_CHECKING([whether to enable FACEBOOK])
92
#FACEBOOK=""
93
#AC_ARG_ENABLE([facebook],
94
#  [  --enable-facebook     Enable facebook.],
95
#  [
96
#     ENABLE_FACEBOOK=$enableval
97
#  ],
98
#  [
99
#     ENABLE_FACEBOOK="no"
100
#  ]
101
#)
102
#AM_CONDITIONAL([FACEBOOK], [test "$ENABLE_FACEBOOK" = yes])
103
#AC_MSG_RESULT($ENABLE_FACEBOOK)
104