1 dnl Process this file with autoconf to produce a configure script.
4 AC_CONFIG_HEADER(setup.h)
7 [ --with-select use select() instead of poll()], with_select=yes, with_select=no)
9 [ --with-unreal you need this if you are using Unreal ircd (any version)], with_unreal=yes, with_unreal=no)
11 dnl Checks for programs.
14 dnl Checks for libraries.
16 dnl Checks for header files.
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])
23 AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
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)])
31 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h)
33 dnl Checks for typedefs, structures, and compiler characteristics.
39 dnl Checks for library functions.
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])
52 AC_CHECK_FUNCS(inet_aton socket strdup strstr)
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]))
61 dnl teehee - taken from MRTG / Tobias Oetiker
62 echo $ECHO_N "checking for POSIX-compliant goat $ECHO_C"
67 AC_MSG_RESULT([ http://www.blitzed.org/goat_winter_2001.phtml])
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. #"
76 echo "# If possible, PLEASE CONTRIBUTE TO OUR DNSBL BY REPORTING YOUR PROXIES!! #"
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. #"
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. #"
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. #"
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 "##############################################################################"