aboutsummaryrefslogtreecommitdiff
path: root/pd/autogen.sh
blob: 8984034f7e3eeba862d8fe728686e58ff64c55b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

PATH=/sw/bin:$PATH

PWD=${0%/*}


## git cannot really handle empty directories
## so let's create the missing ones
mkdir -p ${PWD}/m4/generated

case `uname -s` in
    MINGW*)
# autoreconf doesn't always work on MinGW
	aclocal --force -I m4/generated -I m4 && \
        libtoolize --install --force && \
	autoconf --force && \
	automake --add-missing --copy --force-missing && \
	true
        ;;
    *)
        autoreconf --install --force --verbose
    ;;
esac