-
Notifications
You must be signed in to change notification settings - Fork 7
/
configure.ac
48 lines (36 loc) · 1.29 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# ===========================================================================
# uz80as, an assembler for the Zilog Z80 and several other microprocessors.
# ===========================================================================
AC_INIT([uz80as],
[2.02],
[jorge.giner@hotmail.com],
uz80as,
[https://jorgicor.niobe.org/uz80as])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(-Wall -Werror -Wportability subdir-objects
color-tests parallel-tests)
AC_CONFIG_HEADERS([config.h])
AC_DEFINE([COPYRIGHT_YEARS], ["2023"], [Years of copyright])
AC_SUBST(COPYRIGHT_YEARS, [2023])
# Checks for programs.
AC_PROG_CC
AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
# Supported flags.
AX_CHECK_COMPILE_FLAG([-Wall], [WARN_CFLAGS="-Wall"], [], [])
AX_CHECK_COMPILE_FLAG([-Wdeclaration-after-statement],
[WARN_CFLAGS="$WARN_CFLAGS -Wdeclaration-after-statement"],
[], [])
AC_SUBST(WARN_CFLAGS)
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile
src/Makefile
doc/Makefile
doc/copyright.texi
tests/Makefile])
AC_OUTPUT