-
Notifications
You must be signed in to change notification settings - Fork 11
/
configure.in
110 lines (95 loc) · 4 KB
/
configure.in
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
#############################################################################
## ##
## configure.in ##
## SPro toolkit ##
## ##
## Guig Fri Jul 5 2002 ##
## ----------------------------------------------------------------------- ##
## ##
## Copyright (C) 2002-2010 Guillaume Gravier ([email protected]) ##
## ##
## 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 2, 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., 59 Temple Place - Suite 330, ##
## Boston, MA 02111-1307, USA. ##
## ##
#############################################################################
##
## CVS log:
##
## $Author: guig $
## $Date: 2010-11-09 16:57:22 +0100 (Tue, 09 Nov 2010) $
## $Revision: 151 $
##
dnl Process this file with autoconf to produce a configure script.
AC_INIT(spro.h)
AC_REVISION($Revision: 151 $)
AC_PREREQ(2.12)
AC_CONFIG_AUX_DIR(auxdir)
AM_INIT_AUTOMAKE(spro, 5.0)
AM_CONFIG_HEADER(config.h:config.h.in)
dnl Checks for usefuls programs (like a compiler, a precompiler, a linker...)
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_CPP
AC_AIX
AC_MINIX
AC_ISC_POSIX
dnl check if function prototypes are understood by the compiler
AM_C_PROTOTYPES
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_C_BIGENDIAN
AC_TYPE_SIZE_T
dnl defined sizeof standard types
AC_CHECK_SIZEOF(char)
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(long)
dnl Checks for header files
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS(sys/time.h limits.h malloc.h stdarg.h stdlib.h math.h string.h errno.h)
dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_VPRINTF
dnl Error at line uses strerror and strerror_r, so these should be checked
dnl AC_CHECK_FUNCS(strtod strchr bzero strerror strerror_r)
dnl work like AC_CHECK_FUNCS, but with explicit replacement if they don't occur
dnl AC_REPLACE_FUNCS(strdup strtoul)
dnl AC_REPLACE_FUNCS(memchr memcpy memmove memrchr memset)
dnl Compile with strict flags
CF_GCC_WARNINGS
dnl Compile with memory debugging
AM_WITH_DMALLOC
dnl enables SPHERE support
AC_ARG_WITH(
sphere,
[ --with-sphere turn on NIST sphere file format support],
[
if test "x$with_sphere" != "xno"; then
AC_DEFINE(SPHERE, 1, "NIST sphere package support")
sphere_lib="-lsp -lutil"
if test "x$with_sphere" != "xyes"; then
sphere_include="-I$with_sphere/include"
sphere_lib="-L$with_sphere/lib -lsp -lutil"
fi
fi
]
)
AC_SUBST(sphere_include)
AC_SUBST(sphere_lib)
dnl Files which should be output by the configure script
AC_OUTPUT(Makefile doc/Makefile auxdir/Makefile test/Makefile test/ref/Makefile test/dat/Makefile)