]>
Commit | Line | Data |
---|---|---|
a15de2b9 PG |
1 | --- ./configure.in.org Thu Jul 12 18:24:48 2001 |
2 | +++ ./configure.in Thu Jul 11 03:34:48 2002 | |
3 | @@ -32,37 +32,44 @@ | |
4 | AC_TYPE_SIGNAL | |
5 | AC_FUNC_STRFTIME | |
6 | AC_CHECK_FUNCS(mkdir rmdir seteuid strcspn strerror strspn strstr strtoul) | |
7 | -AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket, , | |
8 | - AC_MSG_WARN([couldn't find your socket() function]))) | |
9 | -AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname, , | |
10 | - AC_MSG_WARN([couldn't find your gethostbyname() function]))) | |
11 | -AC_CHECK_FUNC(crypt, , AC_CHECK_LIB(crypt, crypt, , | |
12 | - AC_MSG_WARN([couldn't find your crypt() function]))) | |
9a0d9e96 | 13 | +AC_CHECK_FUNC(socket, [], |
14 | + AC_CHECK_LIB(socket, socket, [], AC_MSG_WARN([couldn't find your socket() function])) | |
a15de2b9 | 15 | + ) |
9a0d9e96 | 16 | +AC_CHECK_FUNC(gethostbyname, [], |
17 | + AC_CHECK_LIB(nsl, gethostbyname, [], AC_MSG_WARN([couldn't find your gethostbyname() function])) | |
a15de2b9 | 18 | + ) |
9a0d9e96 | 19 | +AC_CHECK_FUNC(crypt, [], |
20 | + AC_CHECK_LIB(crypt, crypt, [], AC_MSG_WARN([couldn't find your crypt() function])) | |
a15de2b9 PG |
21 | + ) |
22 | ||
23 | dnl Do strange debug stuff. | |
24 | -AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],if eval "test x$enable_debug = xyes"; then | |
25 | - CFLAGS="-g -Wall $CFLAGS" | |
26 | - AC_DEFINE(DEBUG) | |
27 | - AC_DEFINE(DEBUG_MEMORY) | |
28 | -else | |
29 | - AC_CHECK_FUNCS(strdup vasprintf vsnprintf) | |
30 | -fi, | |
31 | -AC_CHECK_FUNCS(strdup vasprintf vsnprintf) | |
32 | +AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]], | |
33 | + [if eval "test x$enable_debug = xyes"; then | |
34 | + CFLAGS="-g -Wall $CFLAGS" | |
35 | + AC_DEFINE(DEBUG) | |
36 | + AC_DEFINE(DEBUG_MEMORY) | |
37 | + else | |
38 | + AC_CHECK_FUNCS(strdup vasprintf vsnprintf) | |
39 | + fi], | |
40 | + [AC_CHECK_FUNCS(strdup vasprintf vsnprintf)] | |
41 | ) | |
42 | ||
43 | dnl Allow me to turn on/off poll and select to debug stuff | |
44 | AC_ARG_ENABLE(poll, [ --disable-poll disable use of the poll() function [default=no]], | |
45 | -if eval "test x$enable_poll = xyes"; then | |
46 | - AC_CHECK_FUNCS(poll) | |
47 | - AC_CHECK_HEADERS(poll.h sys/poll.h) | |
48 | -fi, | |
49 | -AC_CHECK_FUNCS(poll) | |
50 | -AC_CHECK_HEADERS(poll.h sys/poll.h) | |
51 | + [if eval "test x$enable_poll = xyes"; then | |
52 | + AC_CHECK_FUNCS(poll) | |
53 | + AC_CHECK_HEADERS(poll.h sys/poll.h) | |
54 | + fi], | |
55 | + [AC_CHECK_FUNCS(poll) | |
56 | + AC_CHECK_HEADERS(poll.h sys/poll.h)] | |
57 | ) | |
58 | -AC_ARG_ENABLE(select, [ --disable-select disable use of the select() function [default=no]], if eval "test x$enable_select = xyes"; then | |
59 | - AC_CHECK_FUNCS(select) | |
60 | -fi, | |
61 | -AC_CHECK_FUNCS(select) | |
62 | + | |
63 | +AC_ARG_ENABLE(select, | |
64 | + [ --disable-select disable use of the select() function [default=no]], | |
65 | + [if eval "test x$enable_select = xyes"; then | |
66 | + AC_CHECK_FUNCS(select) | |
67 | + fi], | |
68 | + [AC_CHECK_FUNCS(select)] | |
69 | ) | |
70 | ||
71 | dnl Output the Makefiles. |