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