liblzma: Prevent an empty translation unit in Windows builds.
[xz/debian.git] / autogen.sh
blobd5cec1b613eed1a044a4eb6f4de70cc1184f2bfd
1 #!/bin/sh
3 ###############################################################################
5 # Author: Lasse Collin
7 # This file has been put into the public domain.
8 # You can do whatever you want with this file.
10 ###############################################################################
12 set -e -x
14 # The following six lines are almost identical to "autoreconf -fi" but faster.
15 ${AUTOPOINT:-autopoint} -f
16 ${LIBTOOLIZE:-libtoolize} -c -f || glibtoolize -c -f
17 ${ACLOCAL:-aclocal} -I m4
18 ${AUTOCONF:-autoconf}
19 ${AUTOHEADER:-autoheader}
20 ${AUTOMAKE:-automake} -acf --foreign
22 # Generate the translated man pages and the doxygen documentation if the
23 # "po4a" and "doxygen" tools are available.
24 # This is *NOT* done by "autoreconf -fi" or when "make" is run.
25 # Pass --no-po4a or --no-doxygen to this script to skip these steps.
26 # It can be useful when you know that po4a or doxygen aren't available and
27 # don't want autogen.sh to exit with non-zero exit status.
28 generate_po4a="y"
29 generate_doxygen="y"
31 for arg in "$@"
33 case $arg in
34 "--no-po4a")
35 generate_po4a="n"
38 "--no-doxygen")
39 generate_doxygen="n"
41 esac
42 done
44 if test "$generate_po4a" != "n"; then
45 cd po4a
46 sh update-po
47 cd ..
50 if test "$generate_doxygen" != "n"; then
51 cd doxygen
52 sh update-doxygen
53 cd ..
56 exit 0