summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 8e9caeede5e4be325a0fa4808f5bf04e90533370 (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
25
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
set -e

autoreconf -i -f
intltoolize --force --copy --automake

if test -z "$NOCONFIGURE"; then
    run_configure=true
    for arg in $*; do
	case $arg in
            --no-configure)
		run_configure=false
		;;
            *)
		;;
	esac
    done
else
    run_configure=false
fi

if test $run_configure = true; then
    ./configure "$@"
fi