summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 06b952a5f7a629f4ee6875d84fced4b6e8d379ee (plain)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT([intel-gen4asm],
        1.2,
        [eric@anholt.net],
        intel-gen4asm)

AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE([dist-bzip2 foreign])

AM_MAINTAINER_MODE

# Checks for programs.
AC_PROG_CC
AM_PROG_LEX
AC_PROG_YACC

WARN_CFLAGS=""
if test "x$GCC" = "xyes"; then
	WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
	-Wmissing-prototypes -Wmissing-declarations \
	-Wnested-externs -fno-strict-aliasing"
	AC_DEFINE_UNQUOTED(HAVE_WARNING_CPP_DIRECTIVE,1,
	[Can use #warning in C files])
fi
AC_SUBST(WARN_CFLAGS)

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC

AC_OUTPUT([
	Makefile
	doc/Makefile
	src/Makefile
	test/Makefile
	intel-gen4asm.pc
])