Merge pull request #83 from pbailis/master
[voldemort/jeffpc.git] / clients / cpp / autogen.sh
blobd23d5b29e2ad15b5a261c33bc46074d0b53b519c
1 #!/bin/sh
3 # Voldemort C client autogen.sh
4 # (c) 2009 Webroot Software, Inc.
6 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
7 # use this file except in compliance with the License. You may obtain a copy of
8 # the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 # License for the specific language governing permissions and limitations under
16 # the License.
18 # This autogen script will run the autotools to generate the build
19 # system. You should run this script in order to initialize a build
20 # immediately following a checkout.
22 for LIBTOOLIZE in libtoolize glibtoolize nope; do
23 $LIBTOOLIZE --version 2>&1 > /dev/null && break
24 done
26 if [ "x$LIBTOOLIZE" = "xnope" ]; then
27 echo
28 echo "You must have libtool installed to compile rocksafe."
29 echo "Download the appropriate package for your distribution,"
30 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
31 exit 1
34 ACLOCALDIRS=
35 if [ -d /usr/share/aclocal ]; then
36 ACLOCALDIRS="-I /usr/share/aclocal"
38 if [ -d /usr/local/share/aclocal ]; then
39 ACLOCALDIRS="$ACLOCALDIRS -I /usr/local/share/aclocal"
42 $LIBTOOLIZE --automake --force && \
43 aclocal --force $ACLOCALDIRS && \
44 autoconf --force $ACLOCALDIRS && \
45 autoheader --force && \
46 automake --add-missing --foreign && \
47 echo "You may now configure the software by running ./configure" && \
48 echo "Run ./configure --help to get information on the options " && \
49 echo "that are available."