Lines Matching +full:pkg +full:- +full:config

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 specified 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.
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 specified 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*])
758 dnl If an os prototype include exists, symlink os-proto.h to it
768 dnl os-proto.h (symlinked)
771 [rm -f os-proto.h
775 if test -f .devel ; then
781 AC_LBL_CHECK_COMPILER_OPT($1, -W)
782 AC_LBL_CHECK_COMPILER_OPT($1, -Wall)
783 AC_LBL_CHECK_COMPILER_OPT($1, -Wcomma)
784 AC_LBL_CHECK_COMPILER_OPT($1, -Wdocumentation)
785 AC_LBL_CHECK_COMPILER_OPT($1, -Wformat-nonliteral)
786 AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-noreturn)
787 AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-prototypes)
788 AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-variable-declarations)
789 AC_LBL_CHECK_COMPILER_OPT($1, -Wpointer-arith)
790 AC_LBL_CHECK_COMPILER_OPT($1, -Wpointer-sign)
791 AC_LBL_CHECK_COMPILER_OPT($1, -Wshadow)
792 AC_LBL_CHECK_COMPILER_OPT($1, -Wsign-compare)
793 AC_LBL_CHECK_COMPILER_OPT($1, -Wstrict-prototypes)
794 AC_LBL_CHECK_COMPILER_OPT($1, -Wunused-parameter)
795 AC_LBL_CHECK_COMPILER_OPT($1, -Wused-but-marked-unused)
798 # AC_LBL_CHECK_COMPILER_OPT($1, -Wcovered-switch-default)
804 # the byte-swapping involves a conditional
806 # swapped is a compile-time constant or not,
808 # on whether it is, does a compile-time swap or
809 # a run-time swap; perhaps the compiler always
823 AC_LBL_CHECK_COMPILER_OPT($1, -Wunreachable-code,
834 AC_LBL_CHECK_COMPILER_OPT($1, -Wshorten-64-to-32)
838 # We used to set -n32 for IRIX 6 when not using GCC (presumed
840 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
845 os=`echo $host_os | sed -e 's/\([[0-9]][[0-9]]*\)[[^0-9]].*$/\1/'`
846 name="lbl/os-$os.h"
847 if test -f $name ; then
848 ln -s $name os-proto.h
863 dnl AC_LBL_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [,
864 dnl ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
870 dnl XXX - "AC_LBL_LIBRARY_NET" was redone to use "AC_SEARCH_LIBS"
877 [AC_MSG_CHECKING([for $2 in -l$1])
883 ac_lib_var=`echo $1['_']$2['_']$5 | sed 'y%./+- %__p__%'`
886 LIBS="-l$1 $5 $LIBS"
907 ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
911 LIBS="-l$1 $LIBS"
924 dnl getaddrinfo()/getnameinfo()-ish functions. We now require
937 dnl We use getaddrinfo() because we want a portable thread-safe way
958 LIBS="-lsocket -lnsl $LIBS"
966 LIBS="-lnetwork $LIBS"
974 ], -lnsl)
983 # Yes - link with it as well.
985 LIBS="-lxnet $LIBS"
986 ], , -lsocket -lnsl)
988 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
993 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
994 dnl serial 11 (pkg-config-0.29)
997 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
1011 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1012 dnl 02111-1307, USA.
1020 dnl PKG_PREREQ(MIN-VERSION)
1021 dnl -----------------------
1024 dnl Verify that the version of the pkg-config macros are at least
1025 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
1026 dnl installed version of pkg-config, this checks the developer's version
1027 dnl of pkg.m4 when generating configure.
1031 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
1037 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
1038 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
1041 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
1042 dnl ----------------------------------
1045 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
1046 dnl first found in the path. Checks that the version of pkg-config found
1047 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
1049 dnl pkg-config existed.
1051 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1054 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1055 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1056 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1059 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1061 if test -n "$PKG_CONFIG"; then
1063 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1064 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1073 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1074 dnl -------------------------------------------------------------------
1086 if test -n "$PKG_CONFIG" && \
1087 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1094 dnl ---------------------------------------------
1095 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
1098 [if test -n "$$1"; then
1100 elif test -n "$PKG_CONFIG"; then
1102 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
1111 dnl ---------------------------
1112 dnl Internal check to see if pkg-config supports short errors.
1115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1123 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1124 dnl [ACTION-IF-NOT-FOUND])
1125 dnl --------------------------------------------------------------
1133 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1134 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1143 and $1[]_LIBS to avoid the need to call pkg-config.
1144 See the pkg-config man page for more details.])
1150 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1152 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1154 # Put the nasty error message in config.log where it belongs
1163 installed software in a non-standard prefix.
1170 [The pkg-config script could not be found or is too old. Make sure it
1172 path to pkg-config.
1176 To get pkg-config, see <https://pkg-config.freedesktop.org/>.])[]dnl
1187 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1188 dnl [ACTION-IF-NOT-FOUND])
1189 dnl ---------------------------------------------------------------------
1193 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
1194 dnl and VARIABLE-PREFIX_LIBS from --libs.
1203 PKG_CONFIG="$PKG_CONFIG --static"
1210 dnl -------------------------
1214 dnl should install pkg-config .pc files. By default the directory is
1216 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
1221 [pkg-config installation directory @<:@]pkg_default[@:>@])
1223 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
1232 dnl --------------------------------
1236 dnl module should install arch-independent pkg-config .pc files. By
1239 dnl --with-noarch-pkgconfigdir parameter.
1243 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
1244 AC_ARG_WITH([noarch-pkgconfigdir],
1245 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
1253 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
1254 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1255 dnl -------------------------------------------
1258 dnl Retrieves the value of the pkg-config variable for the given module.
1261 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl