aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 63ef6d49ef86ee4bfb6cf66037b2fb92bb5d42d9 (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

if command -v autoreconf; then
  opt="-i -f -W all,error"

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

  # shellcheck disable=SC2086
  exec autoreconf $opt
fi

set -e

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