• Home
  • History
  • Annotate
  • Raw
  • Download

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
111 AC_LBL_CHECK_COMPILER_OPT($1, -fvisibility=hidden)
113 $2="$$2 -I/usr/local/include"
114 LDFLAGS="$LDFLAGS -L/usr/local/lib"
121 # of which use -Werror to force warnings to be errors.
123 ac_lbl_cc_force_warning_errors=-Werror
130 AC_LBL_CHECK_COMPILER_OPT($1, -fvisibility=hidden)
136 # exit with a non-zero exit status if we hand it an
137 # invalid -W flag, can't be forced to do so even with
138 # +We, and doesn't handle GCC-style -W flags, so we
139 # don't want to try using GCC-style -W flags.
147 # necessarily exit with a non-zero exit status if we
148 # hand it an invalid -W flag, can't be forced to do
149 # so, and doesn't handle GCC-style -W flags, so we
150 # don't want to try using GCC-style -W flags.
160 # -xansi is normally the default, but the
161 # configure script was setting it; perhaps -cckr
168 # -g is equivalent to -g2, which turns off
169 # optimization; we choose -g3, which generates
174 $1="$$1 -xansi -signed -g3"
183 # using, doesn't exit with a non-zero exit status if we
184 # hand it an invalid -W flag, can't be forced to do
185 # so, and doesn't handle GCC-style -W flags, so we
186 # don't want to try using GCC-style -W flags.
190 # -g is equivalent to -g2, which turns off
191 # optimization; we choose -g3, which generates
196 $1="$$1 -g3"
201 # Assumed to be Sun C, which requires -errwarn to force
204 ac_lbl_cc_force_warning_errors=-errwarn
211 AC_LBL_CHECK_COMPILER_OPT($1, -xldscope=hidden)
230 $1="$$1 -O"
245 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
253 # -Werror=unknown-warning-option is the appropriate
256 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
281 if expr "x$2" : "x-W.*" >/dev/null
284 elif expr "x$2" : "x-f.*" >/dev/null
286 CFLAGS="$CFLAGS -Werror $2"
287 elif expr "x$2" : "x-m.*" >/dev/null
289 CFLAGS="$CFLAGS -Werror $2"
339 dnl Makefile-style dependency lines
341 dnl GCC uses -M for this. Non-GCC compilers that support this
342 dnl use a variety of flags, including but not limited to -M.
352 dnl output by default. IBM's XLC, however, supports -M but sends
353 dnl the output to {sourcefile-basename}.u, and AIX has no /dev/stdout
363 # would be -M.
365 ac_lbl_dependency_flag="-M"
378 # MIPS C for IRIX, DEC C, and clang all use -M.
380 ac_lbl_dependency_flag="-M"
385 # Sun C uses -xM.
387 ac_lbl_dependency_flag="-xM"
417 # an unknown non-warning error, even if you pass it
418 # -Werror=unknown-warning-option. However, it always supports
419 # -M, so the fact that this test always succeeds with clang
422 if test ! -z "$ac_lbl_dependency_flag"; then
437 rm -rf conftest*
459 dnl V_SHLIB_CCOPT (modified to build position-independent code)
471 # add options to generate position-independent code,
478 # add to the run-time search path, if that's necessary.
481 V_SHLIB_OPT="-shared"
490 # or accepts command-line arguments like
493 # Some instruction sets require -fPIC on some
498 PIC_OPT=-fpic
505 PIC_OPT=-fPIC
511 V_SONAME_OPT="-Wl,-soname,"
512 V_RPATH_OPT="-Wl,-rpath,"
516 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
518 # XXX - this assumes GCC is using the HP linker,
520 # option is used on all HP-UX platforms, both .sl
523 V_SONAME_OPT="-Wl,+h,"
525 # By default, directories specifed with -L
526 # are added to the run-time search path, so
527 # we don't add them in pcap-config.
532 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
534 # XXX - this assumes GCC is using the Sun linker,
537 V_SONAME_OPT="-Wl,-h,"
538 V_RPATH_OPT="-Wl,-R,"
546 # add options to generate position-independent code,
553 # add to the run-time search path, if that's necessary.
555 # Note: spaces after V_SONAME_OPT are significant; on
556 # some platforms the soname is passed with a GCC-like
557 # "-Wl,-soname,{soname}" option, with the soname part
566 V_SHLIB_OPT="-G -bnoentry -bexpall"
573 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
575 V_SHLIB_OPT="-shared"
576 V_SONAME_OPT="-Wl,-soname,"
577 V_RPATH_OPT="-Wl,-rpath,"
583 V_SHLIB_OPT="-b"
586 # By default, directories specifed with -L
587 # are added to the run-time search path, so
588 # we don't add them in pcap-config.
598 V_SHLIB_OPT="-shared"
599 V_SONAME_OPT="-soname "
600 V_RPATH_OPT="-rpath "
604 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
606 V_SHLIB_OPT="-G"
607 V_SONAME_OPT="-h "
608 V_RPATH_OPT="-R"
658 if test ! -z "$ac_cv_lbl_inline" ; then
731 dnl Checks to see if -R is used
742 [AC_MSG_CHECKING(for ${CC-cc} -R)
745 ${CC-cc} -o conftest conftest.c -R/a1/b2/c3 >conftest.out 2>&1
746 if test ! -s conftest.out ; then
751 rm -f -r conftest*])
776 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
788 # CPUs - I don't know what the problem is; the problem
790 # but that's what the test program is *supposed* to do -
795 # This run-time test won't work if you're cross-compiling, so
796 # in order to support cross-compiling for a particular CPU,
834 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
836 if test ! -x conftest ; then
841 if test ! -s conftest.out ; then
847 rm -f -r conftest* core core.conftest
858 dnl If an os prototype include exists, symlink os-proto.h to it
868 dnl os-proto.h (symlinked)
871 [rm -f os-proto.h
875 if test -f .devel ; then
881 AC_LBL_CHECK_COMPILER_OPT($1, -Wall)
882 AC_LBL_CHECK_COMPILER_OPT($1, -Wsign-compare)
883 AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-prototypes)
884 AC_LBL_CHECK_COMPILER_OPT($1, -Wstrict-prototypes)
885 AC_LBL_CHECK_COMPILER_OPT($1, -Wshadow)
886 AC_LBL_CHECK_COMPILER_OPT($1, -Wdeclaration-after-statement)
887 AC_LBL_CHECK_COMPILER_OPT($1, -Wused-but-marked-unused)
888 AC_LBL_CHECK_COMPILER_OPT($1, -Wdocumentation)
889 AC_LBL_CHECK_COMPILER_OPT($1, -Wcomma)
890 AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-noreturn)
893 # AC_LBL_CHECK_COMPILER_OPT($1, -Wcovered-switch-default)
894 AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-variable-declarations)
895 AC_LBL_CHECK_COMPILER_OPT($1, -Wunused-parameter)
896 AC_LBL_CHECK_COMPILER_OPT($1, -Wformat-nonliteral)
902 # the byte-swapping involves a conditional
904 # swapped is a compile-time constant or not,
906 # on whether it is, does a compile-time swap or
907 # a run-time swap; perhaps the compiler always
921 AC_LBL_CHECK_COMPILER_OPT($1, -Wunreachable-code,
935 # We used to set -n32 for IRIX 6 when not using GCC (presumed
937 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
942 os=`echo $host_os | sed -e 's/\([[0-9]][[0-9]]*\)[[^0-9]].*$/\1/'`
943 name="lbl/os-$os.h"
944 if test -f $name ; then
945 ln -s $name os-proto.h
960 dnl AC_LBL_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [,
961 dnl ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
967 dnl XXX - "AC_LBL_LIBRARY_NET" was redone to use "AC_SEARCH_LIBS"
974 [AC_MSG_CHECKING([for $2 in -l$1])
980 ac_lib_var=`echo $1['_']$2['_']$5 | sed 'y%./+- %__p__%'`
983 LIBS="-l$1 $5 $LIBS"
1004 ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1005 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1008 LIBS="-l$1 $LIBS"
1021 dnl getaddrinfo()/getnameinfo()-ish functions. We now require
1034 dnl We use getaddrinfo() because we want a portable thread-safe way
1055 LIBS="-lsocket -lnsl $LIBS"
1062 ], -lnsl)
1071 # Yes - link with it as well.
1073 LIBS="-lxnet $LIBS"
1074 ], , -lsocket -lnsl)
1076 # DLPI needs putmsg under HPUX so test for -lstr while we're at it