1#!/bin/bash
2echo "*** Recreating libtool files"
3if [ "$LIBTOOLIZE" = "" ] && [ "`uname`" == "Darwin" ]; then
4        if command -v "glibtoolize" > /dev/null; then
5            LIBTOOLIZE=glibtoolize
6            $LIBTOOLIZE -f -c;
7        elif command -v "libtoolize" > /dev/null; then
8            LIBTOOLIZE=libtoolize
9            $LIBTOOLIZE -f -c;
10        else
11            echo "DIST: line $LINENO: command libtoolize or glibtoolize not found"
12            exit 1
13        fi
14fi
15
16
17if [ "$LIBTOOLIZE" = "" ] && [ "`uname`" == "Linux" ]; then
18        if command -v "libtoolize" > /dev/null; then
19            LIBTOOLIZE=libtoolize
20            $LIBTOOLIZE -f -c;
21        else
22            echo "DIST: line $LINENO: command libtoolize not found"
23            exit 1
24        fi
25fi
26
27echo "*** Recreating aclocal.m4"
28ACLOCAL="$AUTODIR""aclocal"
29echo "$ACLOCAL"
30	$ACLOCAL -I .;
31
32echo "*** Recreating configure"
33AUTOCONF="$AUTODIR""autoconf"
34AUTOHEAD="$AUTODIR""autoheader"
35	$AUTOHEAD ;
36	$AUTOCONF;
37
38echo "*** Recreating the Makefile.in files"
39AUTOMAKE="$AUTODIR""automake"
40	$AUTOMAKE --foreign -a -c;
41
42