Implemented retention time for DCO instances. Fixes #NX-757
[public/netxms.git] / reconf
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
12 autoreconf -fi -W none,obsolete,syntax
13 exit $?
14
15 ACLOCAL=aclocal
16 AUTOCONF=autoconf
17 AUTOHEADER=autoheader
18 AUTOMAKE=automake
19 if test -x "`which libtoolize`"; then
20 LIBTOOLIZE=libtoolize
21 fi
22 if test -x "`which glibtoolize`"; then
23 LIBTOOLIZE=glibtoolize
24 fi
25
26 mkdir -p config
27 touch README
28
29 echo \*\*\* ACLOCAL: `which $ACLOCAL`
30 echo \*\*\* AUTOCONF: `which $AUTOCONF`
31 echo \*\*\* AUTOHEADER: `which $AUTOHEADER`
32 echo \*\*\* AUTOMAKE: `which $AUTOMAKE`
33 echo \*\*\* LIBTOOLIZE: `which $LIBTOOLIZE`
34
35 rm -f config.cache &&
36 [ ! -f config/ltmain.sh ] && $LIBTOOLIZE
37 echo "- aclocal." &&
38 $ACLOCAL -I m4 &&
39 echo "- autoconf." &&
40 $AUTOCONF &&
41 echo "- autoheader." &&
42 $AUTOHEADER &&
43 echo "- automake." &&
44 $AUTOMAKE -a &&
45 chmod 755 configure
46
47 if 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
53 fi
54
55 exit $?