blob: 0b2b1bcd632135d9f8e4a980a872fb0434a2f717 [file] [log] [blame]
Marc Slemkob09f5882006-08-23 22:03:34 +00001#!/bin/sh
2
David Reissea2cba82009-03-30 21:35:00 +00003#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the
9# "License"); you may not use this file except in compliance
10# with the License. You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing,
15# software distributed under the License is distributed on an
16# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17# KIND, either express or implied. See the License for the
18# specific language governing permissions and limitations
19# under the License.
20#
21
Bryan Duxburycd7a51f2010-08-19 15:21:04 +000022have_ac_version=`autoconf --version | head -1 | cut -d' ' -f4`
23desired_ac_version=2.65
24if [ `expr $have_ac_version \>= $desired_ac_version` -eq "0" ]; then
25 echo "Must have autoconf $desired_ac_version of higher."
26 exit 1
27fi
28
Mark Sleeeb0d0242007-01-25 07:58:55 +000029./cleanup.sh
Marc Slemkob09f5882006-08-23 22:03:34 +000030
David Reiss832b2622007-12-28 18:25:33 +000031autoscan || exit 1
David Reiss832b2622007-12-28 18:25:33 +000032aclocal -I ./aclocal || exit 1
David Reissa7d63f52009-04-02 21:37:12 +000033autoheader || exit 1
David Reiss832b2622007-12-28 18:25:33 +000034
35if libtoolize --version 1 >/dev/null 2>/dev/null; then
David Reiss8db89802009-05-06 22:00:33 +000036 libtoolize --copy --automake || exit 1
David Reiss832b2622007-12-28 18:25:33 +000037elif glibtoolize --version 1 >/dev/null 2>/dev/null; then
David Reiss8db89802009-05-06 22:00:33 +000038 glibtoolize --copy --automake || exit 1
David Reiss832b2622007-12-28 18:25:33 +000039fi
40
mvaradacharifbc91142008-01-01 04:51:24 +000041autoconf
David Reiss832b2622007-12-28 18:25:33 +000042automake -ac --add-missing --foreign || exit 1