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

if [ -x "`which autoreconf 2>/dev/null`" ] ; then
  opt="-if"

  for i in $@; do
    case "$i" in
      -v)
        opt=$opt"v"
        ;;
    esac
  done

  exec autoreconf $opt
fi

set -e

# Run this to generate all the initial makefiles, etc.
aclocal && \
	autoheader && \
	autoconf && \
	automake --add-missing --copy