configure.ac

changeset 255
92c22c0fa8e8
parent 253
e19825a1430a
child 256
2c21b42cf11d
     1.1 --- a/configure.ac	Wed Oct 18 19:10:29 2017 +0200
     1.2 +++ b/configure.ac	Fri Oct 20 13:50:13 2017 +0200
     1.3 @@ -1,14 +1,37 @@
     1.4  # the package version must match the macros in ucx.h
     1.5  # if you change the package version, don't forget to adjust the library version
     1.6  AC_INIT([ucx], [0.14], [olaf.wintermann@gmail.com])
     1.7 +
     1.8 +# don't place everything in the project root
     1.9  AC_CONFIG_AUX_DIR([build-aux])
    1.10  AC_CONFIG_MACRO_DIR([m4])
    1.11 +
    1.12 +# we use our own directory structure
    1.13  AM_INIT_AUTOMAKE([foreign -Wall -Werror])
    1.14 +
    1.15 +# if there is an archiver, use it
    1.16  m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
    1.17 +
    1.18 +# we are compiling a library
    1.19  LT_INIT
    1.20 +
    1.21 +# we are dealing with C source code
    1.22  AC_PROG_CC
    1.23 +
    1.24 +# we want to support automake < 1.14, so we need this deprecated macro
    1.25 +# it tests, whether the compiler allows -c and -o simultaneously
    1.26 +# in modern versions of autoconf, this is done by AC_PROG_CC
    1.27 +AM_PROG_CC_C_O
    1.28 +
    1.29 +# we require the current C standard
    1.30  AC_PROG_CC_STDC
    1.31 +
    1.32 +# where to place config macros
    1.33  AC_CONFIG_HEADERS([config.h])
    1.34 +
    1.35 +# our Makefiles
    1.36  AC_CONFIG_FILES([Makefile src/Makefile test/Makefile])
    1.37 +
    1.38 +# GO
    1.39  AC_OUTPUT
    1.40  

mercurial