blob: 924ea4ff972fab419f45fa4ce123243cfaa5ab56 [file] [log] [blame]
pwyckoff99b000b2008-04-03 19:30:55 +00001# 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
10AC_PREREQ(2.52)
11AC_INIT([libfb303],[20080209])
12#AC_CONFIG_AUX_DIR([/usr/share/automake-1.9])
13# To install locally
14FB_INITIALIZE([localinstall])
15AC_PREFIX_DEFAULT([/usr/local])
16
17############################################################################
18# User Configurable. Change With CAUTION!
19# User can include custom makefile rules. Uncomment and update only <name> in PRODUCT_MK.
20# Include where appropriate in any Makefile.am as @PRODUCT_MK@
21
22#PRODUCT_MK="include ${EXTERNAL_PATH}/shared/build/<name>.mk"
23
24# Default path to external Facebook components and shared build toools I.e fb303 etc.
25# To point to other locations set environment variable EXTERNAL_PATH.
26# To change the current default you must change bootstrap.sh.
27FB_WITH_EXTERNAL_PATH([`pwd`])
28
29
30##########################################################################
31# User Configurable
32
33# Pre-defined macro to set opt build mode. Run with --disable-shared option to turn off optimization.
34FB_ENABLE_DEFAULT_OPT_BUILD
35
36# Predefined macro to set static library mode. Run with --disable-static option to turn off static lib mode.
37FB_ENABLE_DEFAULT_STATIC
38
39# Personalized feature generator. Creates defines/conditionals and --enable --disable command line options.
40# FB_ENABLE_FEATURE([FEATURE], [feature]) OR FB_ENABLE_FEATURE([FEATURE], [feature], [\"<value>\"])
41
42# Example: Macro supplies -DFACEBOOK at compile time and "if FACEBOOK endif" capabilities.
43
44# Personalized path generator Sets default paths. Provides --with-xx=DIR options.
45# FB_WITH_PATH([<var>_home], [<var>path], [<default location>]
46
47# Example: sets $(thrift_home) variable with default path set to /usr/local.
48FB_WITH_PATH([thrift_home], [thriftpath], [/usr/local])
49FB_WITH_PATH([boost_home], [boostpath], [/usr/local/boost])
50
51# Generates Makefile from Makefile.am. Modify when new subdirs are added.
52# Change Makefile.am also to add subdirectly.
53AC_CONFIG_FILES(Makefile cpp/Makefile py/Makefile)
54
55############################################################################
56# DO NOT TOUCH.
57
58AC_SUBST(PRODUCT_MK)
59AC_OUTPUT
60
61#############################################################################
62######### FINISH ############################################################
63
64echo "EXTERNAL_PATH $EXTERNAL_PATH"
65
66
67#
68# NOTES FOR USER
69# Short cut to create conditional flags.
70#enable_facebook="yes"
71#AM_CONDITIONAL([FACEBOOK], [test "$enable_facebook" = yes])
72#enable_hdfs="yes"
73#AM_CONDITIONAL([HDFS], [test "$enable_hdfs" = yes])
74
75# Enable options with --enable and --disable configurable.
76#AC_MSG_CHECKING([whether to enable FACEBOOK])
77#FACEBOOK=""
78#AC_ARG_ENABLE([facebook],
79# [ --enable-facebook Enable facebook.],
80# [
81# ENABLE_FACEBOOK=$enableval
82# ],
83# [
84# ENABLE_FACEBOOK="no"
85# ]
86#)
87#AM_CONDITIONAL([FACEBOOK], [test "$ENABLE_FACEBOOK" = yes])
88#AC_MSG_RESULT($ENABLE_FACEBOOK)
89