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

# a silly hack that generates autoregen.sh but it's handy
echo "#!/bin/sh" > autoregen.sh
echo "./autogen.sh $@ \$@" >> autoregen.sh
chmod +x autoregen.sh

mkdir -p m4

test -n "$srcdir" || srcdir=$(dirname "$0")
test -n "$srcdir" || srcdir=.
(
  cd "$srcdir" &&
  AUTOPOINT='intltoolize --automake -c -f' autoreconf -fiv &&
  test -f "po/Makefile.in.in" || intltoolize -c -f
) || exit
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"