-
Notifications
You must be signed in to change notification settings - Fork 17
/
configure.ac
74 lines (63 loc) · 2.12 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
#
# Copyright (C) 2007, 2008 Loic Dachary <[email protected]>
# Copyright (C) 2008 Bradley M. Kuhn <[email protected]>
# Copyright (C) 2004, 2005, 2006 Mekensleep <[email protected]>
# 24 rue vieille du temple, 75004 Paris
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Authors:
# Loic Dachary <[email protected]>
# Bradley M. Kuhn <[email protected]>
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.54)
AC_INIT(pypoker-eval, 138.0)
AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE()
AC_CONFIG_SRCDIR([pypokereval.c])
# Checks for programs.
AC_PROG_MAKE_SET
AC_GNU_SOURCE
AC_LANG(C)
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_PROG_RANLIB
AC_CHECK_FUNCS([memset])
AM_MAINTAINER_MODE
# Check for python
#
# GCC specific debug and optimization flags
#
AC_ARG_ENABLE(debug,
[ --enable-debug build in debug mode (the default is to build in optimized mode)],
[enable_debug=yes])
if test "$GCC" = "yes" -a "$ac_test_CFLAGS" != set ; then
if test "$enable_debug" = "yes" ; then
CFLAGS="-pipe -g -Wall -Wpointer-arith -Wstrict-prototypes"
else
CFLAGS="-pipe -O3 -Wall -Wpointer-arith -Wstrict-prototypes"
fi
fi
test x$prefix = xNONE && prefix="$ac_default_prefix"
test x$exec_prefix = xNONE && exec_prefix="$prefix"
ALL_CC_PYTHON
# Check for poker-eval
PKG_CHECK_MODULES(POKER_EVAL, poker-eval >= 124.0)
# Generate files
AC_CONFIG_FILES([Makefile
pypoker-eval.pc])
AC_OUTPUT