summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 826c6797833d2d07c776bf7955e5c3b550e29849 (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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(bbe, 0.1.0, tjsa@iki.fi)
AC_CONFIG_SRCDIR(src/bbe.c)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE

dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
AC_CONFIG_HEADER(config.h)

AC_SUBST(VERSION)

ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)

AC_CANONICAL_HOST

dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC
AC_GNU_SOURCE

dnl Checks for libraries.

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(features.h errno.h getopt.h)

    
dnl Checks for typedefs, structures, and compiler characteristics.
AC_SYS_LARGEFILE
AC_SYS_LONG_FILE_NAMES
AC_CHECK_TYPES(off_t)
AC_CHECK_TYPES(long long)

dnl Checks for library functions.

AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])
AC_OUTPUT
OpenPOWER on IntegriCloud