forked from pipeseroni/pipes.c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
37 lines (29 loc) · 1.04 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.64])
# Package version from `git describe --always`
AC_INIT([snake],
[m4_esyscmd_s([git describe --always])],
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/snake.c])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_PROG_SED
AC_LANG([C])
AC_PROG_CC_C99
dnl Obsolete macro, but required by old versions of automake
AM_PROG_CC_C_O
# Non-release versions have a dash (e.g. 0.0.1-1-g1abcde)
AX_IS_RELEASE([dash-version])
# Require curses
AX_WITH_CURSES
# Enable as many compiler warnings as possible
AX_COMPILER_FLAGS()
# Remove warning for declaration-after-statement: this does not apply to C99
WARN_CFLAGS=$(AS_ECHO(["$WARN_CFLAGS"]) | dnl
$SED 's/-W\(error=\)\?declaration-after-statement *//g')
AC_SUBST([WARN_CFLAGS])
# Use noreturn attribute if available
AC_CHECK_HEADERS_ONCE([stdnoreturn.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT