]> git.ipfire.org Git - thirdparty/rng-tools.git/blame - configure.ac
Release version 5.
[thirdparty/rng-tools.git] / configure.ac
CommitLineData
61af3de3
JG
1dnl Process this file with autoconf 2.52+ to produce a configure script.
2dnl
3dnl Copyright (C) 2001 Philipp Rumpf
4dnl Copyright (C) 2004 Henrique de Moraes Holschuh <hmh@debian.org>
5dnl
6dnl This program is free software; you can redistribute it and/or modify
7dnl it under the terms of the GNU General Public License as published by
8dnl the Free Software Foundation; either version 2 of the License, or
9dnl (at your option) any later version.
10dnl
11dnl This program is distributed in the hope that it will be useful,
12dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14dnl GNU General Public License for more details.
15dnl
16dnl You should have received a copy of the GNU General Public License
17dnl along with this program; if not, write to the Free Software
d32709d1 18dnl Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
61af3de3 19
4b3ca204 20AC_INIT(rng-tools, 5, [Jeff Garzik <jgarzik@pobox.com>])
61af3de3
JG
21AC_PREREQ(2.52)
22AC_CONFIG_SRCDIR([rngd.c])
23AM_INIT_AUTOMAKE([gnu])
24AC_CONFIG_HEADERS([rng-tools-config.h])
25
04361df2
JM
26dnl Parse options
27
28AC_ARG_WITH([libgcrypt],
29 AS_HELP_STRING([--without-libgcrypt],
30 [Disable libgcrypt support. Systems that support RDRAND but not AES-NI will require libgcrypt in order to use RDRAND as an entropy source. (Default: --with-libgcrypt)]),
31 [],
32 [with_libgcrypt=check]
33)
34
61af3de3
JG
35dnl Make sure anyone changing configure.ac/Makefile.am has a clue
36AM_MAINTAINER_MODE
37
38dnl Checks for programs
39AC_PROG_CC
40AC_PROG_RANLIB
41AC_PROG_GCC_TRADITIONAL
42
43dnl Checks for header files.
44dnl AC_HEADER_STDC
45dnl AC_CHECK_HEADERS(sys/ioctl.h unistd.h)
46
47dnl Checks for typedefs, structures, and compiler characteristics.
48dnl AC_TYPE_SIZE_T
49dnl AC_TYPE_PID_T
50
51dnl -----------------------------
52dnl Checks for required libraries
53dnl -----------------------------
54
55dnl -------------------------------------
56dnl Checks for optional library functions
57dnl -------------------------------------
58
04361df2
JM
59dnl -------------------------------------
60dnl Check for libgcrypt support
61dnl -------------------------------------
62
63AS_IF(
64 [test "x$with_libgcrypt" != "xno"],
65 [
66 AC_CHECK_HEADER([gcrypt.h],
67 AC_CHECK_LIB(
68 [gcrypt],
69 [gcry_check_version], ,
70 [
71 if test "x$with_libgcrypt" != "xcheck"; then
72 AC_MSG_FAILURE([libgcrypt not found]); else
73 AC_MSG_NOTICE([libgcrypt support disabled])
74 fi
75 ]
76 ),
77 [if test "x$with_libgcrypt" != "xcheck"; then
78 AC_MSG_FAILURE([libgcrypt headers not found]); else
79 AC_MSG_NOTICE([libgcrypt support disabled])
80 fi]
81 )
82 ]
83)
84
61af3de3
JG
85dnl -----------------
86dnl Configure options
87dnl -----------------
88
2a014536
BH
89AM_PROG_AS
90
61af3de3
JG
91dnl --------------------------
92dnl autoconf output generation
93dnl --------------------------
94
95AC_CONFIG_FILES([Makefile contrib/Makefile rngd.8 rngtest.1])
96AC_OUTPUT