blob: 23d3e13f05e5a590af8c59a2490688b601923330 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
dnl Process this file with autoconf to produce a configure script.
dnl Initialization
AC_INIT(Makefile.am)
AM_CONFIG_HEADER(config.h)
dnl Determine the host and build type. The target is always a PIC.
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE(flexloader, 0.03)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_INSTALL
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h)
dnl Linux kernel
AC_CHECK_HEADERS(linux/ppdev.h)
AC_CHECK_HEADERS(linux/parport.h)
dnl FreeBSD kernel
AC_CHECK_HEADERS(dev/ppbus/ppi.h)
AC_CHECK_HEADERS(dev/ppbus/ppbconf.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_STRUCT_TM
# some extra flags
CFLAGS="$CFLAGS -Wall -Werror-implicit-function-declaration "
LDFLAGS="$LDFLAGS"
# pass flags
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
dnl Substitute configuration variables
AC_OUTPUT(
Makefile \
doc/Makefile \
src/Makefile \
)
AC_MSG_RESULT([
fleur-$VERSION is now configured for $canonical_host_type
Build: $build
Host: $host
Source directory: $srcdir
Installation prefix: $prefix
C compiler: $CC $CFLAGS
])
|