Put AM_<FLAGS> after QT_<FLAGS>
[autotroll.git] / bootstrap
blob5c48e33b687cc08bfb83952d6db8b422ba8dd239
1 #! /bin/sh
3 set -e
5 if test -f bootstrap.cfg; then
6 source bootstrap.cfg
7 fi
9 for i in $keep
11 cp $i $i.bak
12 done
14 # On some environments (Darwin Ports), libtoolize is glibtoolize.
15 # I suppose their autoreconf is adjusted accordingly, but I use
16 # my custom Autoconf...
17 for lt in "$LIBTOOLIZE" libtoolize glibtoolize
19 if ($lt --version) >/dev/null 2>&1; then
20 export LIBTOOLIZE="$lt"
21 break
23 done
25 autoreconf -f -v -i
27 for i in $keep
29 mv $i.bak $i
30 done
32 # If the pseudo-standard name "_build" is used, then how about trying
33 # to continue the re-build?
34 if test -f _build/config.status; then
35 cd _build
36 ./config.status --recheck
37 ./config.status
38 make