Add new file.
[become] / configure.in
CommitLineData
c4f2d992 1dnl -*-fundamental-*-
2dnl
03f996bd 3dnl $Id: configure.in,v 1.2 1997/08/04 10:24:21 mdw Exp $
c4f2d992 4dnl
5dnl Source for auto configuration for `become'
6dnl
7dnl (c) 1997 Mark Wooding
8dnl
9
03f996bd 10dnl----- Licensing notice ---------------------------------------------------
c4f2d992 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
03f996bd 25dnl along with `become'; if not, write to the Free Software Foundation,
26dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
c4f2d992 27
28dnl----- Revision history ---------------------------------------------------
29dnl
30dnl $Log: configure.in,v $
03f996bd 31dnl Revision 1.2 1997/08/04 10:24:21 mdw
32dnl Sources placed under CVS control.
c4f2d992 33dnl
03f996bd 34# Revision 1.1 1997/07/21 13:47:51 mdw
35# Initial revision
36#
c4f2d992 37
38AC_INIT(icrypt.c)
39AC_CONFIG_HEADER(config.h)
03f996bd 40PACKAGE=become VERSION=1.2-pre
41AC_SUBST(PACKAGE)
42AC_SUBST(VERSION)
43AC_DEFINE(VERSION, "1.2-pre (24 July 1997)")
c4f2d992 44
45dnl --- Check for compilers and things ---
46
47AC_PROG_CC
48AC_PROG_INSTALL
49AC_PROG_LEX
50AC_CHECK_PROG(AR, ar, ar)
51AC_PROG_RANLIB
52AC_PROG_YACC
03f996bd 53AC_ARG_PROGRAM
c4f2d992 54if test "$ac_cv_prog_gcc" = "yes"; then
55 CFLAGS="$CFLAGS -pedantic -Wall"
56fi
57
58dnl --- Libraries ---
59
03f996bd 60MDW_CHECK_MANYLIBS(socket, socket,,
61 AC_MSG_ERROR([Socket library not found]))
62
63MDW_CHECK_MANYLIBS(gethostbyname, resolv nsl,,
64 AC_MSG_ERROR([Resolver library not found]))
65
66MDW_CHECK_MANYLIBS(yp_all, nsl, AC_DEFINE(HAVE_YP))
c4f2d992 67
68dnl --- Types ---
69
70AC_TYPE_PID_T
71AC_TYPE_UID_T
03f996bd 72AC_CHECK_TYPE(ssize_t, int)
c4f2d992 73
74dnl --- Check on type sizes ---
75
03f996bd 76AC_CHECK_SIZEOF(int, 2)
c4f2d992 77
78dnl --- Set the path separator ---
79
80AC_DEFINE(PATHSEP, '/')
81
03f996bd 82dnl --- Check for some useful functions ---
83
84AC_CHECK_FUNCS(getrusage vtimes)
85
c4f2d992 86dnl --- Debugging stuff ---
87
88AC_ARG_ENABLE(debugging,
03f996bd 89[ --enable-debugging spews vast swathes of useless information],
c4f2d992 90 [if test "$enableval" = "no"; then
91 AC_DEFINE(NDEBUG, 1)
92 fi],
93 AC_DEFINE(NDEBUG, 1))
94
03f996bd 95AC_ARG_ENABLE(tracing,
96[ --enable-tracing enable output of tracing information],
97 [if test "$enableval" = "yes"; then
98 AC_DEFINE(TRACING)
c4f2d992 99 fi],
03f996bd 100 AC_DEFINE(TRACING))
c4f2d992 101
102dnl --- Define where things get put ---
103
104mdw_save_prefix="$prefix"
03f996bd 105test "$prefix" = "NONE" && prefix="$ac_default_prefix"
c4f2d992 106AC_DEFINE_UNQUOTED(ETCDIR, "`eval echo ${sysconfdir}`")
107prefix="$mdw_save_prefix"
108
109dnl --- Done ---
110
111AC_OUTPUT(Makefile)
112
113dnl----- That's all, folks --------------------------------------------------