Implemented Debug Tag functionality
[public/netxms.git] / reconf
... / ...
CommitLineData
1#!/bin/sh
2# Copyright (C) 2004 Alex Kirhenshtein <alk@alk.lv>
3#
4# This file is free software; as a special exception the author gives
5# unlimited permission to copy and/or distribute it, with or without
6# modifications, as long as this notice is preserved.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12autoreconf -fi -W none,obsolete,syntax
13exit $?
14
15ACLOCAL=aclocal
16AUTOCONF=autoconf
17AUTOHEADER=autoheader
18AUTOMAKE=automake
19if test -x "`which libtoolize`"; then
20 LIBTOOLIZE=libtoolize
21fi
22if test -x "`which glibtoolize`"; then
23 LIBTOOLIZE=glibtoolize
24fi
25
26mkdir -p config
27touch README
28
29echo \*\*\* ACLOCAL: `which $ACLOCAL`
30echo \*\*\* AUTOCONF: `which $AUTOCONF`
31echo \*\*\* AUTOHEADER: `which $AUTOHEADER`
32echo \*\*\* AUTOMAKE: `which $AUTOMAKE`
33echo \*\*\* LIBTOOLIZE: `which $LIBTOOLIZE`
34
35rm -f config.cache &&
36[ ! -f config/ltmain.sh ] && $LIBTOOLIZE
37echo "- aclocal." &&
38$ACLOCAL -I m4 &&
39echo "- autoconf." &&
40$AUTOCONF &&
41echo "- autoheader." &&
42$AUTOHEADER &&
43echo "- automake." &&
44$AUTOMAKE -a &&
45chmod 755 configure
46
47if test -d src/private; then
48 FILES=`cat src/private/configure.files`
49 for file in $FILES; do
50 echo "Processing $file"
51 $AUTOMAKE $file
52 done
53fi
54
55exit $?