Fri, 20 Oct 2017 13:50:13 +0200
adds support for older automake versions + comments in configure.ac
universe@253 | 1 | # the package version must match the macros in ucx.h |
universe@253 | 2 | # if you change the package version, don't forget to adjust the library version |
universe@253 | 3 | AC_INIT([ucx], [0.14], [olaf.wintermann@gmail.com]) |
universe@255 | 4 | |
universe@255 | 5 | # don't place everything in the project root |
universe@252 | 6 | AC_CONFIG_AUX_DIR([build-aux]) |
universe@252 | 7 | AC_CONFIG_MACRO_DIR([m4]) |
universe@255 | 8 | |
universe@255 | 9 | # we use our own directory structure |
universe@252 | 10 | AM_INIT_AUTOMAKE([foreign -Wall -Werror]) |
universe@255 | 11 | |
universe@255 | 12 | # if there is an archiver, use it |
universe@252 | 13 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
universe@255 | 14 | |
universe@255 | 15 | # we are compiling a library |
universe@252 | 16 | LT_INIT |
universe@255 | 17 | |
universe@255 | 18 | # we are dealing with C source code |
universe@252 | 19 | AC_PROG_CC |
universe@255 | 20 | |
universe@255 | 21 | # we want to support automake < 1.14, so we need this deprecated macro |
universe@255 | 22 | # it tests, whether the compiler allows -c and -o simultaneously |
universe@255 | 23 | # in modern versions of autoconf, this is done by AC_PROG_CC |
universe@255 | 24 | AM_PROG_CC_C_O |
universe@255 | 25 | |
universe@255 | 26 | # we require the current C standard |
universe@252 | 27 | AC_PROG_CC_STDC |
universe@255 | 28 | |
universe@255 | 29 | # where to place config macros |
universe@252 | 30 | AC_CONFIG_HEADERS([config.h]) |
universe@255 | 31 | |
universe@255 | 32 | # our Makefiles |
universe@252 | 33 | AC_CONFIG_FILES([Makefile src/Makefile test/Makefile]) |
universe@255 | 34 | |
universe@255 | 35 | # GO |
universe@252 | 36 | AC_OUTPUT |
universe@252 | 37 |