]> jfr.im git - irc/blitzed-org/bopm.git/blob - configure.in
configure.in, configure:
[irc/blitzed-org/bopm.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(opercmd.h)
3
4 AC_CONFIG_HEADER(setup.h)
5
6 AC_ARG_WITH(select, \
7 [ --with-select use select() instead of poll()], with_select=yes, with_select=no)
8 AC_ARG_WITH(unreal, \
9 [ --with-unreal you need this if you are using Unreal ircd (any version)], with_unreal=yes, with_unreal=no)
10
11 dnl Checks for programs.
12 AC_PROG_CC
13
14 dnl Checks for libraries.
15
16 dnl Checks for header files.
17 AC_HEADER_STDC
18
19 if test "$with_select" = "yes"; then
20 echo "use of select() forced, skipping poll() checks..."
21 AC_DEFINE(WITH_SELECT, 1, [Define if you wish to force use of select() even when poll() may be present])
22 else
23 AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
24 fi
25
26 if test "$with_unreal" = "yes"; then
27 echo "configuring for Unreal ircd"
28 AC_DEFINE(WITH_UNREAL, 1, [Define if you are using Unreal ircd (any version)])
29 fi
30
31 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h)
32
33 dnl Checks for typedefs, structures, and compiler characteristics.
34 AC_C_CONST
35 AC_TYPE_SIZE_T
36 AC_HEADER_TIME
37 AC_STRUCT_TM
38
39 dnl Checks for library functions.
40 AC_TYPE_SIGNAL
41 AC_FUNC_STRFTIME
42
43 dnl if they want select() or they don't have poll() then we need to check
44 dnl that we actually have select()
45 if test "$with_select" = "yes" || test "$have_sys_poll_h" = "no"; then
46 AC_CHECK_FUNCS(select, have_select=yes, have_select=no)
47 if test "$have_select" = "no"; then
48 AC_MSG_ERROR([No select() implementation found])
49 fi
50 fi
51
52 AC_CHECK_FUNCS(inet_aton socket strdup strstr)
53
54 dnl AIX fun
55 AC_C_BIGENDIAN
56
57 dnl Solaris has to be weird doesn't it...
58 AC_CHECK_LIB(socket, socket, AC_SUBST(LSOCKET, [-lsocket]))
59 AC_CHECK_LIB(nsl, gethostbyname, AC_SUBST(LNSL, [-lnsl]))
60
61 dnl teehee - taken from MRTG / Tobias Oetiker
62 echo $ECHO_N "checking for POSIX-compliant goat $ECHO_C"
63 for bleh in 1 2 3; do
64 echo $ECHO_N ".\a"
65 sleep 1
66 done
67 AC_MSG_RESULT([ http://www.blitzed.org/goat_winter_2001.phtml])
68
69 AC_OUTPUT(Makefile)
70
71 echo "##############################################################################"
72 echo "# Everything is now configured, but you can find some more (infrequently #"
73 echo "# changed) options in options.h. To compile BOPM now, just type make. It #"
74 echo "# requires GNU Make, which may be installed as gmake on your system. #"
75 echo "# #"
76 echo "# If possible, PLEASE CONTRIBUTE TO OUR DNSBL BY REPORTING YOUR PROXIES!! #"
77 echo "# #"
78 echo "# o What is DNSBL? #"
79 echo "# It's the database of open proxies we provide and your BOPM checks #"
80 echo "# against BEFORE bothering to scan the client, therefore killing KNOWN #"
81 echo "# proxies faster and more efficiently. #"
82 echo "# #"
83 echo "# o Why should my network contribute? #"
84 echo "# Because the more that do, the more proxies we know about and the #"
85 echo "# better the service becomes for all BOPM users including YOU! People #"
86 echo "# are also using our DNSBL to block spam (spammers use open proxies #"
87 echo "# too!) so you'd be helping the whole Internet. #"
88 echo "# #"
89 echo "# o Sounds complicated, what do you need? #"
90 echo "# BOPM is already designed to report the proxies you find, but it is #"
91 echo "# turned off by default. To enable it all you have to do is: #"
92 echo "# - Set DNSBL_FROM to a unique email address that we can contact you #"
93 echo "# at if there is ever any problem with your reports. #"
94 echo "# - Email us now at opm@lists.blitzed.org to tell us what you have #"
95 echo "# set your DNSBL_FROM to. #"
96 echo "# - Set DNSBL_TO to proxy-report@blitzed.org. #"
97 echo "# - Set SENDMAIL to contain the path to your sendmail binary (even #"
98 echo "# if you don't use sendmail you will have a binary named sendmail in #"
99 echo "# /usr/sbin or /usr/lib. #"
100 echo "# #"
101 echo "# For more info about the people who already report their proxies, please #"
102 echo "# see http://www.blitzed.org/bopm/ - Thank you! #"
103 echo "##############################################################################"