Sources placed under CVS control.
[become] / configure.in
CommitLineData
c4f2d992 1dnl -*-fundamental-*-
2dnl
3dnl $Id: configure.in,v 1.1 1997/07/21 13:47:51 mdw Exp $
4dnl
5dnl Source for auto configuration for `become'
6dnl
7dnl (c) 1997 Mark Wooding
8dnl
9
10dnl----- Licencing notice ---------------------------------------------------
11dnl
12dnl This file is part of `become'
13dnl
14dnl `Become' is free software; you can redistribute it and/or modify
15dnl it under the terms of the GNU General Public License as published by
16dnl the Free Software Foundation; either version 2 of the License, or
17dnl (at your option) any later version.
18dnl
19dnl `Become' 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 General Public License for more details.
23dnl
24dnl You should have received a copy of the GNU General Public License
25dnl along with `become'; if not, write to the Free Software
26dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27
28dnl----- Revision history ---------------------------------------------------
29dnl
30dnl $Log: configure.in,v $
31dnl Revision 1.1 1997/07/21 13:47:51 mdw
32dnl Initial revision
33dnl
34
35AC_INIT(icrypt.c)
36AC_CONFIG_HEADER(config.h)
37VERSION=1.1 AC_SUBST(VERSION)
38AC_DEFINE(VERSION, "1.1 (22 February 1997)")
39
40dnl --- Check for compilers and things ---
41
42AC_PROG_CC
43AC_PROG_INSTALL
44AC_PROG_LEX
45AC_CHECK_PROG(AR, ar, ar)
46AC_PROG_RANLIB
47AC_PROG_YACC
48if test "$ac_cv_prog_gcc" = "yes"; then
49 CFLAGS="$CFLAGS -pedantic -Wall"
50fi
51
52dnl --- Libraries ---
53
54AC_CHECK_LIB(socket, socket)
55MDW_LIB_RESOLVER
56
57dnl --- Types ---
58
59AC_TYPE_PID_T
60AC_TYPE_UID_T
61
62dnl --- Check on endianness ---
63
64AC_C_BIGENDIAN(yes)
65
66dnl --- Check on type sizes ---
67
68AC_CHECK_SIZEOF(int)
69
70dnl --- Set the path separator ---
71
72AC_DEFINE(PATHSEP, '/')
73
74dnl --- Debugging stuff ---
75
76AC_ARG_ENABLE(debugging,
77 [--enable-debugging spews vast swathes of useless information],
78 [if test "$enableval" = "no"; then
79 AC_DEFINE(NDEBUG, 1)
80 fi],
81 AC_DEFINE(NDEBUG, 1))
82
83dnl --- Yell^H^H^H^HNetwork Information System ---
84
85AC_ARG_ENABLE(yp,
86 [--enable-yp read user names using ypcat],
87 [if test "$enableval" != "no"; then
88 AC_DEFINE(HAVE_YP, 1)
89 fi],
90 MDW_CHECK_YP)
91
92dnl --- Define where things get put ---
93
94mdw_save_prefix="$prefix"
95test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
96AC_DEFINE_UNQUOTED(ETCDIR, "`eval echo ${sysconfdir}`")
97prefix="$mdw_save_prefix"
98
99dnl --- Done ---
100
101AC_OUTPUT(Makefile)
102
103dnl----- That's all, folks --------------------------------------------------