d03ab969 |
1 | dnl -*-fundamental-*- |
2 | dnl |
3 | dnl $Id: configure.in,v 1.1 1999/09/03 08:41:11 mdw Exp $ |
4 | dnl |
5 | dnl Autoconfiguration for Catacomb |
6 | dnl |
7 | dnl (c) 1999 Straylight/Edgeware |
8 | dnl |
9 | |
10 | dnl ----- Licensing notice -------------------------------------------------- |
11 | dnl |
12 | dnl This file is part of Catacomb. |
13 | dnl |
14 | dnl Catacomb is free software; you can redistribute it and/or modify |
15 | dnl it under the terms of the GNU Library General Public License as |
16 | dnl published by the Free Software Foundation; either version 2 of the |
17 | dnl License, or (at your option) any later version. |
18 | dnl |
19 | dnl Catacomb is distributed in the hope that it will be useful, |
20 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | dnl GNU Library General Public License for more details. |
23 | dnl |
24 | dnl You should have received a copy of the GNU Library General Public |
25 | dnl License along with Catacomb; if not, write to the Free |
26 | dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
27 | dnl MA 02111-1307, USA. |
28 | |
29 | dnl ----- Revision history -------------------------------------------------- |
30 | dnl |
31 | dnl $Log: configure.in,v $ |
32 | dnl Revision 1.1 1999/09/03 08:41:11 mdw |
33 | dnl Initial import. |
34 | dnl |
35 | dnl Revision 1.1 1999/09/03 08:41:11 mdw |
36 | dnl Initial import. |
37 | dnl |
38 | |
39 | AM_INIT_AUTOMAKE(catacomb, 1.0.0pre1) |
40 | |
41 | AC_INIT(blkc.h) |
42 | AM_INIT_AUTOMAKE(catacomb, 1.0.0pre2) |
43 | AM_CONFIG_HEADER(config.h) |
44 | |
45 | dnl --- Make sure I can compile and build libraries --- |
46 | |
47 | AC_PROG_CC |
48 | AC_CHECK_PROG(AR, ar, ar) |
49 | AC_PROG_RANLIB |
50 | mdw_MLIB |
51 | |
52 | AC_PROG_YACC |
53 | |
54 | dnl --- Actually, I assume these exist anyway --- |
55 | |
56 | AC_CHECK_HEADERS(unistd.h) |
57 | AC_HEADER_STDC |
58 | |
59 | dnl --- Check for various important system types --- |
60 | |
61 | AC_TYPE_PID_T |
62 | |
63 | dnl --- Tedious check for ssize_t --- |
64 | dnl |
65 | dnl glibc-2 puts ssize_t in a strange place. |
66 | |
67 | AC_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], |
77 | cat_cv_type_ssize_t=yes, cat_cv_type_ssize_t=no)]) |
78 | if test $cat_cv_type_ssize_t = no; then |
79 | AC_DEFINE(ssize_t, int) |
80 | fi |
81 | AC_TYPE_UID_T |
82 | AC_CHECK_TYPE(time_t, long) |
83 | mdw_TYPE_SSIZE_T |
84 | |
85 | dnl --- Can I call `initgroups'? --- |
86 | dnl |
87 | dnl This is used in noise-gathering. |
88 | |
89 | AC_CHECK_FUNCS(setgroups) |
90 | AC_OUTPUT(Makefile) |
91 | dnl --- Done --- |
92 | |
93 | AC_OUTPUT(Makefile catacomb-config) |
94 | |
95 | dnl ----- That's all, folks ------------------------------------------------- |