4d9dcac7df646d4c8196f9bc1905b871248fc9ce
[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 ACLOCAL=aclocal-1.7
13 AUTOCONF=autoconf-2.59
14 AUTOHEADER=autoheader-2.59
15 AUTOMAKE=automake-1.7
16 LIBTOOLIZE=libtoolize
17
18 if [ `uname -s` = "FreeBSD" ]; then
19 ACLOCAL=aclocal19
20 AUTOCONF=autoconf259
21 AUTOHEADER=autoheader259
22 AUTOMAKE=automake19
23 LIBTOOLIZE=libtoolize15
24 fi
25
26 rm -f config.cache &&
27 [ ! -f config/ltmain.sh ] && $LIBTOOLIZE
28 echo "- aclocal." &&
29 $ACLOCAL -I m4 &&
30 echo "- autoconf." &&
31 $AUTOCONF &&
32 echo "- autoheader." &&
33 $AUTOHEADER &&
34 echo "- automake." &&
35 $AUTOMAKE -a &&
36 exit $?