Obsolete check removed
[public/netxms.git] / reconf
CommitLineData
3d9b275c 1#!/bin/sh
950013d9
AK
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
b263092f
VK
12ACLOCAL=aclocal
13AUTOCONF=autoconf
14AUTOHEADER=autoheader
15AUTOMAKE=automake
bde311b8 16if test -x "`which libtoolize`"; then
6caa8b7f
VK
17 LIBTOOLIZE=libtoolize
18fi
bde311b8 19if test -x "`which glibtoolize`"; then
6caa8b7f
VK
20 LIBTOOLIZE=glibtoolize
21fi
3d9b275c 22
c2f314dc 23mkdir -p config
050afaa8 24touch README
c2f314dc 25
6cd235ca
AK
26echo \*\*\* ACLOCAL: `which $ACLOCAL`
27echo \*\*\* AUTOCONF: `which $AUTOCONF`
28echo \*\*\* AUTOHEADER: `which $AUTOHEADER`
29echo \*\*\* AUTOMAKE: `which $AUTOMAKE`
30echo \*\*\* LIBTOOLIZE: `which $LIBTOOLIZE`
31
950013d9 32rm -f config.cache &&
3d9b275c 33[ ! -f config/ltmain.sh ] && $LIBTOOLIZE
950013d9 34echo "- aclocal." &&
3d9b275c 35$ACLOCAL -I m4 &&
950013d9 36echo "- autoconf." &&
3d9b275c 37$AUTOCONF &&
950013d9 38echo "- autoheader." &&
3d9b275c 39$AUTOHEADER &&
950013d9 40echo "- automake." &&
3d9b275c 41$AUTOMAKE -a &&
4cd0c9a7
VK
42chmod 755 configure
43
44if test -d src/private; then
45 FILES=`cat src/private/configure.files`
46 for file in $FILES; do
47 echo "Processing $file"
48 $AUTOMAKE $file
49 done
50fi
51
6693a1d0 52exit $?