blob: 6c71bc375c94bb107a11cac76e6dbaba511d4403 (
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
|
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.02)
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)
AM_SYS_POSIX_TERMIOS
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
])
|