This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
76 lines (63 loc) · 2.08 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(cocodis, 0.11.1)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([g09dis/dasmedit.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
#AC_CHECK_PROG([have_xsltproc],[xsltproc],[yes],[no])
#AM_CONDITIONAL(BUILD_DOCS, test x$have_xsltproc = xyes)
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h unistd.h libgen.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_CHECK_FUNCS([strcasecmp strchr strdup stpcpy strncasecmp strstr strrchar \
isblank memset dirname])
AC_ARG_WITH([win09dis],
[AS_HELP_STRING([--with-win09dis],
[include win09dis (default=no)])],
[case "${withval}" in
yes) compile_win09dis=true;;
no) compile_win09dis=false;;
*) AC_MSG_ERROR(bad value ${withval} for --with-win09dis) ;;
[esac]],[compile_win09dis=false])
AM_CONDITIONAL(WITHWIN09DIS, test x$compile_win09dis = xtrue)
AC_SUBST(compile_win09dis)
# Establish pkg-config paths
AC_ARG_WITH([g09dis],
[AS_HELP_STRING([--with-g09dis],
[include g09dis (requires pkg-config) (default=no)])],
[case "${withval}" in
yes) compile_g09dis=true
PKG_CHECK_MODULES(pkgcfg, gtk+-2.0);;
no) compile_g09dis=false;;
*) AC_MSG_ERROR(bad value ${withval} for --with-g09dis) ;;
[esac]],[compile_g09dis=false])
AM_CONDITIONAL(WITHG09DIS, test x$compile_g09dis = xtrue)
AC_SUBST(compile_g09dis)
AC_CANONICAL_HOST
case $host_os in
*mingw32*)
winflags=" -mms-bitfields -mwindows"
gwinflags=" -mms-bitfields"
;;
*cygwin)
winflags="-mwindows"
;;
esac
AC_SUBST(winflags)
AC_SUBST(gwinflags)
AC_CONFIG_FILES([Makefile
g09dis/Makefile
win09dis/Makefile
os9disasm/Makefile])
AC_OUTPUT