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

AC_PREREQ([2.70])

AC_INIT([eps], [0.1.0], [mmemmew@gmail.com], [], [])

AC_COPYRIGHT([This package is covered by GPL v3.])

AM_PROG_AR

dnl Check for RANLIB
AC_PROG_RANLIB

AC_CONFIG_SRCDIR([src/grammar.h])

AC_CONFIG_HEADERS([src/config.h])

AC_CONFIG_AUX_DIR([build-aux])

AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])

AM_SILENT_RULES([yes])

dnl Checks for programs.
AC_PROG_CC

dnl Subdirectory

dnl AC_CONFIG_SUBDIRS([src])

dnl Checks for DEBUG option.

AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug],
[enable the debugging features]))

if test "x$enable_debug" = "xyes"; then
   AC_DEFINE([DEBUG], [], [Define if one wants to debug the program.])
   dnl AC_CHECK_FUNCS([clock_gettime])
fi

AC_CONFIG_FILES([Makefile src/Makefile])

AC_OUTPUT