blob: 3f4602c087629f63cbca12924c3b3df6ed3b2775 [file] [log] [blame]
Marc Slemkob09f5882006-08-23 22:03:34 +00001#!/bin/sh
2
David Reiss832b2622007-12-28 18:25:33 +00003subdirs=" if"
Marc Slemkob09f5882006-08-23 22:03:34 +00004
Mark Sleeeb0d0242007-01-25 07:58:55 +00005./cleanup.sh
Marc Slemkob09f5882006-08-23 22:03:34 +00006
David Reiss832b2622007-12-28 18:25:33 +00007autoscan || exit 1
8autoheader || exit 1
9aclocal -I ./aclocal || exit 1
10
11if libtoolize --version 1 >/dev/null 2>/dev/null; then
12 libtoolize --automake || exit 1
13elif glibtoolize --version 1 >/dev/null 2>/dev/null; then
14 glibtoolize --automake || exit 1
15fi
16
mvaradacharifbc91142008-01-01 04:51:24 +000017autoconf
David Reiss832b2622007-12-28 18:25:33 +000018automake -ac --add-missing --foreign || exit 1
Marc Slemkob09f5882006-08-23 22:03:34 +000019
20for subdir in ${subdirs}; do
21 if [ -x "${subdir}/bootstrap.sh" ]; then
David Reiss832b2622007-12-28 18:25:33 +000022 cwd="`pwd`"
23 cd "${subdir}"
24 ./bootstrap.sh
25 cd "${cwd}"
Marc Slemkob09f5882006-08-23 22:03:34 +000026 fi
27done
28