Brian Silverman | 70325d6 | 2015-09-20 17:00:43 -0400 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Before using, you should figure out all the .m4 macros that your |
| 4 | # configure.m4 script needs and make sure they exist in the m4/ |
| 5 | # directory. |
| 6 | # |
| 7 | # These are the files that this script might edit: |
| 8 | # aclocal.m4 configure Makefile.in src/config.h.in \ |
| 9 | # depcomp config.guess config.sub install-sh missing mkinstalldirs \ |
| 10 | # |
| 11 | # Here's a command you can run to see what files aclocal will import: |
| 12 | # aclocal -I ../autoconf --output=- | sed -n 's/^m4_include..\([^]]*\).*/\1/p' |
| 13 | |
| 14 | # Because libtoolize isn't in the hermetic build, autogen doesn't run it. |
| 15 | # However, it should be run manually periodically to update these files: |
| 16 | # in .: ltmain.sh |
| 17 | # in m4: libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4 |
| 18 | |
| 19 | set -ex |
| 20 | rm -rf autom4te.cache |
| 21 | |
| 22 | aclocal --force -I m4 |
| 23 | #grep -q LIBTOOL configure.ac && libtoolize -c -f |
| 24 | autoconf -f -W all,no-obsolete |
| 25 | autoheader -f -W all |
| 26 | automake -a -c -f -W all |
| 27 | |
| 28 | rm -rf autom4te.cache |
| 29 | exit 0 |