Lines Matching +full:- +full:wdeclaration +full:- +full:after +full:- +full:statement
44 AC_ARG_WITH(gcc, [ --without-gcc don't use gcc])
47 $1="-I$srcdir"
52 if test -z "$CC" ; then
64 if test -z "$CC" -a "$with_gcc" = no ; then
75 dnl use -O (AC_PROG_CC will use -g -O2 on gcc, so we don't need to
77 dnl add -g flags, as appropriate
102 # -Werror forces warnings to be errors.
104 ac_lbl_cc_force_warning_errors=-Werror
107 # Use -ffloat-store so that, on 32-bit x86, we don't
108 # do 80-bit arithmetic with the FPU; that way we should
109 # get the same results for floating-point calculations
110 # on x86-32 and x86-64.
112 AC_LBL_CHECK_COMPILER_OPT($1, -ffloat-store)
114 $2="$$2 -I/usr/local/include"
115 LDFLAGS="$LDFLAGS -L/usr/local/lib"
122 # of which use -Werror to force warnings to be errors.
124 ac_lbl_cc_force_warning_errors=-Werror
130 # exit with a non-zero exit status if we hand it an
131 # invalid -W flag, can't be forced to do so even with
132 # +We, and doesn't handle GCC-style -W flags, so we
133 # don't want to try using GCC-style -W flags.
141 # necessarily exit with a non-zero exit status if we
142 # hand it an invalid -W flag, can't be forced to do
143 # so, and doesn't handle GCC-style -W flags, so we
144 # don't want to try using GCC-style -W flags.
154 # -xansi is normally the default, but the
155 # configure script was setting it; perhaps -cckr
162 # -g is equivalent to -g2, which turns off
163 # optimization; we choose -g3, which generates
168 $1="$$1 -xansi -signed -g3"
177 # using, doesn't exit with a non-zero exit status if we
178 # hand it an invalid -W flag, can't be forced to do
179 # so, and doesn't handle GCC-style -W flags, so we
180 # don't want to try using GCC-style -W flags.
184 # -g is equivalent to -g2, which turns off
185 # optimization; we choose -g3, which generates
190 $1="$$1 -g3"
195 # Assumed to be Sun C, which requires -errwarn to force
198 ac_lbl_cc_force_warning_errors=-errwarn
217 $1="$$1 -O"
232 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
240 # -Werror=unknown-warning-option is the appropriate
243 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
260 if expr "x$2" : "x-W.*" >/dev/null
263 elif expr "x$2" : "x-f.*" >/dev/null
265 CFLAGS="$CFLAGS -Werror $2"
266 elif expr "x$2" : "x-m.*" >/dev/null
268 CFLAGS="$CFLAGS -Werror $2"
288 dnl Makefile-style dependency lines
290 dnl GCC uses -M for this. Non-GCC compilers that support this
291 dnl use a variety of flags, including but not limited to -M.
301 dnl output by default. IBM's XLC, however, supports -M but sends
302 dnl the output to {sourcefile-basename}.u, and AIX has no /dev/stdout
312 # would be -M.
314 ac_lbl_dependency_flag="-M"
327 # MIPS C for IRIX, DEC C, and clang all use -M.
329 ac_lbl_dependency_flag="-M"
334 # Sun C uses -xM.
336 ac_lbl_dependency_flag="-xM"
366 # an unknown non-warning error, even if you pass it
367 # -Werror=unknown-warning-option. However, it always supports
368 # -M, so the fact that this test always succeeds with clang
371 if test ! -z "$ac_lbl_dependency_flag"; then
387 rm -rf conftest*
444 if test ! -z "$ac_cv_lbl_inline" ; then
475 if test -f $pfopen ; then
484 AC_ARG_WITH([system-libpcap],
485 [AS_HELP_STRING([--with-system-libpcap], [don't use local pcap library])])
488 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
489 egrep '/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
490 places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
491 egrep '/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
493 basedir=`echo $dir | sed -e 's/[[ab]][[0-9]]*$//' | \
494 sed -e 's/-PRE-GIT$//' `
500 if test -r $dir/libpcap.a ; then
511 # Look for pcap-config.
513 AC_PATH_TOOL(PCAP_CONFIG, pcap-config)
514 if test -n "$PCAP_CONFIG" ; then
516 # Found - use it to get the include flags for
522 # the statement "There is just no portable way to use
523 # double-quoted strings inside double-quoted back-quoted
526 cflags=`"$PCAP_CONFIG" --cflags`
528 libpcap=`"$PCAP_CONFIG" --libs`
533 AC_CHECK_LIB(pcap, main, libpcap="-lpcap")
550 dnl if so, add that subdirectory to the "-I" list.
557 if test \( ! -r /usr/local/include/pcap.h \) -a \
558 \( ! -r /usr/include/pcap.h \); then
559 if test -r /usr/local/include/pcap/pcap.h; then
561 elif test -r /usr/include/pcap/pcap.h; then
565 if test -z "$d" ; then
568 $2="-I$d $$2"
569 AC_MSG_RESULT(found -- -I$d added)
574 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
575 egrep '/libpcap-[[0-9]]*.[[0-9]]*(.[[0-9]]*)?([[ab]][[0-9]]*)?$'`
576 places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
577 egrep '/libpcap-[[0-9]]*.[[0-9]]*(.[[0-9]]*)?([[ab]][[0-9]]*)?$'`
579 if test -r $d/pcap.h; then
583 if test -r $dir/pcap.h ; then
592 $2="-I$pcapH $$2"
594 AC_PATH_PROG(PCAP_CONFIG, pcap-config,, $d)
595 if test -n "$PCAP_CONFIG"; then
597 # The libpcap directory has a pcap-config script.
605 # the statement "There is just no portable way to use
606 # double-quoted strings inside double-quoted back-quoted
609 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
614 if ! test -n "$PCAP_CONFIG" ; then
616 # We don't have pcap-config; find out any additional link flags
617 # we need. (If we have pcap-config, we assume it tells us what
624 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
627 # (XXX - true only if we're linking with a static libpcap?)
631 if test -f $pseexe ; then
633 LIBS="$LIBS -I:$pseexe"
637 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
640 # (XXX - true only if we're linking with a static libpcap?)
642 LIBS="$LIBS -lodm -lcfg"
787 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
796 dnl Checks to see if -R is used
807 [AC_MSG_CHECKING(for ${CC-cc} -R)
810 ${CC-cc} -o conftest conftest.c -R/a1/b2/c3 >conftest.out 2>&1
811 if test ! -s conftest.out ; then
816 rm -f -r conftest*])
821 dnl Check whether a given format can be used to print 64-bit integers
825 AC_MSG_CHECKING([whether %$1x can be used to format 64-bit integers])
882 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
894 # CPUs - I don't know what the problem is; the problem
896 # but that's what the test program is *supposed* to do -
901 # This run-time test won't work if you're cross-compiling, so
902 # in order to support cross-compiling for a particular CPU,
940 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
942 if test ! -x conftest ; then
947 if test ! -s conftest.out ; then
953 rm -f -r conftest* core core.conftest
964 dnl If an os prototype include exists, symlink os-proto.h to it
974 dnl os-proto.h (symlinked)
977 [rm -f os-proto.h
981 if test -f .devel ; then
987 AC_LBL_CHECK_COMPILER_OPT($1, -Wall)
988 AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-prototypes)
989 AC_LBL_CHECK_COMPILER_OPT($1, -Wstrict-prototypes)
990 AC_LBL_CHECK_COMPILER_OPT($1, -Wwrite-strings)
991 AC_LBL_CHECK_COMPILER_OPT($1, -Wpointer-arith)
992 AC_LBL_CHECK_COMPILER_OPT($1, -Wcast-qual)
993 AC_LBL_CHECK_COMPILER_OPT($1, -Wshadow)
994 AC_LBL_CHECK_COMPILER_OPT($1, -Wdeclaration-after-statement)
995 AC_LBL_CHECK_COMPILER_OPT($1, -Wpedantic)
996 AC_LBL_CHECK_COMPILER_OPT($1, -Wold-style-definition)
997 AC_LBL_CHECK_COMPILER_OPT($1, -Wused-but-marked-unused)
998 AC_LBL_CHECK_COMPILER_OPT($1, -W)
1002 # We used to set -n32 for IRIX 6 when not using GCC (presumed
1004 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
1009 os=`echo $host_os | sed -e 's/\([[0-9]][[0-9]]*\)[[^0-9]].*$/\1/'`
1010 name="lbl/os-$os.h"
1011 if test -f $name ; then
1012 ln -s $name os-proto.h
1027 dnl AC_LBL_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [,
1028 dnl ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
1034 dnl XXX - "AC_LBL_LIBRARY_NET" was redone to use "AC_SEARCH_LIBS"
1041 [AC_MSG_CHECKING([for $2 in -l$1])
1047 ac_lib_var=`echo $1['_']$2['_']$5 | sed 'y%./+- %__p__%'`
1050 LIBS="-l$1 $5 $LIBS"
1071 ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1072 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1075 LIBS="-l$1 $LIBS"
1088 dnl gethostbyname() -ish functions. Under Solaris, those applications
1089 dnl need to link with "-lsocket -lnsl". Under IRIX, they need to link
1090 dnl with "-lnsl" but should *not* link with "-lsocket" because
1096 dnl and mistakenly write tests that cause -lsocket to be used under
1097 dnl IRIX. It is also easy to write tests that cause -lnsl to be used
1099 dnl such as SunOS 4.1.4, which uses -lnsl for TLI.
1109 dnl dependancies -- as such, such component macros would have to
1130 LIBS="-lsocket -lnsl $LIBS", , -lnsl)
1133 AC_CHECK_LIB(socket, socket, LIBS="-lsocket -lnsl $LIBS", , -lnsl))
1134 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
1198 V_DEFS="$V_DEFS -D_U_=\"\""
1229 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
1231 V_DEFS="$V_DEFS -D_U_=\"\""
1330 # "lib" - it might be "lib64" on, for example, x86-64
1339 # XXX - is there a better way to check if a given library is
1348 if test -d "$1/$tmplib" -a \( -f "$1/$tmplib/libcrypto.a" -o \
1349 -f "$1/$tmplib/libcrypto.so" -o \
1350 -f "$1/$tmplib/libcrypto.sl" -o \
1351 -f "$1/$tmplib/libcrypto.dylib" \); then
1358 if test -d "$1/include/openssl" -a -f "$1/include/openssl/des.h"; then
1359 incdir="-I$1/include"