-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconfigure.ac
More file actions
111 lines (80 loc) · 2.85 KB
/
configure.ac
File metadata and controls
111 lines (80 loc) · 2.85 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Copyright 2003 Michael A. Muller <mmuller@enduden.com>
# Copyright 2009-2012 Google Inc.
# Copyright 2012 Arno Rehn <arno@arnorehn.de>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
AC_INIT([crack],[1.7a],[mmuller@enduden.com])
AM_INIT_AUTOMAKE([foreign -Wall -Werror subdir-objects])
AC_CONFIG_SRCDIR([parser/Token.h])
AC_CONFIG_MACRO_DIRS([m4])
# include cppunit
#AM_PATH_CPPUNIT(1.12.0)
# required for C++ programs...
AC_PROG_CXX
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADERS([malloc.h])
AC_CHECK_FUNCS(ppoll)
# ... and also this (when I switched to a library)
AC_CONFIG_HEADERS([config.h])
AM_PROG_AR
# for my shared libs
LT_INIT(dlopen)
# external packages that we need
AM_PATH_LLVM
# Modern iconv detection
AC_CHECK_HEADERS([iconv.h])
AC_SEARCH_LIBS([iconv], [iconv], [
AC_DEFINE([HAVE_ICONV], [1], [Define if you have iconv()])
if test "$ac_cv_search_iconv" != "none required"; then
LIBICONV="$ac_cv_search_iconv"
fi
], [
AC_MSG_ERROR([iconv is required but was not found])
])
AC_SUBST([LIBICONV])
# determine if we're 64 bit.
AC_CHECK_SIZEOF([void *])
# optional libraries
AM_PATH_GTK_2_0(2.0.0, [got_gtk=yes])
AM_CONDITIONAL(HAVE_GTK, [test "x$got_gtk" = xyes])
AX_PATH_LIB_PCRE(got_pcre=yes)
AM_CONDITIONAL(HAVE_PCRE, [test "x$got_pcre" = xyes])
PKG_CHECK_MODULES([PCRE2], [libpcre2-8], [got_pcre2="yes"], [got_pcre2="no"])
AM_CONDITIONAL(HAVE_PCRE2, [test "x$got_pcre2" = xyes])
AM_PATH_SDL(1.2.14, [got_sdl=yes])
AM_CONDITIONAL(HAVE_SDL, [test "x$got_sdl" = xyes])
AM_PATH_SDL_MIXER(1.2.14, [got_sdl_mixer=yes])
AM_CONDITIONAL(HAVE_SDL_MIXER, [test "x$got_sdl_mixer" = xyes])
AM_PATH_SDLGFX
AM_CONDITIONAL(HAVE_SDLGFX, [test "x$got_sdlgfx" = xyes])
AM_PATH_GL
AM_CONDITIONAL(HAVE_GL, [test "x$got_gl" = xyes])
AM_PATH_CAIRO
AM_CONDITIONAL(HAVE_CAIRO, [test "x$got_cairo" = xyes])
AM_PATH_XS
AM_CONDITIONAL(HAVE_XS, [test "x$got_xs" = xyes])
AM_PATH_ALSA(1.0.22, [got_alsa=yes], true)
AM_CONDITIONAL(HAVE_ALSA, [test "x$got_alsa" = xyes])
AM_PATH_OPENSSL
AM_CONDITIONAL(HAVE_SSL, [test "x$got_ssl" = xyes])
AM_PATH_FLUIDSYNTH
AM_CONDITIONAL(HAVE_FLUIDSYNTH, [test "x$got_fluidsynth" = xyes])
AM_PATH_PNG
AM_CONDITIONAL(HAVE_PNG, [test "x$got_png" = xyes])
LIBCURL_CHECK_CONFIG
AM_CONDITIONAL(HAVE_LIBCURL, [test "x$got_curl" = xyes])
AM_PATH_MONGO_CLIENT
AM_CONDITIONAL(HAVE_MONGO_CLIENT, [test "x$got_mongoclient" = xyes])
AM_PATH_JACK
AM_CONDITIONAL(HAVE_JACK, [test "x$got_jack" = xyes])
AM_PATH_PTHREAD
AM_CONDITIONAL(HAVE_PTHREAD, [test "x$got_pthread" = xyes])
AM_PATH_FUSE
AM_CONDITIONAL(HAVE_FUSE, [test "x$got_fuse" = xyes])
AM_PATH_READLINE
AM_CONDITIONAL(HAVE_READLINE, [test "x$got_readline" = xyes])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT