summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 30847295bf8984872970054dae3d529f86d269cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

# Generate required files
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
(
  cd "$srcdir" &&
  touch ChangeLog && # Required by automake.
  (test -d m4 || mkdir m4) && # Required by gtkdocize
  gtkdocize &&
  autoreconf --verbose --force --install
) || exit

# Run configure
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"