Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 ashish 1
# Autoconf input file
2
# $Id$
3
 
4
# AC - autoconf
5
# FB - facebook
6
 
7
#
8
# Licensed to the Apache Software Foundation (ASF) under one
9
# or more contributor license agreements. See the NOTICE file
10
# distributed with this work for additional information
11
# regarding copyright ownership. The ASF licenses this file
12
# to you under the Apache License, Version 2.0 (the
13
# "License"); you may not use this file except in compliance
14
# with the License. You may obtain a copy of the License at
15
#
16
#   http://www.apache.org/licenses/LICENSE-2.0
17
#
18
# Unless required by applicable law or agreed to in writing,
19
# software distributed under the License is distributed on an
20
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
# KIND, either express or implied. See the License for the
22
# specific language governing permissions and limitations
23
# under the License.
24
#
25
 
26
#########################################################################
27
# DO NOT TOUCH EXCEPT TO CHANGE REV# IN AC_INIT
28
 
29
AC_PREREQ(2.52)
30
AC_INIT([libfb303],[20080209])
31
#AC_CONFIG_AUX_DIR([/usr/share/automake-1.9])
32
# To install locally
33
FB_INITIALIZE([localinstall])
34
AC_PREFIX_DEFAULT([/usr/local])
35
 
36
############################################################################
37
# User Configurable. Change With CAUTION!
38
# User can include custom makefile rules. Uncomment and update only <name> in PRODUCT_MK.
39
# Include where appropriate in any Makefile.am as @PRODUCT_MK@
40
 
41
#PRODUCT_MK="include ${EXTERNAL_PATH}/shared/build/<name>.mk"
42
 
43
# Default path to external Facebook components and shared build toools I.e fb303 etc.
44
# To point to other locations set  environment variable EXTERNAL_PATH.
45
# To change the current default you must change bootstrap.sh.
46
FB_WITH_EXTERNAL_PATH([`pwd`])
47
 
48
AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules.
49
                         (Normal --prefix is ignored for Python because
50
                         Python has different conventions.)
51
                         Default = "/usr"])
52
AS_IF([test "x$PY_PREFIX" = x], [PY_PREFIX="/usr"])
53
 
54
##########################################################################
55
# User Configurable
56
 
57
# Pre-defined macro to set opt build mode. Run with --disable-shared option to turn off optimization.
58
FB_ENABLE_DEFAULT_OPT_BUILD
59
 
60
# Predefined macro to set static library mode. Run with --disable-static option to turn off static lib mode.
61
FB_ENABLE_DEFAULT_STATIC
62
 
63
# Personalized feature generator. Creates defines/conditionals and --enable --disable command line options.
64
# FB_ENABLE_FEATURE([FEATURE], [feature]) OR FB_ENABLE_FEATURE([FEATURE], [feature], [\"<value>\"])
65
 
66
# Example: Macro supplies -DFACEBOOK at compile time and "if FACEBOOK endif" capabilities.
67
 
68
# Personalized path generator Sets default paths. Provides --with-xx=DIR options.
69
# FB_WITH_PATH([<var>_home], [<var>path], [<default location>]
70
 
71
# Example: sets $(thrift_home) variable with default path set to /usr/local.
72
FB_WITH_PATH([thrift_home], [thriftpath], [/usr/local])
73
 
74
# Require boost 1.33.1 or later
75
AX_BOOST_BASE([1.33.1])
76
 
77
# Generates Makefile from Makefile.am. Modify when new subdirs are added.
78
# Change Makefile.am also to add subdirectly.
79
AC_CONFIG_FILES(Makefile cpp/Makefile py/Makefile)
80
 
81
############################################################################
82
# DO NOT TOUCH.
83
 
84
AC_SUBST(PRODUCT_MK)
85
AC_OUTPUT
86
 
87
#############################################################################
88
######### FINISH ############################################################
89
 
90
echo "EXTERNAL_PATH $EXTERNAL_PATH"
91
 
92
 
93
#
94
# NOTES FOR USER
95
# Short cut to create conditional flags.
96
#enable_facebook="yes"
97
#AM_CONDITIONAL([FACEBOOK], [test "$enable_facebook" = yes])
98
#enable_hdfs="yes"
99
#AM_CONDITIONAL([HDFS], [test "$enable_hdfs" = yes])
100
 
101
# Enable options with --enable and --disable configurable.
102
#AC_MSG_CHECKING([whether to enable FACEBOOK])
103
#FACEBOOK=""
104
#AC_ARG_ENABLE([facebook],
105
#  [  --enable-facebook     Enable facebook.],
106
#  [
107
#     ENABLE_FACEBOOK=$enableval
108
#  ],
109
#  [
110
#     ENABLE_FACEBOOK="no"
111
#  ]
112
#)
113
#AM_CONDITIONAL([FACEBOOK], [test "$ENABLE_FACEBOOK" = yes])
114
#AC_MSG_RESULT($ENABLE_FACEBOOK)
115