• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching +full:- +full:wdeclaration +full:- +full:after +full:- +full:statement

1 dnl Copyright 2000-2007 Niels Provos
2 dnl Copyright 2007-2012 Niels Provos and Nick Mathewson
8 AC_INIT(libevent,2.1.8-stable)
16 AC_CONFIG_HEADERS(config.h evconfig-private.h:evconfig-private.h.in)
41 # CFLAGS="$CFLAGS -D_OSF_SOURCE"
49 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
60 # have -fno-strict-aliasing
68 CFLAGS="$CFLAGS -Wall"
69 # And disable the strict-aliasing optimization, since it breaks
70 # our sockaddr-handling code in strange ways.
72 CFLAGS="$CFLAGS -fno-strict-aliasing"
81 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
86 AC_ARG_ENABLE(gcc-warnings,
87 AS_HELP_STRING(--disable-gcc-warnings, disable verbose warnings with GCC))
89 AC_ARG_ENABLE(gcc-hardening,
90 AS_HELP_STRING(--enable-gcc-hardening, enable compiler security checks),
92 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
93 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
94 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
97 AC_ARG_ENABLE(thread-support,
98 AS_HELP_STRING(--disable-thread-support, disable support for threading),
100 AC_ARG_ENABLE(malloc-replacement,
101 …AS_HELP_STRING(--disable-malloc-replacement, disable support for replacing the memory mgt function…
104 AS_HELP_STRING(--disable-openssl, disable support for openssl encryption),
106 AC_ARG_ENABLE(debug-mode,
107 AS_HELP_STRING(--disable-debug-mode, disable support for running in debug mode),
109 AC_ARG_ENABLE([libevent-install],
110 AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]),
112 AC_ARG_ENABLE([libevent-regress],
113 AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]),
116 AS_HELP_STRING([--disable-samples, skip building of sample programs]),
118 AC_ARG_ENABLE([function-sections],
119 …AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-s…
121 AC_ARG_ENABLE([verbose-debug],
122 AS_HELP_STRING([--enable-verbose-debug, verbose debug logging]),
124 AC_ARG_ENABLE([clock-gettime],
125 AS_HELP_STRING(--disable-clock-gettime, do not use clock_gettime even if it is available),
133 dnl the command line with --enable-shared and --disable-shared.
150 dnl - check if the macro _WIN32 is defined on this compiler.
151 dnl - (this is how we check for a windows compiler)
163 dnl - check if the macro __CYGWIN__ is defined on this compiler.
164 dnl - (this is how we check for a cygwin version of GCC)
196 EV_LIB_WS32=-lws2_32
197 EV_LIB_GDI=-lgdi32
406 # (This is cut-and-pasted from Tor, which based its logic on
522 if (pipe(fd) == -1)
524 if (fcntl(fd[[1]], F_SETFL, O_NONBLOCK) == -1)
530 if ((kq = kqueue()) == -1)
538 if (n == -1)
546 if (n == -1 || n == 0)
590 exit (epfd == -1 ? 1 : 0);
615 _exit(waitpid(pid, &status, WNOWAIT) == -1);
775 # check if we should hard-code the mm functions.
781 # check if we should hard-code debugging out
789 CFLAGS="$CFLAGS -DUSE_DEBUG"
823-W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings
825 CFLAGS="$CFLAGS -Werror"
828 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
832 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
833 #CFLAGS="$CFLAGS -Wold-style-definition"
838 CFLAGS="$CFLAGS -Waddress"
843 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
848 CFLAGS="$CFLAGS -Wlogical-op"
852 # Disable the unused-function warnings, because these trigger
853 # for minheap-internal.h related code.
854 CFLAGS="$CFLAGS -Wno-unused-function"
861 CFLAGS="$CFLAGS -Qunused-arguments"
866 ##This will break the world on some 64-bit architectures
867 # CFLAGS="$CFLAGS -Winline"
877 dnl NetBSD will link but likely not run with --gc-sections
880 dnl --gc-sections causes attempt to load as linux elf, with
888 CFLAGS="$CFLAGS -Wl,--gc-sections"
921 dnl mention gc-sections.
922 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
937 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
938 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"