-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.ac
82 lines (69 loc) · 2.51 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_COPYRIGHT([Copyright 2002, 2003 Edward T. Smith. All rights reserved.
Copyright 2003 The Open Knights Consortium. All rights reserved.])
AC_INIT([NWN Tools], [2.1.0], [[email protected]], [nwntools])
AC_SUBST(RELEASE, 1)
AC_CONFIG_SRCDIR(_NwnLib/NwnDefines.h)
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.7 gnits dist-bzip2])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_RANLIB
AC_ARG_VAR(MSTA, [COCOM syntax description translator])
AC_CHECK_PROG(MSTA, [msta], [msta])
if test "$MSTA" != msta ; then
AC_MSG_WARN([Could not find the msta command from the cocom
compiler compiler suite, please install from
cocom.sourceforge.net])
fi
AC_ARG_VAR(EBUILD, [ebuild parsing command])
AC_PATH_PROG(EBUILD, [ebuild], [], [/usr/sbin:/usr/bin:/usr/lib/portage/bin])
AM_CONDITIONAL(EBUILD, [test -n "$EBUILD"])
AC_ARG_VAR(RPMBUILD, [RPM building utility])
AC_CHECK_PROG(RPMBUILD, [rpmbuild], [rpmbuild])
AM_CONDITIONAL(RPMBUILD, [test -n "$RPMBUILD"])
# AM_OPTIONS_WXCONFIG
# AM_PATH_WXCONFIG(2.3.4, [wxwin=1])
# if test "$wxwin" != 1 ; then
# AC_MSG_ERROR([
# wxWindows must be installed on your system
# but wx-config script couldn't be found.
#
# Please check that wx-config is in path, the directory
# where wxWindows libraries are installed (returned by
# 'wx-config --libs' command) is in LD_LIBRARY_PATH or
# equivalent variable and wxWindows version is 2.3.4 or above.
# ])
# fi
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC # memory.h, stdlib.h, string.h
AC_CHECK_HEADERS([malloc.h stddef.h])
AC_CHECK_HEADERS([libiberty.h libgen.h ctype.h assert.h stdarg.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_C_BIGENDIAN
AC_TYPE_SIZE_T
AC_STRUCT_TM
# Checks for library functions.
AC_CHECK_FUNCS([stricmp strcasecmp])
AC_CHECK_FUNCS([strnicmp strncasecmp])
AC_CHECK_FUNCS([_snprintf snprintf])
AC_CHECK_FUNCS([strlwr])
AC_CHECK_FUNCS([alloca malloc memcmp realloc free stdtod vprintf])
AC_CHECK_FUNCS([memmove memset pow sqrt strchr strrchr strtol basename])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([_MathLib/Makefile
_NscLib/Makefile
_NwnLib/Makefile
_NmcLib/Makefile
Makefile
nwntools.spec
nwnnsscomp/Makefile
nwnmdlcomp/Makefile])
AC_OUTPUT