2 # Run this to generate all the initial makefiles, etc.
4 # Make it possible to specify path in the environment
6 : ${AUTOHEADER=autoheader}
9 : ${GETTEXTIZE=gettextize}
12 test -z "$srcdir" && srcdir
=.
17 # Ensure that gettext is reasonably new.
18 gettext_ver
=`$GETTEXTIZE --version | sed -n '1s/^.* //p'`
22 *) echo "Don't use gettext other than versions 0.10.38 and 0.10.39"
27 $GETTEXTIZE --copy --force >tmpout ||
exit 1
29 mv po
/ChangeLog~ po
/ChangeLog
31 # Ugly way to parse the instructions gettexize gives us.
32 m4files
="`cat tmpout | sed -n -e '/^Please/,/^from/s/^ *//p'`"
33 fromdir
=`cat tmpout | sed -n -e '/^Please/,/^from/s/^from the \([^ ]*\) .*$/\1/p'`
38 cp -f $fromdir/$i gettext.
m4
41 $ACLOCAL -I gettext.
m4 $ACLOCAL_FLAGS || \
42 $ACLOCAL $ACLOCAL_FLAGS || \
46 $AUTOMAKE -a ||
exit 1
48 cd vfs
/samba ||
exit 1
49 date -u >include
/stamp-h.
in
54 $srcdir/configure
--cache-file=config.cache
--enable-maintainer-mode "$@"