1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_SRCDIR(src/opercmd.h)
4 AM_CONFIG_HEADER(src/setup.h)
6 AC_PREFIX_DEFAULT([\${HOME}/bopm])
9 AC_ARG_WITH(extra-fascism,
10 AC_HELP_STRING([--with-extra-fascism],
11 [Add extra gcc3-specific warning flags]),
12 [CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"])
15 dnl AC_ARG_ENABLE(ipv6,
16 dnl AC_HELP_STRING([--enable-ipv6], [Enable IPV6 support]),
17 dnl [ac_cv_ipv6=$enableval], [ac_cv_ipv6="no"])
19 dnl AC_MSG_CHECKING([whether to enable IPv6 features])
21 dnl if test "$ac_cv_ipv6" = "yes" ; then
22 dnl AC_DEFINE(IPV6, 1, [Use Ipv6 Support])
23 dnl AC_MSG_RESULT([yes])
25 dnl AC_MSG_RESULT([no])
28 dnl Checks for programs.
32 dnl Checks for libraries.
34 dnl Checks for header files.
37 AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
39 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h)
41 dnl Checks for typedefs, structures, and compiler characteristics.
47 dnl Checks for library functions.
60 dnl check if we need -lsocket or -lnsl
63 AC_CHECK_FUNCS(inet_aton inet_pton socket strdup strstr)
65 dnl Check if we can use gethostbyname2 for ipv6
66 AC_CHECK_FUNCS(gethostbyname gethostbyname2)
72 AC_CHECK_SIZEOF(short)
76 dnl teehee - taken from MRTG / Tobias Oetiker
77 dnl echo $ECHO_N "checking for POSIX-compliant goat $ECHO_C"
78 dnl for bleh in 1 2 3; do
79 dnl echo $ECHO_N ".
\a"
82 dnl AC_MSG_RESULT([ http://www.blitzed.org/goat_winter_2001.phtml])
86 typedef signed int int32;
87 typedef unsigned int uint32;
89 typedef signed long int32;
90 typedef unsigned long uint32;
92 # error "No 32-bit integer type!"
96 # error "Your short int data type is not 2 bytes: firedns is not going to work for you. mail bopm@lists.blitzed.org!"
100 AC_CONFIG_SUBDIRS(src/libopm)
102 dnl This comes last because configure won't actually work with -Werror in
105 AC_HELP_STRING([--with-werror],
106 [use -Werror to abort compilation on any warning]),
107 [CFLAGS="$CFLAGS -Werror"])
109 AC_OUTPUT(Makefile src/Makefile)
112 echo "##############################################################################"
113 echo "Everything is now configured, but you can find some more (infrequently"
114 echo "changed) options in options.h. To compile BOPM now, just type make. It"
115 echo "requires GNU Make, which may be installed as gmake on your system."
117 echo "bopm will be installed in ${prefix}. To change this, run:"
118 echo " ./configure --prefix=DIRECTORY"
120 echo "If possible, PLEASE CONTRIBUTE TO OUR DNSBL BY REPORTING YOUR PROXIES!!"
122 echo "o What is DNSBL?"
123 echo " It's the database of open proxies we provide and your BOPM checks"
124 echo " against BEFORE bothering to scan the client, therefore killing KNOWN"
125 echo " proxies faster and more efficiently."
127 echo "o Why should my network contribute?"
128 echo " Because the more that do, the more proxies we know about and the"
129 echo " better the service becomes for all BOPM users including YOU! People"
130 echo " are also using our DNSBL to block spam (spammers use open proxies"
131 echo " too!) so you'd be helping the whole Internet."
133 echo "o Sounds complicated, what do you need?"
134 echo " BOPM is already designed to report the proxies you find, but it is"
135 echo " turned off by default. To enable it all you have to do is:"
136 echo " - Set DNSBL_FROM to a unique email address that we can contact you"
137 echo " at if there is ever any problem with your reports."
138 echo " - Email us now at opm-bopm@blitzed.org to tell us what you have"
139 echo " set your DNSBL_FROM to."
140 echo " - Set DNSBL_TO to bopm@reports.blitzed.org."
141 echo " - Set SENDMAIL to contain the path to your sendmail binary (even"
142 echo " if you don't use sendmail you will have a binary named sendmail in"
143 echo " /usr/sbin or /usr/lib."
145 echo "For more info about the people who already report their proxies, please"
146 echo "see http://www.blitzed.org/bopm/ - Thank you!"
147 echo "##############################################################################"