configure.ac

Fri, 20 Oct 2017 13:50:13 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 20 Oct 2017 13:50:13 +0200
changeset 255
92c22c0fa8e8
parent 253
e19825a1430a
child 256
2c21b42cf11d
permissions
-rw-r--r--

adds support for older automake versions + comments in configure.ac

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

mercurial