Initial import.
[u/mdw/catacomb] / configure.in
CommitLineData
d03ab969 1dnl -*-fundamental-*-
2dnl
3dnl $Id: configure.in,v 1.1 1999/09/03 08:41:11 mdw Exp $
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 ----- Revision history --------------------------------------------------
30dnl
31dnl $Log: configure.in,v $
32dnl Revision 1.1 1999/09/03 08:41:11 mdw
33dnl Initial import.
34dnl
35dnl Revision 1.1 1999/09/03 08:41:11 mdw
36dnl Initial import.
37dnl
38
39AM_INIT_AUTOMAKE(catacomb, 1.0.0pre1)
40
41AC_INIT(blkc.h)
42AM_INIT_AUTOMAKE(catacomb, 1.0.0pre2)
43AM_CONFIG_HEADER(config.h)
44
45dnl --- Make sure I can compile and build libraries ---
46
47AC_PROG_CC
48AC_CHECK_PROG(AR, ar, ar)
49AC_PROG_RANLIB
50mdw_MLIB
51
52AC_PROG_YACC
53
54dnl --- Actually, I assume these exist anyway ---
55
56AC_CHECK_HEADERS(unistd.h)
57AC_HEADER_STDC
58
59dnl --- Check for various important system types ---
60
61AC_TYPE_PID_T
62
63dnl --- Tedious check for ssize_t ---
64dnl
65dnl glibc-2 puts ssize_t in a strange place.
66
67AC_CACHE_CHECK(for ssize_t, cat_cv_type_ssize_t,
68[AC_EGREP_CPP(ssize_t,
69[#include <sys/types.h>
70#if HAVE_UNISTD_H
71#inlcude <unistd.h>
72#endif
73#if STDC_HEADERS
74#include <stddef.h>
75#include <stdlib.h>
76#endif],
77cat_cv_type_ssize_t=yes, cat_cv_type_ssize_t=no)])
78if test $cat_cv_type_ssize_t = no; then
79 AC_DEFINE(ssize_t, int)
80fi
81AC_TYPE_UID_T
82AC_CHECK_TYPE(time_t, long)
83mdw_TYPE_SSIZE_T
84
85dnl --- Can I call `initgroups'? ---
86dnl
87dnl This is used in noise-gathering.
88
89AC_CHECK_FUNCS(setgroups)
90AC_OUTPUT(Makefile)
91dnl --- Done ---
92
93AC_OUTPUT(Makefile catacomb-config)
94
95dnl ----- That's all, folks -------------------------------------------------