forked from pn2200/g3data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
43 lines (33 loc) · 1.1 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.66])
AC_INIT([g3data], [1.5.4])
# Put compiled object files into the same sub-directory as their sources
# and quiet make
AM_INIT_AUTOMAKE([1.11 subdir-objects])
AM_SILENT_RULES([yes])
AC_CONFIG_SRCDIR([g3data/main.c])
AC_CONFIG_HEADERS([config.h])
WARNING_FLAGS="-W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
AC_SUBST(WARNING_FLAGS)
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_MAKE_SET
PKG_PROG_PKG_CONFIG
# Checks for libraries.
AC_CHECK_LIB([m], [log])
PKG_CHECK_MODULES([GLIB], [glib-2.0])
PKG_CHECK_MODULES([GTK], [gtk+-2.0])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h math.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([strstr])
AC_CONFIG_FILES([Makefile
doc/Makefile
data/Makefile])
AC_OUTPUT