/
configure.ac
54 lines (45 loc) · 1.63 KB
/
configure.ac
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([Mathkaba], [0.2.2], [oudomphe@math.unice.fr])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
AH_TEMPLATE([PACKAGE_AUTHORS], [Define to the authors of the package])
AH_TEMPLATE([PACKAGE_COPYRIGHT], [Define to the copyright notice
of the package])
AC_DEFINE(PACKAGE_AUTHORS, ["Rémy Oudompheng"])
AC_DEFINE(PACKAGE_COPYRIGHT, ["Copyright 2010, Rémy Oudompheng"])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AC_PATH_PROG(XXD, xxd)
AC_PATH_PROG(SED, sed)
# Checks for libraries.
m4_ifndef([PKG_PROG_PKG_CONFIG],
[m4_fatal([Could not locate the pkg-config autoconf macros.
These are usually located in /usr/share/aclocal/pkg.m4. If your macros
are in a different location, try setting the environment variable
ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])])
PKG_PROG_PKG_CONFIG()
PKG_CHECK_MODULES([GTK2], [gtk+-2.0 >= 2.12])
PKG_CHECK_MODULES([GLIBMM], [glibmm-2.4])
PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.12])
# Checks for header files.
AC_CHECK_HEADERS([ftw.h], [], [have_ftw_h=no])
AM_CONDITIONAL([NO_FTW_H], [test x$have_ftw_h = xno])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
# Checks for library functions.
AC_HEADER_MAJOR
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[Enable debugging output]),
[CPPFLAGS="$CPPFLAGS -DDEBUG"],
[CPPFLAGS="$CPPFLAGS -DNDEBUG"])
AC_CONFIG_FILES([Makefile
src/Makefile
parser/Makefile])
AC_OUTPUT