]> arthur.barton.de Git - ngircd-alex.git/blob - configure.in
- CONN_ID wird definiert.
[ngircd-alex.git] / configure.in
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001 by Alexander Barton (alex@barton.de)
4 #
5 # Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 # der GNU General Public License (GPL), wie von der Free Software Foundation
7 # herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 # der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 # der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
11 #
12 # $Id: configure.in,v 1.4 2001/12/12 17:21:58 alex Exp $
13 #
14 # $Log: configure.in,v $
15 # Revision 1.4  2001/12/12 17:21:58  alex
16 # - Projektdatei fuer den Mac OS X Project Builder erstellt.
17 #
18 # Revision 1.3  2001/12/12 01:58:53  alex
19 # - Test auf socklen_t verbessert.
20 #
21 # Revision 1.2  2001/12/11 22:04:21  alex
22 # - Test auf stdint.h (HAVE_STDINT_H) hinzugefuegt.
23 #
24 # Revision 1.1.1.1  2001/12/11 21:53:04  alex
25 # Imported sources to CVS.
26 #
27
28 # -- Initialisierung --
29
30 AC_INIT
31 AC_CONFIG_SRCDIR(src/ngircd/ngircd.c)
32 AM_INIT_AUTOMAKE(ngircd,0.0.1-pre)
33 AM_CONFIG_HEADER(src/config.h)
34
35 # -- Variablen --
36
37 CFLAGS="$CFLAGS -I/usr/local/include"
38 LDFLAGS="$LDFLAGS -L/usr/local/lib"
39
40 # -- C Compiler --
41
42 AC_PROG_CC
43 AC_LANG_C
44
45 # -- Hilfsprogramme --
46
47 AC_PROG_MAKE_SET
48 AC_PROG_RANLIB
49
50 # -- Header --
51
52 AC_HEADER_STDC
53
54 AC_CHECK_HEADER(portab.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
55 AC_CHECK_HEADER(imp.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
56 AC_CHECK_HEADER(exp.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
57
58 AC_CHECK_HEADERS([netinet/in.h sys/socket.h],,[required C headers missing!])
59
60 AC_CHECK_HEADERS([stdint.h])
61
62 # -- Datentypen --
63
64 AC_MSG_CHECKING(whether socklen_t exists)
65 AC_TRY_COMPILE([
66         #include <sys/socket.h>
67         #include <sys/types.h>
68         ],[
69         socklen_t a, b;
70         a = 2; b = 4; a += b;
71         ],[
72         AC_DEFINE(HAVE_socklen_t) AC_MSG_RESULT(yes)
73         ],[
74         AC_MSG_RESULT(no)
75 ])
76
77 # -- Funktionen --
78
79 AC_CHECK_FUNCS([socket],,[required functions missing!])
80
81 # -- Libraries --
82
83 # -- Konfigurationsoptionen --
84
85 # -- Ausgabe --
86
87 AC_OUTPUT([Makefile MacOSX/Makefile src/Makefile src/ngircd/Makefile])
88
89 # -eof-