2 dnl Copyright (c) 2001-2004, Roger Dingledine
3 dnl Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
4 dnl See LICENSE for licensing information
7 AM_INIT_AUTOMAKE(tor, 0.1.2.1-alpha-dev)
8 AM_CONFIG_HEADER(orconfig.h)
12 if test -f /etc/redhat-release; then
13 CFLAGS="$CFLAGS -I/usr/kerberos/include"
17 AC_HELP_STRING(--enable-debug, compile with debugging info),
18 [if test x$enableval = xyes; then
22 AC_ARG_ENABLE(threads,
23 AC_HELP_STRING(--disable-threads, disable multi-threading support))
25 if test x$enable_threads = x; then
27 *-*-netbsd* | *-*-openbsd* )
28 # Don't try multithreading on netbsd -- there is no threadsafe DNS
29 # lookup function there.
30 AC_MSG_NOTICE([You are running OpenBSD or NetBSD; I am assuming that
31 getaddrinfo is not threadsafe here, so I will disable threads.])
34 # Don't try multithreading on solaris -- cpuworkers seem to lock.
35 AC_MSG_NOTICE([You are running Solaris; Sometimes threading makes
36 cpu workers lock up here, so I will disable threads.])
39 enable_threads="yes";;
43 if test $enable_threads = "yes"; then
44 AC_DEFINE(ENABLE_THREADS, 1, [Defined if we will try to use multithreading])
47 AC_ARG_ENABLE(eventdns,
48 AC_HELP_STRING(--enable-eventdns, enable asynchronous dns module),
49 [case "${enableval}" in
52 *) AC_MSG_ERROR(bad value for --enable-eventdns) ;;
53 esac], [eventdns=true])
54 AM_CONDITIONAL(EVENTDNS, test x$eventdns = xtrue)
55 if test x$eventdns = xtrue; then
56 AC_DEFINE([USE_EVENTDNS], 1, "Define to 1 if we'll be using eventdns.c")
59 AC_ARG_ENABLE(transparent,
60 AC_HELP_STRING(--disable-transparent, disable transparent proxy support),
61 [case "${enableval}" in
62 yes) transparent=true ;;
63 no) transparent=false ;;
64 *) AC_MSG_ERROR(bad value for --enable-transparent) ;;
65 esac], [transparent=true])
69 AC_DEFINE(_REENTRANT, 1, [Define on some platforms to activate x_r() functions in time.h])
77 # If WIN32 is defined and non-zero, we are building for win32
78 AC_MSG_CHECKING([for win32])
91 bwin32=true; AC_MSG_RESULT([yes]),
92 bwin32=false; AC_MSG_RESULT([no])
95 if test $bwin32 = true; then
97 AC_DEFINE(MS_WINDOWS,1, [Define to 1 if we are building for a Windows platform.])
102 # The big search for OpenSSL
103 # copied from openssh's configure.ac
106 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
108 if test "x$withval" != "xno" ; then
115 AC_ARG_WITH(libevent-dir,
116 [ --with-libevent-dir=PATH Specify path to Libevent installation ],
118 if test "x$withval" != "xno" ; then
119 trylibeventdir=$withval
125 AC_ARG_WITH(tor-user,
126 [ --with-tor-user=NAME Specify username for tor daemon ],
134 AC_ARG_WITH(tor-group,
135 [ --with-tor-group=NAME Specify group name for tor daemon ],
142 AC_SEARCH_LIBS(socket, [socket])
143 AC_SEARCH_LIBS(gethostbyname, [nsl])
144 AC_SEARCH_LIBS(dlopen, [dl])
146 if test $enable_threads = "yes"; then
147 AC_SEARCH_LIBS(pthread_create, [pthread])
148 AC_SEARCH_LIBS(pthread_detach, [pthread])
151 dnl ------------------------------------------------------
152 dnl Where do you live, libevent? And how do we call you?
154 AC_CACHE_CHECK([for libevent directory], ac_cv_libevent_dir, [
156 saved_LDFLAGS="$LDFLAGS"
157 saved_CPPFLAGS="$CPPFLAGS"
159 for ledir in $trylibeventdir "" $prefix /usr/local ; do
160 LDFLAGS="$saved_LDFLAGS"
162 if test $bwin32 = true; then
163 LIBS="$saved_LIBS -levent -lws2_32"
165 LIBS="$saved_LIBS -levent"
168 # Skip the directory if it isn't there.
169 if test ! -z "$ledir" -a ! -d "$ledir" ; then
172 if test ! -z "$ledir" ; then
173 if test -d "$ledir/lib" ; then
174 LDFLAGS="-L$ledir/lib $LDFLAGS"
176 LDFLAGS="-L$ledir $LDFLAGS"
178 if test -d "$ledir/include" ; then
179 CPPFLAGS="-I$ledir/include $CPPFLAGS"
181 CPPFLAGS="-I$ledir $CPPFLAGS"
184 # Can I compile and link it?
185 AC_TRY_LINK([#include <sys/time.h>
186 #include <sys/types.h>
187 #include <event.h>], [ event_init(); ],
188 [ libevent_linked=yes ], [ libevent_linked=no ])
189 if test $libevent_linked = yes; then
190 if test ! -z "$ledir" ; then
191 ac_cv_libevent_dir=$ledir
193 ac_cv_libevent_dir="(system)"
200 LDFLAGS="$saved_LDFLAGS"
201 CPPFLAGS="$saved_CPPFLAGS"
202 if test $le_found = no ; then
203 AC_MSG_ERROR([Could not find a linkable libevent. You can specify an explicit path using --with-libevent-dir])
207 if test $bwin32 = true; then
208 LIBS="$LIBS -levent -lws2_32"
212 if test $ac_cv_libevent_dir != "(system)"; then
213 if test -d "$ac_cv_libevent_dir/lib" ; then
214 LDFLAGS="-L$ac_cv_libevent_dir/lib $LDFLAGS"
215 le_libdir="$ac_cv_libevent_dir/lib"
217 LDFLAGS="-L$ac_cv_libevent_dir $LDFLAGS"
218 le_libdir="$ac_cv_libevent_dir"
220 if test -d "$ac_cv_libevent_dir/include" ; then
221 CPPFLAGS="-I$ac_cv_libevent_dir/include $CPPFLAGS"
223 CPPFLAGS="-I$ac_cv_libevent_dir $CPPFLAGS"
227 if test -z "$CROSS_COMPILE"; then
228 AC_CACHE_CHECK([whether we need extra options to link libevent],
229 ac_cv_libevent_linker_option, [
230 saved_LDFLAGS="$LDFLAGS"
233 for le_extra in "" "-Wl,-R$le_libdir" "-R$le_libdir" ; do
234 LDFLAGS="$le_extra $saved_LDFLAGS"
235 AC_TRY_RUN([void *event_init(void);
236 int main(int c, char **v) {
237 event_init(); return 0;
239 libevent_runs=yes, libevent_runs=no)
240 if test $libevent_runs = yes ; then
241 if test -z "$le_extra" ; then
242 ac_cv_libevent_linker_option='(none)'
244 ac_cv_libevent_linker_option=$le_extra
250 if test $le_runs = no ; then
251 AC_MSG_ERROR([Found linkable libevent in $ac_cv_libevent_dir, but it doesn't run, even with -R. Maybe specify another using --with-libevent-dir?])
253 LDFLAGS="$saved_LDFLAGS"
256 if test $ac_cv_libevent_linker_option != '(none)' ; then
257 LDFLAGS="$ac_cv_libevent_linker_option $LDFLAGS"
261 dnl ------------------------------------------------------
262 dnl Where do you live, openssl? And how do we call you?
264 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssl_dir, [
266 saved_LDFLAGS="$LDFLAGS"
267 saved_CPPFLAGS="$CPPFLAGS"
269 for ssldir in $tryssldir "" $prefix /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/athena /usr/pkg /opt /opt/openssl ; do
270 LDFLAGS="$saved_LDFLAGS"
272 if test $bwin32 = true; then
273 LIBS="$saved_LIBS -lssl -lcrypto -lws2_32 -lgdi32"
275 LIBS="$saved_LIBS -lssl -lcrypto"
278 # Skip the directory if it isn't there.
279 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
282 if test ! -z "$ssldir" ; then
283 if test -d "$ssldir/lib" ; then
284 LDFLAGS="-L$ssldir/lib $LDFLAGS"
286 LDFLAGS="-L$ssldir $LDFLAGS"
288 if test -d "$ssldir/include" ; then
289 CPPFLAGS="-I$ssldir/include $CPPFLAGS"
291 CPPFLAGS="-I$ssldir $CPPFLAGS"
295 AC_TRY_LINK([#include <openssl/rand.h>],
296 [ RAND_add((void*)0,0,0); ],
297 [ openssl_linked=yes ], [ openssl_linked=no ])
298 if test $openssl_linked = yes; then
299 if test ! -z "$ssldir" ; then
300 ac_cv_openssl_dir=$ssldir
302 ac_cv_openssl_dir="(system)"
309 LDFLAGS="$saved_LDFLAGS"
310 CPPFLAGS="$saved_CPPFLAGS"
311 if test $ssl_found = no ; then
312 AC_MSG_ERROR([Could not find a linkable OpenSSL. You can specify an explicit path using --with-ssl-dir])
316 if test $bwin32 = true; then
317 LIBS="$LIBS -lssl -lcrypto -lws2_32 -lgdi32"
319 LIBS="$LIBS -lssl -lcrypto"
322 if test "$ac_cv_openssl_dir" != "(system)"; then
323 if test -d "$ac_cv_openssl_dir/lib" ; then
324 LDFLAGS="-L$ac_cv_openssl_dir/lib $LDFLAGS"
325 ssl_libdir="$ac_cv_openssl_dir/lib"
327 LDFLAGS="-L$ac_cv_openssl_dir $LDFLAGS"
328 ssl_libdir="$ac_cv_openssl_dir"
330 if test -d "$ac_cv_openssl_dir/include" ; then
331 CPPFLAGS="-I$ac_cv_openssl_dir/include $CPPFLAGS"
333 CPPFLAGS="-I$ac_cv_openssl_dir $CPPFLAGS"
337 if test -z $CROSS_COMPILE
339 AC_CACHE_CHECK([whether we need extra options to link OpenSSL],
340 ac_cv_openssl_linker_option, [
341 saved_LDFLAGS="$LDFLAGS"
344 for ssl_extra in "" "-Wl,-R$ssl_libdir" "-R$ssl_libdir" ; do
345 LDFLAGS="$ssl_extra $saved_LDFLAGS"
348 #include <openssl/rand.h>
352 memset(a, 0, sizeof(a));
353 RAND_add(a, sizeof(a), sizeof(a));
354 return(RAND_status() <= 0);
357 openssl_runs=yes, openssl_runs=no)
358 if test $openssl_runs = yes ; then
359 if test "$linked_with" = nothing; then
360 linked_with="$ssl_extra"
363 #include <openssl/opensslv.h>
364 #include <openssl/crypto.h>
366 return (OPENSSL_VERSION_NUMBER == SSLeay()) == 0;
368 right_version=yes, right_version=no)
369 if test "$right_version" = yes; then
370 if test -z "$ssl_extra" ; then
371 ac_cv_openssl_linker_option='(none)'
373 ac_cv_openssl_linker_option=$ssl_extra
380 if test $ssl_runs = no ; then
381 if test "$linked_with" = 'nothing' ; then
382 AC_MSG_ERROR([Found linkable OpenSSL in $ac_cv_openssl_dir, but it doesn't run, even with -R. Maybe specify another using --with-ssl-dir?])
384 if test -z "$linked_with" ; then
385 ac_cv_openssl_linker_option='(none)'
387 ac_cv_openssl_linker_option=$linked_with
389 AC_MSG_WARN([I managed to make OpenSSL link and run, but I couldn't make it link against the same version I found header files for.])
392 LDFLAGS="$saved_LDFLAGS"
395 if test "$ac_cv_openssl_linker_option" != '(none)' ; then
396 LDFLAGS="$ac_cv_openssl_linker_option $LDFLAGS"
400 dnl Make sure to enable support for large off_t if avalable.
404 dnl The warning message here is no longer strictly accurate.
406 AC_CHECK_HEADERS(unistd.h string.h signal.h netdb.h ctype.h sys/stat.h sys/types.h fcntl.h sys/fcntl.h sys/ioctl.h sys/socket.h sys/time.h netinet/in.h arpa/inet.h errno.h assert.h time.h pwd.h grp.h, , AC_MSG_WARN(some headers were not found, compilation may fail))
408 AC_CHECK_HEADERS(event.h, , AC_MSG_ERROR(Libevent header (event.h) not found. Tor requires libevent to build.),
409 [#ifdef HAVE_SYS_TYPES_H
410 #include <sys/types.h>
412 #ifdef HAVE_SYS_TIME_H
413 #include <sys/time.h>
421 AC_CHECK_HEADERS(zlib.h, , AC_MSG_ERROR(Zlib header (zlib.h) not found. Tor requires zlib to build. You may need to install a zlib development package.))
423 dnl These headers are not essential
425 AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h)
427 AC_CHECK_HEADERS(net/if.h, [net_if_found=1], [net_if_found=0],
428 [#ifdef HAVE_SYS_TYPES_H
429 #include <sys/types.h>
431 #ifdef HAVE_SYS_SOCKET_H
432 #include <sys/socket.h>
434 AC_CHECK_HEADERS(net/pfvar.h, [net_pfvar_found=1], [net_pfvar_found=0],
435 [#ifdef HAVE_SYS_TYPES_H
436 #include <sys/types.h>
438 #ifdef HAVE_SYS_SOCKET_H
439 #include <sys/socket.h>
444 AC_CHECK_HEADERS(linux/netfilter_ipv4.h,
445 [linux_netfilter_ipv4=1], [linux_netfilter_ipv4=0],
446 [#ifdef HAVE_SYS_SOCKET_H
447 #include <sys/socket.h>
450 AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit strlcat strlcpy strtoull ftello getaddrinfo localtime_r gmtime_r event_get_version event_get_method event_set_log_callback memmem strtok_r)
452 if test $enable_threads = "yes"; then
453 AC_CHECK_HEADERS(pthread.h)
454 AC_CHECK_FUNCS(pthread_create)
457 if test x$transparent = xtrue ; then
459 if test x$net_if_found = x1 -a x$net_pfvar_found = x1 ; then
462 if test x$linux_netfilter_ipv4 = x1 ; then
465 if test x$transparent_ok = x1 ; then
466 AC_DEFINE(USE_TRANSPARENT, 1, "Define to enable transparent proxy support")
469 AC_DEFINE(OPENBSD, 1, "Define to handle pf on OpenBSD properly") ;;
472 AC_MSG_NOTICE([Transparent proxy support enabled, but missing headers.])
478 AC_CHECK_MEMBERS([struct timeval.tv_sec])
480 dnl In case we aren't given a working stdint.h, we'll need to grow our own.
483 AC_CHECK_SIZEOF(int8_t)
484 AC_CHECK_SIZEOF(int16_t)
485 AC_CHECK_SIZEOF(int32_t)
486 AC_CHECK_SIZEOF(int64_t)
487 AC_CHECK_SIZEOF(uint8_t)
488 AC_CHECK_SIZEOF(uint16_t)
489 AC_CHECK_SIZEOF(uint32_t)
490 AC_CHECK_SIZEOF(uint64_t)
491 AC_CHECK_SIZEOF(intptr_t)
492 AC_CHECK_SIZEOF(uintptr_t)
494 dnl AC_CHECK_TYPES([int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t, uint64_t, intptr_t, uintptr_t])
496 AC_CHECK_SIZEOF(char)
497 AC_CHECK_SIZEOF(short)
499 AC_CHECK_SIZEOF(long)
500 AC_CHECK_SIZEOF(long long)
501 AC_CHECK_SIZEOF(__int64)
502 AC_CHECK_SIZEOF(void *)
503 AC_CHECK_SIZEOF(time_t)
505 AC_CHECK_TYPES([uint, u_char])
507 if test -z "$CROSS_COMPILE"; then
508 AC_CACHE_CHECK([whether time_t is signed], tor_cv_time_t_signed, [
510 int main(int c, char**v) { if (((time_t)-1)<0) return 1; else return 0; }],
511 tor_cv_time_t_signed=no, tor_cv_time_t_signed=yes)
514 # Cross-compiling; let's hope the target platform isn't loony.
515 AC_MSG_NOTICE([Cross compiling: assuming that time_t is signed.])
516 tor_cv_time_t_signed=yes
519 if test $tor_cv_time_t_signed = yes; then
520 AC_DEFINE([TIME_T_IS_SIGNED], 1,
521 [Define to 1 iff time_t is signed])
524 AC_CHECK_SIZEOF(socklen_t, , [AC_INCLUDES_DEFAULT()
525 #ifdef HAVE_SYS_SOCKET_H
526 #include <sys/socket.h>
530 # We want to make sure that we _don't_ have a cell_t defined, like IRIX does.
532 AC_CHECK_SIZEOF(cell_t)
534 # Now make sure that NULL can be represented as zero bytes.
535 if test -z "$CROSS_COMPILE"; then
536 AC_CACHE_CHECK([whether memset(0) sets pointers to NULL], tor_cv_null_is_zero,
537 [AC_RUN_IFELSE([AC_LANG_SOURCE(
538 [[#include <stdlib.h>
544 int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
545 return memcmp(&p1,&p2,sizeof(char*))?1:0; }]])],
546 [tor_cv_null_is_zero=yes],
547 [tor_cv_null_is_zero=no],
548 [tor_cv_null_is_zero=cross])])
551 # Cross-compiling; let's hope that the target isn't raving mad.
552 AC_MSG_NOTICE([Cross-compiling: we'll assume that NULL is represented as a sequence of 0-valued bytes.])
553 tor_cv_null_is_zero=yes
556 if test $tor_cv_null_is_zero = yes; then
557 AC_DEFINE([NULL_REP_IS_ZERO_BYTES], 1,
558 [Define to 1 iff memset(0) sets pointers to NULL])
561 # Whether we should use the dmalloc memory allocation debugging library.
562 AC_MSG_CHECKING(whether to use dmalloc (debug memory allocation library))
564 [ --with-dmalloc Use debug memory allocation library. ],
565 [if [[ "$withval" = "yes" ]]; then
571 fi], [ dmalloc=0; AC_MSG_RESULT(no) ]
574 if [[ $dmalloc -eq 1 ]]; then
575 AC_CHECK_HEADERS(dmalloc.h, , AC_MSG_ERROR(dmalloc header file not found. Do you have the development files for dmalloc installed?))
576 AC_SEARCH_LIBS(dmalloc_malloc, [dmallocth dmalloc], , AC_MSG_ERROR(Libdmalloc library not found. If you enable it you better have it installed.))
577 AC_DEFINE(USE_DMALLOC, 1, [Debug memory allocation library])
578 AC_DEFINE(DMALLOC_FUNC_CHECK, 1, [Enable dmalloc's malloc function check])
581 # Allow user to specify an alternate syslog facility
582 AC_ARG_WITH(syslog-facility,
583 [ --with-syslog-facility=LOG syslog facility to use (default=LOG_DAEMON)],
584 syslog_facility="$withval", syslog_facility="LOG_DAEMON")
585 AC_DEFINE_UNQUOTED(LOGFACILITY,$syslog_facility,[name of the syslog facility])
586 AC_SUBST(LOGFACILITY)
588 # Check for gethostbyname_r in all its glorious incompatible versions.
589 # (This logic is based on that in Python's configure.in)
590 AH_TEMPLATE(HAVE_GETHOSTBYNAME_R,
591 [Define this if you have any gethostbyname_r()])
593 AC_CHECK_FUNC(gethostbyname_r, [
594 AC_MSG_CHECKING([how many arguments gethostbyname_r() wants])
596 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
601 struct hostent *h1, *h2;
603 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
605 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
606 AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1,
607 [Define this if gethostbyname_r takes 6 arguments])
616 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
618 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
619 AC_DEFINE(HAVE_GETHOSTBYNAME_R_5_ARG, 1,
620 [Define this if gethostbyname_r takes 5 arguments])
628 struct hostent_data hd;
629 (void) gethostbyname_r(cp1,h1,&hd);
631 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
632 AC_DEFINE(HAVE_GETHOSTBYNAME_R_3_ARG, 1,
633 [Define this if gethostbyname_r takes 3 arguments])
643 AC_CACHE_CHECK([whether the C compiler supports __func__],
644 ac_cv_have_func_macro,
647 int main(int c, char **v) { puts(__func__); }],
648 ac_cv_have_func_macro=yes,
649 ac_cv_have_func_macro=no))
651 AC_CACHE_CHECK([whether the C compiler supports __FUNC__],
652 ac_cv_have_FUNC_macro,
655 int main(int c, char **v) { puts(__FUNC__); }],
656 ac_cv_have_FUNC_macro=yes,
657 ac_cv_have_FUNC_macro=no))
659 AC_CACHE_CHECK([whether the C compiler supports __FUNCTION__],
660 ac_cv_have_FUNCTION_macro,
663 int main(int c, char **v) { puts(__FUNCTION__); }],
664 ac_cv_have_FUNCTION_macro=yes,
665 ac_cv_have_FUNCTION_macro=no))
667 if test $ac_cv_have_func_macro = 'yes'; then
668 AC_DEFINE(HAVE_MACRO__func__, 1, [Defined if the compiler supports __func__])
671 if test $ac_cv_have_FUNC_macro = 'yes'; then
672 AC_DEFINE(HAVE_MACRO__FUNC__, 1, [Defined if the compiler supports __FUNC__])
675 if test $ac_cv_have_FUNCTION_macro = 'yes'; then
676 AC_DEFINE(HAVE_MACRO__FUNCTION__, 1,
677 [Defined if the compiler supports __FUNCTION__])
680 # $prefix stores the value of the --prefix command line option, or
681 # NONE if the option wasn't set. In the case that it wasn't set, make
682 # it be the default, so that we can use it to expand directories now.
683 if test "x$prefix" = "xNONE"; then
684 prefix=$ac_default_prefix
687 # and similarly for $exec_prefix
688 if test "x$exec_prefix" = "xNONE"; then
692 CONFDIR=`eval echo $sysconfdir/tor`
694 AH_TEMPLATE([CONFDIR],[tor's configuration directory])
695 AC_DEFINE_UNQUOTED(CONFDIR,"$CONFDIR")
697 BINDIR=`eval echo $bindir`
700 LOCALSTATEDIR=`eval echo $localstatedir`
701 AC_SUBST(LOCALSTATEDIR)
702 AH_TEMPLATE([LOCALSTATEDIR], [Default location to store state files.])
703 AC_DEFINE_UNQUOTED(LOCALSTATEDIR,"$LOCALSTATEDIR")
705 # Set CFLAGS _after_ all the above checks, since our warnings are stricter
706 # than autoconf's macros like.
707 if test $ac_cv_c_compiler_gnu = yes; then
708 CFLAGS="$CFLAGS -Wall -g -O2"
710 CFLAGS="$CFLAGS -g -O"
712 # Add some more warnings which we use in the cvs version but not in the
713 # released versions. (Some relevant gcc versions can't handle these.)
714 #CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Winit-self -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-field-initializers -Wredundant-decls -Winline -Wnested-externs -Wswitch-enums"
715 # Add these in when you feel like fun.
716 #CFLAGS="$CFLAGS -Wbad-function-cast -Werror -Wdeclaration-after-statement -Wold-style-definition"
718 echo "confdir: $CONFDIR"
720 AC_OUTPUT(Makefile tor.spec contrib/tor.sh contrib/torctl contrib/torify contrib/tor.logrotate contrib/Makefile contrib/osx/Makefile contrib/osx/TorBundleDesc.plist contrib/osx/TorBundleInfo.plist contrib/osx/TorDesc.plist contrib/osx/TorInfo.plist contrib/osx/TorStartupDesc.plist src/config/torrc.sample doc/tor.1 src/Makefile doc/Makefile doc/design-paper/Makefile src/config/Makefile src/common/Makefile src/or/Makefile src/win32/Makefile src/tools/Makefile contrib/suse/Makefile contrib/suse/tor.sh)
722 if test -x /usr/bin/perl && test -x ./contrib/updateVersions.pl ; then
723 ./contrib/updateVersions.pl