-
Notifications
You must be signed in to change notification settings - Fork 9
/
configure.ac
51 lines (37 loc) · 1.07 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(reevengi-tools, 0.5, patmandin@gmail.com)
AC_CONFIG_SRCDIR([src/pak2tim.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_AUX_DIR([autotools])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
#AC_FUNC_MALLOC
#AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset strrchr pow])
# Checks for libraries.
# Math
if test "x$ac_cv_func_pow" = "xno"; then
LIBS="$LIBS -lm"
fi
# SDL
AM_PATH_SDL( 1.2.0 , :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
# LibXml
PKG_CHECK_MODULES([LIBXML], [libxml-2.0],
[AC_DEFINE([HAVE_LIBXML], [1], [Use libxml])]
)
AC_CONFIG_FILES([Makefile
src/Makefile
vs2005/Makefile])
AC_OUTPUT