blowfish-mktab.c: Remove the eye-candy progress meter.
[u/mdw/catacomb] / configure.in
... / ...
CommitLineData
1dnl -*-m4-*-
2dnl
3dnl $Id$
4dnl
5dnl Autoconfiguration for Catacomb
6dnl
7dnl (c) 1999 Straylight/Edgeware
8dnl
9
10dnl ----- Licensing notice --------------------------------------------------
11dnl
12dnl This file is part of Catacomb.
13dnl
14dnl Catacomb is free software; you can redistribute it and/or modify
15dnl it under the terms of the GNU Library General Public License as
16dnl published by the Free Software Foundation; either version 2 of the
17dnl License, or (at your option) any later version.
18dnl
19dnl Catacomb is distributed in the hope that it will be useful,
20dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22dnl GNU Library General Public License for more details.
23dnl
24dnl You should have received a copy of the GNU Library General Public
25dnl License along with Catacomb; if not, write to the Free
26dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
27dnl MA 02111-1307, USA.
28
29dnl --- Boring boilerplate ---
30
31mdw_AUTO_VERSION
32AC_INIT(catacomb, AUTO_VERSION, mdw@distorted.org.uk)
33mdw_SILENT_RULES
34AC_CONFIG_SRCDIR(blkc.h)
35AC_CONFIG_AUX_DIR(.)
36AM_CONFIG_HEADER(config.h)
37AM_INIT_AUTOMAKE(foreign)
38
39dnl --- Make sure I can compile and build libraries ---
40
41AC_PROG_CC
42AM_PROG_LIBTOOL
43AX_CFLAGS_WARN_ALL
44mdw_LIBTOOL_VERSION_INFO
45
46AC_PROG_YACC
47
48dnl --- Actually, I assume these exist anyway ---
49
50AC_CHECK_HEADERS(unistd.h)
51AC_HEADER_STDC
52
53dnl --- Check for various important system types ---
54
55AC_CHECK_TYPE(pid_t, int)
56AC_CHECK_TYPE(size_t, unsigned)
57AC_TYPE_UID_T
58AC_CHECK_TYPE(time_t, long)
59AC_CHECK_TYPE(ssize_t, int)
60
61dnl --- The maths library, for Maurer's test ---
62
63OLIBS=$LIBS
64AC_SEARCH_LIBS(log, m)
65AC_SEARCH_LIBS(sqrt, m)
66AC_SUBST([CATACOMB_LIBS], [$LIBS]) LIBS=$OLIBS
67
68dnl --- Functions used for noise-gathering ---
69
70AC_CHECK_FUNCS(setgroups)
71
72AC_CACHE_CHECK([whether the freewheel noise generator will work],
73[catacomb_cv_freewheel],
74[AC_TRY_LINK([
75#include <setjmp.h>
76#include <sys/time.h>
77],
78[struct itimerval itv = { { 0, 0 }, { 0, 5000 } };
79jmp_buf j;
80setitimer(ITIMER_REAL, &itv, 0);
81sigsetjmp(j, 1);],
82[catacomb_cv_freewheel=yes],
83[catacomb_cv_freewheel=no])])
84if test "$catacomb_cv_freewheel" = "yes"; then
85 AC_DEFINE([USE_FREEWHEEL], [1],
86 [Define if you want to use the freewheel noise generator.])
87fi
88
89dnl --- Support for the passphrase pixie ---
90
91OLIBS=$LIBS
92AC_SEARCH_LIBS(socket, socket)
93AC_SUBST([PIXIE_LIBS], [$LIBS]) LIBS=$OLIBS
94AC_CHECK_FUNCS(mlock)
95
96dnl --- Debugging things ---
97
98AC_ARG_ENABLE([mpw],
99 [AS_HELP_STRING([--enable-mpw],
100 [force small-width mp digits])],
101 [case "$enableval" in
102 y*|t*|short)
103 AC_DEFINE([FORCE_MPW_SHORT], [1],
104 [Define to force small-width mp digits.])
105 ;;
106 cussid)
107 AC_DEFINE([FORCE_MPW_CUSSID], [1],
108 [Define to force strange-width mp digits.])
109 ;;
110 esac])
111
112dnl --- Done ---
113
114PKG_CHECK_MODULES(mLib, mLib >= 2.0.4)
115CFLAGS="$CFLAGS $mLib_CFLAGS"
116LIBS="$LIBS $mLib_LIBS"
117AC_OUTPUT(Makefile)
118
119dnl ----- That's all, folks -------------------------------------------------