diff --git a/INSTALL b/INSTALL index 8865734..e82fd21 100644 --- a/INSTALL +++ b/INSTALL @@ -1,8 +1,8 @@ Installation Instructions ************************* - Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software -Foundation, Inc. + Copyright (C) 1994-1996, 1999-2002, 2004-2017, 2020-2021 Free +Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright @@ -225,7 +225,7 @@ order to use an ANSI C compiler: and if that doesn't work, install pre-built binaries of GCC for HP-UX. - HP-UX 'make' updates targets which have the same time stamps as their + HP-UX 'make' updates targets which have the same timestamps as their prerequisites, which makes it generally unusable when shipped generated files such as 'configure' are involved. Use GNU 'make' instead. diff --git a/Makefile.am b/Makefile.am index fe9c564..5d9b075 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS = gl tap lib plugins plugins-scripts plugins-root po @PERLMODS_DIR@ +SUBDIRS = gl tap lib plugins plugins-scripts plugins-root @PERLMODS_DIR@ EXTRA_DIST = config.rpath \ ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog FAQ NEWS \ diff --git a/Makefile.in b/Makefile.in index 4ec5c1c..14fab66 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -163,8 +163,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -177,7 +176,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -195,7 +193,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -269,12 +266,10 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(srcdir)/test.pl.in $(top_srcdir)/build-aux/config.guess \ + $(srcdir)/test.pl.in $(top_srcdir)/build-aux/compile \ + $(top_srcdir)/build-aux/config.guess \ $(top_srcdir)/build-aux/config.rpath \ $(top_srcdir)/build-aux/config.sub \ $(top_srcdir)/build-aux/install-sh \ @@ -282,10 +277,11 @@ am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/build-aux/missing \ $(top_srcdir)/build-aux/mkinstalldirs \ $(top_srcdir)/pkg/solaris/pkginfo.in ABOUT-NLS AUTHORS COPYING \ - ChangeLog INSTALL NEWS README THANKS build-aux/config.guess \ - build-aux/config.rpath build-aux/config.sub \ - build-aux/install-sh build-aux/ltmain.sh build-aux/missing \ - build-aux/mkinstalldirs config.rpath mkinstalldirs + ChangeLog INSTALL NEWS README THANKS build-aux/compile \ + build-aux/config.guess build-aux/config.rpath \ + build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh \ + build-aux/missing build-aux/mkinstalldirs config.rpath \ + mkinstalldirs DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) @@ -356,6 +352,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ DEFS = -DLOCALEDIR=\"$(localedir)\" @@ -375,6 +373,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -1746,6 +1745,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = $(datadir)/locale +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -1765,7 +1766,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ with_trusted_path = @with_trusted_path@ -SUBDIRS = gl tap lib plugins plugins-scripts plugins-root po @PERLMODS_DIR@ +SUBDIRS = gl tap lib plugins plugins-scripts plugins-root @PERLMODS_DIR@ EXTRA_DIST = config.rpath \ ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog FAQ NEWS \ NP-VERSION-GEN REQUIREMENTS SUPPORT THANKS \ @@ -1951,7 +1952,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/NEWS b/NEWS index 5ddadf4..2b257aa 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,64 @@ This file documents the major additions and syntax changes between releases. +2.4.0 25th Jul 2024 + FIXES + * check_dbi: Compiler warning for uninitialized variable + * check_curl: Initialize pointer before usage + * check_ntp: Initialize intermediate results in any case + * Fixes for -Wsign-compare + * check_tcp: Fixes an error with using the wrong type for a variable + * check_mailq: exit on empty strings and exit early + * check_users: Change option for sanity checking arguments to avoid segfault + * check_users: Update help to properly show that thresholds are ranges + * check_users: fix segfault + * check_dbi: Fix compiler warning for uninitialized variable + * check_curl: Initialize pointer before usage + * check_ntp: Initialize intermediate results in any case + * Fix logic in is_uint64_t to fix type-limit warning + * check_ntp_peer: Fixes for Wmaybe-unitialized and some restructuring + * check_dns: Remove unused variable + * check_ntp_peer: Fixes for Wmaybe-unitialized and some restructuring + * check_dns: Remove unused variable + * check_disk: fix ignore-missing in combination with includes + * check_procs: ignore our own children + * Prevent -lcrypto from showing up in Makefile dependencies + * Change irritating NULL assignment + * check_http: Remove self assignment of a variable and add some comments + * check_snmp: Remove unused variable + * check_dhcp: Make implicit conversion explicit to dismiss warning + * check_http: Remove self assignment of a variable and add some comments + * check_dhcp: Make implicit conversion explicit to dismiss warning + * Ini Parser: Avoid freeing symbols from text section + * check_icmp: keep performance data order in case of none-reachable hosts + * check_swap: Change another fake boolean to a real one + * check_swap: Rename type since *_t is reserved for C standard types + * check_ssh: Fix a typo in "remote-protocol parameter + * check_ssh: Handle non-alpha software versions + * check_ssh: properly parse a delayed version control string + * check_disk: Fail on missing arguments for --warning and --critical and fix a test case + * check_disk: Use new test function for percentage expressions + * check_load: remove unused code + * check_curl/check_http: clarified format of POST data + + ENHANCEMENTS + * Use C99 booleans + * check_mailq: remove trailing whitespaces + * check_mailq: unify tabs/spaces + * check_oracle: Shellcheck fixes + * check_ups: output ups.realpower if supported + * check_disk: add -n short option for --ignore-missing + * check_procs: Improve help text, mentioning excluded processes + * check_procs: Generalise wording, remove mentioning of nrpe + * check_curl: add haproxy protocol option + * Improve negate plugin helptext + * check_disk: increase alert precision + * check_ircd: IPv6 support + * check_nwstat: adds percentage used space + * Add new test function for percentage expressions + * check_swap: Possibility to run check_swap without thresholds + * check_ups: additional alarm conditions + * check_http/check_curl: added a --regex-state option to change the state of a regex check + 2.3.5 18th Oct 2023 FIXES * Include maxfd.h in lib Makefile diff --git a/NP-VERSION-GEN b/NP-VERSION-GEN index 2453774..9bcbb73 100755 --- a/NP-VERSION-GEN +++ b/NP-VERSION-GEN @@ -6,7 +6,7 @@ SRC_ROOT=`dirname $0` NPVF=NP-VERSION-FILE -DEF_VER=2.3.5 +DEF_VER=2.4.0 LF=' ' diff --git a/THANKS b/THANKS index 3376921..c82bdd6 100644 --- a/THANKS +++ b/THANKS @@ -2,18 +2,18 @@ This software is brought to you by the Monitoring Plugins Development Team. Howe there have been many contributors to this project. Everyone below has helped in raising bug reports, creating patches or contributing new plugins. -Arkadiusz Miśkiewicz +Matthias Hähnel dag rob?le +Diego Elio Pettenò +Elan Ruusamäe +Thoralf Rickert-Wendt +Aksel Sjögren +fabiodds +Nicolai Søborg +Arkadiusz Miśkiewicz +Wolfgang Karall-Ahlborn Matthias Döhler Marc Sánchez -Wolfgang Karall-Ahlborn -Thoralf Rickert-Wendt -Diego Elio Pettenò -Nicolai Søborg -Elan Ruusamäe -Matthias Hähnel -fabiodds -Aksel Sjögren Randy O'Meara Oskar Ahner Lance Albertson @@ -25,8 +25,8 @@ Felipe Gustavo de Almeida Michael Almond Michael Anthon Bernd Apfel -Bernd Arnold Paula Arnold +Bernd Arnold Kondoros Attila Daniel Austin Karol Babioch @@ -89,9 +89,9 @@ Lee Clemens Ben Clewett Jean-Claude Computing Lionel Cons -Ollie Cook -Garry Cook Charlie Cook +Garry Cook +Ollie Cook Luca Corti Greg Cox Jason Crawford @@ -135,8 +135,8 @@ Paulo Fessel James Fidell Tobias Fiebig Roman Fiedler -Johan Fischer Bernhard Fischer +Johan Fischer Matthias Flacke Martin Foster Felix Frank @@ -149,11 +149,12 @@ Tim Gates Sven Geggus Jonas Genannt Robby Giffin -Flo Gleixner Florian Gleixner +Flo Gleixner Evgeni Golov Joseph Gooch Aravind Gottipati +Ralph Gottschalkson Kev Green Steve Greenland Roberto Greiner @@ -166,10 +167,11 @@ Sebastien Guay Linda Guo Jon Hallett Steve Hanselman -Ask Bjoern Hansen Jacob Hansen +Ask Bjoern Hansen Sebastian Harl Michael Haro +Sven Hartge Olli Hauer Gunnar Hellekson Stuart Henderson @@ -204,6 +206,7 @@ Konstantin Khomoutov Serhan Kiymaz Alexander A. Klimov Denis Knauf +Eric Knibbe Harald Koch Tilman Koschnick John Koyle @@ -247,8 +250,8 @@ Gerardo Malazdrewicz Ricardo Maraschini Michael Markstaller John Marquart -Jason Martin Ernst-Dieter Martin +Jason Martin Christopher Maser Mathieu Masseboeuf Alexander Matey @@ -293,6 +296,7 @@ Remi Paulmier Tom Payerle Nick Peelman Fabian Pehla +Alvar Penning Chris Pepper Matt Perry Matthew Peters @@ -318,6 +322,7 @@ Abid Rasheed Patrick Rauscher Jeremy Reed Spenser Reinhardt +Eunice Remoquillo Marc Remy Alessandro Ren Joe Rhett @@ -325,6 +330,7 @@ Cliff Rice Alain Richard Didi Rieder Steve Rigler +Emmanuel Riviere Josip Rodin Kenny Root Wolfgang Rosenauer @@ -335,12 +341,13 @@ Sascha Runschke Dietmar Ruzicka Ralph Rye Alen Salamun +Louis Sautier Sven Schaffranneck Christoph Schell Thomas Schimpke Benjamin Schmid -Christian Schmidt Sebastian Schmidt +Christian Schmidt Henning Schmiedehausen Christian Schneemann Cove Schneider @@ -416,8 +423,8 @@ Shawn Wills Rob Windsor Mario Witte Alexander Wittig -Tobias Wolf Brian De Wolf +Tobias Wolf Eric Wunderlin Patric Wust Jamie Zawinski diff --git a/aclocal.m4 b/aclocal.m4 index fcedd2d..9afcbeb 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.16.3 -*- Autoconf -*- +# generated automatically by aclocal 1.16.5 -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -14,14 +14,94 @@ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, -[m4_warning([this file was generated for autoconf 2.69. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, +[m4_warning([this file was generated for autoconf 2.71. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) -# gettext.m4 serial 71 (gettext-0.20.2) -dnl Copyright (C) 1995-2014, 2016, 2018-2020 Free Software Foundation, Inc. +# build-to-host.m4 serial 3 +dnl Copyright (C) 2023-2024 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Bruno Haible. + +dnl When the build environment ($build_os) is different from the target runtime +dnl environment ($host_os), file names may need to be converted from the build +dnl environment syntax to the target runtime environment syntax. This is +dnl because the Makefiles are executed (mostly) by build environment tools and +dnl therefore expect file names in build environment syntax, whereas the runtime +dnl expects file names in target runtime environment syntax. +dnl +dnl For example, if $build_os = cygwin and $host_os = mingw32, filenames need +dnl be converted from Cygwin syntax to native Windows syntax: +dnl /cygdrive/c/foo/bar -> C:\foo\bar +dnl /usr/local/share -> C:\cygwin64\usr\local\share +dnl +dnl gl_BUILD_TO_HOST([somedir]) +dnl This macro takes as input an AC_SUBSTed variable 'somedir', which must +dnl already have its final value assigned, and produces two additional +dnl AC_SUBSTed variables 'somedir_c' and 'somedir_c_make', that designate the +dnl same file name value, just in different syntax: +dnl - somedir_c is the file name in target runtime environment syntax, +dnl as a C string (starting and ending with a double-quote, +dnl and with escaped backslashes and double-quotes in +dnl between). +dnl - somedir_c_make is the same thing, escaped for use in a Makefile. + +AC_DEFUN([gl_BUILD_TO_HOST], +[ + AC_REQUIRE([AC_CANONICAL_BUILD]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([gl_BUILD_TO_HOST_INIT]) + + dnl Define somedir_c. + gl_final_[$1]="$[$1]" + dnl Translate it from build syntax to host syntax. + case "$build_os" in + cygwin*) + case "$host_os" in + mingw* | windows*) + gl_final_[$1]=`cygpath -w "$gl_final_[$1]"` ;; + esac + ;; + esac + dnl Convert it to C string syntax. + [$1]_c=`printf '%s\n' "$gl_final_[$1]" | sed -e "$gl_sed_double_backslashes" -e "$gl_sed_escape_doublequotes" | tr -d "$gl_tr_cr"` + [$1]_c='"'"$[$1]_c"'"' + AC_SUBST([$1_c]) + + dnl Define somedir_c_make. + [$1]_c_make=`printf '%s\n' "$[$1]_c" | sed -e "$gl_sed_escape_for_make_1" -e "$gl_sed_escape_for_make_2" | tr -d "$gl_tr_cr"` + dnl Use the substituted somedir variable, when possible, so that the user + dnl may adjust somedir a posteriori when there are no special characters. + if test "$[$1]_c_make" = '\"'"${gl_final_[$1]}"'\"'; then + [$1]_c_make='\"$([$1])\"' + fi + AC_SUBST([$1_c_make]) +]) + +dnl Some initializations for gl_BUILD_TO_HOST. +AC_DEFUN([gl_BUILD_TO_HOST_INIT], +[ + gl_sed_double_backslashes='s/\\/\\\\/g' + gl_sed_escape_doublequotes='s/"/\\"/g' +changequote(,)dnl + gl_sed_escape_for_make_1="s,\\([ \"&'();<>\\\\\`|]\\),\\\\\\1,g" +changequote([,])dnl + gl_sed_escape_for_make_2='s,\$,\\$$,g' + dnl Find out how to remove carriage returns from output. Solaris /usr/ucb/tr + dnl does not understand '\r'. + case `echo r | tr -d '\r'` in + '') gl_tr_cr='\015' ;; + *) gl_tr_cr='\r' ;; + esac +]) + +# gettext.m4 serial 78 (gettext-0.22.4) +dnl Copyright (C) 1995-2014, 2016, 2018-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -42,11 +122,13 @@ dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). -dnl INTLSYMBOL must be one of 'external', 'use-libtool'. -dnl INTLSYMBOL should be 'external' for packages other than GNU gettext, and -dnl 'use-libtool' for the packages 'gettext-runtime' and 'gettext-tools'. -dnl If INTLSYMBOL is 'use-libtool', then a libtool library -dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, +dnl INTLSYMBOL must be one of 'external', 'use-libtool', 'here'. +dnl INTLSYMBOL should be 'external' for packages other than GNU gettext. +dnl It should be 'use-libtool' for the packages 'gettext-runtime' and +dnl 'gettext-tools'. +dnl It should be 'here' for the package 'gettext-runtime/intl'. +dnl If INTLSYMBOL is 'here', then a libtool library +dnl $(top_builddir)/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext @@ -77,24 +159,21 @@ dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. - ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [use-libtool], , + m4_if([$1], [], , [m4_if([$1], [external], , [m4_if([$1], [use-libtool], , [m4_if([$1], [here], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT -])])])]) - ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], +])])])])]) + m4_if(m4_if([$1], [], [old])[]m4_if([$1], [no-libtool], [old]), [old], [errprint([ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported. ])]) - ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , + m4_if([$2], [], , [m4_if([$2], [need-ngettext], , [m4_if([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) - define([gt_included_intl], - ifelse([$1], [external], [no], [yes])) + define([gt_building_libintl_in_same_build_tree], + m4_if([$1], [use-libtool], [yes], [m4_if([$1], [here], [yes], [no])])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl - ifelse(gt_included_intl, yes, [ - AC_REQUIRE([AM_INTL_SUBDIR])dnl - ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) @@ -104,13 +183,13 @@ AC_DEFUN([AM_GNU_GETTEXT], dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then - dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT + dnl tests. But if configure.ac invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is not documented, we avoid it. - ifelse(gt_included_intl, yes, , [ + m4_if(gt_building_libintl_in_same_build_tree, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) @@ -120,8 +199,7 @@ AC_DEFUN([AM_GNU_GETTEXT], dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) - ifelse(gt_included_intl, yes, [ - BUILD_INCLUDED_LIBINTL=no + m4_if(gt_building_libintl_in_same_build_tree, yes, [ USE_INCLUDED_LIBINTL=no ]) LIBINTL= @@ -140,7 +218,7 @@ AC_DEFUN([AM_GNU_GETTEXT], dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no - ifelse(gt_included_intl, yes, [ + m4_if(gt_building_libintl_in_same_build_tree, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], @@ -196,7 +274,7 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. - ifelse(gt_included_intl, yes, , [ + m4_if(gt_building_libintl_in_same_build_tree, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL @@ -234,9 +312,16 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) - dnl Now see whether libintl exists and depends on libiconv. - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" + dnl Now see whether libintl exists and depends on libiconv or other + dnl OS dependent libraries, specifically on macOS and AIX. + gt_LIBINTL_EXTRA="$INTL_MACOSX_LIBS" + AC_REQUIRE([AC_CANONICAL_HOST]) + case "$host_os" in + aix*) gt_LIBINTL_EXTRA="-lpthread" ;; + esac + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } \ + && { test -n "$LIBICONV" || test -n "$gt_LIBINTL_EXTRA"; }; then + LIBS="$LIBS $LIBICONV $gt_LIBINTL_EXTRA" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ @@ -258,8 +343,8 @@ $gt_revision_test_code bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], - [LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" + [LIBINTL="$LIBINTL $LIBICONV $gt_LIBINTL_EXTRA" + LTLIBINTL="$LTLIBINTL $LTLIBICONV $gt_LIBINTL_EXTRA" eval "$gt_func_gnugettext_libintl=yes" ]) fi @@ -274,7 +359,8 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ - && test "$PACKAGE" != gettext-tools; }; then + && test "$PACKAGE" != gettext-tools \ + && test "$PACKAGE" != libintl; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. @@ -283,7 +369,7 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION INCINTL= fi - ifelse(gt_included_intl, yes, [ + m4_if(gt_building_libintl_in_same_build_tree, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. @@ -293,10 +379,9 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. - BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes - LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LIBICONV $LIBTHREAD" - LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LTLIBICONV $LTLIBTHREAD" + LIBINTL="m4_if([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LIBICONV $LIBTHREAD" + LTLIBINTL="m4_if([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi @@ -363,25 +448,39 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION POSUB=po fi - ifelse(gt_included_intl, yes, [ - dnl In GNU gettext we have to set BUILD_INCLUDED_LIBINTL to 'yes' - dnl because some of the testsuite requires it. - BUILD_INCLUDED_LIBINTL=yes - + m4_if(gt_building_libintl_in_same_build_tree, yes, [ dnl Make all variables we use known to autoconf. - AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) ]) - dnl For backward compatibility. Some Makefiles may be using this. - INTLLIBS="$LIBINTL" - AC_SUBST([INTLLIBS]) + m4_if(gt_building_libintl_in_same_build_tree, yes, [], [ + dnl For backward compatibility. Some Makefiles may be using this. + INTLLIBS="$LIBINTL" + AC_SUBST([INTLLIBS]) + ]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) + + dnl Define localedir_c and localedir_c_make. + dnl Find the final value of localedir. + gt_save_prefix="${prefix}" + gt_save_datarootdir="${datarootdir}" + gt_save_localedir="${localedir}" + dnl Unfortunately, prefix gets only finally determined at the end of + dnl configure. + if test "X$prefix" = "XNONE"; then + prefix="$ac_default_prefix" + fi + eval datarootdir="$datarootdir" + eval localedir="$localedir" + gl_BUILD_TO_HOST([localedir]) + localedir="${gt_save_localedir}" + datarootdir="${gt_save_datarootdir}" + prefix="${gt_save_prefix}" ]) @@ -407,8 +506,8 @@ AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) -# host-cpu-c-abi.m4 serial 13 -dnl Copyright (C) 2002-2020 Free Software Foundation, Inc. +# host-cpu-c-abi.m4 serial 17 +dnl Copyright (C) 2002-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -620,7 +719,7 @@ changequote([,])dnl # be generating 64-bit code. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( - [[#if defined __powerpc64__ || defined _ARCH_PPC64 + [[#if defined __powerpc64__ || defined __LP64__ int ok; #else error fail @@ -791,6 +890,9 @@ EOF #ifndef __ia64__ #undef __ia64__ #endif +#ifndef __loongarch64__ +#undef __loongarch64__ +#endif #ifndef __m68k__ #undef __m68k__ #endif @@ -867,224 +969,73 @@ EOF dnl Sets the HOST_CPU_C_ABI_32BIT variable to 'yes' if the C language ABI dnl (application binary interface) is a 32-bit one, to 'no' if it is a 64-bit -dnl one, or to 'unknown' if unknown. +dnl one. dnl This is a simplified variant of gl_HOST_CPU_C_ABI. AC_DEFUN([gl_HOST_CPU_C_ABI_32BIT], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_CACHE_CHECK([32-bit host C ABI], [gl_cv_host_cpu_c_abi_32bit], - [if test -n "$gl_cv_host_cpu_c_abi"; then - case "$gl_cv_host_cpu_c_abi" in - i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) - gl_cv_host_cpu_c_abi_32bit=yes ;; - x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) - gl_cv_host_cpu_c_abi_32bit=no ;; - *) - gl_cv_host_cpu_c_abi_32bit=unknown ;; - esac - else - case "$host_cpu" in + [case "$host_cpu" in - # CPUs that only support a 32-bit ABI. - arc \ - | bfin \ - | cris* \ - | csky \ - | epiphany \ - | ft32 \ - | h8300 \ - | m68k \ - | microblaze | microblazeel \ - | nds32 | nds32le | nds32be \ - | nios2 | nios2eb | nios2el \ - | or1k* \ - | or32 \ - | sh | sh[1234] | sh[1234]e[lb] \ - | tic6x \ - | xtensa* ) - gl_cv_host_cpu_c_abi_32bit=yes - ;; + # CPUs that only support a 32-bit ABI. + arc \ + | bfin \ + | cris* \ + | csky \ + | epiphany \ + | ft32 \ + | h8300 \ + | m68k \ + | microblaze | microblazeel \ + | nds32 | nds32le | nds32be \ + | nios2 | nios2eb | nios2el \ + | or1k* \ + | or32 \ + | sh | sh[1234] | sh[1234]e[lb] \ + | tic6x \ + | xtensa* ) + gl_cv_host_cpu_c_abi_32bit=yes + ;; - # CPUs that only support a 64-bit ABI. + # CPUs that only support a 64-bit ABI. changequote(,)dnl - alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ - | mmix ) + alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ + | mmix ) changequote([,])dnl - gl_cv_host_cpu_c_abi_32bit=no - ;; + gl_cv_host_cpu_c_abi_32bit=no + ;; -changequote(,)dnl - i[34567]86 ) -changequote([,])dnl - gl_cv_host_cpu_c_abi_32bit=yes - ;; - - x86_64 ) - # On x86_64 systems, the C compiler may be generating code in one of - # these ABIs: - # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. - # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 - # with native Windows (mingw, MSVC). - # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. - # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#if (defined __x86_64__ || defined __amd64__ \ - || defined _M_X64 || defined _M_AMD64) \ - && !(defined __ILP32__ || defined _ILP32) - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=no], - [gl_cv_host_cpu_c_abi_32bit=yes]) - ;; - - arm* | aarch64 ) - # Assume arm with EABI. - # On arm64 systems, the C compiler may be generating code in one of - # these ABIs: - # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. - # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. - # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=no], - [gl_cv_host_cpu_c_abi_32bit=yes]) - ;; - - hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) - # On hppa, the C compiler may be generating 32-bit code or 64-bit - # code. In the latter case, it defines _LP64 and __LP64__. - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#ifdef __LP64__ - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=no], - [gl_cv_host_cpu_c_abi_32bit=yes]) - ;; - - ia64* ) - # On ia64 on HP-UX, the C compiler may be generating 64-bit code or - # 32-bit code. In the latter case, it defines _ILP32. - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#ifdef _ILP32 - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=yes], - [gl_cv_host_cpu_c_abi_32bit=no]) - ;; - - mips* ) - # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this - # at 32. - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=no], - [gl_cv_host_cpu_c_abi_32bit=yes]) - ;; - - powerpc* ) - # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. - # No need to distinguish them here; the caller may distinguish - # them based on the OS. - # On powerpc64 systems, the C compiler may still be generating - # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may - # be generating 64-bit code. - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#if defined __powerpc64__ || defined _ARCH_PPC64 - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=no], - [gl_cv_host_cpu_c_abi_32bit=yes]) - ;; - - rs6000 ) - gl_cv_host_cpu_c_abi_32bit=yes - ;; - - riscv32 | riscv64 ) - # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. - # Size of 'long' and 'void *': - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#if defined __LP64__ - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=no], - [gl_cv_host_cpu_c_abi_32bit=yes]) - ;; - - s390* ) - # On s390x, the C compiler may be generating 64-bit (= s390x) code - # or 31-bit (= s390) code. - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#if defined __LP64__ || defined __s390x__ - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=no], - [gl_cv_host_cpu_c_abi_32bit=yes]) - ;; - - sparc | sparc64 ) - # UltraSPARCs running Linux have `uname -m` = "sparc64", but the - # C compiler still generates 32-bit code. - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE( - [[#if defined __sparcv9 || defined __arch64__ - int ok; - #else - error fail - #endif - ]])], - [gl_cv_host_cpu_c_abi_32bit=no], - [gl_cv_host_cpu_c_abi_32bit=yes]) - ;; - - *) + *) + if test -n "$gl_cv_host_cpu_c_abi"; then + dnl gl_HOST_CPU_C_ABI has already been run. Use its result. + case "$gl_cv_host_cpu_c_abi" in + i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) + gl_cv_host_cpu_c_abi_32bit=yes ;; + x86_64 | alpha | arm64 | aarch64c | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) + gl_cv_host_cpu_c_abi_32bit=no ;; + *) + gl_cv_host_cpu_c_abi_32bit=unknown ;; + esac + else gl_cv_host_cpu_c_abi_32bit=unknown - ;; - esac - fi + fi + if test $gl_cv_host_cpu_c_abi_32bit = unknown; then + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[int test_pointer_size[sizeof (void *) - 5]; + ]])], + [gl_cv_host_cpu_c_abi_32bit=no], + [gl_cv_host_cpu_c_abi_32bit=yes]) + fi + ;; + esac ]) HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" ]) -# iconv.m4 serial 21 -dnl Copyright (C) 2000-2002, 2007-2014, 2016-2020 Free Software Foundation, +# iconv.m4 serial 27 +dnl Copyright (C) 2000-2002, 2007-2014, 2016-2024 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -1092,6 +1043,12 @@ dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. +AC_PREREQ([2.64]) + +dnl Note: AM_ICONV is documented in the GNU gettext manual +dnl . +dnl Don't make changes that are incompatible with that documentation! + AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. @@ -1117,7 +1074,7 @@ AC_DEFUN([AM_ICONV_LINK], dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed. - am_save_CPPFLAGS="$CPPFLAGS" + gl_saved_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ @@ -1134,7 +1091,7 @@ AC_DEFUN([AM_ICONV_LINK], iconv_close(cd);]])], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" + gl_saved_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( @@ -1147,14 +1104,14 @@ AC_DEFUN([AM_ICONV_LINK], iconv_close(cd);]])], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) - LIBS="$am_save_LIBS" + LIBS="$gl_saved_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, dnl Solaris 10. - am_save_LIBS="$LIBS" + gl_saved_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi @@ -1171,8 +1128,9 @@ AC_DEFUN([AM_ICONV_LINK], #endif ]], [[int result = 0; - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ + /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from + successful returns. This is even documented in + */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) @@ -1283,7 +1241,7 @@ AC_DEFUN([AM_ICONV_LINK], esac]) test "$am_cv_func_iconv_works" = no || break done - LIBS="$am_save_LIBS" + LIBS="$gl_saved_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; @@ -1302,7 +1260,7 @@ AC_DEFUN([AM_ICONV_LINK], else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. - CPPFLAGS="$am_save_CPPFLAGS" + CPPFLAGS="$gl_saved_CPPFLAGS" LIBICONV= LTLIBICONV= fi @@ -1310,70 +1268,68 @@ AC_DEFUN([AM_ICONV_LINK], AC_SUBST([LTLIBICONV]) ]) -dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to -dnl avoid warnings like +dnl Define AM_ICONV using AC_DEFUN_ONCE, in order to avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". -dnl This is tricky because of the way 'aclocal' is implemented: -dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. -dnl Otherwise aclocal's initial scan pass would miss the macro definition. -dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. -dnl Otherwise aclocal would emit many "Use of uninitialized value $1" -dnl warnings. -m4_define([gl_iconv_AC_DEFUN], - m4_version_prereq([2.64], - [[AC_DEFUN_ONCE( - [$1], [$2])]], - [m4_ifdef([gl_00GNULIB], - [[AC_DEFUN_ONCE( - [$1], [$2])]], - [[AC_DEFUN( - [$1], [$2])]])])) -gl_iconv_AC_DEFUN([AM_ICONV], +AC_DEFUN_ONCE([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then - AC_MSG_CHECKING([for iconv declaration]) - AC_CACHE_VAL([am_cv_proto_iconv], [ - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[ + AC_CACHE_CHECK([whether iconv is compatible with its POSIX signature], + [gl_cv_iconv_nonconst], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[ #include #include extern #ifdef __cplusplus "C" #endif -#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); -#endif - ]], - [[]])], - [am_cv_proto_iconv_arg1=""], - [am_cv_proto_iconv_arg1="const"]) - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) - am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - AC_MSG_RESULT([ - $am_cv_proto_iconv]) + ]], + [[]])], + [gl_cv_iconv_nonconst=yes], + [gl_cv_iconv_nonconst=no]) + ]) else dnl When compiling GNU libiconv on a system that does not have iconv yet, dnl pick the POSIX compliant declaration without 'const'. - am_cv_proto_iconv_arg1="" + gl_cv_iconv_nonconst=yes fi - AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], + if test $gl_cv_iconv_nonconst = yes; then + iconv_arg1="" + else + iconv_arg1="const" + fi + AC_DEFINE_UNQUOTED([ICONV_CONST], [$iconv_arg1], [Define as const if the declaration of iconv() needs const.]) dnl Also substitute ICONV_CONST in the gnulib generated . m4_ifdef([gl_ICONV_H_DEFAULTS], [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) - if test -n "$am_cv_proto_iconv_arg1"; then + if test $gl_cv_iconv_nonconst != yes; then ICONV_CONST="const" fi ]) + + dnl A summary result, for those packages which want to print a summary at the + dnl end of the configuration. + if test "$am_func_iconv" = yes; then + if test -n "$LIBICONV"; then + am_cv_func_iconv_summary='yes, in libiconv' + else + am_cv_func_iconv_summary='yes, in libc' + fi + else + if test "$am_cv_func_iconv" = yes; then + am_cv_func_iconv_summary='not working, consider installing GNU libiconv' + else + am_cv_func_iconv_summary='no, consider installing GNU libiconv' + fi + fi ]) -# intlmacosx.m4 serial 8 (gettext-0.20.2) -dnl Copyright (C) 2004-2014, 2016, 2019-2020 Free Software Foundation, Inc. +# intlmacosx.m4 serial 10 (gettext-0.23) +dnl Copyright (C) 2004-2014, 2016, 2019-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -1394,7 +1350,7 @@ AC_DEFUN([gt_INTL_MACOSX], dnl Check for API introduced in Mac OS X 10.4. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], - [gt_save_LIBS="$LIBS" + [gt_saved_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( @@ -1402,7 +1358,7 @@ AC_DEFUN([gt_INTL_MACOSX], [[CFPreferencesCopyAppValue(NULL, NULL)]])], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) - LIBS="$gt_save_LIBS"]) + LIBS="$gt_saved_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) @@ -1417,7 +1373,7 @@ AC_DEFUN([gt_INTL_MACOSX], dnl CFPreferencesCopyAppValue still returns, namely ll_CC where ll is the dnl first among the preferred languages and CC is the territory. AC_CACHE_CHECK([for CFLocaleCopyPreferredLanguages], [gt_cv_func_CFLocaleCopyPreferredLanguages], - [gt_save_LIBS="$LIBS" + [gt_saved_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( @@ -1425,7 +1381,7 @@ AC_DEFUN([gt_INTL_MACOSX], [[CFLocaleCopyPreferredLanguages();]])], [gt_cv_func_CFLocaleCopyPreferredLanguages=yes], [gt_cv_func_CFLocaleCopyPreferredLanguages=no]) - LIBS="$gt_save_LIBS"]) + LIBS="$gt_saved_LIBS"]) if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then AC_DEFINE([HAVE_CFLOCALECOPYPREFERREDLANGUAGES], [1], [Define to 1 if you have the Mac OS X function CFLocaleCopyPreferredLanguages in the CoreFoundation framework.]) @@ -1433,13 +1389,17 @@ AC_DEFUN([gt_INTL_MACOSX], INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + dnl Starting with macOS version 14, CoreFoundation relies on CoreServices, + dnl and we have to link it in explicitly, otherwise an exception + dnl NSInvalidArgumentException "unrecognized selector sent to instance" + dnl occurs. + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) -# lib-ld.m4 serial 9 -dnl Copyright (C) 1996-2003, 2009-2020 Free Software Foundation, Inc. +# lib-ld.m4 serial 13 +dnl Copyright (C) 1996-2003, 2009-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -1469,7 +1429,7 @@ AC_DEFUN([AC_LIB_PROG_LD], AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_ARG_WITH([gnu-ld], - [AS_HELP_STRING([--with-gnu-ld], + [AS_HELP_STRING([[--with-gnu-ld]], [assume the C compiler uses GNU ld [default=no]])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl @@ -1507,7 +1467,7 @@ else if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. case $host in - *-*-mingw*) + *-*-mingw* | windows*) # gcc leaves a trailing carriage return which upsets mingw acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) @@ -1537,9 +1497,9 @@ else fi if test -n "$ac_prog"; then # Search for $ac_prog in $PATH. - acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do - IFS="$acl_save_ifs" + IFS="$acl_saved_IFS" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" @@ -1556,13 +1516,13 @@ else esac fi done - IFS="$acl_save_ifs" + IFS="$acl_saved_IFS" fi case $host in *-*-aix*) AC_COMPILE_IFELSE( [AC_LANG_SOURCE( - [[#if defined __powerpc64__ || defined _ARCH_PPC64 + [[#if defined __powerpc64__ || defined __LP64__ int ok; #else error fail @@ -1607,8 +1567,8 @@ fi AC_LIB_PROG_LD_GNU ]) -# lib-link.m4 serial 31 -dnl Copyright (C) 2001-2020 Free Software Foundation, Inc. +# lib-link.m4 serial 34 +dnl Copyright (C) 2001-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -1678,11 +1638,11 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" + acl_saved_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" + acl_saved_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. @@ -1698,7 +1658,7 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [AC_LANG_PROGRAM([[$3]], [[$4]])], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) - LIBS="$ac_save_LIBS" + LIBS="$acl_saved_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes @@ -1709,7 +1669,7 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" + CPPFLAGS="$acl_saved_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= @@ -1805,8 +1765,8 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" ]) AC_ARG_WITH(PACK[-prefix], -[[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib - --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], +[[ --with-]]PACK[[-prefix[=DIR] search for ]]PACKLIBS[[ in DIR/include and DIR/lib + --without-]]PACK[[-prefix don't search for ]]PACKLIBS[[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no @@ -1833,7 +1793,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], additional_libdir3= fi dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. + dnl $LDFLAGS. Use breadth-first search. LIB[]NAME= LTLIB[]NAME= INC[]NAME= @@ -2146,12 +2106,12 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" + saved_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac - libdir="$save_libdir" + libdir="$saved_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in @@ -2240,7 +2200,20 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], ;; -l*) dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + dnl But on GNU systems, ignore -lc options, because + dnl - linking with libc is the default anyway, + dnl - linking with libc.a may produce an error + dnl "/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie" + dnl or may produce an executable that always crashes, see + dnl . + dep=`echo "X$dep" | sed -e 's/^X-l//'` + if test "X$dep" != Xc \ + || case $host_os in + linux* | gnu* | k*bsd*-gnu) false ;; + *) true ;; + esac; then + names_next_round="$names_next_round $dep" + fi ;; *.la) dnl Handle this in the next round. Throw away the .la's @@ -2278,18 +2251,18 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" + acl_saved_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" + libdir="$acl_saved_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" + acl_saved_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" + libdir="$acl_saved_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi @@ -2386,18 +2359,18 @@ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done - acl_save_libdir="$libdir" + acl_saved_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" + libdir="$acl_saved_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do - acl_save_libdir="$libdir" + acl_saved_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" + libdir="$acl_saved_libdir" $1="${$1}${$1:+ }$flag" done fi @@ -2408,8 +2381,8 @@ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], AC_SUBST([$1]) ]) -# lib-prefix.m4 serial 17 -dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc. +# lib-prefix.m4 serial 22 +dnl Copyright (C) 2001-2005, 2008-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -2536,10 +2509,10 @@ AC_DEFUN([AC_LIB_PREPARE_PREFIX], else acl_final_exec_prefix="$exec_prefix" fi - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" + prefix="$acl_saved_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the @@ -2547,13 +2520,13 @@ dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates @@ -2584,14 +2557,14 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB], AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf], [AC_EGREP_CPP([Extensible Linking Format], - [#ifdef __ELF__ + [#if defined __ELF__ || (defined __linux__ && defined __EDG__) Extensible Linking Format #endif ], [gl_cv_elf=yes], [gl_cv_elf=no]) - ]) - if test $gl_cv_elf; then + ]) + if test $gl_cv_elf = yes; then # Extract the ELF class of a file (5th byte) in decimal. # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header if od -A x < /dev/null >/dev/null 2>/dev/null; then @@ -2608,20 +2581,23 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB], echo } fi + # Use 'expr', not 'test', to compare the values of func_elfclass, because on + # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, + # not 1 or 2. changequote(,)dnl case $HOST_CPU_C_ABI_32BIT in yes) # 32-bit ABI. acl_is_expected_elfclass () { - test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 + expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null } ;; no) # 64-bit ABI. acl_is_expected_elfclass () { - test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 + expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null } ;; *) @@ -2663,6 +2639,15 @@ changequote([,])dnl esac fi ;; + netbsd*) + dnl On NetBSD/sparc64, there is a 'sparc' subdirectory that contains + dnl 32-bit libraries. + if test $HOST_CPU_C_ABI_32BIT != no; then + case "$host_cpu" in + sparc*) acl_libdirstem2=lib/sparc ;; + esac + fi + ;; *) dnl If $CC generates code for a 32-bit ABI, the libraries are dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64. @@ -2687,7 +2672,7 @@ changequote([,])dnl fi fi if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" + acl_saved_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in @@ -2704,7 +2689,7 @@ changequote([,])dnl esac fi done - IFS="$acl_save_IFS" + IFS="$acl_saved_IFS" if test $HOST_CPU_C_ABI_32BIT = yes; then # 32-bit ABI. acl_libdirstem3= @@ -2730,7 +2715,7 @@ changequote([,])dnl ]) # nls.m4 serial 6 (gettext-0.20.2) -dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2020 Free +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2024 Free dnl Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -2762,8 +2747,9 @@ AC_DEFUN([AM_NLS], AC_SUBST([USE_NLS]) ]) -# po.m4 serial 31 (gettext-0.20.2) -dnl Copyright (C) 1995-2014, 2016, 2018-2020 Free Software Foundation, Inc. +# po.m4 serial 32 (gettext-0.21.1) +dnl Copyright (C) 1995-2014, 2016, 2018-2022, 2024 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -2943,7 +2929,9 @@ changequote([,])dnl # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in - "$presentlang"*) useit=yes;; + "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*) + useit=yes + ;; esac done if test $useit = yes; then @@ -3143,7 +3131,9 @@ changequote([,])dnl # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in - "$presentlang"*) useit=yes;; + "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*) + useit=yes + ;; esac done if test $useit = yes; then @@ -3213,8 +3203,8 @@ AC_DEFUN([AM_XGETTEXT_OPTION], XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" ]) -# progtest.m4 serial 8 (gettext-0.20.2) -dnl Copyright (C) 1996-2003, 2005, 2008-2020 Free Software Foundation, Inc. +# progtest.m4 serial 10 (gettext-0.23) +dnl Copyright (C) 1996-2003, 2005, 2008-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -3231,7 +3221,7 @@ dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. -AC_PREREQ([2.50]) +AC_PREREQ([2.53]) # Search path for a program which passes the given test. @@ -3275,9 +3265,9 @@ AC_CACHE_VAL([ac_cv_path_$1], ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in ifelse([$5], , $PATH, [$5]); do - IFS="$ac_save_IFS" + gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in m4_if([$5], , $PATH, [$5]); do + IFS="$gt_saved_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then @@ -3289,15 +3279,15 @@ AC_CACHE_VAL([ac_cv_path_$1], fi done done - IFS="$ac_save_IFS" + IFS="$gt_saved_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" +m4_if([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then +if test m4_if([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) @@ -3305,7 +3295,7 @@ fi AC_SUBST([$1])dnl ]) -# Copyright (C) 2002-2020 Free Software Foundation, Inc. +# Copyright (C) 2002-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3320,7 +3310,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.16.3], [], +m4_if([$1], [1.16.5], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -3336,14 +3326,14 @@ m4_define([_AM_AUTOCONF_VERSION], []) # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.16.3])dnl +[AM_AUTOMAKE_VERSION([1.16.5])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3395,7 +3385,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd` # AM_COND_IF -*- Autoconf -*- -# Copyright (C) 2008-2020 Free Software Foundation, Inc. +# Copyright (C) 2008-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3432,7 +3422,7 @@ fi[]dnl # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997-2020 Free Software Foundation, Inc. +# Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3463,7 +3453,7 @@ AC_CONFIG_COMMANDS_PRE( Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3654,7 +3644,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3722,7 +3712,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3750,6 +3740,10 @@ m4_defn([AC_PROG_CC]) # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl +m4_ifdef([_$0_ALREADY_INIT], + [m4_fatal([$0 expanded multiple times +]m4_defn([_$0_ALREADY_INIT]))], + [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -3786,7 +3780,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl @@ -3838,6 +3832,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) +# Variables for tags utilities; see am/tags.am +if test -z "$CTAGS"; then + CTAGS=ctags +fi +AC_SUBST([CTAGS]) +if test -z "$ETAGS"; then + ETAGS=etags +fi +AC_SUBST([ETAGS]) +if test -z "$CSCOPE"; then + CSCOPE=cscope +fi +AC_SUBST([CSCOPE]) + AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This @@ -3919,7 +3927,7 @@ for _am_header in $config_headers :; do done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3940,7 +3948,7 @@ if test x"${install_sh+set}" != xset; then fi AC_SUBST([install_sh])]) -# Copyright (C) 2003-2020 Free Software Foundation, Inc. +# Copyright (C) 2003-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3962,7 +3970,7 @@ AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -3997,7 +4005,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4040,7 +4048,7 @@ AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997-2020 Free Software Foundation, Inc. +# Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4074,7 +4082,7 @@ fi # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4103,7 +4111,7 @@ AC_DEFUN([_AM_SET_OPTIONS], AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4150,7 +4158,7 @@ AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4169,7 +4177,7 @@ AC_DEFUN([AM_RUN_LOG], # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4250,7 +4258,7 @@ AC_CONFIG_COMMANDS_PRE( rm -f conftest.file ]) -# Copyright (C) 2009-2020 Free Software Foundation, Inc. +# Copyright (C) 2009-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4310,7 +4318,7 @@ AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4338,7 +4346,7 @@ fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006-2020 Free Software Foundation, Inc. +# Copyright (C) 2006-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4357,7 +4365,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004-2020 Free Software Foundation, Inc. +# Copyright (C) 2004-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4591,7 +4599,6 @@ m4_include([gl/m4/open-cloexec.m4]) m4_include([gl/m4/open-slash.m4]) m4_include([gl/m4/open.m4]) m4_include([gl/m4/pathmax.m4]) -m4_include([gl/m4/pid_t.m4]) m4_include([gl/m4/printf.m4]) m4_include([gl/m4/pthread_rwlock_rdlock.m4]) m4_include([gl/m4/realloc.m4]) @@ -4610,7 +4617,6 @@ m4_include([gl/m4/sockpfaf.m4]) m4_include([gl/m4/ssize_t.m4]) m4_include([gl/m4/stat-time.m4]) m4_include([gl/m4/stat.m4]) -m4_include([gl/m4/std-gnu11.m4]) m4_include([gl/m4/stdalign.m4]) m4_include([gl/m4/stddef_h.m4]) m4_include([gl/m4/stdint.m4]) @@ -4635,7 +4641,6 @@ m4_include([gl/m4/timegm.m4]) m4_include([gl/m4/ungetc.m4]) m4_include([gl/m4/unistd_h.m4]) m4_include([gl/m4/unlocked-io.m4]) -m4_include([gl/m4/vararrays.m4]) m4_include([gl/m4/vasnprintf.m4]) m4_include([gl/m4/vasprintf.m4]) m4_include([gl/m4/visibility.m4]) diff --git a/build-aux/compile b/build-aux/compile new file mode 100755 index 0000000..df363c8 --- /dev/null +++ b/build-aux/compile @@ -0,0 +1,348 @@ +#! /bin/sh +# Wrapper for compilers which do not understand '-c -o'. + +scriptversion=2018-03-07.03; # UTC + +# Copyright (C) 1999-2021 Free Software Foundation, Inc. +# Written by Tom Tromey . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +nl=' +' + +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent tools from complaining about whitespace usage. +IFS=" "" $nl" + +file_conv= + +# func_file_conv build_file lazy +# Convert a $build file to $host form and store it in $file +# Currently only supports Windows hosts. If the determined conversion +# type is listed in (the comma separated) LAZY, no conversion will +# take place. +func_file_conv () +{ + file=$1 + case $file in + / | /[!/]*) # absolute file, and not a UNC file + if test -z "$file_conv"; then + # lazily determine how to convert abs files + case `uname -s` in + MINGW*) + file_conv=mingw + ;; + CYGWIN* | MSYS*) + file_conv=cygwin + ;; + *) + file_conv=wine + ;; + esac + fi + case $file_conv/,$2, in + *,$file_conv,*) + ;; + mingw/*) + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` + ;; + cygwin/* | msys/*) + file=`cygpath -m "$file" || echo "$file"` + ;; + wine/*) + file=`winepath -w "$file" || echo "$file"` + ;; + esac + ;; + esac +} + +# func_cl_dashL linkdir +# Make cl look for libraries in LINKDIR +func_cl_dashL () +{ + func_file_conv "$1" + if test -z "$lib_path"; then + lib_path=$file + else + lib_path="$lib_path;$file" + fi + linker_opts="$linker_opts -LIBPATH:$file" +} + +# func_cl_dashl library +# Do a library search-path lookup for cl +func_cl_dashl () +{ + lib=$1 + found=no + save_IFS=$IFS + IFS=';' + for dir in $lib_path $LIB + do + IFS=$save_IFS + if $shared && test -f "$dir/$lib.dll.lib"; then + found=yes + lib=$dir/$lib.dll.lib + break + fi + if test -f "$dir/$lib.lib"; then + found=yes + lib=$dir/$lib.lib + break + fi + if test -f "$dir/lib$lib.a"; then + found=yes + lib=$dir/lib$lib.a + break + fi + done + IFS=$save_IFS + + if test "$found" != yes; then + lib=$lib.lib + fi +} + +# func_cl_wrapper cl arg... +# Adjust compile command to suit cl +func_cl_wrapper () +{ + # Assume a capable shell + lib_path= + shared=: + linker_opts= + for arg + do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + eat=1 + case $2 in + *.o | *.[oO][bB][jJ]) + func_file_conv "$2" + set x "$@" -Fo"$file" + shift + ;; + *) + func_file_conv "$2" + set x "$@" -Fe"$file" + shift + ;; + esac + ;; + -I) + eat=1 + func_file_conv "$2" mingw + set x "$@" -I"$file" + shift + ;; + -I*) + func_file_conv "${1#-I}" mingw + set x "$@" -I"$file" + shift + ;; + -l) + eat=1 + func_cl_dashl "$2" + set x "$@" "$lib" + shift + ;; + -l*) + func_cl_dashl "${1#-l}" + set x "$@" "$lib" + shift + ;; + -L) + eat=1 + func_cl_dashL "$2" + ;; + -L*) + func_cl_dashL "${1#-L}" + ;; + -static) + shared=false + ;; + -Wl,*) + arg=${1#-Wl,} + save_ifs="$IFS"; IFS=',' + for flag in $arg; do + IFS="$save_ifs" + linker_opts="$linker_opts $flag" + done + IFS="$save_ifs" + ;; + -Xlinker) + eat=1 + linker_opts="$linker_opts $2" + ;; + -*) + set x "$@" "$1" + shift + ;; + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) + func_file_conv "$1" + set x "$@" -Tp"$file" + shift + ;; + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) + func_file_conv "$1" mingw + set x "$@" "$file" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift + done + if test -n "$linker_opts"; then + linker_opts="-link$linker_opts" + fi + exec "$@" $linker_opts + exit 1 +} + +eat= + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand '-c -o'. +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file 'INSTALL'. + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "compile $scriptversion" + exit $? + ;; + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ + icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) + func_cl_wrapper "$@" # Doesn't return... + ;; +esac + +ofile= +cfile= + +for arg +do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + # So we strip '-o arg' only if arg is an object. + eat=1 + case $2 in + *.o | *.obj) + ofile=$2 + ;; + *) + set x "$@" -o "$2" + shift + ;; + esac + ;; + *.c) + cfile=$1 + set x "$@" "$1" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift +done + +if test -z "$ofile" || test -z "$cfile"; then + # If no '-o' option was seen then we might have been invoked from a + # pattern rule where we don't need one. That is ok -- this is a + # normal compilation that the losing compiler can handle. If no + # '.c' file was seen then we are probably linking. That is also + # ok. + exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` + +# Create the lock directory. +# Note: use '[/\\:.-]' here to ensure that we don't use the same name +# that we are using for the .o file. Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d +while true; do + if mkdir "$lockdir" >/dev/null 2>&1; then + break + fi + sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/build-aux/config.guess b/build-aux/config.guess index f50dcdb..7f76b62 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess @@ -1,12 +1,14 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2018 Free Software Foundation, Inc. +# Copyright 1992-2022 Free Software Foundation, Inc. -timestamp='2018-02-24' +# shellcheck disable=SC2006,SC2268 # see below for rationale + +timestamp='2022-01-09' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or +# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -27,11 +29,19 @@ timestamp='2018-02-24' # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: -# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess +# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . +# The "shellcheck disable" line above the timestamp inhibits complaints +# about features and limitations of the classic Bourne shell that were +# superseded or lifted in POSIX. However, this script identifies a wide +# variety of pre-POSIX systems that do not have POSIX shells at all, and +# even some reasonably current systems (Solaris 10 as case-in-point) still +# have a pre-POSIX /bin/sh. + + me=`echo "$0" | sed -e 's,.*/,,'` usage="\ @@ -50,7 +60,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2018 Free Software Foundation, Inc. +Copyright 1992-2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -84,7 +94,8 @@ if test $# != 0; then exit 1 fi -trap 'exit 1' 1 2 15 +# Just in case it came from the environment. +GUESS= # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires @@ -96,73 +107,90 @@ trap 'exit 1' 1 2 15 # Portable tmp directory creation inspired by the Autoconf team. -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > "$dummy.c" ; - for c in cc gcc c89 c99 ; do - if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' +tmp= +# shellcheck disable=SC2172 +trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 + +set_cc_for_build() { + # prevent multiple calls if $tmp is already set + test "$tmp" && return 0 + : "${TMPDIR=/tmp}" + # shellcheck disable=SC2039,SC3028 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } + dummy=$tmp/dummy + case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in + ,,) echo "int x;" > "$dummy.c" + for driver in cc gcc c89 c99 ; do + if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then + CC_FOR_BUILD=$driver + break + fi + done + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; + esac +} # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then +if test -f /.attbin/uname ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown -case "$UNAME_SYSTEM" in +case $UNAME_SYSTEM in Linux|GNU|GNU/*) - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - LIBC=gnu + LIBC=unknown - eval "$set_cc_for_build" + set_cc_for_build cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc - #else + #elif defined(__GLIBC__) LIBC=gnu + #else + #include + /* First heuristic to detect musl libc. */ + #ifdef __DEFINED_va_list + LIBC=musl + #endif #endif EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" + cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + eval "$cc_set_libc" - # If ldd exists, use it to detect musl libc. - if command -v ldd >/dev/null && \ - ldd --version 2>&1 | grep -q ^musl - then - LIBC=musl + # Second heuristic to detect musl libc. + if [ "$LIBC" = unknown ] && + command -v ldd >/dev/null && + ldd --version 2>&1 | grep -q ^musl; then + LIBC=musl + fi + + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + if [ "$LIBC" = unknown ]; then + LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. -case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in +case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, @@ -174,12 +202,12 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - "/sbin/$sysctl" 2>/dev/null || \ - "/usr/sbin/$sysctl" 2>/dev/null || \ + /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ + /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` - case "$UNAME_MACHINE_ARCH" in + case $UNAME_MACHINE_ARCH in + aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; @@ -188,18 +216,18 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` - machine="${arch}${endian}"-unknown + machine=${arch}${endian}-unknown ;; - *) machine="$UNAME_MACHINE_ARCH"-unknown ;; + *) machine=$UNAME_MACHINE_ARCH-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. - case "$UNAME_MACHINE_ARCH" in + case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval "$set_cc_for_build" + set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then @@ -215,7 +243,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in ;; esac # Determine ABI tags. - case "$UNAME_MACHINE_ARCH" in + case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` @@ -226,7 +254,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. - case "$UNAME_VERSION" in + case $UNAME_VERSION in Debian*) release='-gnu' ;; @@ -237,45 +265,57 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "$machine-${os}${release}${abi}" - exit ;; + GUESS=$machine-${os}${release}${abi-} + ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE + ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE + ;; + *:SecBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE + ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` - echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE + ;; *:MidnightBSD:*:*) - echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE + ;; *:ekkoBSD:*:*) - echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE + ;; *:SolidBSD:*:*) - echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE + ;; + *:OS108:*:*) + GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE + ;; macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd"$UNAME_RELEASE" - exit ;; + GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE + ;; *:MirBSD:*:*) - echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE + ;; *:Sortix:*:*) - echo "$UNAME_MACHINE"-unknown-sortix - exit ;; + GUESS=$UNAME_MACHINE-unknown-sortix + ;; + *:Twizzler:*:*) + GUESS=$UNAME_MACHINE-unknown-twizzler + ;; *:Redox:*:*) - echo "$UNAME_MACHINE"-unknown-redox - exit ;; + GUESS=$UNAME_MACHINE-unknown-redox + ;; mips:OSF1:*.*) - echo mips-dec-osf1 - exit ;; + GUESS=mips-dec-osf1 + ;; alpha:OSF1:*:*) + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + trap '' 0 case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` @@ -289,7 +329,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in + case $ALPHA_CPU_TYPE in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") @@ -326,117 +366,121 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" - # Reset EXIT trap before exiting to avoid spurious non-zero exit code. - exitcode=$? - trap '' 0 - exit $exitcode ;; + OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + GUESS=$UNAME_MACHINE-dec-osf$OSF_REL + ;; Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; + GUESS=m68k-unknown-sysv4 + ;; *:[Aa]miga[Oo][Ss]:*:*) - echo "$UNAME_MACHINE"-unknown-amigaos - exit ;; + GUESS=$UNAME_MACHINE-unknown-amigaos + ;; *:[Mm]orph[Oo][Ss]:*:*) - echo "$UNAME_MACHINE"-unknown-morphos - exit ;; + GUESS=$UNAME_MACHINE-unknown-morphos + ;; *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; + GUESS=i370-ibm-openedition + ;; *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; + GUESS=s390-ibm-zvmoe + ;; *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; + GUESS=powerpc-ibm-os400 + ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix"$UNAME_RELEASE" - exit ;; + GUESS=arm-acorn-riscix$UNAME_RELEASE + ;; arm*:riscos:*:*|arm*:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; + GUESS=arm-unknown-riscos + ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; + GUESS=hppa1.1-hitachi-hiuxmpp + ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; + case `(/bin/universe) 2>/dev/null` in + att) GUESS=pyramid-pyramid-sysv3 ;; + *) GUESS=pyramid-pyramid-bsd ;; + esac + ;; NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; + GUESS=pyramid-pyramid-svr4 + ;; DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; + GUESS=sparc-icl-nx6 + ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; + sparc) GUESS=sparc-icl-nx7 ;; + esac + ;; s390x:SunOS:*:*) - echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" - exit ;; + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL + ;; sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" - exit ;; + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-hal-solaris2$SUN_REL + ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" - exit ;; + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-sun-solaris2$SUN_REL + ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux"$UNAME_RELEASE" - exit ;; + GUESS=i386-pc-auroraux$UNAME_RELEASE + ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval "$set_cc_for_build" + set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi - echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" - exit ;; + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=$SUN_ARCH-pc-solaris2$SUN_REL + ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" - exit ;; + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-sun-solaris3$SUN_REL + ;; sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in + case `/usr/bin/arch -k` in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" - exit ;; + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` + GUESS=sparc-sun-sunos$SUN_REL + ;; sun3*:SunOS:*:*) - echo m68k-sun-sunos"$UNAME_RELEASE" - exit ;; + GUESS=m68k-sun-sunos$UNAME_RELEASE + ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 - case "`/bin/arch`" in + case `/bin/arch` in sun3) - echo m68k-sun-sunos"$UNAME_RELEASE" + GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) - echo sparc-sun-sunos"$UNAME_RELEASE" + GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac - exit ;; + ;; aushp:SunOS:*:*) - echo sparc-auspex-sunos"$UNAME_RELEASE" - exit ;; + GUESS=sparc-auspex-sunos$UNAME_RELEASE + ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor @@ -446,43 +490,43 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint"$UNAME_RELEASE" - exit ;; + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint"$UNAME_RELEASE" - exit ;; + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint"$UNAME_RELEASE" - exit ;; + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint"$UNAME_RELEASE" - exit ;; + GUESS=m68k-milan-mint$UNAME_RELEASE + ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint"$UNAME_RELEASE" - exit ;; + GUESS=m68k-hades-mint$UNAME_RELEASE + ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint"$UNAME_RELEASE" - exit ;; + GUESS=m68k-unknown-mint$UNAME_RELEASE + ;; m68k:machten:*:*) - echo m68k-apple-machten"$UNAME_RELEASE" - exit ;; + GUESS=m68k-apple-machten$UNAME_RELEASE + ;; powerpc:machten:*:*) - echo powerpc-apple-machten"$UNAME_RELEASE" - exit ;; + GUESS=powerpc-apple-machten$UNAME_RELEASE + ;; RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; + GUESS=mips-dec-mach_bsd4.3 + ;; RISC*:ULTRIX:*:*) - echo mips-dec-ultrix"$UNAME_RELEASE" - exit ;; + GUESS=mips-dec-ultrix$UNAME_RELEASE + ;; VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix"$UNAME_RELEASE" - exit ;; + GUESS=vax-dec-ultrix$UNAME_RELEASE + ;; 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix"$UNAME_RELEASE" - exit ;; + GUESS=clipper-intergraph-clix$UNAME_RELEASE + ;; mips:*:*:UMIPS | mips:*:*:RISCos) - eval "$set_cc_for_build" + set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ @@ -508,78 +552,79 @@ EOF dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos"$UNAME_RELEASE" - exit ;; + GUESS=mips-mips-riscos$UNAME_RELEASE + ;; Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; + GUESS=powerpc-motorola-powermax + ;; Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; + GUESS=powerpc-harris-powermax + ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; + GUESS=powerpc-harris-powermax + ;; Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; + GUESS=powerpc-harris-powerunix + ;; m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; + GUESS=m88k-harris-cxux7 + ;; m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; + GUESS=m88k-motorola-sysv4 + ;; m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; + GUESS=m88k-motorola-sysv3 + ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] + if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then - if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ - [ "$TARGET_BINARY_INTERFACE"x = x ] + if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ + test "$TARGET_BINARY_INTERFACE"x = x then - echo m88k-dg-dgux"$UNAME_RELEASE" + GUESS=m88k-dg-dgux$UNAME_RELEASE else - echo m88k-dg-dguxbcs"$UNAME_RELEASE" + GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else - echo i586-dg-dgux"$UNAME_RELEASE" + GUESS=i586-dg-dgux$UNAME_RELEASE fi - exit ;; + ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; + GUESS=m88k-dolphin-sysv3 + ;; M88*:*:R3*:*) # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; + GUESS=m88k-motorola-sysv3 + ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; + GUESS=m88k-tektronix-sysv3 + ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; + GUESS=m68k-tektronix-bsd + ;; *:IRIX*:*:*) - echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" - exit ;; + IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` + GUESS=mips-sgi-irix$IRIX_REL + ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id + ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; + GUESS=i386-ibm-aix + ;; ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then + if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else - IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" + IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi - echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" - exit ;; + GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV + ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval "$set_cc_for_build" + set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include @@ -593,16 +638,16 @@ EOF EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then - echo "$SYSTEM_NAME" + GUESS=$SYSTEM_NAME else - echo rs6000-ibm-aix3.2.5 + GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 + GUESS=rs6000-ibm-aix3.2.4 else - echo rs6000-ibm-aix3.2 + GUESS=rs6000-ibm-aix3.2 fi - exit ;; + ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then @@ -610,57 +655,57 @@ EOF else IBM_ARCH=powerpc fi - if [ -x /usr/bin/lslpp ] ; then - IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | + if test -x /usr/bin/lslpp ; then + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else - IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" + IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi - echo "$IBM_ARCH"-ibm-aix"$IBM_REV" - exit ;; + GUESS=$IBM_ARCH-ibm-aix$IBM_REV + ;; *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; + GUESS=rs6000-ibm-aix + ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) - echo romp-ibm-bsd4.4 - exit ;; + GUESS=romp-ibm-bsd4.4 + ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 + GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to + ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; + GUESS=rs6000-bull-bosx + ;; DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; + GUESS=m68k-bull-sysv3 + ;; 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; + GUESS=m68k-hp-bsd + ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; + GUESS=m68k-hp-bsd4.4 + ;; 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` - case "$UNAME_MACHINE" in + HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` + case $UNAME_MACHINE in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then + if test -x /usr/bin/getconf; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "$sc_cpu_version" in + case $sc_cpu_version in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 - case "$sc_kernel_bits" in + case $sc_kernel_bits in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi - if [ "$HP_ARCH" = "" ]; then - eval "$set_cc_for_build" + if test "$HP_ARCH" = ""; then + set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE @@ -698,9 +743,9 @@ EOF test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac - if [ "$HP_ARCH" = hppa2.0w ] + if test "$HP_ARCH" = hppa2.0w then - eval "$set_cc_for_build" + set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler @@ -719,14 +764,14 @@ EOF HP_ARCH=hppa64 fi fi - echo "$HP_ARCH"-hp-hpux"$HPUX_REV" - exit ;; + GUESS=$HP_ARCH-hp-hpux$HPUX_REV + ;; ia64:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux"$HPUX_REV" - exit ;; + HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` + GUESS=ia64-hp-hpux$HPUX_REV + ;; 3050*:HI-UX:*:*) - eval "$set_cc_for_build" + set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include int @@ -754,36 +799,36 @@ EOF EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } - echo unknown-hitachi-hiuxwe2 - exit ;; + GUESS=unknown-hitachi-hiuxwe2 + ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) - echo hppa1.1-hp-bsd - exit ;; + GUESS=hppa1.1-hp-bsd + ;; 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; + GUESS=hppa1.0-hp-bsd + ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; + GUESS=hppa1.0-hp-mpeix + ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) - echo hppa1.1-hp-osf - exit ;; + GUESS=hppa1.1-hp-osf + ;; hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; + GUESS=hppa1.0-hp-osf + ;; i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo "$UNAME_MACHINE"-unknown-osf1mk + if test -x /usr/sbin/sysversion ; then + GUESS=$UNAME_MACHINE-unknown-osf1mk else - echo "$UNAME_MACHINE"-unknown-osf1 + GUESS=$UNAME_MACHINE-unknown-osf1 fi - exit ;; + ;; parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; + GUESS=hppa1.1-hp-lites + ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; + GUESS=c1-convex-bsd + ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd @@ -791,17 +836,18 @@ EOF fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit ;; + GUESS=c34-convex-bsd + ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; + GUESS=c38-convex-bsd + ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; + GUESS=c4-convex-bsd + ;; CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=ymp-cray-unicos$CRAY_REL + ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ @@ -809,103 +855,129 @@ EOF -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) - echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=t90-cray-unicos$CRAY_REL + ;; CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=alphaev5-cray-unicosmk$CRAY_REL + ;; CRAY*SV1:*:*:*) - echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=sv1-cray-unicos$CRAY_REL + ;; *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=craynv-cray-unicosmp$CRAY_REL + ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; + GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} + ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; + GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} + ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE + ;; sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi"$UNAME_RELEASE" - exit ;; + GUESS=sparc-unknown-bsdi$UNAME_RELEASE + ;; *:BSD/OS:*:*) - echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE + ;; + arm:FreeBSD:*:*) + UNAME_PROCESSOR=`uname -p` + set_cc_for_build + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi + else + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf + fi + ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` - case "$UNAME_PROCESSOR" in + case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac - echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" - exit ;; + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL + ;; i*:CYGWIN*:*) - echo "$UNAME_MACHINE"-pc-cygwin - exit ;; + GUESS=$UNAME_MACHINE-pc-cygwin + ;; *:MINGW64*:*) - echo "$UNAME_MACHINE"-pc-mingw64 - exit ;; + GUESS=$UNAME_MACHINE-pc-mingw64 + ;; *:MINGW*:*) - echo "$UNAME_MACHINE"-pc-mingw32 - exit ;; + GUESS=$UNAME_MACHINE-pc-mingw32 + ;; *:MSYS*:*) - echo "$UNAME_MACHINE"-pc-msys - exit ;; + GUESS=$UNAME_MACHINE-pc-msys + ;; i*:PW*:*) - echo "$UNAME_MACHINE"-pc-pw32 - exit ;; + GUESS=$UNAME_MACHINE-pc-pw32 + ;; + *:SerenityOS:*:*) + GUESS=$UNAME_MACHINE-pc-serenity + ;; *:Interix*:*) - case "$UNAME_MACHINE" in + case $UNAME_MACHINE in x86) - echo i586-pc-interix"$UNAME_RELEASE" - exit ;; + GUESS=i586-pc-interix$UNAME_RELEASE + ;; authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix"$UNAME_RELEASE" - exit ;; + GUESS=x86_64-unknown-interix$UNAME_RELEASE + ;; IA64) - echo ia64-unknown-interix"$UNAME_RELEASE" - exit ;; + GUESS=ia64-unknown-interix$UNAME_RELEASE + ;; esac ;; i*:UWIN*:*) - echo "$UNAME_MACHINE"-pc-uwin - exit ;; + GUESS=$UNAME_MACHINE-pc-uwin + ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; + GUESS=x86_64-pc-cygwin + ;; prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" - exit ;; + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=powerpcle-unknown-solaris2$SUN_REL + ;; *:GNU:*:*) # the GNU system - echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" - exit ;; + GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` + GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` + GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL + ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" - exit ;; - i*86:Minix:*:*) - echo "$UNAME_MACHINE"-pc-minix - exit ;; + GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` + GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC + ;; + *:Minix:*:*) + GUESS=$UNAME_MACHINE-unknown-minix + ;; aarch64:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; @@ -916,187 +988,225 @@ EOF esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - arc:Linux:*:* | arceb:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; arm*:Linux:*:*) - eval "$set_cc_for_build" + set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi + GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf + GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi - exit ;; + ;; avr32*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; cris:Linux:*:*) - echo "$UNAME_MACHINE"-axis-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-axis-linux-$LIBC + ;; crisv32:Linux:*:*) - echo "$UNAME_MACHINE"-axis-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-axis-linux-$LIBC + ;; e2k:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; frv:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; hexagon:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; i*86:Linux:*:*) - echo "$UNAME_MACHINE"-pc-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-pc-linux-$LIBC + ;; ia64:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; k1om:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; m32r*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; m68*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; mips:Linux:*:* | mips64:Linux:*:*) - eval "$set_cc_for_build" + set_cc_for_build + IS_GLIBC=0 + test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU - #undef ${UNAME_MACHINE} - #undef ${UNAME_MACHINE}el + #undef mips + #undef mipsel + #undef mips64 + #undef mips64el + #if ${IS_GLIBC} && defined(_ABI64) + LIBCABI=gnuabi64 + #else + #if ${IS_GLIBC} && defined(_ABIN32) + LIBCABI=gnuabin32 + #else + LIBCABI=${LIBC} + #endif + #endif + + #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 + CPU=mipsisa64r6 + #else + #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 + CPU=mipsisa32r6 + #else + #if defined(__mips64) + CPU=mips64 + #else + CPU=mips + #endif + #endif + #endif + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=${UNAME_MACHINE}el + MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=${UNAME_MACHINE} + MIPS_ENDIAN= #else - CPU= + MIPS_ENDIAN= #endif #endif EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" - test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } + cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` + eval "$cc_set_vars" + test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; openrisc*:Linux:*:*) - echo or1k-unknown-linux-"$LIBC" - exit ;; + GUESS=or1k-unknown-linux-$LIBC + ;; or32:Linux:*:* | or1k*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; padre:Linux:*:*) - echo sparc-unknown-linux-"$LIBC" - exit ;; + GUESS=sparc-unknown-linux-$LIBC + ;; parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-"$LIBC" - exit ;; + GUESS=hppa64-unknown-linux-$LIBC + ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; - PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; - *) echo hppa-unknown-linux-"$LIBC" ;; + PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; + PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; + *) GUESS=hppa-unknown-linux-$LIBC ;; esac - exit ;; + ;; ppc64:Linux:*:*) - echo powerpc64-unknown-linux-"$LIBC" - exit ;; + GUESS=powerpc64-unknown-linux-$LIBC + ;; ppc:Linux:*:*) - echo powerpc-unknown-linux-"$LIBC" - exit ;; + GUESS=powerpc-unknown-linux-$LIBC + ;; ppc64le:Linux:*:*) - echo powerpc64le-unknown-linux-"$LIBC" - exit ;; + GUESS=powerpc64le-unknown-linux-$LIBC + ;; ppcle:Linux:*:*) - echo powerpcle-unknown-linux-"$LIBC" - exit ;; - riscv32:Linux:*:* | riscv64:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=powerpcle-unknown-linux-$LIBC + ;; + riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; s390:Linux:*:* | s390x:Linux:*:*) - echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-ibm-linux-$LIBC + ;; sh64*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; sh*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; tile*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; vax:Linux:*:*) - echo "$UNAME_MACHINE"-dec-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-dec-linux-$LIBC + ;; x86_64:Linux:*:*) - if objdump -f /bin/sh | grep -q elf32-x86-64; then - echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 - else - echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + set_cc_for_build + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_X32 >/dev/null + then + LIBCABI=${LIBC}x32 + fi fi - exit ;; + GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI + ;; xtensa*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. - echo i386-sequent-sysv4 - exit ;; + GUESS=i386-sequent-sysv4 + ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. - echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" - exit ;; + GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION + ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. - echo "$UNAME_MACHINE"-pc-os2-emx - exit ;; + GUESS=$UNAME_MACHINE-pc-os2-emx + ;; i*86:XTS-300:*:STOP) - echo "$UNAME_MACHINE"-unknown-stop - exit ;; + GUESS=$UNAME_MACHINE-unknown-stop + ;; i*86:atheos:*:*) - echo "$UNAME_MACHINE"-unknown-atheos - exit ;; + GUESS=$UNAME_MACHINE-unknown-atheos + ;; i*86:syllable:*:*) - echo "$UNAME_MACHINE"-pc-syllable - exit ;; + GUESS=$UNAME_MACHINE-pc-syllable + ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos"$UNAME_RELEASE" - exit ;; + GUESS=i386-unknown-lynxos$UNAME_RELEASE + ;; i*86:*DOS:*:*) - echo "$UNAME_MACHINE"-pc-msdosdjgpp - exit ;; + GUESS=$UNAME_MACHINE-pc-msdosdjgpp + ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" + GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else - echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" + GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi - exit ;; + ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in @@ -1104,12 +1214,12 @@ EOF *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac - echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" - exit ;; + GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 @@ -1119,11 +1229,11 @@ EOF && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 - echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" + GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else - echo "$UNAME_MACHINE"-pc-sysv32 + GUESS=$UNAME_MACHINE-pc-sysv32 fi - exit ;; + ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about @@ -1131,31 +1241,31 @@ EOF # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. - echo i586-pc-msdosdjgpp - exit ;; + GUESS=i586-pc-msdosdjgpp + ;; Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; + GUESS=i386-pc-mach3 + ;; paragon:*:*:*) - echo i860-intel-osf1 - exit ;; + GUESS=i860-intel-osf1 + ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 + GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 + GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi - exit ;; + ;; mini*:CTIX:SYS*5:*) # "miniframe" - echo m68010-convergent-sysv - exit ;; + GUESS=m68010-convergent-sysv + ;; mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; + GUESS=m68k-convergent-sysv + ;; M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; + GUESS=m68k-diab-dnix + ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) @@ -1180,249 +1290,404 @@ EOF /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos"$UNAME_RELEASE" - exit ;; + GUESS=m68k-unknown-lynxos$UNAME_RELEASE + ;; mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; + GUESS=m68k-atari-sysv4 + ;; TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos"$UNAME_RELEASE" - exit ;; + GUESS=sparc-unknown-lynxos$UNAME_RELEASE + ;; rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos"$UNAME_RELEASE" - exit ;; + GUESS=rs6000-unknown-lynxos$UNAME_RELEASE + ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos"$UNAME_RELEASE" - exit ;; + GUESS=powerpc-unknown-lynxos$UNAME_RELEASE + ;; SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv"$UNAME_RELEASE" - exit ;; + GUESS=mips-dde-sysv$UNAME_RELEASE + ;; RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; + GUESS=mips-sni-sysv4 + ;; RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; + GUESS=mips-sni-sysv4 + ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo "$UNAME_MACHINE"-sni-sysv4 + GUESS=$UNAME_MACHINE-sni-sysv4 else - echo ns32k-sni-sysv + GUESS=ns32k-sni-sysv fi - exit ;; + ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says - echo i586-unisys-sysv4 - exit ;; + GUESS=i586-unisys-sysv4 + ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; + GUESS=hppa1.1-stratus-sysv4 + ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; + GUESS=i860-stratus-sysv4 + ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. - echo "$UNAME_MACHINE"-stratus-vos - exit ;; + GUESS=$UNAME_MACHINE-stratus-vos + ;; *:VOS:*:*) # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; + GUESS=hppa1.1-stratus-vos + ;; mc68*:A/UX:*:*) - echo m68k-apple-aux"$UNAME_RELEASE" - exit ;; + GUESS=m68k-apple-aux$UNAME_RELEASE + ;; news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; + GUESS=mips-sony-newsos6 + ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv"$UNAME_RELEASE" + if test -d /usr/nec; then + GUESS=mips-nec-sysv$UNAME_RELEASE else - echo mips-unknown-sysv"$UNAME_RELEASE" + GUESS=mips-unknown-sysv$UNAME_RELEASE fi - exit ;; + ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; + GUESS=powerpc-be-beos + ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; + GUESS=powerpc-apple-beos + ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; + GUESS=i586-pc-beos + ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - echo i586-pc-haiku - exit ;; + GUESS=i586-pc-haiku + ;; x86_64:Haiku:*:*) - echo x86_64-unknown-haiku - exit ;; + GUESS=x86_64-unknown-haiku + ;; SX-4:SUPER-UX:*:*) - echo sx4-nec-superux"$UNAME_RELEASE" - exit ;; + GUESS=sx4-nec-superux$UNAME_RELEASE + ;; SX-5:SUPER-UX:*:*) - echo sx5-nec-superux"$UNAME_RELEASE" - exit ;; + GUESS=sx5-nec-superux$UNAME_RELEASE + ;; SX-6:SUPER-UX:*:*) - echo sx6-nec-superux"$UNAME_RELEASE" - exit ;; + GUESS=sx6-nec-superux$UNAME_RELEASE + ;; SX-7:SUPER-UX:*:*) - echo sx7-nec-superux"$UNAME_RELEASE" - exit ;; + GUESS=sx7-nec-superux$UNAME_RELEASE + ;; SX-8:SUPER-UX:*:*) - echo sx8-nec-superux"$UNAME_RELEASE" - exit ;; + GUESS=sx8-nec-superux$UNAME_RELEASE + ;; SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux"$UNAME_RELEASE" - exit ;; + GUESS=sx8r-nec-superux$UNAME_RELEASE + ;; SX-ACE:SUPER-UX:*:*) - echo sxace-nec-superux"$UNAME_RELEASE" - exit ;; + GUESS=sxace-nec-superux$UNAME_RELEASE + ;; Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody"$UNAME_RELEASE" - exit ;; + GUESS=powerpc-apple-rhapsody$UNAME_RELEASE + ;; *:Rhapsody:*:*) - echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE + ;; + arm64:Darwin:*:*) + GUESS=aarch64-apple-darwin$UNAME_RELEASE + ;; *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - eval "$set_cc_for_build" - if test "$UNAME_PROCESSOR" = unknown ; then - UNAME_PROCESSOR=powerpc + UNAME_PROCESSOR=`uname -p` + case $UNAME_PROCESSOR in + unknown) UNAME_PROCESSOR=powerpc ;; + esac + if command -v xcode-select > /dev/null 2> /dev/null && \ + ! xcode-select --print-path > /dev/null 2> /dev/null ; then + # Avoid executing cc if there is no toolchain installed as + # cc will be a stub that puts up a graphical alert + # prompting the user to install developer tools. + CC_FOR_BUILD=no_compiler_found + else + set_cc_for_build fi - if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - case $UNAME_PROCESSOR in - i386) UNAME_PROCESSOR=x86_64 ;; - powerpc) UNAME_PROCESSOR=powerpc64 ;; - esac - fi - # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc - if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_PPC >/dev/null - then - UNAME_PROCESSOR=powerpc - fi + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc + if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_PPC >/dev/null + then + UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then - # Avoid executing cc on OS X 10.9, as it ships with a stub - # that puts up a graphical alert prompting to install - # developer tools. Any system running Mac OS X 10.7 or - # later (Darwin 11 and later) is required to have a 64-bit - # processor. This is not true of the ARM version of Darwin - # that Apple uses in portable devices. - UNAME_PROCESSOR=x86_64 + # uname -m returns i386 or x86_64 + UNAME_PROCESSOR=$UNAME_MACHINE fi - echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE + ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi - echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE + ;; *:QNX:*:4*) - echo i386-pc-qnx - exit ;; + GUESS=i386-pc-qnx + ;; NEO-*:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk"$UNAME_RELEASE" - exit ;; + GUESS=neo-tandem-nsk$UNAME_RELEASE + ;; NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk"$UNAME_RELEASE" - exit ;; + GUESS=nse-tandem-nsk$UNAME_RELEASE + ;; NSR-*:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk"$UNAME_RELEASE" - exit ;; + GUESS=nsr-tandem-nsk$UNAME_RELEASE + ;; NSV-*:NONSTOP_KERNEL:*:*) - echo nsv-tandem-nsk"$UNAME_RELEASE" - exit ;; + GUESS=nsv-tandem-nsk$UNAME_RELEASE + ;; NSX-*:NONSTOP_KERNEL:*:*) - echo nsx-tandem-nsk"$UNAME_RELEASE" - exit ;; + GUESS=nsx-tandem-nsk$UNAME_RELEASE + ;; *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; + GUESS=mips-compaq-nonstopux + ;; BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; + GUESS=bs2000-siemens-sysv + ;; DS/*:UNIX_System_V:*:*) - echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" - exit ;; + GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE + ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. - if test "$cputype" = 386; then + if test "${cputype-}" = 386; then UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" + elif test "x${cputype-}" != x; then + UNAME_MACHINE=$cputype fi - echo "$UNAME_MACHINE"-unknown-plan9 - exit ;; + GUESS=$UNAME_MACHINE-unknown-plan9 + ;; *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; + GUESS=pdp10-unknown-tops10 + ;; *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; + GUESS=pdp10-unknown-tenex + ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; + GUESS=pdp10-dec-tops20 + ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; + GUESS=pdp10-xkl-tops20 + ;; *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; + GUESS=pdp10-unknown-tops20 + ;; *:ITS:*:*) - echo pdp10-unknown-its - exit ;; + GUESS=pdp10-unknown-its + ;; SEI:*:*:SEIUX) - echo mips-sei-seiux"$UNAME_RELEASE" - exit ;; + GUESS=mips-sei-seiux$UNAME_RELEASE + ;; *:DragonFly:*:*) - echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" - exit ;; + DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL + ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "$UNAME_MACHINE" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; + case $UNAME_MACHINE in + A*) GUESS=alpha-dec-vms ;; + I*) GUESS=ia64-dec-vms ;; + V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; + GUESS=i386-pc-xenix + ;; i*86:skyos:*:*) - echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" - exit ;; + SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` + GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL + ;; i*86:rdos:*:*) - echo "$UNAME_MACHINE"-pc-rdos - exit ;; - i*86:AROS:*:*) - echo "$UNAME_MACHINE"-pc-aros - exit ;; + GUESS=$UNAME_MACHINE-pc-rdos + ;; + i*86:Fiwix:*:*) + GUESS=$UNAME_MACHINE-pc-fiwix + ;; + *:AROS:*:*) + GUESS=$UNAME_MACHINE-unknown-aros + ;; x86_64:VMkernel:*:*) - echo "$UNAME_MACHINE"-unknown-esx - exit ;; + GUESS=$UNAME_MACHINE-unknown-esx + ;; amd64:Isilon\ OneFS:*:*) - echo x86_64-unknown-onefs - exit ;; + GUESS=x86_64-unknown-onefs + ;; + *:Unleashed:*:*) + GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE + ;; esac +# Do we have a guess based on uname results? +if test "x$GUESS" != x; then + echo "$GUESS" + exit +fi + +# No uname command or uname output not recognized. +set_cc_for_build +cat > "$dummy.c" < +#include +#endif +#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) +#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) +#include +#if defined(_SIZE_T_) || defined(SIGLOST) +#include +#endif +#endif +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); +#endif + +#if defined (vax) +#if !defined (ultrix) +#include +#if defined (BSD) +#if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +#else +#if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +#else + printf ("vax-dec-bsd\n"); exit (0); +#endif +#endif +#else + printf ("vax-dec-bsd\n"); exit (0); +#endif +#else +#if defined(_SIZE_T_) || defined(SIGLOST) + struct utsname un; + uname (&un); + printf ("vax-dec-ultrix%s\n", un.release); exit (0); +#else + printf ("vax-dec-ultrix\n"); exit (0); +#endif +#endif +#endif +#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) +#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) +#if defined(_SIZE_T_) || defined(SIGLOST) + struct utsname *un; + uname (&un); + printf ("mips-dec-ultrix%s\n", un.release); exit (0); +#else + printf ("mips-dec-ultrix\n"); exit (0); +#endif +#endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. +test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } + echo "$0: unable to guess system type" >&2 -case "$UNAME_MACHINE:$UNAME_SYSTEM" in +case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 <&2 exit 1 ;; *local*) @@ -110,1223 +119,1186 @@ case $# in exit 1;; esac -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ - linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ - knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ - kopensolaris*-gnu* | cloudabi*-eabi* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - android-linux) - os=-linux-android - basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown - ;; - *) - basic_machine=`echo "$1" | sed 's/-[^-]*$//'` - if [ "$basic_machine" != "$1" ] - then os=`echo "$1" | sed 's/.*-/-/'` - else os=; fi - ;; -esac +# Split fields of configuration type +# shellcheck disable=SC2162 +saved_IFS=$IFS +IFS="-" read field1 field2 field3 field4 <&2 + exit 1 ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray | -microblaze*) - os= - basic_machine=$1 + *-*-*-*) + basic_machine=$field1-$field2 + basic_os=$field3-$field4 ;; - -bluegene*) - os=-cnk + *-*-*) + # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two + # parts + maybe_os=$field2-$field3 + case $maybe_os in + nto-qnx* | linux-* | uclinux-uclibc* \ + | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ + | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ + | storm-chaos* | os2-emx* | rtmk-nova*) + basic_machine=$field1 + basic_os=$maybe_os + ;; + android-linux) + basic_machine=$field1-unknown + basic_os=linux-android + ;; + *) + basic_machine=$field1-$field2 + basic_os=$field3 + ;; + esac ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 + *-*) + # A lone config we happen to match not fitting any pattern + case $field1-$field2 in + decstation-3100) + basic_machine=mips-dec + basic_os= + ;; + *-*) + # Second component is usually, but not always the OS + case $field2 in + # Prevent following clause from handling this valid os + sun*os*) + basic_machine=$field1 + basic_os=$field2 + ;; + zephyr*) + basic_machine=$field1-unknown + basic_os=$field2 + ;; + # Manufacturers + dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ + | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ + | unicom* | ibm* | next | hp | isi* | apollo | altos* \ + | convergent* | ncr* | news | 32* | 3600* | 3100* \ + | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ + | ultra | tti* | harris | dolphin | highlevel | gould \ + | cbm | ns | masscomp | apple | axis | knuth | cray \ + | microblaze* | sim | cisco \ + | oki | wec | wrs | winbond) + basic_machine=$field1-$field2 + basic_os= + ;; + *) + basic_machine=$field1 + basic_os=$field2 + ;; + esac + ;; + esac ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*178) - os=-lynxos178 - ;; - -lynx*5) - os=-lynxos5 - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint + *) + # Convert single-component short-hands not valid as part of + # multi-component configurations. + case $field1 in + 386bsd) + basic_machine=i386-pc + basic_os=bsd + ;; + a29khif) + basic_machine=a29k-amd + basic_os=udi + ;; + adobe68k) + basic_machine=m68010-adobe + basic_os=scout + ;; + alliant) + basic_machine=fx80-alliant + basic_os= + ;; + altos | altos3068) + basic_machine=m68k-altos + basic_os= + ;; + am29k) + basic_machine=a29k-none + basic_os=bsd + ;; + amdahl) + basic_machine=580-amdahl + basic_os=sysv + ;; + amiga) + basic_machine=m68k-unknown + basic_os= + ;; + amigaos | amigados) + basic_machine=m68k-unknown + basic_os=amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + basic_os=sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + basic_os=sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + basic_os=bsd + ;; + aros) + basic_machine=i386-pc + basic_os=aros + ;; + aux) + basic_machine=m68k-apple + basic_os=aux + ;; + balance) + basic_machine=ns32k-sequent + basic_os=dynix + ;; + blackfin) + basic_machine=bfin-unknown + basic_os=linux + ;; + cegcc) + basic_machine=arm-unknown + basic_os=cegcc + ;; + convex-c1) + basic_machine=c1-convex + basic_os=bsd + ;; + convex-c2) + basic_machine=c2-convex + basic_os=bsd + ;; + convex-c32) + basic_machine=c32-convex + basic_os=bsd + ;; + convex-c34) + basic_machine=c34-convex + basic_os=bsd + ;; + convex-c38) + basic_machine=c38-convex + basic_os=bsd + ;; + cray) + basic_machine=j90-cray + basic_os=unicos + ;; + crds | unos) + basic_machine=m68k-crds + basic_os= + ;; + da30) + basic_machine=m68k-da30 + basic_os= + ;; + decstation | pmax | pmin | dec3100 | decstatn) + basic_machine=mips-dec + basic_os= + ;; + delta88) + basic_machine=m88k-motorola + basic_os=sysv3 + ;; + dicos) + basic_machine=i686-pc + basic_os=dicos + ;; + djgpp) + basic_machine=i586-pc + basic_os=msdosdjgpp + ;; + ebmon29k) + basic_machine=a29k-amd + basic_os=ebmon + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + basic_os=ose + ;; + gmicro) + basic_machine=tron-gmicro + basic_os=sysv + ;; + go32) + basic_machine=i386-pc + basic_os=go32 + ;; + h8300hms) + basic_machine=h8300-hitachi + basic_os=hms + ;; + h8300xray) + basic_machine=h8300-hitachi + basic_os=xray + ;; + h8500hms) + basic_machine=h8500-hitachi + basic_os=hms + ;; + harris) + basic_machine=m88k-harris + basic_os=sysv3 + ;; + hp300 | hp300hpux) + basic_machine=m68k-hp + basic_os=hpux + ;; + hp300bsd) + basic_machine=m68k-hp + basic_os=bsd + ;; + hppaosf) + basic_machine=hppa1.1-hp + basic_os=osf + ;; + hppro) + basic_machine=hppa1.1-hp + basic_os=proelf + ;; + i386mach) + basic_machine=i386-mach + basic_os=mach + ;; + isi68 | isi) + basic_machine=m68k-isi + basic_os=sysv + ;; + m68knommu) + basic_machine=m68k-unknown + basic_os=linux + ;; + magnum | m3230) + basic_machine=mips-mips + basic_os=sysv + ;; + merlin) + basic_machine=ns32k-utek + basic_os=sysv + ;; + mingw64) + basic_machine=x86_64-pc + basic_os=mingw64 + ;; + mingw32) + basic_machine=i686-pc + basic_os=mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + basic_os=mingw32ce + ;; + monitor) + basic_machine=m68k-rom68k + basic_os=coff + ;; + morphos) + basic_machine=powerpc-unknown + basic_os=morphos + ;; + moxiebox) + basic_machine=moxie-unknown + basic_os=moxiebox + ;; + msdos) + basic_machine=i386-pc + basic_os=msdos + ;; + msys) + basic_machine=i686-pc + basic_os=msys + ;; + mvs) + basic_machine=i370-ibm + basic_os=mvs + ;; + nacl) + basic_machine=le32-unknown + basic_os=nacl + ;; + ncr3000) + basic_machine=i486-ncr + basic_os=sysv4 + ;; + netbsd386) + basic_machine=i386-pc + basic_os=netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + basic_os=linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + basic_os=newsos + ;; + news1000) + basic_machine=m68030-sony + basic_os=newsos + ;; + necv70) + basic_machine=v70-nec + basic_os=sysv + ;; + nh3000) + basic_machine=m68k-harris + basic_os=cxux + ;; + nh[45]000) + basic_machine=m88k-harris + basic_os=cxux + ;; + nindy960) + basic_machine=i960-intel + basic_os=nindy + ;; + mon960) + basic_machine=i960-intel + basic_os=mon960 + ;; + nonstopux) + basic_machine=mips-compaq + basic_os=nonstopux + ;; + os400) + basic_machine=powerpc-ibm + basic_os=os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + basic_os=ose + ;; + os68k) + basic_machine=m68k-none + basic_os=os68k + ;; + paragon) + basic_machine=i860-intel + basic_os=osf + ;; + parisc) + basic_machine=hppa-unknown + basic_os=linux + ;; + psp) + basic_machine=mipsallegrexel-sony + basic_os=psp + ;; + pw32) + basic_machine=i586-unknown + basic_os=pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + basic_os=rdos + ;; + rdos32) + basic_machine=i386-pc + basic_os=rdos + ;; + rom68k) + basic_machine=m68k-rom68k + basic_os=coff + ;; + sa29200) + basic_machine=a29k-amd + basic_os=udi + ;; + sei) + basic_machine=mips-sei + basic_os=seiux + ;; + sequent) + basic_machine=i386-sequent + basic_os= + ;; + sps7) + basic_machine=m68k-bull + basic_os=sysv2 + ;; + st2000) + basic_machine=m68k-tandem + basic_os= + ;; + stratus) + basic_machine=i860-stratus + basic_os=sysv4 + ;; + sun2) + basic_machine=m68000-sun + basic_os= + ;; + sun2os3) + basic_machine=m68000-sun + basic_os=sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + basic_os=sunos4 + ;; + sun3) + basic_machine=m68k-sun + basic_os= + ;; + sun3os3) + basic_machine=m68k-sun + basic_os=sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + basic_os=sunos4 + ;; + sun4) + basic_machine=sparc-sun + basic_os= + ;; + sun4os3) + basic_machine=sparc-sun + basic_os=sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + basic_os=sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + basic_os=solaris2 + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + basic_os= + ;; + sv1) + basic_machine=sv1-cray + basic_os=unicos + ;; + symmetry) + basic_machine=i386-sequent + basic_os=dynix + ;; + t3e) + basic_machine=alphaev5-cray + basic_os=unicos + ;; + t90) + basic_machine=t90-cray + basic_os=unicos + ;; + toad1) + basic_machine=pdp10-xkl + basic_os=tops20 + ;; + tpf) + basic_machine=s390x-ibm + basic_os=tpf + ;; + udi29k) + basic_machine=a29k-amd + basic_os=udi + ;; + ultra3) + basic_machine=a29k-nyu + basic_os=sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + basic_os=none + ;; + vaxv) + basic_machine=vax-dec + basic_os=sysv + ;; + vms) + basic_machine=vax-dec + basic_os=vms + ;; + vsta) + basic_machine=i386-pc + basic_os=vsta + ;; + vxworks960) + basic_machine=i960-wrs + basic_os=vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + basic_os=vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + basic_os=vxworks + ;; + xbox) + basic_machine=i686-pc + basic_os=mingw32 + ;; + ymp) + basic_machine=ymp-cray + basic_os=unicos + ;; + *) + basic_machine=$1 + basic_os= + ;; + esac ;; esac -# Decode aliases for certain CPU-COMPANY combinations. +# Decode 1-component or ad-hoc basic machines case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | aarch64 | aarch64_be \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arceb \ - | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ - | avr | avr32 \ - | ba \ - | be32 | be64 \ - | bfin \ - | c4x | c8051 | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | e2k | epiphany \ - | fido | fr30 | frv | ft32 \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | hexagon \ - | i370 | i860 | i960 | ia16 | ia64 \ - | ip2k | iq2000 \ - | k1om \ - | le32 | le64 \ - | lm32 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa32r6 | mipsisa32r6el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64r6 | mipsisa64r6el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipsr5900 | mipsr5900el \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | moxie \ - | mt \ - | msp430 \ - | nds32 | nds32le | nds32be \ - | nios | nios2 | nios2eb | nios2el \ - | ns16k | ns32k \ - | open8 | or1k | or1knd | or32 \ - | pdp10 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle \ - | pru \ - | pyramid \ - | riscv32 | riscv64 \ - | rl78 | rx \ - | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu \ - | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ - | ubicom32 \ - | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ - | visium \ - | wasm32 \ - | x86 | xc16x | xstormy16 | xtensa \ - | z8k | z80) - basic_machine=$basic_machine-unknown + # Here we handle the default manufacturer of certain CPU types. It is in + # some cases the only manufacturer, in others, it is the most popular. + w89k) + cpu=hppa1.1 + vendor=winbond ;; - c54x) - basic_machine=tic54x-unknown + op50n) + cpu=hppa1.1 + vendor=oki ;; - c55x) - basic_machine=tic55x-unknown + op60c) + cpu=hppa1.1 + vendor=oki ;; - c6x) - basic_machine=tic6x-unknown + ibm*) + cpu=i370 + vendor=ibm + ;; + orion105) + cpu=clipper + vendor=highlevel + ;; + mac | mpw | mac-mpw) + cpu=m68k + vendor=apple + ;; + pmac | pmac-mpw) + cpu=powerpc + vendor=apple + ;; + + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + cpu=m68000 + vendor=att + ;; + 3b*) + cpu=we32k + vendor=att + ;; + bluegene*) + cpu=powerpc + vendor=ibm + basic_os=cnk + ;; + decsystem10* | dec10*) + cpu=pdp10 + vendor=dec + basic_os=tops10 + ;; + decsystem20* | dec20*) + cpu=pdp10 + vendor=dec + basic_os=tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + cpu=m68k + vendor=motorola + ;; + dpx2*) + cpu=m68k + vendor=bull + basic_os=sysv3 + ;; + encore | umax | mmax) + cpu=ns32k + vendor=encore + ;; + elxsi) + cpu=elxsi + vendor=elxsi + basic_os=${basic_os:-bsd} + ;; + fx2800) + cpu=i860 + vendor=alliant + ;; + genix) + cpu=ns32k + vendor=ns + ;; + h3050r* | hiux*) + cpu=hppa1.1 + vendor=hitachi + basic_os=hiuxwe2 + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + cpu=m68000 + vendor=hp + ;; + hp9k3[2-9][0-9]) + cpu=m68k + vendor=hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + cpu=hppa1.1 + vendor=hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + i*86v32) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv32 + ;; + i*86v4*) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv4 + ;; + i*86v) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv + ;; + i*86sol2) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=solaris2 + ;; + j90 | j90-cray) + cpu=j90 + vendor=cray + basic_os=${basic_os:-unicos} + ;; + iris | iris4d) + cpu=mips + vendor=sgi + case $basic_os in + irix*) + ;; + *) + basic_os=irix4 + ;; + esac + ;; + miniframe) + cpu=m68000 + vendor=convergent + ;; + *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) + cpu=m68k + vendor=atari + basic_os=mint + ;; + news-3600 | risc-news) + cpu=mips + vendor=sony + basic_os=newsos + ;; + next | m*-next) + cpu=m68k + vendor=next + case $basic_os in + openstep*) + ;; + nextstep*) + ;; + ns2*) + basic_os=nextstep2 + ;; + *) + basic_os=nextstep3 + ;; + esac + ;; + np1) + cpu=np1 + vendor=gould + ;; + op50n-* | op60c-*) + cpu=hppa1.1 + vendor=oki + basic_os=proelf + ;; + pa-hitachi) + cpu=hppa1.1 + vendor=hitachi + basic_os=hiuxwe2 + ;; + pbd) + cpu=sparc + vendor=tti + ;; + pbb) + cpu=m68k + vendor=tti + ;; + pc532) + cpu=ns32k + vendor=pc532 + ;; + pn) + cpu=pn + vendor=gould + ;; + power) + cpu=power + vendor=ibm + ;; + ps2) + cpu=i386 + vendor=ibm + ;; + rm[46]00) + cpu=mips + vendor=siemens + ;; + rtpc | rtpc-*) + cpu=romp + vendor=ibm + ;; + sde) + cpu=mipsisa32 + vendor=sde + basic_os=${basic_os:-elf} + ;; + simso-wrs) + cpu=sparclite + vendor=wrs + basic_os=vxworks + ;; + tower | tower-32) + cpu=m68k + vendor=ncr + ;; + vpp*|vx|vx-*) + cpu=f301 + vendor=fujitsu + ;; + w65) + cpu=w65 + vendor=wdc + ;; + w89k-*) + cpu=hppa1.1 + vendor=winbond + basic_os=proelf + ;; + none) + cpu=none + vendor=none ;; leon|leon[3-9]) - basic_machine=sparc-$basic_machine + cpu=sparc + vendor=$basic_machine ;; - m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) - ;; - ms1) - basic_machine=mt-unknown + leon-*|leon[3-9]-*) + cpu=sparc + vendor=`echo "$basic_machine" | sed 's/-.*//'` ;; - strongarm | thumb | xscale) - basic_machine=arm-unknown + *-*) + # shellcheck disable=SC2162 + saved_IFS=$IFS + IFS="-" read cpu vendor <&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | aarch64-* | aarch64_be-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | ba-* \ - | be32-* | be64-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* \ - | c8051-* | clipper-* | craynv-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | e2k-* | elxsi-* \ - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | hexagon-* \ - | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ - | ip2k-* | iq2000-* \ - | k1om-* \ - | le32-* | le64-* \ - | lm32-* \ - | m32c-* | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ - | microblaze-* | microblazeel-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64octeon-* | mips64octeonel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64r5900-* | mips64r5900el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa32r6-* | mipsisa32r6el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64r6-* | mipsisa64r6el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipsr5900-* | mipsr5900el-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nds32-* | nds32le-* | nds32be-* \ - | nios-* | nios2-* | nios2eb-* | nios2el-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | open8-* \ - | or1k*-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ - | pru-* \ - | pyramid-* \ - | riscv32-* | riscv64-* \ - | rl78-* | romp-* | rs6000-* | rx-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ - | tahoe-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tile*-* \ - | tron-* \ - | ubicom32-* \ - | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ - | vax-* \ - | visium-* \ - | wasm32-* \ - | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* \ - | xstormy16-* | xtensa*-* \ - | ymp-* \ - | z8k-* | z80-*) - ;; - # Recognize the basic CPU types without company name, with glob match. - xtensa*) - basic_machine=$basic_machine-unknown - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-pc - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aros) - basic_machine=i386-pc - os=-aros - ;; - asmjs) - basic_machine=asmjs-unknown - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - blackfin) - basic_machine=bfin-unknown - os=-linux - ;; - blackfin-*) - basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` - os=-linux - ;; - bluegene*) - basic_machine=powerpc-ibm - os=-cnk - ;; - c54x-*) - basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - c55x-*) - basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - c6x-*) - basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - cegcc) - basic_machine=arm-unknown - os=-cegcc - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16 | cr16-*) - basic_machine=cr16-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dicos) - basic_machine=i686-pc - os=-dicos - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2*) - basic_machine=m68k-bull - os=-sysv3 - ;; - e500v[12]) - basic_machine=powerpc-unknown - os=$os"spe" - ;; - e500v[12]-*) - basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` - os=$os"spe" - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; - i*86v32) - basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - leon-*|leon[3-9]-*) - basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` - ;; - m68knommu) - basic_machine=m68k-unknown - os=-linux - ;; - m68knommu-*) - basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` - os=-linux - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - microblaze*) - basic_machine=microblaze-xilinx - ;; - mingw64) - basic_machine=x86_64-pc - os=-mingw64 - ;; - mingw32) - basic_machine=i686-pc - os=-mingw32 - ;; - mingw32ce) - basic_machine=arm-unknown - os=-mingw32ce - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - moxiebox) - basic_machine=moxie-unknown - os=-moxiebox - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - ms1-*) - basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` - ;; - msys) - basic_machine=i686-pc - os=-msys - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - nacl) - basic_machine=le32-unknown - os=-nacl - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - neo-tandem) - basic_machine=neo-tandem - ;; - nse-tandem) - basic_machine=nse-tandem - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - nsv-tandem) - basic_machine=nsv-tandem - ;; - nsx-tandem) - basic_machine=nsx-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - openrisc | openrisc-*) - basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - parisc) - basic_machine=hppa-unknown - os=-linux - ;; - parisc-*) - basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` - os=-linux - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 + cpu=$basic_machine + vendor=pc ;; + # These rules are duplicated from below for sake of the special case above; + # i.e. things that normalized to x86 arches should also default to "pc" pc98) - basic_machine=i386-pc + cpu=i386 + vendor=pc ;; - pc98-*) - basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` + x64 | amd64) + cpu=x86_64 + vendor=pc ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc + # Recognize the basic CPU types without company name. + *) + cpu=$basic_machine + vendor=unknown ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc +esac + +unset -v basic_machine + +# Decode basic machines in the full and proper CPU-Company form. +case $cpu-$vendor in + # Here we handle the default manufacturer of certain CPU types in canonical form. It is in + # some cases the only manufacturer, in others, it is the most popular. + craynv-unknown) + vendor=cray + basic_os=${basic_os:-unicosmp} ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc + c90-unknown | c90-cray) + vendor=cray + basic_os=${Basic_os:-unicos} ;; - pentium4) - basic_machine=i786-pc + fx80-unknown) + vendor=alliant ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` + romp-unknown) + vendor=ibm ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` + mmix-unknown) + vendor=knuth ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` + microblaze-unknown | microblazeel-unknown) + vendor=xilinx ;; - pentium4-*) - basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` + rs6000-unknown) + vendor=ibm ;; - pn) - basic_machine=pn-gould + vax-unknown) + vendor=dec ;; - power) basic_machine=power-ibm + pdp11-unknown) + vendor=dec ;; - ppc | ppcbe) basic_machine=powerpc-unknown + we32k-unknown) + vendor=att ;; - ppc-* | ppcbe-*) - basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` + cydra-unknown) + vendor=cydrome ;; - ppcle | powerpclittle) - basic_machine=powerpcle-unknown + i370-ibm*) + vendor=ibm ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` + orion-unknown) + vendor=highlevel ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rdos | rdos64) - basic_machine=x86_64-pc - os=-rdos - ;; - rdos32) - basic_machine=i386-pc - os=-rdos - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sde) - basic_machine=mipsisa32-sde - os=-elf - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh5el) - basic_machine=sh5le-unknown - ;; - simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - strongarm-* | thumb-*) - basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tile*) - basic_machine=$basic_machine-unknown - os=-linux-gnu - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - x64) - basic_machine=x86_64-pc - ;; - xbox) - basic_machine=i686-pc - os=-mingw32 - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - xscale-* | xscalee[bl]-*) - basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - none) - basic_machine=none-none - os=-none + xps-unknown | xps100-unknown) + cpu=xps100 + vendor=honeywell ;; -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond + # Here we normalize CPU types with a missing or matching vendor + armh-unknown | armh-alt) + cpu=armv7l + vendor=alt + basic_os=${basic_os:-linux-gnueabihf} ;; - op50n) - basic_machine=hppa1.1-oki + dpx20-unknown | dpx20-bull) + cpu=rs6000 + vendor=bull + basic_os=${basic_os:-bosx} ;; - op60c) - basic_machine=hppa1.1-oki + + # Here we normalize CPU types irrespective of the vendor + amd64-*) + cpu=x86_64 ;; - romp) - basic_machine=romp-ibm + blackfin-*) + cpu=bfin + basic_os=linux ;; - mmix) - basic_machine=mmix-knuth + c54x-*) + cpu=tic54x ;; - rs6000) - basic_machine=rs6000-ibm + c55x-*) + cpu=tic55x ;; - vax) - basic_machine=vax-dec + c6x-*) + cpu=tic6x ;; - pdp11) - basic_machine=pdp11-dec + e500v[12]-*) + cpu=powerpc + basic_os=${basic_os}"spe" ;; - we32k) - basic_machine=we32k-att + mips3*-*) + cpu=mips64 ;; - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown + ms1-*) + cpu=mt ;; - cydra) - basic_machine=cydra-cydrome + m68knommu-*) + cpu=m68k + basic_os=linux ;; - orion) - basic_machine=orion-highlevel + m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) + cpu=s12z ;; - orion105) - basic_machine=clipper-highlevel + openrisc-*) + cpu=or32 ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple + parisc-*) + cpu=hppa + basic_os=linux ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + cpu=i586 ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. + pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) + cpu=i686 ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + cpu=i686 + ;; + pentium4-*) + cpu=i786 + ;; + pc98-*) + cpu=i386 + ;; + ppc-* | ppcbe-*) + cpu=powerpc + ;; + ppcle-* | powerpclittle-*) + cpu=powerpcle + ;; + ppc64-*) + cpu=powerpc64 + ;; + ppc64le-* | powerpc64little-*) + cpu=powerpc64le + ;; + sb1-*) + cpu=mipsisa64sb1 + ;; + sb1el-*) + cpu=mipsisa64sb1el + ;; + sh5e[lb]-*) + cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` + ;; + spur-*) + cpu=spur + ;; + strongarm-* | thumb-*) + cpu=arm + ;; + tx39-*) + cpu=mipstx39 + ;; + tx39el-*) + cpu=mipstx39el + ;; + x64-*) + cpu=x86_64 + ;; + xscale-* | xscalee[bl]-*) + cpu=`echo "$cpu" | sed 's/^xscale/arm/'` + ;; + arm64-* | aarch64le-*) + cpu=aarch64 + ;; + + # Recognize the canonical CPU Types that limit and/or modify the + # company names they are paired with. + cr16-*) + basic_os=${basic_os:-elf} + ;; + crisv32-* | etraxfs*-*) + cpu=crisv32 + vendor=axis + ;; + cris-* | etrax*-*) + cpu=cris + vendor=axis + ;; + crx-*) + basic_os=${basic_os:-elf} + ;; + neo-tandem) + cpu=neo + vendor=tandem + ;; + nse-tandem) + cpu=nse + vendor=tandem + ;; + nsr-tandem) + cpu=nsr + vendor=tandem + ;; + nsv-tandem) + cpu=nsv + vendor=tandem + ;; + nsx-tandem) + cpu=nsx + vendor=tandem + ;; + mipsallegrexel-sony) + cpu=mipsallegrexel + vendor=sony + ;; + tile*-*) + basic_os=${basic_os:-linux-gnu} + ;; + *) - echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 - exit 1 + # Recognize the canonical CPU types that are allowed with any + # company name. + case $cpu in + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | abacus \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ + | alphapca5[67] | alpha64pca5[67] \ + | am33_2.0 \ + | amdgcn \ + | arc | arceb | arc32 | arc64 \ + | arm | arm[lb]e | arme[lb] | armv* \ + | avr | avr32 \ + | asmjs \ + | ba \ + | be32 | be64 \ + | bfin | bpf | bs2000 \ + | c[123]* | c30 | [cjt]90 | c4x \ + | c8051 | clipper | craynv | csky | cydra \ + | d10v | d30v | dlx | dsp16xx \ + | e2k | elxsi | epiphany \ + | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ + | h8300 | h8500 \ + | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i*86 | i860 | i960 | ia16 | ia64 \ + | ip2k | iq2000 \ + | k1om \ + | le32 | le64 \ + | lm32 \ + | loongarch32 | loongarch64 | loongarchx32 \ + | m32c | m32r | m32rle \ + | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ + | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ + | m88110 | m88k | maxq | mb | mcore | mep | metag \ + | microblaze | microblazeel \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64eb | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa32r3 | mipsisa32r3el \ + | mipsisa32r5 | mipsisa32r5el \ + | mipsisa32r6 | mipsisa32r6el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64r3 | mipsisa64r3el \ + | mipsisa64r5 | mipsisa64r5el \ + | mipsisa64r6 | mipsisa64r6el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ + | mipstx39 | mipstx39el \ + | mmix \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nfp \ + | nios | nios2 | nios2eb | nios2el \ + | none | np1 | ns16k | ns32k | nvptx \ + | open8 \ + | or1k* \ + | or32 \ + | orion \ + | picochip \ + | pdp10 | pdp11 | pj | pjl | pn | power \ + | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ + | pru \ + | pyramid \ + | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ + | rl78 | romp | rs6000 | rx \ + | s390 | s390x \ + | score \ + | sh | shl \ + | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ + | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ + | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ + | spu \ + | tahoe \ + | thumbv7* \ + | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ + | tron \ + | ubicom32 \ + | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ + | vax \ + | visium \ + | w65 \ + | wasm32 | wasm64 \ + | we32k \ + | x86 | x86_64 | xc16x | xgate | xps100 \ + | xstormy16 | xtensa* \ + | ymp \ + | z8k | z80) + ;; + + *) + echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2 + exit 1 + ;; + esac ;; esac # Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` +case $vendor in + digital*) + vendor=dec ;; - *-commodore*) - basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` + commodore*) + vendor=cbm ;; *) ;; @@ -1334,203 +1306,215 @@ esac # Decode manufacturer-specific aliases for certain operating systems. -if [ x"$os" != x"" ] +if test x$basic_os != x then + +# First recognize some ad-hoc cases, or perhaps split kernel-os, or else just +# set os. +case $basic_os in + gnu/linux*) + kernel=linux + os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` + ;; + os2-emx) + kernel=os2 + os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` + ;; + nto-qnx*) + kernel=nto + os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` + ;; + *-*) + # shellcheck disable=SC2162 + saved_IFS=$IFS + IFS="-" read kernel os <&2 - exit 1 + # No normalization, but not necessarily accepted, that comes below. ;; esac + else # Here we handle the default operating systems that come with various machines. @@ -1543,258 +1527,363 @@ else # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. -case $basic_machine in +kernel= +case $cpu-$vendor in score-*) - os=-elf + os=elf ;; spu-*) - os=-elf + os=elf ;; *-acorn) - os=-riscix1.2 + os=riscix1.2 ;; arm*-rebel) - os=-linux + kernel=linux + os=gnu ;; arm*-semi) - os=-aout + os=aout ;; c4x-* | tic4x-*) - os=-coff + os=coff ;; c8051-*) - os=-elf + os=elf + ;; + clipper-intergraph) + os=clix ;; hexagon-*) - os=-elf + os=elf ;; tic54x-*) - os=-coff + os=coff ;; tic55x-*) - os=-coff + os=coff ;; tic6x-*) - os=-coff + os=coff ;; # This must come before the *-dec entry. pdp10-*) - os=-tops20 + os=tops20 ;; pdp11-*) - os=-none + os=none ;; *-dec | vax-*) - os=-ultrix4.2 + os=ultrix4.2 ;; m68*-apollo) - os=-domain + os=domain ;; i386-sun) - os=-sunos4.0.2 + os=sunos4.0.2 ;; m68000-sun) - os=-sunos3 + os=sunos3 ;; m68*-cisco) - os=-aout + os=aout ;; mep-*) - os=-elf + os=elf ;; mips*-cisco) - os=-elf + os=elf ;; mips*-*) - os=-elf + os=elf ;; or32-*) - os=-coff + os=coff ;; *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 + os=sysv3 ;; sparc-* | *-sun) - os=-sunos4.1.1 + os=sunos4.1.1 ;; pru-*) - os=-elf + os=elf ;; *-be) - os=-beos + os=beos ;; *-ibm) - os=-aix + os=aix ;; *-knuth) - os=-mmixware + os=mmixware ;; *-wec) - os=-proelf + os=proelf ;; *-winbond) - os=-proelf + os=proelf ;; *-oki) - os=-proelf + os=proelf ;; *-hp) - os=-hpux + os=hpux ;; *-hitachi) - os=-hiux + os=hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv + os=sysv ;; *-cbm) - os=-amigaos + os=amigaos ;; *-dg) - os=-dgux + os=dgux ;; *-dolphin) - os=-sysv3 + os=sysv3 ;; m68k-ccur) - os=-rtu + os=rtu ;; m88k-omron*) - os=-luna + os=luna ;; *-next) - os=-nextstep + os=nextstep ;; *-sequent) - os=-ptx + os=ptx ;; *-crds) - os=-unos + os=unos ;; *-ns) - os=-genix + os=genix ;; i370-*) - os=-mvs + os=mvs ;; *-gould) - os=-sysv + os=sysv ;; *-highlevel) - os=-bsd + os=bsd ;; *-encore) - os=-bsd + os=bsd ;; *-sgi) - os=-irix + os=irix ;; *-siemens) - os=-sysv4 + os=sysv4 ;; *-masscomp) - os=-rtu + os=rtu ;; f30[01]-fujitsu | f700-fujitsu) - os=-uxpv + os=uxpv ;; *-rom68k) - os=-coff + os=coff ;; *-*bug) - os=-coff + os=coff ;; *-apple) - os=-macos + os=macos ;; *-atari*) - os=-mint + os=mint + ;; + *-wrs) + os=vxworks ;; *) - os=-none + os=none ;; esac + fi +# Now, validate our (potentially fixed-up) OS. +case $os in + # Sometimes we do "kernel-libc", so those need to count as OSes. + musl* | newlib* | relibc* | uclibc*) + ;; + # Likewise for "kernel-abi" + eabi* | gnueabi*) + ;; + # VxWorks passes extra cpu info in the 4th filed. + simlinux | simwindows | spe) + ;; + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. + gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ + | hiux* | abug | nacl* | netware* | windows* \ + | os9* | macos* | osx* | ios* \ + | mpw* | magic* | mmixware* | mon960* | lnews* \ + | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ + | aos* | aros* | cloudabi* | sortix* | twizzler* \ + | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ + | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ + | mirbsd* | netbsd* | dicos* | openedition* | ose* \ + | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \ + | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ + | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ + | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ + | udi* | lites* | ieee* | go32* | aux* | hcos* \ + | chorusrdb* | cegcc* | glidix* | serenity* \ + | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ + | midipix* | mingw32* | mingw64* | mint* \ + | uxpv* | beos* | mpeix* | udk* | moxiebox* \ + | interix* | uwin* | mks* | rhapsody* | darwin* \ + | openstep* | oskit* | conix* | pw32* | nonstopux* \ + | storm-chaos* | tops10* | tenex* | tops20* | its* \ + | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ + | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ + | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ + | skyos* | haiku* | rdos* | toppers* | drops* | es* \ + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ + | fiwix* ) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + ;; + none) + ;; + *) + echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 + exit 1 + ;; +esac + +# As a final step for OS-related things, validate the OS-kernel combination +# (given a valid OS), if there is a kernel. +case $kernel-$os in + linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ + | linux-musl* | linux-relibc* | linux-uclibc* ) + ;; + uclinux-uclibc* ) + ;; + -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) + # These are just libc implementations, not actual OSes, and thus + # require a kernel. + echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 + exit 1 + ;; + kfreebsd*-gnu* | kopensolaris*-gnu*) + ;; + vxworks-simlinux | vxworks-simwindows | vxworks-spe) + ;; + nto-qnx*) + ;; + os2-emx) + ;; + *-eabi* | *-gnueabi*) + ;; + -*) + # Blank kernel with real OS is always fine. + ;; + *-*) + echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 + exit 1 + ;; +esac + # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) +case $vendor in + unknown) + case $cpu-$os in + *-riscix*) vendor=acorn ;; - -sunos*) + *-sunos*) vendor=sun ;; - -cnk*|-aix*) + *-cnk* | *-aix*) vendor=ibm ;; - -beos*) + *-beos*) vendor=be ;; - -hpux*) + *-hpux*) vendor=hp ;; - -mpeix*) + *-mpeix*) vendor=hp ;; - -hiux*) + *-hiux*) vendor=hitachi ;; - -unos*) + *-unos*) vendor=crds ;; - -dgux*) + *-dgux*) vendor=dg ;; - -luna*) + *-luna*) vendor=omron ;; - -genix*) + *-genix*) vendor=ns ;; - -mvs* | -opened*) + *-clix*) + vendor=intergraph + ;; + *-mvs* | *-opened*) vendor=ibm ;; - -os400*) + *-os400*) vendor=ibm ;; - -ptx*) + s390-* | s390x-*) + vendor=ibm + ;; + *-ptx*) vendor=sequent ;; - -tpf*) + *-tpf*) vendor=ibm ;; - -vxsim* | -vxworks* | -windiss*) + *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; - -aux*) + *-aux*) vendor=apple ;; - -hms*) + *-hms*) vendor=hitachi ;; - -mpw* | -macos*) + *-mpw* | *-macos*) vendor=apple ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; - -vos*) + *-vos*) vendor=stratus ;; esac - basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` ;; esac -echo "$basic_machine$os" +echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: -# eval: (add-hook 'write-file-functions 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" diff --git a/build-aux/depcomp b/build-aux/depcomp index 6b39162..715e343 100755 --- a/build-aux/depcomp +++ b/build-aux/depcomp @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/build-aux/missing b/build-aux/missing index 8d0eaad..1fe1611 100755 --- a/build-aux/missing +++ b/build-aux/missing @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify diff --git a/build-aux/test-driver b/build-aux/test-driver index 9759384..be73b80 100755 --- a/build-aux/test-driver +++ b/build-aux/test-driver @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 2011-2020 Free Software Foundation, Inc. +# Copyright (C) 2011-2021 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -105,8 +105,11 @@ trap "st=130; $do_exit" 2 trap "st=141; $do_exit" 13 trap "st=143; $do_exit" 15 -# Test script is run here. -"$@" >$log_file 2>&1 +# Test script is run here. We create the file first, then append to it, +# to ameliorate tests themselves also writing to the log file. Our tests +# don't, but others can (automake bug#35762). +: >"$log_file" +"$@" >>"$log_file" 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then @@ -128,7 +131,7 @@ esac # know whether the test passed or failed simply by looking at the '.log' # file, without the need of also peaking into the corresponding '.trs' # file (automake bug#11814). -echo "$res $test_name (exit status: $estatus)" >>$log_file +echo "$res $test_name (exit status: $estatus)" >>"$log_file" # Report outcome to console. echo "${col}${res}${std}: $test_name" diff --git a/config.h.in b/config.h.in index 6b0e5a5..9c5c948 100644 --- a/config.h.in +++ b/config.h.in @@ -338,8 +338,7 @@ may be supplied by this distribution. */ #undef HAVE_ALLOCA -/* Define to 1 if you have and it should be used (not on Ultrix). - */ +/* Define to 1 if works. */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the header file. */ @@ -860,9 +859,6 @@ /* Define to 1 if you have the `memmove' function. */ #undef HAVE_MEMMOVE -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - /* Define to 1 if you have the header file. */ #undef HAVE_MINIX_CONFIG_H @@ -1064,6 +1060,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_EXT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H @@ -1076,7 +1075,7 @@ /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP -/* Define to 1 if you have the `strerror_r' function. */ +/* Define if you have `strerror_r'. */ #undef HAVE_STRERROR_R /* Define to 1 if you have the header file. */ @@ -1836,9 +1835,9 @@ /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define if the block counts reported by statfs may be truncated to 2GB and @@ -1874,7 +1873,9 @@ /* Define if statvfs64 should be preferred over statvfs. */ #undef STAT_STATVFS64 -/* Define to 1 if you have the ANSI C header files. */ +/* Define to 1 if all of the C90 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Define to 1 if strerror_r returns char *. */ @@ -1895,7 +1896,8 @@ /* Define to 1 if time_t is signed. */ #undef TIME_T_IS_SIGNED -/* Define to 1 if you can safely include both and . */ +/* Define to 1 if you can safely include both and . This + macro is obsolete. */ #undef TIME_WITH_SYS_TIME /* Define to 1 if your declares `struct tm'. */ diff --git a/configure b/configure index e5442c7..468bcec 100755 --- a/configure +++ b/configure @@ -1,9 +1,10 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for monitoring-plugins 2.3.5. +# Generated by GNU Autoconf 2.71 for monitoring-plugins 2.4.0. # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Inc. # # # This configure script is free software; the Free Software Foundation @@ -14,14 +15,16 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -31,46 +34,46 @@ esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -79,13 +82,6 @@ if test "${PATH_SEPARATOR+set}" != set; then fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -94,8 +90,12 @@ case $0 in #(( for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -107,30 +107,10 @@ if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. @@ -152,20 +132,22 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + as_bourne_compatible="as_nop=: +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else +else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( @@ -185,12 +167,15 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) +then : -else +else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 +blah=\$(echo \$(echo blah)) +test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO @@ -205,30 +190,38 @@ test \$(( 1 + 1 )) = 2 || exit 1 PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" - if (eval "$as_required") 2>/dev/null; then : + if (eval "$as_required") 2>/dev/null +then : as_have_required=yes -else +else $as_nop as_have_required=no fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null +then : -else +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base + as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null +then : break 2 fi fi @@ -236,14 +229,21 @@ fi esac as_found=false done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi +fi - if test "x$CONFIG_SHELL" != x; then : + if test "x$CONFIG_SHELL" != x +then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also @@ -261,18 +261,19 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." + if test x$as_have_required = xno +then : + printf "%s\n" "$0: This script requires a shell more modern than all" + printf "%s\n" "$0: the shells that I found on your system." + if test ${ZSH_VERSION+y} ; then + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." @@ -299,6 +300,7 @@ as_fn_unset () } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -316,6 +318,14 @@ as_fn_exit () as_fn_set_status $1 exit $1 } # as_fn_exit +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -330,7 +340,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -339,7 +349,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -378,12 +388,13 @@ as_fn_executable_p () # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -395,18 +406,27 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -418,9 +438,9 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -447,7 +467,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -491,7 +511,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall @@ -505,6 +525,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits exit } + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -518,6 +542,13 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -587,53 +618,48 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='monitoring-plugins' PACKAGE_TARNAME='monitoring-plugins' -PACKAGE_VERSION='2.3.5' -PACKAGE_STRING='monitoring-plugins 2.3.5' +PACKAGE_VERSION='2.4.0' +PACKAGE_STRING='monitoring-plugins 2.4.0' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="NPTest.pm" -ac_header_list= # Factoring default headers for most tests. ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include +#include +#ifdef HAVE_STDIO_H +# include #endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif #endif #ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif # include #endif -#ifdef HAVE_STRINGS_H -# include -#endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif #ifdef HAVE_UNISTD_H # include #endif" +ac_header_c_list= gl_use_threads_default= gl_use_winpthreads_default= gt_needs= -ac_func_list= +ac_func_c_list= with_openssl_default='no' LIB_CRYPTO= gl_floorf_required=plain @@ -2012,6 +2038,8 @@ ALLOCA GL_COND_LIBTOOL_FALSE GL_COND_LIBTOOL_TRUE PERLMODS_DIR +localedir_c_make +localedir_c POSUB LTLIBINTL LIBINTL @@ -2171,6 +2199,9 @@ AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V +CSCOPE +ETAGS +CTAGS am__untar am__tar AMTAR @@ -2378,8 +2409,6 @@ do *) ac_optarg=yes ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; @@ -2420,9 +2449,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -2446,9 +2475,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -2659,9 +2688,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -2675,9 +2704,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -2721,9 +2750,9 @@ Try \`$0 --help' for more information" *) # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; @@ -2739,7 +2768,7 @@ if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -2803,7 +2832,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | +printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -2860,7 +2889,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures monitoring-plugins 2.3.5 to adapt to many kinds of systems. +\`configure' configures monitoring-plugins 2.4.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -2932,7 +2961,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of monitoring-plugins 2.3.5:";; + short | recursive ) echo "Configuration of monitoring-plugins 2.4.0:";; esac cat <<\_ACEOF @@ -3080,9 +3109,9 @@ if test "$ac_init_help" = "recursive"; then case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -3110,7 +3139,8 @@ esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive @@ -3118,7 +3148,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix echo && $SHELL "$ac_srcdir/configure" --help=recursive else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -3127,10 +3157,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -monitoring-plugins configure 2.3.5 -generated by GNU Autoconf 2.69 +monitoring-plugins configure 2.4.0 +generated by GNU Autoconf 2.71 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -3147,14 +3177,14 @@ fi ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -3162,14 +3192,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -3186,26 +3217,28 @@ fi ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile @@ -3222,7 +3255,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -3230,14 +3263,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -3247,62 +3281,20 @@ fi } # ac_fn_c_try_cpp -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -3310,17 +3302,18 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -3341,11 +3334,12 @@ fi ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. @@ -3353,16 +3347,9 @@ else #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif + which can conflict with char $2 (); below. */ +#include #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -3380,114 +3367,71 @@ choke me #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that +# executables *can* be run. +ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } +then : + ac_retval=0 +else $as_nop + printf "%s\n" "$as_me: program exited with status $ac_status" >&5 + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -} # ac_fn_c_check_header_mongrel + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- @@ -3496,17 +3440,18 @@ fi ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof ($2)) return 0; @@ -3514,12 +3459,13 @@ if (sizeof ($2)) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof (($2))) return 0; @@ -3527,27 +3473,28 @@ if (sizeof (($2))) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop eval "$3=yes" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type -# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES -# --------------------------------------------- +# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR +# ------------------------------------------------------------------ # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_c_check_decl () +# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. +ac_fn_check_decl () { ac_save_ac_compile="$ac_compile" if test -n "$ac_compile_for_check_decl"; then @@ -3555,17 +3502,20 @@ ac_fn_c_check_decl () fi as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +printf %s "checking whether $as_decl_name is declared... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + eval ac_save_FLAGS=\$$6 + as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { #ifndef $as_decl_name #ifdef __cplusplus @@ -3579,20 +3529,23 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + eval $6=\$ac_save_FLAGS + fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno ac_compile="$ac_save_ac_compile" -} # ac_fn_c_check_decl +} # ac_fn_check_decl # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES # ---------------------------------------------------- @@ -3601,16 +3554,17 @@ $as_echo "$ac_res" >&6; } ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -$as_echo_n "checking for $2.$3... " >&6; } -if eval \${$4+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +printf %s "checking for $2.$3... " >&6; } +if eval test \${$4+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main () +main (void) { static $2 ac_aggr; if (ac_aggr.$3) @@ -3619,14 +3573,15 @@ return 0; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$4=yes" -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main () +main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) @@ -3635,18 +3590,19 @@ return 0; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$4=yes" -else +else $as_nop eval "$4=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$4 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member @@ -3665,7 +3621,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; @@ -3675,14 +3631,15 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -3692,9 +3649,10 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid; break -else +else $as_nop as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= @@ -3702,14 +3660,14 @@ else fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; @@ -3719,14 +3677,15 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; @@ -3736,9 +3695,10 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=$ac_mid; break -else +else $as_nop as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= @@ -3746,14 +3706,14 @@ else fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else +else $as_nop ac_lo= ac_hi= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val @@ -3761,7 +3721,7 @@ while test "x$ac_lo" != "x$ac_hi"; do /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -3771,12 +3731,13 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid -else +else $as_nop as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; @@ -3786,12 +3747,12 @@ esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } +static long int longval (void) { return $2; } +static unsigned long int ulongval (void) { return $2; } #include #include int -main () +main (void) { FILE *f = fopen ("conftest.val", "w"); @@ -3819,9 +3780,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : echo >>conftest.val; read $3 config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by monitoring-plugins $as_me 2.3.5, which was -generated by GNU Autoconf 2.69. Invocation command line was +It was created by monitoring-plugins $as_me 2.4.0, which was +generated by GNU Autoconf 2.71. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -3873,8 +3855,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS @@ -3909,7 +3895,7 @@ do | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; @@ -3944,11 +3930,13 @@ done # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? + # Sanitize IFS. + IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo - $as_echo "## ---------------- ## + printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo @@ -3959,8 +3947,8 @@ trap 'exit_status=$? case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -3984,7 +3972,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -3992,14 +3980,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## + printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo @@ -4007,15 +3995,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - $as_echo "## ----------- ## + printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo @@ -4023,8 +4011,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; echo fi test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" + printf "%s\n" "$as_me: caught signal $ac_signal" + printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && @@ -4038,63 +4026,48 @@ ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h -$as_echo "/* confdefs.h */" > confdefs.h +printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac + ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" + +for ac_site_file in $ac_site_files do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} + case $ac_site_file in #( + */*) : + ;; #( + *) : + ac_site_file=./$ac_site_file ;; +esac + if test -f "$ac_site_file" && test -r "$ac_site_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi @@ -4104,92 +4077,501 @@ if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi -as_fn_append ac_header_list " wchar.h" -as_fn_append ac_header_list " minix/config.h" +# Test code for whether the C compiler supports C89 (global declarations) +ac_c_conftest_c89_globals=' +/* Does the compiler advertise C89 conformance? + Do not test the value of __STDC__, because some compilers set it to 0 + while being otherwise adequately conformant. */ +#if !defined __STDC__ +# error "Compiler does not advertise C89 conformance" +#endif + +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ +struct buf { int x; }; +struct buf * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not \xHH hex character constants. + These do not provoke an error unfortunately, instead are silently treated + as an "x". The following induces an error, until -std is added to get + proper ANSI mode. Curiously \x00 != x always comes out true, for an + array size at least. It is necessary to write \x00 == 0 to get something + that is true only with -std. */ +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) '\''x'\'' +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), + int, int);' + +# Test code for whether the C compiler supports C89 (body of main). +ac_c_conftest_c89_main=' +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); +' + +# Test code for whether the C compiler supports C99 (global declarations) +ac_c_conftest_c99_globals=' +// Does the compiler advertise C99 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L +# error "Compiler does not advertise C99 conformance" +#endif + +#include +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); + +// Check varargs macros. These examples are taken from C99 6.10.3.5. +// dprintf is used instead of fprintf to avoid needing to declare +// FILE and stderr. +#define debug(...) dprintf (2, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} + +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + #error "your preprocessor is broken" +#endif +#if BIG_OK +#else + #error "your preprocessor is broken" +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; + +struct incomplete_array +{ + int datasize; + double data[]; +}; + +struct named_init { + int number; + const wchar_t *name; + double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ + // See if C++-style comments work. + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) + continue; + return 0; +} + +// Check varargs and va_copy. +static bool +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); + + const char *str = ""; + int number = 0; + float fnumber = 0; + + while (*format) + { + switch (*format++) + { + case '\''s'\'': // string + str = va_arg (args_copy, const char *); + break; + case '\''d'\'': // int + number = va_arg (args_copy, int); + break; + case '\''f'\'': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); + + return *str && number && fnumber; +} +' + +# Test code for whether the C compiler supports C99 (body of main). +ac_c_conftest_c99_main=' + // Check bool. + _Bool success = false; + success |= (argc != 0); + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); + test_varargs_macros (); + + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' + || dynamic_array[ni.number - 1] != 543); +' + +# Test code for whether the C compiler supports C11 (global declarations) +ac_c_conftest_c11_globals=' +// Does the compiler advertise C11 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L +# error "Compiler does not advertise C11 conformance" +#endif + +// Check _Alignas. +char _Alignas (double) aligned_as_double; +char _Alignas (0) no_special_alignment; +extern char aligned_as_int; +char _Alignas (0) _Alignas (int) aligned_as_int; + +// Check _Alignof. +enum +{ + int_alignment = _Alignof (int), + int_array_alignment = _Alignof (int[100]), + char_alignment = _Alignof (char) +}; +_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); + +// Check _Noreturn. +int _Noreturn does_not_return (void) { for (;;) continue; } + +// Check _Static_assert. +struct test_static_assert +{ + int x; + _Static_assert (sizeof (int) <= sizeof (long int), + "_Static_assert does not work in struct"); + long int y; +}; + +// Check UTF-8 literals. +#define u8 syntax error! +char const utf8_literal[] = u8"happens to be ASCII" "another string"; + +// Check duplicate typedefs. +typedef long *long_ptr; +typedef long int *long_ptr; +typedef long_ptr long_ptr; + +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. +struct anonymous +{ + union { + struct { int i; int j; }; + struct { int k; long int l; } w; + }; + int m; +} v1; +' + +# Test code for whether the C compiler supports C11 (body of main). +ac_c_conftest_c11_main=' + _Static_assert ((offsetof (struct anonymous, i) + == offsetof (struct anonymous, w.k)), + "Anonymous union alignment botch"); + v1.i = 2; + v1.w.k = 5; + ok |= v1.i != 5; +' + +# Test code for whether the C compiler supports C11 (complete). +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} +${ac_c_conftest_c11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + ${ac_c_conftest_c11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C99 (complete). +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + return ok; +} +" + +# Test code for whether the C compiler supports C89 (complete). +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + return ok; +} +" + +as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" +as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" +as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" +as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" +as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" +as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" +as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" +as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" +as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" +as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" +as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" +as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" gt_needs="$gt_needs need-ngettext" -as_fn_append ac_header_list " arpa/inet.h" -as_fn_append ac_header_list " features.h" -as_fn_append ac_header_list " sys/socket.h" -as_fn_append ac_func_list " btowc" -as_fn_append ac_func_list " _set_invalid_parameter_handler" -as_fn_append ac_header_list " unistd.h" -as_fn_append ac_func_list " fcntl" -as_fn_append ac_func_list " symlink" -as_fn_append ac_header_list " stdio_ext.h" -as_fn_append ac_func_list " fpurge" -as_fn_append ac_func_list " __fpurge" -as_fn_append ac_func_list " __freading" -as_fn_append ac_header_list " sys/stat.h" -as_fn_append ac_header_list " sys/param.h" -as_fn_append ac_header_list " sys/vfs.h" -as_fn_append ac_header_list " sys/fs_types.h" -as_fn_append ac_header_list " netdb.h" -as_fn_append ac_header_list " netinet/in.h" -as_fn_append ac_func_list " getdelim" -as_fn_append ac_func_list " getdtablesize" +as_fn_append ac_header_c_list " arpa/inet.h arpa_inet_h HAVE_ARPA_INET_H" +as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H" +as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" +as_fn_append ac_func_c_list " btowc HAVE_BTOWC" +as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER" +as_fn_append ac_func_c_list " fcntl HAVE_FCNTL" +as_fn_append ac_func_c_list " symlink HAVE_SYMLINK" +as_fn_append ac_header_c_list " stdio_ext.h stdio_ext_h HAVE_STDIO_EXT_H" +as_fn_append ac_func_c_list " fpurge HAVE_FPURGE" +as_fn_append ac_func_c_list " __fpurge HAVE___FPURGE" +as_fn_append ac_func_c_list " __freading HAVE___FREADING" +as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" +as_fn_append ac_header_c_list " sys/vfs.h sys_vfs_h HAVE_SYS_VFS_H" +as_fn_append ac_header_c_list " sys/fs_types.h sys_fs_types_h HAVE_SYS_FS_TYPES_H" +as_fn_append ac_header_c_list " netdb.h netdb_h HAVE_NETDB_H" +as_fn_append ac_header_c_list " netinet/in.h netinet_in_h HAVE_NETINET_IN_H" +as_fn_append ac_func_c_list " getdelim HAVE_GETDELIM" +as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE" gl_getopt_required=GNU -as_fn_append ac_header_list " getopt.h" -as_fn_append ac_header_list " sys/cdefs.h" -as_fn_append ac_func_list " getprogname" -as_fn_append ac_func_list " getexecname" -as_fn_append ac_header_list " threads.h" -as_fn_append ac_func_list " getuid" -as_fn_append ac_func_list " geteuid" -as_fn_append ac_func_list " getresuid" -as_fn_append ac_func_list " getgid" -as_fn_append ac_func_list " getegid" -as_fn_append ac_func_list " getresgid" -as_fn_append ac_func_list " setresuid" -as_fn_append ac_func_list " setreuid" -as_fn_append ac_func_list " seteuid" -as_fn_append ac_func_list " setresgid" -as_fn_append ac_func_list " setregid" -as_fn_append ac_func_list " setegid" -as_fn_append ac_header_list " limits.h" -as_fn_append ac_header_list " inttypes.h" -as_fn_append ac_header_list " sys/types.h" -as_fn_append ac_header_list " stdint.h" -as_fn_append ac_header_list " langinfo.h" -as_fn_append ac_header_list " xlocale.h" -as_fn_append ac_header_list " math.h" -as_fn_append ac_func_list " mbsinit" -as_fn_append ac_func_list " mbrtowc" -as_fn_append ac_header_list " sys/mman.h" -as_fn_append ac_func_list " mprotect" -as_fn_append ac_header_list " sys/statvfs.h" -as_fn_append ac_func_list " nl_langinfo" -as_fn_append ac_func_list " lstat" -as_fn_append ac_header_list " malloc.h" -as_fn_append ac_func_list " isblank" -as_fn_append ac_func_list " iswctype" -as_fn_append ac_func_list " setenv" -as_fn_append ac_func_list " snprintf" -as_fn_append ac_header_list " sys/time.h" -as_fn_append ac_header_list " stdalign.h" -as_fn_append ac_header_list " stdbool.h" -as_fn_append ac_header_list " stdckdint.h" -as_fn_append ac_header_list " strings.h" -as_fn_append ac_header_list " sys/uio.h" -as_fn_append ac_func_list " localtime_r" -as_fn_append ac_func_list " timegm" -as_fn_append ac_func_list " vasnprintf" -as_fn_append ac_header_list " crtdefs.h" -as_fn_append ac_func_list " wcrtomb" -as_fn_append ac_func_list " iswcntrl" -as_fn_append ac_header_list " wctype.h" +as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H" +as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H" +as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME" +as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME" +as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H" +as_fn_append ac_func_c_list " getuid HAVE_GETUID" +as_fn_append ac_func_c_list " geteuid HAVE_GETEUID" +as_fn_append ac_func_c_list " getresuid HAVE_GETRESUID" +as_fn_append ac_func_c_list " getgid HAVE_GETGID" +as_fn_append ac_func_c_list " getegid HAVE_GETEGID" +as_fn_append ac_func_c_list " getresgid HAVE_GETRESGID" +as_fn_append ac_func_c_list " setresuid HAVE_SETRESUID" +as_fn_append ac_func_c_list " setreuid HAVE_SETREUID" +as_fn_append ac_func_c_list " seteuid HAVE_SETEUID" +as_fn_append ac_func_c_list " setresgid HAVE_SETRESGID" +as_fn_append ac_func_c_list " setregid HAVE_SETREGID" +as_fn_append ac_func_c_list " setegid HAVE_SETEGID" +as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H" +as_fn_append ac_header_c_list " langinfo.h langinfo_h HAVE_LANGINFO_H" +as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H" +as_fn_append ac_header_c_list " math.h math_h HAVE_MATH_H" +as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT" +as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC" +as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H" +as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT" +as_fn_append ac_header_c_list " sys/statvfs.h sys_statvfs_h HAVE_SYS_STATVFS_H" +as_fn_append ac_func_c_list " nl_langinfo HAVE_NL_LANGINFO" +as_fn_append ac_func_c_list " lstat HAVE_LSTAT" +as_fn_append ac_header_c_list " malloc.h malloc_h HAVE_MALLOC_H" +as_fn_append ac_func_c_list " isblank HAVE_ISBLANK" +as_fn_append ac_func_c_list " iswctype HAVE_ISWCTYPE" +as_fn_append ac_func_c_list " setenv HAVE_SETENV" +as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF" +as_fn_append ac_header_c_list " stdalign.h stdalign_h HAVE_STDALIGN_H" +as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H" +as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H" +as_fn_append ac_header_c_list " sys/uio.h sys_uio_h HAVE_SYS_UIO_H" +as_fn_append ac_func_c_list " localtime_r HAVE_LOCALTIME_R" +as_fn_append ac_func_c_list " timegm HAVE_TIMEGM" +as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF" +as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H" +as_fn_append ac_func_c_list " wcrtomb HAVE_WCRTOMB" +as_fn_append ac_func_c_list " iswcntrl HAVE_ISWCNTRL" +as_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H" + +# Auxiliary files required by this configure script. +ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh" + +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}/build-aux" + +# Search for a directory containing all of the required auxiliary files, +# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. +# If we don't find one directory that contains all the files we need, +# we report the set of missing files from the *first* directory in +# $ac_aux_dir_candidates and give up. +ac_missing_aux_files="" +ac_first_candidate=: +printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in $ac_aux_dir_candidates +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + as_found=: + + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 + ac_aux_dir_found=yes + ac_install_sh= + for ac_aux in $ac_aux_files + do + # As a special case, if "install-sh" is required, that requirement + # can be satisfied by any of "install-sh", "install.sh", or "shtool", + # and $ac_install_sh is set appropriately for whichever one is found. + if test x"$ac_aux" = x"install-sh" + then + if test -f "${as_dir}install-sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 + ac_install_sh="${as_dir}install-sh -c" + elif test -f "${as_dir}install.sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 + ac_install_sh="${as_dir}install.sh -c" + elif test -f "${as_dir}shtool"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 + ac_install_sh="${as_dir}shtool install -c" + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} install-sh" + else + break + fi + fi + else + if test -f "${as_dir}${ac_aux}"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" + else + break + fi + fi + fi + done + if test "$ac_aux_dir_found" = yes; then + ac_aux_dir="$as_dir" + break + fi + ac_first_candidate=false + + as_found=false +done +IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +fi + + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +if test -f "${ac_aux_dir}config.guess"; then + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" +fi +if test -f "${ac_aux_dir}config.sub"; then + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" +fi +if test -f "$ac_aux_dir/configure"; then + ac_configure="$SHELL ${ac_aux_dir}configure" +fi + # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -4200,12 +4582,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -4214,24 +4596,24 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in @@ -4241,11 +4623,12 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## @@ -4261,38 +4644,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_files="$ac_config_files gl/Makefile" -ac_aux_dir= -for ac_dir in build-aux "$srcdir"/build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - am__api_version='1.16' -# Find a good install program. We prefer a C program (faster), + + + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install @@ -4306,20 +4663,25 @@ am__api_version='1.16' # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in #(( + ./ | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; @@ -4329,13 +4691,13 @@ case $as_dir/ in #(( # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else @@ -4343,12 +4705,12 @@ case $as_dir/ in #(( echo one > conftest.one echo two > conftest.two mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi @@ -4364,7 +4726,7 @@ IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi - if test "${ac_cv_path_install+set}" = set; then + if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a @@ -4374,8 +4736,8 @@ fi INSTALL=$ac_install_sh fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -4385,8 +4747,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +printf %s "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' @@ -4440,8 +4802,8 @@ else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= @@ -4460,12 +4822,14 @@ test "$program_suffix" != NONE && # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` +program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` + # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` -if test x"${MISSING+set}" != xset; then + + if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL @@ -4473,8 +4837,8 @@ if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then @@ -4494,11 +4858,12 @@ if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else @@ -4506,11 +4871,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4521,11 +4890,11 @@ fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4534,11 +4903,12 @@ if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else @@ -4546,11 +4916,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4561,11 +4935,11 @@ fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -4573,8 +4947,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -4586,25 +4960,31 @@ fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 +printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${ac_cv_path_mkdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ + as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue + case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir ('*'coreutils) '* | \ + 'BusyBox '* | \ 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done @@ -4615,7 +4995,7 @@ IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then + if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a @@ -4625,18 +5005,19 @@ fi MKDIR_P="$ac_install_sh -d" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +printf "%s\n" "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else @@ -4644,11 +5025,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4659,24 +5044,25 @@ fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else +ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval test \${ac_cv_prog_make_${ac_make}_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @@ -4692,12 +5078,12 @@ esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } SET_MAKE= else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -4711,7 +5097,8 @@ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : +if test ${enable_silent_rules+y} +then : enableval=$enable_silent_rules; fi @@ -4721,12 +5108,13 @@ case $enable_silent_rules in # ((( *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +printf %s "checking whether $am_make supports nested variables... " >&6; } +if test ${am_cv_make_support_nested_variables+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -4738,8 +5126,8 @@ else am_cv_make_support_nested_variables=no fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' @@ -4771,17 +5159,13 @@ fi # Define the identity of the package. PACKAGE='monitoring-plugins' - VERSION='2.3.5' + VERSION='2.4.0' -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF +printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF +printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # Some tools Automake needs. @@ -4821,6 +5205,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' +# Variables for tags utilities; see am/tags.am +if test -z "$CTAGS"; then + CTAGS=ctags +fi + +if test -z "$ETAGS"; then + ETAGS=etags +fi + +if test -z "$CSCOPE"; then + CSCOPE=cscope +fi + + # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile @@ -4865,7 +5263,8 @@ END fi # Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : +if test ${enable_silent_rules+y} +then : enableval=$enable_silent_rules; fi @@ -4875,12 +5274,13 @@ case $enable_silent_rules in # ((( *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +printf %s "checking whether $am_make supports nested variables... " >&6; } +if test ${am_cv_make_support_nested_variables+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -4892,8 +5292,8 @@ else am_cv_make_support_nested_variables=no fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' @@ -4904,17 +5304,18 @@ fi AM_BACKSLASH='\' -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 -$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 +printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then : +if test ${enable_maintainer_mode+y} +then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval -else +else $as_nop USE_MAINTAINER_MODE=yes fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 -$as_echo "$USE_MAINTAINER_MODE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 +printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' @@ -4928,26 +5329,29 @@ fi ac_config_headers="$ac_config_headers config.h" -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; @@ -4966,21 +5370,22 @@ IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; @@ -5009,19 +5414,22 @@ RELEASE=1 extra_install_args="" # Check whether --with-nagios_user was given. -if test "${with_nagios_user+set}" = set; then : +if test ${with_nagios_user+y} +then : withval=$with_nagios_user; extra_install_args="-o $withval" fi # Check whether --with-nagios_group was given. -if test "${with_nagios_group+set}" = set; then : +if test ${with_nagios_group+y} +then : withval=$with_nagios_group; extra_install_args="$extra_install_args -g $withval" fi # Check whether --with-world_permissions was given. -if test "${with_world_permissions+set}" = set; then : +if test ${with_world_permissions+y} +then : withval=$with_world_permissions; fi @@ -5034,6 +5442,15 @@ INSTALL="$INSTALL $extra_install_args" INSTALL_STRIP_PROGRAM="$INSTALL_STRIP_PROGRAM $extra_install_args" + + + + + + + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5042,11 +5459,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5054,11 +5472,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5069,11 +5491,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5082,11 +5504,12 @@ if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -5094,11 +5517,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5109,11 +5536,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -5121,8 +5548,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -5135,11 +5562,12 @@ if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5147,11 +5575,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5162,11 +5594,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5175,11 +5607,12 @@ fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5188,15 +5621,19 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5212,18 +5649,18 @@ if test $ac_prog_rejected = yes; then # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5234,11 +5671,12 @@ if test -z "$CC"; then do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5246,11 +5684,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5261,11 +5703,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5278,11 +5720,12 @@ if test -z "$CC"; then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -5290,11 +5733,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5305,11 +5752,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5321,8 +5768,8 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -5334,11 +5781,12 @@ if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5346,11 +5794,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5361,11 +5813,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5374,11 +5826,12 @@ if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -5386,11 +5839,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5401,11 +5858,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -5413,8 +5870,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -5426,13 +5883,13 @@ fi fi -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do @@ -5442,7 +5899,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -5452,7 +5909,7 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done @@ -5460,7 +5917,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -5472,9 +5929,9 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +printf %s "checking whether the C compiler works... " >&6; } +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" @@ -5495,11 +5952,12 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, @@ -5516,7 +5974,7 @@ do # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -5532,44 +5990,46 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else +else $as_nop ac_file='' fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 +if test -z "$ac_file" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +printf %s "checking for C compiler default output file name... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with @@ -5583,15 +6043,15 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext @@ -5600,7 +6060,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; @@ -5612,8 +6072,8 @@ _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in @@ -5621,10 +6081,10 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in @@ -5632,39 +6092,40 @@ $as_echo "$ac_try_echo"; } >&5 *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +printf %s "checking for suffix of object files... " >&6; } +if test ${ac_cv_objext+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -5678,11 +6139,12 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in @@ -5691,31 +6153,32 @@ $as_echo "$ac_try_echo"; } >&5 break;; esac done -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -5725,29 +6188,33 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi -ac_test_CFLAGS=${CFLAGS+set} +ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no @@ -5756,57 +6223,60 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes -else +else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -5821,516 +6291,144 @@ else CFLAGS= fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 -$as_echo_n "checking for $CC option to enable C11 features... " >&6; } -if ${ac_cv_prog_cc_c11+:} false; then : - $as_echo_n "(cached) " >&6 -else +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - your preprocessor is broken; -#endif -#if BIG_OK -#else - your preprocessor is broken; -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\0'; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static bool -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str = ""; - int number = 0; - float fnumber = 0; - - while (*format) - { - switch (*format++) - { - case 's': // string - str = va_arg (args_copy, const char *); - break; - case 'd': // int - number = va_arg (args_copy, int); - break; - case 'f': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); - - return *str && number && fnumber; -} -// Check _Alignas. -char _Alignas (double) aligned_as_double; -char _Alignas (0) no_special_alignment; -extern char aligned_as_int; -char _Alignas (0) _Alignas (int) aligned_as_int; - -// Check _Alignof. -enum -{ - int_alignment = _Alignof (int), - int_array_alignment = _Alignof (int[100]), - char_alignment = _Alignof (char) -}; -_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); - -// Check _Noreturn. -int _Noreturn does_not_return (void) { for (;;) continue; } - -// Check _Static_assert. -struct test_static_assert -{ - int x; - _Static_assert (sizeof (int) <= sizeof (long int), - "_Static_assert does not work in struct"); - long int y; -}; - -// Check UTF-8 literals. -#define u8 syntax error! -char const utf8_literal[] = u8"happens to be ASCII" "another string"; - -// Check duplicate typedefs. -typedef long *long_ptr; -typedef long int *long_ptr; -typedef long_ptr long_ptr; - -// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. -struct anonymous -{ - union { - struct { int i; int j; }; - struct { int k; long int l; } w; - }; - int m; -} v1; - -int -main () -{ - - // Check bool. - _Bool success = false; - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - success &= test_varargs ("s, d' f .", "string", 65, 34.234); - test_varargs_macros (); - - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - - ni.number = 58; - - int dynamic_array[ni.number]; - dynamic_array[ni.number - 1] = 543; - - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); - - v1.i = 2; - v1.w.k = 5; - _Static_assert ((offsetof (struct anonymous, i) - == offsetof (struct anonymous, w.k)), - "Anonymous union alignment botch"); - - ; - return 0; -} +$ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_c11=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC - fi -# AC_CACHE_VAL -ac_prog_cc_stdc_options= -case "x$ac_cv_prog_cc_c11" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11" - CC=$CC$ac_prog_cc_stdc_options - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 -$as_echo "$ac_cv_prog_cc_c11" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c11" != xno; then : + +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 -$as_echo_n "checking for $CC option to enable C99 features... " >&6; } -if ${ac_cv_prog_cc_c99+:} false; then : - $as_echo_n "(cached) " >&6 -else +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - your preprocessor is broken; -#endif -#if BIG_OK -#else - your preprocessor is broken; -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\0'; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static bool -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str = ""; - int number = 0; - float fnumber = 0; - - while (*format) - { - switch (*format++) - { - case 's': // string - str = va_arg (args_copy, const char *); - break; - case 'd': // int - number = va_arg (args_copy, int); - break; - case 'f': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); - - return *str && number && fnumber; -} -int -main () -{ - - // Check bool. - _Bool success = false; - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - success &= test_varargs ("s, d' f .", "string", 65, 34.234); - test_varargs_macros (); - - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - - ni.number = 58; - - int dynamic_array[ni.number]; - dynamic_array[ni.number - 1] = 543; - - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); - - ; - return 0; -} +$ac_c_conftest_c99_program _ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99 +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_c99=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC - fi -# AC_CACHE_VAL -ac_prog_cc_stdc_options= -case "x$ac_cv_prog_cc_c99" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99" - CC=$CC$ac_prog_cc_stdc_options - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c99" != xno; then : + +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 -$as_echo_n "checking for $CC option to enable C89 features... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} +$ac_c_conftest_c89_program _ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_c89=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC - fi -# AC_CACHE_VAL -ac_prog_cc_stdc_options= -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89" - CC=$CC$ac_prog_cc_stdc_options - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : + +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 -else - ac_prog_cc_stdc=no - ac_cv_prog_cc_stdc=no fi - -fi - fi ac_ext=c @@ -6340,11 +6438,73 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 -$as_echo_n "checking whether the compiler is clang... " >&6; } -if ${gl_cv_compiler_clang+:} false; then : - $as_echo_n "(cached) " >&6 -else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +printf %s "checking whether $CC understands -c and -o together... " >&6; } +if test ${am_cv_prog_cc_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 +printf %s "checking whether the compiler is clang... " >&6; } +if test ${gl_cv_compiler_clang+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6353,7 +6513,7 @@ else #endif int -main () +main (void) { ; @@ -6361,23 +6521,25 @@ main () } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_compiler_clang=no -else +else $as_nop gl_cv_compiler_clang=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 -$as_echo "$gl_cv_compiler_clang" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 +printf "%s\n" "$gl_cv_compiler_clang" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 -$as_echo_n "checking for compiler option needed when checking for declarations... " >&6; } -if ${gl_cv_compiler_check_decl_option+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 +printf %s "checking for compiler option needed when checking for declarations... " >&6; } +if test ${gl_cv_compiler_check_decl_option+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $gl_cv_compiler_clang = yes; then save_ac_compile="$ac_compile" ac_compile="$ac_compile -Werror=implicit-function-declaration" @@ -6385,27 +6547,28 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' -else +else $as_nop gl_cv_compiler_check_decl_option=none fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_compile="$save_ac_compile" else gl_cv_compiler_check_decl_option=none fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 -$as_echo "$gl_cv_compiler_check_decl_option" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 +printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; } if test "x$gl_cv_compiler_check_decl_option" != xnone; then ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" else @@ -6416,8 +6579,8 @@ DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 -$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 +printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out @@ -6453,11 +6616,12 @@ esac fi done rm -f confinc.* confmf.* -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 -$as_echo "${_am_result}" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 +printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : +if test ${enable_dependency_tracking+y} +then : enableval=$enable_dependency_tracking; fi @@ -6478,11 +6642,12 @@ fi depcc="$CC" am_compiler_list= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CC_dependencies_compiler_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For @@ -6589,8 +6754,8 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if @@ -6605,46 +6770,225 @@ fi +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi +done + + + + + + + + +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : + +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h + +fi + + + + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test ${ac_cv_safe_to_define___extensions__+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_safe_to_define___extensions__=yes +else $as_nop + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 +printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } +if test ${ac_cv_should_define__xopen_source+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_should_define__xopen_source=no + if test $ac_cv_header_wchar_h = yes +then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + mbstate_t x; +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _XOPEN_SOURCE 500 + #include + mbstate_t x; +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_should_define__xopen_source=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 +printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } + + printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h + + printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h + + printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h + + printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h + + printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h + + printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h + + printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h + + printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h + + if test $ac_cv_header_minix_config_h = yes +then : + MINIX=yes + printf "%s\n" "#define _MINIX 1" >>confdefs.h + + printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h + + printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h + +else $as_nop + MINIX= +fi + if test $ac_cv_safe_to_define___extensions__ = yes +then : + printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h + +fi + if test $ac_cv_should_define__xopen_source = yes +then : + printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h + +fi + + + + + + case "$host_os" in + openbsd*) + +printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h + + ;; + esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -6656,10 +7000,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -6669,7 +7014,8 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -6681,29 +7027,24 @@ fi else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -6715,10 +7056,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -6728,11 +7070,12 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -6744,11 +7087,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST @@ -6756,10 +7100,15 @@ else for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP @@ -6768,13 +7117,13 @@ case `"$ac_path_GREP" --version 2>&1` in ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -6802,16 +7151,17 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else @@ -6822,10 +7172,15 @@ else for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP @@ -6834,13 +7189,13 @@ case `"$ac_path_EGREP" --version 2>&1` in ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -6869,313 +7224,20 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -int -main () -{ - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - - - for ac_header in $ac_header_list -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if ${ac_cv_safe_to_define___extensions__+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_safe_to_define___extensions__=yes -else - ac_cv_safe_to_define___extensions__=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 -$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 -$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; } -if ${ac_cv_should_define__xopen_source+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_should_define__xopen_source=no - if test $ac_cv_header_wchar_h = yes; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #include - mbstate_t x; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #define _XOPEN_SOURCE 500 - #include - mbstate_t x; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_should_define__xopen_source=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 -$as_echo "$ac_cv_should_define__xopen_source" >&6; } - - $as_echo "#define _ALL_SOURCE 1" >>confdefs.h - - $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h - - $as_echo "#define _GNU_SOURCE 1" >>confdefs.h - - $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h - - $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h - - $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h - - $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - - $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h - - $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h - - $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h - - $as_echo "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h - - $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h - - $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h - - $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h - - $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h - - $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h - - if test $ac_cv_header_minix_config_h = yes; then : - MINIX=yes - $as_echo "#define _MINIX 1" >>confdefs.h - - $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h - - $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h - -else - MINIX= -fi - if test $ac_cv_safe_to_define___extensions__ = yes; then : - $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h - -fi - if test $ac_cv_should_define__xopen_source = yes; then : - $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h - -fi - - - - - - case "$host_os" in - openbsd*) - -$as_echo "#define _ISOC11_SOURCE 1" >>confdefs.h - - ;; - esac - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 -$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } -if ${gl_cv_c_amsterdam_compiler+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 +printf %s "checking for Minix Amsterdam compiler... " >&6; } +if test ${gl_cv_c_amsterdam_compiler+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7186,17 +7248,18 @@ Amsterdam _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Amsterdam" >/dev/null 2>&1; then : + $EGREP "Amsterdam" >/dev/null 2>&1 +then : gl_cv_c_amsterdam_compiler=yes -else +else $as_nop gl_cv_c_amsterdam_compiler=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 -$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 +printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; } if test $gl_cv_c_amsterdam_compiler = yes; then if test -z "$AR"; then @@ -7212,11 +7275,12 @@ $as_echo "$gl_cv_c_amsterdam_compiler" >&6; } if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -7224,11 +7288,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="${ac_tool_prefix}ar" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7239,11 +7307,11 @@ fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7252,11 +7320,12 @@ if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -7264,11 +7333,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="ar" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7279,11 +7352,11 @@ fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_AR" = x; then @@ -7291,8 +7364,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR @@ -7314,11 +7387,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -7326,11 +7400,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7341,11 +7419,11 @@ fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7354,11 +7432,12 @@ if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -7366,11 +7445,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7381,11 +7464,11 @@ fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -7393,8 +7476,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -7409,18 +7492,19 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } -if ${ac_cv_sys_largefile_source+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 +printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } +if test ${ac_cv_sys_largefile_source+y} +then : + printf %s "(cached) " >&6 +else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* for off_t */ #include int -main () +main (void) { int (*fp) (FILE *, off_t, int) = fseeko; return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); @@ -7428,10 +7512,11 @@ int (*fp) (FILE *, off_t, int) = fseeko; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_sys_largefile_source=no; break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7439,7 +7524,7 @@ rm -f core conftest.err conftest.$ac_objext \ #include /* for off_t */ #include int -main () +main (void) { int (*fp) (FILE *, off_t, int) = fseeko; return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); @@ -7447,23 +7532,22 @@ int (*fp) (FILE *, off_t, int) = fseeko; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_sys_largefile_source=1; break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_cv_sys_largefile_source=unknown break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 -$as_echo "$ac_cv_sys_largefile_source" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 +printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } case $ac_cv_sys_largefile_source in #( no | unknown) ;; *) -cat >>confdefs.h <<_ACEOF -#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source -_ACEOF +printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h ;; esac rm -rf conftest* @@ -7473,29 +7557,32 @@ rm -rf conftest* # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. if test $ac_cv_sys_largefile_source != unknown; then -$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h +printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h fi case "$host_os" in hpux*) -$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h +printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h ;; esac - if test "$enable_largefile" != no; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 -$as_echo_n "checking for $CC option to enable large file support... " >&6; } -if ${ac_cv_sys_largefile_opts+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "$enable_largefile" != no +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 +printf %s "checking for $CC option to enable large file support... " >&6; } +if test ${ac_cv_sys_largefile_opts+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CC="$CC" ac_opt_found=no for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do - if test x"$ac_opt" != x"none needed"; then : + if test x"$ac_opt" != x"none needed" +then : CC="$ac_save_CC $ac_opt" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -7510,25 +7597,26 @@ fi && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_largefile_opts="$ac_opt" ac_opt_found=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test $ac_opt_found = no || break done CC="$ac_save_CC" test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 -$as_echo "$ac_cv_sys_largefile_opts" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 +printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } ac_have_largefile=yes case $ac_cv_sys_largefile_opts in #( @@ -7538,11 +7626,11 @@ case $ac_cv_sys_largefile_opts in #( ac_have_largefile=no ;; #( "-D_FILE_OFFSET_BITS=64") : -$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h +printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h ;; #( "-D_LARGE_FILES=1") : -$as_echo "#define _LARGE_FILES 1" >>confdefs.h +printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h ;; #( "-n32") : CC="$CC -n32" ;; #( @@ -7550,16 +7638,19 @@ $as_echo "#define _LARGE_FILES 1" >>confdefs.h as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; esac - if test "$enable_year2038" != no; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable timestamps after Jan 2038" >&5 -$as_echo_n "checking for $CC option to enable timestamps after Jan 2038... " >&6; } -if ${ac_cv_sys_year2038_opts+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "$enable_year2038" != no +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable timestamps after Jan 2038" >&5 +printf %s "checking for $CC option to enable timestamps after Jan 2038... " >&6; } +if test ${ac_cv_sys_year2038_opts+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CPPFLAGS="$CPPFLAGS" ac_opt_found=no for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do - if test x"$ac_opt" != x"none needed"; then : + if test x"$ac_opt" != x"none needed" +then : CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -7574,25 +7665,26 @@ fi ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_year2038_opts="$ac_opt" ac_opt_found=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test $ac_opt_found = no || break done CPPFLAGS="$ac_save_CPPFLAGS" test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 -$as_echo "$ac_cv_sys_year2038_opts" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 +printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } ac_have_year2038=yes case $ac_cv_sys_year2038_opts in #( @@ -7610,12 +7702,14 @@ case $ac_cv_sys_year2038_opts in #( # wide time_t. (It would be inappropriate for us to override an # intentional use of -m32.) Error out, demanding use of # --disable-year2038 if this is intentional. - if test $cross_compiling = no; then : - if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null; then : + if test $cross_compiling = no +then : + if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null +then : case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #( *'Feb 7 2106'* | *'Feb 7 17:10'*) : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "this system appears to support timestamps after January 2038, but no mechanism for enabling wide 'time_t' was detected. Did you mean to build a 64-bit @@ -7632,15 +7726,15 @@ fi ;; #( esac ;; #( "-D_TIME_BITS=64") : -$as_echo "#define _TIME_BITS 64" >>confdefs.h +printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h ;; #( "-D__MINGW_USE_VC2005_COMPAT=1") : -$as_echo "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h +printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h ;; #( "-U_USE_32_BIT_TIME_T"*) : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It will stop working after January 2038. Remove _USE_32BIT_TIME_T from the compiler flags. @@ -7663,9 +7757,10 @@ fi # Check whether --enable-threads was given. -if test "${enable_threads+set}" = set; then : +if test ${enable_threads+y} +then : enableval=$enable_threads; gl_use_threads=$enableval -else +else $as_nop if test -n "$gl_use_threads_default"; then gl_use_threads="$gl_use_threads_default" else @@ -7897,11 +7992,12 @@ fi # Code from module xsize: if test $ac_cv_c_compiler_gnu = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -$as_echo_n "checking whether $CC needs -traditional... " >&6; } -if ${ac_cv_prog_gcc_traditional+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 +printf %s "checking whether $CC needs -traditional... " >&6; } +if test ${ac_cv_prog_gcc_traditional+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7909,12 +8005,13 @@ else Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : + $EGREP "$ac_pattern" >/dev/null 2>&1 +then : ac_cv_prog_gcc_traditional=yes -else +else $as_nop ac_cv_prog_gcc_traditional=no fi -rm -f conftest* +rm -rf conftest* if test $ac_cv_prog_gcc_traditional = no; then @@ -7924,15 +8021,16 @@ rm -f conftest* Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : + $EGREP "$ac_pattern" >/dev/null 2>&1 +then : ac_cv_prog_gcc_traditional=yes fi -rm -f conftest* +rm -rf conftest* fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -$as_echo "$ac_cv_prog_gcc_traditional" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 +printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi @@ -7940,8 +8038,8 @@ fi case `pwd` in *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac @@ -7961,6 +8059,7 @@ macro_revision='1.3337' + ltmain="$ac_aux_dir/ltmain.sh" # Backslashify metacharacters that are still active within @@ -7984,8 +8083,8 @@ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "checking how to print strings... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +printf %s "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then @@ -8011,12 +8110,12 @@ func_echo_all () } case "$ECHO" in - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; + printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +printf "%s\n" "printf" >&6; } ;; + print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +printf "%s\n" "print -r" >&6; } ;; + *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +printf "%s\n" "cat" >&6; } ;; esac @@ -8032,11 +8131,12 @@ esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" @@ -8050,10 +8150,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in sed gsed + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED @@ -8062,13 +8167,13 @@ case `"$ac_path_SED" --version 2>&1` in ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" + printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -8096,8 +8201,8 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed @@ -8114,11 +8219,12 @@ Xsed="$SED -e 1s/^X//" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } -if ${ac_cv_path_FGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +printf %s "checking for fgrep... " >&6; } +if test ${ac_cv_path_FGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else @@ -8129,10 +8235,15 @@ else for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in fgrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in fgrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP @@ -8141,13 +8252,13 @@ case `"$ac_path_FGREP" --version 2>&1` in ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'FGREP' >> "conftest.nl" + printf "%s\n" 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -8176,8 +8287,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +printf "%s\n" "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" @@ -8202,17 +8313,18 @@ test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else +else $as_nop with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -8241,15 +8353,16 @@ $as_echo_n "checking for ld used by $CC... " >&6; } ;; esac elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do @@ -8278,18 +8391,19 @@ fi LD="$lt_cv_path_LD" if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -8312,11 +8426,12 @@ with_gnu_ld=$lt_cv_prog_gnu_ld -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test ${lt_cv_path_NM+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" @@ -8361,8 +8476,8 @@ else : ${lt_cv_path_NM=no} fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +printf "%s\n" "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else @@ -8375,11 +8490,12 @@ else do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DUMPBIN+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else @@ -8387,11 +8503,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8402,11 +8522,11 @@ fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +printf "%s\n" "$DUMPBIN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8419,11 +8539,12 @@ if test -z "$DUMPBIN"; then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DUMPBIN+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else @@ -8431,11 +8552,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8446,11 +8571,11 @@ fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8462,8 +8587,8 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN @@ -8491,11 +8616,12 @@ test -z "$NM" && NM=nm -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } -if ${lt_cv_nm_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +printf %s "checking the name lister ($NM) interface... " >&6; } +if test ${lt_cv_nm_interface+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) @@ -8511,26 +8637,27 @@ else fi rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +printf "%s\n" "$lt_cv_nm_interface" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +printf "%s\n" "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +printf %s "checking the maximum length of command line arguments... " >&6; } +if test ${lt_cv_sys_max_cmd_len+y} +then : + printf %s "(cached) " >&6 +else $as_nop i=0 teststring="ABCD" @@ -8656,11 +8783,11 @@ else fi if test -n $lt_cv_sys_max_cmd_len ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 +printf "%s\n" "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len @@ -8673,8 +8800,8 @@ max_cmd_len=$lt_cv_sys_max_cmd_len : ${MV="mv -f"} : ${RM="rm -f"} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 -$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +printf %s "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -8683,18 +8810,18 @@ xsi_shell=no && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 -$as_echo "$xsi_shell" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +printf "%s\n" "$xsi_shell" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 -$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +printf %s "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 -$as_echo "$lt_shell_append" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +printf "%s\n" "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then @@ -8728,11 +8855,12 @@ esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -$as_echo_n "checking how to convert $build file names to $host format... " >&6; } -if ${lt_cv_to_host_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +printf %s "checking how to convert $build file names to $host format... " >&6; } +if test ${lt_cv_to_host_file_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $host in *-*-mingw* ) case $build in @@ -8768,18 +8896,19 @@ esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -$as_echo "$lt_cv_to_host_file_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } -if ${lt_cv_to_tool_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +printf %s "checking how to convert $build file names to toolchain format... " >&6; } +if test ${lt_cv_to_tool_file_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in @@ -8795,22 +8924,23 @@ esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -$as_echo "$lt_cv_to_tool_file_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +printf %s "checking for $LD option to reload object files... " >&6; } +if test ${lt_cv_ld_reload_flag+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_reload_flag='-r' fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; @@ -8843,11 +8973,12 @@ esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else @@ -8855,11 +8986,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8870,11 +9005,11 @@ fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8883,11 +9018,12 @@ if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else @@ -8895,11 +9031,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8910,11 +9050,11 @@ fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then @@ -8922,8 +9062,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP @@ -8942,11 +9082,12 @@ test -z "$OBJDUMP" && OBJDUMP=objdump -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +printf %s "checking how to recognize dependent libraries... " >&6; } +if test ${lt_cv_deplibs_check_method+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' @@ -9140,8 +9281,8 @@ tpf*) esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no @@ -9185,11 +9326,12 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else @@ -9197,11 +9339,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9212,11 +9358,11 @@ fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9225,11 +9371,12 @@ if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else @@ -9237,11 +9384,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9252,11 +9403,11 @@ fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then @@ -9264,8 +9415,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL @@ -9285,11 +9436,12 @@ test -z "$DLLTOOL" && DLLTOOL=dlltool -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -$as_echo_n "checking how to associate runtime and link libraries... " >&6; } -if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +printf %s "checking how to associate runtime and link libraries... " >&6; } +if test ${lt_cv_sharedlib_from_linklib_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in @@ -9312,8 +9464,8 @@ cygwin* | mingw* | pw32* | cegcc*) esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO @@ -9328,11 +9480,12 @@ if test -n "$ac_tool_prefix"; then do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -9340,11 +9493,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9355,11 +9512,11 @@ fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9372,11 +9529,12 @@ if test -z "$AR"; then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -9384,11 +9542,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9399,11 +9561,11 @@ fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9415,8 +9577,8 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR @@ -9436,30 +9598,32 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -$as_echo_n "checking for archiver @FILE support... " >&6; } -if ${lt_cv_ar_at_file+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +printf %s "checking for archiver @FILE support... " >&6; } +if test ${lt_cv_ar_at_file+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. @@ -9467,7 +9631,7 @@ if ac_fn_c_try_compile "$LINENO"; then : { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ @@ -9476,11 +9640,11 @@ if ac_fn_c_try_compile "$LINENO"; then : rm -f conftest.* libconftest.a fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -$as_echo "$lt_cv_ar_at_file" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +printf "%s\n" "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= @@ -9497,11 +9661,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else @@ -9509,11 +9674,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9524,11 +9693,11 @@ fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9537,11 +9706,12 @@ if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else @@ -9549,11 +9719,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9564,11 +9738,11 @@ fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -9576,8 +9750,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -9596,11 +9770,12 @@ test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -9608,11 +9783,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9623,11 +9802,11 @@ fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9636,11 +9815,12 @@ if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -9648,11 +9828,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9663,11 +9847,11 @@ fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -9675,8 +9859,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -9765,11 +9949,12 @@ compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +printf %s "checking command to parse $NM output from $compiler object... " >&6; } +if test ${lt_cv_sys_global_symbol_pipe+y} +then : + printf %s "(cached) " >&6 +else $as_nop # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -9888,14 +10073,14 @@ _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then @@ -9964,7 +10149,7 @@ _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -9999,11 +10184,11 @@ if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +printf "%s\n" "failed" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } fi # Response file support. @@ -10039,13 +10224,14 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -$as_echo_n "checking for sysroot... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. -if test "${with_sysroot+set}" = set; then : +if test ${with_sysroot+y} +then : withval=$with_sysroot; -else +else $as_nop with_sysroot=no fi @@ -10063,21 +10249,22 @@ case ${with_sysroot} in #( no|'') ;; #( *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 -$as_echo "${with_sysroot}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +printf "%s\n" "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -$as_echo "${lt_sysroot:-no}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +printf "%s\n" "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then : +if test ${enable_libtool_lock+y} +then : enableval=$enable_libtool_lock; fi @@ -10092,7 +10279,7 @@ ia64-*-hpux*) if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) @@ -10111,7 +10298,7 @@ ia64-*-hpux*) if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in @@ -10149,7 +10336,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) @@ -10199,11 +10386,12 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +printf %s "checking whether the C compiler needs -belf... " >&6; } +if test ${lt_cv_cc_needs_belf+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10214,19 +10402,20 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_cc_needs_belf=yes -else +else $as_nop lt_cv_cc_needs_belf=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -10235,8 +10424,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" @@ -10248,7 +10437,7 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; } if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) @@ -10285,11 +10474,12 @@ need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_MANIFEST_TOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else @@ -10297,11 +10487,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10312,11 +10506,11 @@ fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -$as_echo "$MANIFEST_TOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +printf "%s\n" "$MANIFEST_TOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10325,11 +10519,12 @@ if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else @@ -10337,11 +10532,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10352,11 +10551,11 @@ fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then @@ -10364,8 +10563,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL @@ -10375,11 +10574,12 @@ else fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if ${lt_cv_path_mainfest_tool+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if test ${lt_cv_path_mainfest_tool+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out @@ -10389,8 +10589,8 @@ else fi rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -$as_echo "$lt_cv_path_mainfest_tool" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi @@ -10405,11 +10605,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else @@ -10417,11 +10618,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10432,11 +10637,11 @@ fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +printf "%s\n" "$DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10445,11 +10650,12 @@ if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else @@ -10457,11 +10663,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10472,11 +10682,11 @@ fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then @@ -10484,8 +10694,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL @@ -10497,11 +10707,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else @@ -10509,11 +10720,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10524,11 +10739,11 @@ fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +printf "%s\n" "$NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10537,11 +10752,12 @@ if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else @@ -10549,11 +10765,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10564,11 +10784,11 @@ fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +printf "%s\n" "$ac_ct_NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then @@ -10576,8 +10796,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT @@ -10589,11 +10809,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_LIPO+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else @@ -10601,11 +10822,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10616,11 +10841,11 @@ fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +printf "%s\n" "$LIPO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10629,11 +10854,12 @@ if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_LIPO+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else @@ -10641,11 +10867,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10656,11 +10886,11 @@ fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +printf "%s\n" "$ac_ct_LIPO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then @@ -10668,8 +10898,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO @@ -10681,11 +10911,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else @@ -10693,11 +10924,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10708,11 +10943,11 @@ fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +printf "%s\n" "$OTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10721,11 +10956,12 @@ if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else @@ -10733,11 +10969,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10748,11 +10988,11 @@ fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +printf "%s\n" "$ac_ct_OTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then @@ -10760,8 +11000,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL @@ -10773,11 +11013,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OTOOL64+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else @@ -10785,11 +11026,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10800,11 +11045,11 @@ fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +printf "%s\n" "$OTOOL64" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10813,11 +11058,12 @@ if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OTOOL64+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else @@ -10825,11 +11071,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10840,11 +11090,11 @@ fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +printf "%s\n" "$ac_ct_OTOOL64" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then @@ -10852,8 +11102,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 @@ -10888,11 +11138,12 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +printf %s "checking for -single_module linker flag... " >&6; } +if test ${lt_cv_apple_cc_single_mod+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override @@ -10921,14 +11172,15 @@ else rm -f conftest.* fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +printf %s "checking for -exported_symbols_list linker flag... " >&6; } +if test ${lt_cv_ld_exported_symbols_list+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym @@ -10937,31 +11189,33 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_ld_exported_symbols_list=yes -else +else $as_nop lt_cv_ld_exported_symbols_list=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -$as_echo_n "checking for -force_load linker flag... " >&6; } -if ${lt_cv_ld_force_load+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +printf %s "checking for -force_load linker flag... " >&6; } +if test ${lt_cv_ld_force_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} @@ -10989,8 +11243,8 @@ _LT_EOF rm -rf conftest.dSYM fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -$as_echo "$lt_cv_ld_force_load" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +printf "%s\n" "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; @@ -11026,19 +11280,14 @@ $as_echo "$lt_cv_ld_force_load" >&6; } ;; esac -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi -done - @@ -11054,7 +11303,8 @@ done # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : +if test ${enable_shared+y} +then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; @@ -11072,7 +11322,7 @@ if test "${enable_shared+set}" = set; then : IFS="$lt_save_ifs" ;; esac -else +else $as_nop enable_shared=yes fi @@ -11085,7 +11335,8 @@ fi # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : +if test ${enable_static+y} +then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; @@ -11103,7 +11354,7 @@ if test "${enable_static+set}" = set; then : IFS="$lt_save_ifs" ;; esac -else +else $as_nop enable_static=yes fi @@ -11117,7 +11368,8 @@ fi # Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : +if test ${with_pic+y} +then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; @@ -11134,7 +11386,7 @@ if test "${with_pic+set}" = set; then : IFS="$lt_save_ifs" ;; esac -else +else $as_nop pic_mode=default fi @@ -11148,7 +11400,8 @@ test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then : +if test ${enable_fast_install+y} +then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; @@ -11166,7 +11419,7 @@ if test "${enable_fast_install+set}" = set; then : IFS="$lt_save_ifs" ;; esac -else +else $as_nop enable_fast_install=yes fi @@ -11234,11 +11487,12 @@ if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +printf %s "checking for objdir... " >&6; } +if test ${lt_cv_objdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then @@ -11249,17 +11503,15 @@ else fi rmdir .libs 2>/dev/null fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir -cat >>confdefs.h <<_ACEOF -#define LT_OBJDIR "$lt_cv_objdir/" -_ACEOF +printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h @@ -11312,11 +11564,12 @@ test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +printf %s "checking for ${ac_tool_prefix}file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. @@ -11365,11 +11618,11 @@ fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11378,11 +11631,12 @@ fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +printf %s "checking for file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. @@ -11431,11 +11685,11 @@ fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11520,11 +11774,12 @@ if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test ${lt_cv_prog_compiler_rtti_exceptions+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -11555,8 +11810,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" @@ -11882,26 +12137,28 @@ case $host_os in ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } +if test ${lt_cv_prog_compiler_pic+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -$as_echo "$lt_cv_prog_compiler_pic" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -11932,8 +12189,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in @@ -11961,11 +12218,12 @@ fi # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" @@ -11989,8 +12247,8 @@ else LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : @@ -12004,11 +12262,12 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest @@ -12051,19 +12310,20 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest @@ -12106,8 +12366,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12115,19 +12375,19 @@ $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$hard_links" >&6; } if test "$hard_links" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -12139,8 +12399,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= @@ -12628,21 +12888,23 @@ _LT_EOF if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath_+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -12657,7 +12919,7 @@ if ac_fn_c_try_link "$LINENO"; then : lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" @@ -12681,21 +12943,23 @@ fi if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath_+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -12710,7 +12974,7 @@ if ac_fn_c_try_link "$LINENO"; then : lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" @@ -12948,11 +13212,12 @@ fi # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -$as_echo_n "checking if $CC understands -b... " >&6; } -if ${lt_cv_prog_compiler__b+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +printf %s "checking if $CC understands -b... " >&6; } +if test ${lt_cv_prog_compiler__b+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" @@ -12976,8 +13241,8 @@ else LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -$as_echo "$lt_cv_prog_compiler__b" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' @@ -13017,28 +13282,30 @@ fi # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if test ${lt_cv_irix_exported_symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_irix_exported_symbol=yes -else +else $as_nop lt_cv_irix_exported_symbol=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$lt_cv_irix_exported_symbol" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi @@ -13296,8 +13563,8 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +printf "%s\n" "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld @@ -13333,18 +13600,19 @@ x|xyes) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } +if test ${lt_cv_archive_cmds_need_lc+y} +then : + printf %s "(cached) " >&6 +else $as_nop $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -13362,7 +13630,7 @@ else if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no @@ -13376,8 +13644,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac @@ -13536,8 +13804,8 @@ esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in @@ -14017,9 +14285,10 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_shlibpath_overrides_runpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir @@ -14029,19 +14298,21 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : +if ac_fn_c_try_link "$LINENO" +then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null +then : lt_cv_shlibpath_overrides_runpath=yes fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir @@ -14270,8 +14541,8 @@ uts4*) dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -14377,8 +14648,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || @@ -14402,8 +14673,8 @@ else # directories. hardcode_action=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +printf "%s\n" "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then @@ -14447,11 +14718,12 @@ else darwin*) # if libdl is installed we need to link against it - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14460,32 +14732,31 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else +else $as_nop lt_cv_dlopen="dyld" lt_cv_dlopen_libs= @@ -14497,14 +14768,16 @@ fi *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : +if test "x$ac_cv_func_shl_load" = xyes +then : lt_cv_dlopen="shl_load" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +printf %s "checking for shl_load in -ldld... " >&6; } +if test ${ac_cv_lib_dld_shl_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14513,41 +14786,42 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char shl_load (); int -main () +main (void) { return shl_load (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_shl_load=yes -else +else $as_nop ac_cv_lib_dld_shl_load=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes +then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" -else +else $as_nop ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : +if test "x$ac_cv_func_dlopen" = xyes +then : lt_cv_dlopen="dlopen" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14556,37 +14830,37 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +printf %s "checking for dlopen in -lsvld... " >&6; } +if test ${ac_cv_lib_svld_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14595,37 +14869,37 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_svld_dlopen=yes -else +else $as_nop ac_cv_lib_svld_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes +then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +printf %s "checking for dld_link in -ldld... " >&6; } +if test ${ac_cv_lib_dld_dld_link+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14634,30 +14908,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dld_link (); int -main () +main (void) { return dld_link (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_dld_link=yes -else +else $as_nop ac_cv_lib_dld_dld_link=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes +then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi @@ -14696,11 +14969,12 @@ fi save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +printf %s "checking whether a program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else @@ -14779,7 +15053,7 @@ _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -14797,16 +15071,17 @@ rm -fr conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +printf "%s\n" "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +printf %s "checking whether a statically linked program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self_static+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else @@ -14885,7 +15160,7 @@ _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -14903,8 +15178,8 @@ rm -fr conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" @@ -14942,13 +15217,13 @@ fi striplib= old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +printf %s "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in @@ -14956,16 +15231,16 @@ else if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac fi @@ -14982,13 +15257,13 @@ fi # Report which library types will actually be built - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +printf %s "checking if libtool supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +printf "%s\n" "$can_build_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +printf %s "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and @@ -15008,15 +15283,15 @@ $as_echo_n "checking whether to build shared libraries... " >&6; } fi ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +printf "%s\n" "$enable_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +printf "%s\n" "$enable_static" >&6; } @@ -15055,32 +15330,34 @@ CC="$lt_save_CC" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 -$as_echo_n "checking for error_at_line... " >&6; } -if ${ac_cv_lib_error_at_line+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +printf %s "checking for error_at_line... " >&6; } +if test ${ac_cv_lib_error_at_line+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_error_at_line=yes -else +else $as_nop ac_cv_lib_error_at_line=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 -$as_echo "$ac_cv_lib_error_at_line" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 +printf "%s\n" "$ac_cv_lib_error_at_line" >&6; } if test $ac_cv_lib_error_at_line = no; then case " $LIBOBJS " in *" error.$ac_objext "* ) ;; @@ -15092,14 +15369,16 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 -$as_echo_n "checking for working strtod... " >&6; } -if ${ac_cv_func_strtod+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 +printf %s "checking for working strtod... " >&6; } +if test ${ac_cv_func_strtod+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : ac_cv_func_strtod=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -15108,7 +15387,7 @@ $ac_includes_default double strtod (); #endif int -main() +main (void) { { /* Some versions of Linux strtod mis-parse strings with leading '+'. */ @@ -15133,9 +15412,10 @@ main() } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_strtod=yes -else +else $as_nop ac_cv_func_strtod=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -15143,8 +15423,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 -$as_echo "$ac_cv_func_strtod" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 +printf "%s\n" "$ac_cv_func_strtod" >&6; } if test $ac_cv_func_strtod = no; then case " $LIBOBJS " in *" strtod.$ac_objext "* ) ;; @@ -15153,16 +15433,18 @@ if test $ac_cv_func_strtod = no; then esac ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" -if test "x$ac_cv_func_pow" = xyes; then : +if test "x$ac_cv_func_pow" = xyes +then : fi if test $ac_cv_func_pow = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 -$as_echo_n "checking for pow in -lm... " >&6; } -if ${ac_cv_lib_m_pow+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 +printf %s "checking for pow in -lm... " >&6; } +if test ${ac_cv_lib_m_pow+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15171,34 +15453,33 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pow (); int -main () +main (void) { return pow (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_m_pow=yes -else +else $as_nop ac_cv_lib_m_pow=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 -$as_echo "$ac_cv_lib_m_pow" >&6; } -if test "x$ac_cv_lib_m_pow" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 +printf "%s\n" "$ac_cv_lib_m_pow" >&6; } +if test "x$ac_cv_lib_m_pow" = xyes +then : POW_LIB=-lm -else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 -$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 +printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} fi fi @@ -15218,24 +15499,24 @@ SUPPORT="Send email to help@monitoring-plugins.org if you have questions regardi # Check whether --with-cgiurl was given. -if test "${with_cgiurl+set}" = set; then : +if test ${with_cgiurl+y} +then : withval=$with_cgiurl; with_cgiurl=$withval -else +else $as_nop with_cgiurl=/nagios/cgi-bin fi CGIURL="$with_cgiurl" -cat >>confdefs.h <<_ACEOF -#define CGIURL "$CGIURL" -_ACEOF +printf "%s\n" "#define CGIURL \"$CGIURL\"" >>confdefs.h # Check whether --with-trusted_path was given. -if test "${with_trusted_path+set}" = set; then : +if test ${with_trusted_path+y} +then : withval=$with_trusted_path; with_trusted_path=$withval -else +else $as_nop with_trusted_path=$DEFAULT_PATH fi @@ -15279,11 +15560,12 @@ fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PERL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PERL+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. @@ -15293,11 +15575,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -15309,21 +15595,22 @@ esac fi PERL=$ac_cv_path_PERL if test -n "$PERL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 -$as_echo "$PERL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +printf "%s\n" "$PERL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "hostname", so it can be a program name with args. set dummy hostname; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_HOSTNAME+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_HOSTNAME+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $HOSTNAME in [\\/]* | ?:[\\/]*) ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path. @@ -15333,11 +15620,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_HOSTNAME="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -15349,21 +15640,22 @@ esac fi HOSTNAME=$ac_cv_path_HOSTNAME if test -n "$HOSTNAME"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5 -$as_echo "$HOSTNAME" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5 +printf "%s\n" "$HOSTNAME" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "basename", so it can be a program name with args. set dummy basename; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_BASENAME+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_BASENAME+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $BASENAME in [\\/]* | ?:[\\/]*) ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. @@ -15373,11 +15665,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_BASENAME="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -15389,20 +15685,21 @@ esac fi BASENAME=$ac_cv_path_BASENAME if test -n "$BASENAME"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 -$as_echo "$BASENAME" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 +printf "%s\n" "$BASENAME" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-perl was given. -if test "${with_perl+set}" = set; then : +if test ${with_perl+y} +then : withval=$with_perl; with_perl=$withval -else +else $as_nop with_perl=$PERL fi @@ -15411,14 +15708,16 @@ PERL=$with_perl # Check whether --with-openssl was given. -if test "${with_openssl+set}" = set; then : +if test ${with_openssl+y} +then : withval=$with_openssl; fi # Check whether --with-gnutls was given. -if test "${with_gnutls+set}" = set; then : +if test ${with_gnutls+y} +then : withval=$with_gnutls; fi @@ -15435,11 +15734,12 @@ OPENSSL_DIRS="/usr /usr/local /usr/slocal /usr/local/openssl /usr/local/ssl \ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldce" >&5 -$as_echo_n "checking for main in -ldce... " >&6; } -if ${ac_cv_lib_dce_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -ldce" >&5 +printf %s "checking for main in -ldce... " >&6; } +if test ${ac_cv_lib_dce_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldce $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15447,33 +15747,36 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dce_main=yes -else +else $as_nop ac_cv_lib_dce_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dce_main" >&5 -$as_echo "$ac_cv_lib_dce_main" >&6; } -if test "x$ac_cv_lib_dce_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dce_main" >&5 +printf "%s\n" "$ac_cv_lib_dce_main" >&6; } +if test "x$ac_cv_lib_dce_main" = xyes +then : SOCKETLIBS="$SOCKETLIBS -ldce" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 -$as_echo_n "checking for main in -lnsl... " >&6; } -if ${ac_cv_lib_nsl_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 +printf %s "checking for main in -lnsl... " >&6; } +if test ${ac_cv_lib_nsl_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15481,33 +15784,36 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_nsl_main=yes -else +else $as_nop ac_cv_lib_nsl_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 -$as_echo "$ac_cv_lib_nsl_main" >&6; } -if test "x$ac_cv_lib_nsl_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 +printf "%s\n" "$ac_cv_lib_nsl_main" >&6; } +if test "x$ac_cv_lib_nsl_main" = xyes +then : SOCKETLIBS="$SOCKETLIBS -lnsl" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 -$as_echo_n "checking for socket in -lsocket... " >&6; } -if ${ac_cv_lib_socket_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +printf %s "checking for socket in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_socket+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15516,38 +15822,38 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char socket (); int -main () +main (void) { return socket (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_socket=yes -else +else $as_nop ac_cv_lib_socket_socket=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 -$as_echo "$ac_cv_lib_socket_socket" >&6; } -if test "x$ac_cv_lib_socket_socket" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = xyes +then : SOCKETLIBS="$SOCKETLIBS -lsocket" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5 -$as_echo_n "checking for main in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5 +printf %s "checking for main in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15555,47 +15861,45 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv_main=yes -else +else $as_nop ac_cv_lib_resolv_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5 -$as_echo "$ac_cv_lib_resolv_main" >&6; } -if test "x$ac_cv_lib_resolv_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5 +printf "%s\n" "$ac_cv_lib_resolv_main" >&6; } +if test "x$ac_cv_lib_resolv_main" = xyes +then : SOCKETLIBS="$SOCKETLIBS -lresolv" fi -for ac_header in math.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" -if test "x$ac_cv_header_math_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MATH_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" +if test "x$ac_cv_header_math_h" = xyes +then : + printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 -$as_echo_n "checking for floor in -lm... " >&6; } -if ${ac_cv_lib_m_floor+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 +printf %s "checking for floor in -lm... " >&6; } +if test ${ac_cv_lib_m_floor+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15604,50 +15908,45 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char floor (); int -main () +main (void) { return floor (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_m_floor=yes -else +else $as_nop ac_cv_lib_m_floor=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 -$as_echo "$ac_cv_lib_m_floor" >&6; } -if test "x$ac_cv_lib_m_floor" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 +printf "%s\n" "$ac_cv_lib_m_floor" >&6; } +if test "x$ac_cv_lib_m_floor" = xyes +then : MATHLIBS="-lm" fi -for ac_header in mp.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "mp.h" "ac_cv_header_mp_h" "$ac_includes_default" -if test "x$ac_cv_header_mp_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MP_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "mp.h" "ac_cv_header_mp_h" "$ac_includes_default" +if test "x$ac_cv_header_mp_h" = xyes +then : + printf "%s\n" "#define HAVE_MP_H 1" >>confdefs.h fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lbsd" >&5 -$as_echo_n "checking for pow in -lbsd... " >&6; } -if ${ac_cv_lib_bsd_pow+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lbsd" >&5 +printf %s "checking for pow in -lbsd... " >&6; } +if test ${ac_cv_lib_bsd_pow+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15656,39 +15955,39 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pow (); int -main () +main (void) { return pow (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bsd_pow=yes -else +else $as_nop ac_cv_lib_bsd_pow=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_pow" >&5 -$as_echo "$ac_cv_lib_bsd_pow" >&6; } -if test "x$ac_cv_lib_bsd_pow" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_pow" >&5 +printf "%s\n" "$ac_cv_lib_bsd_pow" >&6; } +if test "x$ac_cv_lib_bsd_pow" = xyes +then : MATHLIBS="$MATHLIBS -lbsd" fi # Check whether --enable-libtap was given. -if test "${enable_libtap+set}" = set; then : +if test ${enable_libtap+y} +then : enableval=$enable_libtap; enable_libtap=$enableval -else +else $as_nop enable_libtap=no fi @@ -15703,11 +16002,12 @@ fi # If not local, check if we can use the system one if test "$enable_libtap" != "yes" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for plan_tests in -ltap" >&5 -$as_echo_n "checking for plan_tests in -ltap... " >&6; } -if ${ac_cv_lib_tap_plan_tests+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for plan_tests in -ltap" >&5 +printf %s "checking for plan_tests in -ltap... " >&6; } +if test ${ac_cv_lib_tap_plan_tests+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15716,30 +16016,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char plan_tests (); int -main () +main (void) { return plan_tests (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tap_plan_tests=yes -else +else $as_nop ac_cv_lib_tap_plan_tests=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tap_plan_tests" >&5 -$as_echo "$ac_cv_lib_tap_plan_tests" >&6; } -if test "x$ac_cv_lib_tap_plan_tests" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tap_plan_tests" >&5 +printf "%s\n" "$ac_cv_lib_tap_plan_tests" >&6; } +if test "x$ac_cv_lib_tap_plan_tests" = xyes +then : enable_libtap="yes" fi @@ -15753,9 +16052,10 @@ if test "$enable_libtap" = "yes" ; then fi # Check whether --enable-extra-opts was given. -if test "${enable_extra_opts+set}" = set; then : +if test ${enable_extra_opts+y} +then : enableval=$enable_extra_opts; enable_extra_opts=$enableval -else +else $as_nop enable_extra_opts=yes fi @@ -15769,7 +16069,7 @@ fi if test "$enable_extra_opts" = "yes" ; then -$as_echo "#define NP_EXTRA_OPTS 1" >>confdefs.h +printf "%s\n" "#define NP_EXTRA_OPTS 1" >>confdefs.h if test "$enable_libtap" = "yes"; then EXTRA_TEST="$EXTRA_TEST test_ini1 test_ini3 test_opts1 test_opts2 test_opts3" @@ -15781,15 +16081,17 @@ _SAVEDLIBS="$LIBS" _SAVEDCPPFLAGS="$CPPFLAGS" # Check whether --with-pgsql was given. -if test "${with_pgsql+set}" = set; then : +if test ${with_pgsql+y} +then : withval=$with_pgsql; PGSQL=$withval fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5 -$as_echo_n "checking for main in -lcrypt... " >&6; } -if ${ac_cv_lib_crypt_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5 +printf %s "checking for main in -lcrypt... " >&6; } +if test ${ac_cv_lib_crypt_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15797,28 +16099,28 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_crypt_main=yes -else +else $as_nop ac_cv_lib_crypt_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5 -$as_echo "$ac_cv_lib_crypt_main" >&6; } -if test "x$ac_cv_lib_crypt_main" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCRYPT 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5 +printf "%s\n" "$ac_cv_lib_crypt_main" >&6; } +if test "x$ac_cv_lib_crypt_main" = xyes +then : + printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h LIBS="-lcrypt $LIBS" @@ -15829,11 +16131,12 @@ if test "$ac_cv_lib_crypt_main" = "yes" -a "x$PGSQL" != "xno"; then LDFLAGS="$LDFLAGS -L$PGSQL/lib" CPPFLAGS="$CPPFLAGS -I$PGSQL/include" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5 -$as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; } -if ${ac_cv_lib_pq_PQsetdbLogin+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5 +printf %s "checking for PQsetdbLogin in -lpq... " >&6; } +if test ${ac_cv_lib_pq_PQsetdbLogin+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpq -lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15842,75 +16145,57 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char PQsetdbLogin (); int -main () +main (void) { return PQsetdbLogin (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pq_PQsetdbLogin=yes -else +else $as_nop ac_cv_lib_pq_PQsetdbLogin=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5 -$as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; } -if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPQ 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5 +printf "%s\n" "$ac_cv_lib_pq_PQsetdbLogin" >&6; } +if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes +then : + printf "%s\n" "#define HAVE_LIBPQ 1" >>confdefs.h LIBS="-lpq $LIBS" fi if test "$ac_cv_lib_pq_PQsetdbLogin" = "yes"; then - for ac_header in pgsql/libpq-fe.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "pgsql/libpq-fe.h" "ac_cv_header_pgsql_libpq_fe_h" "$ac_includes_default" -if test "x$ac_cv_header_pgsql_libpq_fe_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PGSQL_LIBPQ_FE_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "pgsql/libpq-fe.h" "ac_cv_header_pgsql_libpq_fe_h" "$ac_includes_default" +if test "x$ac_cv_header_pgsql_libpq_fe_h" = xyes +then : + printf "%s\n" "#define HAVE_PGSQL_LIBPQ_FE_H 1" >>confdefs.h fi -done - - for ac_header in postgresql/libpq-fe.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" -if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" +if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes +then : + printf "%s\n" "#define HAVE_POSTGRESQL_LIBPQ_FE_H 1" >>confdefs.h fi -done - - for ac_header in libpq-fe.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" -if test "x$ac_cv_header_libpq_fe_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPQ_FE_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" +if test "x$ac_cv_header_libpq_fe_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBPQ_FE_H 1" >>confdefs.h fi -done - if [ -n "$PGSQL" -a "$ac_cv_header_libpq_fe_h" = "yes" ]; then PGLIBS="-L$PGSQL/lib -lpq -lcrypt" PGINCLUDE="-I$PGSQL/include" @@ -15925,46 +16210,49 @@ done PGINCLUDE="-I$PGSQL/include" fi if test -z "$PGINCLUDE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5 -$as_echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install PostgreSQL headers to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install PostgreSQL headers to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5 +printf "%s\n" "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install PostgreSQL headers to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install PostgreSQL headers to compile this plugin (see REQUIREMENTS)." >&2;} else EXTRAS="$EXTRAS check_pgsql\$(EXEEXT)" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5 -$as_echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\" CPPFLAGS=\"$CPPFLAGS\"" >&5 -$as_echo "$as_me: WARNING: LIBS=\"$LIBS\" CPPFLAGS=\"$CPPFLAGS\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5 +printf "%s\n" "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\" CPPFLAGS=\"$CPPFLAGS\"" >&5 +printf "%s\n" "$as_me: WARNING: LIBS=\"$LIBS\" CPPFLAGS=\"$CPPFLAGS\"" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&2;} fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5 -$as_echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install lib crypt and PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install lib crypt and PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5 +printf "%s\n" "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install lib crypt and PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install lib crypt and PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&2;} fi LIBS="$_SAVEDLIBS" CPPFLAGS="$_SAVEDCPPFLAGS" # Check whether --with-dbi was given. -if test "${with_dbi+set}" = set; then : +if test ${with_dbi+y} +then : withval=$with_dbi; fi -if test "x$with_dbi" != "xno"; then : +if test "x$with_dbi" != "xno" +then : _SAVEDLIBS="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize in -ldbi" >&5 -$as_echo_n "checking for dbi_initialize in -ldbi... " >&6; } -if ${ac_cv_lib_dbi_dbi_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize in -ldbi" >&5 +printf %s "checking for dbi_initialize in -ldbi... " >&6; } +if test ${ac_cv_lib_dbi_dbi_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldbi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15973,33 +16261,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dbi_initialize (); int -main () +main (void) { return dbi_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dbi_dbi_initialize=yes -else +else $as_nop ac_cv_lib_dbi_dbi_initialize=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize" >&5 -$as_echo "$ac_cv_lib_dbi_dbi_initialize" >&6; } -if test "x$ac_cv_lib_dbi_dbi_initialize" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDBI 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize" >&5 +printf "%s\n" "$ac_cv_lib_dbi_dbi_initialize" >&6; } +if test "x$ac_cv_lib_dbi_dbi_initialize" = xyes +then : + printf "%s\n" "#define HAVE_LIBDBI 1" >>confdefs.h LIBS="-ldbi $LIBS" @@ -16010,10 +16295,10 @@ fi DBILIBS="-ldbi" else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping dbi plugin" >&5 -$as_echo "$as_me: WARNING: Skipping dbi plugin" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install DBI libs to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install DBI libs to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping dbi plugin" >&5 +printf "%s\n" "$as_me: WARNING: Skipping dbi plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install DBI libs to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install DBI libs to compile this plugin (see REQUIREMENTS)." >&2;} fi LIBS="$_SAVEDLIBS" @@ -16021,19 +16306,22 @@ fi # Check whether --with-radius was given. -if test "${with_radius+set}" = set; then : +if test ${with_radius+y} +then : withval=$with_radius; fi -if test "x$with_radius" != "xno"; then : +if test "x$with_radius" != "xno" +then : _SAVEDLIBS="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradcli" >&5 -$as_echo_n "checking for rc_read_config in -lradcli... " >&6; } -if ${ac_cv_lib_radcli_rc_read_config+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradcli" >&5 +printf %s "checking for rc_read_config in -lradcli... " >&6; } +if test ${ac_cv_lib_radcli_rc_read_config+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lradcli $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -16042,33 +16330,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char rc_read_config (); int -main () +main (void) { return rc_read_config (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_radcli_rc_read_config=yes -else +else $as_nop ac_cv_lib_radcli_rc_read_config=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radcli_rc_read_config" >&5 -$as_echo "$ac_cv_lib_radcli_rc_read_config" >&6; } -if test "x$ac_cv_lib_radcli_rc_read_config" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBRADCLI 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radcli_rc_read_config" >&5 +printf "%s\n" "$ac_cv_lib_radcli_rc_read_config" >&6; } +if test "x$ac_cv_lib_radcli_rc_read_config" = xyes +then : + printf "%s\n" "#define HAVE_LIBRADCLI 1" >>confdefs.h LIBS="-lradcli $LIBS" @@ -16079,11 +16364,12 @@ fi RADIUSLIBS="-lradcli" else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lfreeradius-client" >&5 -$as_echo_n "checking for rc_read_config in -lfreeradius-client... " >&6; } -if ${ac_cv_lib_freeradius_client_rc_read_config+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lfreeradius-client" >&5 +printf %s "checking for rc_read_config in -lfreeradius-client... " >&6; } +if test ${ac_cv_lib_freeradius_client_rc_read_config+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfreeradius-client $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -16092,33 +16378,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char rc_read_config (); int -main () +main (void) { return rc_read_config (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_freeradius_client_rc_read_config=yes -else +else $as_nop ac_cv_lib_freeradius_client_rc_read_config=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freeradius_client_rc_read_config" >&5 -$as_echo "$ac_cv_lib_freeradius_client_rc_read_config" >&6; } -if test "x$ac_cv_lib_freeradius_client_rc_read_config" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBFREERADIUS_CLIENT 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freeradius_client_rc_read_config" >&5 +printf "%s\n" "$ac_cv_lib_freeradius_client_rc_read_config" >&6; } +if test "x$ac_cv_lib_freeradius_client_rc_read_config" = xyes +then : + printf "%s\n" "#define HAVE_LIBFREERADIUS_CLIENT 1" >>confdefs.h LIBS="-lfreeradius-client $LIBS" @@ -16129,11 +16412,12 @@ fi RADIUSLIBS="-lfreeradius-client" else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient-ng" >&5 -$as_echo_n "checking for rc_read_config in -lradiusclient-ng... " >&6; } -if ${ac_cv_lib_radiusclient_ng_rc_read_config+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient-ng" >&5 +printf %s "checking for rc_read_config in -lradiusclient-ng... " >&6; } +if test ${ac_cv_lib_radiusclient_ng_rc_read_config+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lradiusclient-ng $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -16142,33 +16426,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char rc_read_config (); int -main () +main (void) { return rc_read_config (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_radiusclient_ng_rc_read_config=yes -else +else $as_nop ac_cv_lib_radiusclient_ng_rc_read_config=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5 -$as_echo "$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; } -if test "x$ac_cv_lib_radiusclient_ng_rc_read_config" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBRADIUSCLIENT_NG 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5 +printf "%s\n" "$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; } +if test "x$ac_cv_lib_radiusclient_ng_rc_read_config" = xyes +then : + printf "%s\n" "#define HAVE_LIBRADIUSCLIENT_NG 1" >>confdefs.h LIBS="-lradiusclient-ng $LIBS" @@ -16179,11 +16460,12 @@ fi RADIUSLIBS="-lradiusclient-ng" else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient" >&5 -$as_echo_n "checking for rc_read_config in -lradiusclient... " >&6; } -if ${ac_cv_lib_radiusclient_rc_read_config+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient" >&5 +printf %s "checking for rc_read_config in -lradiusclient... " >&6; } +if test ${ac_cv_lib_radiusclient_rc_read_config+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lradiusclient $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -16192,33 +16474,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char rc_read_config (); int -main () +main (void) { return rc_read_config (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_radiusclient_rc_read_config=yes -else +else $as_nop ac_cv_lib_radiusclient_rc_read_config=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radiusclient_rc_read_config" >&5 -$as_echo "$ac_cv_lib_radiusclient_rc_read_config" >&6; } -if test "x$ac_cv_lib_radiusclient_rc_read_config" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBRADIUSCLIENT 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radiusclient_rc_read_config" >&5 +printf "%s\n" "$ac_cv_lib_radiusclient_rc_read_config" >&6; } +if test "x$ac_cv_lib_radiusclient_rc_read_config" = xyes +then : + printf "%s\n" "#define HAVE_LIBRADIUSCLIENT 1" >>confdefs.h LIBS="-lradiusclient $LIBS" @@ -16229,10 +16508,10 @@ fi RADIUSLIBS="-lradiusclient" else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping radius plugin" >&5 -$as_echo "$as_me: WARNING: Skipping radius plugin" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping radius plugin" >&5 +printf "%s\n" "$as_me: WARNING: Skipping radius plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&2;} fi fi fi @@ -16243,19 +16522,22 @@ fi # Check whether --with-ldap was given. -if test "${with_ldap+set}" = set; then : +if test ${with_ldap+y} +then : withval=$with_ldap; fi -if test "x$with_ldap" != "xno"; then : +if test "x$with_ldap" != "xno" +then : _SAVEDLIBS="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lldap" >&5 -$as_echo_n "checking for main in -lldap... " >&6; } -if ${ac_cv_lib_ldap_main+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lldap" >&5 +printf %s "checking for main in -lldap... " >&6; } +if test ${ac_cv_lib_ldap_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lldap -llber $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -16263,28 +16545,28 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ldap_main=yes -else +else $as_nop ac_cv_lib_ldap_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_main" >&5 -$as_echo "$ac_cv_lib_ldap_main" >&6; } -if test "x$ac_cv_lib_ldap_main" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBLDAP 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_main" >&5 +printf "%s\n" "$ac_cv_lib_ldap_main" >&6; } +if test "x$ac_cv_lib_ldap_main" = xyes +then : + printf "%s\n" "#define HAVE_LIBLDAP 1" >>confdefs.h LIBS="-lldap $LIBS" @@ -16295,35 +16577,44 @@ fi LDAPINCLUDE="-I/usr/include/ldap" - for ac_func in ldap_set_option -do : - ac_fn_c_check_func "$LINENO" "ldap_set_option" "ac_cv_func_ldap_set_option" -if test "x$ac_cv_func_ldap_set_option" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LDAP_SET_OPTION 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "ldap_set_option" "ac_cv_func_ldap_set_option" +if test "x$ac_cv_func_ldap_set_option" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_SET_OPTION 1" >>confdefs.h fi -done EXTRAS="$EXTRAS check_ldap\$(EXEEXT)" - for ac_func in ldap_init ldap_set_option ldap_get_option ldap_start_tls_s -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "ldap_init" "ac_cv_func_ldap_init" +if test "x$ac_cv_func_ldap_init" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_INIT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_set_option" "ac_cv_func_ldap_set_option" +if test "x$ac_cv_func_ldap_set_option" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_SET_OPTION 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_get_option" "ac_cv_func_ldap_get_option" +if test "x$ac_cv_func_ldap_get_option" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_GET_OPTION 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s" +if test "x$ac_cv_func_ldap_start_tls_s" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_START_TLS_S 1" >>confdefs.h fi -done else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping LDAP plugin" >&5 -$as_echo "$as_me: WARNING: Skipping LDAP plugin" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping LDAP plugin" >&5 +printf "%s\n" "$as_me: WARNING: Skipping LDAP plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS)." >&2;} fi LIBS="$_SAVEDLIBS" @@ -16332,19 +16623,22 @@ fi # Check whether --with-systemd was given. -if test "${with_systemd+set}" = set; then : +if test ${with_systemd+y} +then : withval=$with_systemd; fi -if test "x$with_systemd" != "xno"; then : +if test "x$with_systemd" != "xno" +then : _SAVEDLIBS="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_get_sessions in -lsystemd" >&5 -$as_echo_n "checking for sd_get_sessions in -lsystemd... " >&6; } -if ${ac_cv_lib_systemd_sd_get_sessions+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sd_get_sessions in -lsystemd" >&5 +printf %s "checking for sd_get_sessions in -lsystemd... " >&6; } +if test ${ac_cv_lib_systemd_sd_get_sessions+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsystemd -lsystemd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -16353,33 +16647,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char sd_get_sessions (); int -main () +main (void) { return sd_get_sessions (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_systemd_sd_get_sessions=yes -else +else $as_nop ac_cv_lib_systemd_sd_get_sessions=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_get_sessions" >&5 -$as_echo "$ac_cv_lib_systemd_sd_get_sessions" >&6; } -if test "x$ac_cv_lib_systemd_sd_get_sessions" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSYSTEMD 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_get_sessions" >&5 +printf "%s\n" "$ac_cv_lib_systemd_sd_get_sessions" >&6; } +if test "x$ac_cv_lib_systemd_sd_get_sessions" = xyes +then : + printf "%s\n" "#define HAVE_LIBSYSTEMD 1" >>confdefs.h LIBS="-lsystemd $LIBS" @@ -16391,8 +16682,8 @@ fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping systemd support" >&5 -$as_echo "$as_me: WARNING: Skipping systemd support" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping systemd support" >&5 +printf "%s\n" "$as_me: WARNING: Skipping systemd support" >&2;} fi LIBS="$_SAVEDLIBS" @@ -16401,62 +16692,62 @@ fi case $host in *linux*) - ac_fn_c_check_header_mongrel "$LINENO" "linux/hdreg.h" "ac_cv_header_linux_hdreg_h" "$ac_includes_default" -if test "x$ac_cv_header_linux_hdreg_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "linux/hdreg.h" "ac_cv_header_linux_hdreg_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_hdreg_h" = xyes +then : FOUNDINCLUDE=yes -else +else $as_nop FOUNDINCLUDE=no fi - if test "$FOUNDINCLUDE" = "yes" ; then - ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" -if test "x$ac_cv_header_linux_types_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_types_h" = xyes +then : FOUNDINCLUDE=yes -else +else $as_nop FOUNDINCLUDE=no fi - fi if test "$FOUNDINCLUDE" = "no" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping check_ide_smart plugin." >&5 -$as_echo "$as_me: WARNING: Skipping check_ide_smart plugin." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check_ide_smart requires linux/hdreg.h and linux/types.h." >&5 -$as_echo "$as_me: WARNING: check_ide_smart requires linux/hdreg.h and linux/types.h." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping check_ide_smart plugin." >&5 +printf "%s\n" "$as_me: WARNING: Skipping check_ide_smart plugin." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: check_ide_smart requires linux/hdreg.h and linux/types.h." >&5 +printf "%s\n" "$as_me: WARNING: check_ide_smart requires linux/hdreg.h and linux/types.h." >&2;} fi ;; *netbsd*) - ac_fn_c_check_header_mongrel "$LINENO" "dev/ata/atareg.h" "ac_cv_header_dev_ata_atareg_h" "$ac_includes_default" -if test "x$ac_cv_header_dev_ata_atareg_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "dev/ata/atareg.h" "ac_cv_header_dev_ata_atareg_h" "$ac_includes_default" +if test "x$ac_cv_header_dev_ata_atareg_h" = xyes +then : FOUNDINCLUDE=yes -else +else $as_nop FOUNDINCLUDE=no fi - if test "$FOUNDINCLUDE" = "yes" ; then - ac_fn_c_check_header_mongrel "$LINENO" "dev/ic/wdcreg.h" "ac_cv_header_dev_ic_wdcreg_h" "$ac_includes_default" -if test "x$ac_cv_header_dev_ic_wdcreg_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "dev/ic/wdcreg.h" "ac_cv_header_dev_ic_wdcreg_h" "$ac_includes_default" +if test "x$ac_cv_header_dev_ic_wdcreg_h" = xyes +then : FOUNDINCLUDE=yes -else +else $as_nop FOUNDINCLUDE=no fi - fi if test "$FOUNDINCLUDE" = "no" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping check_ide_smart plugin." >&5 -$as_echo "$as_me: WARNING: Skipping check_ide_smart plugin." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check_ide_smart requires dev/ata/atareg.h and dev/ic/wdcreg.h" >&5 -$as_echo "$as_me: WARNING: check_ide_smart requires dev/ata/atareg.h and dev/ic/wdcreg.h" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping check_ide_smart plugin." >&5 +printf "%s\n" "$as_me: WARNING: Skipping check_ide_smart plugin." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: check_ide_smart requires dev/ata/atareg.h and dev/ic/wdcreg.h" >&5 +printf "%s\n" "$as_me: WARNING: check_ide_smart requires dev/ata/atareg.h and dev/ic/wdcreg.h" >&2;} fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping check_ide_smart plugin." >&5 -$as_echo "$as_me: WARNING: Skipping check_ide_smart plugin." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check_ide_smart works only on Linux and NetBSD" >&5 -$as_echo "$as_me: WARNING: check_ide_smart works only on Linux and NetBSD" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping check_ide_smart plugin." >&5 +printf "%s\n" "$as_me: WARNING: Skipping check_ide_smart plugin." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: check_ide_smart works only on Linux and NetBSD" >&5 +printf "%s\n" "$as_me: WARNING: check_ide_smart works only on Linux and NetBSD" >&2;} esac if test "$FOUNDINCLUDE" = "yes" ; then @@ -16466,9 +16757,10 @@ fi # Check whether --with-mysql was given. -if test "${with_mysql+set}" = set; then : +if test ${with_mysql+y} +then : withval=$with_mysql; with_mysql=$withval -else +else $as_nop with_mysql=yes fi @@ -16477,11 +16769,12 @@ fi if test "x$with_mysql" = "xyes" ; then # Extract the first word of "mysql_config", so it can be a program name with args. set dummy mysql_config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_np_mysql_config+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_np_mysql_config+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $np_mysql_config in [\\/]* | ?:[\\/]*) ac_cv_path_np_mysql_config="$np_mysql_config" # Let the user override the test with a path. @@ -16491,11 +16784,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_np_mysql_config="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_np_mysql_config="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16507,11 +16804,11 @@ esac fi np_mysql_config=$ac_cv_path_np_mysql_config if test -n "$np_mysql_config"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $np_mysql_config" >&5 -$as_echo "$np_mysql_config" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $np_mysql_config" >&5 +printf "%s\n" "$np_mysql_config" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -16541,11 +16838,12 @@ fi CPPFLAGS="$CPPFLAGS $np_mysql_include" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 -$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; } -if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 +printf %s "checking for mysql_init in -lmysqlclient... " >&6; } +if test ${ac_cv_lib_mysqlclient_mysql_init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmysqlclient $np_mysql_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -16554,43 +16852,43 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char mysql_init (); int -main () +main (void) { return mysql_init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_mysqlclient_mysql_init=yes -else +else $as_nop ac_cv_lib_mysqlclient_mysql_init=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 -$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; } -if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 +printf "%s\n" "$ac_cv_lib_mysqlclient_mysql_init" >&6; } +if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes +then : with_mysql=$np_mysql_config -$as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h +printf "%s\n" "#define HAVE_MYSQLCLIENT 1" >>confdefs.h -else +else $as_nop - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmariadbclient" >&5 -$as_echo_n "checking for mysql_init in -lmariadbclient... " >&6; } -if ${ac_cv_lib_mariadbclient_mysql_init+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmariadbclient" >&5 +printf %s "checking for mysql_init in -lmariadbclient... " >&6; } +if test ${ac_cv_lib_mariadbclient_mysql_init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmariadbclient $np_mysql_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -16599,37 +16897,36 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char mysql_init (); int -main () +main (void) { return mysql_init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_mariadbclient_mysql_init=yes -else +else $as_nop ac_cv_lib_mariadbclient_mysql_init=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mariadbclient_mysql_init" >&5 -$as_echo "$ac_cv_lib_mariadbclient_mysql_init" >&6; } -if test "x$ac_cv_lib_mariadbclient_mysql_init" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mariadbclient_mysql_init" >&5 +printf "%s\n" "$ac_cv_lib_mariadbclient_mysql_init" >&6; } +if test "x$ac_cv_lib_mariadbclient_mysql_init" = xyes +then : with_mysql=$np_mysql_config -$as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h +printf "%s\n" "#define HAVE_MYSQLCLIENT 1" >>confdefs.h -else +else $as_nop with_mysql=no fi @@ -16644,10 +16941,10 @@ fi fi if test $with_mysql = "no" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping mysql plugin" >&5 -$as_echo "$as_me: WARNING: Skipping mysql plugin" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping mysql plugin" >&5 +printf "%s\n" "$as_me: WARNING: Skipping mysql plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS)." >&2;} else EXTRAS="$EXTRAS check_mysql\$(EXEEXT) check_mysql_query\$(EXEEXT)" MYSQLINCLUDE="$np_mysql_include" @@ -16658,18 +16955,13 @@ else fi -for ac_header in utmpx.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" -if test "x$ac_cv_header_utmpx_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_UTMPX_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" +if test "x$ac_cv_header_utmpx_h" = xyes +then : + printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h fi -done - if test "$ac_cv_header_utmpx_h" = "yes"; then HAVE_UTMPX_TRUE= HAVE_UTMPX_FALSE='#' @@ -16679,19 +16971,14 @@ else fi -for ac_header in wtsapi32.h -do : - ac_fn_c_check_header_compile "$LINENO" "wtsapi32.h" "ac_cv_header_wtsapi32_h" "#include +ac_fn_c_check_header_compile "$LINENO" "wtsapi32.h" "ac_cv_header_wtsapi32_h" "#include " -if test "x$ac_cv_header_wtsapi32_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WTSAPI32_H 1 -_ACEOF +if test "x$ac_cv_header_wtsapi32_h" = xyes +then : + printf "%s\n" "#define HAVE_WTSAPI32_H 1" >>confdefs.h fi -done - if test "$ac_cv_header_wtsapi32_h" = "yes"; then HAVE_WTS32API_TRUE= HAVE_WTS32API_FALSE='#' @@ -16733,9 +17020,10 @@ _can_enable_check_curl=no # Check whether --with-libcurl was given. -if test "${with_libcurl+set}" = set; then : +if test ${with_libcurl+y} +then : withval=$with_libcurl; _libcurl_with=$withval -else +else $as_nop _libcurl_with=yes fi @@ -16746,11 +17034,12 @@ fi do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else @@ -16758,11 +17047,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16773,11 +17066,11 @@ fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -16794,11 +17087,12 @@ done _libcurl_ldflags="-L$withval/lib" # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path__libcurl_config+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path__libcurl_config+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $_libcurl_config in [\\/]* | ?:[\\/]*) ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. @@ -16808,11 +17102,15 @@ else for as_dir in "$withval/bin" do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16824,22 +17122,23 @@ esac fi _libcurl_config=$ac_cv_path__libcurl_config if test -n "$_libcurl_config"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 -$as_echo "$_libcurl_config" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 +printf "%s\n" "$_libcurl_config" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi else # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path__libcurl_config+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path__libcurl_config+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $_libcurl_config in [\\/]* | ?:[\\/]*) ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. @@ -16849,11 +17148,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16865,36 +17168,38 @@ esac fi _libcurl_config=$ac_cv_path__libcurl_config if test -n "$_libcurl_config"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 -$as_echo "$_libcurl_config" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 +printf "%s\n" "$_libcurl_config" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi if test x$_libcurl_config != "x" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 -$as_echo_n "checking for the version of libcurl... " >&6; } -if ${libcurl_cv_lib_curl_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 +printf %s "checking for the version of libcurl... " >&6; } +if test ${libcurl_cv_lib_curl_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 -$as_echo "$libcurl_cv_lib_curl_version" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 +printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; } _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` _libcurl_wanted=`echo 7.15.2 | $_libcurl_version_parse` if test $_libcurl_wanted -gt 0 ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.15.2" >&5 -$as_echo_n "checking for libcurl >= version 7.15.2... " >&6; } -if ${libcurl_cv_lib_version_ok+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.15.2" >&5 +printf %s "checking for libcurl >= version 7.15.2... " >&6; } +if test ${libcurl_cv_lib_version_ok+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $_libcurl_version -ge $_libcurl_wanted ; then libcurl_cv_lib_version_ok=yes @@ -16903,8 +17208,8 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 -$as_echo "$libcurl_cv_lib_version_ok" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 +printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; } fi if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then @@ -16944,11 +17249,12 @@ $as_echo "$libcurl_cv_lib_version_ok" >&6; } # link line (or failing that, "-lcurl") is enough. LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 -$as_echo_n "checking whether libcurl is usable... " >&6; } -if ${libcurl_cv_lib_curl_usable+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 +printf %s "checking whether libcurl is usable... " >&6; } +if test ${libcurl_cv_lib_curl_usable+y} +then : + printf %s "(cached) " >&6 +else $as_nop _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" @@ -16959,7 +17265,7 @@ else /* end confdefs.h. */ #include int -main () +main (void) { /* Try and use a few common options to force a failure if we are @@ -16978,12 +17284,13 @@ if (x) {;} return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : libcurl_cv_lib_curl_usable=yes -else +else $as_nop libcurl_cv_lib_curl_usable=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$_libcurl_save_cppflags @@ -16992,8 +17299,8 @@ rm -f core conftest.err conftest.$ac_objext \ unset _libcurl_save_libs fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 -$as_echo "$libcurl_cv_lib_curl_usable" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 +printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; } if test $libcurl_cv_lib_curl_usable = yes ; then @@ -17006,11 +17313,12 @@ $as_echo "$libcurl_cv_lib_curl_usable" >&6; } LIBS="$LIBS $LIBCURL" ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" -if test "x$ac_cv_func_curl_free" = xyes; then : +if test "x$ac_cv_func_curl_free" = xyes +then : -else +else $as_nop -$as_echo "#define curl_free free" >>confdefs.h +printf "%s\n" "#define curl_free free" >>confdefs.h fi @@ -17021,17 +17329,17 @@ fi unset _libcurl_save_libs -$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h for _libcurl_feature in $_libcurl_features ; do cat >>confdefs.h <<_ACEOF -#define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 +#define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 _ACEOF - eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes + eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes done if test "x$_libcurl_protocols" = "x" ; then @@ -17059,10 +17367,10 @@ _ACEOF for _libcurl_protocol in $_libcurl_protocols ; do cat >>confdefs.h <<_ACEOF -#define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 +#define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 _ACEOF - eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes + eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes done else unset LIBCURL @@ -17085,10 +17393,10 @@ _ACEOF # This is the IF-NO path _can_enable_check_curl=no - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping curl plugin" >&5 -$as_echo "$as_me: WARNING: Skipping curl plugin" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install libcurl libs to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install libcurl libs to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping curl plugin" >&5 +printf "%s\n" "$as_me: WARNING: Skipping curl plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install libcurl libs to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install libcurl libs to compile this plugin (see REQUIREMENTS)." >&2;} else # This is the IF-YES path @@ -17109,9 +17417,10 @@ $as_echo "$as_me: WARNING: install libcurl libs to compile this plugin (see REQU # Check whether --with-uriparser was given. -if test "${with_uriparser+set}" = set; then : +if test ${with_uriparser+y} +then : withval=$with_uriparser; _uriparser_with=$withval -else +else $as_nop _uriparser_with=yes fi @@ -17122,11 +17431,12 @@ fi # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_PKGCONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_PKGCONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$PKGCONFIG"; then ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test. else @@ -17134,11 +17444,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_PKGCONFIG="pkg-config" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -17150,11 +17464,11 @@ fi fi PKGCONFIG=$ac_cv_prog_PKGCONFIG if test -n "$PKGCONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 -$as_echo "$PKGCONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 +printf "%s\n" "$PKGCONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -17167,25 +17481,27 @@ fi elif test x$PKGCONFIG != xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of uriparser" >&5 -$as_echo_n "checking for the version of uriparser... " >&6; } -if ${uriparser_cv_uriparser_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of uriparser" >&5 +printf %s "checking for the version of uriparser... " >&6; } +if test ${uriparser_cv_uriparser_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop uriparser_cv_uriparser_version=`$PKGCONFIG liburiparser --modversion` fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $uriparser_cv_uriparser_version" >&5 -$as_echo "$uriparser_cv_uriparser_version" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $uriparser_cv_uriparser_version" >&5 +printf "%s\n" "$uriparser_cv_uriparser_version" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else @@ -17193,11 +17509,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -17208,11 +17528,11 @@ fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -17226,11 +17546,12 @@ done _uriparser_wanted=`echo 0.7.5 | $_uriparser_version_parse` if test $_uriparser_wanted -gt 0 ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uriparser >= version 0.7.5" >&5 -$as_echo_n "checking for uriparser >= version 0.7.5... " >&6; } -if ${uriparser_cv_lib_version_ok+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uriparser >= version 0.7.5" >&5 +printf %s "checking for uriparser >= version 0.7.5... " >&6; } +if test ${uriparser_cv_lib_version_ok+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $_uriparser_version -ge $_uriparser_wanted ; then uriparser_cv_lib_version_ok=yes @@ -17239,8 +17560,8 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $uriparser_cv_lib_version_ok" >&5 -$as_echo "$uriparser_cv_lib_version_ok" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $uriparser_cv_lib_version_ok" >&5 +printf "%s\n" "$uriparser_cv_lib_version_ok" >&6; } fi if test $_uriparser_wanted -eq 0 || test x$uriparser_cv_lib_version_ok = xyes ; then @@ -17266,11 +17587,12 @@ $as_echo "$uriparser_cv_lib_version_ok" >&6; } # link line (or failing that, "-luriparser") is enough. URIPARSER=${URIPARSER-"$_uriparser_ldflags -luriparser"} - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uriparser is usable" >&5 -$as_echo_n "checking whether uriparser is usable... " >&6; } -if ${uriparser_cv_lib_uriparser_usable+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uriparser is usable" >&5 +printf %s "checking whether uriparser is usable... " >&6; } +if test ${uriparser_cv_lib_uriparser_usable+y} +then : + printf %s "(cached) " >&6 +else $as_nop _liburiparser_save_cppflags=$CPPFLAGS CPPFLAGS="$URIPARSER_CPPFLAGS $CPPFLAGS" @@ -17281,7 +17603,7 @@ else /* end confdefs.h. */ #include int -main () +main (void) { /* Try and use a few common options to force a failure if we are @@ -17297,12 +17619,13 @@ if (x == URI_SUCCESS) {;} return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : uriparser_cv_lib_uriparser_usable=yes -else +else $as_nop uriparser_cv_lib_uriparser_usable=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$_liburiparser_save_cppflags @@ -17311,12 +17634,12 @@ rm -f core conftest.err conftest.$ac_objext \ unset _liburiparser_save_libs fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $uriparser_cv_lib_uriparser_usable" >&5 -$as_echo "$uriparser_cv_lib_uriparser_usable" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $uriparser_cv_lib_uriparser_usable" >&5 +printf "%s\n" "$uriparser_cv_lib_uriparser_usable" >&6; } if test $uriparser_cv_lib_uriparser_usable = yes ; then -$as_echo "#define HAVE_URIPARSER 1" >>confdefs.h +printf "%s\n" "#define HAVE_URIPARSER 1" >>confdefs.h @@ -17336,10 +17659,10 @@ $as_echo "#define HAVE_URIPARSER 1" >>confdefs.h # This is the IF-NO path _can_enable_check_curl=no - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping curl plugin" >&5 -$as_echo "$as_me: WARNING: Skipping curl plugin" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install the uriparser library to compile this plugin (see REQUIREMENTS)." >&5 -$as_echo "$as_me: WARNING: install the uriparser library to compile this plugin (see REQUIREMENTS)." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping curl plugin" >&5 +printf "%s\n" "$as_me: WARNING: Skipping curl plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: install the uriparser library to compile this plugin (see REQUIREMENTS)." >&5 +printf "%s\n" "$as_me: WARNING: install the uriparser library to compile this plugin (see REQUIREMENTS)." >&2;} else # This is the IF-YES path @@ -17366,11 +17689,12 @@ if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no" then # Extract the first word of "who", so it can be a program name with args. set dummy who; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_WHO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_WHO+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_WHO in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_WHO="$PATH_TO_WHO" # Let the user override the test with a path. @@ -17380,11 +17704,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_WHO="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_WHO="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -17396,11 +17724,11 @@ esac fi PATH_TO_WHO=$ac_cv_path_PATH_TO_WHO if test -n "$PATH_TO_WHO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_WHO" >&5 -$as_echo "$PATH_TO_WHO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_WHO" >&5 +printf "%s\n" "$PATH_TO_WHO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -17413,27 +17741,27 @@ fi fi -cat >>confdefs.h <<_ACEOF -#define WHO_COMMAND "$ac_cv_path_to_who" -_ACEOF +printf "%s\n" "#define WHO_COMMAND \"$ac_cv_path_to_who\"" >>confdefs.h fi # Check whether --with-ipv6 was given. -if test "${with_ipv6+set}" = set; then : +if test ${with_ipv6+y} +then : withval=$with_ipv6; -else +else $as_nop with_ipv6=check fi if test "$with_ipv6" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 -$as_echo_n "checking for IPv6 support... " >&6; } -if ${np_cv_sys_ipv6+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 +printf %s "checking for IPv6 support... " >&6; } +if test ${np_cv_sys_ipv6+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -17443,7 +17771,7 @@ else #include #include int -main () +main (void) { struct sockaddr_in6 sin6; void *p; @@ -17455,75 +17783,73 @@ struct sockaddr_in6 sin6; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : np_cv_sys_ipv6=yes -else +else $as_nop np_cv_sys_ipv6=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $np_cv_sys_ipv6" >&5 -$as_echo "$np_cv_sys_ipv6" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $np_cv_sys_ipv6" >&5 +printf "%s\n" "$np_cv_sys_ipv6" >&6; } if test "$np_cv_sys_ipv6" = "no" -a "$with_ipv6" != "check"; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "--with-ipv6 was given, but test for IPv6 support failed See \`config.log' for more details" "$LINENO" 5; } fi if test "$np_cv_sys_ipv6" = "yes"; then -$as_echo "#define USE_IPV6 1" >>confdefs.h +printf "%s\n" "#define USE_IPV6 1" >>confdefs.h fi with_ipv6="$np_cv_sys_ipv6" fi -for ac_header in krb5.h + for ac_header in krb5.h do : - ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" -if test "x$ac_cv_header_krb5_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_KRB5_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" +if test "x$ac_cv_header_krb5_h" = xyes +then : + printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h FOUNDINCLUDE=yes -else +else $as_nop FOUNDINCLUDE=no fi done - if test "$FOUNDINCLUDE" = "no"; then _SAVEDCPPFLAGS="$CPPFLAGS" CPPFLAGS="$_SAVEDCPPFLAGS -I/usr/kerberos/include" unset ac_cv_header_krb5_h - for ac_header in krb5.h + for ac_header in krb5.h do : - ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" -if test "x$ac_cv_header_krb5_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_KRB5_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" +if test "x$ac_cv_header_krb5_h" = xyes +then : + printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h KRB5INCLUDE="-I/usr/kerberos/include" FOUNDINCLUDE=yes -else +else $as_nop FOUNDINCLUDE=no fi done - fi if test "$FOUNDINCLUDE" = "no"; then CPPFLAGS="$_SAVEDCPPFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -17532,43 +17858,41 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDL 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : + printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h LIBS="-ldl $LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldl" >&5 -$as_echo_n "checking for shl_load in -ldl... " >&6; } -if ${ac_cv_lib_dl_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldl" >&5 +printf %s "checking for shl_load in -ldl... " >&6; } +if test ${ac_cv_lib_dl_shl_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -17577,33 +17901,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char shl_load (); int -main () +main (void) { return shl_load (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_shl_load=yes -else +else $as_nop ac_cv_lib_dl_shl_load=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_shl_load" >&5 -$as_echo "$ac_cv_lib_dl_shl_load" >&6; } -if test "x$ac_cv_lib_dl_shl_load" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDL 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_shl_load" >&5 +printf "%s\n" "$ac_cv_lib_dl_shl_load" >&6; } +if test "x$ac_cv_lib_dl_shl_load" = xyes +then : + printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h LIBS="-ldl $LIBS" @@ -17627,39 +17948,39 @@ if ! test x"$with_openssl" = x"no"; then LDFLAGS="$LDFLAGS -L$with_openssl/lib" fi - for ac_header in openssl/ssl.h openssl/x509.h openssl/rsa.h openssl/pem.h openssl/crypto.h openssl/err.h + for ac_header in openssl/ssl.h openssl/x509.h openssl/rsa.h openssl/pem.h openssl/crypto.h openssl/err.h do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF SSLINCLUDE="-I$with_openssl/include" FOUNDINCLUDE=yes -else +else $as_nop FOUNDINCLUDE=no fi done - if test "$FOUNDINCLUDE" = "no"; then - for ac_header in ssl.h x509.h rsa.h pem.h crypto.h err.h + for ac_header in ssl.h x509.h rsa.h pem.h crypto.h err.h do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF SSLINCLUDE="-I$with_openssl/include" FOUNDINCLUDE=yes -else +else $as_nop FOUNDINCLUDE=no fi done - fi if test "$FOUNDINCLUDE" = "no"; then @@ -17669,11 +17990,12 @@ done _SAVEDLIBS="$LIBS" LIBS="-L${with_openssl}/lib" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5 -$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; } -if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5 +printf %s "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; } +if test ${ac_cv_lib_crypto_CRYPTO_new_ex_data+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -17682,44 +18004,42 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char CRYPTO_new_ex_data (); int -main () +main (void) { return CRYPTO_new_ex_data (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_crypto_CRYPTO_new_ex_data=yes -else +else $as_nop ac_cv_lib_crypto_CRYPTO_new_ex_data=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5 -$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; } -if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCRYPTO 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5 +printf "%s\n" "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes +then : + printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h LIBS="-lcrypto $LIBS" fi if test "$ac_cv_lib_crypto_CRYPTO_new_ex_data" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lssl" >&5 -$as_echo_n "checking for main in -lssl... " >&6; } -if ${ac_cv_lib_ssl_main+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lssl" >&5 +printf %s "checking for main in -lssl... " >&6; } +if test ${ac_cv_lib_ssl_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lssl -lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -17727,25 +18047,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ssl_main=yes -else +else $as_nop ac_cv_lib_ssl_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_main" >&5 -$as_echo "$ac_cv_lib_ssl_main" >&6; } -if test "x$ac_cv_lib_ssl_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_main" >&5 +printf "%s\n" "$ac_cv_lib_ssl_main" >&6; } +if test "x$ac_cv_lib_ssl_main" = xyes +then : SSLLIBS="-lssl -lcrypto" fi @@ -17766,24 +18088,23 @@ if test ! "$FOUNDOPENSSL" = "yes" && test ! "$with_gnutls" = "no"; then if test ! "$with_gnutls" = ""; then CPPFLAGS="$CPPFLAGS -I${with_gnutls}/include" fi - for ac_header in gnutls/openssl.h + for ac_header in gnutls/openssl.h do : - ac_fn_c_check_header_mongrel "$LINENO" "gnutls/openssl.h" "ac_cv_header_gnutls_openssl_h" "$ac_includes_default" -if test "x$ac_cv_header_gnutls_openssl_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GNUTLS_OPENSSL_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "gnutls/openssl.h" "ac_cv_header_gnutls_openssl_h" "$ac_includes_default" +if test "x$ac_cv_header_gnutls_openssl_h" = xyes +then : + printf "%s\n" "#define HAVE_GNUTLS_OPENSSL_H 1" >>confdefs.h FOUNDGNUTLS="yes" fi done - if test "$FOUNDGNUTLS" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgnutls-openssl" >&5 -$as_echo_n "checking for main in -lgnutls-openssl... " >&6; } -if ${ac_cv_lib_gnutls_openssl_main+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgnutls-openssl" >&5 +printf %s "checking for main in -lgnutls-openssl... " >&6; } +if test ${ac_cv_lib_gnutls_openssl_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lgnutls-openssl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -17791,25 +18112,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gnutls_openssl_main=yes -else +else $as_nop ac_cv_lib_gnutls_openssl_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_openssl_main" >&5 -$as_echo "$ac_cv_lib_gnutls_openssl_main" >&6; } -if test "x$ac_cv_lib_gnutls_openssl_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_openssl_main" >&5 +printf "%s\n" "$ac_cv_lib_gnutls_openssl_main" >&6; } +if test "x$ac_cv_lib_gnutls_openssl_main" = xyes +then : SSLLIBS="-lgnutls-openssl" fi @@ -17821,69 +18144,45 @@ if test "$FOUNDOPENSSL" = "yes" || test "$FOUNDGNUTLS" = "yes"; then -$as_echo "#define HAVE_SSL 1" >>confdefs.h +printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h if test "$FOUNDOPENSSL" = "yes"; then -$as_echo "#define USE_OPENSSL 1" >>confdefs.h +printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h with_openssl="yes" with_gnutls="no" else -$as_echo "#define USE_GNUTLS 1" >>confdefs.h +printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h with_gnutls="yes" with_openssl="no" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL or GnuTLS libs could not be found or were disabled" >&5 -$as_echo "$as_me: WARNING: OpenSSL or GnuTLS libs could not be found or were disabled" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL or GnuTLS libs could not be found or were disabled" >&5 +printf "%s\n" "$as_me: WARNING: OpenSSL or GnuTLS libs could not be found or were disabled" >&2;} with_openssl="no" with_gnutls="no" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 -$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } -if ${ac_cv_header_time+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -int -main () -{ -if ((struct tm *) 0) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_time=yes -else - ac_cv_header_time=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 -$as_echo "$ac_cv_header_time" >&6; } -if test $ac_cv_header_time = yes; then -$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h +# Obsolete code to be removed. +if test $ac_cv_header_sys_time_h = yes; then + +printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi +# End of obsolete code. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 -$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } -if ${ac_cv_header_sys_wait_h+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 +printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } +if test ${ac_cv_header_sys_wait_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -17896,7 +18195,7 @@ else #endif int -main () +main (void) { int s; wait (&s); @@ -17905,58 +18204,108 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_header_sys_wait_h=yes -else +else $as_nop ac_cv_header_sys_wait_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 -$as_echo "$ac_cv_header_sys_wait_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 +printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then -$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi -for ac_header in signal.h syslog.h uio.h errno.h sys/time.h sys/socket.h sys/un.h sys/poll.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" +if test "x$ac_cv_header_signal_h" = xyes +then : + printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" +if test "x$ac_cv_header_syslog_h" = xyes +then : + printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "uio.h" "ac_cv_header_uio_h" "$ac_includes_default" +if test "x$ac_cv_header_uio_h" = xyes +then : + printf "%s\n" "#define HAVE_UIO_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" +if test "x$ac_cv_header_errno_h" = xyes +then : + printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_time_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_socket_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_un_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_poll_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h fi -done +ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default" +if test "x$ac_cv_header_features_h" = xyes +then : + printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h -for ac_header in features.h stdarg.h sys/unistd.h ctype.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes +then : + printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/unistd.h" "ac_cv_header_sys_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_unistd_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_UNISTD_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" +if test "x$ac_cv_header_ctype_h" = xyes +then : + printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if ${ac_cv_c_const+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +printf %s "checking for an ANSI C-conforming const... " >&6; } +if test ${ac_cv_c_const+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __cplusplus @@ -17969,7 +18318,7 @@ main () /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. + /* IBM XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ @@ -17997,7 +18346,7 @@ main () iptr p = 0; ++p; } - { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; @@ -18013,33 +18362,35 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_const=yes -else +else $as_nop ac_cv_c_const=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then -$as_echo "#define const /**/" >>confdefs.h +printf "%s\n" "#define const /**/" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 -$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } -if ${ac_cv_struct_tm+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if test ${ac_cv_struct_tm+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { struct tm tm; int *p = &tm.tm_sec; @@ -18048,27 +18399,29 @@ struct tm tm; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_struct_tm=time.h -else +else $as_nop ac_cv_struct_tm=sys/time.h fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 -$as_echo "$ac_cv_struct_tm" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +printf "%s\n" "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then -$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h +printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default " -if test "x$ac_cv_type_pid_t" = xyes; then : +if test "x$ac_cv_type_pid_t" = xyes +then : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18077,7 +18430,7 @@ else #endif int -main () +main (void) { ; @@ -18085,97 +18438,99 @@ main () } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_pid_type='int' -else - gl_pid_type='__int64' +if ac_fn_c_try_compile "$LINENO" +then : + ac_pid_type='int' +else $as_nop + ac_pid_type='__int64' fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define pid_t $gl_pid_type -_ACEOF +printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : +if test "x$ac_cv_type_size_t" = xyes +then : -else +else $as_nop -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF +printf "%s\n" "#define size_t unsigned int" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 -$as_echo_n "checking for va_copy... " >&6; } -if ${ac_cv_HAVE_VA_COPY+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 +printf %s "checking for va_copy... " >&6; } +if test ${ac_cv_HAVE_VA_COPY+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include va_list ap1,ap2; int -main () +main (void) { va_copy(ap1,ap2); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_HAVE_VA_COPY=yes -else +else $as_nop ac_cv_HAVE_VA_COPY=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_VA_COPY" >&5 -$as_echo "$ac_cv_HAVE_VA_COPY" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_VA_COPY" >&5 +printf "%s\n" "$ac_cv_HAVE_VA_COPY" >&6; } if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then -$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h +printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5 -$as_echo_n "checking for __va_copy... " >&6; } -if ${ac_cv_HAVE___VA_COPY+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5 +printf %s "checking for __va_copy... " >&6; } +if test ${ac_cv_HAVE___VA_COPY+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include va_list ap1,ap2; int -main () +main (void) { __va_copy(ap1,ap2); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_HAVE___VA_COPY=yes -else +else $as_nop ac_cv_HAVE___VA_COPY=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE___VA_COPY" >&5 -$as_echo "$ac_cv_HAVE___VA_COPY" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE___VA_COPY" >&5 +printf "%s\n" "$ac_cv_HAVE___VA_COPY" >&6; } if test x"$ac_cv_HAVE___VA_COPY" = x"yes"; then -$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h +printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h fi fi @@ -18184,7 +18539,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { struct timeval *tv; struct timezone *tz; @@ -18192,20 +18547,21 @@ struct timeval *tv; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h +printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h FOUND_STRUCT_TIMEVAL="yes" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test x"$FOUND_STRUCT_TIMEVAL" = x"yes"; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { struct timeval *tv; struct timezone *tz; @@ -18214,83 +18570,117 @@ struct timeval *tv; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h -else +else $as_nop -$as_echo "#define NEED_GETTIMEOFDAY 1" >>confdefs.h +printf "%s\n" "#define NEED_GETTIMEOFDAY 1" >>confdefs.h fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -for ac_func in memmove select socket strdup strstr strtol strtoul floor -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" +if test "x$ac_cv_func_memmove" = xyes +then : + printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h fi -done - -for ac_func in poll -do : - ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" -if test "x$ac_cv_func_poll" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_POLL 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" +if test "x$ac_cv_func_select" = xyes +then : + printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" +if test "x$ac_cv_func_socket" = xyes +then : + printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" +if test "x$ac_cv_func_strdup" = xyes +then : + printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" +if test "x$ac_cv_func_strstr" = xyes +then : + printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" +if test "x$ac_cv_func_strtol" = xyes +then : + printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" +if test "x$ac_cv_func_strtoul" = xyes +then : + printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor" +if test "x$ac_cv_func_floor" = xyes +then : + printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" +if test "x$ac_cv_func_poll" = xyes +then : + printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h fi -done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of socket size" >&5 -$as_echo_n "checking return type of socket size... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of socket size" >&5 +printf %s "checking return type of socket size... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int -main () +main (void) { int a = send(1, (const void *) buffer, (size_t *) 0, (int *) 0); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_socket_size_type="size_t" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5 -$as_echo "size_t" >&6; } -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: size_t" >&5 +printf "%s\n" "size_t" >&6; } +else $as_nop ac_cv_socket_size_type="int" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 -$as_echo "int" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5 +printf "%s\n" "int" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define SOCKET_SIZE_TYPE $ac_cv_socket_size_type -_ACEOF +printf "%s\n" "#define SOCKET_SIZE_TYPE $ac_cv_socket_size_type " >>confdefs.h # Extract the first word of "ps", so it can be a program name with args. set dummy ps; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_PS+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_PS+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_PS in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_PS="$PATH_TO_PS" # Let the user override the test with a path. @@ -18300,11 +18690,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_PS="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_PS="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18316,21 +18710,22 @@ esac fi PATH_TO_PS=$ac_cv_path_PATH_TO_PS if test -n "$PATH_TO_PS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_PS" >&5 -$as_echo "$PATH_TO_PS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_PS" >&5 +printf "%s\n" "$PATH_TO_PS" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "env", so it can be a program name with args. set dummy env; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_ENV+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_ENV+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_ENV in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_ENV="$PATH_TO_ENV" # Let the user override the test with a path. @@ -18340,11 +18735,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_ENV="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_ENV="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18356,38 +18755,42 @@ esac fi PATH_TO_ENV=$ac_cv_path_PATH_TO_ENV if test -n "$PATH_TO_ENV"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_ENV" >&5 -$as_echo "$PATH_TO_ENV" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_ENV" >&5 +printf "%s\n" "$PATH_TO_ENV" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ps syntax" >&5 -$as_echo_n "checking for ps syntax... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ps syntax" >&5 +printf %s "checking for ps syntax... " >&6; } # Check whether --with-ps_command was given. -if test "${with_ps_command+set}" = set; then : +if test ${with_ps_command+y} +then : withval=$with_ps_command; PS_COMMAND=$withval fi # Check whether --with-ps_format was given. -if test "${with_ps_format+set}" = set; then : +if test ${with_ps_format+y} +then : withval=$with_ps_format; PS_FORMAT=$withval fi # Check whether --with-ps_cols was given. -if test "${with_ps_cols+set}" = set; then : +if test ${with_ps_cols+y} +then : withval=$with_ps_cols; PS_COLS=$withval fi # Check whether --with-ps_varlist was given. -if test "${with_ps_varlist+set}" = set; then : +if test ${with_ps_varlist+y} +then : withval=$with_ps_varlist; PS_VARLIST=$withval fi @@ -18397,8 +18800,8 @@ if test -n "$PS_COMMAND" && test -n "$PS_FORMAT" && test -n "$PS_COLS" && test - ac_cv_ps_format="$PS_FORMAT" ac_cv_ps_varlist="$PS_VARLIST" ac_cv_ps_cols="$PS_COLS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (command-line) $ac_cv_ps_command" >&5 -$as_echo "(command-line) $ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (command-line) $ac_cv_ps_command" >&5 +printf "%s\n" "(command-line) $ac_cv_ps_command" >&6; } elif test "$ac_cv_uname_s" = "SunOS"; then # @@ -18421,15 +18824,15 @@ elif test "$ac_cv_uname_s" = "SunOS"; then ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using monitoring-plugins internal ps command (pst3) for solaris" >&5 -$as_echo "using monitoring-plugins internal ps command (pst3) for solaris" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using monitoring-plugins internal ps command (pst3) for solaris" >&5 +printf "%s\n" "using monitoring-plugins internal ps command (pst3) for solaris" >&6; } if test `isainfo -b` = 64 ; then pst3_use_64bit=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: using 64bit pst3" >&5 -$as_echo "$as_me: using 64bit pst3" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using 64bit pst3" >&5 +printf "%s\n" "$as_me: using 64bit pst3" >&6;} else - { $as_echo "$as_me:${as_lineno-$LINENO}: using 32bit pst3" >&5 -$as_echo "$as_me: using 32bit pst3" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using 32bit pst3" >&5 +printf "%s\n" "$as_me: using 32bit pst3" >&6;} fi EXTRAS_ROOT="$EXTRAS_ROOT pst3\$(EXEEXT)" @@ -18437,17 +18840,18 @@ $as_echo "$as_me: using 32bit pst3" >&6;} old_cflags=$CFLAGS CFLAGS="$CFLAGS -m64" pst3_64bit_working=0 - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "$cross_compiling" = yes +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return sizeof(void*) == 8 ? 0 : 1; @@ -18457,19 +18861,20 @@ return sizeof(void*) == 8 ? 0 : 1; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : PST3CFLAGS="-m64" pst3_64bit_working=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: using -m64 for 64bit code" >&5 -$as_echo "$as_me: using -m64 for 64bit code" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using -m64 for 64bit code" >&5 +printf "%s\n" "$as_me: using -m64 for 64bit code" >&6;} -else +else $as_nop pst3_64bit_working=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: compiler do not like -m64" >&5 -$as_echo "$as_me: compiler do not like -m64" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler do not like -m64" >&5 +printf "%s\n" "$as_me: compiler do not like -m64" >&6;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -18480,17 +18885,18 @@ fi if test "$pst3_64bit_working" = 0; then old_cflags=$CFLAGS CFLAGS="$CFLAGS -xarch=v9" - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "$cross_compiling" = yes +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return sizeof(void*) == 8 ? 0 : 1; @@ -18500,19 +18906,20 @@ return sizeof(void*) == 8 ? 0 : 1; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : PST3CFLAGS="-xarch=v9" pst3_64bit_working=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: using -xarch=v9 for 64bit code" >&5 -$as_echo "$as_me: using -xarch=v9 for 64bit code" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using -xarch=v9 for 64bit code" >&5 +printf "%s\n" "$as_me: using -xarch=v9 for 64bit code" >&6;} -else +else $as_nop pst3_64bit_working=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: compiler do not like -xarch=v9" >&5 -$as_echo "$as_me: compiler do not like -xarch=v9" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler do not like -xarch=v9" >&5 +printf "%s\n" "$as_me: compiler do not like -xarch=v9" >&6;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -18524,17 +18931,18 @@ fi if test "$pst3_64bit_working" = 0; then old_cflags=$CFLAGS CFLAGS="$CFLAGS -xarch=amd64" - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "$cross_compiling" = yes +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return sizeof(void*) == 8 ? 0 : 1; @@ -18544,19 +18952,20 @@ return sizeof(void*) == 8 ? 0 : 1; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : PST3CFLAGS="-xarch=amd64" pst3_64bit_working=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: using -xarch=amd64 for 64bit code" >&5 -$as_echo "$as_me: using -xarch=amd64 for 64bit code" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using -xarch=amd64 for 64bit code" >&5 +printf "%s\n" "$as_me: using -xarch=amd64 for 64bit code" >&6;} -else +else $as_nop pst3_64bit_working=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: compiler do not like -xarch=amd64" >&5 -$as_echo "$as_me: compiler do not like -xarch=amd64" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler do not like -xarch=amd64" >&5 +printf "%s\n" "$as_me: compiler do not like -xarch=amd64" >&6;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -18578,8 +18987,8 @@ then ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu etime comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %s %n" ac_cv_ps_cols=10 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ grep -E -i "^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND" > /dev/null @@ -18588,8 +18997,8 @@ then ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ grep -E -i "^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND" > /dev/null @@ -18598,8 +19007,8 @@ then ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command' 2>/dev/null | \ grep -E -i "^ *STAT +UID +PID +PPID +VSZ +RSS +%CPU +UCOMM +COMMAND" > /dev/null @@ -18608,8 +19017,8 @@ then ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -weo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \ grep -E -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[ID]+ +P[PID]+ +[ELAPSD]+ +[RGSCOMDNA]+" >/dev/null @@ -18618,8 +19027,8 @@ then ac_cv_ps_command="$PATH_TO_PS -weo 'stat uid pid ppid vsz rss pcpu etime comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %s %n" ac_cv_ps_cols=10 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps waxco 'state command vsz rss uid user pid ppid' 2>/dev/null | \ grep -E -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PID +PPID" >/dev/null @@ -18628,8 +19037,8 @@ then ac_cv_ps_command="$PATH_TO_PS waxco 'state uid pid ppid vsz rss pcpu command command'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps waxno 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ grep -E -i "^S +COMMAND +VSZ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+" >/dev/null @@ -18638,8 +19047,8 @@ then ac_cv_ps_command="$PATH_TO_PS waxno 'state uid pid ppid vsz rss pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -laxnwww 2>/dev/null | head -1 | \ grep -E -i "^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND" >/dev/null @@ -18648,8 +19057,8 @@ then ac_cv_ps_command="$PATH_TO_PS -laxnwww" ac_cv_ps_format="%*s %d %d %d %*s %*s %*s %d %d %*s %s %*s %*s %n%s" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps laxnwww 2>/dev/null | \ grep -E -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null @@ -18658,8 +19067,8 @@ then ac_cv_ps_command="$PATH_TO_PS laxnwww" ac_cv_ps_format="%*s %d %d %d %*s %*s %d %d %*s %s %*s %*s %n%s" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -axo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ grep -E -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null @@ -18668,8 +19077,8 @@ then ac_cv_ps_command="$PATH_TO_PS -axo 'stat uid pid ppid vsz rss pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif /sbin/ps -eo 'stat uid pid ppid pcpu etime comm args' 2>/dev/null | \ grep -E -i "^ *S +[UID]+ +[PID]+ +[PID]+ +[%CPU]+ +[ELAPSD]+ +[COMMAND]+ +[COMMAND]+" > /dev/null @@ -18678,8 +19087,8 @@ then ac_cv_ps_command="/sbin/ps -eo 'stat uid pid ppid pcpu etime comm args'" ac_cv_ps_format="%s%*[ +<>] %d %d %d %f %s %s %n" ac_cv_ps_cols=8 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -eo 's comm vsz rss user uid pid ppid args' 2>/dev/null | \ grep -E -i "^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null @@ -18688,8 +19097,8 @@ then ac_cv_ps_command="$PATH_TO_PS -eo 's uid pid ppid vsz rss pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -eo 'stat uid pid ppid vsz pcpu comm args' 2>/dev/null | \ grep -E -i "^ *S[TAUES]* +UID +PID +PPID +VSZ +%CPU +COMMAND +COMMAND" >/dev/null @@ -18698,8 +19107,8 @@ then ac_cv_ps_command="$PATH_TO_PS -eo 'stat uid pid ppid vsz pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %f %s %n" ac_cv_ps_cols=8 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command - with no RSS" >&5 -$as_echo "$ac_cv_ps_command - with no RSS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command - with no RSS" >&5 +printf "%s\n" "$ac_cv_ps_command - with no RSS" >&6; } elif ps -Ao 's comm vsz rss uid user pid ppid args' 2>/dev/null | \ grep -E -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+" >/dev/null @@ -18710,8 +19119,8 @@ then # it will return %n as longer than the line length ac_cv_ps_format="%s %d %d %d %d %d %f %s%n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -Ao 'status comm vsz rss uid user pid ppid args' 2>/dev/null | \ grep -E -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+" >/dev/null @@ -18720,8 +19129,8 @@ then ac_cv_ps_command="$PATH_TO_PS -Ao 'status uid pid ppid vsz rss pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -Ao 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ grep -E -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+" >/dev/null @@ -18730,8 +19139,8 @@ then ac_cv_ps_command="$PATH_TO_PS -Ao 'state uid pid ppid vsz rss pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=9 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -ao 'state command vsz rss user pid ppid args' 2>/dev/null | \ grep -E -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+" >/dev/null @@ -18740,8 +19149,8 @@ then ac_cv_ps_command="$PATH_TO_PS -ao 'state uid pid ppid vsz rss pcpu command args'" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=8 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -el 2>/dev/null | \ grep -E -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null @@ -18750,8 +19159,8 @@ then ac_cv_ps_command="$PATH_TO_PS -el (IRIX 53)" ac_cv_ps_format="%*s %s %d %d %d %*s %*s %*s %*s %d %d %*s %*s %*s %n%s" ac_cv_ps_cols=8 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -el 2>/dev/null | \ grep -E -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null @@ -18760,8 +19169,8 @@ then ac_cv_ps_command="$PATH_TO_PS -el (IRIX 63)" ac_cv_ps_format="%*s %s %d %d %d %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %n%s" ac_cv_ps_cols=6 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \ grep -E -i "^ *S +UID +RUID +USER +RUSER +PID +PPID +VSZ +%CPU +COMMAND +COMMAND" >/dev/null @@ -18770,8 +19179,8 @@ then ac_cv_ps_command="$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid pid ppid vsz pcpu comm args'" ac_cv_ps_format="%s %d %d %d %d %f %s %n" ac_cv_ps_cols=8 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -el 2>/dev/null | \ grep -E -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null @@ -18780,8 +19189,8 @@ then ac_cv_ps_command="$PATH_TO_PS -el (AIX 4.1 and HP-UX)" ac_cv_ps_format="%*s %s %d %d %d %*s %*s %*s %*s %*s %*s %*s %*s %n%s" ac_cv_ps_cols=6 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps glaxen 2>/dev/null | \ grep -E -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null @@ -18790,8 +19199,8 @@ then ac_cv_ps_command="$PATH_TO_PS glaxen" ac_cv_ps_format="%*s %d %d %d %*s %*s %d %d %*s %s %*s %*s %n%s" ac_cv_ps_cols=8 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps wwaxo 'state vsz rss uid pid ppid pcpu ucomm command' 2>/dev/null | \ grep -E -i "^STAT +VSZ +RSS +UID +PPID +%CPU +UCOMM +COMMAND" >/dev/null @@ -18800,8 +19209,8 @@ then ac_cv_ps_varlist="procstat,&procvsz,&procrss,&procuid,&procpid,&procppid,&procpcpu,procprog,&pos" ac_cv_ps_format="%s %d %d %d %d %d %f %s %n" ac_cv_ps_cols=8 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } elif ps -Al 2>/dev/null | \ grep -E -i "^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD" >/dev/null @@ -18810,55 +19219,48 @@ then ac_cv_ps_command="$PATH_TO_PS -Al" ac_cv_ps_format="%*s %s %d %d %d %*s %*s %*s %*s %*s %*s %*s %*s %*s %n%s" ac_cv_ps_cols=8 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 -$as_echo "$ac_cv_ps_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5 +printf "%s\n" "$ac_cv_ps_command" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find usable ps syntax - check_procs and check_nagios will not be compiled" >&5 -$as_echo "$as_me: WARNING: unable to find usable ps syntax - check_procs and check_nagios will not be compiled" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to find usable ps syntax - check_procs and check_nagios will not be compiled" >&5 +printf "%s\n" "$as_me: WARNING: unable to find usable ps syntax - check_procs and check_nagios will not be compiled" >&2;} fi if test -n "$ac_cv_ps_varlist" ; then -cat >>confdefs.h <<_ACEOF -#define PS_VARLIST $ac_cv_ps_varlist -_ACEOF +printf "%s\n" "#define PS_VARLIST $ac_cv_ps_varlist" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PS_COMMAND "$ac_cv_ps_command" -_ACEOF +printf "%s\n" "#define PS_COMMAND \"$ac_cv_ps_command\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PS_FORMAT "$ac_cv_ps_format" -_ACEOF +printf "%s\n" "#define PS_FORMAT \"$ac_cv_ps_format\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PS_COLS $ac_cv_ps_cols -_ACEOF +printf "%s\n" "#define PS_COLS $ac_cv_ps_cols" >>confdefs.h EXTRAS="$EXTRAS check_procs check_nagios\$(EXEEXT)" if echo "$ac_cv_ps_varlist" | grep "procetime" >/dev/null; then -$as_echo "#define PS_USES_PROCETIME \"yes\"" >>confdefs.h +printf "%s\n" "#define PS_USES_PROCETIME \"yes\"" >>confdefs.h fi if echo "$ac_cv_ps_varlist" | grep "procpcpu" >/dev/null; then -$as_echo "#define PS_USES_PROCPCPU \"yes\"" >>confdefs.h +printf "%s\n" "#define PS_USES_PROCPCPU \"yes\"" >>confdefs.h fi fi # Extract the first word of "ping", so it can be a program name with args. set dummy ping; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_PING+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_PING+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_PING in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_PING="$PATH_TO_PING" # Let the user override the test with a path. @@ -18868,11 +19270,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_PING="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_PING="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18884,21 +19290,22 @@ esac fi PATH_TO_PING=$ac_cv_path_PATH_TO_PING if test -n "$PATH_TO_PING"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_PING" >&5 -$as_echo "$PATH_TO_PING" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_PING" >&5 +printf "%s\n" "$PATH_TO_PING" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "ping6", so it can be a program name with args. set dummy ping6; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_PING6+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_PING6+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_PING6 in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_PING6="$PATH_TO_PING6" # Let the user override the test with a path. @@ -18908,11 +19315,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_PING6="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_PING6="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18924,30 +19335,31 @@ esac fi PATH_TO_PING6=$ac_cv_path_PATH_TO_PING6 if test -n "$PATH_TO_PING6"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_PING6" >&5 -$as_echo "$PATH_TO_PING6" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_PING6" >&5 +printf "%s\n" "$PATH_TO_PING6" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-ping_command was given. -if test "${with_ping_command+set}" = set; then : +if test ${with_ping_command+y} +then : withval=$with_ping_command; with_ping_command=$withval fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICMP ping syntax" >&5 -$as_echo_n "checking for ICMP ping syntax... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICMP ping syntax" >&5 +printf %s "checking for ICMP ping syntax... " >&6; } ac_cv_ping_packets_first=no ac_cv_ping_has_timeout=no if test -n "$with_ping_command" then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (command-line) $with_ping_command" >&5 -$as_echo "(command-line) $with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (command-line) $with_ping_command" >&5 +printf "%s\n" "(command-line) $with_ping_command" >&6; } if echo "$with_ping_command" | grep '%d.*%d.*%s' >/dev/null then ac_cv_ping_packets_first=yes @@ -18966,8 +19378,8 @@ then with_ping_command="$PATH_TO_PING -n %d -w %d000 %s" ac_cv_ping_packets_first=yes ac_cv_ping_has_timeout=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif [ "z$ac_cv_uname_s" = "zUnixWare" ] && \ $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ @@ -18975,8 +19387,8 @@ elif [ "z$ac_cv_uname_s" = "zUnixWare" ] && \ then with_ping_command="$PATH_TO_PING -n -U -c %d %s" ac_cv_ping_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null @@ -18985,117 +19397,116 @@ then with_ping_command="$PATH_TO_PING -4 -n -U -w %d -c %d %s" ac_cv_ping_packets_first=yes ac_cv_ping_has_timeout=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s" ac_cv_ping_packets_first=yes ac_cv_ping_has_timeout=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING -n -U -c %d %s" ac_cv_ping_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING -n -c %d %s" ac_cv_ping_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING -n %s -c %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING %s -n %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING -n -s %s 56 %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s" ac_cv_ping_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping_command="$PATH_TO_PING -n -c %d %s" ac_cv_ping_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find usable ping syntax" >&5 -$as_echo "$as_me: WARNING: unable to find usable ping syntax" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to find usable ping syntax" >&5 +printf "%s\n" "$as_me: WARNING: unable to find usable ping syntax" >&2;} fi -cat >>confdefs.h <<_ACEOF -#define PING_COMMAND "$with_ping_command" -_ACEOF +printf "%s\n" "#define PING_COMMAND \"$with_ping_command\"" >>confdefs.h if test "x$ac_cv_ping_packets_first" != "xno" then -$as_echo "#define PING_PACKETS_FIRST 1" >>confdefs.h +printf "%s\n" "#define PING_PACKETS_FIRST 1" >>confdefs.h fi if test "x$ac_cv_ping_has_timeout" != "xno" then -$as_echo "#define PING_HAS_TIMEOUT 1" >>confdefs.h +printf "%s\n" "#define PING_HAS_TIMEOUT 1" >>confdefs.h fi # Check whether --with-ping6_command was given. -if test "${with_ping6_command+set}" = set; then : +if test ${with_ping6_command+y} +then : withval=$with_ping6_command; with_ping6_command=$withval fi if test x"$with_ipv6" != xno ; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICMPv6 ping syntax" >&5 -$as_echo_n "checking for ICMPv6 ping syntax... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICMPv6 ping syntax" >&5 +printf %s "checking for ICMPv6 ping syntax... " >&6; } ac_cv_ping6_packets_first=no if test -n "$with_ping6_command" then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (command-line) $with_ping6_command" >&5 -$as_echo "(command-line) $with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (command-line) $with_ping6_command" >&5 +printf "%s\n" "(command-line) $with_ping6_command" >&6; } if echo "$with_ping6_command" | grep '%d.*%d.*%s' >/dev/null then ac_cv_ping6_packets_first=yes @@ -19112,8 +19523,8 @@ elif [ "z$ac_cv_uname_o" = "zCygwin" -a "x$PATH_TO_PING" != "x" ]; then with_ping6_command="$PATH_TO_PING -6 -n %d -w %d000 %s" ac_cv_ping6_packets_first=yes ac_cv_ping_has_timeout=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif test "x$PATH_TO_PING6" != "x"; then if [ "z$ac_cv_uname_s" = "zUnixWare" ] && \ $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ @@ -19121,8 +19532,8 @@ elif test "x$PATH_TO_PING6" != "x"; then then with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING6 -n -U -w 10 -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null @@ -19130,68 +19541,68 @@ $as_echo "$with_ping6_command" >&6; } with_ping6_command="$PATH_TO_PING6 -n -U -w %d -c %d %s" ac_cv_ping6_packets_first=yes ac_cv_ping_has_timeout=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING6 -n -U -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING6 -n -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING6 -n ::1 -c 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING6 -n %s -c %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING6 ::1 -n 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING6 %s -n %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING6 -n -s %s 56 %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING6 -n -h %s -s 56 -c %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING6 -n -s 56 -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING6 -n -s 56 -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING6 -n -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } fi @@ -19202,68 +19613,68 @@ elif test "x$PATH_TO_PING" != "x"; then then with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING -A inet6 -n -U -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING -A inet6 -n ::1 -c 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING -A inet6 -n %s -c %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING -A inet6 ::1 -n 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING -A inet6 %s -n %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING -A inet6 -n -s %s 56 %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING -A inet6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING -A inet6 -n -h %s -s 56 -c %d" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } elif $PATH_TO_PING -A inet6 -n -s 56 -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING -A inet6 -n -s 56 -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 -$as_echo "$with_ping_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping_command" >&5 +printf "%s\n" "$with_ping_command" >&6; } elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ grep -E -i "^round-trip|^rtt" >/dev/null then with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" ac_cv_ping6_packets_first=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 -$as_echo "$with_ping6_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ping6_command" >&5 +printf "%s\n" "$with_ping6_command" >&6; } fi @@ -19271,18 +19682,16 @@ fi if test "x$with_ping6_command" != "x"; then -cat >>confdefs.h <<_ACEOF -#define PING6_COMMAND "$with_ping6_command" -_ACEOF +printf "%s\n" "#define PING6_COMMAND \"$with_ping6_command\"" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 +printf "%s\n" "none" >&6; } fi if test "x$ac_cv_ping6_packets_first" != "xno"; then -$as_echo "#define PING6_PACKETS_FIRST 1" >>confdefs.h +printf "%s\n" "#define PING6_PACKETS_FIRST 1" >>confdefs.h fi fi @@ -19290,21 +19699,23 @@ fi # Check whether --with-nslookup_command was given. -if test "${with_nslookup_command+set}" = set; then : +if test ${with_nslookup_command+y} +then : withval=$with_nslookup_command; ac_cv_nslookup_command=$withval fi if test -n "$ac_cv_nslookup_command"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: Using specific nslookup at $ac_cv_nslookup_command" >&5 -$as_echo "$as_me: Using specific nslookup at $ac_cv_nslookup_command" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using specific nslookup at $ac_cv_nslookup_command" >&5 +printf "%s\n" "$as_me: Using specific nslookup at $ac_cv_nslookup_command" >&6;} else # Extract the first word of "nslookup", so it can be a program name with args. set dummy nslookup; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_NSLOOKUP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_NSLOOKUP+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_NSLOOKUP in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_NSLOOKUP="$PATH_TO_NSLOOKUP" # Let the user override the test with a path. @@ -19314,11 +19725,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_NSLOOKUP="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_NSLOOKUP="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19330,104 +19745,105 @@ esac fi PATH_TO_NSLOOKUP=$ac_cv_path_PATH_TO_NSLOOKUP if test -n "$PATH_TO_NSLOOKUP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_NSLOOKUP" >&5 -$as_echo "$PATH_TO_NSLOOKUP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_NSLOOKUP" >&5 +printf "%s\n" "$PATH_TO_NSLOOKUP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test -n "$PATH_TO_NSLOOKUP" then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nslookup syntax" >&5 -$as_echo_n "checking for nslookup syntax... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nslookup syntax" >&5 +printf %s "checking for nslookup syntax... " >&6; } if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null then ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nslookup_command" >&5 -$as_echo "$ac_cv_nslookup_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nslookup_command" >&5 +printf "%s\n" "$ac_cv_nslookup_command" >&6; } else ac_cv_nslookup_command="$PATH_TO_NSLOOKUP -sil" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nslookup_command" >&5 -$as_echo "$ac_cv_nslookup_command" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nslookup_command" >&5 +printf "%s\n" "$ac_cv_nslookup_command" >&6; } fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nslookup command not found" >&5 -$as_echo "$as_me: WARNING: nslookup command not found" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nslookup command not found" >&5 +printf "%s\n" "$as_me: WARNING: nslookup command not found" >&2;} fi fi if test -n "$ac_cv_nslookup_command"; then EXTRAS="$EXTRAS check_dns\$(EXEEXT)" -cat >>confdefs.h <<_ACEOF -#define NSLOOKUP_COMMAND "$ac_cv_nslookup_command" -_ACEOF +printf "%s\n" "#define NSLOOKUP_COMMAND \"$ac_cv_nslookup_command\"" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of online cpus" >&5 -$as_echo_n "checking for number of online cpus... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for number of online cpus" >&5 +printf %s "checking for number of online cpus... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { sysconf(_SC_NPROCESSORS_ONLN) > 0; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_SYSCONF__SC_NPROCESSORS_ONLN 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYSCONF__SC_NPROCESSORS_ONLN 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysconf(_SC_NPROCESSORS_ONLN)" >&5 -$as_echo "sysconf(_SC_NPROCESSORS_ONLN)" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot calculate" >&5 -$as_echo "cannot calculate" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sysconf(_SC_NPROCESSORS_ONLN)" >&5 +printf "%s\n" "sysconf(_SC_NPROCESSORS_ONLN)" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot calculate" >&5 +printf "%s\n" "cannot calculate" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of available cpus" >&5 -$as_echo_n "checking for number of available cpus... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for number of available cpus" >&5 +printf %s "checking for number of available cpus... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { sysconf(_SC_NPROCESSORS_CONF) > 0; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_SYSCONF__SC_NPROCESSORS_CONF 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYSCONF__SC_NPROCESSORS_CONF 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysconf(_SC_NPROCESSORS_CONF)" >&5 -$as_echo "sysconf(_SC_NPROCESSORS_CONF)" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot calculate" >&5 -$as_echo "cannot calculate" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sysconf(_SC_NPROCESSORS_CONF)" >&5 +printf "%s\n" "sysconf(_SC_NPROCESSORS_CONF)" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot calculate" >&5 +printf "%s\n" "cannot calculate" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Extract the first word of "uptime", so it can be a program name with args. set dummy uptime; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_UPTIME+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_UPTIME+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_UPTIME in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_UPTIME="$PATH_TO_UPTIME" # Let the user override the test with a path. @@ -19437,11 +19853,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_UPTIME="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_UPTIME="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19453,33 +19873,33 @@ esac fi PATH_TO_UPTIME=$ac_cv_path_PATH_TO_UPTIME if test -n "$PATH_TO_UPTIME"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_UPTIME" >&5 -$as_echo "$PATH_TO_UPTIME" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_UPTIME" >&5 +printf "%s\n" "$PATH_TO_UPTIME" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-uptime_command was given. -if test "${with_uptime_command+set}" = set; then : +if test ${with_uptime_command+y} +then : withval=$with_uptime_command; PATH_TO_UPTIME=$withval fi -cat >>confdefs.h <<_ACEOF -#define PATH_TO_UPTIME "$PATH_TO_UPTIME" -_ACEOF +printf "%s\n" "#define PATH_TO_UPTIME \"$PATH_TO_UPTIME\"" >>confdefs.h # Extract the first word of "rpcinfo", so it can be a program name with args. set dummy rpcinfo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_RPCINFO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_RPCINFO+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_RPCINFO in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_RPCINFO="$PATH_TO_RPCINFO" # Let the user override the test with a path. @@ -19489,11 +19909,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_RPCINFO="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_RPCINFO="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19505,33 +19929,33 @@ esac fi PATH_TO_RPCINFO=$ac_cv_path_PATH_TO_RPCINFO if test -n "$PATH_TO_RPCINFO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_RPCINFO" >&5 -$as_echo "$PATH_TO_RPCINFO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_RPCINFO" >&5 +printf "%s\n" "$PATH_TO_RPCINFO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-rpcinfo_command was given. -if test "${with_rpcinfo_command+set}" = set; then : +if test ${with_rpcinfo_command+y} +then : withval=$with_rpcinfo_command; PATH_TO_RPCINFO=$withval fi -cat >>confdefs.h <<_ACEOF -#define PATH_TO_RPCINFO "$PATH_TO_RPCINFO" -_ACEOF +printf "%s\n" "#define PATH_TO_RPCINFO \"$PATH_TO_RPCINFO\"" >>confdefs.h # Extract the first word of "lmstat", so it can be a program name with args. set dummy lmstat; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_LMSTAT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_LMSTAT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_LMSTAT in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_LMSTAT="$PATH_TO_LMSTAT" # Let the user override the test with a path. @@ -19541,11 +19965,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_LMSTAT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_LMSTAT="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19557,33 +19985,32 @@ esac fi PATH_TO_LMSTAT=$ac_cv_path_PATH_TO_LMSTAT if test -n "$PATH_TO_LMSTAT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_LMSTAT" >&5 -$as_echo "$PATH_TO_LMSTAT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_LMSTAT" >&5 +printf "%s\n" "$PATH_TO_LMSTAT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test -x "$PATH_TO_LMSTAT" then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_LMSTAT "$PATH_TO_LMSTAT" -_ACEOF +printf "%s\n" "#define PATH_TO_LMSTAT \"$PATH_TO_LMSTAT\"" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Get lmstat from Globetrotter Software to monitor flexlm licenses" >&5 -$as_echo "$as_me: WARNING: Get lmstat from Globetrotter Software to monitor flexlm licenses" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Get lmstat from Globetrotter Software to monitor flexlm licenses" >&5 +printf "%s\n" "$as_me: WARNING: Get lmstat from Globetrotter Software to monitor flexlm licenses" >&2;} fi # Extract the first word of "smbclient", so it can be a program name with args. set dummy smbclient; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_SMBCLIENT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_SMBCLIENT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_SMBCLIENT in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_SMBCLIENT="$PATH_TO_SMBCLIENT" # Let the user override the test with a path. @@ -19593,11 +20020,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_SMBCLIENT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_SMBCLIENT="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19609,39 +20040,39 @@ esac fi PATH_TO_SMBCLIENT=$ac_cv_path_PATH_TO_SMBCLIENT if test -n "$PATH_TO_SMBCLIENT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SMBCLIENT" >&5 -$as_echo "$PATH_TO_SMBCLIENT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SMBCLIENT" >&5 +printf "%s\n" "$PATH_TO_SMBCLIENT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-smbclient_command was given. -if test "${with_smbclient_command+set}" = set; then : +if test ${with_smbclient_command+y} +then : withval=$with_smbclient_command; PATH_TO_SMBCLIENT=$withval fi if test -n "$PATH_TO_SMBCLIENT" then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_SMBCLIENT "$PATH_TO_SMBCLIENT" -_ACEOF +printf "%s\n" "#define PATH_TO_SMBCLIENT \"$PATH_TO_SMBCLIENT\"" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Get smbclient from Samba.org to monitor SMB shares" >&5 -$as_echo "$as_me: WARNING: Get smbclient from Samba.org to monitor SMB shares" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Get smbclient from Samba.org to monitor SMB shares" >&5 +printf "%s\n" "$as_me: WARNING: Get smbclient from Samba.org to monitor SMB shares" >&2;} fi # Extract the first word of "snmpget", so it can be a program name with args. set dummy snmpget; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_SNMPGET+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_SNMPGET+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_SNMPGET in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_SNMPGET="$PATH_TO_SNMPGET" # Let the user override the test with a path. @@ -19651,11 +20082,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_SNMPGET="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_SNMPGET="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19667,40 +20102,40 @@ esac fi PATH_TO_SNMPGET=$ac_cv_path_PATH_TO_SNMPGET if test -n "$PATH_TO_SNMPGET"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SNMPGET" >&5 -$as_echo "$PATH_TO_SNMPGET" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SNMPGET" >&5 +printf "%s\n" "$PATH_TO_SNMPGET" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-snmpget_command was given. -if test "${with_snmpget_command+set}" = set; then : +if test ${with_snmpget_command+y} +then : withval=$with_snmpget_command; PATH_TO_SNMPGET=$withval fi if test -n "$PATH_TO_SNMPGET" then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_SNMPGET "$PATH_TO_SNMPGET" -_ACEOF +printf "%s\n" "#define PATH_TO_SNMPGET \"$PATH_TO_SNMPGET\"" >>confdefs.h EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)" else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&5 -$as_echo "$as_me: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&5 +printf "%s\n" "$as_me: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&2;} fi # Extract the first word of "snmpgetnext", so it can be a program name with args. set dummy snmpgetnext; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_SNMPGETNEXT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_SNMPGETNEXT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_SNMPGETNEXT in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_SNMPGETNEXT="$PATH_TO_SNMPGETNEXT" # Let the user override the test with a path. @@ -19710,11 +20145,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_SNMPGETNEXT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_SNMPGETNEXT="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19726,47 +20165,47 @@ esac fi PATH_TO_SNMPGETNEXT=$ac_cv_path_PATH_TO_SNMPGETNEXT if test -n "$PATH_TO_SNMPGETNEXT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SNMPGETNEXT" >&5 -$as_echo "$PATH_TO_SNMPGETNEXT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SNMPGETNEXT" >&5 +printf "%s\n" "$PATH_TO_SNMPGETNEXT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-snmpgetnext_command was given. -if test "${with_snmpgetnext_command+set}" = set; then : +if test ${with_snmpgetnext_command+y} +then : withval=$with_snmpgetnext_command; PATH_TO_SNMPGETNEXT=$withval fi if test -n "$PATH_TO_SNMPGETNEXT" then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_SNMPGETNEXT "$PATH_TO_SNMPGETNEXT" -_ACEOF +printf "%s\n" "#define PATH_TO_SNMPGETNEXT \"$PATH_TO_SNMPGETNEXT\"" >>confdefs.h fi if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null ) then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net::SNMP perl module" >&5 -$as_echo_n "checking for Net::SNMP perl module... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Net::SNMP perl module" >&5 +printf %s "checking for Net::SNMP perl module... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tried $PERL - install Net::SNMP perl module if you want to use the perl snmp plugins" >&5 -$as_echo "$as_me: WARNING: Tried $PERL - install Net::SNMP perl module if you want to use the perl snmp plugins" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Tried $PERL - install Net::SNMP perl module if you want to use the perl snmp plugins" >&5 +printf "%s\n" "$as_me: WARNING: Tried $PERL - install Net::SNMP perl module if you want to use the perl snmp plugins" >&2;} fi # Extract the first word of "quakestat", so it can be a program name with args. set dummy quakestat; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_QUAKESTAT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_QUAKESTAT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_QUAKESTAT in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_QUAKESTAT="$PATH_TO_QUAKESTAT" # Let the user override the test with a path. @@ -19776,11 +20215,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_QUAKESTAT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_QUAKESTAT="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19792,21 +20235,22 @@ esac fi PATH_TO_QUAKESTAT=$ac_cv_path_PATH_TO_QUAKESTAT if test -n "$PATH_TO_QUAKESTAT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_QUAKESTAT" >&5 -$as_echo "$PATH_TO_QUAKESTAT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_QUAKESTAT" >&5 +printf "%s\n" "$PATH_TO_QUAKESTAT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "qstat", so it can be a program name with args. set dummy qstat; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_QSTAT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_QSTAT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_QSTAT in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_QSTAT="$PATH_TO_QSTAT" # Let the user override the test with a path. @@ -19816,11 +20260,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_QSTAT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_QSTAT="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19832,17 +20280,18 @@ esac fi PATH_TO_QSTAT=$ac_cv_path_PATH_TO_QSTAT if test -n "$PATH_TO_QSTAT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_QSTAT" >&5 -$as_echo "$PATH_TO_QSTAT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_QSTAT" >&5 +printf "%s\n" "$PATH_TO_QSTAT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-qstat_command was given. -if test "${with_qstat_command+set}" = set; then : +if test ${with_qstat_command+y} +then : withval=$with_qstat_command; PATH_TO_QSTAT=$withval fi @@ -19857,26 +20306,25 @@ then ac_cv_path_to_qstat="$PATH_TO_QSTAT" EXTRAS="$EXTRAS check_game\$(EXEEXT)" else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin" >&5 -$as_echo "$as_me: WARNING: Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin" >&5 +printf "%s\n" "$as_me: WARNING: Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin" >&2;} fi if test $ac_cv_path_to_qstat then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_QSTAT "$ac_cv_path_to_qstat" -_ACEOF +printf "%s\n" "#define PATH_TO_QSTAT \"$ac_cv_path_to_qstat\"" >>confdefs.h fi # Extract the first word of "fping", so it can be a program name with args. set dummy fping; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_FPING+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_FPING+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_FPING in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_FPING="$PATH_TO_FPING" # Let the user override the test with a path. @@ -19886,11 +20334,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_FPING="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_FPING="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19902,21 +20354,22 @@ esac fi PATH_TO_FPING=$ac_cv_path_PATH_TO_FPING if test -n "$PATH_TO_FPING"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_FPING" >&5 -$as_echo "$PATH_TO_FPING" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_FPING" >&5 +printf "%s\n" "$PATH_TO_FPING" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "fping6", so it can be a program name with args. set dummy fping6; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_FPING6+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_FPING6+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_FPING6 in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_FPING6="$PATH_TO_FPING6" # Let the user override the test with a path. @@ -19926,11 +20379,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_FPING6="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_FPING6="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19942,24 +20399,26 @@ esac fi PATH_TO_FPING6=$ac_cv_path_PATH_TO_FPING6 if test -n "$PATH_TO_FPING6"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_FPING6" >&5 -$as_echo "$PATH_TO_FPING6" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_FPING6" >&5 +printf "%s\n" "$PATH_TO_FPING6" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-fping_command was given. -if test "${with_fping_command+set}" = set; then : +if test ${with_fping_command+y} +then : withval=$with_fping_command; PATH_TO_FPING=$withval fi # Check whether --with-fping6_command was given. -if test "${with_fping6_command+set}" = set; then : +if test ${with_fping6_command+y} +then : withval=$with_fping6_command; PATH_TO_FPING6=$withval fi @@ -19967,30 +20426,27 @@ fi if test -n "$PATH_TO_FPING" then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_FPING "$PATH_TO_FPING" -_ACEOF +printf "%s\n" "#define PATH_TO_FPING \"$PATH_TO_FPING\"" >>confdefs.h EXTRAS="$EXTRAS check_fping\$(EXEEXT)" if test x"$with_ipv6" != xno && test -n "$PATH_TO_FPING6"; then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_FPING6 "$PATH_TO_FPING6" -_ACEOF +printf "%s\n" "#define PATH_TO_FPING6 \"$PATH_TO_FPING6\"" >>confdefs.h fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Get fping from http://www.fping.com in order to make check_fping plugin" >&5 -$as_echo "$as_me: WARNING: Get fping from http://www.fping.com in order to make check_fping plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Get fping from http://www.fping.com in order to make check_fping plugin" >&5 +printf "%s\n" "$as_me: WARNING: Get fping from http://www.fping.com in order to make check_fping plugin" >&2;} fi # Extract the first word of "ssh", so it can be a program name with args. set dummy ssh; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_SSH+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_SSH+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_SSH in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_SSH="$PATH_TO_SSH" # Let the user override the test with a path. @@ -20000,11 +20456,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_SSH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_SSH="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20016,40 +20476,40 @@ esac fi PATH_TO_SSH=$ac_cv_path_PATH_TO_SSH if test -n "$PATH_TO_SSH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SSH" >&5 -$as_echo "$PATH_TO_SSH" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SSH" >&5 +printf "%s\n" "$PATH_TO_SSH" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-ssh_command was given. -if test "${with_ssh_command+set}" = set; then : +if test ${with_ssh_command+y} +then : withval=$with_ssh_command; PATH_TO_SSH=$withval fi if test -n "$PATH_TO_SSH" then -cat >>confdefs.h <<_ACEOF -#define SSH_COMMAND "$PATH_TO_SSH" -_ACEOF +printf "%s\n" "#define SSH_COMMAND \"$PATH_TO_SSH\"" >>confdefs.h EXTRAS="$EXTRAS check_by_ssh\$(EXEEXT)" else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Get ssh in order to make check_by_ssh plugin" >&5 -$as_echo "$as_me: WARNING: Get ssh in order to make check_by_ssh plugin" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Get ssh in order to make check_by_ssh plugin" >&5 +printf "%s\n" "$as_me: WARNING: Get ssh in order to make check_by_ssh plugin" >&2;} fi # Extract the first word of "sudo", so it can be a program name with args. set dummy sudo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_SUDO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_SUDO+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_SUDO in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_SUDO="$PATH_TO_SUDO" # Let the user override the test with a path. @@ -20059,11 +20519,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_SUDO="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_SUDO="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20075,39 +20539,39 @@ esac fi PATH_TO_SUDO=$ac_cv_path_PATH_TO_SUDO if test -n "$PATH_TO_SUDO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SUDO" >&5 -$as_echo "$PATH_TO_SUDO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SUDO" >&5 +printf "%s\n" "$PATH_TO_SUDO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-sudo_command was given. -if test "${with_sudo_command+set}" = set; then : +if test ${with_sudo_command+y} +then : withval=$with_sudo_command; PATH_TO_SUDO=$withval fi if test -n "$PATH_TO_SUDO" then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_SUDO "$PATH_TO_SUDO" -_ACEOF +printf "%s\n" "#define PATH_TO_SUDO \"$PATH_TO_SUDO\"" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find sudo or equivalent" >&5 -$as_echo "$as_me: WARNING: Could not find sudo or equivalent" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not find sudo or equivalent" >&5 +printf "%s\n" "$as_me: WARNING: Could not find sudo or equivalent" >&2;} fi # Extract the first word of "mailq", so it can be a program name with args. set dummy mailq; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_MAILQ+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_MAILQ+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_MAILQ in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_MAILQ="$PATH_TO_MAILQ" # Let the user override the test with a path. @@ -20117,11 +20581,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_MAILQ="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_MAILQ="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20133,39 +20601,39 @@ esac fi PATH_TO_MAILQ=$ac_cv_path_PATH_TO_MAILQ if test -n "$PATH_TO_MAILQ"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_MAILQ" >&5 -$as_echo "$PATH_TO_MAILQ" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_MAILQ" >&5 +printf "%s\n" "$PATH_TO_MAILQ" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-mailq_command was given. -if test "${with_mailq_command+set}" = set; then : +if test ${with_mailq_command+y} +then : withval=$with_mailq_command; PATH_TO_MAILQ=$withval fi if test -n "$PATH_TO_MAILQ" then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_MAILQ "$PATH_TO_MAILQ" -_ACEOF +printf "%s\n" "#define PATH_TO_MAILQ \"$PATH_TO_MAILQ\"" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find mailq or equivalent" >&5 -$as_echo "$as_me: WARNING: Could not find mailq or equivalent" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not find mailq or equivalent" >&5 +printf "%s\n" "$as_me: WARNING: Could not find mailq or equivalent" >&2;} fi # Extract the first word of "qmail-qstat", so it can be a program name with args. set dummy qmail-qstat; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_QMAIL_QSTAT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_QMAIL_QSTAT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_QMAIL_QSTAT in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_QMAIL_QSTAT="$PATH_TO_QMAIL_QSTAT" # Let the user override the test with a path. @@ -20175,11 +20643,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_QMAIL_QSTAT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_QMAIL_QSTAT="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20191,39 +20663,39 @@ esac fi PATH_TO_QMAIL_QSTAT=$ac_cv_path_PATH_TO_QMAIL_QSTAT if test -n "$PATH_TO_QMAIL_QSTAT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_QMAIL_QSTAT" >&5 -$as_echo "$PATH_TO_QMAIL_QSTAT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_QMAIL_QSTAT" >&5 +printf "%s\n" "$PATH_TO_QMAIL_QSTAT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-qmail_qstat_command was given. -if test "${with_qmail_qstat_command+set}" = set; then : +if test ${with_qmail_qstat_command+y} +then : withval=$with_qmail_qstat_command; PATH_TO_QMAIL_QSTAT=$withval fi if test -n "$PATH_TO_QMAIL_QSTAT" then -cat >>confdefs.h <<_ACEOF -#define PATH_TO_QMAIL_QSTAT "$PATH_TO_QMAIL_QSTAT" -_ACEOF +printf "%s\n" "#define PATH_TO_QMAIL_QSTAT \"$PATH_TO_QMAIL_QSTAT\"" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find qmail-qstat or equivalent" >&5 -$as_echo "$as_me: WARNING: Could not find qmail-qstat or equivalent" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not find qmail-qstat or equivalent" >&5 +printf "%s\n" "$as_me: WARNING: Could not find qmail-qstat or equivalent" >&2;} fi # Extract the first word of "swap", so it can be a program name with args. set dummy swap; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_SWAP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_SWAP+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_SWAP in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_SWAP="$PATH_TO_SWAP" # Let the user override the test with a path. @@ -20233,11 +20705,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_SWAP="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_SWAP="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20249,18 +20725,18 @@ esac fi PATH_TO_SWAP=$ac_cv_path_PATH_TO_SWAP if test -n "$PATH_TO_SWAP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SWAP" >&5 -$as_echo "$PATH_TO_SWAP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SWAP" >&5 +printf "%s\n" "$PATH_TO_SWAP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if (test -n "$PATH_TO_SWAP") then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PATH_TO_SWAP format" >&5 -$as_echo_n "checking for $PATH_TO_SWAP format... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PATH_TO_SWAP format" >&5 +printf %s "checking for $PATH_TO_SWAP format... " >&6; } if $PATH_TO_SWAP -l 2>&1 >/dev/null then ac_cv_have_swap=yes @@ -20271,15 +20747,15 @@ then then ac_cv_swap_format=" %*d %*s %*d,%*d %*d %*d %lu %lu" ac_cv_swap_conv=2048 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using IRIX format swap" >&5 -$as_echo "using IRIX format swap" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using IRIX format swap" >&5 +printf "%s\n" "using IRIX format swap" >&6; } elif $PATH_TO_SWAP -l 2>/dev/null | grep -E -i "^path +dev +swaplo +blocks +free" >/dev/null then ac_cv_swap_format="%*s %*[0-9,-] %*d %lu %lu" ac_cv_swap_conv=2048 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Unixware format swap" >&5 -$as_echo "using Unixware format swap" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Unixware format swap" >&5 +printf "%s\n" "using Unixware format swap" >&6; } else ac_cv_have_swap="" ac_cv_swap_command="" @@ -20289,11 +20765,12 @@ fi # Extract the first word of "swapinfo", so it can be a program name with args. set dummy swapinfo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_SWAPINFO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_SWAPINFO+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_SWAPINFO in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_SWAPINFO="$PATH_TO_SWAPINFO" # Let the user override the test with a path. @@ -20303,11 +20780,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_SWAPINFO="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_SWAPINFO="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20319,18 +20800,18 @@ esac fi PATH_TO_SWAPINFO=$ac_cv_path_PATH_TO_SWAPINFO if test -n "$PATH_TO_SWAPINFO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SWAPINFO" >&5 -$as_echo "$PATH_TO_SWAPINFO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SWAPINFO" >&5 +printf "%s\n" "$PATH_TO_SWAPINFO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if (test -n "$PATH_TO_SWAPINFO") then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PATH_TO_SWAPINFO format" >&5 -$as_echo_n "checking for $PATH_TO_SWAPINFO format... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PATH_TO_SWAPINFO format" >&5 +printf %s "checking for $PATH_TO_SWAPINFO format... " >&6; } if $PATH_TO_SWAPINFO -k 2>&1 | grep -E -i "^Device" >/dev/null then ac_cv_have_swap=yes @@ -20340,8 +20821,8 @@ then then ac_cv_swap_format="%*s %lu %*d %lu" ac_cv_swap_conv=1024 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using FreeBSD format swapinfo" >&5 -$as_echo "using FreeBSD format swapinfo" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using FreeBSD format swapinfo" >&5 +printf "%s\n" "using FreeBSD format swapinfo" >&6; } fi elif $PATH_TO_SWAPINFO -dfM 2>/dev/null | grep -E -i "^TYPE +AVAIL +USED +FREE" >/dev/null @@ -20350,18 +20831,19 @@ then ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM" ac_cv_swap_format="%*s %lu %*d %lu" ac_cv_swap_conv=1024 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using HP-UX format swapinfo" >&5 -$as_echo "using HP-UX format swapinfo" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using HP-UX format swapinfo" >&5 +printf "%s\n" "using HP-UX format swapinfo" >&6; } fi fi # Extract the first word of "lsps", so it can be a program name with args. set dummy lsps; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_LSPS+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_LSPS+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_LSPS in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_LSPS="$PATH_TO_LSPS" # Let the user override the test with a path. @@ -20371,11 +20853,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_LSPS="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_LSPS="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20387,77 +20873,150 @@ esac fi PATH_TO_LSPS=$ac_cv_path_PATH_TO_LSPS if test -n "$PATH_TO_LSPS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_LSPS" >&5 -$as_echo "$PATH_TO_LSPS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_LSPS" >&5 +printf "%s\n" "$PATH_TO_LSPS" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if (test -n "$PATH_TO_LSPS") then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PATH_TO_LSPS format" >&5 -$as_echo_n "checking for $PATH_TO_LSPS format... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PATH_TO_LSPS format" >&5 +printf %s "checking for $PATH_TO_LSPS format... " >&6; } if $PATH_TO_LSPS -a 2>/dev/null | grep -E -i "^Page Space" > /dev/null then ac_cv_have_swap=yes ac_cv_swap_command="$PATH_TO_LSPS -a" ac_cv_swap_format="%*s %*s %*s %lu%*s %lu %*s" ac_cv_swap_conv=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AIX lsps" >&5 -$as_echo "using AIX lsps" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using AIX lsps" >&5 +printf "%s\n" "using AIX lsps" >&6; } fi fi -for ac_header in sys/stat.h sys/param.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_stat_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_param_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h fi -done - -for ac_header in sys/swap.h -do : - ac_fn_c_check_header_compile "$LINENO" "sys/swap.h" "ac_cv_header_sys_swap_h" " +ac_fn_c_check_header_compile "$LINENO" "sys/swap.h" "ac_cv_header_sys_swap_h" " #ifdef HAVE_SYS_PARAM_H #include #endif " -if test "x$ac_cv_header_sys_swap_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_SWAP_H 1 -_ACEOF +if test "x$ac_cv_header_sys_swap_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SWAP_H 1" >>confdefs.h fi -done +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -ac_fn_c_check_decl "$LINENO" "swapctl" "ac_cv_have_decl_swapctl" " +int +main (void) +{ +(void) strchr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +extern void ac_decl (int, char *); + +int +main (void) +{ +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else $as_nop + ac_cv_c_undeclared_builtin_options=$ac_arg +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in #( + 'cannot detect') : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot make $CC report undeclared builtins +See \`config.log' for more details" "$LINENO" 5; } ;; #( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; #( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac + +ac_fn_check_decl "$LINENO" "swapctl" "ac_cv_have_decl_swapctl" " #include #include #include #include #include -" -if test "x$ac_cv_have_decl_swapctl" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_swapctl" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SWAPCTL $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_SWAPCTL $ac_have_decl" >>confdefs.h ac_fn_c_check_type "$LINENO" "swaptbl_t" "ac_cv_type_swaptbl_t" " #include @@ -20466,11 +21025,10 @@ ac_fn_c_check_type "$LINENO" "swaptbl_t" "ac_cv_type_swaptbl_t" " #include " -if test "x$ac_cv_type_swaptbl_t" = xyes; then : +if test "x$ac_cv_type_swaptbl_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_SWAPTBL_T 1 -_ACEOF +printf "%s\n" "#define HAVE_SWAPTBL_T 1" >>confdefs.h fi @@ -20481,11 +21039,10 @@ ac_fn_c_check_type "$LINENO" "swapent_t" "ac_cv_type_swapent_t" " #include " -if test "x$ac_cv_type_swapent_t" = xyes; then : +if test "x$ac_cv_type_swapent_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_SWAPENT_T 1 -_ACEOF +printf "%s\n" "#define HAVE_SWAPENT_T 1" >>confdefs.h fi @@ -20498,11 +21055,10 @@ ac_fn_c_check_member "$LINENO" "struct swapent" "se_nblks" "ac_cv_member_struct_ #include " -if test "x$ac_cv_member_struct_swapent_se_nblks" = xyes; then : +if test "x$ac_cv_member_struct_swapent_se_nblks" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_SWAPENT_SE_NBLKS 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_SWAPENT_SE_NBLKS 1" >>confdefs.h fi @@ -20511,72 +21067,68 @@ fi if test "$ac_cv_have_decl_swapctl" = "yes"; then EXTRAS="$EXTRAS check_swap\$(EXEEXT)" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2-arg (SVR4) swapctl" >&5 -$as_echo_n "checking for 2-arg (SVR4) swapctl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 2-arg (SVR4) swapctl" >&5 +printf %s "checking for 2-arg (SVR4) swapctl... " >&6; } if test "$ac_cv_type_swaptbl_t" = "yes" -a \ "$ac_cv_type_swapent_t" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ac_cv_check_swap_swapctl_svr4="1"; -$as_echo "#define CHECK_SWAP_SWAPCTL_SVR4 1" >>confdefs.h +printf "%s\n" "#define CHECK_SWAP_SWAPCTL_SVR4 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-arg (*BSD) swapctl" >&5 -$as_echo_n "checking for 3-arg (*BSD) swapctl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 3-arg (*BSD) swapctl" >&5 +printf %s "checking for 3-arg (*BSD) swapctl... " >&6; } if test "$ac_cv_member_struct_swapent_se_nblks" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define CHECK_SWAP_SWAPCTL_BSD 1" >>confdefs.h +printf "%s\n" "#define CHECK_SWAP_SWAPCTL_BSD 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether swapctl uses blocks or pages" >&5 -$as_echo_n "checking for whether swapctl uses blocks or pages... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for whether swapctl uses blocks or pages" >&5 +printf %s "checking for whether swapctl uses blocks or pages... " >&6; } if test "$ac_cv_check_swap_swapctl_svr4" = "1"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: page" >&5 -$as_echo "page" >&6; } - ac_fn_c_check_decl "$LINENO" "sysconf" "ac_cv_have_decl_sysconf" "$ac_includes_default" -if test "x$ac_cv_have_decl_sysconf" = xyes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: page" >&5 +printf "%s\n" "page" >&6; } + ac_fn_check_decl "$LINENO" "sysconf" "ac_cv_have_decl_sysconf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_sysconf" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_SYSCONF $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SYSCONF $ac_have_decl -_ACEOF - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system page size" >&5 -$as_echo_n "checking for system page size... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system page size" >&5 +printf %s "checking for system page size... " >&6; } if test "$ac_cv_have_decl_sysconf" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined by sysconf(3)" >&5 -$as_echo "determined by sysconf(3)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: determined by sysconf(3)" >&5 +printf "%s\n" "determined by sysconf(3)" >&6; } ac_cv_swap_conv="(1048576/sysconf(_SC_PAGESIZE))" else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: don't know. guessing 4096k" >&5 -$as_echo "$as_me: WARNING: don't know. guessing 4096k" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: don't know. guessing 4096k" >&5 +printf "%s\n" "$as_me: WARNING: don't know. guessing 4096k" >&2;} ac_cv_swap_conv=256 fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: blocks (assuming 512b)" >&5 -$as_echo "blocks (assuming 512b)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: blocks (assuming 512b)" >&5 +printf "%s\n" "blocks (assuming 512b)" >&6; } ac_cv_swap_conv=2048 fi -cat >>confdefs.h <<_ACEOF -#define SWAP_CONVERSION $ac_cv_swap_conv -_ACEOF +printf "%s\n" "#define SWAP_CONVERSION $ac_cv_swap_conv" >>confdefs.h fi @@ -20584,68 +21136,62 @@ fi if test "x$ac_cv_have_swap" != "x" then -$as_echo "#define HAVE_SWAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_SWAP 1" >>confdefs.h EXTRAS="$EXTRAS check_swap\$(EXEEXT)" fi if test "x$ac_cv_swap_command" != "x" then -cat >>confdefs.h <<_ACEOF -#define SWAP_COMMAND "$ac_cv_swap_command" -_ACEOF +printf "%s\n" "#define SWAP_COMMAND \"$ac_cv_swap_command\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define SWAP_FORMAT "$ac_cv_swap_format" -_ACEOF +printf "%s\n" "#define SWAP_FORMAT \"$ac_cv_swap_format\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define SWAP_CONVERSION $ac_cv_swap_conv -_ACEOF +printf "%s\n" "#define SWAP_CONVERSION $ac_cv_swap_conv" >>confdefs.h fi # Check whether --with-proc-meminfo was given. -if test "${with_proc_meminfo+set}" = set; then : +if test ${with_proc_meminfo+y} +then : withval=$with_proc_meminfo; ac_cv_proc_meminfo=$withval fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/meminfo" >&5 -$as_echo_n "checking for /proc/meminfo... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /proc/meminfo" >&5 +printf %s "checking for /proc/meminfo... " >&6; } if test -n "$ac_cv_proc_meminfo"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (command line) $ac_cv_proc_meminfo" >&5 -$as_echo "(command line) $ac_cv_proc_meminfo" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (command line) $ac_cv_proc_meminfo" >&5 +printf "%s\n" "(command line) $ac_cv_proc_meminfo" >&6; } elif cat /proc/meminfo > /dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found /proc/meminfo" >&5 -$as_echo "found /proc/meminfo" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found /proc/meminfo" >&5 +printf "%s\n" "found /proc/meminfo" >&6; } ac_cv_proc_meminfo="/proc/meminfo" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test -n "$ac_cv_proc_meminfo"; then -$as_echo "#define HAVE_PROC_MEMINFO 1" >>confdefs.h +printf "%s\n" "#define HAVE_PROC_MEMINFO 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PROC_MEMINFO "$ac_cv_proc_meminfo" -_ACEOF +printf "%s\n" "#define PROC_MEMINFO \"$ac_cv_proc_meminfo\"" >>confdefs.h EXTRAS="$EXTRAS check_swap\$(EXEEXT)" fi # Extract the first word of "dig", so it can be a program name with args. set dummy dig; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_DIG+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_DIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_DIG in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_DIG="$PATH_TO_DIG" # Let the user override the test with a path. @@ -20655,11 +21201,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_DIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_DIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20671,36 +21221,36 @@ esac fi PATH_TO_DIG=$ac_cv_path_PATH_TO_DIG if test -n "$PATH_TO_DIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_DIG" >&5 -$as_echo "$PATH_TO_DIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_DIG" >&5 +printf "%s\n" "$PATH_TO_DIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-dig_command was given. -if test "${with_dig_command+set}" = set; then : +if test ${with_dig_command+y} +then : withval=$with_dig_command; PATH_TO_DIG=$withval fi if test -n "$PATH_TO_DIG"; then EXTRAS="$EXTRAS check_dig\$(EXEEXT)" -cat >>confdefs.h <<_ACEOF -#define PATH_TO_DIG "$PATH_TO_DIG" -_ACEOF +printf "%s\n" "#define PATH_TO_DIG \"$PATH_TO_DIG\"" >>confdefs.h fi # Extract the first word of "apt-get", so it can be a program name with args. set dummy apt-get; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_TO_APTGET+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PATH_TO_APTGET+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PATH_TO_APTGET in [\\/]* | ?:[\\/]*) ac_cv_path_PATH_TO_APTGET="$PATH_TO_APTGET" # Let the user override the test with a path. @@ -20710,11 +21260,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_TO_APTGET="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_TO_APTGET="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20726,26 +21280,25 @@ esac fi PATH_TO_APTGET=$ac_cv_path_PATH_TO_APTGET if test -n "$PATH_TO_APTGET"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_APTGET" >&5 -$as_echo "$PATH_TO_APTGET" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_APTGET" >&5 +printf "%s\n" "$PATH_TO_APTGET" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --with-apt-get_command was given. -if test "${with_apt_get_command+set}" = set; then : +if test ${with_apt_get_command+y} +then : withval=$with_apt_get_command; with_apt_get_command=$withval -else +else $as_nop with_apt_get_command=$PATH_TO_APTGET fi -cat >>confdefs.h <<_ACEOF -#define PATH_TO_APTGET "$PATH_TO_APTGET" -_ACEOF +printf "%s\n" "#define PATH_TO_APTGET \"$PATH_TO_APTGET\"" >>confdefs.h if test -n "$PATH_TO_APTGET" ; then EXTRAS="$EXTRAS check_apt\$(EXEEXT)" @@ -20757,38 +21310,33 @@ if test -f $srcdir/plugins/check_nt.c ; then fi -for ac_header in sys/sockio.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_sockio_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_SOCKIO_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sockio_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h fi -done - case $host in *bsd*) -$as_echo "#define __bsd__ 1" >>confdefs.h +printf "%s\n" "#define __bsd__ 1" >>confdefs.h ;; *linux*) -$as_echo "#define __linux__ 1" >>confdefs.h +printf "%s\n" "#define __linux__ 1" >>confdefs.h ;; *sun* | *solaris*) -$as_echo "#define __sun__ 1" >>confdefs.h +printf "%s\n" "#define __sun__ 1" >>confdefs.h ;; *hpux*) -$as_echo "#define __hpux__ 1" >>confdefs.h +printf "%s\n" "#define __hpux__ 1" >>confdefs.h ;; esac @@ -20799,17 +21347,18 @@ esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +printf %s "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then : +if test ${enable_nls+y} +then : enableval=$enable_nls; USE_NLS=$enableval -else +else $as_nop USE_NLS=yes fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +printf "%s\n" "$USE_NLS" >&6; } @@ -20848,19 +21397,20 @@ rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_MSGFMT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do - IFS="$ac_save_IFS" + IFS="$gt_saved_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then @@ -20873,27 +21423,28 @@ else fi done done - IFS="$ac_save_IFS" + IFS="$gt_saved_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +printf "%s\n" "$MSGFMT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GMSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_GMSGFMT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. @@ -20903,11 +21454,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -20920,11 +21475,11 @@ esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 -$as_echo "$GMSGFMT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +printf "%s\n" "$GMSGFMT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -20965,19 +21520,20 @@ rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_XGETTEXT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_XGETTEXT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do - IFS="$ac_save_IFS" + IFS="$gt_saved_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then @@ -20990,18 +21546,18 @@ else fi done done - IFS="$ac_save_IFS" + IFS="$gt_saved_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +printf "%s\n" "$XGETTEXT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi rm -f messages.po @@ -21042,19 +21598,20 @@ rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGMERGE+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_MSGMERGE+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do - IFS="$ac_save_IFS" + IFS="$gt_saved_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then @@ -21066,18 +21623,18 @@ else fi done done - IFS="$ac_save_IFS" + IFS="$gt_saved_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 -$as_echo "$MSGMERGE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +printf "%s\n" "$MSGMERGE" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -21109,17 +21666,18 @@ fi else acl_final_exec_prefix="$exec_prefix" fi - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" + prefix="$acl_saved_prefix" # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else +else $as_nop with_gnu_ld=no fi @@ -21137,32 +21695,33 @@ if test "${PATH_SEPARATOR+set}" != set; then fi if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 -$as_echo_n "checking for ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 +printf %s "checking for ld... " >&6; } elif test "$GCC" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi if test -n "$LD"; then # Let the user override the test with a path. : else - if ${acl_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${acl_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop acl_cv_path_LD= # Final result of this test ac_prog=ld # Program to search in $PATH if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. case $host in - *-*-mingw*) + *-*-mingw* | windows*) # gcc leaves a trailing carriage return which upsets mingw acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) @@ -21192,9 +21751,9 @@ else fi if test -n "$ac_prog"; then # Search for $ac_prog in $PATH. - acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do - IFS="$acl_save_ifs" + IFS="$acl_saved_IFS" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" @@ -21211,20 +21770,21 @@ else esac fi done - IFS="$acl_save_ifs" + IFS="$acl_saved_IFS" fi case $host in *-*-aix*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#if defined __powerpc64__ || defined _ARCH_PPC64 +#if defined __powerpc64__ || defined __LP64__ int ok; #else error fail #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # The compiler produces 64-bit code. Add option '-b64' so that the # linker groks 64-bit object files. case "$acl_cv_path_LD " in @@ -21233,7 +21793,7 @@ if ac_fn_c_try_compile "$LINENO"; then : esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; sparc64-*-netbsd*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21245,9 +21805,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop # The compiler produces 32-bit code. Add option '-m elf32_sparc' # so that the linker groks 32-bit object files. case "$acl_cv_path_LD " in @@ -21256,7 +21817,7 @@ else esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac @@ -21265,18 +21826,19 @@ fi LD="$acl_cv_path_LD" fi if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${acl_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${acl_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 -$as_echo "$acl_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 +printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 -$as_echo_n "checking for shared library run path origin... " >&6; } -if ${acl_cv_rpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 +printf %s "checking for shared library run path origin... " >&6; } +if test ${acl_cv_rpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh @@ -21307,8 +21871,8 @@ else acl_cv_rpath=done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 -$as_echo "$acl_cv_rpath" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 +printf "%s\n" "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" @@ -21319,270 +21883,83 @@ $as_echo "$acl_cv_rpath" >&6; } acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then : +if test ${enable_rpath+y} +then : enableval=$enable_rpath; : -else +else $as_nop enable_rpath=yes fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 -$as_echo_n "checking 32-bit host C ABI... " >&6; } -if ${gl_cv_host_cpu_c_abi_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$gl_cv_host_cpu_c_abi"; then - case "$gl_cv_host_cpu_c_abi" in - i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) - gl_cv_host_cpu_c_abi_32bit=yes ;; - x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) - gl_cv_host_cpu_c_abi_32bit=no ;; - *) - gl_cv_host_cpu_c_abi_32bit=unknown ;; - esac - else - case "$host_cpu" in + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 +printf %s "checking 32-bit host C ABI... " >&6; } +if test ${gl_cv_host_cpu_c_abi_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop + case "$host_cpu" in - # CPUs that only support a 32-bit ABI. - arc \ - | bfin \ - | cris* \ - | csky \ - | epiphany \ - | ft32 \ - | h8300 \ - | m68k \ - | microblaze | microblazeel \ - | nds32 | nds32le | nds32be \ - | nios2 | nios2eb | nios2el \ - | or1k* \ - | or32 \ - | sh | sh1234 | sh1234elb \ - | tic6x \ - | xtensa* ) - gl_cv_host_cpu_c_abi_32bit=yes - ;; + # CPUs that only support a 32-bit ABI. + arc \ + | bfin \ + | cris* \ + | csky \ + | epiphany \ + | ft32 \ + | h8300 \ + | m68k \ + | microblaze | microblazeel \ + | nds32 | nds32le | nds32be \ + | nios2 | nios2eb | nios2el \ + | or1k* \ + | or32 \ + | sh | sh1234 | sh1234elb \ + | tic6x \ + | xtensa* ) + gl_cv_host_cpu_c_abi_32bit=yes + ;; - # CPUs that only support a 64-bit ABI. - alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ - | mmix ) - gl_cv_host_cpu_c_abi_32bit=no - ;; + # CPUs that only support a 64-bit ABI. + alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ + | mmix ) + gl_cv_host_cpu_c_abi_32bit=no + ;; - i[34567]86 ) - gl_cv_host_cpu_c_abi_32bit=yes - ;; - - x86_64 ) - # On x86_64 systems, the C compiler may be generating code in one of - # these ABIs: - # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. - # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 - # with native Windows (mingw, MSVC). - # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. - # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if (defined __x86_64__ || defined __amd64__ \ - || defined _M_X64 || defined _M_AMD64) \ - && !(defined __ILP32__ || defined _ILP32) - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=no -else - gl_cv_host_cpu_c_abi_32bit=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - arm* | aarch64 ) - # Assume arm with EABI. - # On arm64 systems, the C compiler may be generating code in one of - # these ABIs: - # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. - # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. - # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=no -else - gl_cv_host_cpu_c_abi_32bit=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) - # On hppa, the C compiler may be generating 32-bit code or 64-bit - # code. In the latter case, it defines _LP64 and __LP64__. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __LP64__ - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=no -else - gl_cv_host_cpu_c_abi_32bit=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - ia64* ) - # On ia64 on HP-UX, the C compiler may be generating 64-bit code or - # 32-bit code. In the latter case, it defines _ILP32. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef _ILP32 - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=yes -else - gl_cv_host_cpu_c_abi_32bit=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - mips* ) - # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this - # at 32. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=no -else - gl_cv_host_cpu_c_abi_32bit=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - powerpc* ) - # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. - # No need to distinguish them here; the caller may distinguish - # them based on the OS. - # On powerpc64 systems, the C compiler may still be generating - # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may - # be generating 64-bit code. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined __powerpc64__ || defined _ARCH_PPC64 - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=no -else - gl_cv_host_cpu_c_abi_32bit=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - rs6000 ) - gl_cv_host_cpu_c_abi_32bit=yes - ;; - - riscv32 | riscv64 ) - # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. - # Size of 'long' and 'void *': - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined __LP64__ - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=no -else - gl_cv_host_cpu_c_abi_32bit=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - s390* ) - # On s390x, the C compiler may be generating 64-bit (= s390x) code - # or 31-bit (= s390) code. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined __LP64__ || defined __s390x__ - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=no -else - gl_cv_host_cpu_c_abi_32bit=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - sparc | sparc64 ) - # UltraSPARCs running Linux have `uname -m` = "sparc64", but the - # C compiler still generates 32-bit code. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined __sparcv9 || defined __arch64__ - int ok; - #else - error fail - #endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gl_cv_host_cpu_c_abi_32bit=no -else - gl_cv_host_cpu_c_abi_32bit=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ;; - - *) + *) + if test -n "$gl_cv_host_cpu_c_abi"; then + case "$gl_cv_host_cpu_c_abi" in + i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) + gl_cv_host_cpu_c_abi_32bit=yes ;; + x86_64 | alpha | arm64 | aarch64c | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) + gl_cv_host_cpu_c_abi_32bit=no ;; + *) + gl_cv_host_cpu_c_abi_32bit=unknown ;; + esac + else gl_cv_host_cpu_c_abi_32bit=unknown - ;; - esac - fi + fi + if test $gl_cv_host_cpu_c_abi_32bit = unknown; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int test_pointer_size[sizeof (void *) - 5]; + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + ;; + esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 -$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 +printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" @@ -21590,31 +21967,33 @@ $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 -$as_echo_n "checking for ELF binary format... " >&6; } -if ${gl_cv_elf+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 +printf %s "checking for ELF binary format... " >&6; } +if test ${gl_cv_elf+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __ELF__ +#if defined __ELF__ || (defined __linux__ && defined __EDG__) Extensible Linking Format #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : + $EGREP "Extensible Linking Format" >/dev/null 2>&1 +then : gl_cv_elf=yes -else +else $as_nop gl_cv_elf=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 -$as_echo "$gl_cv_elf" >&6; } - if test $gl_cv_elf; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 +printf "%s\n" "$gl_cv_elf" >&6; } + if test $gl_cv_elf = yes; then # Extract the ELF class of a file (5th byte) in decimal. # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header if od -A x < /dev/null >/dev/null 2>/dev/null; then @@ -21631,19 +22010,22 @@ $as_echo "$gl_cv_elf" >&6; } echo } fi + # Use 'expr', not 'test', to compare the values of func_elfclass, because on + # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, + # not 1 or 2. case $HOST_CPU_C_ABI_32BIT in yes) # 32-bit ABI. acl_is_expected_elfclass () { - test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 + expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null } ;; no) # 64-bit ABI. acl_is_expected_elfclass () { - test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 + expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null } ;; *) @@ -21661,11 +22043,12 @@ $as_echo "$gl_cv_elf" >&6; } } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 -$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; } -if ${acl_cv_libdirstems+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 +printf %s "checking for the common suffixes of directories in the library search path... " >&6; } +if test ${acl_cv_libdirstems+y} +then : + printf %s "(cached) " >&6 +else $as_nop acl_libdirstem=lib acl_libdirstem2= acl_libdirstem3= @@ -21679,6 +22062,13 @@ else esac fi ;; + netbsd*) + if test $HOST_CPU_C_ABI_32BIT != no; then + case "$host_cpu" in + sparc*) acl_libdirstem2=lib/sparc ;; + esac + fi + ;; *) searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` @@ -21695,7 +22085,7 @@ else fi fi if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" + acl_saved_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in @@ -21712,7 +22102,7 @@ else esac fi done - IFS="$acl_save_IFS" + IFS="$acl_saved_IFS" if test $HOST_CPU_C_ABI_32BIT = yes; then # 32-bit ABI. acl_libdirstem3= @@ -21729,8 +22119,8 @@ else acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 -$as_echo "$acl_cv_libdirstems" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 +printf "%s\n" "$acl_cv_libdirstems" >&6; } acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` @@ -21747,9 +22137,9 @@ $as_echo "$acl_cv_libdirstems" >&6; } use_additional=yes - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" @@ -21757,21 +22147,22 @@ $as_echo "$acl_cv_libdirstems" >&6; } eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" # Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then : +if test ${with_libiconv_prefix+y} +then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" @@ -21779,8 +22170,8 @@ if test "${with_libiconv_prefix+set}" = set; then : eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" else additional_includedir="$withval/include" @@ -21892,13 +22283,13 @@ fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" case "$x" in -L*) @@ -21986,13 +22377,13 @@ fi haveit= for x in $LDFLAGS $LIBICONV; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes @@ -22054,13 +22445,13 @@ fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes @@ -22076,12 +22467,12 @@ fi fi fi if test -n "$found_la"; then - save_libdir="$libdir" + saved_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac - libdir="$save_libdir" + libdir="$saved_libdir" for dep in $dependency_libs; do case "$dep" in -L*) @@ -22103,13 +22494,13 @@ fi haveit= for x in $LDFLAGS $LIBICONV; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes @@ -22124,13 +22515,13 @@ fi haveit= for x in $LDFLAGS $LTLIBICONV; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes @@ -22171,7 +22562,14 @@ fi fi ;; -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + dep=`echo "X$dep" | sed -e 's/^X-l//'` + if test "X$dep" != Xc \ + || case $host_os in + linux* | gnu* | k*bsd*-gnu) false ;; + *) true ;; + esac; then + names_next_round="$names_next_round $dep" + fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` @@ -22197,17 +22595,17 @@ fi for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done - acl_save_libdir="$libdir" + acl_saved_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" + libdir="$acl_saved_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" + acl_saved_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" + libdir="$acl_saved_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi @@ -22224,6 +22622,14 @@ fi + gl_sed_double_backslashes='s/\\/\\\\/g' + gl_sed_escape_doublequotes='s/"/\\"/g' + gl_sed_escape_for_make_1="s,\\([ \"&'();<>\\\\\`|]\\),\\\\\\1,g" + gl_sed_escape_for_make_2='s,\$,\\$$,g' + case `echo r | tr -d '\r'` in + '') gl_tr_cr='\015' ;; + *) gl_tr_cr='\r' ;; + esac @@ -22246,78 +22652,83 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 -$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } -if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : - $as_echo_n "(cached) " >&6 -else - gt_save_LIBS="$LIBS" + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +printf %s "checking for CFPreferencesCopyAppValue... " >&6; } +if test ${gt_cv_func_CFPreferencesCopyAppValue+y} +then : + printf %s "(cached) " >&6 +else $as_nop + gt_saved_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_func_CFPreferencesCopyAppValue=yes -else +else $as_nop gt_cv_func_CFPreferencesCopyAppValue=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" + LIBS="$gt_saved_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then -$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h +printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 -$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } -if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : - $as_echo_n "(cached) " >&6 -else - gt_save_LIBS="$LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 +printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } +if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} +then : + printf %s "(cached) " >&6 +else $as_nop + gt_saved_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { CFLocaleCopyPreferredLanguages(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_func_CFLocaleCopyPreferredLanguages=yes -else +else $as_nop gt_cv_func_CFLocaleCopyPreferredLanguages=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" + LIBS="$gt_saved_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 -$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 +printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then -$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h +printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" fi @@ -22357,11 +22768,12 @@ typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; gt_expression_test_code= fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 -$as_echo_n "checking for GNU gettext in libc... " >&6; } -if eval \${$gt_func_gnugettext_libc+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 +printf %s "checking for GNU gettext in libc... " >&6; } +if eval test \${$gt_func_gnugettext_libc+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -22376,7 +22788,7 @@ extern int *_nl_domain_bindings; $gt_revision_test_code int -main () +main (void) { bindtextdomain ("", ""); @@ -22386,17 +22798,18 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$gt_func_gnugettext_libc=yes" -else +else $as_nop eval "$gt_func_gnugettext_libc=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then @@ -22404,19 +22817,19 @@ $as_echo "$ac_res" >&6; } - am_save_CPPFLAGS="$CPPFLAGS" + gl_saved_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X$element"; then haveit=yes @@ -22429,11 +22842,12 @@ $as_echo "$ac_res" >&6; } done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 -$as_echo_n "checking for iconv... " >&6; } -if ${am_cv_func_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +printf %s "checking for iconv... " >&6; } +if test ${am_cv_func_iconv+y} +then : + printf %s "(cached) " >&6 +else $as_nop am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no @@ -22444,7 +22858,7 @@ else #include int -main () +main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); @@ -22453,13 +22867,14 @@ iconv_t cd = iconv_open("",""); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_func_iconv=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" + gl_saved_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -22468,7 +22883,7 @@ rm -f core conftest.err conftest.$ac_objext \ #include int -main () +main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); @@ -22477,37 +22892,40 @@ iconv_t cd = iconv_open("",""); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" + LIBS="$gl_saved_LIBS" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 -$as_echo "$am_cv_func_iconv" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +printf "%s\n" "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 -$as_echo_n "checking for working iconv... " >&6; } -if ${am_cv_func_iconv_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 +printf %s "checking for working iconv... " >&6; } +if test ${am_cv_func_iconv_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop - am_save_LIBS="$LIBS" + gl_saved_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi am_cv_func_iconv_works=no for ac_iconv_const in '' 'const'; do - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -22519,11 +22937,12 @@ else #endif int -main () +main (void) { int result = 0; - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ + /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from + successful returns. This is even documented in + */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) @@ -22631,7 +23050,8 @@ int result = 0; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : am_cv_func_iconv_works=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -22640,11 +23060,11 @@ fi test "$am_cv_func_iconv_works" = no || break done - LIBS="$am_save_LIBS" + LIBS="$gl_saved_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 -$as_echo "$am_cv_func_iconv_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 +printf "%s\n" "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; @@ -22654,16 +23074,16 @@ $as_echo "$am_cv_func_iconv_works" >&6; } fi if test "$am_func_iconv" = yes; then -$as_echo "#define HAVE_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 -$as_echo_n "checking how to link with libiconv... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 -$as_echo "$LIBICONV" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +printf %s "checking how to link with libiconv... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +printf "%s\n" "$LIBICONV" >&6; } else - CPPFLAGS="$am_save_CPPFLAGS" + CPPFLAGS="$gl_saved_CPPFLAGS" LIBICONV= LTLIBICONV= fi @@ -22679,9 +23099,9 @@ $as_echo "$LIBICONV" >&6; } use_additional=yes - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" @@ -22689,21 +23109,22 @@ $as_echo "$LIBICONV" >&6; } eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" # Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then : +if test ${with_libintl_prefix+y} +then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" @@ -22711,8 +23132,8 @@ if test "${with_libintl_prefix+set}" = set; then : eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" else additional_includedir="$withval/include" @@ -22824,13 +23245,13 @@ fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" case "$x" in -L*) @@ -22918,13 +23339,13 @@ fi haveit= for x in $LDFLAGS $LIBINTL; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes @@ -22986,13 +23407,13 @@ fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes @@ -23008,12 +23429,12 @@ fi fi fi if test -n "$found_la"; then - save_libdir="$libdir" + saved_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac - libdir="$save_libdir" + libdir="$saved_libdir" for dep in $dependency_libs; do case "$dep" in -L*) @@ -23035,13 +23456,13 @@ fi haveit= for x in $LDFLAGS $LIBINTL; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes @@ -23056,13 +23477,13 @@ fi haveit= for x in $LDFLAGS $LTLIBINTL; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes @@ -23103,7 +23524,14 @@ fi fi ;; -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + dep=`echo "X$dep" | sed -e 's/^X-l//'` + if test "X$dep" != Xc \ + || case $host_os in + linux* | gnu* | k*bsd*-gnu) false ;; + *) true ;; + esac; then + names_next_round="$names_next_round $dep" + fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` @@ -23129,17 +23557,17 @@ fi for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done - acl_save_libdir="$libdir" + acl_saved_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" + libdir="$acl_saved_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" + acl_saved_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" + libdir="$acl_saved_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi @@ -23154,11 +23582,12 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 -$as_echo_n "checking for GNU gettext in libintl... " >&6; } -if eval \${$gt_func_gnugettext_libintl+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 +printf %s "checking for GNU gettext in libintl... " >&6; } +if eval test \${$gt_func_gnugettext_libintl+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" @@ -23181,7 +23610,7 @@ const char *_nl_expand_alias (const char *); $gt_revision_test_code int -main () +main (void) { bindtextdomain ("", ""); @@ -23191,15 +23620,22 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$gt_func_gnugettext_libintl=yes" -else +else $as_nop eval "$gt_func_gnugettext_libintl=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" + gt_LIBINTL_EXTRA="$INTL_MACOSX_LIBS" + + case "$host_os" in + aix*) gt_LIBINTL_EXTRA="-lpthread" ;; + esac + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } \ + && { test -n "$LIBICONV" || test -n "$gt_LIBINTL_EXTRA"; }; then + LIBS="$LIBS $LIBICONV $gt_LIBINTL_EXTRA" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -23218,7 +23654,7 @@ const char *_nl_expand_alias (const char *); $gt_revision_test_code int -main () +main (void) { bindtextdomain ("", ""); @@ -23228,27 +23664,29 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" +if ac_fn_c_try_link "$LINENO" +then : + LIBINTL="$LIBINTL $LIBICONV $gt_LIBINTL_EXTRA" + LTLIBINTL="$LTLIBINTL $LTLIBICONV $gt_LIBINTL_EXTRA" eval "$gt_func_gnugettext_libintl=yes" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ - && test "$PACKAGE" != gettext-tools; }; then + && test "$PACKAGE" != gettext-tools \ + && test "$PACKAGE" != libintl; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= @@ -23269,20 +23707,20 @@ $as_echo "$ac_res" >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then -$as_echo "#define ENABLE_NLS 1" >>confdefs.h +printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 -$as_echo_n "checking whether to use NLS... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 +printf %s "checking whether to use NLS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +printf "%s\n" "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 -$as_echo_n "checking where the gettext function comes from... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 +printf %s "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" @@ -23292,30 +23730,30 @@ $as_echo_n "checking where the gettext function comes from... " >&6; } else gt_source="included intl directory" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 -$as_echo "$gt_source" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 +printf "%s\n" "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 -$as_echo_n "checking how to link with libintl... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 -$as_echo "$LIBINTL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 +printf %s "checking how to link with libintl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 +printf "%s\n" "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do - acl_save_prefix="$prefix" + acl_saved_prefix="$prefix" prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" + acl_saved_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + exec_prefix="$acl_saved_exec_prefix" + prefix="$acl_saved_prefix" if test "X$x" = "X$element"; then haveit=yes @@ -23330,10 +23768,10 @@ $as_echo "$LIBINTL" >&6; } fi -$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h -$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h fi @@ -23342,7 +23780,8 @@ $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h - INTLLIBS="$LIBINTL" + + INTLLIBS="$LIBINTL" @@ -23350,42 +23789,81 @@ $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h + gt_save_prefix="${prefix}" + gt_save_datarootdir="${datarootdir}" + gt_save_localedir="${localedir}" + if test "X$prefix" = "XNONE"; then + prefix="$ac_default_prefix" + fi + eval datarootdir="$datarootdir" + eval localedir="$localedir" + + + + + + gl_final_localedir="$localedir" + case "$build_os" in + cygwin*) + case "$host_os" in + mingw* | windows*) + gl_final_localedir=`cygpath -w "$gl_final_localedir"` ;; + esac + ;; + esac + localedir_c=`printf '%s\n' "$gl_final_localedir" | sed -e "$gl_sed_double_backslashes" -e "$gl_sed_escape_doublequotes" | tr -d "$gl_tr_cr"` + localedir_c='"'"$localedir_c"'"' + + + localedir_c_make=`printf '%s\n' "$localedir_c" | sed -e "$gl_sed_escape_for_make_1" -e "$gl_sed_escape_for_make_2" | tr -d "$gl_tr_cr"` + if test "$localedir_c_make" = '\"'"${gl_final_localedir}"'\"'; then + localedir_c_make='\"$(localedir)\"' + fi + + + localedir="${gt_save_localedir}" + datarootdir="${gt_save_datarootdir}" + prefix="${gt_save_prefix}" + + # Check whether --enable-redhat-pthread-workaround was given. -if test "${enable_redhat_pthread_workaround+set}" = set; then : +if test ${enable_redhat_pthread_workaround+y} +then : enableval=$enable_redhat_pthread_workaround; ac_cv_enable_redhat_pthread_workaround=$enableval -else +else $as_nop ac_cv_enable_redhat_pthread_workaround=test fi if test "$ac_cv_enable_redhat_pthread_workaround" = "test" ; then if echo $ac_cv_uname_r | grep -E "\.EL(smp)?$" >/dev/null 2>&1 ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: See https://www.monitoring-plugins.org/doc/faq/configure-hangs.html if this next part takes a long time" >&5 -$as_echo "$as_me: See https://www.monitoring-plugins.org/doc/faq/configure-hangs.html if this next part takes a long time" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redhat spopen problem" >&5 -$as_echo_n "checking for redhat spopen problem... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: See https://www.monitoring-plugins.org/doc/faq/configure-hangs.html if this next part takes a long time" >&5 +printf "%s\n" "$as_me: See https://www.monitoring-plugins.org/doc/faq/configure-hangs.html if this next part takes a long time" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redhat spopen problem" >&5 +printf %s "checking for redhat spopen problem... " >&6; } ( cd config_test && make && make test ) > /dev/null 2>&1 if test $? -eq 0 ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 -$as_echo "okay" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5 +printf "%s\n" "okay" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 -$as_echo "error" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error" >&5 +printf "%s\n" "error" >&6; } -$as_echo "#define REDHAT_SPOPEN_ERROR 1" >>confdefs.h +printf "%s\n" "#define REDHAT_SPOPEN_ERROR 1" >>confdefs.h fi fi elif test "$ac_cv_enable_redhat_pthread_workaround" = "yes" ; then -$as_echo "#define REDHAT_SPOPEN_ERROR 1" >>confdefs.h +printf "%s\n" "#define REDHAT_SPOPEN_ERROR 1" >>confdefs.h fi # Check whether --enable-perl-modules was given. -if test "${enable_perl_modules+set}" = set; then : +if test ${enable_perl_modules+y} +then : enableval=$enable_perl_modules; enable_perl_modules=$enableval -else +else $as_nop enable_perl_modules=no fi @@ -23402,11 +23880,12 @@ case "$host" in HAVE_LIBPTHREAD=1 ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 -$as_echo_n "checking for main in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_main+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 +printf %s "checking for main in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -23414,28 +23893,28 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_main=yes -else +else $as_nop ac_cv_lib_pthread_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5 -$as_echo "$ac_cv_lib_pthread_main" >&6; } -if test "x$ac_cv_lib_pthread_main" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPTHREAD 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5 +printf "%s\n" "$ac_cv_lib_pthread_main" >&6; } +if test "x$ac_cv_lib_pthread_main" = xyes +then : + printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h LIBS="-lpthread $LIBS" @@ -23453,14 +23932,15 @@ esac # Check whether --enable-cross-guesses was given. -if test "${enable_cross_guesses+set}" = set; then : +if test ${enable_cross_guesses+y} +then : enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 -$as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 +printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} enableval=conservative fi gl_cross_guesses="$enableval" -else +else $as_nop gl_cross_guesses=conservative fi @@ -23477,16 +23957,17 @@ fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 -$as_echo_n "checking for working alloca.h... " >&6; } -if ${ac_cv_working_alloca_h+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +printf %s "checking for working alloca.h... " >&6; } +if test ${ac_cv_working_alloca_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; @@ -23494,52 +23975,52 @@ char *p = (char *) alloca (2 * sizeof (int)); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_working_alloca_h=yes -else +else $as_nop ac_cv_working_alloca_h=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 -$as_echo "$ac_cv_working_alloca_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +printf "%s\n" "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then -$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 -$as_echo_n "checking for alloca... " >&6; } -if ${ac_cv_func_alloca_works+:} false; then : - $as_echo_n "(cached) " >&6 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +printf %s "checking for alloca... " >&6; } +if test ${ac_cv_func_alloca_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test $ac_cv_working_alloca_h = yes; then + ac_cv_func_alloca_works=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER +#include +#include +#ifndef alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _MSC_VER # include # define alloca _alloca # else -# ifdef HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -void *alloca (size_t); -# endif -# endif +# ifdef __cplusplus +extern "C" # endif +void *alloca (size_t); # endif #endif int -main () +main (void) { char *p = (char *) alloca (1); if (p) return 0; @@ -23547,20 +24028,22 @@ char *p = (char *) alloca (1); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func_alloca_works=yes -else +else $as_nop ac_cv_func_alloca_works=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 -$as_echo "$ac_cv_func_alloca_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +printf "%s\n" "$ac_cv_func_alloca_works" >&6; } +fi if test $ac_cv_func_alloca_works = yes; then -$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions @@ -23574,17 +24057,19 @@ else ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -$as_echo "#define C_ALLOCA 1" >>confdefs.h +printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 -$as_echo_n "checking stack direction for C alloca... " >&6; } -if ${ac_cv_c_stack_direction+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +printf %s "checking stack direction for C alloca... " >&6; } +if test ${ac_cv_c_stack_direction+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : ac_cv_c_stack_direction=0 -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -23605,9 +24090,10 @@ main (int argc, char **argv) return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_stack_direction=1 -else +else $as_nop ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -23615,11 +24101,9 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 -$as_echo "$ac_cv_c_stack_direction" >&6; } -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +printf "%s\n" "$ac_cv_c_stack_direction" >&6; } +printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h fi @@ -23633,12 +24117,12 @@ fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 -$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } -if ${gl_cv_have_include_next+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 +printf %s "checking whether the preprocessor supports include_next... " >&6; } +if test ${gl_cv_have_include_next+y} +then : + printf %s "(cached) " >&6 +else $as_nop rm -rf conftestd1a conftestd1b conftestd2 mkdir conftestd1a conftestd1b conftestd2 cat < conftestd1a/conftest.h @@ -23672,29 +24156,31 @@ EOF /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_have_include_next=yes -else +else $as_nop CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_have_include_next=buggy -else +else $as_nop gl_cv_have_include_next=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CPPFLAGS="$gl_save_CPPFLAGS" rm -rf conftestd1a conftestd1b conftestd2 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 -$as_echo "$gl_cv_have_include_next" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 +printf "%s\n" "$gl_cv_have_include_next" >&6; } PRAGMA_SYSTEM_HEADER= if test $gl_cv_have_include_next = yes; then INCLUDE_NEXT=include_next @@ -23715,11 +24201,12 @@ $as_echo "$gl_cv_have_include_next" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5 -$as_echo_n "checking whether source code line length is unlimited... " >&6; } -if ${gl_cv_source_line_length_unlimited+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5 +printf %s "checking whether source code line length is unlimited... " >&6; } +if test ${gl_cv_source_line_length_unlimited+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -23729,17 +24216,18 @@ choke me _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "choke me" >/dev/null 2>&1; then : + $EGREP "choke me" >/dev/null 2>&1 +then : gl_cv_source_line_length_unlimited=no -else +else $as_nop gl_cv_source_line_length_unlimited=yes fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5 -$as_echo "$gl_cv_source_line_length_unlimited" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5 +printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; } if test $gl_cv_source_line_length_unlimited = no; then PRAGMA_COLUMNS="#pragma COLUMNS 10000" else @@ -23750,7 +24238,6 @@ $as_echo "$gl_cv_source_line_length_unlimited" >&6; } - if test $ac_cv_header_features_h = yes; then HAVE_FEATURES_H=1 else @@ -23760,20 +24247,14 @@ $as_echo "$gl_cv_source_line_length_unlimited" >&6; } - if test $ac_cv_header_sys_socket_h = no; then - for ac_header in ws2tcpip.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" -if test "x$ac_cv_header_ws2tcpip_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WS2TCPIP_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" +if test "x$ac_cv_header_ws2tcpip_h" = xyes +then : + printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h fi -done - fi @@ -23798,11 +24279,12 @@ done if test $gl_cv_have_include_next = yes; then gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_arpa_inet_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_arpa_inet_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_arpa_inet_h = yes; then @@ -23847,8 +24329,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5 -$as_echo "$gl_cv_next_arpa_inet_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5 +printf "%s\n" "$gl_cv_next_arpa_inet_h" >&6; } fi NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h @@ -23895,11 +24377,12 @@ $as_echo "$gl_cv_next_arpa_inet_h" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 -$as_echo_n "checking for C/C++ restrict keyword... " >&6; } -if ${ac_cv_c_restrict+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 +printf %s "checking for C/C++ restrict keyword... " >&6; } +if test ${ac_cv_c_restrict+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_c_restrict=no # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html @@ -23908,40 +24391,39 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ typedef int *int_ptr; - int foo (int_ptr $ac_kw ip) { return ip[0]; } - int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ - int bar (int ip[$ac_kw]) { return ip[0]; } + int foo (int_ptr $ac_kw ip) { return ip[0]; } + int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ + int bar (int ip[$ac_kw]) { return ip[0]; } int -main () +main (void) { int s[1]; - int *$ac_kw t = s; - t[0] = 0; - return foo (t) + bar (t); + int *$ac_kw t = s; + t[0] = 0; + return foo (t) + bar (t); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_restrict=$ac_kw fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_restrict" != no && break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 -$as_echo "$ac_cv_c_restrict" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 +printf "%s\n" "$ac_cv_c_restrict" >&6; } case $ac_cv_c_restrict in restrict) ;; - no) $as_echo "#define restrict /**/" >>confdefs.h + no) printf "%s\n" "#define restrict /**/" >>confdefs.h ;; - *) cat >>confdefs.h <<_ACEOF -#define restrict $ac_cv_c_restrict -_ACEOF + *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h ;; esac @@ -24006,11 +24488,12 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uses 'inline' correctly" >&5 -$as_echo_n "checking whether uses 'inline' correctly... " >&6; } -if ${gl_cv_header_wchar_h_correct_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uses 'inline' correctly" >&5 +printf %s "checking whether uses 'inline' correctly... " >&6; } +if test ${gl_cv_header_wchar_h_correct_inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_header_wchar_h_correct_inline=yes case "$host_os" in *-gnu* | gnu*) @@ -24030,7 +24513,7 @@ _ACEOF && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -24046,7 +24529,7 @@ _ACEOF && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then : @@ -24061,8 +24544,8 @@ _ACEOF esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 -$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 +printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; } if test $gl_cv_header_wchar_h_correct_inline = no; then as_fn_error $? " cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in @@ -24075,65 +24558,64 @@ C99 mode. You have four options: Configuration aborted." "$LINENO" 5 fi - - - - for ac_func in $ac_func_list -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi +ac_func= +for ac_item in $ac_func_c_list +do + if test $ac_func; then + ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func + if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then + echo "#define $ac_item 1" >> confdefs.h + fi + ac_func= + else + ac_func=$ac_item + fi done - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 -$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } -if ${am_cv_langinfo_codeset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 +printf %s "checking for nl_langinfo and CODESET... " >&6; } +if test ${am_cv_langinfo_codeset+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { char* cs = nl_langinfo(CODESET); return !cs; ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_langinfo_codeset=yes -else +else $as_nop am_cv_langinfo_codeset=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 -$as_echo "$am_cv_langinfo_codeset" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 +printf "%s\n" "$am_cv_langinfo_codeset" >&6; } if test $am_cv_langinfo_codeset = yes; then -$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 -$as_echo_n "checking for a traditional french locale... " >&6; } -if ${gt_cv_locale_fr+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 +printf %s "checking for a traditional french locale... " >&6; } +if test ${gt_cv_locale_fr+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -24207,7 +24689,7 @@ _ACEOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then case "$host_os" in # Handle native Windows specially, because there setlocale() interprets @@ -24263,8 +24745,8 @@ _ACEOF rm -fr conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 -$as_echo "$gt_cv_locale_fr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 +printf "%s\n" "$gt_cv_locale_fr" >&6; } LOCALE_FR=$gt_cv_locale_fr @@ -24710,17 +25192,18 @@ $as_echo "$gt_cv_locale_fr" >&6; } REPLACE_WCTOMB=0; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5 -$as_echo_n "checking whether malloc is ptrdiff_t safe... " >&6; } -if ${gl_cv_malloc_ptrdiff+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5 +printf %s "checking whether malloc is ptrdiff_t safe... " >&6; } +if test ${gl_cv_malloc_ptrdiff+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { /* 64-bit ptrdiff_t is so wide that no practical platform can exceed it. */ @@ -24746,16 +25229,17 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_malloc_ptrdiff=yes -else +else $as_nop gl_cv_malloc_ptrdiff=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5 -$as_echo "$gl_cv_malloc_ptrdiff" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5 +printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; } @@ -24764,11 +25248,12 @@ $as_echo "$gl_cv_malloc_ptrdiff" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5 -$as_echo_n "checking whether malloc, realloc, calloc set errno on failure... " >&6; } -if ${gl_cv_func_malloc_posix+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5 +printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; } +if test ${gl_cv_func_malloc_posix+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in mingw*) @@ -24781,8 +25266,8 @@ else esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 -$as_echo "$gl_cv_func_malloc_posix" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 +printf "%s\n" "$gl_cv_func_malloc_posix" >&6; } @@ -24790,7 +25275,7 @@ $as_echo "$gl_cv_func_malloc_posix" >&6; } if test "$gl_cv_func_malloc_posix" = yes; then -$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h +printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h else REPLACE_MALLOC_FOR_MALLOC_POSIX=1 @@ -24904,11 +25389,10 @@ $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h - if test $ac_cv_func__set_invalid_parameter_handler = yes; then HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 -$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h +printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h else HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 @@ -25267,79 +25751,79 @@ $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h case "$host_os" in osf*) -$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h +printf "%s\n" "#define _POSIX_PII_SOCKET 1" >>confdefs.h ;; esac GL_GENERATE_SYS_SOCKET_H=false - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 -$as_echo_n "checking whether is self-contained... " >&6; } -if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 +printf %s "checking whether is self-contained... " >&6; } +if test ${gl_cv_header_sys_socket_h_selfcontained+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_sys_socket_h_selfcontained=yes -else +else $as_nop gl_cv_header_sys_socket_h_selfcontained=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5 -$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5 +printf "%s\n" "$gl_cv_header_sys_socket_h_selfcontained" >&6; } if test $gl_cv_header_sys_socket_h_selfcontained = yes; then - for ac_func in shutdown -do : - ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" -if test "x$ac_cv_func_shutdown" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SHUTDOWN 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" +if test "x$ac_cv_func_shutdown" = xyes +then : + printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h fi -done if test $ac_cv_func_shutdown = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines the SHUT_* macros" >&5 -$as_echo_n "checking whether defines the SHUT_* macros... " >&6; } -if ${gl_cv_header_sys_socket_h_shut+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether defines the SHUT_* macros" >&5 +printf %s "checking whether defines the SHUT_* macros... " >&6; } +if test ${gl_cv_header_sys_socket_h_shut+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_sys_socket_h_shut=yes -else +else $as_nop gl_cv_header_sys_socket_h_shut=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5 -$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5 +printf "%s\n" "$gl_cv_header_sys_socket_h_shut" >&6; } if test $gl_cv_header_sys_socket_h_shut = no; then GL_GENERATE_SYS_SOCKET_H=true fi @@ -25360,11 +25844,12 @@ $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; } if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_socket_h='<'sys/socket.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_sys_socket_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_sys_socket_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_sys_socket_h = yes; then @@ -25409,8 +25894,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5 -$as_echo "$gl_cv_next_sys_socket_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5 +printf "%s\n" "$gl_cv_next_sys_socket_h" >&6; } fi NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h @@ -25459,11 +25944,10 @@ $as_echo "$gl_cv_next_sys_socket_h" >&6; } #endif " -if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : +if test "x$ac_cv_type_struct_sockaddr_storage" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_SOCKADDR_STORAGE 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h fi @@ -25480,11 +25964,10 @@ ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " #endif " -if test "x$ac_cv_type_sa_family_t" = xyes; then : +if test "x$ac_cv_type_sa_family_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_SA_FAMILY_T 1 -_ACEOF +printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h fi @@ -25505,14 +25988,13 @@ fi #endif " -if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : +if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h -else +else $as_nop HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0 fi @@ -25526,18 +26008,13 @@ fi if test $ac_cv_header_sys_socket_h != yes; then - for ac_header in winsock2.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" -if test "x$ac_cv_header_winsock2_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINSOCK2_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes +then : + printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi -done - fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 @@ -25555,32 +26032,34 @@ done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +printf %s "checking for inline... " >&6; } +if test ${ac_cv_c_inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } +static $ac_kw foo_t static_foo (void) {return 0; } +$ac_kw foo_t foo (void) {return 0; } #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_inline=$ac_kw fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +printf "%s\n" "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; @@ -25601,11 +26080,12 @@ esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/if_alg.h has struct sockaddr_alg." >&5 -$as_echo_n "checking whether linux/if_alg.h has struct sockaddr_alg.... " >&6; } -if ${gl_cv_header_linux_if_alg_salg+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether linux/if_alg.h has struct sockaddr_alg." >&5 +printf %s "checking whether linux/if_alg.h has struct sockaddr_alg.... " >&6; } +if test ${gl_cv_header_linux_if_alg_salg+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -25616,41 +26096,43 @@ else .salg_name = "sha1", }; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_linux_if_alg_salg=yes -else +else $as_nop gl_cv_header_linux_if_alg_salg=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_linux_if_alg_salg" >&5 -$as_echo "$gl_cv_header_linux_if_alg_salg" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_linux_if_alg_salg" >&5 +printf "%s\n" "$gl_cv_header_linux_if_alg_salg" >&6; } if test "$gl_cv_header_linux_if_alg_salg" = yes; then -$as_echo "#define HAVE_LINUX_IF_ALG_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_LINUX_IF_ALG_H 1" >>confdefs.h fi use_af_alg=no # Check whether --with-linux-crypto was given. -if test "${with_linux_crypto+set}" = set; then : +if test ${with_linux_crypto+y} +then : withval=$with_linux_crypto; use_af_alg=$withval -else +else $as_nop use_af_alg=no fi if test "$gl_cv_header_linux_if_alg_salg" != yes; then if test "$use_af_alg" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linux kernel cryptographic API not found" >&5 -$as_echo "$as_me: WARNING: Linux kernel cryptographic API not found" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Linux kernel cryptographic API not found" >&5 +printf "%s\n" "$as_me: WARNING: Linux kernel cryptographic API not found" >&2;} fi use_af_alg=no fi @@ -25661,17 +26143,16 @@ $as_echo "$as_me: WARNING: Linux kernel cryptographic API not found" >&2;} USE_AF_ALG=0 fi -cat >>confdefs.h <<_ACEOF -#define USE_LINUX_CRYPTO_API $USE_AF_ALG -_ACEOF +printf "%s\n" "#define USE_LINUX_CRYPTO_API $USE_AF_ALG" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25682,7 +26163,8 @@ else typedef int dummy; _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. @@ -25706,7 +26188,7 @@ if ac_fn_c_try_compile "$LINENO"; then : fi done fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25715,7 +26197,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include int -main () +main (void) { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ @@ -25727,7 +26209,8 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -25735,7 +26218,7 @@ if ac_fn_c_try_compile "$LINENO"; then : #include int -main () +main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian @@ -25745,14 +26228,15 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else +else $as_nop ac_cv_c_bigendian=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). @@ -25761,7 +26245,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include int -main () +main (void) { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros @@ -25771,14 +26255,15 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { #ifndef _BIG_ENDIAN not big endian @@ -25788,31 +26273,33 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else +else $as_nop ac_cv_c_bigendian=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -short int ascii_mm[] = +unsigned short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - short int ascii_ii[] = + unsigned short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } - short int ebcdic_ii[] = + unsigned short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - short int ebcdic_mm[] = + unsigned short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; @@ -25820,14 +26307,15 @@ short int ascii_mm[] = extern int foo; int -main () +main (void) { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi @@ -25840,13 +26328,13 @@ if ac_fn_c_try_compile "$LINENO"; then : fi fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { /* Are we little or big endian? From Harbison&Steele. */ @@ -25862,9 +26350,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_bigendian=no -else +else $as_nop ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -25873,17 +26362,17 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +printf "%s\n" "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) - $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h + printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h +printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) @@ -25954,13 +26443,12 @@ gl_mda_defines=' - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 -$as_echo_n "checking if environ is properly declared... " >&6; } -if ${gt_cv_var_environ_declaration+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 +printf %s "checking if environ is properly declared... " >&6; } +if test ${gt_cv_var_environ_declaration+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_UNISTD_H @@ -25972,25 +26460,26 @@ else typedef struct { int foo; } foo_t; extern foo_t environ; int -main () +main (void) { environ.foo = 1; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_var_environ_declaration=no -else +else $as_nop gt_cv_var_environ_declaration=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 -$as_echo "$gt_cv_var_environ_declaration" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 +printf "%s\n" "$gt_cv_var_environ_declaration" >&6; } if test $gt_cv_var_environ_declaration = yes; then -$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h +printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h fi @@ -26001,11 +26490,12 @@ $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 -$as_echo_n "checking for complete errno.h... " >&6; } -if ${gl_cv_header_errno_h_complete+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 +printf %s "checking for complete errno.h... " >&6; } +if test ${gl_cv_header_errno_h_complete+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -26065,17 +26555,18 @@ booboo _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "booboo" >/dev/null 2>&1; then : + $EGREP "booboo" >/dev/null 2>&1 +then : gl_cv_header_errno_h_complete=no -else +else $as_nop gl_cv_header_errno_h_complete=yes fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 -$as_echo "$gl_cv_header_errno_h_complete" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 +printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; } if test $gl_cv_header_errno_h_complete = yes; then GL_GENERATE_ERRNO_H=false else @@ -26090,11 +26581,12 @@ $as_echo "$gl_cv_header_errno_h_complete" >&6; } if test $gl_cv_have_include_next = yes; then gl_cv_next_errno_h='<'errno.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_errno_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_errno_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -26133,8 +26625,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 -$as_echo "$gl_cv_next_errno_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 +printf "%s\n" "$gl_cv_next_errno_h" >&6; } fi NEXT_ERRNO_H=$gl_cv_next_errno_h @@ -26154,11 +26646,12 @@ $as_echo "$gl_cv_next_errno_h" >&6; } fi if $GL_GENERATE_ERRNO_H; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 -$as_echo_n "checking for EMULTIHOP value... " >&6; } -if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 +printf %s "checking for EMULTIHOP value... " >&6; } +if test ${gl_cv_header_errno_h_EMULTIHOP+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -26170,12 +26663,13 @@ yes _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : gl_cv_header_errno_h_EMULTIHOP=yes -else +else $as_nop gl_cv_header_errno_h_EMULTIHOP=no fi -rm -f conftest* +rm -rf conftest* if test $gl_cv_header_errno_h_EMULTIHOP = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26189,10 +26683,11 @@ yes _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : gl_cv_header_errno_h_EMULTIHOP=hidden fi -rm -f conftest* +rm -rf conftest* if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " @@ -26201,7 +26696,8 @@ rm -f conftest* /* The following two lines are a workaround against an autoconf-2.52 bug. */ #include #include -"; then : +" +then : fi @@ -26209,8 +26705,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 -$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 +printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; } case $gl_cv_header_errno_h_EMULTIHOP in yes | no) EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= @@ -26225,11 +26721,12 @@ $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } if $GL_GENERATE_ERRNO_H; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 -$as_echo_n "checking for ENOLINK value... " >&6; } -if ${gl_cv_header_errno_h_ENOLINK+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 +printf %s "checking for ENOLINK value... " >&6; } +if test ${gl_cv_header_errno_h_ENOLINK+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -26241,12 +26738,13 @@ yes _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : gl_cv_header_errno_h_ENOLINK=yes -else +else $as_nop gl_cv_header_errno_h_ENOLINK=no fi -rm -f conftest* +rm -rf conftest* if test $gl_cv_header_errno_h_ENOLINK = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26260,10 +26758,11 @@ yes _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : gl_cv_header_errno_h_ENOLINK=hidden fi -rm -f conftest* +rm -rf conftest* if test $gl_cv_header_errno_h_ENOLINK = hidden; then if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " @@ -26272,7 +26771,8 @@ rm -f conftest* /* The following two lines are a workaround against an autoconf-2.52 bug. */ #include #include -"; then : +" +then : fi @@ -26280,8 +26780,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 -$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 +printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; } case $gl_cv_header_errno_h_ENOLINK in yes | no) ENOLINK_HIDDEN=0; ENOLINK_VALUE= @@ -26296,11 +26796,12 @@ $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } if $GL_GENERATE_ERRNO_H; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 -$as_echo_n "checking for EOVERFLOW value... " >&6; } -if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 +printf %s "checking for EOVERFLOW value... " >&6; } +if test ${gl_cv_header_errno_h_EOVERFLOW+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -26312,12 +26813,13 @@ yes _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : gl_cv_header_errno_h_EOVERFLOW=yes -else +else $as_nop gl_cv_header_errno_h_EOVERFLOW=no fi -rm -f conftest* +rm -rf conftest* if test $gl_cv_header_errno_h_EOVERFLOW = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26331,10 +26833,11 @@ yes _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : gl_cv_header_errno_h_EOVERFLOW=hidden fi -rm -f conftest* +rm -rf conftest* if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " @@ -26343,7 +26846,8 @@ rm -f conftest* /* The following two lines are a workaround against an autoconf-2.52 bug. */ #include #include -"; then : +" +then : fi @@ -26351,8 +26855,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 -$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 +printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; } case $gl_cv_header_errno_h_EOVERFLOW in yes | no) EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= @@ -26366,41 +26870,39 @@ $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } fi -ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" -if test "x$ac_cv_have_decl_strerror_r" = xyes; then : +ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_strerror_r" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR_R $ac_have_decl -_ACEOF -for ac_func in strerror_r -do : - ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" -if test "x$ac_cv_func_strerror_r" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRERROR_R 1 -_ACEOF +if test $ac_cv_have_decl_strerror_r = yes; then + # For backward compatibility's sake, define HAVE_STRERROR_R. + # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well + # as AC_CHECK_DECLS_ONCE.) + +printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h fi -done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 -$as_echo_n "checking whether strerror_r returns char *... " >&6; } -if ${ac_cv_func_strerror_r_char_p+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 +printf %s "checking whether strerror_r returns char *... " >&6; } +if test ${ac_cv_func_strerror_r_char_p+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_func_strerror_r_char_p=no if test $ac_cv_have_decl_strerror_r = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include int -main () +main (void) { char buf[100]; @@ -26412,49 +26914,20 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_func_strerror_r_char_p=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - else - # strerror_r is not declared. Choose between - # systems that have relatively inaccessible declarations for the - # function. BeOS and DEC UNIX 4.0 fall in this category, but the - # former has a strerror_r that returns char*, while the latter - # has a strerror_r that returns `int'. - # This test should segfault on the DEC system. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default - extern char *strerror_r (); -int -main () -{ -char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - return ! isalpha (x); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_strerror_r_char_p=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 -$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 +printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } if test $ac_cv_func_strerror_r_char_p = yes; then -$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h +printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h fi @@ -26462,11 +26935,12 @@ fi XGETTEXT_EXTRA_OPTIONS= - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5 -$as_echo_n "checking whether ctype.h defines __header_inline... " >&6; } -if ${gl_cv_have___header_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5 +printf %s "checking whether ctype.h defines __header_inline... " >&6; } +if test ${gl_cv_have___header_inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -26475,18 +26949,19 @@ else #endif _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : gl_cv_have___header_inline=yes -else +else $as_nop gl_cv_have___header_inline=no fi rm -f conftest.err conftest.i conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5 -$as_echo "$gl_cv_have___header_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5 +printf "%s\n" "$gl_cv_have___header_inline" >&6; } if test "$gl_cv_have___header_inline" = yes; then -$as_echo "#define HAVE___HEADER_INLINE 1" >>confdefs.h +printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h fi @@ -26503,7 +26978,6 @@ $as_echo "#define HAVE___HEADER_INLINE 1" >>confdefs.h - GL_GNULIB_CREAT=0 @@ -26538,20 +27012,21 @@ $as_echo "#define HAVE___HEADER_INLINE 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 -$as_echo_n "checking for working fcntl.h... " >&6; } -if ${gl_cv_header_working_fcntl_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 +printf %s "checking for working fcntl.h... " >&6; } +if test ${gl_cv_header_working_fcntl_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess 'no' on native Windows. mingw*) gl_cv_header_working_fcntl_h='no' ;; *) gl_cv_header_working_fcntl_h=cross-compiling ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -26581,7 +27056,7 @@ $gl_mda_defines }; int -main () +main (void) { int result = !constants; @@ -26651,9 +27126,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_header_working_fcntl_h=yes -else +else $as_nop case $? in #( 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( @@ -26667,17 +27143,15 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 -$as_echo "$gl_cv_header_working_fcntl_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 +printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; } case $gl_cv_header_working_fcntl_h in #( *O_NOATIME* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac -cat >>confdefs.h <<_ACEOF -#define HAVE_WORKING_O_NOATIME $ac_val -_ACEOF +printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h case $gl_cv_header_working_fcntl_h in #( @@ -26685,19 +27159,16 @@ _ACEOF *) ac_val=1;; esac -cat >>confdefs.h <<_ACEOF -#define HAVE_WORKING_O_NOFOLLOW $ac_val -_ACEOF +printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" -if test "x$ac_cv_type_mode_t" = xyes; then : +if test "x$ac_cv_type_mode_t" = xyes +then : -else +else $as_nop -cat >>confdefs.h <<_ACEOF -#define mode_t int -_ACEOF +printf "%s\n" "#define mode_t int" >>confdefs.h fi @@ -26715,11 +27186,12 @@ fi if test $gl_cv_have_include_next = yes; then gl_cv_next_fcntl_h='<'fcntl.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_fcntl_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_fcntl_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -26758,8 +27230,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 -$as_echo "$gl_cv_next_fcntl_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 +printf "%s\n" "$gl_cv_next_fcntl_h" >&6; } fi NEXT_FCNTL_H=$gl_cv_next_fcntl_h @@ -27666,20 +28138,17 @@ $as_echo "$gl_cv_next_fcntl_h" >&6; } - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5 -$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; } -if ${gl_cv_var_stdin_large_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5 +printf %s "checking whether stdin defaults to large file offsets... " >&6; } +if test ${gl_cv_var_stdin_large_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { #if defined __SL64 && defined __SCLE /* cygwin */ /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making @@ -27694,16 +28163,17 @@ main () return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_var_stdin_large_offset=yes -else +else $as_nop gl_cv_var_stdin_large_offset=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5 -$as_echo "$gl_cv_var_stdin_large_offset" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5 +printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; } @@ -27711,44 +28181,47 @@ $as_echo "$gl_cv_var_stdin_large_offset" >&6; } case "$host_os" in mingw*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 -$as_echo_n "checking for 64-bit off_t... " >&6; } -if ${gl_cv_type_off_t_64+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 +printf %s "checking for 64-bit off_t... " >&6; } +if test ${gl_cv_type_off_t_64+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_type_off_t_64=yes -else +else $as_nop gl_cv_type_off_t_64=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 -$as_echo "$gl_cv_type_off_t_64" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 +printf "%s\n" "$gl_cv_type_off_t_64" >&6; } if test $gl_cv_type_off_t_64 = no; then WINDOWS_64_BIT_OFF_T=1 else WINDOWS_64_BIT_OFF_T=0 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 -$as_echo_n "checking for 64-bit st_size... " >&6; } -if ${gl_cv_member_st_size_64+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 +printf %s "checking for 64-bit st_size... " >&6; } +if test ${gl_cv_member_st_size_64+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -27756,23 +28229,24 @@ else int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_member_st_size_64=yes -else +else $as_nop gl_cv_member_st_size_64=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 -$as_echo "$gl_cv_member_st_size_64" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 +printf "%s\n" "$gl_cv_member_st_size_64" >&6; } if test $gl_cv_member_st_size_64 = no; then WINDOWS_64_BIT_ST_SIZE=1 else @@ -27795,7 +28269,7 @@ $as_echo "$gl_cv_member_st_size_64" >&6; } -$as_echo "#define _USE_STD_STAT 1" >>confdefs.h +printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h @@ -27809,11 +28283,12 @@ $as_echo "#define _USE_STD_STAT 1" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_types_h='<'sys/types.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_sys_types_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_sys_types_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -27852,8 +28327,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 -$as_echo "$gl_cv_next_sys_types_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 +printf "%s\n" "$gl_cv_next_sys_types_h" >&6; } fi NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h @@ -27881,16 +28356,14 @@ $as_echo "$gl_cv_next_sys_types_h" >&6; } -ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" -if test "x$ac_cv_have_decl_fseeko" = xyes; then : +ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fseeko" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FSEEKO $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_FSEEKO $ac_have_decl" >>confdefs.h @@ -27900,35 +28373,37 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 -$as_echo_n "checking for fseeko... " >&6; } -if ${gl_cv_func_fseeko+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 +printf %s "checking for fseeko... " >&6; } +if test ${gl_cv_func_fseeko+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { fseeko (stdin, 0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_fseeko=yes -else +else $as_nop gl_cv_func_fseeko=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 -$as_echo "$gl_cv_func_fseeko" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 +printf "%s\n" "$gl_cv_func_fseeko" >&6; } if test $ac_cv_have_decl_fseeko = no; then @@ -27947,20 +28422,22 @@ $as_echo "$gl_cv_func_fseeko" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 -$as_echo_n "checking whether fflush works on input streams... " >&6; } -if ${gl_cv_func_fflush_stdin+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 +printf %s "checking whether fflush works on input streams... " >&6; } +if test ${gl_cv_func_fflush_stdin+y} +then : + printf %s "(cached) " >&6 +else $as_nop echo hello world > conftest.txt - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_fflush_stdin="guessing no" ;; *) gl_cv_func_fflush_stdin=cross ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -27975,7 +28452,7 @@ else $gl_mda_defines int -main () +main (void) { FILE *f = fopen ("conftest.txt", "r"); char buffer[10]; @@ -28018,9 +28495,10 @@ FILE *f = fopen ("conftest.txt", "r"); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_fflush_stdin=yes -else +else $as_nop gl_cv_func_fflush_stdin=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -28030,17 +28508,15 @@ fi rm conftest.txt fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 -$as_echo "$gl_cv_func_fflush_stdin" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 +printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } case "$gl_cv_func_fflush_stdin" in *yes) gl_func_fflush_stdin=1 ;; *no) gl_func_fflush_stdin=0 ;; *) gl_func_fflush_stdin='(-1)' ;; esac -cat >>confdefs.h <<_ACEOF -#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin -_ACEOF +printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h case "$gl_cv_func_fflush_stdin" in @@ -28077,11 +28553,12 @@ _ACEOF REPLACE_STAT=0; REPLACE_UTIMENSAT=0; -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 -$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } -if ${ac_cv_header_stat_broken+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 +printf %s "checking whether stat file-mode macros are broken... " >&6; } +if test ${ac_cv_header_stat_broken+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -28104,18 +28581,19 @@ extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_header_stat_broken=no -else +else $as_nop ac_cv_header_stat_broken=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 -$as_echo "$ac_cv_header_stat_broken" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 +printf "%s\n" "$ac_cv_header_stat_broken" >&6; } if test $ac_cv_header_stat_broken = yes; then -$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h +printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h fi @@ -28133,16 +28611,15 @@ fi - - if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_stat_h='<'sys/stat.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_sys_stat_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_sys_stat_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_sys_stat_h = yes; then @@ -28187,8 +28664,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 -$as_echo "$gl_cv_next_sys_stat_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 +printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; } fi NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h @@ -28220,11 +28697,12 @@ $as_echo "$gl_cv_next_sys_stat_h" >&6; } ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include #include " -if test "x$ac_cv_type_nlink_t" = xyes; then : +if test "x$ac_cv_type_nlink_t" = xyes +then : -else +else $as_nop -$as_echo "#define nlink_t int" >>confdefs.h +printf "%s\n" "#define nlink_t int" >>confdefs.h fi @@ -28239,18 +28717,13 @@ fi case "$host_os" in mingw*) - for ac_header in sdkddkver.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default" -if test "x$ac_cv_header_sdkddkver_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SDKDDKVER_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default" +if test "x$ac_cv_header_sdkddkver_h" = xyes +then : + printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h fi -done - ;; esac @@ -28343,29 +28816,26 @@ done - - - -ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" -if test "x$ac_cv_have_decl_ftello" = xyes; then : +ac_fn_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_ftello" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FTELLO $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_FTELLO $ac_have_decl" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5 -$as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; } -if ${gl_cv_func_ungetc_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5 +printf %s "checking whether ungetc works on arbitrary bytes... " >&6; } +if test ${gl_cv_func_ungetc_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;; @@ -28379,14 +28849,14 @@ else *) gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { FILE *f; if (!(f = fopen ("conftest.tmp", "w+"))) @@ -28419,9 +28889,10 @@ FILE *f; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_ungetc_works=yes -else +else $as_nop gl_cv_func_ungetc_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -28430,8 +28901,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5 -$as_echo "$gl_cv_func_ungetc_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5 +printf "%s\n" "$gl_cv_func_ungetc_works" >&6; } gl_ftello_broken_after_ungetc=no case "$gl_cv_func_ungetc_works" in *yes) ;; @@ -28440,7 +28911,7 @@ $as_echo "$gl_cv_func_ungetc_works" >&6; } darwin*) gl_ftello_broken_after_ungetc=yes ;; *) -$as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h +printf "%s\n" "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h ;; esac @@ -28460,34 +28931,36 @@ $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h HAVE_DECL_FTELLO=0 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5 -$as_echo_n "checking for ftello... " >&6; } -if ${gl_cv_func_ftello+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5 +printf %s "checking for ftello... " >&6; } +if test ${gl_cv_func_ftello+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { ftello (stdin); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_ftello=yes -else +else $as_nop gl_cv_func_ftello=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5 -$as_echo "$gl_cv_func_ftello" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5 +printf "%s\n" "$gl_cv_func_ftello" >&6; } if test $gl_cv_func_ftello = no; then HAVE_FTELLO=0 else @@ -28499,11 +28972,12 @@ $as_echo "$gl_cv_func_ftello" >&6; } fi if test $REPLACE_FTELLO = 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5 -$as_echo_n "checking whether ftello works... " >&6; } -if ${gl_cv_func_ftello_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5 +printf %s "checking whether ftello works... " >&6; } +if test ${gl_cv_func_ftello_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on Solaris. @@ -28513,9 +28987,10 @@ else # Guess yes otherwise. *) gl_cv_func_ftello_works="guessing yes" ;; esac - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28577,9 +29052,10 @@ main (void) return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_ftello_works=yes -else +else $as_nop gl_cv_func_ftello_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -28588,14 +29064,14 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5 -$as_echo "$gl_cv_func_ftello_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5 +printf "%s\n" "$gl_cv_func_ftello_works" >&6; } case "$gl_cv_func_ftello_works" in *yes) ;; *) REPLACE_FTELLO=1 -$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h +printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h ;; esac @@ -28605,7 +29081,7 @@ $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs if test $gl_ftello_broken_after_ungetc = yes; then REPLACE_FTELLO=1 -$as_echo "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h +printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h fi fi @@ -28632,15 +29108,15 @@ $as_echo "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h - if test $gl_cv_have_include_next = yes; then gl_cv_next_netdb_h='<'netdb.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_netdb_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_netdb_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_netdb_h = yes; then @@ -28685,8 +29161,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5 -$as_echo "$gl_cv_next_netdb_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5 +printf "%s\n" "$gl_cv_next_netdb_h" >&6; } fi NEXT_NETDB_H=$gl_cv_next_netdb_h @@ -28716,11 +29192,12 @@ $as_echo "$gl_cv_next_netdb_h" >&6; } HOSTENT_LIB= gl_saved_libs="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 -$as_echo_n "checking for library containing gethostbyname... " >&6; } -if ${ac_cv_search_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +printf %s "checking for library containing gethostbyname... " >&6; } +if test ${ac_cv_search_gethostbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28728,46 +29205,48 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char gethostbyname (); int -main () +main (void) { return gethostbyname (); ; return 0; } _ACEOF -for ac_lib in '' nsl network net; do +for ac_lib in '' nsl network net +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_gethostbyname=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_gethostbyname+:} false; then : + if test ${ac_cv_search_gethostbyname+y} +then : break fi done -if ${ac_cv_search_gethostbyname+:} false; then : +if test ${ac_cv_search_gethostbyname+y} +then : -else +else $as_nop ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 -$as_echo "$ac_cv_search_gethostbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_gethostbyname" != "none required"; then HOSTENT_LIB="$ac_cv_search_gethostbyname" @@ -28776,21 +29255,22 @@ fi LIBS="$gl_saved_libs" if test -z "$HOSTENT_LIB"; then - for ac_func in gethostbyname + + for ac_func in gethostbyname do : ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" -if test "x$ac_cv_func_gethostbyname" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETHOSTBYNAME 1 -_ACEOF +if test "x$ac_cv_func_gethostbyname" = xyes +then : + printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h -else +else $as_nop - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5 -$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; } -if ${gl_cv_w32_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5 +printf %s "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; } +if test ${gl_cv_w32_gethostbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_w32_gethostbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" @@ -28803,41 +29283,43 @@ else #include int -main () +main (void) { gethostbyname(NULL); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_w32_gethostbyname=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5 -$as_echo "$gl_cv_w32_gethostbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5 +printf "%s\n" "$gl_cv_w32_gethostbyname" >&6; } if test "$gl_cv_w32_gethostbyname" = "yes"; then HOSTENT_LIB="-lws2_32" fi fi -done +done fi SERVENT_LIB= gl_saved_libs="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 -$as_echo_n "checking for library containing getservbyname... " >&6; } -if ${ac_cv_search_getservbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 +printf %s "checking for library containing getservbyname... " >&6; } +if test ${ac_cv_search_getservbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28845,46 +29327,48 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char getservbyname (); int -main () +main (void) { return getservbyname (); ; return 0; } _ACEOF -for ac_lib in '' socket network net; do +for ac_lib in '' socket network net +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_getservbyname=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_getservbyname+:} false; then : + if test ${ac_cv_search_getservbyname+y} +then : break fi done -if ${ac_cv_search_getservbyname+:} false; then : +if test ${ac_cv_search_getservbyname+y} +then : -else +else $as_nop ac_cv_search_getservbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 -$as_echo "$ac_cv_search_getservbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 +printf "%s\n" "$ac_cv_search_getservbyname" >&6; } ac_res=$ac_cv_search_getservbyname -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_getservbyname" != "none required"; then SERVENT_LIB="$ac_cv_search_getservbyname" @@ -28893,21 +29377,22 @@ fi LIBS="$gl_saved_libs" if test -z "$SERVENT_LIB"; then - for ac_func in getservbyname + + for ac_func in getservbyname do : ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" -if test "x$ac_cv_func_getservbyname" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETSERVBYNAME 1 -_ACEOF +if test "x$ac_cv_func_getservbyname" = xyes +then : + printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h -else +else $as_nop - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5 -$as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; } -if ${gl_cv_w32_getservbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5 +printf %s "checking for getservbyname in winsock2.h and -lws2_32... " >&6; } +if test ${gl_cv_w32_getservbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_w32_getservbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" @@ -28920,30 +29405,31 @@ else #include int -main () +main (void) { getservbyname(NULL,NULL); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_w32_getservbyname=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5 -$as_echo "$gl_cv_w32_getservbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5 +printf "%s\n" "$gl_cv_w32_getservbyname" >&6; } if test "$gl_cv_w32_getservbyname" = "yes"; then SERVENT_LIB="-lws2_32" fi fi -done +done fi @@ -28961,18 +29447,13 @@ done if test $ac_cv_header_sys_socket_h != yes; then - for ac_header in winsock2.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" -if test "x$ac_cv_header_winsock2_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINSOCK2_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes +then : + printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi -done - fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 @@ -28985,17 +29466,15 @@ done if test $HAVE_WINSOCK2_H = 1; then REPLACE_INET_NTOP=1 - ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include -" -if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : + ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_inet_ntop" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_INET_NTOP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_inet_ntop = yes; then INET_NTOP_LIB="-lws2_32" @@ -29004,11 +29483,12 @@ _ACEOF fi else gl_save_LIBS=$LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 -$as_echo_n "checking for library containing inet_ntop... " >&6; } -if ${ac_cv_search_inet_ntop+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 +printf %s "checking for library containing inet_ntop... " >&6; } +if test ${ac_cv_search_inet_ntop+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29016,59 +29496,57 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char inet_ntop (); int -main () +main (void) { return inet_ntop (); ; return 0; } _ACEOF -for ac_lib in '' nsl resolv network; do +for ac_lib in '' nsl resolv network +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_inet_ntop=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_inet_ntop+:} false; then : + if test ${ac_cv_search_inet_ntop+y} +then : break fi done -if ${ac_cv_search_inet_ntop+:} false; then : +if test ${ac_cv_search_inet_ntop+y} +then : -else +else $as_nop ac_cv_search_inet_ntop=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 -$as_echo "$ac_cv_search_inet_ntop" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 +printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } ac_res=$ac_cv_search_inet_ntop -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" -else - for ac_func in inet_ntop -do : +else $as_nop ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" -if test "x$ac_cv_func_inet_ntop" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_INET_NTOP 1 -_ACEOF +if test "x$ac_cv_func_inet_ntop" = xyes +then : + printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h fi -done if test $ac_cv_func_inet_ntop = no; then HAVE_INET_NTOP=0 @@ -29084,21 +29562,19 @@ fi fi - ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include + ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include #if HAVE_NETDB_H # include #endif -" -if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_inet_ntop" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_INET_NTOP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_inet_ntop = no; then HAVE_DECL_INET_NTOP=0 @@ -29111,12 +29587,12 @@ _ACEOF - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5 -$as_echo_n "checking for IPv4 sockets... " >&6; } -if ${gl_cv_socket_ipv4+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5 +printf %s "checking for IPv4 sockets... " >&6; } +if test ${gl_cv_socket_ipv4+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29130,7 +29606,7 @@ else #include #endif int -main () +main (void) { int x = AF_INET; struct in_addr y; struct sockaddr_in z; if (&x && &y && &z) return 0; @@ -29138,26 +29614,28 @@ int x = AF_INET; struct in_addr y; struct sockaddr_in z; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_socket_ipv4=yes -else +else $as_nop gl_cv_socket_ipv4=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5 -$as_echo "$gl_cv_socket_ipv4" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5 +printf "%s\n" "$gl_cv_socket_ipv4" >&6; } if test $gl_cv_socket_ipv4 = yes; then -$as_echo "#define HAVE_IPV4 1" >>confdefs.h +printf "%s\n" "#define HAVE_IPV4 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 -$as_echo_n "checking for IPv6 sockets... " >&6; } -if ${gl_cv_socket_ipv6+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 +printf %s "checking for IPv6 sockets... " >&6; } +if test ${gl_cv_socket_ipv6+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29174,7 +29652,7 @@ else #include #endif int -main () +main (void) { int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; if (&x && &y && &z) return 0; @@ -29182,18 +29660,19 @@ int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_socket_ipv6=yes -else +else $as_nop gl_cv_socket_ipv6=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5 -$as_echo "$gl_cv_socket_ipv6" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5 +printf "%s\n" "$gl_cv_socket_ipv6" >&6; } if test $gl_cv_socket_ipv6 = yes; then -$as_echo "#define HAVE_IPV6 1" >>confdefs.h +printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h fi @@ -29203,43 +29682,34 @@ $as_echo "#define HAVE_IPV6 1" >>confdefs.h -ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" -if test "x$ac_cv_have_decl_getdelim" = xyes; then : +ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getdelim" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETDELIM $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h - - -ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" -if test "x$ac_cv_have_decl_getdtablesize" = xyes; then : +ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getdtablesize" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETDTABLESIZE $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" -if test "x$ac_cv_have_decl_getline" = xyes; then : +ac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getline" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETLINE $ac_have_decl -_ACEOF - +printf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h @@ -29258,11 +29728,12 @@ _ACEOF if test $gl_cv_have_include_next = yes; then gl_cv_next_getopt_h='<'getopt.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_getopt_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_getopt_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_getopt_h = yes; then @@ -29307,8 +29778,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 -$as_echo "$gl_cv_next_getopt_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 +printf "%s\n" "$gl_cv_next_getopt_h" >&6; } fi NEXT_GETOPT_H=$gl_cv_next_getopt_h @@ -29334,52 +29805,52 @@ $as_echo "$gl_cv_next_getopt_h" >&6; } gl_replace_getopt= if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then - for ac_header in getopt.h + for ac_header in getopt.h do : - ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" -if test "x$ac_cv_header_getopt_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETOPT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" +if test "x$ac_cv_header_getopt_h" = xyes +then : + printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h -else +else $as_nop gl_replace_getopt=yes fi done - fi if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then - for ac_func in getopt_long_only + + for ac_func in getopt_long_only do : ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" -if test "x$ac_cv_func_getopt_long_only" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETOPT_LONG_ONLY 1 -_ACEOF +if test "x$ac_cv_func_getopt_long_only" = xyes +then : + printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h -else +else $as_nop gl_replace_getopt=yes fi -done +done fi if test -z "$gl_replace_getopt"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 -$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } -if ${gl_cv_func_getopt_posix+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 +printf %s "checking whether getopt is POSIX compatible... " >&6; } +if test ${gl_cv_func_getopt_posix+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $cross_compiling = no; then - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "$cross_compiling" = yes +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29409,9 +29880,10 @@ main () } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_getopt_posix=maybe -else +else $as_nop gl_cv_func_getopt_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -29419,12 +29891,13 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi if test $gl_cv_func_getopt_posix = maybe; then - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "$cross_compiling" = yes +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29468,9 +29941,10 @@ main () } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_getopt_posix=maybe -else +else $as_nop gl_cv_func_getopt_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -29479,12 +29953,13 @@ fi fi if test $gl_cv_func_getopt_posix = maybe; then - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "$cross_compiling" = yes +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29510,9 +29985,10 @@ main () } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_getopt_posix=yes -else +else $as_nop gl_cv_func_getopt_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -29528,19 +30004,20 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 -$as_echo "$gl_cv_func_getopt_posix" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 +printf "%s\n" "$gl_cv_func_getopt_posix" >&6; } case "$gl_cv_func_getopt_posix" in *no) gl_replace_getopt=yes ;; esac fi if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 -$as_echo_n "checking for working GNU getopt function... " >&6; } -if ${gl_cv_func_getopt_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 +printf %s "checking for working GNU getopt function... " >&6; } +if test ${gl_cv_func_getopt_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the # optstring is necessary for programs like m4 that have POSIX-mandated # semantics for supporting options interspersed with files. @@ -29555,10 +30032,11 @@ else esac POSIXLY_CORRECT=1 export POSIXLY_CORRECT - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : gl_cv_func_getopt_gnu="$gl_cross_guess_normal" -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29680,7 +30158,7 @@ nocrash_init (void) int -main () +main (void) { int result = 0; @@ -29758,9 +30236,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_getopt_gnu=yes -else +else $as_nop gl_cv_func_getopt_gnu=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -29774,23 +30253,25 @@ fi esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 -$as_echo "$gl_cv_func_getopt_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 +printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; } if test "$gl_cv_func_getopt_gnu" != yes; then gl_replace_getopt=yes else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 -$as_echo_n "checking for working GNU getopt_long function... " >&6; } -if ${gl_cv_func_getopt_long_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 +printf %s "checking for working GNU getopt_long function... " >&6; } +if test ${gl_cv_func_getopt_long_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; *) gl_cv_func_getopt_long_gnu="guessing yes";; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -29798,7 +30279,7 @@ else #include int -main () +main (void) { static const struct option long_options[] = { @@ -29824,9 +30305,10 @@ static const struct option long_options[] = return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_getopt_long_gnu=yes -else +else $as_nop gl_cv_func_getopt_long_gnu=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -29835,8 +30317,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 -$as_echo "$gl_cv_func_getopt_long_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 +printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; } case "$gl_cv_func_getopt_long_gnu" in *yes) ;; *) gl_replace_getopt=yes ;; @@ -29851,23 +30333,20 @@ $as_echo "$gl_cv_func_getopt_long_gnu" >&6; } - - - if test -z "$gl_pthreadlib_body_done"; then gl_pthread_api=no LIBPTHREAD= LIBPMULTITHREAD= # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . It's added above, in gl_ANYTHREADLIB_EARLY. - ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" -if test "x$ac_cv_header_pthread_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes +then : gl_have_pthread_h=yes -else +else $as_nop gl_have_pthread_h=no fi - if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) @@ -29889,7 +30368,7 @@ fi pthread_mutexattr_t ma; int -main () +main (void) { pthread_mutex_lock (&m); pthread_mutexattr_init (&ma); @@ -29897,18 +30376,19 @@ pthread_mutex_lock (&m); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_pthread_api=yes LIBPTHREAD=$gl_pthread LIBPMULTITHREAD=$gl_pthread fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$save_LIBS test $gl_pthread_api = yes && break done - echo "$as_me:29910: gl_pthread_api=$gl_pthread_api" >&5 - echo "$as_me:29911: LIBPTHREAD=$LIBPTHREAD" >&5 + echo "$as_me:30390: gl_pthread_api=$gl_pthread_api" >&5 + echo "$as_me:30391: LIBPTHREAD=$LIBPTHREAD" >&5 gl_pthread_in_glibc=no # On Linux with glibc >= 2.34, libc contains the fully functional @@ -29926,25 +30406,27 @@ rm -f core conftest.err conftest.$ac_objext \ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky user" >/dev/null 2>&1; then : + $EGREP "Lucky user" >/dev/null 2>&1 +then : gl_pthread_in_glibc=yes fi -rm -f conftest* +rm -rf conftest* ;; esac - echo "$as_me:29936: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 + echo "$as_me:30417: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +printf %s "checking for pthread_kill in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -29953,30 +30435,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_kill=yes -else +else $as_nop ac_cv_lib_pthread_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } -if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = xyes +then : if test $gl_pthread_in_glibc = yes; then LIBPMULTITHREAD= else @@ -29990,7 +30471,7 @@ if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : case "$host_os" in solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*) -$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h +printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h esac fi @@ -29999,11 +30480,12 @@ fi elif test $gl_pthread_api != yes; then # Some library is needed. Try libpthread and libc_r. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +printf %s "checking for pthread_kill in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30012,30 +30494,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_kill=yes -else +else $as_nop ac_cv_lib_pthread_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } -if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = xyes +then : gl_pthread_api=yes LIBPTHREAD=-lpthread LIBPMULTITHREAD=-lpthread @@ -30043,11 +30524,12 @@ fi if test $gl_pthread_api != yes; then # For FreeBSD 4. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 -$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } -if ${ac_cv_lib_c_r_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 +printf %s "checking for pthread_kill in -lc_r... " >&6; } +if test ${ac_cv_lib_c_r_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lc_r $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30056,30 +30538,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_c_r_pthread_kill=yes -else +else $as_nop ac_cv_lib_c_r_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 -$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } -if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } +if test "x$ac_cv_lib_c_r_pthread_kill" = xyes +then : gl_pthread_api=yes LIBPTHREAD=-lc_r LIBPMULTITHREAD=-lc_r @@ -30087,17 +30568,17 @@ fi fi fi - echo "$as_me:30090: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 + echo "$as_me:30571: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 -$as_echo_n "checking whether POSIX threads API is available... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 -$as_echo "$gl_pthread_api" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 +printf %s "checking whether POSIX threads API is available... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 +printf "%s\n" "$gl_pthread_api" >&6; } if test $gl_pthread_api = yes; then -$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h fi @@ -30105,22 +30586,24 @@ $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h /* end confdefs.h. */ #include int -main () +main (void) { sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIB_SCHED_YIELD= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 -$as_echo_n "checking for sched_yield in -lrt... " >&6; } -if ${ac_cv_lib_rt_sched_yield+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 +printf %s "checking for sched_yield in -lrt... " >&6; } +if test ${ac_cv_lib_rt_sched_yield+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30129,37 +30612,37 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char sched_yield (); int -main () +main (void) { return sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_sched_yield=yes -else +else $as_nop ac_cv_lib_rt_sched_yield=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 -$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } -if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 +printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } +if test "x$ac_cv_lib_rt_sched_yield" = xyes +then : LIB_SCHED_YIELD=-lrt -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 -$as_echo_n "checking for sched_yield in -lposix4... " >&6; } -if ${ac_cv_lib_posix4_sched_yield+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 +printf %s "checking for sched_yield in -lposix4... " >&6; } +if test ${ac_cv_lib_posix4_sched_yield+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lposix4 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30168,30 +30651,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char sched_yield (); int -main () +main (void) { return sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_posix4_sched_yield=yes -else +else $as_nop ac_cv_lib_posix4_sched_yield=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 -$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } -if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 +printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } +if test "x$ac_cv_lib_posix4_sched_yield" = xyes +then : LIB_SCHED_YIELD=-lposix4 fi @@ -30199,7 +30681,7 @@ fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -30213,12 +30695,12 @@ rm -f core conftest.err conftest.$ac_objext \ - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 -$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } -if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 +printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } +if test ${gl_cv_func_setlocale_null_all_mtsafe+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) @@ -30232,8 +30714,8 @@ else esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 -$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 +printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } case "$host_os" in mingw*) ;; *) @@ -30247,16 +30729,15 @@ $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; esac -cat >>confdefs.h <<_ACEOF -#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE -_ACEOF +printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 -$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } -if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 +printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } +if test ${gl_cv_func_setlocale_null_one_mtsafe+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on OpenBSD, AIX. openbsd* | aix*) @@ -30270,8 +30751,8 @@ else esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 -$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 +printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } case "$host_os" in mingw*) ;; *) @@ -30285,9 +30766,7 @@ $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; esac -cat >>confdefs.h <<_ACEOF -#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE -_ACEOF +printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then @@ -30296,11 +30775,12 @@ _ACEOF *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 -$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } -if ${gl_cv_have_weak+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 +printf %s "checking whether imported symbols can be declared weak... " >&6; } +if test ${gl_cv_have_weak+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in cygwin*) gl_cv_have_weak="guessing no" @@ -30312,20 +30792,22 @@ else extern void xyzzy (); #pragma weak xyzzy int -main () +main (void) { xyzzy(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_have_weak=maybe fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test $gl_cv_have_weak = maybe; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ELF__ @@ -30334,15 +30816,16 @@ rm -f core conftest.err conftest.$ac_objext \ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : + $EGREP "Extensible Linking Format" >/dev/null 2>&1 +then : gl_cv_have_weak="guessing yes" -else +else $as_nop gl_cv_have_weak="guessing no" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -30353,9 +30836,10 @@ int main () return (fputs == NULL); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_have_weak=yes -else +else $as_nop gl_cv_have_weak=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -30391,12 +30875,12 @@ EOF esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 -$as_echo "$gl_cv_have_weak" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 +printf "%s\n" "$gl_cv_have_weak" >&6; } case "$gl_cv_have_weak" in *yes) -$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h +printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h ;; esac @@ -30427,19 +30911,6 @@ $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h - - - - - - - - - - - - - @@ -30451,11 +30922,12 @@ $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_limits_h='<'limits.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_limits_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_limits_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_limits_h = yes; then @@ -30500,8 +30972,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 -$as_echo "$gl_cv_next_limits_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 +printf "%s\n" "$gl_cv_next_limits_h" >&6; } fi NEXT_LIMITS_H=$gl_cv_next_limits_h @@ -30518,11 +30990,12 @@ $as_echo "$gl_cv_next_limits_h" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5 -$as_echo_n "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; } -if ${gl_cv_header_limits_width+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5 +printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; } +if test ${gl_cv_header_limits_width+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ @@ -30535,22 +31008,23 @@ else int bw = BOOL_WIDTH; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_limits_width=yes -else +else $as_nop gl_cv_header_limits_width=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 -$as_echo "$gl_cv_header_limits_width" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 +printf "%s\n" "$gl_cv_header_limits_width" >&6; } if test "$gl_cv_header_limits_width" = yes; then GL_GENERATE_LIMITS_H=false else @@ -30558,64 +31032,68 @@ $as_echo "$gl_cv_header_limits_width" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 -$as_echo_n "checking for wint_t... " >&6; } -if ${gt_cv_c_wint_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 +printf %s "checking for wint_t... " >&6; } +if test ${gt_cv_c_wint_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include wint_t foo = (wchar_t)'\0'; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_c_wint_t=yes -else +else $as_nop gt_cv_c_wint_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 -$as_echo "$gt_cv_c_wint_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 +printf "%s\n" "$gt_cv_c_wint_t" >&6; } if test $gt_cv_c_wint_t = yes; then -$as_echo "#define HAVE_WINT_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5 -$as_echo_n "checking whether wint_t is large enough... " >&6; } -if ${gl_cv_type_wint_t_large_enough+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5 +printf %s "checking whether wint_t is large enough... " >&6; } +if test ${gl_cv_type_wint_t_large_enough+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_type_wint_t_large_enough=yes -else +else $as_nop gl_cv_type_wint_t_large_enough=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5 -$as_echo "$gl_cv_type_wint_t_large_enough" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5 +printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; } if test $gl_cv_type_wint_t_large_enough = no; then GNULIBHEADERS_OVERRIDE_WINT_T=1 else @@ -30627,17 +31105,12 @@ $as_echo "$gl_cv_type_wint_t_large_enough" >&6; } - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5 -$as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; } -if ${gl_cv_c_multiarch+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5 +printf %s "checking whether the compiler produces multi-arch binaries... " >&6; } +if test ${gl_cv_c_multiarch+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_c_multiarch=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -30647,7 +31120,8 @@ else typedef int dummy; _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : arch= prev= @@ -30671,11 +31145,11 @@ if ac_fn_c_try_compile "$LINENO"; then : done fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5 -$as_echo "$gl_cv_c_multiarch" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5 +printf "%s\n" "$gl_cv_c_multiarch" >&6; } if test $gl_cv_c_multiarch = yes; then APPLE_UNIVERSAL_BUILD=1 else @@ -30689,10 +31163,10 @@ $as_echo "$gl_cv_c_multiarch" >&6; } -$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h -$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h +printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h @@ -30731,11 +31205,12 @@ $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_stdint_h='<'stdint.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_stdint_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_stdint_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_stdint_h = yes; then @@ -30780,8 +31255,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 -$as_echo "$gl_cv_next_stdint_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 +printf "%s\n" "$gl_cv_next_stdint_h" >&6; } fi NEXT_STDINT_H=$gl_cv_next_stdint_h @@ -30805,11 +31280,12 @@ $as_echo "$gl_cv_next_stdint_h" >&6; } if test $ac_cv_header_stdint_h = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 -$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } -if ${gl_cv_header_working_stdint_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 +printf %s "checking whether stdint.h conforms to C99... " >&6; } +if test ${gl_cv_header_working_stdint_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_header_working_stdint_h=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -30974,15 +31450,17 @@ struct s { }; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - if test "$cross_compiling" = yes; then : +if ac_fn_c_try_compile "$LINENO" +then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on native Windows. mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; @@ -30990,7 +31468,7 @@ if ac_fn_c_try_compile "$LINENO"; then : *) gl_cv_header_working_stdint_h="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -31042,7 +31520,7 @@ static const char *macro_values[] = }; int -main () +main (void) { const char **mv; @@ -31064,7 +31542,8 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_header_working_stdint_h=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -31073,11 +31552,11 @@ fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 -$as_echo "$gl_cv_header_working_stdint_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 +printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; } fi HAVE_C99_STDINT_H=0 @@ -31087,11 +31566,12 @@ $as_echo "$gl_cv_header_working_stdint_h" >&6; } case "$gl_cv_header_working_stdint_h" in *yes) HAVE_C99_STDINT_H=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5 -$as_echo_n "checking whether stdint.h works without ISO C predefines... " >&6; } -if ${gl_cv_header_stdint_without_STDC_macros+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5 +printf %s "checking whether stdint.h works without ISO C predefines... " >&6; } +if test ${gl_cv_header_stdint_without_STDC_macros+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_header_stdint_without_STDC_macros=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -31112,35 +31592,37 @@ intmax_t im = INTMAX_MAX; int32_t i32 = INT32_C (0x7fffffff); int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_stdint_without_STDC_macros=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5 -$as_echo "$gl_cv_header_stdint_without_STDC_macros" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5 +printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; } if test $gl_cv_header_stdint_without_STDC_macros = no; then -$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h +printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h -$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h +printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 -$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } -if ${gl_cv_header_stdint_width+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 +printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } +if test ${gl_cv_header_stdint_width+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_header_stdint_width=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -31161,37 +31643,38 @@ else int iw = UINTMAX_WIDTH; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_stdint_width=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 -$as_echo "$gl_cv_header_stdint_width" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 +printf "%s\n" "$gl_cv_header_stdint_width" >&6; } if test "$gl_cv_header_stdint_width" = yes; then GL_GENERATE_STDINT_H=false fi ;; *) - for ac_header in sys/inttypes.h sys/bitypes.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_inttypes_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_bitypes_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h -done +fi if test $ac_cv_header_sys_inttypes_h = yes; then HAVE_SYS_INTTYPES_H=1 @@ -31205,11 +31688,12 @@ done for gltype in ptrdiff_t size_t ; do - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 -$as_echo_n "checking for bit size of $gltype... " >&6; } -if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 +printf %s "checking for bit size of $gltype... " >&6; } +if eval test \${gl_cv_bitsizeof_${gltype}+y} +then : + printf %s "(cached) " >&6 +else $as_nop if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " #include #include @@ -31217,9 +31701,10 @@ else # include #endif -#include "; then : +#include " +then : -else +else $as_nop result=unknown fi @@ -31227,16 +31712,14 @@ fi fi eval ac_res=\$gl_cv_bitsizeof_${gltype} - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval result=\$gl_cv_bitsizeof_${gltype} if test $result = unknown; then result=0 fi GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - cat >>confdefs.h <<_ACEOF -#define BITSIZEOF_${GLTYPE} $result -_ACEOF + printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h eval BITSIZEOF_${GLTYPE}=\$result done @@ -31246,11 +31729,12 @@ _ACEOF for gltype in sig_atomic_t wchar_t wint_t ; do - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 -$as_echo_n "checking for bit size of $gltype... " >&6; } -if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 +printf %s "checking for bit size of $gltype... " >&6; } +if eval test \${gl_cv_bitsizeof_${gltype}+y} +then : + printf %s "(cached) " >&6 +else $as_nop if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " #include #include @@ -31258,9 +31742,10 @@ else # include #endif -#include "; then : +#include " +then : -else +else $as_nop result=unknown fi @@ -31268,16 +31753,14 @@ fi fi eval ac_res=\$gl_cv_bitsizeof_${gltype} - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval result=\$gl_cv_bitsizeof_${gltype} if test $result = unknown; then result=0 fi GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - cat >>confdefs.h <<_ACEOF -#define BITSIZEOF_${GLTYPE} $result -_ACEOF + printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h eval BITSIZEOF_${GLTYPE}=\$result done @@ -31286,11 +31769,12 @@ _ACEOF for gltype in sig_atomic_t wchar_t wint_t ; do - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 -$as_echo_n "checking whether $gltype is signed... " >&6; } -if eval \${gl_cv_type_${gltype}_signed+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 +printf %s "checking whether $gltype is signed... " >&6; } +if eval test \${gl_cv_type_${gltype}_signed+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -31302,31 +31786,30 @@ else int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : result=yes -else +else $as_nop result=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval gl_cv_type_${gltype}_signed=\$result fi eval ac_res=\$gl_cv_type_${gltype}_signed - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval result=\$gl_cv_type_${gltype}_signed GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` if test "$result" = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_SIGNED_${GLTYPE} 1 -_ACEOF + printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h eval HAVE_SIGNED_${GLTYPE}=1 else @@ -31341,11 +31824,12 @@ _ACEOF for gltype in ptrdiff_t size_t ; do - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 -$as_echo_n "checking for $gltype integer literal suffix... " >&6; } -if eval \${gl_cv_type_${gltype}_suffix+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 +printf %s "checking for $gltype integer literal suffix... " >&6; } +if eval test \${gl_cv_type_${gltype}_suffix+y} +then : + printf %s "(cached) " >&6 +else $as_nop eval gl_cv_type_${gltype}_suffix=no eval result=\$gl_cv_type_${gltype}_signed if test "$result" = yes; then @@ -31376,31 +31860,30 @@ else extern $gltype foo; extern $gltype1 foo; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval gl_cv_type_${gltype}_suffix=\$glsuf fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break done fi eval ac_res=\$gl_cv_type_${gltype}_suffix - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result - cat >>confdefs.h <<_ACEOF -#define ${GLTYPE}_SUFFIX $result -_ACEOF + printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h done @@ -31409,11 +31892,12 @@ _ACEOF for gltype in sig_atomic_t wchar_t wint_t ; do - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 -$as_echo_n "checking for $gltype integer literal suffix... " >&6; } -if eval \${gl_cv_type_${gltype}_suffix+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 +printf %s "checking for $gltype integer literal suffix... " >&6; } +if eval test \${gl_cv_type_${gltype}_suffix+y} +then : + printf %s "(cached) " >&6 +else $as_nop eval gl_cv_type_${gltype}_suffix=no eval result=\$gl_cv_type_${gltype}_signed if test "$result" = yes; then @@ -31444,31 +31928,30 @@ else extern $gltype foo; extern $gltype1 foo; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval gl_cv_type_${gltype}_suffix=\$glsuf fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break done fi eval ac_res=\$gl_cv_type_${gltype}_suffix - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result - cat >>confdefs.h <<_ACEOF -#define ${GLTYPE}_SUFFIX $result -_ACEOF + printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h done @@ -31521,11 +32004,12 @@ _ACEOF if test $gl_cv_have_include_next = yes; then gl_cv_next_inttypes_h='<'inttypes.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_inttypes_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_inttypes_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_inttypes_h = yes; then @@ -31570,8 +32054,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 -$as_echo "$gl_cv_next_inttypes_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 +printf "%s\n" "$gl_cv_next_inttypes_h" >&6; } fi NEXT_INTTYPES_H=$gl_cv_next_inttypes_h @@ -31633,15 +32117,15 @@ $as_echo "$gl_cv_next_inttypes_h" >&6; } - if test $gl_cv_have_include_next = yes; then gl_cv_next_langinfo_h='<'langinfo.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_langinfo_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_langinfo_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_langinfo_h = yes; then @@ -31686,8 +32170,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 -$as_echo "$gl_cv_next_langinfo_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 +printf "%s\n" "$gl_cv_next_langinfo_h" >&6; } fi NEXT_LANGINFO_H=$gl_cv_next_langinfo_h @@ -31712,158 +32196,168 @@ $as_echo "$gl_cv_next_langinfo_h" >&6; } if test $ac_cv_header_langinfo_h = yes; then HAVE_LANGINFO_H=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 -$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; } -if ${gl_cv_header_langinfo_codeset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 +printf %s "checking whether langinfo.h defines CODESET... " >&6; } +if test ${gl_cv_header_langinfo_codeset+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int a = CODESET; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_langinfo_codeset=yes -else +else $as_nop gl_cv_header_langinfo_codeset=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 -$as_echo "$gl_cv_header_langinfo_codeset" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 +printf "%s\n" "$gl_cv_header_langinfo_codeset" >&6; } if test $gl_cv_header_langinfo_codeset = yes; then HAVE_LANGINFO_CODESET=1 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5 -$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; } -if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5 +printf %s "checking whether langinfo.h defines T_FMT_AMPM... " >&6; } +if test ${gl_cv_header_langinfo_t_fmt_ampm+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int a = T_FMT_AMPM; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_langinfo_t_fmt_ampm=yes -else +else $as_nop gl_cv_header_langinfo_t_fmt_ampm=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5 -$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5 +printf "%s\n" "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then HAVE_LANGINFO_T_FMT_AMPM=1 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5 -$as_echo_n "checking whether langinfo.h defines ALTMON_1... " >&6; } -if ${gl_cv_header_langinfo_altmon+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5 +printf %s "checking whether langinfo.h defines ALTMON_1... " >&6; } +if test ${gl_cv_header_langinfo_altmon+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int a = ALTMON_1; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_langinfo_altmon=yes -else +else $as_nop gl_cv_header_langinfo_altmon=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5 -$as_echo "$gl_cv_header_langinfo_altmon" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5 +printf "%s\n" "$gl_cv_header_langinfo_altmon" >&6; } if test $gl_cv_header_langinfo_altmon = yes; then HAVE_LANGINFO_ALTMON=1 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 -$as_echo_n "checking whether langinfo.h defines ERA... " >&6; } -if ${gl_cv_header_langinfo_era+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 +printf %s "checking whether langinfo.h defines ERA... " >&6; } +if test ${gl_cv_header_langinfo_era+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int a = ERA; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_langinfo_era=yes -else +else $as_nop gl_cv_header_langinfo_era=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 -$as_echo "$gl_cv_header_langinfo_era" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 +printf "%s\n" "$gl_cv_header_langinfo_era" >&6; } if test $gl_cv_header_langinfo_era = yes; then HAVE_LANGINFO_ERA=1 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5 -$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; } -if ${gl_cv_header_langinfo_yesexpr+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5 +printf %s "checking whether langinfo.h defines YESEXPR... " >&6; } +if test ${gl_cv_header_langinfo_yesexpr+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int a = YESEXPR; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_langinfo_yesexpr=yes -else +else $as_nop gl_cv_header_langinfo_yesexpr=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5 -$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5 +printf "%s\n" "$gl_cv_header_langinfo_yesexpr" >&6; } if test $gl_cv_header_langinfo_yesexpr = yes; then HAVE_LANGINFO_YESEXPR=1 fi @@ -31905,35 +32399,37 @@ $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; } HAVE_WCHAR_T=1; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 -$as_echo_n "checking for wchar_t... " >&6; } -if ${gt_cv_c_wchar_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 +printf %s "checking for wchar_t... " >&6; } +if test ${gt_cv_c_wchar_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include wchar_t foo = (wchar_t)'\0'; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_c_wchar_t=yes -else +else $as_nop gt_cv_c_wchar_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 -$as_echo "$gt_cv_c_wchar_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 +printf "%s\n" "$gt_cv_c_wchar_t" >&6; } if test $gt_cv_c_wchar_t = yes; then -$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h fi @@ -31945,11 +32441,12 @@ $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h GL_GENERATE_STDDEF_H=false - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 -$as_echo_n "checking for good max_align_t... " >&6; } -if ${gl_cv_type_max_align_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 +printf %s "checking for good max_align_t... " >&6; } +if test ${gl_cv_type_max_align_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* On FreeBSD 12.0/x86, max_align_t defined by has @@ -31974,23 +32471,24 @@ else int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_type_max_align_t=yes -else +else $as_nop gl_cv_type_max_align_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 -$as_echo "$gl_cv_type_max_align_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 +printf "%s\n" "$gl_cv_type_max_align_t" >&6; } if test $gl_cv_type_max_align_t = no; then HAVE_MAX_ALIGN_T=0 GL_GENERATE_STDDEF_H=true @@ -32001,33 +32499,35 @@ $as_echo "$gl_cv_type_max_align_t" >&6; } GL_GENERATE_STDDEF_H=true fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 -$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } -if ${gl_cv_decl_null_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 +printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; } +if test ${gl_cv_decl_null_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int test[2 * (sizeof NULL == sizeof (void *)) -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_decl_null_works=yes -else +else $as_nop gl_cv_decl_null_works=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 -$as_echo "$gl_cv_decl_null_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 +printf "%s\n" "$gl_cv_decl_null_works" >&6; } if test $gl_cv_decl_null_works = no; then REPLACE_NULL=1 GL_GENERATE_STDDEF_H=true @@ -32045,11 +32545,12 @@ $as_echo "$gl_cv_decl_null_works" >&6; } if test $gl_cv_have_include_next = yes; then gl_cv_next_stddef_h='<'stddef.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_stddef_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_stddef_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -32088,8 +32589,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 -$as_echo "$gl_cv_next_stddef_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 +printf "%s\n" "$gl_cv_next_stddef_h" >&6; } fi NEXT_STDDEF_H=$gl_cv_next_stddef_h @@ -32111,34 +32612,35 @@ $as_echo "$gl_cv_next_stddef_h" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 -$as_echo_n "checking whether locale.h defines locale_t... " >&6; } -if ${gl_cv_header_locale_has_locale_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 +printf %s "checking whether locale.h defines locale_t... " >&6; } +if test ${gl_cv_header_locale_has_locale_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include locale_t x; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_locale_has_locale_t=yes -else +else $as_nop gl_cv_header_locale_has_locale_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 -$as_echo "$gl_cv_header_locale_has_locale_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 +printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; } if test $ac_cv_header_xlocale_h = yes; then @@ -32173,44 +32675,47 @@ $as_echo "$gl_cv_header_locale_has_locale_t" >&6; } case "$host_os" in solaris*) -$as_echo "#define _LCONV_C99 1" >>confdefs.h +printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 -$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; } -if ${gl_cv_header_locale_h_posix2001+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 +printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; } +if test ${gl_cv_header_locale_h_posix2001+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int x = LC_MESSAGES; int y = sizeof (((struct lconv *) 0)->decimal_point); int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_locale_h_posix2001=yes -else +else $as_nop gl_cv_header_locale_h_posix2001=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 -$as_echo "$gl_cv_header_locale_h_posix2001" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 +printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 -$as_echo_n "checking whether struct lconv is properly defined... " >&6; } -if ${gl_cv_sys_struct_lconv_ok+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 +printf %s "checking whether struct lconv is properly defined... " >&6; } +if test ${gl_cv_sys_struct_lconv_ok+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -32218,23 +32723,24 @@ else int x = sizeof (l.decimal_point); int y = sizeof (l.int_p_cs_precedes); int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_sys_struct_lconv_ok=yes -else +else $as_nop gl_cv_sys_struct_lconv_ok=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 -$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 +printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; } if test $gl_cv_sys_struct_lconv_ok = no; then case "$host_os" in mingw*) @@ -32247,12 +32753,13 @@ $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; } _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Special" >/dev/null 2>&1; then : + $EGREP "Special" >/dev/null 2>&1 +then : -else +else $as_nop REPLACE_STRUCT_LCONV=1 fi -rm -f conftest* +rm -rf conftest* ;; *) REPLACE_STRUCT_LCONV=1 ;; @@ -32270,11 +32777,12 @@ rm -f conftest* if test $gl_cv_have_include_next = yes; then gl_cv_next_locale_h='<'locale.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_locale_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_locale_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -32313,8 +32821,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 -$as_echo "$gl_cv_next_locale_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 +printf "%s\n" "$gl_cv_next_locale_h" >&6; } fi NEXT_LOCALE_H=$gl_cv_next_locale_h @@ -32367,11 +32875,12 @@ $as_echo "$gl_cv_next_locale_h" >&6; } if test "$gl_use_threads" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 -$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } -if ${gl_cv_have_weak+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 +printf %s "checking whether imported symbols can be declared weak... " >&6; } +if test ${gl_cv_have_weak+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in cygwin*) gl_cv_have_weak="guessing no" @@ -32383,20 +32892,22 @@ else extern void xyzzy (); #pragma weak xyzzy int -main () +main (void) { xyzzy(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_have_weak=maybe fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test $gl_cv_have_weak = maybe; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ELF__ @@ -32405,15 +32916,16 @@ rm -f core conftest.err conftest.$ac_objext \ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : + $EGREP "Extensible Linking Format" >/dev/null 2>&1 +then : gl_cv_have_weak="guessing yes" -else +else $as_nop gl_cv_have_weak="guessing no" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -32424,9 +32936,10 @@ int main () return (fputs == NULL); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_have_weak=yes -else +else $as_nop gl_cv_have_weak=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -32462,12 +32975,12 @@ EOF esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 -$as_echo "$gl_cv_have_weak" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 +printf "%s\n" "$gl_cv_have_weak" >&6; } case "$gl_cv_have_weak" in *yes) -$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h +printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h ;; esac @@ -32491,14 +33004,14 @@ $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h LIBPMULTITHREAD= # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . It's added above, in gl_ANYTHREADLIB_EARLY. - ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" -if test "x$ac_cv_header_pthread_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes +then : gl_have_pthread_h=yes -else +else $as_nop gl_have_pthread_h=no fi - if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) @@ -32520,7 +33033,7 @@ fi pthread_mutexattr_t ma; int -main () +main (void) { pthread_mutex_lock (&m); pthread_mutexattr_init (&ma); @@ -32528,18 +33041,19 @@ pthread_mutex_lock (&m); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_pthread_api=yes LIBPTHREAD=$gl_pthread LIBPMULTITHREAD=$gl_pthread fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$save_LIBS test $gl_pthread_api = yes && break done - echo "$as_me:32541: gl_pthread_api=$gl_pthread_api" >&5 - echo "$as_me:32542: LIBPTHREAD=$LIBPTHREAD" >&5 + echo "$as_me:33055: gl_pthread_api=$gl_pthread_api" >&5 + echo "$as_me:33056: LIBPTHREAD=$LIBPTHREAD" >&5 gl_pthread_in_glibc=no # On Linux with glibc >= 2.34, libc contains the fully functional @@ -32557,25 +33071,27 @@ rm -f core conftest.err conftest.$ac_objext \ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky user" >/dev/null 2>&1; then : + $EGREP "Lucky user" >/dev/null 2>&1 +then : gl_pthread_in_glibc=yes fi -rm -f conftest* +rm -rf conftest* ;; esac - echo "$as_me:32567: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 + echo "$as_me:33082: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +printf %s "checking for pthread_kill in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32584,30 +33100,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_kill=yes -else +else $as_nop ac_cv_lib_pthread_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } -if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = xyes +then : if test $gl_pthread_in_glibc = yes; then LIBPMULTITHREAD= else @@ -32621,7 +33136,7 @@ if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : case "$host_os" in solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*) -$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h +printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h esac fi @@ -32630,11 +33145,12 @@ fi elif test $gl_pthread_api != yes; then # Some library is needed. Try libpthread and libc_r. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +printf %s "checking for pthread_kill in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32643,30 +33159,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_kill=yes -else +else $as_nop ac_cv_lib_pthread_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } -if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = xyes +then : gl_pthread_api=yes LIBPTHREAD=-lpthread LIBPMULTITHREAD=-lpthread @@ -32674,11 +33189,12 @@ fi if test $gl_pthread_api != yes; then # For FreeBSD 4. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 -$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } -if ${ac_cv_lib_c_r_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 +printf %s "checking for pthread_kill in -lc_r... " >&6; } +if test ${ac_cv_lib_c_r_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lc_r $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32687,30 +33203,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_c_r_pthread_kill=yes -else +else $as_nop ac_cv_lib_c_r_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 -$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } -if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } +if test "x$ac_cv_lib_c_r_pthread_kill" = xyes +then : gl_pthread_api=yes LIBPTHREAD=-lc_r LIBPMULTITHREAD=-lc_r @@ -32718,17 +33233,17 @@ fi fi fi - echo "$as_me:32721: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 + echo "$as_me:33236: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 -$as_echo_n "checking whether POSIX threads API is available... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 -$as_echo "$gl_pthread_api" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 +printf %s "checking whether POSIX threads API is available... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 +printf "%s\n" "$gl_pthread_api" >&6; } if test $gl_pthread_api = yes; then -$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h fi @@ -32736,22 +33251,24 @@ $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h /* end confdefs.h. */ #include int -main () +main (void) { sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIB_SCHED_YIELD= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 -$as_echo_n "checking for sched_yield in -lrt... " >&6; } -if ${ac_cv_lib_rt_sched_yield+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 +printf %s "checking for sched_yield in -lrt... " >&6; } +if test ${ac_cv_lib_rt_sched_yield+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32760,37 +33277,37 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char sched_yield (); int -main () +main (void) { return sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_sched_yield=yes -else +else $as_nop ac_cv_lib_rt_sched_yield=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 -$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } -if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 +printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } +if test "x$ac_cv_lib_rt_sched_yield" = xyes +then : LIB_SCHED_YIELD=-lrt -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 -$as_echo_n "checking for sched_yield in -lposix4... " >&6; } -if ${ac_cv_lib_posix4_sched_yield+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 +printf %s "checking for sched_yield in -lposix4... " >&6; } +if test ${ac_cv_lib_posix4_sched_yield+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lposix4 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32799,30 +33316,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char sched_yield (); int -main () +main (void) { return sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_posix4_sched_yield=yes -else +else $as_nop ac_cv_lib_posix4_sched_yield=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 -$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } -if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 +printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } +if test "x$ac_cv_lib_posix4_sched_yield" = xyes +then : LIB_SCHED_YIELD=-lposix4 fi @@ -32830,7 +33346,7 @@ fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -32843,22 +33359,22 @@ rm -f core conftest.err conftest.$ac_objext \ if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then gl_threads_api='isoc+posix' -$as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h +printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= else gl_threads_api=posix -$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h +printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h if test -z "$LIBMULTITHREAD" && test -z "$LTLIBMULTITHREAD"; then -$as_echo "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h +printf "%s\n" "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h else if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then -$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h +printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= else @@ -32866,7 +33382,7 @@ $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h freebsd* | dragonfly* | midnightbsd*) if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then -$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h +printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h fi ;; @@ -32897,14 +33413,14 @@ $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h LIBPMULTITHREAD= # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . It's added above, in gl_ANYTHREADLIB_EARLY. - ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" -if test "x$ac_cv_header_pthread_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes +then : gl_have_pthread_h=yes -else +else $as_nop gl_have_pthread_h=no fi - if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) @@ -32926,7 +33442,7 @@ fi pthread_mutexattr_t ma; int -main () +main (void) { pthread_mutex_lock (&m); pthread_mutexattr_init (&ma); @@ -32934,18 +33450,19 @@ pthread_mutex_lock (&m); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_pthread_api=yes LIBPTHREAD=$gl_pthread LIBPMULTITHREAD=$gl_pthread fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$save_LIBS test $gl_pthread_api = yes && break done - echo "$as_me:32947: gl_pthread_api=$gl_pthread_api" >&5 - echo "$as_me:32948: LIBPTHREAD=$LIBPTHREAD" >&5 + echo "$as_me:33464: gl_pthread_api=$gl_pthread_api" >&5 + echo "$as_me:33465: LIBPTHREAD=$LIBPTHREAD" >&5 gl_pthread_in_glibc=no # On Linux with glibc >= 2.34, libc contains the fully functional @@ -32963,25 +33480,27 @@ rm -f core conftest.err conftest.$ac_objext \ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky user" >/dev/null 2>&1; then : + $EGREP "Lucky user" >/dev/null 2>&1 +then : gl_pthread_in_glibc=yes fi -rm -f conftest* +rm -rf conftest* ;; esac - echo "$as_me:32973: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 + echo "$as_me:33491: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +printf %s "checking for pthread_kill in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32990,30 +33509,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_kill=yes -else +else $as_nop ac_cv_lib_pthread_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } -if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = xyes +then : if test $gl_pthread_in_glibc = yes; then LIBPMULTITHREAD= else @@ -33027,7 +33545,7 @@ if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : case "$host_os" in solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*) -$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h +printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h esac fi @@ -33036,11 +33554,12 @@ fi elif test $gl_pthread_api != yes; then # Some library is needed. Try libpthread and libc_r. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +printf %s "checking for pthread_kill in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33049,30 +33568,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_kill=yes -else +else $as_nop ac_cv_lib_pthread_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } -if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = xyes +then : gl_pthread_api=yes LIBPTHREAD=-lpthread LIBPMULTITHREAD=-lpthread @@ -33080,11 +33598,12 @@ fi if test $gl_pthread_api != yes; then # For FreeBSD 4. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 -$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } -if ${ac_cv_lib_c_r_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 +printf %s "checking for pthread_kill in -lc_r... " >&6; } +if test ${ac_cv_lib_c_r_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lc_r $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33093,30 +33612,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char pthread_kill (); int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_c_r_pthread_kill=yes -else +else $as_nop ac_cv_lib_c_r_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 -$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } -if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } +if test "x$ac_cv_lib_c_r_pthread_kill" = xyes +then : gl_pthread_api=yes LIBPTHREAD=-lc_r LIBPMULTITHREAD=-lc_r @@ -33124,17 +33642,17 @@ fi fi fi - echo "$as_me:33127: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 + echo "$as_me:33645: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 -$as_echo_n "checking whether POSIX threads API is available... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 -$as_echo "$gl_pthread_api" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 +printf %s "checking whether POSIX threads API is available... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 +printf "%s\n" "$gl_pthread_api" >&6; } if test $gl_pthread_api = yes; then -$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h fi @@ -33142,22 +33660,24 @@ $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h /* end confdefs.h. */ #include int -main () +main (void) { sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIB_SCHED_YIELD= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 -$as_echo_n "checking for sched_yield in -lrt... " >&6; } -if ${ac_cv_lib_rt_sched_yield+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 +printf %s "checking for sched_yield in -lrt... " >&6; } +if test ${ac_cv_lib_rt_sched_yield+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33166,37 +33686,37 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char sched_yield (); int -main () +main (void) { return sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_sched_yield=yes -else +else $as_nop ac_cv_lib_rt_sched_yield=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 -$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } -if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 +printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } +if test "x$ac_cv_lib_rt_sched_yield" = xyes +then : LIB_SCHED_YIELD=-lrt -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 -$as_echo_n "checking for sched_yield in -lposix4... " >&6; } -if ${ac_cv_lib_posix4_sched_yield+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 +printf %s "checking for sched_yield in -lposix4... " >&6; } +if test ${ac_cv_lib_posix4_sched_yield+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lposix4 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33205,30 +33725,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char sched_yield (); int -main () +main (void) { return sched_yield (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_posix4_sched_yield=yes -else +else $as_nop ac_cv_lib_posix4_sched_yield=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 -$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } -if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 +printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } +if test "x$ac_cv_lib_posix4_sched_yield" = xyes +then : LIB_SCHED_YIELD=-lposix4 fi @@ -33236,7 +33755,7 @@ fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -33244,25 +33763,22 @@ rm -f core conftest.err conftest.$ac_objext \ fi if test $ac_cv_header_threads_h = yes; then - for ac_func in thrd_create -do : - ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create" -if test "x$ac_cv_func_thrd_create" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_THRD_CREATE 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create" +if test "x$ac_cv_func_thrd_create" = xyes +then : + printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h fi -done if test $ac_cv_func_thrd_create = yes; then LIBSTDTHREAD= else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5 -$as_echo_n "checking for thrd_create in -lstdthreads... " >&6; } -if ${ac_cv_lib_stdthreads_thrd_create+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5 +printf %s "checking for thrd_create in -lstdthreads... " >&6; } +if test ${ac_cv_lib_stdthreads_thrd_create+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lstdthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33271,34 +33787,33 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char thrd_create (); int -main () +main (void) { return thrd_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_stdthreads_thrd_create=yes -else +else $as_nop ac_cv_lib_stdthreads_thrd_create=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5 -$as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; } -if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5 +printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; } +if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes +then : LIBSTDTHREAD='-lstdthreads -lpthread' -else +else $as_nop LIBSTDTHREAD="$LIBPMULTITHREAD" @@ -33312,10 +33827,10 @@ fi esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5 -$as_echo_n "checking whether ISO C threads API is available... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5 -$as_echo "$ac_cv_header_threads_h" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5 +printf %s "checking whether ISO C threads API is available... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5 +printf "%s\n" "$ac_cv_header_threads_h" >&6; } gl_stdthreadlib_body_done=done fi @@ -33323,7 +33838,7 @@ $as_echo "$ac_cv_header_threads_h" >&6; } LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD gl_threads_api=isoc -$as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h +printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h fi fi @@ -33337,17 +33852,17 @@ $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h }; then gl_threads_api=windows -$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h +printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h fi ;; esac fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 -$as_echo_n "checking for multithread API to use... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 -$as_echo "$gl_threads_api" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 +printf %s "checking for multithread API to use... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 +printf "%s\n" "$gl_threads_api" >&6; } @@ -33359,12 +33874,14 @@ $as_echo "$gl_threads_api" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 -$as_echo_n "checking whether malloc (0) returns nonnull... " >&6; } -if ${ac_cv_func_malloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 +printf %s "checking whether malloc (0) returns nonnull... " >&6; } +if test ${ac_cv_func_malloc_0_nonnull+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on platforms where we know the result. *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ @@ -33375,13 +33892,13 @@ else *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { void *p = malloc (0); int result = !p; @@ -33392,9 +33909,10 @@ void *p = malloc (0); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_malloc_0_nonnull=yes -else +else $as_nop ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -33403,8 +33921,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } case $ac_cv_func_malloc_0_nonnull in #( *yes) : gl_cv_func_malloc_0_nonnull=1 ;; #( @@ -33413,10 +33931,7 @@ $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } esac -cat >>confdefs.h <<_ACEOF -#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull -_ACEOF - +printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h @@ -33434,11 +33949,12 @@ _ACEOF if test $gl_cv_have_include_next = yes; then gl_cv_next_math_h='<'math.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_math_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_math_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_math_h = yes; then @@ -33483,8 +33999,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5 -$as_echo "$gl_cv_next_math_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5 +printf "%s\n" "$gl_cv_next_math_h" >&6; } fi NEXT_MATH_H=$gl_cv_next_math_h @@ -33501,16 +34017,17 @@ $as_echo "$gl_cv_next_math_h" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5 -$as_echo_n "checking whether NAN macro works... " >&6; } -if ${gl_cv_header_math_nan_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5 +printf %s "checking whether NAN macro works... " >&6; } +if test ${gl_cv_header_math_nan_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { /* Solaris 10 has a broken definition of NAN. Other platforms fail to provide NAN, or provide it only in C99 mode; this @@ -33524,28 +34041,30 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_math_nan_works=yes -else +else $as_nop gl_cv_header_math_nan_works=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5 -$as_echo "$gl_cv_header_math_nan_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5 +printf "%s\n" "$gl_cv_header_math_nan_works" >&6; } if test $gl_cv_header_math_nan_works = no; then REPLACE_NAN=1 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5 -$as_echo_n "checking whether HUGE_VAL works... " >&6; } -if ${gl_cv_header_math_huge_val_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5 +printf %s "checking whether HUGE_VAL works... " >&6; } +if test ${gl_cv_header_math_huge_val_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { /* Solaris 10 has a broken definition of HUGE_VAL. */ double d = HUGE_VAL; @@ -33554,15 +34073,16 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_math_huge_val_works=yes -else +else $as_nop gl_cv_header_math_huge_val_works=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5 -$as_echo "$gl_cv_header_math_huge_val_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5 +printf "%s\n" "$gl_cv_header_math_huge_val_works" >&6; } if test $gl_cv_header_math_huge_val_works = no; then REPLACE_HUGE_VAL=1 fi @@ -33573,39 +34093,41 @@ $as_echo "$gl_cv_header_math_huge_val_works" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 -$as_echo_n "checking for mbstate_t... " >&6; } -if ${ac_cv_type_mbstate_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +printf %s "checking for mbstate_t... " >&6; } +if test ${ac_cv_type_mbstate_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #include int -main () +main (void) { mbstate_t x; return sizeof x; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_type_mbstate_t=yes -else +else $as_nop ac_cv_type_mbstate_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 -$as_echo "$ac_cv_type_mbstate_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } if test $ac_cv_type_mbstate_t = yes; then -$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h else -$as_echo "#define mbstate_t int" >>confdefs.h +printf "%s\n" "#define mbstate_t int" >>confdefs.h fi @@ -33614,13 +34136,12 @@ $as_echo "#define mbstate_t int" >>confdefs.h - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 -$as_echo_n "checking for a traditional japanese locale... " >&6; } -if ${gt_cv_locale_ja+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 +printf %s "checking for a traditional japanese locale... " >&6; } +if test ${gt_cv_locale_ja+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -33698,7 +34219,7 @@ _ACEOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then case "$host_os" in # Handle native Windows specially, because there setlocale() interprets @@ -33756,18 +34277,19 @@ _ACEOF rm -fr conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 -$as_echo "$gt_cv_locale_ja" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 +printf "%s\n" "$gt_cv_locale_ja" >&6; } LOCALE_JA=$gt_cv_locale_ja - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 -$as_echo_n "checking for a french Unicode locale... " >&6; } -if ${gt_cv_locale_fr_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 +printf %s "checking for a french Unicode locale... " >&6; } +if test ${gt_cv_locale_fr_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -33838,7 +34360,7 @@ _ACEOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then case "$host_os" in # Handle native Windows specially, because there setlocale() interprets @@ -33884,19 +34406,20 @@ _ACEOF rm -fr conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 -$as_echo "$gt_cv_locale_fr_utf8" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 +printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 -$as_echo_n "checking for a transitional chinese locale... " >&6; } -if ${gt_cv_locale_zh_CN+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 +printf %s "checking for a transitional chinese locale... " >&6; } +if test ${gt_cv_locale_zh_CN+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -33975,7 +34498,7 @@ _ACEOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then case "$host_os" in # Handle native Windows specially, because there setlocale() interprets @@ -34026,8 +34549,8 @@ _ACEOF rm -fr conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 -$as_echo "$gt_cv_locale_zh_CN" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 +printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } LOCALE_ZH_CN=$gt_cv_locale_zh_CN @@ -34038,9 +34561,10 @@ $as_echo "$gt_cv_locale_zh_CN" >&6; } # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is # irrelevant for anonymous mappings. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" -if test "x$ac_cv_func_mmap" = xyes; then : +if test "x$ac_cv_func_mmap" = xyes +then : gl_have_mmap=yes -else +else $as_nop gl_have_mmap=no fi @@ -34048,8 +34572,8 @@ fi # Try to allow MAP_ANONYMOUS. gl_have_mmap_anonymous=no if test $gl_have_mmap = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 -$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 +printf %s "checking for MAP_ANONYMOUS... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -34060,10 +34584,11 @@ $as_echo_n "checking for MAP_ANONYMOUS... " >&6; } _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "I cannot identify this map" >/dev/null 2>&1; then : + $EGREP "I cannot identify this map" >/dev/null 2>&1 +then : gl_have_mmap_anonymous=yes fi -rm -f conftest* +rm -rf conftest* if test $gl_have_mmap_anonymous != yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34076,20 +34601,21 @@ rm -f conftest* _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "I cannot identify this map" >/dev/null 2>&1; then : + $EGREP "I cannot identify this map" >/dev/null 2>&1 +then : -$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h +printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h gl_have_mmap_anonymous=yes fi -rm -f conftest* +rm -rf conftest* fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 -$as_echo "$gl_have_mmap_anonymous" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 +printf "%s\n" "$gl_have_mmap_anonymous" >&6; } if test $gl_have_mmap_anonymous = yes; then -$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h +printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h fi fi @@ -34097,8 +34623,6 @@ $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h - - HAVE_MBSLEN=0; HAVE_EXPLICIT_BZERO=1; HAVE_FFSL=1; @@ -34158,12 +34682,14 @@ $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h # memchr should cast the second argument to 'unsigned char'. # This bug exists in Android 4.3. # Assume that memchr works on platforms that lack mprotect. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 -$as_echo_n "checking whether memchr works... " >&6; } -if ${gl_cv_func_memchr_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 +printf %s "checking whether memchr works... " >&6; } +if test ${gl_cv_func_memchr_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on Android. linux*-android*) gl_cv_func_memchr_works="guessing no" ;; @@ -34173,7 +34699,7 @@ else *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -34189,7 +34715,7 @@ else #endif int -main () +main (void) { int result = 0; @@ -34242,9 +34768,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_memchr_works=yes -else +else $as_nop gl_cv_func_memchr_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -34253,8 +34780,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 -$as_echo "$gl_cv_func_memchr_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 +printf "%s\n" "$gl_cv_func_memchr_works" >&6; } case "$gl_cv_func_memchr_works" in *yes) ;; *) REPLACE_MEMCHR=1 ;; @@ -34442,35 +34969,37 @@ $as_echo "$gl_cv_func_memchr_works" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines MIN and MAX" >&5 -$as_echo_n "checking whether defines MIN and MAX... " >&6; } -if ${gl_cv_minmax_in_limits_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether defines MIN and MAX" >&5 +printf %s "checking whether defines MIN and MAX... " >&6; } +if test ${gl_cv_minmax_in_limits_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int x = MIN (42, 17); int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_minmax_in_limits_h=yes -else +else $as_nop gl_cv_minmax_in_limits_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 -$as_echo "$gl_cv_minmax_in_limits_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 +printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; } if test $gl_cv_minmax_in_limits_h = yes; then -$as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h fi @@ -34479,35 +35008,37 @@ $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines MIN and MAX" >&5 -$as_echo_n "checking whether defines MIN and MAX... " >&6; } -if ${gl_cv_minmax_in_sys_param_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether defines MIN and MAX" >&5 +printf %s "checking whether defines MIN and MAX... " >&6; } +if test ${gl_cv_minmax_in_sys_param_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int x = MIN (42, 17); int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_minmax_in_sys_param_h=yes -else +else $as_nop gl_cv_minmax_in_sys_param_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 -$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 +printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; } if test $gl_cv_minmax_in_sys_param_h = yes; then -$as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h fi @@ -34535,48 +35066,48 @@ $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h REPLACE_LOCALTIME=0; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5 -$as_echo_n "checking whether time_t is signed... " >&6; } -if ${gl_cv_time_t_is_signed+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5 +printf %s "checking whether time_t is signed... " >&6; } +if test ${gl_cv_time_t_is_signed+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include char time_t_signed[(time_t) -1 < 0 ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_time_t_is_signed=yes -else +else $as_nop gl_cv_time_t_is_signed=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_t_is_signed" >&5 -$as_echo "$gl_cv_time_t_is_signed" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_t_is_signed" >&5 +printf "%s\n" "$gl_cv_time_t_is_signed" >&6; } if test $gl_cv_time_t_is_signed = yes; then -$as_echo "#define TIME_T_IS_SIGNED 1" >>confdefs.h +printf "%s\n" "#define TIME_T_IS_SIGNED 1" >>confdefs.h fi -ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" -if test "x$ac_cv_have_decl_alarm" = xyes; then : +ac_fn_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_alarm" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ALARM $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h @@ -34584,25 +35115,27 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 -$as_echo_n "checking for working mktime... " >&6; } -if ${gl_cv_func_working_mktime+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 +printf %s "checking for working mktime... " >&6; } +if test ${gl_cv_func_working_mktime+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $APPLE_UNIVERSAL_BUILD = 1; then # A universal build on Apple Mac OS X platforms. # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode. # But we need a configuration result that is valid in both modes. gl_cv_func_working_mktime="guessing no" else - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_working_mktime="guessing no" ;; *) gl_cv_func_working_mktime="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Test program from Paul Eggert and Tony Leneis. */ @@ -34829,9 +35362,10 @@ main () return result; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_working_mktime=yes -else +else $as_nop gl_cv_func_working_mktime=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -34841,8 +35375,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5 -$as_echo "$gl_cv_func_working_mktime" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5 +printf "%s\n" "$gl_cv_func_working_mktime" >&6; } @@ -34904,13 +35438,12 @@ $as_echo "$gl_cv_func_working_mktime" >&6; } - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 -$as_echo_n "checking for O_CLOEXEC... " >&6; } -if ${gl_cv_macro_O_CLOEXEC+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 +printf %s "checking for O_CLOEXEC... " >&6; } +if test ${gl_cv_macro_O_CLOEXEC+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -34919,58 +35452,58 @@ else #endif int -main () +main (void) { return O_CLOEXEC; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_macro_O_CLOEXEC=yes -else +else $as_nop gl_cv_macro_O_CLOEXEC=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 -$as_echo "$gl_cv_macro_O_CLOEXEC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 +printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 -$as_echo_n "checking for promoted mode_t type... " >&6; } -if ${gl_cv_promoted_mode_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 +printf %s "checking for promoted mode_t type... " >&6; } +if test ${gl_cv_promoted_mode_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_promoted_mode_t='int' -else +else $as_nop gl_cv_promoted_mode_t='mode_t' fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 -$as_echo "$gl_cv_promoted_mode_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 +printf "%s\n" "$gl_cv_promoted_mode_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define PROMOTED_MODE_T $gl_cv_promoted_mode_t -_ACEOF +printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h @@ -34983,20 +35516,14 @@ _ACEOF - - - -ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" -if test "x$ac_cv_have_decl_setenv" = xyes; then : +ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_setenv" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SETENV $ac_have_decl -_ACEOF - +printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h @@ -35010,28 +35537,19 @@ _ACEOF - for ac_header in search.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" -if test "x$ac_cv_header_search_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SEARCH_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" +if test "x$ac_cv_header_search_h" = xyes +then : + printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h fi -done - - for ac_func in tsearch -do : ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" -if test "x$ac_cv_func_tsearch" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_TSEARCH 1 -_ACEOF +if test "x$ac_cv_func_tsearch" = xyes +then : + printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h fi -done @@ -35042,14 +35560,15 @@ done + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 +printf %s "checking whether snprintf returns a byte count as in C99... " >&6; } +if test ${gl_cv_func_snprintf_retval_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 -$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; } -if ${gl_cv_func_snprintf_retval_c99+:} false; then : - $as_echo_n "(cached) " >&6 -else - - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; @@ -35090,19 +35609,20 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Known" >/dev/null 2>&1; then : + $EGREP "Known" >/dev/null 2>&1 +then : gl_cv_func_snprintf_retval_c99="guessing yes" -else +else $as_nop gl_cv_func_snprintf_retval_c99="guessing no" fi -rm -f conftest* +rm -rf conftest* ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -35135,9 +35655,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_snprintf_retval_c99=yes -else +else $as_nop gl_cv_func_snprintf_retval_c99=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -35146,19 +35667,17 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 -$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 +printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; } -ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" -if test "x$ac_cv_have_decl_snprintf" = xyes; then : +ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_snprintf" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SNPRINTF $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h @@ -35166,18 +35685,13 @@ _ACEOF if test $ac_cv_header_sys_socket_h != yes; then - for ac_header in winsock2.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" -if test "x$ac_cv_header_winsock2_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINSOCK2_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes +then : + printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi -done - fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 @@ -35189,11 +35703,12 @@ done LIBSOCKET= if test $HAVE_WINSOCK2_H = 1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5 -$as_echo_n "checking for WSAStartup... " >&6; } -if ${gl_cv_func_wsastartup+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5 +printf %s "checking for WSAStartup... " >&6; } +if test ${gl_cv_func_wsastartup+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" @@ -35204,7 +35719,7 @@ else # include #endif int -main () +main (void) { WORD wVersionRequested = MAKEWORD(1, 1); @@ -35217,30 +35732,32 @@ main () } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_wsastartup=yes -else +else $as_nop gl_cv_func_wsastartup=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5 -$as_echo "$gl_cv_func_wsastartup" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5 +printf "%s\n" "$gl_cv_func_wsastartup" >&6; } if test "$gl_cv_func_wsastartup" = "yes"; then -$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h +printf "%s\n" "#define WINDOWS_SOCKETS 1" >>confdefs.h LIBSOCKET='-lws2_32' fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 -$as_echo_n "checking for library containing setsockopt... " >&6; } -if ${gl_cv_lib_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 +printf %s "checking for library containing setsockopt... " >&6; } +if test ${gl_cv_lib_socket+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_lib_socket= cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35251,16 +35768,17 @@ extern #endif char setsockopt(); int -main () +main (void) { setsockopt(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : -else +else $as_nop gl_save_LIBS="$LIBS" LIBS="$gl_save_LIBS -lsocket" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35271,17 +35789,18 @@ extern #endif char setsockopt(); int -main () +main (void) { setsockopt(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_lib_socket="-lsocket" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$gl_cv_lib_socket"; then LIBS="$gl_save_LIBS -lnetwork" @@ -35293,17 +35812,18 @@ extern #endif char setsockopt(); int -main () +main (void) { setsockopt(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_lib_socket="-lnetwork" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$gl_cv_lib_socket"; then LIBS="$gl_save_LIBS -lnet" @@ -35315,32 +35835,33 @@ extern #endif char setsockopt(); int -main () +main (void) { setsockopt(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_lib_socket="-lnet" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi fi LIBS="$gl_save_LIBS" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$gl_cv_lib_socket"; then gl_cv_lib_socket="none needed" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5 -$as_echo "$gl_cv_lib_socket" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5 +printf "%s\n" "$gl_cv_lib_socket" >&6; } if test "$gl_cv_lib_socket" != "none needed"; then LIBSOCKET="$gl_cv_lib_socket" fi @@ -35359,26 +35880,19 @@ $as_echo "$gl_cv_lib_socket" >&6; } - - - - - -ac_fn_c_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" -if test "x$ac_cv_have_decl_fcloseall" = xyes; then : +ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fcloseall" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FCLOSEALL $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h - $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h + printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h @@ -35391,11 +35905,12 @@ _ACEOF if test $gl_cv_have_include_next = yes; then gl_cv_next_stdio_h='<'stdio.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_stdio_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_stdio_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -35434,8 +35949,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 -$as_echo "$gl_cv_next_stdio_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 +printf "%s\n" "$gl_cv_next_stdio_h" >&6; } fi NEXT_STDIO_H=$gl_cv_next_stdio_h @@ -35452,11 +35967,12 @@ $as_echo "$gl_cv_next_stdio_h" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 -$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; } -if ${gl_cv_func_printf_attribute_flavor+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 +printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; } +if test ${gl_cv_func_printf_attribute_flavor+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -35472,25 +35988,26 @@ else #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_func_printf_attribute_flavor=system -else +else $as_nop gl_cv_func_printf_attribute_flavor=gnu fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 -$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 +printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; } if test "$gl_cv_func_printf_attribute_flavor" = gnu; then -$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h +printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h fi @@ -35510,38 +36027,32 @@ $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h HAVE_DECL_FCLOSEALL=0 fi -ac_fn_c_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" -if test "x$ac_cv_have_decl_ecvt" = xyes; then : +ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_ecvt" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ECVT $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" -if test "x$ac_cv_have_decl_fcvt" = xyes; then : +ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fcvt" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FCVT $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" -if test "x$ac_cv_have_decl_gcvt" = xyes; then : +ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_gcvt" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GCVT $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h @@ -35556,11 +36067,12 @@ _ACEOF if test $gl_cv_have_include_next = yes; then gl_cv_next_stdlib_h='<'stdlib.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_stdlib_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_stdlib_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -35599,8 +36111,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 -$as_echo "$gl_cv_next_stdlib_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 +printf "%s\n" "$gl_cv_next_stdlib_h" >&6; } fi NEXT_STDLIB_H=$gl_cv_next_stdlib_h @@ -35647,16 +36159,12 @@ $as_echo "$gl_cv_next_stdlib_h" >&6; } - for ac_func in strcasestr -do : ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" -if test "x$ac_cv_func_strcasestr" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRCASESTR 1 -_ACEOF +if test "x$ac_cv_func_strcasestr" = xyes +then : + printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h fi -done if test $ac_cv_func_strcasestr = no; then HAVE_STRCASESTR=0 @@ -35664,12 +36172,14 @@ done if test $REPLACE_MEMCHR = 1; then REPLACE_STRCASESTR=1 else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5 -$as_echo_n "checking whether strcasestr works... " >&6; } -if ${gl_cv_func_strcasestr_works_always+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5 +printf %s "checking whether strcasestr works... " >&6; } +if test ${gl_cv_func_strcasestr_works_always+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -35691,15 +36201,16 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky user" >/dev/null 2>&1; then : + $EGREP "Lucky user" >/dev/null 2>&1 +then : gl_cv_func_strcasestr_works_always="guessing yes" -else +else $as_nop gl_cv_func_strcasestr_works_always="$gl_cross_guess_normal" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -35715,7 +36226,7 @@ else #define NEEDLE P P P P P int -main () +main (void) { return !!strcasestr (HAYSTACK, NEEDLE); @@ -35723,9 +36234,10 @@ return !!strcasestr (HAYSTACK, NEEDLE); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_strcasestr_works_always=yes -else +else $as_nop gl_cv_func_strcasestr_works_always=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -35734,8 +36246,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5 -$as_echo "$gl_cv_func_strcasestr_works_always" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5 +printf "%s\n" "$gl_cv_func_strcasestr_works_always" >&6; } case "$gl_cv_func_strcasestr_works_always" in *yes) ;; *) @@ -35747,12 +36259,14 @@ $as_echo "$gl_cv_func_strcasestr_works_always" >&6; } REPLACE_STRERROR_0=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 -$as_echo_n "checking whether strerror(0) succeeds... " >&6; } -if ${gl_cv_func_strerror_0_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 +printf %s "checking whether strerror(0) succeeds... " >&6; } +if test ${gl_cv_func_strerror_0_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; @@ -35764,14 +36278,14 @@ else *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { int result = 0; char *str; @@ -35786,9 +36300,10 @@ int result = 0; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_strerror_0_works=yes -else +else $as_nop gl_cv_func_strerror_0_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -35797,14 +36312,14 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 -$as_echo "$gl_cv_func_strerror_0_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 +printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; } case "$gl_cv_func_strerror_0_works" in *yes) ;; *) REPLACE_STRERROR_0=1 -$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h +printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h ;; esac @@ -35822,11 +36337,12 @@ $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_string_h='<'string.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_string_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_string_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -35865,8 +36381,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 -$as_echo "$gl_cv_next_string_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 +printf "%s\n" "$gl_cv_next_string_h" >&6; } fi NEXT_STRING_H=$gl_cv_next_string_h @@ -35898,19 +36414,18 @@ $as_echo "$gl_cv_next_string_h" >&6; } - - if test $gl_cv_have_include_next = yes; then gl_cv_next_strings_h='<'strings.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_strings_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_strings_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_strings_h = yes; then @@ -35955,8 +36470,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5 -$as_echo "$gl_cv_next_strings_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5 +printf "%s\n" "$gl_cv_next_strings_h" >&6; } fi NEXT_STRINGS_H=$gl_cv_next_strings_h @@ -36067,15 +36582,15 @@ $as_echo "$gl_cv_next_strings_h" >&6; } - if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_uio_h='<'sys/uio.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_sys_uio_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_sys_uio_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_sys_uio_h = yes; then @@ -36120,8 +36635,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5 -$as_echo "$gl_cv_next_sys_uio_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5 +printf "%s\n" "$gl_cv_next_sys_uio_h" >&6; } fi NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h @@ -36148,32 +36663,34 @@ $as_echo "$gl_cv_next_sys_uio_h" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 -$as_echo_n "checking for struct timespec in ... " >&6; } -if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +printf %s "checking for struct timespec in ... " >&6; } +if test ${gl_cv_sys_struct_timespec_in_time_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_sys_struct_timespec_in_time_h=yes -else +else $as_nop gl_cv_sys_struct_timespec_in_time_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 -$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 +printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; } TIME_H_DEFINES_STRUCT_TIMESPEC=0 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 @@ -36182,90 +36699,96 @@ $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } if test $gl_cv_sys_struct_timespec_in_time_h = yes; then TIME_H_DEFINES_STRUCT_TIMESPEC=1 else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 -$as_echo_n "checking for struct timespec in ... " >&6; } -if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +printf %s "checking for struct timespec in ... " >&6; } +if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_sys_struct_timespec_in_sys_time_h=yes -else +else $as_nop gl_cv_sys_struct_timespec_in_sys_time_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 -$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 +printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 -$as_echo_n "checking for struct timespec in ... " >&6; } -if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +printf %s "checking for struct timespec in ... " >&6; } +if test ${gl_cv_sys_struct_timespec_in_pthread_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_sys_struct_timespec_in_pthread_h=yes -else +else $as_nop gl_cv_sys_struct_timespec_in_pthread_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 -$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 +printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 -$as_echo_n "checking for struct timespec in ... " >&6; } -if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +printf %s "checking for struct timespec in ... " >&6; } +if test ${gl_cv_sys_struct_timespec_in_unistd_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_sys_struct_timespec_in_unistd_h=yes -else +else $as_nop gl_cv_sys_struct_timespec_in_unistd_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 -$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 +printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 fi @@ -36291,11 +36814,12 @@ $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } if test $gl_cv_have_include_next = yes; then gl_cv_next_time_h='<'time.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_time_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_time_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -36334,8 +36858,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 -$as_echo "$gl_cv_next_time_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 +printf "%s\n" "$gl_cv_next_time_h" >&6; } fi NEXT_TIME_H=$gl_cv_next_time_h @@ -36359,32 +36883,34 @@ $as_echo "$gl_cv_next_time_h" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in " >&5 -$as_echo_n "checking for TIME_UTC in ... " >&6; } -if ${gl_cv_time_h_has_TIME_UTC+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in " >&5 +printf %s "checking for TIME_UTC in ... " >&6; } +if test ${gl_cv_time_h_has_TIME_UTC+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { static int x = TIME_UTC; x++; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_time_h_has_TIME_UTC=yes -else +else $as_nop gl_cv_time_h_has_TIME_UTC=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5 -$as_echo "$gl_cv_time_h_has_TIME_UTC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5 +printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; } if test $gl_cv_time_h_has_TIME_UTC = yes; then TIME_H_DEFINES_TIME_UTC=1 else @@ -36394,18 +36920,14 @@ $as_echo "$gl_cv_time_h_has_TIME_UTC" >&6; } - - -ac_fn_c_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" -if test "x$ac_cv_have_decl_execvpe" = xyes; then : +ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_execvpe" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_EXECVPE $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h @@ -36422,11 +36944,12 @@ _ACEOF if test $gl_cv_have_include_next = yes; then gl_cv_next_unistd_h='<'unistd.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_unistd_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_unistd_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_unistd_h = yes; then @@ -36471,8 +36994,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 -$as_echo "$gl_cv_next_unistd_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 +printf "%s\n" "$gl_cv_next_unistd_h" >&6; } fi NEXT_UNISTD_H=$gl_cv_next_unistd_h @@ -36510,168 +37033,140 @@ $as_echo "$gl_cv_next_unistd_h" >&6; } HAVE_DECL_EXECVPE=0 fi -ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_feof_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_ferror_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fflush_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fgets_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fputc_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fputs_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fread_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getc_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getchar_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_putc_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then : +ac_fn_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_putchar_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" -if test "x$ac_cv_have_decl_unsetenv" = xyes; then : +ac_fn_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_unsetenv" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_UNSETENV $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 -$as_echo_n "checking for inttypes.h... " >&6; } -if ${gl_cv_header_inttypes_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 +printf %s "checking for inttypes.h... " >&6; } +if test ${gl_cv_header_inttypes_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -36679,73 +37174,73 @@ else #include int -main () +main (void) { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_inttypes_h=yes -else +else $as_nop gl_cv_header_inttypes_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 -$as_echo "$gl_cv_header_inttypes_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 +printf "%s\n" "$gl_cv_header_inttypes_h" >&6; } if test $gl_cv_header_inttypes_h = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_INTTYPES_H_WITH_UINTMAX 1 -_ACEOF +printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 -$as_echo_n "checking for stdint.h... " >&6; } -if ${gl_cv_header_stdint_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 +printf %s "checking for stdint.h... " >&6; } +if test ${gl_cv_header_stdint_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_stdint_h=yes -else +else $as_nop gl_cv_header_stdint_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 -$as_echo "$gl_cv_header_stdint_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 +printf "%s\n" "$gl_cv_header_stdint_h" >&6; } if test $gl_cv_header_stdint_h = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H_WITH_UINTMAX 1 -_ACEOF +printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 -$as_echo_n "checking for intmax_t... " >&6; } -if ${gt_cv_c_intmax_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 +printf %s "checking for intmax_t... " >&6; } +if test ${gt_cv_c_intmax_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -36759,42 +37254,43 @@ else #endif int -main () +main (void) { intmax_t x = -1; return !x; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_c_intmax_t=yes -else +else $as_nop gt_cv_c_intmax_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 -$as_echo "$gt_cv_c_intmax_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 +printf "%s\n" "$gt_cv_c_intmax_t" >&6; } if test $gt_cv_c_intmax_t = yes; then -$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h else -cat >>confdefs.h <<_ACEOF -#define intmax_t long long -_ACEOF +printf "%s\n" "#define intmax_t long long" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 -$as_echo_n "checking where to find the exponent in a 'double'... " >&6; } -if ${gl_cv_cc_double_expbit0+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 +printf %s "checking where to find the exponent in a 'double'... " >&6; } +if test ${gl_cv_cc_double_expbit0+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -36805,14 +37301,16 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "mixed_endianness" >/dev/null 2>&1; then : + $EGREP "mixed_endianness" >/dev/null 2>&1 +then : gl_cv_cc_double_expbit0="unknown" -else +else $as_nop : -if ${ac_cv_c_bigendian+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${ac_cv_c_bigendian+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36823,7 +37321,8 @@ else typedef int dummy; _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. @@ -36847,7 +37346,7 @@ if ac_fn_c_try_compile "$LINENO"; then : fi done fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36856,7 +37355,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include int -main () +main (void) { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ @@ -36868,7 +37367,8 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -36876,7 +37376,7 @@ if ac_fn_c_try_compile "$LINENO"; then : #include int -main () +main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian @@ -36886,14 +37386,15 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else +else $as_nop ac_cv_c_bigendian=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). @@ -36902,7 +37403,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext #include int -main () +main (void) { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros @@ -36912,14 +37413,15 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { #ifndef _BIG_ENDIAN not big endian @@ -36929,31 +37431,33 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else +else $as_nop ac_cv_c_bigendian=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -short int ascii_mm[] = +unsigned short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - short int ascii_ii[] = + unsigned short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } - short int ebcdic_ii[] = + unsigned short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - short int ebcdic_mm[] = + unsigned short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; @@ -36961,14 +37465,15 @@ short int ascii_mm[] = extern int foo; int -main () +main (void) { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi @@ -36981,13 +37486,13 @@ if ac_fn_c_try_compile "$LINENO"; then : fi fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { /* Are we little or big endian? From Harbison&Steele. */ @@ -37003,9 +37508,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_bigendian=no -else +else $as_nop ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -37022,7 +37528,7 @@ fi gl_cv_cc_double_expbit0="word 1 bit 20" ;; #( universal) -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h +printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) @@ -37031,10 +37537,10 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -37102,9 +37608,10 @@ int main () } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_cc_double_expbit0=`cat conftest.out` -else +else $as_nop gl_cv_cc_double_expbit0="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -37114,21 +37621,17 @@ fi rm -f conftest.out fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 -$as_echo "$gl_cv_cc_double_expbit0" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 +printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; } case "$gl_cv_cc_double_expbit0" in word*bit*) word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'` -cat >>confdefs.h <<_ACEOF -#define DBL_EXPBIT0_WORD $word -_ACEOF +printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define DBL_EXPBIT0_BIT $bit -_ACEOF +printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h ;; esac @@ -37136,13 +37639,15 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5 -$as_echo_n "checking whether snprintf truncates the result as in C99... " >&6; } -if ${gl_cv_func_snprintf_truncation_c99+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5 +printf %s "checking whether snprintf truncates the result as in C99... " >&6; } +if test ${gl_cv_func_snprintf_truncation_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc systems. @@ -37189,7 +37694,7 @@ else *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -37219,9 +37724,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_snprintf_truncation_c99=yes -else +else $as_nop gl_cv_func_snprintf_truncation_c99=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -37230,43 +37736,66 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5 -$as_echo "$gl_cv_func_snprintf_truncation_c99" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5 +printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; } - for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" +if test "x$ac_cv_func_snprintf" = xyes +then : + printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" +if test "x$ac_cv_func_strnlen" = xyes +then : + printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h - ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include -" -if test "x$ac_cv_have_decl__snprintf" = xyes; then : +fi +ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen" +if test "x$ac_cv_func_wcslen" = xyes +then : + printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen" +if test "x$ac_cv_func_wcsnlen" = xyes +then : + printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" +if test "x$ac_cv_func_mbrtowc" = xyes +then : + printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" +if test "x$ac_cv_func_wcrtomb" = xyes +then : + printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h + +fi + + ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl__snprintf" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNPRINTF $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h case "$gl_cv_func_snprintf_retval_c99" in *yes) -$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h +printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h ;; esac @@ -37274,22 +37803,19 @@ $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h case "$gl_cv_func_snprintf_truncation_c99" in *yes) -$as_echo "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h +printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h ;; esac -ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" -if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : +ac_fn_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_vsnprintf" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_VSNPRINTF $ac_have_decl -_ACEOF - +printf "%s\n" "#define HAVE_DECL_VSNPRINTF $ac_have_decl" >>confdefs.h @@ -37316,11 +37842,12 @@ _ACEOF if test $gl_cv_have_include_next = yes; then gl_cv_next_wchar_h='<'wchar.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_wchar_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_wchar_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_wchar_h = yes; then @@ -37365,8 +37892,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 -$as_echo "$gl_cv_next_wchar_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 +printf "%s\n" "$gl_cv_next_wchar_h" >&6; } fi NEXT_WCHAR_H=$gl_cv_next_wchar_h @@ -37407,19 +37934,17 @@ $as_echo "$gl_cv_next_wchar_h" >&6; } - ac_fn_c_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" " + ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" " #include -" -if test "x$ac_cv_have_decl_wcsdup" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_wcsdup" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_WCSDUP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_wcsdup = no; then HAVE_DECL_WCSDUP=0 @@ -37427,7 +37952,6 @@ _ACEOF - HAVE_ISWBLANK=1; HAVE_WCTYPE_T=1; HAVE_WCTRANS_T=1; @@ -37442,8 +37966,6 @@ _ACEOF - - if test $ac_cv_func_iswcntrl = yes; then HAVE_ISWCNTRL=1 else @@ -37473,11 +37995,12 @@ _ACEOF if test $gl_cv_have_include_next = yes; then gl_cv_next_wctype_h='<'wctype.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_wctype_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_wctype_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_wctype_h = yes; then @@ -37522,8 +38045,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 -$as_echo "$gl_cv_next_wctype_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 +printf "%s\n" "$gl_cv_next_wctype_h" >&6; } fi NEXT_WCTYPE_H=$gl_cv_next_wctype_h @@ -37541,13 +38064,15 @@ $as_echo "$gl_cv_next_wctype_h" >&6; } if test $ac_cv_header_wctype_h = yes; then if test $ac_cv_func_iswcntrl = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 -$as_echo_n "checking whether iswcntrl works... " >&6; } -if ${gl_cv_func_iswcntrl_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 +printf %s "checking whether iswcntrl works... " >&6; } +if test ${gl_cv_func_iswcntrl_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -37555,21 +38080,22 @@ else Linux libc5 i18n is broken. #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_func_iswcntrl_works="guessing yes" -else +else $as_nop gl_cv_func_iswcntrl_works="guessing no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -37578,9 +38104,10 @@ else int main () { return iswprint ('x') == 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_iswcntrl_works=yes -else +else $as_nop gl_cv_func_iswcntrl_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -37589,8 +38116,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 -$as_echo "$gl_cv_func_iswcntrl_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 +printf "%s\n" "$gl_cv_func_iswcntrl_works" >&6; } fi HAVE_WCTYPE_H=1 else @@ -37615,35 +38142,29 @@ $as_echo "$gl_cv_func_iswcntrl_works" >&6; } if test $REPLACE_ISWCNTRL = 1; then REPLACE_TOWLOWER=1 else - for ac_func in towlower -do : - ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" -if test "x$ac_cv_func_towlower" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_TOWLOWER 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" +if test "x$ac_cv_func_towlower" = xyes +then : + printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h fi -done if test $ac_cv_func_towlower = yes; then REPLACE_TOWLOWER=0 else - ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include + ac_fn_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include #if HAVE_WCTYPE_H # include #endif -" -if test "x$ac_cv_have_decl_towlower" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_towlower" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_TOWLOWER $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_TOWLOWER $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_towlower = yes; then REPLACE_TOWLOWER=1 @@ -37658,11 +38179,12 @@ _ACEOF : fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 -$as_echo_n "checking for wctype_t... " >&6; } -if ${gl_cv_type_wctype_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 +printf %s "checking for wctype_t... " >&6; } +if test ${gl_cv_type_wctype_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -37672,32 +38194,34 @@ else wctype_t a; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_type_wctype_t=yes -else +else $as_nop gl_cv_type_wctype_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 -$as_echo "$gl_cv_type_wctype_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 +printf "%s\n" "$gl_cv_type_wctype_t" >&6; } if test $gl_cv_type_wctype_t = no; then HAVE_WCTYPE_T=0 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 -$as_echo_n "checking for wctrans_t... " >&6; } -if ${gl_cv_type_wctrans_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 +printf %s "checking for wctrans_t... " >&6; } +if test ${gl_cv_type_wctrans_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -37705,23 +38229,24 @@ else wctrans_t a; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_type_wctrans_t=yes -else +else $as_nop gl_cv_type_wctrans_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 -$as_echo "$gl_cv_type_wctrans_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 +printf "%s\n" "$gl_cv_type_wctrans_t" >&6; } if test $gl_cv_type_wctrans_t = no; then HAVE_WCTRANS_T=0 fi @@ -37762,24 +38287,25 @@ $as_echo "$gl_cv_type_wctrans_t" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5 -$as_echo_n "checking for C compiler option to allow warnings... " >&6; } -if ${gl_cv_cc_wallow+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5 +printf %s "checking for C compiler option to allow warnings... " >&6; } +if test ${gl_cv_cc_wallow+y} +then : + printf %s "(cached) " >&6 +else $as_nop rm -f conftest* echo 'int dummy;' > conftest.c { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } >/dev/null { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } >/dev/null if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then gl_cv_cc_wallow='-Wno-error' @@ -37789,8 +38315,8 @@ else rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5 -$as_echo "$gl_cv_cc_wallow" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5 +printf "%s\n" "$gl_cv_cc_wallow" >&6; } case "$gl_cv_cc_wallow" in none) GL_CFLAG_ALLOW_WARNINGS='' ;; *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;; @@ -37832,7 +38358,7 @@ EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5 (eval $gl_command) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then gl_options=`grep -v '#' conftest.out` for word in $gl_options; do @@ -37878,11 +38404,12 @@ fi # Define an additional variable used in the Makefile substitution. if test $ac_cv_working_alloca_h = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 -$as_echo_n "checking for alloca as a compiler built-in... " >&6; } -if ${gl_cv_rpl_alloca+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 +printf %s "checking for alloca as a compiler built-in... " >&6; } +if test ${gl_cv_rpl_alloca+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -37893,20 +38420,21 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Need own alloca" >/dev/null 2>&1; then : + $EGREP "Need own alloca" >/dev/null 2>&1 +then : gl_cv_rpl_alloca=yes -else +else $as_nop gl_cv_rpl_alloca=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 -$as_echo "$gl_cv_rpl_alloca" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 +printf "%s\n" "$gl_cv_rpl_alloca" >&6; } if test $gl_cv_rpl_alloca = yes; then -$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h GL_GENERATE_ALLOCA_H=true else @@ -37964,11 +38492,12 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5 -$as_echo_n "checking for static_assert... " >&6; } -if ${gl_cv_static_assert+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5 +printf %s "checking for static_assert... " >&6; } +if test ${gl_cv_static_assert+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS=$CFLAGS for gl_working in "yes, a keyword" "yes, an macro"; do case $gl_working in #( @@ -37991,7 +38520,7 @@ esac static_assert (2 + 2 == 4); int -main () +main (void) { static_assert (sizeof (char) == 1, "sizeof does not work"); @@ -38001,24 +38530,25 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_static_assert=$gl_working -else +else $as_nop gl_cv_static_assert=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS=$gl_save_CFLAGS test "$gl_cv_static_assert" != no && break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5 -$as_echo "$gl_cv_static_assert" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5 +printf "%s\n" "$gl_cv_static_assert" >&6; } GL_GENERATE_ASSERT_H=false case $gl_cv_static_assert in #( yes*keyword*) : -$as_echo "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h +printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h ;; #( no) : GL_GENERATE_ASSERT_H=true @@ -38033,11 +38563,12 @@ $as_echo "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_assert_h='<'assert.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_assert_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_assert_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -38076,8 +38607,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5 -$as_echo "$gl_cv_next_assert_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5 +printf "%s\n" "$gl_cv_next_assert_h" >&6; } fi NEXT_ASSERT_H=$gl_cv_next_assert_h @@ -38150,13 +38681,15 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5 -$as_echo_n "checking whether btowc(0) is correct... " >&6; } -if ${gl_cv_func_btowc_nul+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5 +printf %s "checking whether btowc(0) is correct... " >&6; } +if test ${gl_cv_func_btowc_nul+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on Cygwin. @@ -38167,7 +38700,7 @@ else *) gl_cv_func_btowc_nul="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -38179,9 +38712,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_btowc_nul=yes -else +else $as_nop gl_cv_func_btowc_nul=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -38190,14 +38724,15 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5 -$as_echo "$gl_cv_func_btowc_nul" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5 +printf "%s\n" "$gl_cv_func_btowc_nul" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5 -$as_echo_n "checking whether btowc(EOF) is correct... " >&6; } -if ${gl_cv_func_btowc_eof+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5 +printf %s "checking whether btowc(EOF) is correct... " >&6; } +if test ${gl_cv_func_btowc_eof+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on IRIX. @@ -38208,9 +38743,10 @@ else *) gl_cv_func_btowc_eof="guessing yes" ;; esac if test $LOCALE_FR != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -38227,9 +38763,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_btowc_eof=yes -else +else $as_nop gl_cv_func_btowc_eof=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -38239,8 +38776,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5 -$as_echo "$gl_cv_func_btowc_eof" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5 +printf "%s\n" "$gl_cv_func_btowc_eof" >&6; } case "$gl_cv_func_btowc_nul" in *yes) ;; @@ -38293,16 +38830,17 @@ fi -$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_BTOWC 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 -$as_echo_n "checking for __builtin_expect... " >&6; } -if ${gl_cv___builtin_expect+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 +printf %s "checking for __builtin_expect... " >&6; } +if test ${gl_cv___builtin_expect+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -38313,9 +38851,10 @@ else return argv[argc != 100][0]; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv___builtin_expect=yes -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -38327,40 +38866,40 @@ else return argv[argc != 100][0]; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv___builtin_expect="in " -else +else $as_nop gl_cv___builtin_expect=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5 -$as_echo "$gl_cv___builtin_expect" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5 +printf "%s\n" "$gl_cv___builtin_expect" >&6; } if test "$gl_cv___builtin_expect" = yes; then - $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h + printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h elif test "$gl_cv___builtin_expect" = "in "; then - $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h + printf "%s\n" "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h fi - for ac_header in byteswap.h + for ac_header in byteswap.h do : - ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" -if test "x$ac_cv_header_byteswap_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_BYTESWAP_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" +if test "x$ac_cv_header_byteswap_h" = xyes +then : + printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h GL_GENERATE_BYTESWAP_H=false -else +else $as_nop GL_GENERATE_BYTESWAP_H=true @@ -38372,7 +38911,6 @@ done - case "$GL_GENERATE_BYTESWAP_H" in false) BYTESWAP_H='' ;; true) @@ -38408,24 +38946,26 @@ fi REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX" if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5 -$as_echo_n "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; } -if ${ac_cv_func_calloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5 +printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; } +if test ${ac_cv_func_calloc_0_nonnull+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $cross_compiling != yes; then ac_cv_func_calloc_0_nonnull=yes - if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "$cross_compiling" = yes +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { int result = 0; char * volatile p = calloc (0, 0); @@ -38438,9 +38978,10 @@ int result = 0; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : -else +else $as_nop ac_cv_func_calloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -38461,8 +39002,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_calloc_0_nonnull" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5 +printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; } case $ac_cv_func_calloc_0_nonnull in #( *yes) : ;; #( @@ -38499,7 +39040,7 @@ esac -$as_echo "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h @@ -38537,13 +39078,13 @@ $as_echo "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h @@ -38560,18 +39101,13 @@ $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h if test $ac_cv_header_sys_socket_h != yes; then - for ac_header in winsock2.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" -if test "x$ac_cv_header_winsock2_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINSOCK2_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes +then : + printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi -done - fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 @@ -38617,7 +39153,7 @@ fi -$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h @@ -38633,9 +39169,10 @@ $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h # Check whether --with-openssl was given. -if test "${with_openssl+set}" = set; then : +if test ${with_openssl+y} +then : withval=$with_openssl; -else +else $as_nop with_openssl=$with_openssl_default fi @@ -38643,11 +39180,12 @@ fi if test "x$with_openssl" != xno; then if test "x$with_openssl" = xauto-gpl-compat; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether openssl is GPL compatible" >&5 -$as_echo_n "checking whether openssl is GPL compatible... " >&6; } -if ${gl_cv_openssl_gpl_compat+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether openssl is GPL compatible" >&5 +printf %s "checking whether openssl is GPL compatible... " >&6; } +if test ${gl_cv_openssl_gpl_compat+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -38657,30 +39195,32 @@ else #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_openssl_gpl_compat=yes -else +else $as_nop gl_cv_openssl_gpl_compat=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_openssl_gpl_compat" >&5 -$as_echo "$gl_cv_openssl_gpl_compat" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_openssl_gpl_compat" >&5 +printf "%s\n" "$gl_cv_openssl_gpl_compat" >&6; } fi if test "x$with_openssl" != xauto-gpl-compat || test "x$gl_cv_openssl_gpl_compat" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 in -lcrypto" >&5 -$as_echo_n "checking for SHA256 in -lcrypto... " >&6; } -if ${ac_cv_lib_crypto_SHA256+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256 in -lcrypto" >&5 +printf %s "checking for SHA256 in -lcrypto... " >&6; } +if test ${ac_cv_lib_crypto_SHA256+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38689,45 +39229,42 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char SHA256 (); int -main () +main (void) { return SHA256 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_crypto_SHA256=yes -else +else $as_nop ac_cv_lib_crypto_SHA256=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA256" >&5 -$as_echo "$ac_cv_lib_crypto_SHA256" >&6; } -if test "x$ac_cv_lib_crypto_SHA256" = xyes; then : - for ac_header in openssl/sha.h +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA256" >&5 +printf "%s\n" "$ac_cv_lib_crypto_SHA256" >&6; } +if test "x$ac_cv_lib_crypto_SHA256" = xyes +then : + for ac_header in openssl/sha.h do : - ac_fn_c_check_header_mongrel "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" -if test "x$ac_cv_header_openssl_sha_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_OPENSSL_SHA_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" +if test "x$ac_cv_header_openssl_sha_h" = xyes +then : + printf "%s\n" "#define HAVE_OPENSSL_SHA_H 1" >>confdefs.h LIB_CRYPTO=-lcrypto -$as_echo "#define HAVE_OPENSSL_SHA256 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENSSL_SHA256 1" >>confdefs.h fi done - fi fi @@ -38740,8 +39277,8 @@ fi if test "x$with_openssl" = xyes; then as_fn_error $? "$message" "$LINENO" 5 elif test "x$with_openssl" = xoptional; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $message" >&5 -$as_echo "$as_me: WARNING: $message" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $message" >&5 +printf "%s\n" "$as_me: WARNING: $message" >&2;} fi fi fi @@ -38749,18 +39286,17 @@ $as_echo "$as_me: WARNING: $message" >&2;} -cat >>confdefs.h <<_ACEOF -#define GNULIB_DIRNAME 1 -_ACEOF +printf "%s\n" "#define GNULIB_DIRNAME 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 -$as_echo_n "checking whether // is distinct from /... " >&6; } -if ${gl_cv_double_slash_root+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 +printf %s "checking whether // is distinct from /... " >&6; } +if test ${gl_cv_double_slash_root+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test x"$cross_compiling" = xyes ; then # When cross-compiling, there is no way to tell whether // is special # short of a list of hosts. However, the only known hosts to date @@ -38785,23 +39321,25 @@ else fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 -$as_echo "$gl_cv_double_slash_root" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 +printf "%s\n" "$gl_cv_double_slash_root" >&6; } if test "$gl_cv_double_slash_root" = yes; then -$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h +printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 -$as_echo_n "checking whether dup2 works... " >&6; } -if ${gl_cv_func_dup2_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 +printf %s "checking whether dup2 works... " >&6; } +if test ${gl_cv_func_dup2_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in mingw*) # on this platform, dup2 always returns 0 for success gl_cv_func_dup2_works="guessing no" ;; @@ -38819,7 +39357,7 @@ else gl_cv_func_dup2_works="guessing no" ;; *) gl_cv_func_dup2_works="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -38840,7 +39378,7 @@ $gl_mda_defines #endif int -main () +main (void) { int result = 0; int bad_fd = INT_MAX; @@ -38887,9 +39425,10 @@ int result = 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_dup2_works=yes -else +else $as_nop gl_cv_func_dup2_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -38898,22 +39437,18 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 -$as_echo "$gl_cv_func_dup2_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 +printf "%s\n" "$gl_cv_func_dup2_works" >&6; } case "$gl_cv_func_dup2_works" in *yes) ;; *) REPLACE_DUP2=1 - for ac_func in setdtablesize -do : - ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" -if test "x$ac_cv_func_setdtablesize" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SETDTABLESIZE 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" +if test "x$ac_cv_func_setdtablesize" = xyes +then : + printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h fi -done ;; esac @@ -38953,7 +39488,7 @@ fi -$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h @@ -38973,7 +39508,7 @@ $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h @@ -39012,32 +39547,34 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 -$as_echo_n "checking for error_at_line... " >&6; } -if ${ac_cv_lib_error_at_line+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +printf %s "checking for error_at_line... " >&6; } +if test ${ac_cv_lib_error_at_line+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_error_at_line=yes -else +else $as_nop ac_cv_lib_error_at_line=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 -$as_echo "$ac_cv_lib_error_at_line" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 +printf "%s\n" "$ac_cv_lib_error_at_line" >&6; } if test "$ac_cv_lib_error_at_line" = no; then @@ -39088,18 +39625,20 @@ fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 -$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; } -if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 +printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; } +if test ${gl_cv_func_fcntl_f_dupfd_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case $host_os in aix* | cygwin* | haiku*) gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39119,7 +39658,7 @@ $gl_mda_defines #endif int -main () +main (void) { int result = 0; int bad_fd = INT_MAX; @@ -39150,9 +39689,10 @@ int result = 0; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_fcntl_f_dupfd_works=yes -else +else $as_nop gl_cv_func_fcntl_f_dupfd_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -39160,8 +39700,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 -$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 +printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; } case $gl_cv_func_fcntl_f_dupfd_works in *yes) ;; *) @@ -39174,23 +39714,25 @@ $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; } fi -$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h +printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 -$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } -if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 +printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } +if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on NetBSD. netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;; *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39211,7 +39753,8 @@ else _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -39222,21 +39765,22 @@ choke me #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_func_fcntl_f_dupfd_cloexec=yes -else +else $as_nop gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else +else $as_nop gl_cv_func_fcntl_f_dupfd_cloexec=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -39245,8 +39789,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 -$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 +printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } case "$gl_cv_func_fcntl_f_dupfd_cloexec" in *yes) ;; *) @@ -39292,7 +39836,7 @@ fi -$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h @@ -39307,20 +39851,22 @@ $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 -$as_echo_n "checking whether fflush works on input streams... " >&6; } -if ${gl_cv_func_fflush_stdin+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 +printf %s "checking whether fflush works on input streams... " >&6; } +if test ${gl_cv_func_fflush_stdin+y} +then : + printf %s "(cached) " >&6 +else $as_nop echo hello world > conftest.txt - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_fflush_stdin="guessing no" ;; *) gl_cv_func_fflush_stdin=cross ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -39335,7 +39881,7 @@ else $gl_mda_defines int -main () +main (void) { FILE *f = fopen ("conftest.txt", "r"); char buffer[10]; @@ -39378,9 +39924,10 @@ FILE *f = fopen ("conftest.txt", "r"); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_fflush_stdin=yes -else +else $as_nop gl_cv_func_fflush_stdin=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -39390,17 +39937,15 @@ fi rm conftest.txt fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 -$as_echo "$gl_cv_func_fflush_stdin" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 +printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } case "$gl_cv_func_fflush_stdin" in *yes) gl_func_fflush_stdin=1 ;; *no) gl_func_fflush_stdin=0 ;; *) gl_func_fflush_stdin='(-1)' ;; esac -cat >>confdefs.h <<_ACEOF -#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin -_ACEOF +printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h case "$gl_cv_func_fflush_stdin" in @@ -39429,9 +39974,7 @@ fi fi -cat >>confdefs.h <<_ACEOF -#define GNULIB_FFLUSH 1 -_ACEOF +printf "%s\n" "#define GNULIB_FFLUSH 1" >>confdefs.h @@ -39449,7 +39992,7 @@ _ACEOF -$as_echo "#define GNULIB_TEST_FFLUSH 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FFLUSH 1" >>confdefs.h @@ -39479,12 +40022,13 @@ $as_echo "#define GNULIB_TEST_FFLUSH 1" >>confdefs.h #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop GL_GENERATE_FLOAT_H=true fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac ;; @@ -39505,13 +40049,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext esac REPLACE_ITOLD=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5 -$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; } -if ${gl_cv_func_itold_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5 +printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; } +if test ${gl_cv_func_itold_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host" in sparc*-*-linux*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39523,19 +40069,20 @@ else #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_func_itold_works="guessing no" -else +else $as_nop gl_cv_func_itold_works="guessing yes" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; # Guess yes on native Windows. mingw*) gl_cv_func_itold_works="guessing yes" ;; *) gl_cv_func_itold_works="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -39549,9 +40096,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_itold_works=yes -else +else $as_nop gl_cv_func_itold_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -39560,8 +40108,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5 -$as_echo "$gl_cv_func_itold_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5 +printf "%s\n" "$gl_cv_func_itold_works" >&6; } case "$gl_cv_func_itold_works" in *no) REPLACE_ITOLD=1 @@ -39581,11 +40129,12 @@ $as_echo "$gl_cv_func_itold_works" >&6; } if test $gl_cv_have_include_next = yes; then gl_cv_next_float_h='<'float.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_float_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_float_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -39624,8 +40173,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 -$as_echo "$gl_cv_next_float_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 +printf "%s\n" "$gl_cv_next_float_h" >&6; } fi NEXT_FLOAT_H=$gl_cv_next_float_h @@ -39709,17 +40258,15 @@ fi - ac_fn_c_check_decl "$LINENO" "floorf" "ac_cv_have_decl_floorf" "#include -" -if test "x$ac_cv_have_decl_floorf" = xyes; then : + ac_fn_check_decl "$LINENO" "floorf" "ac_cv_have_decl_floorf" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_floorf" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FLOORF $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_FLOORF $ac_have_decl" >>confdefs.h if test "$ac_cv_have_decl_floorf" = yes; then @@ -39727,9 +40274,10 @@ _ACEOF exec 9>&6 6>/dev/null - if ${gl_cv_func_floorf_libm+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${gl_cv_func_floorf_libm+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_func_floorf_libm=? cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39741,17 +40289,18 @@ else float (*funcptr) (float) = floorf; float x; int -main () +main (void) { x = funcptr(x) + floorf(x); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_floorf_libm= fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$gl_cv_func_floorf_libm" = "?"; then save_LIBS="$LIBS" @@ -39765,17 +40314,18 @@ rm -f core conftest.err conftest.$ac_objext \ float (*funcptr) (float) = floorf; float x; int -main () +main (void) { x = funcptr(x) + floorf(x); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_floorf_libm="-lm" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$save_LIBS" fi @@ -39829,7 +40379,7 @@ fi -$as_echo "#define GNULIB_TEST_FLOORF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FLOORF 1" >>confdefs.h @@ -39842,13 +40392,15 @@ $as_echo "#define GNULIB_TEST_FLOORF 1" >>confdefs.h gl_cv_func_fopen_slash="guessing no" ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5 -$as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; } -if ${gl_cv_func_fopen_slash+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5 +printf %s "checking whether fopen recognizes a trailing slash... " >&6; } +if test ${gl_cv_func_fopen_slash+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) @@ -39857,7 +40409,7 @@ else gl_cv_func_fopen_slash="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -39872,9 +40424,10 @@ int main () return result; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_fopen_slash=yes -else +else $as_nop gl_cv_func_fopen_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -39884,14 +40437,14 @@ fi rm -f conftest.sl fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5 -$as_echo "$gl_cv_func_fopen_slash" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5 +printf "%s\n" "$gl_cv_func_fopen_slash" >&6; } ;; esac case "$gl_cv_func_fopen_slash" in *no) -$as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h +printf "%s\n" "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h REPLACE_FOPEN=1 ;; @@ -39925,19 +40478,21 @@ $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FOPEN 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5 -$as_echo_n "checking whether fopen supports the mode character 'x'... " >&6; } -if ${gl_cv_func_fopen_mode_x+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5 +printf %s "checking whether fopen supports the mode character 'x'... " >&6; } +if test ${gl_cv_func_fopen_mode_x+y} +then : + printf %s "(cached) " >&6 +else $as_nop rm -f conftest.x - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc and musl systems. linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) @@ -39947,7 +40502,7 @@ else gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -39969,9 +40524,10 @@ int main () return 2; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_fopen_mode_x=yes -else +else $as_nop gl_cv_func_fopen_mode_x=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -39981,15 +40537,17 @@ fi rm -f conftest.x fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5 -$as_echo "$gl_cv_func_fopen_mode_x" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5 -$as_echo_n "checking whether fopen supports the mode character 'e'... " >&6; } -if ${gl_cv_func_fopen_mode_e+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5 +printf "%s\n" "$gl_cv_func_fopen_mode_x" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5 +printf %s "checking whether fopen supports the mode character 'e'... " >&6; } +if test ${gl_cv_func_fopen_mode_e+y} +then : + printf %s "(cached) " >&6 +else $as_nop echo foo > conftest.x - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc and musl systems. linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) @@ -40002,7 +40560,7 @@ else gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40029,9 +40587,10 @@ int main () return 2; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_fopen_mode_e=yes -else +else $as_nop gl_cv_func_fopen_mode_e=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40041,8 +40600,8 @@ fi rm -f conftest.x fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5 -$as_echo "$gl_cv_func_fopen_mode_e" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5 +printf "%s\n" "$gl_cv_func_fopen_mode_e" >&6; } REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN" case "$gl_cv_func_fopen_mode_x" in *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;; @@ -40066,9 +40625,7 @@ $as_echo "$gl_cv_func_fopen_mode_e" >&6; } fi -cat >>confdefs.h <<_ACEOF -#define GNULIB_FOPEN_GNU 1 -_ACEOF +printf "%s\n" "#define GNULIB_FOPEN_GNU 1" >>confdefs.h @@ -40086,7 +40643,7 @@ _ACEOF -$as_echo "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h @@ -40095,27 +40652,27 @@ $as_echo "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h - ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include -" -if test "x$ac_cv_have_decl_fpurge" = xyes; then : + ac_fn_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_fpurge" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPURGE $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h if test "x$ac_cv_func_fpurge" = xyes; then HAVE_FPURGE=1 # Detect BSD bug. Only cygwin 1.7 and musl are known to be immune. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpurge works" >&5 -$as_echo_n "checking whether fpurge works... " >&6; } -if ${gl_cv_func_fpurge_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fpurge works" >&5 +printf %s "checking whether fpurge works... " >&6; } +if test ${gl_cv_func_fpurge_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on musl systems. *-musl*) gl_cv_func_fpurge_works="guessing yes" ;; @@ -40123,13 +40680,13 @@ else *) gl_cv_func_fpurge_works="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.txt", "w+"); if (!f) @@ -40165,9 +40722,10 @@ FILE *f = fopen ("conftest.txt", "w+"); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_fpurge_works=yes -else +else $as_nop gl_cv_func_fpurge_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40176,8 +40734,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fpurge_works" >&5 -$as_echo "$gl_cv_func_fpurge_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fpurge_works" >&5 +printf "%s\n" "$gl_cv_func_fpurge_works" >&6; } case "$gl_cv_func_fpurge_works" in *yes) ;; *) REPLACE_FPURGE=1 ;; @@ -40218,7 +40776,7 @@ fi -$as_echo "#define GNULIB_TEST_FPURGE 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FPURGE 1" >>confdefs.h @@ -40229,17 +40787,18 @@ $as_echo "#define GNULIB_TEST_FPURGE 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5 -$as_echo_n "checking whether free is known to preserve errno... " >&6; } -if ${gl_cv_func_free_preserves_errno+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5 +printf %s "checking whether free is known to preserve errno... " >&6; } +if test ${gl_cv_func_free_preserves_errno+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__) #elif defined __OpenBSD__ @@ -40252,21 +40811,22 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_func_free_preserves_errno=yes -else +else $as_nop gl_cv_func_free_preserves_errno=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5 -$as_echo "$gl_cv_func_free_preserves_errno" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5 +printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; } case $gl_cv_func_free_preserves_errno in *yes) -$as_echo "#define HAVE_FREE_POSIX 1" >>confdefs.h +printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h ;; *) REPLACE_FREE=1 ;; @@ -40306,7 +40866,7 @@ fi -$as_echo "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h @@ -40346,7 +40906,7 @@ fi -$as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FSEEK 1" >>confdefs.h @@ -40358,35 +40918,37 @@ $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 -$as_echo_n "checking for fseeko... " >&6; } -if ${gl_cv_func_fseeko+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 +printf %s "checking for fseeko... " >&6; } +if test ${gl_cv_func_fseeko+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { fseeko (stdin, 0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_fseeko=yes -else +else $as_nop gl_cv_func_fseeko=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 -$as_echo "$gl_cv_func_fseeko" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 +printf "%s\n" "$gl_cv_func_fseeko" >&6; } if test $ac_cv_have_decl_fseeko = no; then @@ -40405,20 +40967,22 @@ $as_echo "$gl_cv_func_fseeko" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 -$as_echo_n "checking whether fflush works on input streams... " >&6; } -if ${gl_cv_func_fflush_stdin+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 +printf %s "checking whether fflush works on input streams... " >&6; } +if test ${gl_cv_func_fflush_stdin+y} +then : + printf %s "(cached) " >&6 +else $as_nop echo hello world > conftest.txt - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_fflush_stdin="guessing no" ;; *) gl_cv_func_fflush_stdin=cross ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40433,7 +40997,7 @@ else $gl_mda_defines int -main () +main (void) { FILE *f = fopen ("conftest.txt", "r"); char buffer[10]; @@ -40476,9 +41040,10 @@ FILE *f = fopen ("conftest.txt", "r"); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_fflush_stdin=yes -else +else $as_nop gl_cv_func_fflush_stdin=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40488,17 +41053,15 @@ fi rm conftest.txt fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 -$as_echo "$gl_cv_func_fflush_stdin" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 +printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } case "$gl_cv_func_fflush_stdin" in *yes) gl_func_fflush_stdin=1 ;; *no) gl_func_fflush_stdin=0 ;; *) gl_func_fflush_stdin='(-1)' ;; esac -cat >>confdefs.h <<_ACEOF -#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin -_ACEOF +printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h case "$gl_cv_func_fflush_stdin" in @@ -40525,28 +41088,22 @@ fi if test -z "$GL_COND_OBJ_FSEEKO_TRUE"; then : - for ac_func in _fseeki64 -do : - ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64" -if test "x$ac_cv_func__fseeki64" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE__FSEEKI64 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64" +if test "x$ac_cv_func__fseeki64" = xyes +then : + printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h fi -done if test $ac_cv_func__fseeki64 = yes; then - ac_fn_c_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default" -if test "x$ac_cv_have_decl__fseeki64" = xyes; then : + ac_fn_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl__fseeki64" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__FSEEKI64 $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL__FSEEKI64 $ac_have_decl" >>confdefs.h fi @@ -40567,7 +41124,7 @@ fi -$as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h @@ -40635,29 +41192,24 @@ fi -$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h - for ac_header in sys/mount.h -do : ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default #if HAVE_SYS_PARAM_H #include #endif " -if test "x$ac_cv_header_sys_mount_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_MOUNT_H 1 -_ACEOF +if test "x$ac_cv_header_sys_mount_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h fi -done - @@ -40672,11 +41224,12 @@ done if test $ac_fsusage_space = no; then # glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0, # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5 -$as_echo_n "checking for statvfs function (SVR4)... " >&6; } -if ${fu_cv_sys_stat_statvfs+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5 +printf %s "checking for statvfs function (SVR4)... " >&6; } +if test ${fu_cv_sys_stat_statvfs+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40700,34 +41253,36 @@ int check_f_blocks_size[sizeof fsd.f_blocks * CHAR_BIT <= 32 ? -1 : 1]; #endif int -main () +main (void) { statvfs (0, &fsd); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : fu_cv_sys_stat_statvfs=yes -else +else $as_nop fu_cv_sys_stat_statvfs=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5 -$as_echo "$fu_cv_sys_stat_statvfs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5 +printf "%s\n" "$fu_cv_sys_stat_statvfs" >&6; } if test $fu_cv_sys_stat_statvfs = yes; then ac_fsusage_space=yes # AIX >= 5.2 has statvfs64 that has a wider f_blocks field than statvfs. # glibc, HP-UX, IRIX, Solaris have statvfs64 as well, but on these systems # statvfs with large-file support is already equivalent to statvfs64. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statvfs64" >&5 -$as_echo_n "checking whether to use statvfs64... " >&6; } -if ${fu_cv_sys_stat_statvfs64+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use statvfs64" >&5 +printf %s "checking whether to use statvfs64... " >&6; } +if test ${fu_cv_sys_stat_statvfs64+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -40739,31 +41294,32 @@ else ? 1 : -1]; int -main () +main (void) { statvfs64 (0, &fsd); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : fu_cv_sys_stat_statvfs64=yes -else +else $as_nop fu_cv_sys_stat_statvfs64=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5 -$as_echo "$fu_cv_sys_stat_statvfs64" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5 +printf "%s\n" "$fu_cv_sys_stat_statvfs64" >&6; } if test $fu_cv_sys_stat_statvfs64 = yes; then -$as_echo "#define STAT_STATVFS64 1" >>confdefs.h +printf "%s\n" "#define STAT_STATVFS64 1" >>confdefs.h else -$as_echo "#define STAT_STATVFS 1" >>confdefs.h +printf "%s\n" "#define STAT_STATVFS 1" >>confdefs.h fi fi @@ -40771,14 +41327,16 @@ $as_echo "#define STAT_STATVFS 1" >>confdefs.h # Check for this unconditionally so we have a # good fallback on glibc/Linux > 2.6 < 2.6.36 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_frsize member" >&5 -$as_echo_n "checking for two-argument statfs with statfs.f_frsize member... " >&6; } -if ${fu_cv_sys_stat_statfs2_frsize+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_frsize member" >&5 +printf %s "checking for two-argument statfs with statfs.f_frsize member... " >&6; } +if test ${fu_cv_sys_stat_statfs2_frsize+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : fu_cv_sys_stat_statfs2_frsize=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40799,9 +41357,10 @@ else return statfs (".", &fsd) != 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : fu_cv_sys_stat_statfs2_frsize=yes -else +else $as_nop fu_cv_sys_stat_statfs2_frsize=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40810,25 +41369,27 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_frsize" >&5 -$as_echo "$fu_cv_sys_stat_statfs2_frsize" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_frsize" >&5 +printf "%s\n" "$fu_cv_sys_stat_statfs2_frsize" >&6; } if test $fu_cv_sys_stat_statfs2_frsize = yes; then ac_fsusage_space=yes -$as_echo "#define STAT_STATFS2_FRSIZE 1" >>confdefs.h +printf "%s\n" "#define STAT_STATFS2_FRSIZE 1" >>confdefs.h fi if test $ac_fsusage_space = no; then # DEC Alpha running OSF/1 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5 -$as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; } -if ${fu_cv_sys_stat_statfs3_osf1+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5 +printf %s "checking for 3-argument statfs function (DEC OSF/1)... " >&6; } +if test ${fu_cv_sys_stat_statfs3_osf1+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : fu_cv_sys_stat_statfs3_osf1=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40843,9 +41404,10 @@ else return statfs (".", &fsd, sizeof (struct statfs)) != 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : fu_cv_sys_stat_statfs3_osf1=yes -else +else $as_nop fu_cv_sys_stat_statfs3_osf1=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40854,12 +41416,12 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5 -$as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5 +printf "%s\n" "$fu_cv_sys_stat_statfs3_osf1" >&6; } if test $fu_cv_sys_stat_statfs3_osf1 = yes; then ac_fsusage_space=yes -$as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h +printf "%s\n" "#define STAT_STATFS3_OSF1 1" >>confdefs.h fi fi @@ -40871,14 +41433,16 @@ $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h # (On IRIX you need to include , not only and # .) # (On Solaris, statfs has 4 arguments.) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5 -$as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; } -if ${fu_cv_sys_stat_statfs2_bsize+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5 +printf %s "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; } +if test ${fu_cv_sys_stat_statfs2_bsize+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : fu_cv_sys_stat_statfs2_bsize=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40899,9 +41463,10 @@ else return statfs (".", &fsd) != 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : fu_cv_sys_stat_statfs2_bsize=yes -else +else $as_nop fu_cv_sys_stat_statfs2_bsize=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40910,12 +41475,12 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5 -$as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5 +printf "%s\n" "$fu_cv_sys_stat_statfs2_bsize" >&6; } if test $fu_cv_sys_stat_statfs2_bsize = yes; then ac_fsusage_space=yes -$as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h +printf "%s\n" "#define STAT_STATFS2_BSIZE 1" >>confdefs.h fi fi @@ -40923,14 +41488,16 @@ $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h if test $ac_fsusage_space = no; then # SVR3 # (Solaris already handled above.) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (SVR3)" >&5 -$as_echo_n "checking for four-argument statfs (SVR3)... " >&6; } -if ${fu_cv_sys_stat_statfs4+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (SVR3)" >&5 +printf %s "checking for four-argument statfs (SVR3)... " >&6; } +if test ${fu_cv_sys_stat_statfs4+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : fu_cv_sys_stat_statfs4=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40943,9 +41510,10 @@ else return statfs (".", &fsd, sizeof fsd, 0) != 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : fu_cv_sys_stat_statfs4=yes -else +else $as_nop fu_cv_sys_stat_statfs4=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40954,12 +41522,12 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5 -$as_echo "$fu_cv_sys_stat_statfs4" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5 +printf "%s\n" "$fu_cv_sys_stat_statfs4" >&6; } if test $fu_cv_sys_stat_statfs4 = yes; then ac_fsusage_space=yes -$as_echo "#define STAT_STATFS4 1" >>confdefs.h +printf "%s\n" "#define STAT_STATFS4 1" >>confdefs.h fi fi @@ -40970,14 +41538,16 @@ $as_echo "#define STAT_STATFS4 1" >>confdefs.h # (On AIX, you need to include , not only .) # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in # .) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5 -$as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; } -if ${fu_cv_sys_stat_statfs2_fsize+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5 +printf %s "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; } +if test ${fu_cv_sys_stat_statfs2_fsize+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : fu_cv_sys_stat_statfs2_fsize=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40996,9 +41566,10 @@ else return statfs (".", &fsd) != 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : fu_cv_sys_stat_statfs2_fsize=yes -else +else $as_nop fu_cv_sys_stat_statfs2_fsize=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -41007,19 +41578,20 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5 -$as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5 +printf "%s\n" "$fu_cv_sys_stat_statfs2_fsize" >&6; } if test $fu_cv_sys_stat_statfs2_fsize = yes; then ac_fsusage_space=yes -$as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h +printf "%s\n" "#define STAT_STATFS2_FSIZE 1" >>confdefs.h fi fi - if test $ac_fsusage_space = yes; then : + if test $ac_fsusage_space = yes +then : gl_cv_fs_space=yes -else +else $as_nop gl_cv_fs_space=no fi @@ -41042,25 +41614,26 @@ fi if test -z "$GL_COND_OBJ_FSUSAGE_TRUE"; then : - for ac_header in sys/fs/s5param.h sys/statfs.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sys/fs/s5param.h" "ac_cv_header_sys_fs_s5param_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_fs_s5param_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_FS_S5PARAM_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_statfs_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5 -$as_echo_n "checking for statfs that truncates block counts... " >&6; } -if ${fu_cv_sys_truncating_statfs+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5 +printf %s "checking for statfs that truncates block counts... " >&6; } +if test ${fu_cv_sys_truncating_statfs+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41071,7 +41644,7 @@ choke -- this is a workaround for a Sun-specific problem #include int -main () +main (void) { struct statfs t; long c = *(t.f_spare); if (c) return 0; @@ -41080,19 +41653,20 @@ struct statfs t; long c = *(t.f_spare); return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : fu_cv_sys_truncating_statfs=yes -else +else $as_nop fu_cv_sys_truncating_statfs=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5 -$as_echo "$fu_cv_sys_truncating_statfs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5 +printf "%s\n" "$fu_cv_sys_truncating_statfs" >&6; } if test $fu_cv_sys_truncating_statfs = yes; then -$as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h +printf "%s\n" "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h fi @@ -41135,7 +41709,7 @@ fi -$as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FTELL 1" >>confdefs.h @@ -41152,34 +41726,36 @@ $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h HAVE_DECL_FTELLO=0 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5 -$as_echo_n "checking for ftello... " >&6; } -if ${gl_cv_func_ftello+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5 +printf %s "checking for ftello... " >&6; } +if test ${gl_cv_func_ftello+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { ftello (stdin); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_ftello=yes -else +else $as_nop gl_cv_func_ftello=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5 -$as_echo "$gl_cv_func_ftello" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5 +printf "%s\n" "$gl_cv_func_ftello" >&6; } if test $gl_cv_func_ftello = no; then HAVE_FTELLO=0 else @@ -41191,11 +41767,12 @@ $as_echo "$gl_cv_func_ftello" >&6; } fi if test $REPLACE_FTELLO = 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5 -$as_echo_n "checking whether ftello works... " >&6; } -if ${gl_cv_func_ftello_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5 +printf %s "checking whether ftello works... " >&6; } +if test ${gl_cv_func_ftello_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on Solaris. @@ -41205,9 +41782,10 @@ else # Guess yes otherwise. *) gl_cv_func_ftello_works="guessing yes" ;; esac - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41269,9 +41847,10 @@ main (void) return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_ftello_works=yes -else +else $as_nop gl_cv_func_ftello_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -41280,14 +41859,14 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5 -$as_echo "$gl_cv_func_ftello_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5 +printf "%s\n" "$gl_cv_func_ftello_works" >&6; } case "$gl_cv_func_ftello_works" in *yes) ;; *) REPLACE_FTELLO=1 -$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h +printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h ;; esac @@ -41297,7 +41876,7 @@ $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs if test $gl_ftello_broken_after_ungetc = yes; then REPLACE_FTELLO=1 -$as_echo "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h +printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h fi fi @@ -41320,16 +41899,12 @@ fi if test -z "$GL_COND_OBJ_FTELLO_TRUE"; then : - for ac_func in _ftelli64 -do : - ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64" -if test "x$ac_cv_func__ftelli64" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE__FTELLI64 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64" +if test "x$ac_cv_func__ftelli64" = xyes +then : + printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h fi -done @@ -41349,7 +41924,7 @@ fi -$as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FTELLO 1" >>confdefs.h @@ -41357,11 +41932,12 @@ $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h GETADDRINFO_LIB= gai_saved_LIBS="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 -$as_echo_n "checking for library containing getaddrinfo... " >&6; } -if ${ac_cv_search_getaddrinfo+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 +printf %s "checking for library containing getaddrinfo... " >&6; } +if test ${ac_cv_search_getaddrinfo+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41369,46 +41945,48 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char getaddrinfo (); int -main () +main (void) { return getaddrinfo (); ; return 0; } _ACEOF -for ac_lib in '' socket network net; do +for ac_lib in '' socket network net +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_getaddrinfo=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_getaddrinfo+:} false; then : + if test ${ac_cv_search_getaddrinfo+y} +then : break fi done -if ${ac_cv_search_getaddrinfo+:} false; then : +if test ${ac_cv_search_getaddrinfo+y} +then : -else +else $as_nop ac_cv_search_getaddrinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 -$as_echo "$ac_cv_search_getaddrinfo" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 +printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; } ac_res=$ac_cv_search_getaddrinfo -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_getaddrinfo" != "none required"; then GETADDRINFO_LIB="$ac_cv_search_getaddrinfo" @@ -41418,11 +41996,12 @@ fi LIBS="$gai_saved_LIBS $GETADDRINFO_LIB" HAVE_GETADDRINFO=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 -$as_echo_n "checking for getaddrinfo... " >&6; } -if ${gl_cv_func_getaddrinfo+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 +printf %s "checking for getaddrinfo... " >&6; } +if test ${gl_cv_func_getaddrinfo+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41437,29 +42016,31 @@ else #include int -main () +main (void) { getaddrinfo("", "", NULL, NULL); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_getaddrinfo=yes -else +else $as_nop gl_cv_func_getaddrinfo=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5 -$as_echo "$gl_cv_func_getaddrinfo" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5 +printf "%s\n" "$gl_cv_func_getaddrinfo" >&6; } if test $gl_cv_func_getaddrinfo = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5 -$as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; } -if ${gl_cv_w32_getaddrinfo+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5 +printf %s "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; } +if test ${gl_cv_w32_getaddrinfo+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_w32_getaddrinfo=no am_save_LIBS="$LIBS" @@ -41473,31 +42054,33 @@ else #include int -main () +main (void) { getaddrinfo(NULL, NULL, NULL, NULL); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_w32_getaddrinfo=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5 -$as_echo "$gl_cv_w32_getaddrinfo" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5 +printf "%s\n" "$gl_cv_w32_getaddrinfo" >&6; } if test "$gl_cv_w32_getaddrinfo" = "yes"; then GETADDRINFO_LIB="-lws2_32" LIBS="$gai_saved_LIBS $GETADDRINFO_LIB" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo with POSIX signature" >&5 -$as_echo_n "checking for getaddrinfo with POSIX signature... " >&6; } -if ${gl_cv_func_getaddrinfo_posix_signature+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo with POSIX signature" >&5 +printf %s "checking for getaddrinfo with POSIX signature... " >&6; } +if test ${gl_cv_func_getaddrinfo_posix_signature+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41519,16 +42102,17 @@ extern int getaddrinfo (const char *, const char *, const struct addrinfo *, struct addrinfo **); _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_func_getaddrinfo_posix_signature=yes -else +else $as_nop gl_cv_func_getaddrinfo_posix_signature=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo_posix_signature" >&5 -$as_echo "$gl_cv_func_getaddrinfo_posix_signature" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo_posix_signature" >&5 +printf "%s\n" "$gl_cv_func_getaddrinfo_posix_signature" >&6; } if test $gl_cv_func_getaddrinfo_posix_signature = no; then REPLACE_GETADDRINFO=1 fi @@ -41537,15 +42121,13 @@ $as_echo "$gl_cv_func_getaddrinfo_posix_signature" >&6; } fi fi -cat >>confdefs.h <<_ACEOF -#define HAVE_GETADDRINFO $HAVE_GETADDRINFO -_ACEOF +printf "%s\n" "#define HAVE_GETADDRINFO $HAVE_GETADDRINFO" >>confdefs.h # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an # inline function declared in ws2tcpip.h, so we need to get that # header included somehow. - ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" " + ac_fn_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" " #include #ifdef HAVE_SYS_SOCKET_H #include @@ -41558,19 +42140,17 @@ _ACEOF #endif #include -" -if test "x$ac_cv_have_decl_gai_strerror" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_gai_strerror" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GAI_STRERROR $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_GAI_STRERROR $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_gai_strerror = yes; then - ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" " + ac_fn_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" " #include #ifdef HAVE_SYS_SOCKET_H #include @@ -41583,22 +42163,21 @@ _ACEOF #endif #include -" -if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_gai_strerrorA" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_GAI_STRERRORA $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GAI_STRERRORA $ac_have_decl -_ACEOF - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5 -$as_echo_n "checking for gai_strerror with POSIX signature... " >&6; } -if ${gl_cv_func_gai_strerror_posix_signature+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5 +printf %s "checking for gai_strerror with POSIX signature... " >&6; } +if test ${gl_cv_func_gai_strerror_posix_signature+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41620,15 +42199,16 @@ extern #endif const char *gai_strerror(int); _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_func_gai_strerror_posix_signature=yes -else +else $as_nop gl_cv_func_gai_strerror_posix_signature=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5 -$as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5 +printf "%s\n" "$gl_cv_func_gai_strerror_posix_signature" >&6; } if test $gl_cv_func_gai_strerror_posix_signature = no; then REPLACE_GAI_STRERROR=1 fi @@ -41648,11 +42228,10 @@ $as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; } #include " -if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : +if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h fi @@ -41660,7 +42239,7 @@ fi - ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" " + ac_fn_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" " /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ @@ -41675,17 +42254,15 @@ fi #include #endif -" -if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getaddrinfo" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETADDRINFO $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" " +printf "%s\n" "#define HAVE_DECL_GETADDRINFO $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" " /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ @@ -41700,17 +42277,15 @@ ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" " #include #endif -" -if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_freeaddrinfo" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FREEADDRINFO $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" " +printf "%s\n" "#define HAVE_DECL_FREEADDRINFO $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" " /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ @@ -41725,16 +42300,14 @@ ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" " #include #endif -" -if test "x$ac_cv_have_decl_getnameinfo" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getnameinfo" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETNAMEINFO $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_GETNAMEINFO $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_getaddrinfo = no; then HAVE_DECL_GETADDRINFO=0 @@ -41762,11 +42335,10 @@ _ACEOF #endif " -if test "x$ac_cv_type_struct_addrinfo" = xyes; then : +if test "x$ac_cv_type_struct_addrinfo" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_ADDRINFO 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h fi @@ -41836,7 +42408,7 @@ fi -$as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h @@ -41851,17 +42423,19 @@ $as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h if test $ac_cv_func_getdelim = yes; then HAVE_GETDELIM=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 -$as_echo_n "checking for working getdelim function... " >&6; } -if ${gl_cv_func_working_getdelim+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 +printf %s "checking for working getdelim function... " >&6; } +if test ${gl_cv_func_working_getdelim+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in darwin*) gl_cv_func_working_getdelim=no ;; *) echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41874,19 +42448,20 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + $EGREP "Lucky GNU user" >/dev/null 2>&1 +then : gl_cv_func_working_getdelim="guessing yes" -else +else $as_nop case "$host_os" in *-musl*) gl_cv_func_working_getdelim="guessing yes" ;; *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;; esac fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41922,9 +42497,10 @@ else } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_working_getdelim=yes -else +else $as_nop gl_cv_func_working_getdelim=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -41935,8 +42511,8 @@ fi esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 -$as_echo "$gl_cv_func_working_getdelim" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 +printf "%s\n" "$gl_cv_func_working_getdelim" >&6; } case "$gl_cv_func_working_getdelim" in *yes) ;; *) REPLACE_GETDELIM=1 ;; @@ -41966,28 +42542,27 @@ fi if test -z "$GL_COND_OBJ_GETDELIM_TRUE"; then : - for ac_func in flockfile funlockfile -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" +if test "x$ac_cv_func_flockfile" = xyes +then : + printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile" +if test "x$ac_cv_func_funlockfile" = xyes +then : + printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h - ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" -if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : +fi + + ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getc_unlocked" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h @@ -42007,7 +42582,7 @@ fi -$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h @@ -42018,22 +42593,24 @@ $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h if test $ac_cv_func_getdtablesize = yes && test $ac_cv_have_decl_getdtablesize = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 -$as_echo_n "checking whether getdtablesize works... " >&6; } -if ${gl_cv_func_getdtablesize_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 +printf %s "checking whether getdtablesize works... " >&6; } +if test ${gl_cv_func_getdtablesize_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; *) - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows gl_cv_func_getdtablesize_works="guessing no" ;; *) gl_cv_func_getdtablesize_works="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -42044,7 +42621,7 @@ $gl_mda_defines int -main () +main (void) { int size = getdtablesize(); if (dup2 (0, getdtablesize()) != -1) @@ -42056,9 +42633,10 @@ int size = getdtablesize(); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_getdtablesize_works=yes -else +else $as_nop gl_cv_func_getdtablesize_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -42069,8 +42647,8 @@ fi esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 -$as_echo "$gl_cv_func_getdtablesize_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 +printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; } case "$gl_cv_func_getdtablesize_works" in *yes | "no (limitation)") ;; *) REPLACE_GETDTABLESIZE=1 ;; @@ -42113,7 +42691,7 @@ fi -$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h @@ -42124,18 +42702,13 @@ $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h if test $ac_cv_header_sys_socket_h != yes; then - for ac_header in winsock2.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" -if test "x$ac_cv_header_winsock2_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINSOCK2_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes +then : + printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi -done - fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 @@ -42148,21 +42721,22 @@ done GETHOSTNAME_LIB= + for ac_func in gethostname do : ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" -if test "x$ac_cv_func_gethostname" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETHOSTNAME 1 -_ACEOF +if test "x$ac_cv_func_gethostname" = xyes +then : + printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h -else +else $as_nop - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in winsock2.h and -lws2_32" >&5 -$as_echo_n "checking for gethostname in winsock2.h and -lws2_32... " >&6; } -if ${gl_cv_w32_gethostname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in winsock2.h and -lws2_32" >&5 +printf %s "checking for gethostname in winsock2.h and -lws2_32... " >&6; } +if test ${gl_cv_w32_gethostname+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_w32_gethostname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" @@ -42175,30 +42749,31 @@ else #include int -main () +main (void) { gethostname(NULL, 0); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_w32_gethostname=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostname" >&5 -$as_echo "$gl_cv_w32_gethostname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostname" >&5 +printf "%s\n" "$gl_cv_w32_gethostname" >&6; } if test "$gl_cv_w32_gethostname" = "yes"; then GETHOSTNAME_LIB="-lws2_32" fi fi -done +done if test "$ac_cv_func_gethostname" = no; then @@ -42209,11 +42784,12 @@ done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HOST_NAME_MAX" >&5 -$as_echo_n "checking for HOST_NAME_MAX... " >&6; } -if ${gl_cv_decl_HOST_NAME_MAX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HOST_NAME_MAX" >&5 +printf %s "checking for HOST_NAME_MAX... " >&6; } +if test ${gl_cv_decl_HOST_NAME_MAX+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_decl_HOST_NAME_MAX= cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42226,10 +42802,11 @@ lucky _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "lucky" >/dev/null 2>&1; then : + $EGREP "lucky" >/dev/null 2>&1 +then : gl_cv_decl_HOST_NAME_MAX=yes fi -rm -f conftest* +rm -rf conftest* if test -z "$gl_cv_decl_HOST_NAME_MAX"; then if test "$gl_cv_w32_gethostname" = yes; then @@ -42246,9 +42823,10 @@ rm -f conftest* #if HAVE_NETDB_H # include #endif -"; then : +" +then : -else +else $as_nop gl_cv_decl_HOST_NAME_MAX=256 fi @@ -42257,13 +42835,11 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_HOST_NAME_MAX" >&5 -$as_echo "$gl_cv_decl_HOST_NAME_MAX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_HOST_NAME_MAX" >&5 +printf "%s\n" "$gl_cv_decl_HOST_NAME_MAX" >&6; } if test "$gl_cv_decl_HOST_NAME_MAX" != yes; then -cat >>confdefs.h <<_ACEOF -#define HOST_NAME_MAX $gl_cv_decl_HOST_NAME_MAX -_ACEOF +printf "%s\n" "#define HOST_NAME_MAX $gl_cv_decl_HOST_NAME_MAX" >>confdefs.h fi @@ -42286,16 +42862,12 @@ fi if test "$gl_cv_w32_gethostname" != "yes"; then - for ac_func in uname -do : - ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" -if test "x$ac_cv_func_uname" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_UNAME 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" +if test "x$ac_cv_func_uname" = xyes +then : + printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h fi -done fi @@ -42316,7 +42888,7 @@ fi -$as_echo "#define GNULIB_TEST_GETHOSTNAME 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETHOSTNAME 1" >>confdefs.h @@ -42329,20 +42901,23 @@ $as_echo "#define GNULIB_TEST_GETHOSTNAME 1" >>confdefs.h gl_getline_needs_run_time_check=no ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" -if test "x$ac_cv_func_getline" = xyes; then : +if test "x$ac_cv_func_getline" = xyes +then : gl_getline_needs_run_time_check=yes -else +else $as_nop am_cv_func_working_getline=no fi if test $gl_getline_needs_run_time_check = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 -$as_echo_n "checking for working getline function... " >&6; } -if ${am_cv_func_working_getline+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 +printf %s "checking for working getline function... " >&6; } +if test ${am_cv_func_working_getline+y} +then : + printf %s "(cached) " >&6 +else $as_nop echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -42355,19 +42930,20 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + $EGREP "Lucky GNU user" >/dev/null 2>&1 +then : am_cv_func_working_getline="guessing yes" -else +else $as_nop case "$host_os" in *-musl*) am_cv_func_working_getline="guessing yes" ;; *) am_cv_func_working_getline="$gl_cross_guess_normal" ;; esac fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -42403,9 +42979,10 @@ else } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : am_cv_func_working_getline=yes -else +else $as_nop am_cv_func_working_getline=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -42414,8 +42991,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 -$as_echo "$am_cv_func_working_getline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 +printf "%s\n" "$am_cv_func_working_getline" >&6; } fi if test $ac_cv_have_decl_getline = no; then @@ -42465,7 +43042,7 @@ fi -$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETLINE 1" >>confdefs.h @@ -42481,9 +43058,10 @@ gl_save_LIBS=$LIBS # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7. HAVE_GETLOADAVG=1 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" -if test "x$ac_cv_func_getloadavg" = xyes; then : +if test "x$ac_cv_func_getloadavg" = xyes +then : -else +else $as_nop gl_func_getloadavg_done=no # Some systems with -lutil have (and need) -lkvm as well, some do not. @@ -42492,11 +43070,12 @@ else # For kstat on solaris, we need to test for libelf and libkvm to force the # definition of SVR4 below. if test $gl_func_getloadavg_done = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 -$as_echo_n "checking for elf_begin in -lelf... " >&6; } -if ${ac_cv_lib_elf_elf_begin+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 +printf %s "checking for elf_begin in -lelf... " >&6; } +if test ${ac_cv_lib_elf_elf_begin+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lelf $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42505,38 +43084,38 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char elf_begin (); int -main () +main (void) { return elf_begin (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_elf_elf_begin=yes -else +else $as_nop ac_cv_lib_elf_elf_begin=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 -$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } -if test "x$ac_cv_lib_elf_elf_begin" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 +printf "%s\n" "$ac_cv_lib_elf_elf_begin" >&6; } +if test "x$ac_cv_lib_elf_elf_begin" = xyes +then : LIBS="-lelf $LIBS" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 -$as_echo_n "checking for kvm_open in -lkvm... " >&6; } -if ${ac_cv_lib_kvm_kvm_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 +printf %s "checking for kvm_open in -lkvm... " >&6; } +if test ${ac_cv_lib_kvm_kvm_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lkvm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42545,39 +43124,39 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char kvm_open (); int -main () +main (void) { return kvm_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_kvm_kvm_open=yes -else +else $as_nop ac_cv_lib_kvm_kvm_open=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 -$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } -if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 +printf "%s\n" "$ac_cv_lib_kvm_kvm_open" >&6; } +if test "x$ac_cv_lib_kvm_kvm_open" = xyes +then : LIBS="-lkvm $LIBS" fi # Check for the 4.4BSD definition of getloadavg. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 -$as_echo_n "checking for getloadavg in -lutil... " >&6; } -if ${ac_cv_lib_util_getloadavg+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 +printf %s "checking for getloadavg in -lutil... " >&6; } +if test ${ac_cv_lib_util_getloadavg+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lutil $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42586,30 +43165,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char getloadavg (); int -main () +main (void) { return getloadavg (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_util_getloadavg=yes -else +else $as_nop ac_cv_lib_util_getloadavg=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 -$as_echo "$ac_cv_lib_util_getloadavg" >&6; } -if test "x$ac_cv_lib_util_getloadavg" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 +printf "%s\n" "$ac_cv_lib_util_getloadavg" >&6; } +if test "x$ac_cv_lib_util_getloadavg" = xyes +then : LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes fi @@ -42622,11 +43200,12 @@ fi if test $cross_compiling != yes; then LIBS="-L/usr/local/lib $LIBS" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 -$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } -if ${ac_cv_lib_getloadavg_getloadavg+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 +printf %s "checking for getloadavg in -lgetloadavg... " >&6; } +if test ${ac_cv_lib_getloadavg_getloadavg+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lgetloadavg $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42635,32 +43214,31 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char getloadavg (); int -main () +main (void) { return getloadavg (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_getloadavg_getloadavg=yes -else +else $as_nop ac_cv_lib_getloadavg_getloadavg=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 -$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } -if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 +printf "%s\n" "$ac_cv_lib_getloadavg_getloadavg" >&6; } +if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes +then : LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes -else +else $as_nop LIBS=$gl_getloadavg_LIBS fi @@ -42671,11 +43249,12 @@ fi HAVE_GETLOADAVG=0 # Solaris has libkstat which does not require root. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 -$as_echo_n "checking for kstat_open in -lkstat... " >&6; } -if ${ac_cv_lib_kstat_kstat_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 +printf %s "checking for kstat_open in -lkstat... " >&6; } +if test ${ac_cv_lib_kstat_kstat_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lkstat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42684,33 +43263,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char kstat_open (); int -main () +main (void) { return kstat_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_kstat_kstat_open=yes -else +else $as_nop ac_cv_lib_kstat_kstat_open=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 -$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } -if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBKSTAT 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 +printf "%s\n" "$ac_cv_lib_kstat_kstat_open" >&6; } +if test "x$ac_cv_lib_kstat_kstat_open" = xyes +then : + printf "%s\n" "#define HAVE_LIBKSTAT 1" >>confdefs.h LIBS="-lkstat $LIBS" @@ -42720,11 +43296,12 @@ fi # AIX has libperfstat which does not require root if test $gl_func_getloadavg_done = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5 -$as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; } -if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5 +printf %s "checking for perfstat_cpu_total in -lperfstat... " >&6; } +if test ${ac_cv_lib_perfstat_perfstat_cpu_total+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lperfstat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42733,33 +43310,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char perfstat_cpu_total (); int -main () +main (void) { return perfstat_cpu_total (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_perfstat_perfstat_cpu_total=yes -else +else $as_nop ac_cv_lib_perfstat_perfstat_cpu_total=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5 -$as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; } -if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPERFSTAT 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5 +printf "%s\n" "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; } +if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes +then : + printf "%s\n" "#define HAVE_LIBPERFSTAT 1" >>confdefs.h LIBS="-lperfstat $LIBS" @@ -42769,17 +43343,19 @@ fi fi if test $gl_func_getloadavg_done = no; then - ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes +then : gl_func_getloadavg_done=yes -$as_echo "#define DGUX 1" >>confdefs.h +printf "%s\n" "#define DGUX 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 -$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } -if ${ac_cv_lib_dgc_dg_sys_info+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 +printf %s "checking for dg_sys_info in -ldgc... " >&6; } +if test ${ac_cv_lib_dgc_dg_sys_info+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldgc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42788,33 +43364,30 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dg_sys_info (); int -main () +main (void) { return dg_sys_info (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dgc_dg_sys_info=yes -else +else $as_nop ac_cv_lib_dgc_dg_sys_info=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 -$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } -if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDGC 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 +printf "%s\n" "$ac_cv_lib_dgc_dg_sys_info" >&6; } +if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes +then : + printf "%s\n" "#define HAVE_LIBDGC 1" >>confdefs.h LIBS="-ldgc $LIBS" @@ -42822,7 +43395,6 @@ fi fi - fi fi fi @@ -42838,39 +43410,34 @@ LIBS=$gl_save_LIBS # Test whether the system declares getloadavg. Solaris has the function # but declares it in , not . -for ac_header in sys/loadavg.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_loadavg_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_LOADAVG_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_loadavg_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h fi -done - if test $ac_cv_header_sys_loadavg_h = yes; then HAVE_SYS_LOADAVG_H=1 else HAVE_SYS_LOADAVG_H=0 fi -ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H +ac_fn_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H /* OpenIndiana has a bug: must be included before . */ # include # include #endif #include -" -if test "x$ac_cv_have_decl_getloadavg" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_getloadavg" = xyes +then : -else +else $as_nop HAVE_DECL_GETLOADAVG=0 fi - if test $HAVE_GETLOADAVG = 0; then GL_COND_OBJ_GETLOADAVG_TRUE= GL_COND_OBJ_GETLOADAVG_FALSE='#' @@ -42893,17 +43460,17 @@ fi # On HPUX9, an unprivileged user can get load averages this way. if test $gl_func_getloadavg_done = no; then + for ac_func in pstat_getdynamic do : ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" -if test "x$ac_cv_func_pstat_getdynamic" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PSTAT_GETDYNAMIC 1 -_ACEOF +if test "x$ac_cv_func_pstat_getdynamic" = xyes +then : + printf "%s\n" "#define HAVE_PSTAT_GETDYNAMIC 1" >>confdefs.h gl_func_getloadavg_done=yes fi -done +done fi # We cannot check for , because Solaris 2 does not use dwarf (it @@ -42913,64 +43480,57 @@ if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \ && test "$ac_cv_lib_kvm_kvm_open" = yes; then gl_func_getloadavg_done=yes -$as_echo "#define SVR4 1" >>confdefs.h +printf "%s\n" "#define SVR4 1" >>confdefs.h fi if test $gl_func_getloadavg_done = no; then - ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" -if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" +if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes +then : gl_func_getloadavg_done=yes -$as_echo "#define UMAX 1" >>confdefs.h +printf "%s\n" "#define UMAX 1" >>confdefs.h -$as_echo "#define UMAX4_3 1" >>confdefs.h +printf "%s\n" "#define UMAX4_3 1" >>confdefs.h fi - fi if test $gl_func_getloadavg_done = no; then - ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_cpustats_h" = xyes; then : - gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h + ac_fn_c_check_header_compile "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_cpustats_h" = xyes +then : + gl_func_getloadavg_done=yes; printf "%s\n" "#define UMAX 1" >>confdefs.h fi - fi if test $gl_func_getloadavg_done = no; then - for ac_header in mach/mach.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" -if test "x$ac_cv_header_mach_mach_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MACH_MACH_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" +if test "x$ac_cv_header_mach_mach_h" = xyes +then : + printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h fi -done - fi -for ac_header in nlist.h + for ac_header in nlist.h do : - ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" -if test "x$ac_cv_header_nlist_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_NLIST_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" +if test "x$ac_cv_header_nlist_h" = xyes +then : + printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include " -if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then : +if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1" >>confdefs.h fi @@ -42979,7 +43539,7 @@ fi /* end confdefs.h. */ #include int -main () +main (void) { struct nlist x; #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME @@ -42991,19 +43551,19 @@ struct nlist x; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : -$as_echo "#define N_NAME_POINTER 1" >>confdefs.h +printf "%s\n" "#define N_NAME_POINTER 1" >>confdefs.h fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi done - fi @@ -43020,7 +43580,7 @@ fi -$as_echo "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h @@ -43051,7 +43611,7 @@ $as_echo "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h -$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h +printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h GL_GENERATE_GETOPT_H=true GL_GENERATE_GETOPT_CDEFS_H=true @@ -43165,7 +43725,7 @@ fi -$as_echo "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h @@ -43173,48 +43733,45 @@ $as_echo "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h ac_found=0 - ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include -" -if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : + ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_program_invocation_name" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl -_ACEOF -if test $ac_have_decl = 1; then : +printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h +if test $ac_have_decl = 1 +then : ac_found=1 fi - ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include -" -if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : + ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl -_ACEOF -if test $ac_have_decl = 1; then : +printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h +if test $ac_have_decl = 1 +then : ac_found=1 fi - ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include -" -if test "x$ac_cv_have_decl___argv" = xyes; then : + ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl___argv" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL___ARGV $ac_have_decl -_ACEOF -if test $ac_have_decl = 1; then : +printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h +if test $ac_have_decl = 1 +then : ac_found=1 fi @@ -43223,18 +43780,19 @@ fi if test $ac_found = 0; then # On OpenBSD 5.1, using the global __progname variable appears to be # the only way to implement getprogname. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 -$as_echo_n "checking whether __progname is defined in default libraries... " >&6; } -if ${gl_cv_var___progname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 +printf %s "checking whether __progname is defined in default libraries... " >&6; } +if test ${gl_cv_var___progname+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_var___progname= cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern char *__progname; int -main () +main (void) { return *__progname; @@ -43242,20 +43800,21 @@ return *__progname; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_var___progname=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 -$as_echo "$gl_cv_var___progname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 +printf "%s\n" "$gl_cv_var___progname" >&6; } if test "$gl_cv_var___progname" = yes; then -$as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h fi fi @@ -43269,11 +43828,12 @@ $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h HOSTENT_LIB= gl_saved_libs="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 -$as_echo_n "checking for library containing gethostbyname... " >&6; } -if ${ac_cv_search_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +printf %s "checking for library containing gethostbyname... " >&6; } +if test ${ac_cv_search_gethostbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -43281,46 +43841,48 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char gethostbyname (); int -main () +main (void) { return gethostbyname (); ; return 0; } _ACEOF -for ac_lib in '' nsl network net; do +for ac_lib in '' nsl network net +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_gethostbyname=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_gethostbyname+:} false; then : + if test ${ac_cv_search_gethostbyname+y} +then : break fi done -if ${ac_cv_search_gethostbyname+:} false; then : +if test ${ac_cv_search_gethostbyname+y} +then : -else +else $as_nop ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 -$as_echo "$ac_cv_search_gethostbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_gethostbyname" != "none required"; then HOSTENT_LIB="$ac_cv_search_gethostbyname" @@ -43329,21 +43891,22 @@ fi LIBS="$gl_saved_libs" if test -z "$HOSTENT_LIB"; then - for ac_func in gethostbyname + + for ac_func in gethostbyname do : ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" -if test "x$ac_cv_func_gethostbyname" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETHOSTBYNAME 1 -_ACEOF +if test "x$ac_cv_func_gethostbyname" = xyes +then : + printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h -else +else $as_nop - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5 -$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; } -if ${gl_cv_w32_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5 +printf %s "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; } +if test ${gl_cv_w32_gethostbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_w32_gethostbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" @@ -43356,30 +43919,31 @@ else #include int -main () +main (void) { gethostbyname(NULL); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_w32_gethostbyname=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5 -$as_echo "$gl_cv_w32_gethostbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5 +printf "%s\n" "$gl_cv_w32_gethostbyname" >&6; } if test "$gl_cv_w32_gethostbyname" = "yes"; then HOSTENT_LIB="-lws2_32" fi fi -done +done fi @@ -43403,18 +43967,13 @@ done if test $ac_cv_header_sys_socket_h != yes; then - for ac_header in winsock2.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" -if test "x$ac_cv_header_winsock2_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINSOCK2_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes +then : + printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi -done - fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 @@ -43427,17 +43986,15 @@ done if test $HAVE_WINSOCK2_H = 1; then REPLACE_INET_NTOP=1 - ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include -" -if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : + ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_inet_ntop" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_INET_NTOP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_inet_ntop = yes; then INET_NTOP_LIB="-lws2_32" @@ -43446,11 +44003,12 @@ _ACEOF fi else gl_save_LIBS=$LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 -$as_echo_n "checking for library containing inet_ntop... " >&6; } -if ${ac_cv_search_inet_ntop+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 +printf %s "checking for library containing inet_ntop... " >&6; } +if test ${ac_cv_search_inet_ntop+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -43458,59 +44016,57 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char inet_ntop (); int -main () +main (void) { return inet_ntop (); ; return 0; } _ACEOF -for ac_lib in '' nsl resolv network; do +for ac_lib in '' nsl resolv network +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_inet_ntop=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_inet_ntop+:} false; then : + if test ${ac_cv_search_inet_ntop+y} +then : break fi done -if ${ac_cv_search_inet_ntop+:} false; then : +if test ${ac_cv_search_inet_ntop+y} +then : -else +else $as_nop ac_cv_search_inet_ntop=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 -$as_echo "$ac_cv_search_inet_ntop" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 +printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } ac_res=$ac_cv_search_inet_ntop -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" -else - for ac_func in inet_ntop -do : +else $as_nop ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" -if test "x$ac_cv_func_inet_ntop" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_INET_NTOP 1 -_ACEOF +if test "x$ac_cv_func_inet_ntop" = xyes +then : + printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h fi -done if test $ac_cv_func_inet_ntop = no; then HAVE_INET_NTOP=0 @@ -43526,21 +44082,19 @@ fi fi - ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include + ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include #if HAVE_NETDB_H # include #endif -" -if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_inet_ntop" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_INET_NTOP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_inet_ntop = no; then HAVE_DECL_INET_NTOP=0 @@ -43599,35 +44153,37 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5 -$as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; } -if ${gl_cv_c___inline+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5 +printf %s "checking whether the compiler supports the __inline keyword... " >&6; } +if test ${gl_cv_c___inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ typedef int foo_t; static __inline foo_t foo (void) { return 0; } int -main () +main (void) { return foo (); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_c___inline=yes -else +else $as_nop gl_cv_c___inline=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5 -$as_echo "$gl_cv_c___inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5 +printf "%s\n" "$gl_cv_c___inline" >&6; } if test $gl_cv_c___inline = yes; then -$as_echo "#define HAVE___INLINE 1" >>confdefs.h +printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h fi @@ -43704,11 +44260,10 @@ fi ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include " -if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : +if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h fi @@ -43731,7 +44286,7 @@ fi -$as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h @@ -43743,24 +44298,27 @@ $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h has_rwlock=false ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include " -if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : +if test "x$ac_cv_type_pthread_rwlock_t" = xyes +then : has_rwlock=true -$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h fi if $has_rwlock; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5 -$as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; } -if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5 +printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; } +if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_LIBS="$LIBS" LIBS="$LIBS $LIBMULTITHREAD" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on glibc systems. *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; @@ -43780,7 +44338,7 @@ else *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -43896,9 +44454,10 @@ main () } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_pthread_rwlock_rdlock_prefer_writer=yes -else +else $as_nop gl_cv_pthread_rwlock_rdlock_prefer_writer=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -43908,12 +44467,12 @@ fi LIBS="$save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5 -$as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5 +printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; } case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in *yes) -$as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h ;; esac @@ -43925,7 +44484,7 @@ $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h #include int -main () +main (void) { #if __FreeBSD__ == 4 @@ -43942,20 +44501,19 @@ return !x; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi : -cat >>confdefs.h <<_ACEOF -#define GNULIB_LOCK 1 -_ACEOF +printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h @@ -43964,11 +44522,12 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5 -$as_echo_n "checking whether lseek detects pipes... " >&6; } -if ${gl_cv_func_lseek_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5 +printf %s "checking whether lseek detects pipes... " >&6; } +if test ${gl_cv_func_lseek_pipe+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in mingw*) gl_cv_func_lseek_pipe=no @@ -43990,7 +44549,7 @@ else $gl_mda_defines int -main () +main (void) { /* Exit with success only if stdin is seekable. */ @@ -44000,7 +44559,8 @@ main () return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : if test -s conftest$ac_exeext \ && ./conftest$ac_exeext < conftest.$ac_ext \ && test 1 = "`echo hi \ @@ -44010,10 +44570,10 @@ if ac_fn_c_try_link "$LINENO"; then : gl_cv_func_lseek_pipe=no fi -else +else $as_nop gl_cv_func_lseek_pipe=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44024,23 +44584,24 @@ rm -f core conftest.err conftest.$ac_objext \ Choke me. #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_func_lseek_pipe=yes -else +else $as_nop gl_cv_func_lseek_pipe=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi ;; esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5 -$as_echo "$gl_cv_func_lseek_pipe" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5 +printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; } if test "$gl_cv_func_lseek_pipe" = no; then REPLACE_LSEEK=1 -$as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h +printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h fi @@ -44083,7 +44644,7 @@ fi -$as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h @@ -44093,12 +44654,14 @@ $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX" if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 -$as_echo_n "checking whether malloc (0) returns nonnull... " >&6; } -if ${ac_cv_func_malloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 +printf %s "checking whether malloc (0) returns nonnull... " >&6; } +if test ${ac_cv_func_malloc_0_nonnull+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on platforms where we know the result. *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ @@ -44109,13 +44672,13 @@ else *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { void *p = malloc (0); int result = !p; @@ -44126,9 +44689,10 @@ void *p = malloc (0); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_malloc_0_nonnull=yes -else +else $as_nop ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44137,8 +44701,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } case $ac_cv_func_malloc_0_nonnull in #( *yes) : ;; #( @@ -44175,7 +44739,7 @@ esac -$as_echo "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h @@ -44207,7 +44771,7 @@ $as_echo "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h @@ -44243,11 +44807,12 @@ $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 -$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } -if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } +if test ${gl_cv_func_mbrtowc_incomplete_state+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on AIX and OSF/1. @@ -44256,9 +44821,10 @@ else *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; esac if test $LOCALE_JA != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44281,9 +44847,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_incomplete_state=yes -else +else $as_nop gl_cv_func_mbrtowc_incomplete_state=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44292,9 +44859,10 @@ fi else if test $LOCALE_FR_UTF8 != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44317,9 +44885,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_incomplete_state=yes -else +else $as_nop gl_cv_func_mbrtowc_incomplete_state=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44330,17 +44899,18 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 -$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 -$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } -if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test ${gl_cv_func_mbrtowc_sanitycheck+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on Solaris 8. @@ -44349,9 +44919,10 @@ else *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; esac if test $LOCALE_ZH_CN != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44378,9 +44949,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_sanitycheck=yes -else +else $as_nop gl_cv_func_mbrtowc_sanitycheck=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44390,8 +44962,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 -$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } REPLACE_MBSTATE_T=0 case "$gl_cv_func_mbrtowc_incomplete_state" in @@ -44410,19 +44982,17 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } if test $ac_cv_func_mbrtowc = no; then HAVE_MBRTOWC=0 - ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " + ac_fn_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " #include -" -if test "x$ac_cv_have_decl_mbrtowc" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_mbrtowc" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MBRTOWC $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_mbrtowc = yes; then REPLACE_MBRTOWC=1 @@ -44434,11 +45004,12 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 -$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; } -if ${gl_cv_func_mbrtowc_null_arg1+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 +printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; } +if test ${gl_cv_func_mbrtowc_null_arg1+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on Solaris. @@ -44447,9 +45018,10 @@ else *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; esac if test $LOCALE_FR_UTF8 != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44486,9 +45058,10 @@ int main () return result; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_null_arg1=yes -else +else $as_nop gl_cv_func_mbrtowc_null_arg1=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44498,17 +45071,18 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 -$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 -$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } -if ${gl_cv_func_mbrtowc_null_arg2+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 +printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; } +if test ${gl_cv_func_mbrtowc_null_arg2+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on OSF/1. @@ -44517,9 +45091,10 @@ else *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; esac if test $LOCALE_FR_UTF8 != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44544,9 +45119,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_null_arg2=yes -else +else $as_nop gl_cv_func_mbrtowc_null_arg2=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44556,19 +45132,20 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 -$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 -$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } -if ${gl_cv_func_mbrtowc_retval+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 +printf %s "checking whether mbrtowc has a correct return value... " >&6; } +if test ${gl_cv_func_mbrtowc_retval+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on HP-UX, Solaris, native Windows. @@ -44578,9 +45155,10 @@ else esac if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ || { case "$host_os" in mingw*) true;; *) false;; esac; }; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44672,9 +45250,10 @@ int main () return (found_some_locale ? result : 77); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_retval=yes -else +else $as_nop if test $? != 77; then gl_cv_func_mbrtowc_retval=no fi @@ -44687,17 +45266,18 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 -$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 -$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } -if ${gl_cv_func_mbrtowc_nul_retval+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 +printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } +if test ${gl_cv_func_mbrtowc_nul_retval+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on Solaris 8 and 9. @@ -44706,9 +45286,10 @@ else *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; esac if test $LOCALE_ZH_CN != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44730,9 +45311,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_nul_retval=yes -else +else $as_nop gl_cv_func_mbrtowc_nul_retval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44742,16 +45324,17 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 -$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5 -$as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; } -if ${gl_cv_func_mbrtowc_stores_incomplete+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5 +printf %s "checking whether mbrtowc stores incomplete characters... " >&6; } +if test ${gl_cv_func_mbrtowc_stores_incomplete+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess yes on native Windows. @@ -44760,9 +45343,10 @@ else esac case "$host_os" in mingw*) - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44815,9 +45399,10 @@ int main () return result; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_stores_incomplete=no -else +else $as_nop gl_cv_func_mbrtowc_stores_incomplete=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44828,9 +45413,10 @@ fi *) if test $LOCALE_FR_UTF8 != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44852,9 +45438,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_stores_incomplete=no -else +else $as_nop gl_cv_func_mbrtowc_stores_incomplete=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44866,16 +45453,17 @@ fi esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5 -$as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 -$as_echo_n "checking whether mbrtowc works on empty input... " >&6; } -if ${gl_cv_func_mbrtowc_empty_input+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 +printf %s "checking whether mbrtowc works on empty input... " >&6; } +if test ${gl_cv_func_mbrtowc_empty_input+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on AIX and glibc systems. @@ -44884,9 +45472,10 @@ else mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; esac - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -44899,9 +45488,10 @@ else return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_empty_input=yes -else +else $as_nop gl_cv_func_mbrtowc_empty_input=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44910,25 +45500,27 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5 -$as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5 -$as_echo_n "checking whether the C locale is free of encoding errors... " >&6; } -if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5 +printf %s "checking whether the C locale is free of encoding errors... " >&6; } +if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on native Windows. mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -44936,7 +45528,7 @@ else #include int -main () +main (void) { int i; @@ -44958,9 +45550,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes -else +else $as_nop gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -44969,13 +45562,13 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5 -$as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; } case "$gl_cv_func_mbrtowc_null_arg1" in *yes) ;; *) -$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h +printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h REPLACE_MBRTOWC=1 ;; @@ -44983,7 +45576,7 @@ $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h case "$gl_cv_func_mbrtowc_null_arg2" in *yes) ;; *) -$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h +printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h REPLACE_MBRTOWC=1 ;; @@ -44991,7 +45584,7 @@ $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h case "$gl_cv_func_mbrtowc_retval" in *yes) ;; *) -$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h +printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h REPLACE_MBRTOWC=1 ;; @@ -44999,7 +45592,7 @@ $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h case "$gl_cv_func_mbrtowc_nul_retval" in *yes) ;; *) -$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h +printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h REPLACE_MBRTOWC=1 ;; @@ -45007,7 +45600,7 @@ $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h case "$gl_cv_func_mbrtowc_stores_incomplete" in *no) ;; *) -$as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h +printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h REPLACE_MBRTOWC=1 ;; @@ -45015,7 +45608,7 @@ $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h case "$gl_cv_func_mbrtowc_empty_input" in *yes) ;; *) -$as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h +printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h REPLACE_MBRTOWC=1 ;; @@ -45023,7 +45616,7 @@ $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in *yes) ;; *) -$as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h +printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h REPLACE_MBRTOWC=1 ;; @@ -45036,11 +45629,12 @@ $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 -$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } -if ${gl_cv_have_weak+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 +printf %s "checking whether imported symbols can be declared weak... " >&6; } +if test ${gl_cv_have_weak+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in cygwin*) gl_cv_have_weak="guessing no" @@ -45052,20 +45646,22 @@ else extern void xyzzy (); #pragma weak xyzzy int -main () +main (void) { xyzzy(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_have_weak=maybe fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test $gl_cv_have_weak = maybe; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ELF__ @@ -45074,15 +45670,16 @@ rm -f core conftest.err conftest.$ac_objext \ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : + $EGREP "Extensible Linking Format" >/dev/null 2>&1 +then : gl_cv_have_weak="guessing yes" -else +else $as_nop gl_cv_have_weak="guessing no" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45093,9 +45690,10 @@ int main () return (fputs == NULL); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_have_weak=yes -else +else $as_nop gl_cv_have_weak=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45131,12 +45729,12 @@ EOF esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 -$as_echo "$gl_cv_have_weak" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 +printf "%s\n" "$gl_cv_have_weak" >&6; } case "$gl_cv_have_weak" in *yes) -$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h +printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h ;; esac @@ -45195,40 +45793,43 @@ fi CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 -$as_echo_n "checking whether the -Werror option is usable... " >&6; } -if ${gl_cv_cc_vis_werror+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 +printf %s "checking whether the -Werror option is usable... " >&6; } +if test ${gl_cv_cc_vis_werror+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_cc_vis_werror=yes -else +else $as_nop gl_cv_cc_vis_werror=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 -$as_echo "$gl_cv_cc_vis_werror" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 -$as_echo_n "checking for simple visibility declarations... " >&6; } -if ${gl_cv_cc_visibility+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 +printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 +printf %s "checking for simple visibility declarations... " >&6; } +if test ${gl_cv_cc_visibility+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" if test $gl_cv_cc_vis_werror = yes; then @@ -45248,24 +45849,25 @@ extern __attribute__((__visibility__("hidden"))) int hiddenvar; void dummyfunc (void) {} int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_cc_visibility=yes -else +else $as_nop gl_cv_cc_visibility=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 -$as_echo "$gl_cv_cc_visibility" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 +printf "%s\n" "$gl_cv_cc_visibility" >&6; } if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 @@ -45274,9 +45876,7 @@ $as_echo "$gl_cv_cc_visibility" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_VISIBILITY $HAVE_VISIBILITY -_ACEOF +printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h @@ -45307,7 +45907,7 @@ fi -$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h @@ -45332,11 +45932,12 @@ $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 -$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } -if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } +if test ${gl_cv_func_mbrtowc_incomplete_state+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on AIX and OSF/1. @@ -45345,9 +45946,10 @@ else *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; esac if test $LOCALE_JA != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45370,9 +45972,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_incomplete_state=yes -else +else $as_nop gl_cv_func_mbrtowc_incomplete_state=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45381,9 +45984,10 @@ fi else if test $LOCALE_FR_UTF8 != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45406,9 +46010,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_incomplete_state=yes -else +else $as_nop gl_cv_func_mbrtowc_incomplete_state=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45419,17 +46024,18 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 -$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 -$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } -if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test ${gl_cv_func_mbrtowc_sanitycheck+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on Solaris 8. @@ -45438,9 +46044,10 @@ else *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; esac if test $LOCALE_ZH_CN != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45467,9 +46074,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_sanitycheck=yes -else +else $as_nop gl_cv_func_mbrtowc_sanitycheck=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45479,8 +46087,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 -$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } REPLACE_MBSTATE_T=0 case "$gl_cv_func_mbrtowc_incomplete_state" in @@ -45499,19 +46107,17 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } if test $ac_cv_func_mbsinit = no; then HAVE_MBSINIT=0 - ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " + ac_fn_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " #include -" -if test "x$ac_cv_have_decl_mbsinit" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_mbsinit" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MBSINIT $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_MBSINIT $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_mbsinit = yes; then REPLACE_MBSINIT=1 @@ -45567,23 +46173,19 @@ fi -$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h - for ac_func in mbtowc -do : ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc" -if test "x$ac_cv_func_mbtowc" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MBTOWC 1 -_ACEOF +if test "x$ac_cv_func_mbtowc" = xyes +then : + printf "%s\n" "#define HAVE_MBTOWC 1" >>confdefs.h fi -done if test $ac_cv_func_mbtowc = no; then HAVE_MBTOWC=0 @@ -45629,7 +46231,7 @@ fi -$as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h @@ -45651,18 +46253,13 @@ fi if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then : - for ac_header in bp-sym.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" -if test "x$ac_cv_header_bp_sym_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_BP_SYM_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" +if test "x$ac_cv_header_bp_sym_h" = xyes +then : + printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h fi -done - fi @@ -45686,7 +46283,7 @@ fi -$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h @@ -45702,14 +46299,14 @@ $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h if test "$gl_cv_func_working_mktime" != yes; then REPLACE_MKTIME=1 -$as_echo "#define NEED_MKTIME_WORKING 1" >>confdefs.h +printf "%s\n" "#define NEED_MKTIME_WORKING 1" >>confdefs.h fi case "$host_os" in mingw*) REPLACE_MKTIME=1 -$as_echo "#define NEED_MKTIME_WINDOWS 1" >>confdefs.h +printf "%s\n" "#define NEED_MKTIME_WINDOWS 1" >>confdefs.h ;; esac @@ -45742,7 +46339,7 @@ $as_echo "#define NEED_MKTIME_WINDOWS 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_MKTIME 1" >>confdefs.h @@ -45751,15 +46348,16 @@ $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h WANT_MKTIME_INTERNAL=0 ac_fn_c_check_func "$LINENO" "__mktime_internal" "ac_cv_func___mktime_internal" -if test "x$ac_cv_func___mktime_internal" = xyes; then : +if test "x$ac_cv_func___mktime_internal" = xyes +then : -$as_echo "#define mktime_internal __mktime_internal" >>confdefs.h +printf "%s\n" "#define mktime_internal __mktime_internal" >>confdefs.h -else +else $as_nop WANT_MKTIME_INTERNAL=1 -$as_echo "#define NEED_MKTIME_INTERNAL 1" >>confdefs.h +printf "%s\n" "#define NEED_MKTIME_INTERNAL 1" >>confdefs.h fi @@ -45780,65 +46378,51 @@ fi fi - for ac_func in listmntent -do : ac_fn_c_check_func "$LINENO" "listmntent" "ac_cv_func_listmntent" -if test "x$ac_cv_func_listmntent" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LISTMNTENT 1 -_ACEOF +if test "x$ac_cv_func_listmntent" = xyes +then : + printf "%s\n" "#define HAVE_LISTMNTENT 1" >>confdefs.h fi -done # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses # NGROUPS (as the array dimension for a struct member) without a definition. - for ac_header in sys/ucred.h -do : ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "#include " -if test "x$ac_cv_header_sys_ucred_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_UCRED_H 1 -_ACEOF +if test "x$ac_cv_header_sys_ucred_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h fi -done - - for ac_header in sys/mount.h -do : ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default #if HAVE_SYS_PARAM_H #include #endif " -if test "x$ac_cv_header_sys_mount_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_MOUNT_H 1 -_ACEOF +if test "x$ac_cv_header_sys_mount_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h fi -done - - for ac_header in mntent.h sys/fs_types.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default" +if test "x$ac_cv_header_mntent_h" = xyes +then : + printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "sys/fs_types.h" "ac_cv_header_sys_fs_types_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_fs_types_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_FS_TYPES_H 1" >>confdefs.h -done +fi getfsstat_includes="\ $ac_includes_default @@ -45858,11 +46442,10 @@ $ac_includes_default " ac_fn_c_check_member "$LINENO" "struct fsstat" "f_fstypename" "ac_cv_member_struct_fsstat_f_fstypename" "$getfsstat_includes " -if test "x$ac_cv_member_struct_fsstat_f_fstypename" = xyes; then : +if test "x$ac_cv_member_struct_fsstat_f_fstypename" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1" >>confdefs.h fi @@ -45876,11 +46459,12 @@ fi # getmntent is in the standard C library on most systems, but in -lgen on # Unixware. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 -$as_echo_n "checking for library containing getmntent... " >&6; } -if ${ac_cv_search_getmntent+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 +printf %s "checking for library containing getmntent... " >&6; } +if test ${ac_cv_search_getmntent+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45888,87 +46472,87 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char getmntent (); int -main () +main (void) { return getmntent (); ; return 0; } _ACEOF -for ac_lib in '' gen; do +for ac_lib in '' gen +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_getmntent=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_getmntent+:} false; then : + if test ${ac_cv_search_getmntent+y} +then : break fi done -if ${ac_cv_search_getmntent+:} false; then : +if test ${ac_cv_search_getmntent+y} +then : -else +else $as_nop ac_cv_search_getmntent=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 -$as_echo "$ac_cv_search_getmntent" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 +printf "%s\n" "$ac_cv_search_getmntent" >&6; } ac_res=$ac_cv_search_getmntent -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi - for ac_func in getmntent -do : ac_fn_c_check_func "$LINENO" "getmntent" "ac_cv_func_getmntent" -if test "x$ac_cv_func_getmntent" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETMNTENT 1 -_ACEOF +if test "x$ac_cv_func_getmntent" = xyes +then : + printf "%s\n" "#define HAVE_GETMNTENT 1" >>confdefs.h fi -done if test -z "$ac_list_mounted_fs"; then # AIX. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mntctl function and struct vmount" >&5 -$as_echo_n "checking for mntctl function and struct vmount... " >&6; } -if ${fu_cv_sys_mounted_vmount+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mntctl function and struct vmount" >&5 +printf %s "checking for mntctl function and struct vmount... " >&6; } +if test ${fu_cv_sys_mounted_vmount+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : fu_cv_sys_mounted_vmount=yes -else +else $as_nop fu_cv_sys_mounted_vmount=no fi rm -f conftest.err conftest.i conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_vmount" >&5 -$as_echo "$fu_cv_sys_mounted_vmount" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_vmount" >&5 +printf "%s\n" "$fu_cv_sys_mounted_vmount" >&6; } if test $fu_cv_sys_mounted_vmount = yes; then ac_list_mounted_fs=found -$as_echo "#define MOUNTED_VMOUNT 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_VMOUNT 1" >>confdefs.h fi fi @@ -45980,11 +46564,12 @@ $as_echo "#define MOUNTED_VMOUNT 1" >>confdefs.h if test -z "$ac_list_mounted_fs"; then # glibc, HP-UX, IRIX, Cygwin, Android, also (obsolete) 4.3BSD, SunOS. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for one-argument getmntent function" >&5 -$as_echo_n "checking for one-argument getmntent function... " >&6; } -if ${fu_cv_sys_mounted_getmntent1+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for one-argument getmntent function" >&5 +printf %s "checking for one-argument getmntent function... " >&6; } +if test ${fu_cv_sys_mounted_getmntent1+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46005,7 +46590,7 @@ else #endif int -main () +main (void) { struct mntent *mnt = 0; char *table = MOUNTED; if (sizeof mnt && sizeof table) return 0; @@ -46014,63 +46599,73 @@ struct mntent *mnt = 0; char *table = MOUNTED; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : fu_cv_sys_mounted_getmntent1=yes -else +else $as_nop fu_cv_sys_mounted_getmntent1=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent1" >&5 -$as_echo "$fu_cv_sys_mounted_getmntent1" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent1" >&5 +printf "%s\n" "$fu_cv_sys_mounted_getmntent1" >&6; } if test $fu_cv_sys_mounted_getmntent1 = yes; then ac_list_mounted_fs=found -$as_echo "#define MOUNTED_GETMNTENT1 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_GETMNTENT1 1" >>confdefs.h - for ac_func in setmntent endmntent hasmntopt -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent" +if test "x$ac_cv_func_setmntent" = xyes +then : + printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent" +if test "x$ac_cv_func_endmntent" = xyes +then : + printf "%s\n" "#define HAVE_ENDMNTENT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "hasmntopt" "ac_cv_func_hasmntopt" +if test "x$ac_cv_func_hasmntopt" = xyes +then : + printf "%s\n" "#define HAVE_HASMNTOPT 1" >>confdefs.h fi -done fi fi if test -z "$ac_list_mounted_fs"; then # Solaris >= 8. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getextmntent function" >&5 -$as_echo_n "checking for getextmntent function... " >&6; } -if ${fu_cv_sys_mounted_getextmntent+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getextmntent function" >&5 +printf %s "checking for getextmntent function... " >&6; } +if test ${fu_cv_sys_mounted_getextmntent+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "getextmntent" >/dev/null 2>&1; then : + $EGREP "getextmntent" >/dev/null 2>&1 +then : fu_cv_sys_mounted_getextmntent=yes -else +else $as_nop fu_cv_sys_mounted_getextmntent=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getextmntent" >&5 -$as_echo "$fu_cv_sys_mounted_getextmntent" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getextmntent" >&5 +printf "%s\n" "$fu_cv_sys_mounted_getextmntent" >&6; } if test $fu_cv_sys_mounted_getextmntent = yes; then ac_list_mounted_fs=found -$as_echo "#define MOUNTED_GETEXTMNTENT 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_GETEXTMNTENT 1" >>confdefs.h fi fi @@ -46078,43 +46673,41 @@ $as_echo "#define MOUNTED_GETEXTMNTENT 1" >>confdefs.h if test -z "$ac_list_mounted_fs"; then # Solaris < 8, also (obsolete) SVR4. # Solaris >= 8 has the two-argument getmntent but is already handled above. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument getmntent function" >&5 -$as_echo_n "checking for two-argument getmntent function... " >&6; } -if ${fu_cv_sys_mounted_getmntent2+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument getmntent function" >&5 +printf %s "checking for two-argument getmntent function... " >&6; } +if test ${fu_cv_sys_mounted_getmntent2+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "getmntent" >/dev/null 2>&1; then : + $EGREP "getmntent" >/dev/null 2>&1 +then : fu_cv_sys_mounted_getmntent2=yes -else +else $as_nop fu_cv_sys_mounted_getmntent2=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent2" >&5 -$as_echo "$fu_cv_sys_mounted_getmntent2" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent2" >&5 +printf "%s\n" "$fu_cv_sys_mounted_getmntent2" >&6; } if test $fu_cv_sys_mounted_getmntent2 = yes; then ac_list_mounted_fs=found -$as_echo "#define MOUNTED_GETMNTENT2 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_GETMNTENT2 1" >>confdefs.h - for ac_func in hasmntopt -do : - ac_fn_c_check_func "$LINENO" "hasmntopt" "ac_cv_func_hasmntopt" -if test "x$ac_cv_func_hasmntopt" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_HASMNTOPT 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "hasmntopt" "ac_cv_func_hasmntopt" +if test "x$ac_cv_func_hasmntopt" = xyes +then : + printf "%s\n" "#define HAVE_HASMNTOPT 1" >>confdefs.h fi -done fi fi @@ -46125,11 +46718,12 @@ done # OSF/1, also (obsolete) Apple Darwin 1.3. # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfsstat function" >&5 -$as_echo_n "checking for getfsstat function... " >&6; } -if ${fu_cv_sys_mounted_getfsstat+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getfsstat function" >&5 +printf %s "checking for getfsstat function... " >&6; } +if test ${fu_cv_sys_mounted_getfsstat+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46142,7 +46736,7 @@ else $getfsstat_includes int -main () +main (void) { struct statfs *stats; int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); @@ -46152,32 +46746,34 @@ struct statfs *stats; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : fu_cv_sys_mounted_getfsstat=yes -else +else $as_nop fu_cv_sys_mounted_getfsstat=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getfsstat" >&5 -$as_echo "$fu_cv_sys_mounted_getfsstat" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getfsstat" >&5 +printf "%s\n" "$fu_cv_sys_mounted_getfsstat" >&6; } if test $fu_cv_sys_mounted_getfsstat = yes; then ac_list_mounted_fs=found -$as_echo "#define MOUNTED_GETFSSTAT 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_GETFSSTAT 1" >>confdefs.h fi fi if test -z "$ac_list_mounted_fs"; then # (obsolete) SVR3 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIXME existence of three headers" >&5 -$as_echo_n "checking for FIXME existence of three headers... " >&6; } -if ${fu_cv_sys_mounted_fread_fstyp+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FIXME existence of three headers" >&5 +printf %s "checking for FIXME existence of three headers... " >&6; } +if test ${fu_cv_sys_mounted_fread_fstyp+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46186,20 +46782,21 @@ else #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : fu_cv_sys_mounted_fread_fstyp=yes -else +else $as_nop fu_cv_sys_mounted_fread_fstyp=no fi rm -f conftest.err conftest.i conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fread_fstyp" >&5 -$as_echo "$fu_cv_sys_mounted_fread_fstyp" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fread_fstyp" >&5 +printf "%s\n" "$fu_cv_sys_mounted_fread_fstyp" >&6; } if test $fu_cv_sys_mounted_fread_fstyp = yes; then ac_list_mounted_fs=found -$as_echo "#define MOUNTED_FREAD_FSTYP 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_FREAD_FSTYP 1" >>confdefs.h fi fi @@ -46210,11 +46807,12 @@ $as_echo "#define MOUNTED_FREAD_FSTYP 1" >>confdefs.h # We cannot use AC_CHECK_FUNCS([getmntinfo]) here, because at the linker # level the function is sometimes called getmntinfo64 or getmntinfo$INODE64 # on Mac OS X, __getmntinfo13 on NetBSD and Minix, _F64_getmntinfo on OSF/1. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntinfo function" >&5 -$as_echo_n "checking for getmntinfo function... " >&6; } -if ${fu_cv_sys_mounted_getmntinfo+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getmntinfo function" >&5 +printf %s "checking for getmntinfo function... " >&6; } +if test ${fu_cv_sys_mounted_getmntinfo+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46231,7 +46829,7 @@ else #include int -main () +main (void) { int count = getmntinfo (NULL, MNT_WAIT); @@ -46239,23 +46837,25 @@ int count = getmntinfo (NULL, MNT_WAIT); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : fu_cv_sys_mounted_getmntinfo=yes -else +else $as_nop fu_cv_sys_mounted_getmntinfo=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo" >&5 -$as_echo "$fu_cv_sys_mounted_getmntinfo" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo" >&5 +printf "%s\n" "$fu_cv_sys_mounted_getmntinfo" >&6; } if test $fu_cv_sys_mounted_getmntinfo = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getmntinfo returns statvfs structures" >&5 -$as_echo_n "checking whether getmntinfo returns statvfs structures... " >&6; } -if ${fu_cv_sys_mounted_getmntinfo2+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getmntinfo returns statvfs structures" >&5 +printf %s "checking whether getmntinfo returns statvfs structures... " >&6; } +if test ${fu_cv_sys_mounted_getmntinfo2+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46276,34 +46876,35 @@ extern int getmntinfo (struct statfs **, int); int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : fu_cv_sys_mounted_getmntinfo2=no -else +else $as_nop fu_cv_sys_mounted_getmntinfo2=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo2" >&5 -$as_echo "$fu_cv_sys_mounted_getmntinfo2" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo2" >&5 +printf "%s\n" "$fu_cv_sys_mounted_getmntinfo2" >&6; } if test $fu_cv_sys_mounted_getmntinfo2 = no; then # Mac OS X, FreeBSD, OpenBSD, also (obsolete) 4.4BSD. ac_list_mounted_fs=found -$as_echo "#define MOUNTED_GETMNTINFO 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_GETMNTINFO 1" >>confdefs.h else # NetBSD, Minix. ac_list_mounted_fs=found -$as_echo "#define MOUNTED_GETMNTINFO2 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_GETMNTINFO2 1" >>confdefs.h fi fi @@ -46311,35 +46912,32 @@ $as_echo "#define MOUNTED_GETMNTINFO2 1" >>confdefs.h if test -z "$ac_list_mounted_fs"; then # Haiku, also (obsolete) BeOS. - for ac_func in next_dev fs_stat_dev -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "next_dev" "ac_cv_func_next_dev" +if test "x$ac_cv_func_next_dev" = xyes +then : + printf "%s\n" "#define HAVE_NEXT_DEV 1" >>confdefs.h fi -done - - for ac_header in fs_info.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "fs_info.h" "ac_cv_header_fs_info_h" "$ac_includes_default" -if test "x$ac_cv_header_fs_info_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FS_INFO_H 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "fs_stat_dev" "ac_cv_func_fs_stat_dev" +if test "x$ac_cv_func_fs_stat_dev" = xyes +then : + printf "%s\n" "#define HAVE_FS_STAT_DEV 1" >>confdefs.h fi -done + ac_fn_c_check_header_compile "$LINENO" "fs_info.h" "ac_cv_header_fs_info_h" "$ac_includes_default" +if test "x$ac_cv_header_fs_info_h" = xyes +then : + printf "%s\n" "#define HAVE_FS_INFO_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BEOS mounted file system support functions" >&5 -$as_echo_n "checking for BEOS mounted file system support functions... " >&6; } -if ${fu_cv_sys_mounted_fs_stat_dev+:} false; then : - $as_echo_n "(cached) " >&6 -else +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BEOS mounted file system support functions" >&5 +printf %s "checking for BEOS mounted file system support functions... " >&6; } +if test ${fu_cv_sys_mounted_fs_stat_dev+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_fs_info_h = yes \ && test $ac_cv_func_next_dev = yes \ && test $ac_cv_func_fs_stat_dev = yes; then @@ -46349,12 +46947,12 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fs_stat_dev" >&5 -$as_echo "$fu_cv_sys_mounted_fs_stat_dev" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fs_stat_dev" >&5 +printf "%s\n" "$fu_cv_sys_mounted_fs_stat_dev" >&6; } if test $fu_cv_sys_mounted_fs_stat_dev = yes; then ac_list_mounted_fs=found -$as_echo "#define MOUNTED_FS_STAT_DEV 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_FS_STAT_DEV 1" >>confdefs.h fi fi @@ -46364,21 +46962,17 @@ $as_echo "#define MOUNTED_FS_STAT_DEV 1" >>confdefs.h # the code is really interix specific, so make sure, we're on it. case "$host" in *-interix*) - for ac_func in statvfs -do : - ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" -if test "x$ac_cv_func_statvfs" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STATVFS 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" +if test "x$ac_cv_func_statvfs" = xyes +then : + printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h fi -done if test $ac_cv_func_statvfs = yes; then ac_list_mounted_fs=found -$as_echo "#define MOUNTED_INTERIX_STATVFS 1" >>confdefs.h +printf "%s\n" "#define MOUNTED_INTERIX_STATVFS 1" >>confdefs.h fi ;; @@ -46414,36 +47008,31 @@ fi if test -z "$GL_COND_OBJ_MOUNTLIST_TRUE"; then : - for ac_header in sys/mntent.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "sys/mntent.h" "ac_cv_header_sys_mntent_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_mntent_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_MNTENT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sys/mntent.h" "ac_cv_header_sys_mntent_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_mntent_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_MNTENT_H 1" >>confdefs.h fi -done +ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_mkdev_h" = xyes +then : -ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : - -$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h +printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h fi - if test $ac_cv_header_sys_mkdev_h = no; then - ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sysmacros_h" = xyes +then : -$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h +printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h fi - fi ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" " @@ -46452,11 +47041,10 @@ fi #include " -if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then : +if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h fi @@ -46497,9 +47085,7 @@ fi -cat >>confdefs.h <<_ACEOF -#define GNULIB_MSVC_NOTHROW 1 -_ACEOF +printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h @@ -46511,49 +47097,46 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 -$as_echo_n "checking whether is self-contained... " >&6; } -if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 +printf %s "checking whether is self-contained... " >&6; } +if test ${gl_cv_header_netinet_in_h_selfcontained+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_netinet_in_h_selfcontained=yes -else +else $as_nop gl_cv_header_netinet_in_h_selfcontained=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5 -$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5 +printf "%s\n" "$gl_cv_header_netinet_in_h_selfcontained" >&6; } if test $gl_cv_header_netinet_in_h_selfcontained = yes; then GL_GENERATE_NETINET_IN_H=false else GL_GENERATE_NETINET_IN_H=true - for ac_header in netinet/in.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" -if test "x$ac_cv_header_netinet_in_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_NETINET_IN_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" +if test "x$ac_cv_header_netinet_in_h" = xyes +then : + printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h fi -done - @@ -46566,11 +47149,12 @@ done if test $gl_cv_have_include_next = yes; then gl_cv_next_netinet_in_h='<'netinet/in.h'>' else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 -$as_echo_n "checking absolute name of ... " >&6; } -if ${gl_cv_next_netinet_in_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +printf %s "checking absolute name of ... " >&6; } +if test ${gl_cv_next_netinet_in_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $ac_cv_header_netinet_in_h = yes; then @@ -46615,8 +47199,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5 -$as_echo "$gl_cv_next_netinet_in_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5 +printf "%s\n" "$gl_cv_next_netinet_in_h" >&6; } fi NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h @@ -46683,12 +47267,14 @@ fi if test $ac_cv_func_nl_langinfo = yes; then # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5 -$as_echo_n "checking whether YESEXPR works... " >&6; } -if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5 +printf %s "checking whether YESEXPR works... " >&6; } +if test ${gl_cv_func_nl_langinfo_yesexpr_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on irix systems. @@ -46697,13 +47283,13 @@ else *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return !*nl_langinfo(YESEXPR); @@ -46711,9 +47297,10 @@ return !*nl_langinfo(YESEXPR); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_nl_langinfo_yesexpr_works=yes -else +else $as_nop gl_cv_func_nl_langinfo_yesexpr_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -46722,16 +47309,14 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5 -$as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5 +printf "%s\n" "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; } case $gl_cv_func_nl_langinfo_yesexpr_works in *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;; *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;; esac -cat >>confdefs.h <<_ACEOF -#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS -_ACEOF +printf "%s\n" "#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS" >>confdefs.h # On Solaris 10 and Solaris 11.3, nl_langinfo is not multithread-safe. case "$host_os" in @@ -46739,9 +47324,7 @@ _ACEOF *) NL_LANGINFO_MTSAFE=1 ;; esac -cat >>confdefs.h <<_ACEOF -#define NL_LANGINFO_MTSAFE $NL_LANGINFO_MTSAFE -_ACEOF +printf "%s\n" "#define NL_LANGINFO_MTSAFE $NL_LANGINFO_MTSAFE" >>confdefs.h if test $HAVE_LANGINFO_CODESET = 1 \ && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \ @@ -46753,7 +47336,7 @@ _ACEOF else REPLACE_NL_LANGINFO=1 -$as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h +printf "%s\n" "#define REPLACE_NL_LANGINFO 1" >>confdefs.h fi else @@ -46801,40 +47384,43 @@ fi CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 -$as_echo_n "checking whether the -Werror option is usable... " >&6; } -if ${gl_cv_cc_vis_werror+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 +printf %s "checking whether the -Werror option is usable... " >&6; } +if test ${gl_cv_cc_vis_werror+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_cc_vis_werror=yes -else +else $as_nop gl_cv_cc_vis_werror=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 -$as_echo "$gl_cv_cc_vis_werror" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 -$as_echo_n "checking for simple visibility declarations... " >&6; } -if ${gl_cv_cc_visibility+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 +printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 +printf %s "checking for simple visibility declarations... " >&6; } +if test ${gl_cv_cc_visibility+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" if test $gl_cv_cc_vis_werror = yes; then @@ -46854,24 +47440,25 @@ extern __attribute__((__visibility__("hidden"))) int hiddenvar; void dummyfunc (void) {} int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_cc_visibility=yes -else +else $as_nop gl_cv_cc_visibility=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 -$as_echo "$gl_cv_cc_visibility" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 +printf "%s\n" "$gl_cv_cc_visibility" >&6; } if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 @@ -46880,9 +47467,7 @@ $as_echo "$gl_cv_cc_visibility" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_VISIBILITY $HAVE_VISIBILITY -_ACEOF +printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h @@ -46902,7 +47487,7 @@ _ACEOF -$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h @@ -46920,17 +47505,19 @@ $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 -$as_echo_n "checking whether open recognizes a trailing slash... " >&6; } -if ${gl_cv_func_open_slash+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 +printf %s "checking whether open recognizes a trailing slash... " >&6; } +if test ${gl_cv_func_open_slash+y} +then : + printf %s "(cached) " >&6 +else $as_nop # Assume that if we have lstat, we can also check symlinks. if test $ac_cv_func_lstat = yes; then touch conftest.tmp ln -s conftest.tmp conftest.lnk fi - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) @@ -46939,7 +47526,7 @@ else gl_cv_func_open_slash="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46963,9 +47550,10 @@ int main () return result; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_open_slash=yes -else +else $as_nop gl_cv_func_open_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -46975,12 +47563,12 @@ fi rm -f conftest.sl conftest.tmp conftest.lnk fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 -$as_echo "$gl_cv_func_open_slash" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 +printf "%s\n" "$gl_cv_func_open_slash" >&6; } case "$gl_cv_func_open_slash" in *no) -$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h +printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h ;; esac @@ -47032,7 +47620,7 @@ fi -$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h @@ -47044,12 +47632,14 @@ $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5 -$as_echo_n "checking whether realloc (0, 0) returns nonnull... " >&6; } -if ${ac_cv_func_realloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5 +printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; } +if test ${ac_cv_func_realloc_0_nonnull+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on platforms where we know the result. *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ @@ -47060,13 +47650,13 @@ else *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { void *p = realloc (0, 0); int result = !p; @@ -47077,9 +47667,10 @@ void *p = realloc (0, 0); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_realloc_0_nonnull=yes -else +else $as_nop ac_cv_func_realloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -47088,8 +47679,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 +printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } case $ac_cv_func_realloc_0_nonnull in #( *yes) : ;; #( @@ -47126,7 +47717,7 @@ esac -$as_echo "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h @@ -47164,7 +47755,7 @@ $as_echo "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h @@ -47173,16 +47764,12 @@ $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h - for ac_func in reallocarray -do : ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" -if test "x$ac_cv_func_reallocarray" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_REALLOCARRAY 1 -_ACEOF +if test "x$ac_cv_func_reallocarray" = xyes +then : + printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h fi -done if test "$ac_cv_func_reallocarray" = no; then HAVE_REALLOCARRAY=0 @@ -47211,9 +47798,7 @@ fi fi -cat >>confdefs.h <<_ACEOF -#define GNULIB_REALLOCARRAY 1 -_ACEOF +printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h @@ -47231,14 +47816,15 @@ _ACEOF -$as_echo "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h # Check whether --with-included-regex was given. -if test "${with_included_regex+set}" = set; then : +if test ${with_included_regex+y} +then : withval=$with_included_regex; fi @@ -47253,12 +47839,14 @@ fi # regex.c. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5 -$as_echo_n "checking for working re_compile_pattern... " >&6; } -if ${gl_cv_func_re_compile_pattern_working+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5 +printf %s "checking for working re_compile_pattern... " >&6; } +if test ${gl_cv_func_re_compile_pattern_working+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_re_compile_pattern_working="guessing no" ;; @@ -47266,7 +47854,7 @@ else *) gl_cv_func_re_compile_pattern_working="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -47290,7 +47878,7 @@ else #endif int -main () +main (void) { int result = 0; static struct re_pattern_buffer regex; @@ -47566,9 +48154,10 @@ int result = 0; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_re_compile_pattern_working=yes -else +else $as_nop gl_cv_func_re_compile_pattern_working=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -47577,8 +48166,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5 -$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5 +printf "%s\n" "$gl_cv_func_re_compile_pattern_working" >&6; } case "$gl_cv_func_re_compile_pattern_working" in #( *yes) ac_use_included_regex=no;; #( *no) ac_use_included_regex=yes;; @@ -47590,55 +48179,55 @@ $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; } if test $ac_use_included_regex = yes; then -$as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h +printf "%s\n" "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h -$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h +printf "%s\n" "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h -$as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h +printf "%s\n" "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h -$as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h +printf "%s\n" "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h -$as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h +printf "%s\n" "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h -$as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h +printf "%s\n" "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h -$as_echo "#define re_search rpl_re_search" >>confdefs.h +printf "%s\n" "#define re_search rpl_re_search" >>confdefs.h -$as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h +printf "%s\n" "#define re_search_2 rpl_re_search_2" >>confdefs.h -$as_echo "#define re_match rpl_re_match" >>confdefs.h +printf "%s\n" "#define re_match rpl_re_match" >>confdefs.h -$as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h +printf "%s\n" "#define re_match_2 rpl_re_match_2" >>confdefs.h -$as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h +printf "%s\n" "#define re_set_registers rpl_re_set_registers" >>confdefs.h -$as_echo "#define re_comp rpl_re_comp" >>confdefs.h +printf "%s\n" "#define re_comp rpl_re_comp" >>confdefs.h -$as_echo "#define re_exec rpl_re_exec" >>confdefs.h +printf "%s\n" "#define re_exec rpl_re_exec" >>confdefs.h -$as_echo "#define regcomp rpl_regcomp" >>confdefs.h +printf "%s\n" "#define regcomp rpl_regcomp" >>confdefs.h -$as_echo "#define regexec rpl_regexec" >>confdefs.h +printf "%s\n" "#define regexec rpl_regexec" >>confdefs.h -$as_echo "#define regerror rpl_regerror" >>confdefs.h +printf "%s\n" "#define regerror rpl_regerror" >>confdefs.h -$as_echo "#define regfree rpl_regfree" >>confdefs.h +printf "%s\n" "#define regfree rpl_regfree" >>confdefs.h fi @@ -47664,30 +48253,23 @@ fi - for ac_header in libintl.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" -if test "x$ac_cv_header_libintl_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBINTL_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" +if test "x$ac_cv_header_libintl_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h fi -done - - ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include -" -if test "x$ac_cv_have_decl_isblank" = xyes; then : + ac_fn_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_isblank" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISBLANK $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h @@ -47695,11 +48277,12 @@ fi SERVENT_LIB= gl_saved_libs="$LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 -$as_echo_n "checking for library containing getservbyname... " >&6; } -if ${ac_cv_search_getservbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 +printf %s "checking for library containing getservbyname... " >&6; } +if test ${ac_cv_search_getservbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47707,46 +48290,48 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char getservbyname (); int -main () +main (void) { return getservbyname (); ; return 0; } _ACEOF -for ac_lib in '' socket network net; do +for ac_lib in '' socket network net +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_getservbyname=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_getservbyname+:} false; then : + if test ${ac_cv_search_getservbyname+y} +then : break fi done -if ${ac_cv_search_getservbyname+:} false; then : +if test ${ac_cv_search_getservbyname+y} +then : -else +else $as_nop ac_cv_search_getservbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 -$as_echo "$ac_cv_search_getservbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 +printf "%s\n" "$ac_cv_search_getservbyname" >&6; } ac_res=$ac_cv_search_getservbyname -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_getservbyname" != "none required"; then SERVENT_LIB="$ac_cv_search_getservbyname" @@ -47755,21 +48340,22 @@ fi LIBS="$gl_saved_libs" if test -z "$SERVENT_LIB"; then - for ac_func in getservbyname + + for ac_func in getservbyname do : ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" -if test "x$ac_cv_func_getservbyname" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETSERVBYNAME 1 -_ACEOF +if test "x$ac_cv_func_getservbyname" = xyes +then : + printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h -else +else $as_nop - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5 -$as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; } -if ${gl_cv_w32_getservbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5 +printf %s "checking for getservbyname in winsock2.h and -lws2_32... " >&6; } +if test ${gl_cv_w32_getservbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_w32_getservbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" @@ -47782,30 +48368,31 @@ else #include int -main () +main (void) { getservbyname(NULL,NULL); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_w32_getservbyname=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5 -$as_echo "$gl_cv_w32_getservbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5 +printf "%s\n" "$gl_cv_w32_getservbyname" >&6; } if test "$gl_cv_w32_getservbyname" = "yes"; then SERVENT_LIB="-lws2_32" fi fi -done +done fi @@ -47814,12 +48401,14 @@ done if test $ac_cv_func_setenv = no; then HAVE_SETENV=0 else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 -$as_echo_n "checking whether setenv validates arguments... " >&6; } -if ${gl_cv_func_setenv_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 +printf %s "checking whether setenv validates arguments... " >&6; } +if test ${gl_cv_func_setenv_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; @@ -47829,7 +48418,7 @@ else *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47838,7 +48427,7 @@ else #include int -main () +main (void) { int result = 0; @@ -47860,9 +48449,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_setenv_works=yes -else +else $as_nop gl_cv_func_setenv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -47870,8 +48460,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 -$as_echo "$gl_cv_func_setenv_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 +printf "%s\n" "$gl_cv_func_setenv_works" >&6; } case "$gl_cv_func_setenv_works" in *yes) ;; *) @@ -47909,7 +48499,7 @@ fi -$as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h @@ -47918,11 +48508,12 @@ $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 -$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } -if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 +printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } +if test ${gl_cv_func_setlocale_null_all_mtsafe+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) @@ -47936,8 +48527,8 @@ else esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 -$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 +printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } case "$host_os" in mingw*) ;; *) @@ -47951,16 +48542,15 @@ $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; esac -cat >>confdefs.h <<_ACEOF -#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE -_ACEOF +printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 -$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } -if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 +printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } +if test ${gl_cv_func_setlocale_null_one_mtsafe+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on OpenBSD, AIX. openbsd* | aix*) @@ -47974,8 +48564,8 @@ else esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 -$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 +printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } case "$host_os" in mingw*) ;; *) @@ -47989,9 +48579,7 @@ $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; esac -cat >>confdefs.h <<_ACEOF -#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE -_ACEOF +printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then @@ -48000,11 +48588,12 @@ _ACEOF *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 -$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } -if ${gl_cv_have_weak+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 +printf %s "checking whether imported symbols can be declared weak... " >&6; } +if test ${gl_cv_have_weak+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in cygwin*) gl_cv_have_weak="guessing no" @@ -48016,20 +48605,22 @@ else extern void xyzzy (); #pragma weak xyzzy int -main () +main (void) { xyzzy(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_have_weak=maybe fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test $gl_cv_have_weak = maybe; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ELF__ @@ -48038,15 +48629,16 @@ rm -f core conftest.err conftest.$ac_objext \ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : + $EGREP "Extensible Linking Format" >/dev/null 2>&1 +then : gl_cv_have_weak="guessing yes" -else +else $as_nop gl_cv_have_weak="guessing no" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -48057,9 +48649,10 @@ int main () return (fputs == NULL); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_have_weak=yes -else +else $as_nop gl_cv_have_weak=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -48095,12 +48688,12 @@ EOF esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 -$as_echo "$gl_cv_have_weak" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 +printf "%s\n" "$gl_cv_have_weak" >&6; } case "$gl_cv_have_weak" in *yes) -$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h +printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h ;; esac @@ -48138,40 +48731,43 @@ fi CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 -$as_echo_n "checking whether the -Werror option is usable... " >&6; } -if ${gl_cv_cc_vis_werror+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 +printf %s "checking whether the -Werror option is usable... " >&6; } +if test ${gl_cv_cc_vis_werror+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_cc_vis_werror=yes -else +else $as_nop gl_cv_cc_vis_werror=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 -$as_echo "$gl_cv_cc_vis_werror" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 -$as_echo_n "checking for simple visibility declarations... " >&6; } -if ${gl_cv_cc_visibility+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 +printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 +printf %s "checking for simple visibility declarations... " >&6; } +if test ${gl_cv_cc_visibility+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" if test $gl_cv_cc_vis_werror = yes; then @@ -48191,24 +48787,25 @@ extern __attribute__((__visibility__("hidden"))) int hiddenvar; void dummyfunc (void) {} int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_cc_visibility=yes -else +else $as_nop gl_cv_cc_visibility=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 -$as_echo "$gl_cv_cc_visibility" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 +printf "%s\n" "$gl_cv_cc_visibility" >&6; } if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 @@ -48217,9 +48814,7 @@ $as_echo "$gl_cv_cc_visibility" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_VISIBILITY $HAVE_VISIBILITY -_ACEOF +printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h @@ -48240,28 +48835,24 @@ fi -$as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h - for ac_header in stdint.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" -if test "x$ac_cv_header_stdint_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = xyes +then : + printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 -$as_echo_n "checking for SIZE_MAX... " >&6; } -if ${gl_cv_size_max+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 +printf %s "checking for SIZE_MAX... " >&6; } +if test ${gl_cv_size_max+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_size_max=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48277,22 +48868,25 @@ Found it _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Found it" >/dev/null 2>&1; then : + $EGREP "Found it" >/dev/null 2>&1 +then : gl_cv_size_max=yes fi -rm -f conftest* +rm -rf conftest* if test $gl_cv_size_max != yes; then if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include -#include "; then : +#include " +then : -else +else $as_nop size_t_bits_minus_1= fi - if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include " +then : -else +else $as_nop fits_in_uint= fi @@ -48305,17 +48899,18 @@ fi extern unsigned long foo; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : fits_in_uint=0 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" @@ -48328,13 +48923,11 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 -$as_echo "$gl_cv_size_max" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 +printf "%s\n" "$gl_cv_size_max" >&6; } if test "$gl_cv_size_max" != yes; then -cat >>confdefs.h <<_ACEOF -#define SIZE_MAX $gl_cv_size_max -_ACEOF +printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h fi @@ -48342,28 +48935,26 @@ _ACEOF gl_cv_func_snprintf_usable=no - for ac_func in snprintf -do : ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" -if test "x$ac_cv_func_snprintf" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SNPRINTF 1 -_ACEOF +if test "x$ac_cv_func_snprintf" = xyes +then : + printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h fi -done if test $ac_cv_func_snprintf = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 -$as_echo_n "checking whether snprintf respects a size of 1... " >&6; } -if ${gl_cv_func_snprintf_size1+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 +printf %s "checking whether snprintf respects a size of 1... " >&6; } +if test ${gl_cv_func_snprintf_size1+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on Android. linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;; @@ -48372,7 +48963,7 @@ else *) gl_cv_func_snprintf_size1="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -48398,9 +48989,10 @@ int main() return buf[1] != 'E'; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_snprintf_size1=yes -else +else $as_nop gl_cv_func_snprintf_size1=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -48409,8 +49001,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 -$as_echo "$gl_cv_func_snprintf_size1" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 +printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; } case "$gl_cv_func_snprintf_size1" in *yes) @@ -48419,13 +49011,15 @@ $as_echo "$gl_cv_func_snprintf_size1" >&6; } *yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 -$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } -if ${gl_cv_func_printf_positions+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 +printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } +if test ${gl_cv_func_printf_positions+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) @@ -48438,7 +49032,7 @@ else *) gl_cv_func_printf_positions="guessing yes";; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -48454,9 +49048,10 @@ int main () return (strcmp (buf, "55 33") != 0); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_printf_positions=yes -else +else $as_nop gl_cv_func_printf_positions=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -48465,8 +49060,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 -$as_echo "$gl_cv_func_printf_positions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 +printf "%s\n" "$gl_cv_func_printf_positions" >&6; } case "$gl_cv_func_printf_positions" in *yes) @@ -48522,15 +49117,13 @@ $as_echo "$gl_cv_func_printf_positions" >&6; } -$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define GNULIB_SNPRINTF 1 -_ACEOF +printf "%s\n" "#define GNULIB_SNPRINTF 1" >>confdefs.h @@ -48547,14 +49140,16 @@ _ACEOF #endif " -if test "x$ac_cv_type_socklen_t" = xyes; then : +if test "x$ac_cv_type_socklen_t" = xyes +then : -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 -$as_echo_n "checking for socklen_t equivalent... " >&6; } -if ${gl_cv_socklen_t_equiv+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 +printf %s "checking for socklen_t equivalent... " >&6; } +if test ${gl_cv_socklen_t_equiv+y} +then : + printf %s "(cached) " >&6 +else $as_nop # Systems have either "struct sockaddr *" or # "void *" as the second argument to getpeername gl_cv_socklen_t_equiv= @@ -48567,7 +49162,7 @@ else int getpeername (int, $arg2 *, $t *); int -main () +main (void) { $t len; getpeername (0, 0, &len); @@ -48575,10 +49170,11 @@ $t len; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_socklen_t_equiv="$t" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$gl_cv_socklen_t_equiv" != "" && break done test "$gl_cv_socklen_t_equiv" != "" && break @@ -48588,26 +49184,25 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5 -$as_echo "$gl_cv_socklen_t_equiv" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5 +printf "%s\n" "$gl_cv_socklen_t_equiv" >&6; } -cat >>confdefs.h <<_ACEOF -#define socklen_t $gl_cv_socklen_t_equiv -_ACEOF +printf "%s\n" "#define socklen_t $gl_cv_socklen_t_equiv" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 -$as_echo_n "checking for ssize_t... " >&6; } -if ${gt_cv_ssize_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 +printf %s "checking for ssize_t... " >&6; } +if test ${gt_cv_ssize_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int x = sizeof (ssize_t *) + sizeof (ssize_t); return !x; @@ -48615,18 +49210,19 @@ int x = sizeof (ssize_t *) + sizeof (ssize_t); return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_ssize_t=yes -else +else $as_nop gt_cv_ssize_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 -$as_echo "$gt_cv_ssize_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 +printf "%s\n" "$gt_cv_ssize_t" >&6; } if test $gt_cv_ssize_t = no; then -$as_echo "#define ssize_t int" >>confdefs.h +printf "%s\n" "#define ssize_t int" >>confdefs.h fi @@ -48639,17 +49235,19 @@ $as_echo "#define ssize_t int" >>confdefs.h REPLACE_STAT=1 ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 -$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } -if ${gl_cv_func_stat_file_slash+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 +printf %s "checking whether stat handles trailing slashes on files... " >&6; } +if test ${gl_cv_func_stat_file_slash+y} +then : + printf %s "(cached) " >&6 +else $as_nop touch conftest.tmp # Assume that if we have lstat, we can also check symlinks. if test $ac_cv_func_lstat = yes; then ln -s conftest.tmp conftest.lnk fi - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on Linux systems. linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; @@ -48659,13 +49257,13 @@ else *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int result = 0; struct stat st; @@ -48681,9 +49279,10 @@ int result = 0; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_stat_file_slash=yes -else +else $as_nop gl_cv_func_stat_file_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -48692,13 +49291,13 @@ fi rm -f conftest.tmp conftest.lnk fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 -$as_echo "$gl_cv_func_stat_file_slash" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 +printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; } case $gl_cv_func_stat_file_slash in *no) REPLACE_STAT=1 -$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h +printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h ;; esac case $host_os in @@ -48760,7 +49359,7 @@ fi -$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h @@ -48771,17 +49370,17 @@ $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 -$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } -if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 +printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; } +if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -48795,7 +49394,7 @@ else struct stat st; int -main () +main (void) { st.st_atim = ts; @@ -48804,51 +49403,49 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes -else +else $as_nop ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 -$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 +printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then -$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h +printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h fi -else +else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h -else +else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h -else +else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h fi @@ -48866,33 +49463,30 @@ fi ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h -else +else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h -else +else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h fi @@ -48903,11 +49497,12 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alignas and alignof" >&5 -$as_echo_n "checking for alignas and alignof... " >&6; } -if ${gl_cv_header_working_stdalign_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alignas and alignof" >&5 +printf %s "checking for alignas and alignof... " >&6; } +if test ${gl_cv_header_working_stdalign_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS=$CFLAGS for gl_working in "yes, keywords" "yes, macros"; do case $gl_working in #( @@ -48953,26 +49548,27 @@ esac #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_working_stdalign_h=$gl_working -else +else $as_nop gl_cv_header_working_stdalign_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS=$gl_save_CFLAGS test "$gl_cv_header_working_stdalign_h" != no && break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 -$as_echo "$gl_cv_header_working_stdalign_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 +printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; } GL_GENERATE_STDALIGN_H=false case $gl_cv_header_working_stdalign_h in #( @@ -48980,7 +49576,7 @@ $as_echo "$gl_cv_header_working_stdalign_h" >&6; } GL_GENERATE_STDALIGN_H=true ;; #( yes*keyword*) : -$as_echo "#define HAVE_C_ALIGNASOF 1" >>confdefs.h +printf "%s\n" "#define HAVE_C_ALIGNASOF 1" >>confdefs.h ;; #( *) : ;; @@ -49024,11 +49620,12 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5 -$as_echo_n "checking for bool, true, false... " >&6; } -if ${gl_cv_c_bool+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5 +printf %s "checking for bool, true, false... " >&6; } +if test ${gl_cv_c_bool+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -49038,18 +49635,19 @@ else extern bool b; bool b = true == false; _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_c_bool=yes -else +else $as_nop gl_cv_c_bool=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5 -$as_echo "$gl_cv_c_bool" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5 +printf "%s\n" "$gl_cv_c_bool" >&6; } if test "$gl_cv_c_bool" = yes; then -$as_echo "#define HAVE_C_BOOL 1" >>confdefs.h +printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h fi @@ -49251,15 +49849,13 @@ fi -$as_echo "#define GNULIB_TEST_FSCANF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define GNULIB_FSCANF 1 -_ACEOF +printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h @@ -49277,15 +49873,13 @@ _ACEOF -$as_echo "#define GNULIB_TEST_SCANF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define GNULIB_SCANF 1 -_ACEOF +printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h @@ -49303,7 +49897,7 @@ _ACEOF -$as_echo "#define GNULIB_TEST_FGETC 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h @@ -49322,7 +49916,7 @@ $as_echo "#define GNULIB_TEST_FGETC 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_GETC 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h @@ -49341,7 +49935,7 @@ $as_echo "#define GNULIB_TEST_GETC 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h @@ -49360,7 +49954,7 @@ $as_echo "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_FGETS 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h @@ -49379,7 +49973,7 @@ $as_echo "#define GNULIB_TEST_FGETS 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_FREAD 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h @@ -49398,7 +49992,7 @@ $as_echo "#define GNULIB_TEST_FREAD 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h @@ -49417,7 +50011,7 @@ $as_echo "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_PRINTF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h @@ -49436,7 +50030,7 @@ $as_echo "#define GNULIB_TEST_PRINTF 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h @@ -49455,7 +50049,7 @@ $as_echo "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h @@ -49474,7 +50068,7 @@ $as_echo "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_FPUTC 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h @@ -49493,7 +50087,7 @@ $as_echo "#define GNULIB_TEST_FPUTC 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_PUTC 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h @@ -49512,7 +50106,7 @@ $as_echo "#define GNULIB_TEST_PUTC 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h @@ -49531,7 +50125,7 @@ $as_echo "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_FPUTS 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h @@ -49550,7 +50144,7 @@ $as_echo "#define GNULIB_TEST_FPUTS 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_PUTS 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h @@ -49569,7 +50163,7 @@ $as_echo "#define GNULIB_TEST_PUTS 1" >>confdefs.h -$as_echo "#define GNULIB_TEST_FWRITE 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h @@ -49583,16 +50177,12 @@ $as_echo "#define GNULIB_TEST_FWRITE 1" >>confdefs.h - for ac_func in strcasecmp -do : ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" -if test "x$ac_cv_func_strcasecmp" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRCASECMP 1 -_ACEOF +if test "x$ac_cv_func_strcasecmp" = xyes +then : + printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h fi -done if test $ac_cv_func_strcasecmp = no; then HAVE_STRCASECMP=0 @@ -49600,32 +50190,26 @@ done - for ac_func in strncasecmp -do : ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" -if test "x$ac_cv_func_strncasecmp" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRNCASECMP 1 -_ACEOF +if test "x$ac_cv_func_strncasecmp" = xyes +then : + printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h fi -done if test $ac_cv_func_strncasecmp = yes; then HAVE_STRNCASECMP=1 else HAVE_STRNCASECMP=0 fi - ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" -if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : + ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_strncasecmp" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRNCASECMP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_strncasecmp = no; then HAVE_DECL_STRNCASECMP=0 @@ -49677,12 +50261,14 @@ fi if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works in linear time" >&5 -$as_echo_n "checking whether strcasestr works in linear time... " >&6; } -if ${gl_cv_func_strcasestr_linear+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works in linear time" >&5 +printf %s "checking whether strcasestr works in linear time... " >&6; } +if test ${gl_cv_func_strcasestr_linear+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -49702,15 +50288,16 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky user" >/dev/null 2>&1; then : + $EGREP "Lucky user" >/dev/null 2>&1 +then : gl_cv_func_strcasestr_linear="guessing yes" -else +else $as_nop gl_cv_func_strcasestr_linear="$gl_cross_guess_normal" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -49721,7 +50308,7 @@ else static void quit (int sig) { _exit (sig + 128); } int -main () +main (void) { int result = 0; @@ -49753,9 +50340,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_strcasestr_linear=yes -else +else $as_nop gl_cv_func_strcasestr_linear=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -49764,8 +50352,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_linear" >&5 -$as_echo "$gl_cv_func_strcasestr_linear" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_linear" >&5 +printf "%s\n" "$gl_cv_func_strcasestr_linear" >&6; } case "$gl_cv_func_strcasestr_linear" in *yes) ;; *) @@ -49795,16 +50383,12 @@ $as_echo "$gl_cv_func_strcasestr_linear" >&6; } - for ac_func in strcasestr -do : ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" -if test "x$ac_cv_func_strcasestr" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRCASESTR 1 -_ACEOF +if test "x$ac_cv_func_strcasestr" = xyes +then : + printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h fi -done if test $ac_cv_func_strcasestr = no; then HAVE_STRCASESTR=0 @@ -49812,12 +50396,14 @@ done if test $REPLACE_MEMCHR = 1; then REPLACE_STRCASESTR=1 else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5 -$as_echo_n "checking whether strcasestr works... " >&6; } -if ${gl_cv_func_strcasestr_works_always+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5 +printf %s "checking whether strcasestr works... " >&6; } +if test ${gl_cv_func_strcasestr_works_always+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -49839,15 +50425,16 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky user" >/dev/null 2>&1; then : + $EGREP "Lucky user" >/dev/null 2>&1 +then : gl_cv_func_strcasestr_works_always="guessing yes" -else +else $as_nop gl_cv_func_strcasestr_works_always="$gl_cross_guess_normal" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -49863,7 +50450,7 @@ else #define NEEDLE P P P P P int -main () +main (void) { return !!strcasestr (HAYSTACK, NEEDLE); @@ -49871,9 +50458,10 @@ return !!strcasestr (HAYSTACK, NEEDLE); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_strcasestr_works_always=yes -else +else $as_nop gl_cv_func_strcasestr_works_always=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -49882,8 +50470,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5 -$as_echo "$gl_cv_func_strcasestr_works_always" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5 +printf "%s\n" "$gl_cv_func_strcasestr_works_always" >&6; } case "$gl_cv_func_strcasestr_works_always" in *yes) ;; *) @@ -49928,7 +50516,7 @@ $as_echo "$gl_cv_func_strcasestr_works_always" >&6; } -$as_echo "#define GNULIB_TEST_STRCASESTR 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_STRCASESTR 1" >>confdefs.h @@ -49938,12 +50526,14 @@ $as_echo "#define GNULIB_TEST_STRCASESTR 1" >>confdefs.h if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 -$as_echo_n "checking for working strerror function... " >&6; } -if ${gl_cv_func_working_strerror+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 +printf %s "checking for working strerror function... " >&6; } +if test ${gl_cv_func_working_strerror+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; @@ -49953,22 +50543,23 @@ else *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { if (!*strerror (-2)) return 1; ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_working_strerror=yes -else +else $as_nop gl_cv_func_working_strerror=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -49977,8 +50568,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 -$as_echo "$gl_cv_func_working_strerror" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 +printf "%s\n" "$gl_cv_func_working_strerror" >&6; } case "$gl_cv_func_working_strerror" in *yes) ;; *) @@ -50006,9 +50597,7 @@ fi -cat >>confdefs.h <<_ACEOF -#define GNULIB_STRERROR 1 -_ACEOF +printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h @@ -50031,7 +50620,7 @@ _ACEOF -$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h @@ -50058,18 +50647,13 @@ fi if test $ac_cv_header_sys_socket_h != yes; then - for ac_header in winsock2.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" -if test "x$ac_cv_header_winsock2_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINSOCK2_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes +then : + printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi -done - fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 @@ -50107,16 +50691,12 @@ fi - for ac_func in strsep -do : ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" -if test "x$ac_cv_func_strsep" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRSEP 1 -_ACEOF +if test "x$ac_cv_func_strsep" = xyes +then : + printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h fi -done if test $ac_cv_func_strsep = no; then HAVE_STRSEP=0 @@ -50161,7 +50741,7 @@ fi -$as_echo "#define GNULIB_TEST_STRSEP 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_STRSEP 1" >>confdefs.h @@ -50171,12 +50751,14 @@ $as_echo "#define GNULIB_TEST_STRSEP 1" >>confdefs.h if test $REPLACE_MEMCHR = 1; then REPLACE_STRSTR=1 else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5 -$as_echo_n "checking whether strstr works... " >&6; } -if ${gl_cv_func_strstr_works_always+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5 +printf %s "checking whether strstr works... " >&6; } +if test ${gl_cv_func_strstr_works_always+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50198,15 +50780,16 @@ else _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky user" >/dev/null 2>&1; then : + $EGREP "Lucky user" >/dev/null 2>&1 +then : gl_cv_func_strstr_works_always="guessing yes" -else +else $as_nop gl_cv_func_strstr_works_always="$gl_cross_guess_normal" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50222,7 +50805,7 @@ else #define NEEDLE P P P P P int -main () +main (void) { return !!strstr (HAYSTACK, NEEDLE); @@ -50230,9 +50813,10 @@ return !!strstr (HAYSTACK, NEEDLE); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_strstr_works_always=yes -else +else $as_nop gl_cv_func_strstr_works_always=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -50241,8 +50825,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5 -$as_echo "$gl_cv_func_strstr_works_always" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5 +printf "%s\n" "$gl_cv_func_strstr_works_always" >&6; } case "$gl_cv_func_strstr_works_always" in *yes) ;; *) @@ -50283,7 +50867,7 @@ $as_echo "$gl_cv_func_strstr_works_always" >&6; } -$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_STRSTR 1" >>confdefs.h @@ -50329,7 +50913,7 @@ $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h - ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's provides the functions asctime_r, ctime_r, + ac_fn_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ #if defined __MINGW32__ @@ -50337,16 +50921,14 @@ $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h #endif #include -" -if test "x$ac_cv_have_decl_localtime_r" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_localtime_r" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_LOCALTIME_R $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_LOCALTIME_R $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_localtime_r = no; then HAVE_DECL_LOCALTIME_R=0 @@ -50355,11 +50937,12 @@ _ACEOF if test $ac_cv_func_localtime_r = yes; then HAVE_LOCALTIME_R=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 -$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; } -if ${gl_cv_time_r_posix+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 +printf %s "checking whether localtime_r is compatible with its POSIX signature... " >&6; } +if test ${gl_cv_time_r_posix+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* mingw's provides the functions asctime_r, ctime_r, @@ -50371,7 +50954,7 @@ else #include int -main () +main (void) { /* We don't need to append 'restrict's to the argument types, even though the POSIX signature has the 'restrict's, @@ -50386,16 +50969,17 @@ main () } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_time_r_posix=yes -else +else $as_nop gl_cv_time_r_posix=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 -$as_echo "$gl_cv_time_r_posix" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 +printf "%s\n" "$gl_cv_time_r_posix" >&6; } if test $gl_cv_time_r_posix = yes; then REPLACE_LOCALTIME_R=0 else @@ -50403,11 +50987,12 @@ $as_echo "$gl_cv_time_r_posix" >&6; } fi else HAVE_LOCALTIME_R=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5 -$as_echo_n "checking whether localtime_r exists as an inline function... " >&6; } -if ${gl_cv_func_localtime_r_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5 +printf %s "checking whether localtime_r exists as an inline function... " >&6; } +if test ${gl_cv_func_localtime_r_inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* mingw's provides the functions asctime_r, ctime_r, @@ -50419,7 +51004,7 @@ else #include int -main () +main (void) { time_t a; struct tm r; @@ -50430,17 +51015,18 @@ time_t a; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_cv_func_localtime_r_inline=yes -else +else $as_nop gl_cv_func_localtime_r_inline=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5 -$as_echo "$gl_cv_func_localtime_r_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5 +printf "%s\n" "$gl_cv_func_localtime_r_inline" >&6; } if test $gl_cv_func_localtime_r_inline = yes; then REPLACE_LOCALTIME_R=1 fi @@ -50482,7 +51068,7 @@ fi -$as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_TIME_R 1" >>confdefs.h @@ -50536,7 +51122,7 @@ fi -$as_echo "#define GNULIB_TEST_TIMEGM 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_TIMEGM 1" >>confdefs.h @@ -50570,26 +51156,23 @@ $as_echo "#define GNULIB_TEST_TIMEGM 1" >>confdefs.h if test $ac_cv_have_decl_unsetenv = no; then HAVE_DECL_UNSETENV=0 fi - for ac_func in unsetenv -do : ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" -if test "x$ac_cv_func_unsetenv" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_UNSETENV 1 -_ACEOF +if test "x$ac_cv_func_unsetenv" = xyes +then : + printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h fi -done if test $ac_cv_func_unsetenv = no; then HAVE_UNSETENV=0 else HAVE_UNSETENV=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 -$as_echo_n "checking for unsetenv() return type... " >&6; } -if ${gt_cv_func_unsetenv_ret+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 +printf %s "checking for unsetenv() return type... " >&6; } +if test ${gt_cv_func_unsetenv_ret+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50603,35 +51186,38 @@ extern int unsetenv (const char *name); int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_func_unsetenv_ret='int' -else +else $as_nop gt_cv_func_unsetenv_ret='void' fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 -$as_echo "$gt_cv_func_unsetenv_ret" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 +printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; } if test $gt_cv_func_unsetenv_ret = 'void'; then -$as_echo "#define VOID_UNSETENV 1" >>confdefs.h +printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h REPLACE_UNSETENV=1 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5 -$as_echo_n "checking whether unsetenv obeys POSIX... " >&6; } -if ${gl_cv_func_unsetenv_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5 +printf %s "checking whether unsetenv obeys POSIX... " >&6; } +if test ${gl_cv_func_unsetenv_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on glibc systems. *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;; @@ -50639,7 +51225,7 @@ else *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50651,7 +51237,7 @@ else $gl_mda_defines int -main () +main (void) { char entry1[] = "a=1"; @@ -50674,9 +51260,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_unsetenv_works=yes -else +else $as_nop gl_cv_func_unsetenv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -50685,8 +51272,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5 -$as_echo "$gl_cv_func_unsetenv_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5 +printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; } case "$gl_cv_func_unsetenv_works" in *yes) ;; *) @@ -50732,86 +51319,89 @@ fi -$as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 -$as_echo_n "checking for variable-length arrays... " >&6; } -if ${ac_cv_c_vararrays+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 +printf %s "checking for variable-length arrays... " >&6; } +if test ${ac_cv_c_vararrays+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC_NO_VLA__ - defined - #endif + defined + #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "defined" >/dev/null 2>&1; then : + $EGREP "defined" >/dev/null 2>&1 +then : ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined' -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Test for VLA support. This test is partly inspired - from examples in the C standard. Use at least two VLA - functions to detect the GCC 3.4.3 bug described in: - https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html - */ - #ifdef __STDC_NO_VLA__ - syntax error; - #else - extern int n; - int B[100]; - int fvla (int m, int C[m][m]); + from examples in the C standard. Use at least two VLA + functions to detect the GCC 3.4.3 bug described in: + https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html + */ + #ifdef __STDC_NO_VLA__ + syntax error; + #else + extern int n; + int B[100]; + int fvla (int m, int C[m][m]); - int - simple (int count, int all[static count]) - { - return all[count - 1]; - } + int + simple (int count, int all[static count]) + { + return all[count - 1]; + } - int - fvla (int m, int C[m][m]) - { - typedef int VLA[m][m]; - VLA x; - int D[m]; - static int (*q)[m] = &B; - int (*s)[n] = q; - return C && &x[0][0] == &D[0] && &D[0] == s[0]; - } - #endif + int + fvla (int m, int C[m][m]) + { + typedef int VLA[m][m]; + VLA x; + int D[m]; + static int (*q)[m] = &B; + int (*s)[n] = q; + return C && &x[0][0] == &D[0] && &D[0] == s[0]; + } + #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_vararrays=yes -else +else $as_nop ac_cv_c_vararrays=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 -$as_echo "$ac_cv_c_vararrays" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 +printf "%s\n" "$ac_cv_c_vararrays" >&6; } if test "$ac_cv_c_vararrays" = yes; then -$as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h +printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h elif test "$ac_cv_c_vararrays" = no; then -$as_echo "#define __STDC_NO_VLA__ 1" >>confdefs.h +printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h fi @@ -50863,7 +51453,7 @@ $as_echo "#define __STDC_NO_VLA__ 1" >>confdefs.h if test $ac_cv_func_vasnprintf = yes; then -$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h +printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h fi @@ -50876,11 +51466,12 @@ $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" -if test "x$ac_cv_type_ptrdiff_t" = xyes; then : +if test "x$ac_cv_type_ptrdiff_t" = xyes +then : -else +else $as_nop -$as_echo "#define ptrdiff_t long" >>confdefs.h +printf "%s\n" "#define ptrdiff_t long" >>confdefs.h fi @@ -50894,16 +51485,12 @@ fi fi - for ac_func in vasprintf -do : ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" -if test "x$ac_cv_func_vasprintf" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_VASPRINTF 1 -_ACEOF +if test "x$ac_cv_func_vasprintf" = xyes +then : + printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h fi -done if test $ac_cv_func_vasprintf = no; then @@ -50958,7 +51545,7 @@ done -$as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h @@ -50973,28 +51560,26 @@ $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h gl_cv_func_vsnprintf_usable=no - for ac_func in vsnprintf -do : ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" -if test "x$ac_cv_func_vsnprintf" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_VSNPRINTF 1 -_ACEOF +if test "x$ac_cv_func_vsnprintf" = xyes +then : + printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h fi -done if test $ac_cv_func_vsnprintf = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 -$as_echo_n "checking whether snprintf respects a size of 1... " >&6; } -if ${gl_cv_func_snprintf_size1+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 +printf %s "checking whether snprintf respects a size of 1... " >&6; } +if test ${gl_cv_func_snprintf_size1+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess yes on Android. linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;; @@ -51003,7 +51588,7 @@ else *) gl_cv_func_snprintf_size1="guessing yes" ;; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -51029,9 +51614,10 @@ int main() return buf[1] != 'E'; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_snprintf_size1=yes -else +else $as_nop gl_cv_func_snprintf_size1=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -51040,8 +51626,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 -$as_echo "$gl_cv_func_snprintf_size1" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 +printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; } case "$gl_cv_func_snprintf_size1" in *yes) @@ -51050,13 +51636,15 @@ $as_echo "$gl_cv_func_snprintf_size1" >&6; } *yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 -$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } -if ${gl_cv_func_printf_positions+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 +printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } +if test ${gl_cv_func_printf_positions+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : case "$host_os" in netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) @@ -51069,7 +51657,7 @@ else *) gl_cv_func_printf_positions="guessing yes";; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -51085,9 +51673,10 @@ int main () return (strcmp (buf, "55 33") != 0); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_printf_positions=yes -else +else $as_nop gl_cv_func_printf_positions=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -51096,8 +51685,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 -$as_echo "$gl_cv_func_printf_positions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 +printf "%s\n" "$gl_cv_func_printf_positions" >&6; } case "$gl_cv_func_printf_positions" in *yes) @@ -51153,7 +51742,7 @@ $as_echo "$gl_cv_func_printf_positions" >&6; } -$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h @@ -51189,11 +51778,12 @@ $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 -$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } -if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } +if test ${gl_cv_func_mbrtowc_incomplete_state+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on AIX and OSF/1. @@ -51202,9 +51792,10 @@ else *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; esac if test $LOCALE_JA != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -51227,9 +51818,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_incomplete_state=yes -else +else $as_nop gl_cv_func_mbrtowc_incomplete_state=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -51238,9 +51830,10 @@ fi else if test $LOCALE_FR_UTF8 != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -51263,9 +51856,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_incomplete_state=yes -else +else $as_nop gl_cv_func_mbrtowc_incomplete_state=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -51276,17 +51870,18 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 -$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 -$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } -if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test ${gl_cv_func_mbrtowc_sanitycheck+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on Solaris 8. @@ -51295,9 +51890,10 @@ else *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; esac if test $LOCALE_ZH_CN != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -51324,9 +51920,10 @@ int main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_mbrtowc_sanitycheck=yes -else +else $as_nop gl_cv_func_mbrtowc_sanitycheck=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -51336,8 +51933,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 -$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } REPLACE_MBSTATE_T=0 case "$gl_cv_func_mbrtowc_incomplete_state" in @@ -51356,19 +51953,17 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } if test $ac_cv_func_wcrtomb = no; then HAVE_WCRTOMB=0 - ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" " + ac_fn_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" " #include -" -if test "x$ac_cv_have_decl_wcrtomb" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_wcrtomb" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_WCRTOMB $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_WCRTOMB $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_wcrtomb = yes; then REPLACE_WCRTOMB=1 @@ -51380,12 +51975,14 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb works in the C locale" >&5 -$as_echo_n "checking whether wcrtomb works in the C locale... " >&6; } -if ${gl_cv_func_wcrtomb_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb works in the C locale" >&5 +printf %s "checking whether wcrtomb works in the C locale... " >&6; } +if test ${gl_cv_func_wcrtomb_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : case "$host_os" in # Guess no on Android. linux*-android*) gl_cv_func_wcrtomb_works="guessing no";; @@ -51393,7 +51990,7 @@ else *) gl_cv_func_wcrtomb_works="guessing yes";; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -51411,9 +52008,10 @@ int main () return !(count == 1 && out[0] == 'a'); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_wcrtomb_works=yes -else +else $as_nop gl_cv_func_wcrtomb_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -51422,22 +52020,23 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_works" >&5 -$as_echo "$gl_cv_func_wcrtomb_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_works" >&5 +printf "%s\n" "$gl_cv_func_wcrtomb_works" >&6; } case "$gl_cv_func_wcrtomb_works" in *yes) ;; *) -$as_echo "#define WCRTOMB_C_LOCALE_BUG 1" >>confdefs.h +printf "%s\n" "#define WCRTOMB_C_LOCALE_BUG 1" >>confdefs.h REPLACE_WCRTOMB=1 ;; esac fi if test $REPLACE_WCRTOMB = 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5 -$as_echo_n "checking whether wcrtomb return value is correct... " >&6; } -if ${gl_cv_func_wcrtomb_retval+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5 +printf %s "checking whether wcrtomb return value is correct... " >&6; } +if test ${gl_cv_func_wcrtomb_retval+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$host_os" in # Guess no on AIX 4, OSF/1, Solaris, native Windows. @@ -51446,9 +52045,10 @@ else *) gl_cv_func_wcrtomb_retval="guessing yes" ;; esac if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : : -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -51488,9 +52088,10 @@ int main () return result; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gl_cv_func_wcrtomb_retval=yes -else +else $as_nop gl_cv_func_wcrtomb_retval=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -51500,12 +52101,12 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5 -$as_echo "$gl_cv_func_wcrtomb_retval" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5 +printf "%s\n" "$gl_cv_func_wcrtomb_retval" >&6; } case "$gl_cv_func_wcrtomb_retval" in *yes) ;; *) -$as_echo "#define WCRTOMB_RETVAL_BUG 1" >>confdefs.h +printf "%s\n" "#define WCRTOMB_RETVAL_BUG 1" >>confdefs.h REPLACE_WCRTOMB=1 ;; esac @@ -51553,7 +52154,7 @@ fi -$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h +printf "%s\n" "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h @@ -51627,32 +52228,23 @@ fi : -cat >>confdefs.h <<_ACEOF -#define GNULIB_XALLOC 1 -_ACEOF +printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define GNULIB_XALLOC_DIE 1 -_ACEOF +printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h - for ac_header in stdint.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" -if test "x$ac_cv_header_stdint_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = xyes +then : + printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h fi -done - # End of code from modules @@ -51707,7 +52299,7 @@ if test "$ac_cv_uname_s" = 'SunOS' -a \( "x$ac_cv_prog_ac_ct_AR" = "x" -o "$ac_c as_fn_error $? "No ar found for Solaris - is /usr/ccs/bin in PATH?" "$LINENO" 5 fi -ac_config_files="$ac_config_files Makefile tap/Makefile lib/Makefile plugins/Makefile lib/tests/Makefile plugins-root/Makefile plugins-scripts/Makefile plugins-scripts/utils.pm plugins-scripts/utils.sh test.pl pkg/solaris/pkginfo po/Makefile.in" +ac_config_files="$ac_config_files Makefile tap/Makefile lib/Makefile plugins/Makefile lib/tests/Makefile plugins-root/Makefile plugins-scripts/Makefile plugins-scripts/utils.pm plugins-scripts/utils.sh test.pl pkg/solaris/pkginfo" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -51736,8 +52328,8 @@ _ACEOF case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -51767,15 +52359,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; /^ac_cv_env_/b end t clear :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else @@ -51789,8 +52381,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;} fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -51807,7 +52399,7 @@ U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -51818,14 +52410,14 @@ LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 +printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' @@ -51847,12 +52439,14 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi # Check whether --enable-year2038 was given. -if test "${enable_year2038+set}" = set; then : +if test ${enable_year2038+y} +then : enableval=$enable_year2038; fi # Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then : +if test ${enable_largefile+y} +then : enableval=$enable_largefile; fi @@ -51941,8 +52535,8 @@ fi ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL @@ -51965,14 +52559,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -51982,46 +52578,46 @@ esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -52030,13 +52626,6 @@ if test "${PATH_SEPARATOR+set}" != set; then fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -52045,8 +52634,12 @@ case $0 in #(( for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -52058,30 +52651,10 @@ if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] @@ -52094,13 +52667,14 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -52127,18 +52701,20 @@ as_fn_unset () { eval $1=; unset $1;} } as_unset=as_fn_unset + # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -52150,12 +52726,13 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` @@ -52186,7 +52763,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -52208,6 +52785,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -52221,6 +52802,12 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -52262,7 +52849,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -52271,7 +52858,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -52333,8 +52920,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by monitoring-plugins $as_me 2.3.5, which was -generated by GNU Autoconf 2.69. Invocation command line was +This file was extended by monitoring-plugins $as_me 2.4.0, which was +generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -52396,14 +52983,16 @@ $config_commands Report bugs to the package provider." _ACEOF +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -monitoring-plugins config.status 2.3.5 -configured by $0, generated by GNU Autoconf 2.69, +monitoring-plugins config.status 2.4.0 +configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -52443,15 +53032,15 @@ do -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; + printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; + printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" @@ -52459,7 +53048,7 @@ do --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; @@ -52468,7 +53057,7 @@ do as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; + printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; @@ -52496,7 +53085,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" @@ -52510,7 +53099,7 @@ exec 5>>config.log sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - $as_echo "$ac_log" + printf "%s\n" "$ac_log" } >&5 _ACEOF @@ -52828,7 +53417,6 @@ do "plugins-scripts/utils.sh") CONFIG_FILES="$CONFIG_FILES plugins-scripts/utils.sh" ;; "test.pl") CONFIG_FILES="$CONFIG_FILES test.pl" ;; "pkg/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES pkg/solaris/pkginfo" ;; - "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac @@ -52840,9 +53428,9 @@ done # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers + test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree @@ -53178,7 +53766,7 @@ do esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done @@ -53186,17 +53774,17 @@ do # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | + ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac @@ -53213,7 +53801,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | +printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -53237,9 +53825,9 @@ $as_echo X"$ac_file" | case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -53301,8 +53889,8 @@ ac_sed_dataroot=' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' @@ -53346,9 +53934,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -53364,20 +53952,20 @@ which seems to be undefined. Please make sure it is defined" >&2;} # if test x"$ac_file" != x-; then { - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi @@ -53397,7 +53985,7 @@ $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$_am_arg" | +printf "%s\n" X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -53417,8 +54005,8 @@ $as_echo X"$_am_arg" | s/.*/./; q'`/stamp-h$_am_stamp_count ;; - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} + :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -53444,7 +54032,7 @@ esac for am_mf do # Strip MF so we end up with the name of the file. - am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` + am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line @@ -53456,7 +54044,7 @@ $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$am_mf" | +printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -53478,7 +54066,7 @@ $as_echo X"$am_mf" | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$am_mf" | +printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -53503,8 +54091,8 @@ $as_echo X/"$am_mf" | (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is @@ -53976,6 +54564,7 @@ _LT_EOF esac + ltmain="$ac_aux_dir/ltmain.sh" @@ -54140,8 +54729,8 @@ else fi if test x"$_lt_function_replace_fail" = x":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 -$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +printf "%s\n" "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi @@ -54233,7 +54822,9 @@ fi # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in - "$presentlang"*) useit=yes;; + "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*) + useit=yes + ;; esac done if test $useit = yes; then @@ -54295,8 +54886,8 @@ if test "$no_create" != yes; then $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi @@ -54318,3 +54909,4 @@ echo " --with-trusted-path: $with_trusted_path" echo " --enable-libtap: $enable_libtap" echo " --with-libcurl: $with_libcurl" echo " --with-uriparser: $with_uriparser" + diff --git a/configure.ac b/configure.ac index 7eed920..10ef688 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.64) -AC_INIT(monitoring-plugins,2.3.5) +AC_INIT(monitoring-plugins,2.4.0) AC_CONFIG_SRCDIR(NPTest.pm) AC_CONFIG_FILES([gl/Makefile]) AC_CONFIG_AUX_DIR(build-aux) @@ -1923,7 +1923,6 @@ AC_OUTPUT( plugins-scripts/utils.sh test.pl pkg/solaris/pkginfo - po/Makefile.in ) diff --git a/gl/Makefile.in b/gl/Makefile.in index 6ac6da9..71fd6f3 100644 --- a/gl/Makefile.in +++ b/gl/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -280,8 +280,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -294,7 +293,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -312,7 +310,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -656,8 +653,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp \ @@ -714,6 +709,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ DEFS = @DEFS@ @@ -733,6 +730,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -2104,6 +2102,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -4268,7 +4268,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/gl/m4/pid_t.m4 b/gl/m4/pid_t.m4 deleted file mode 100644 index 0fd7d0a..0000000 --- a/gl/m4/pid_t.m4 +++ /dev/null @@ -1,38 +0,0 @@ -# pid_t.m4 serial 4 -dnl Copyright (C) 2020-2023 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -# The following implementation works around a problem in autoconf <= 2.69. -m4_version_prereq([2.70], [], [ - -dnl Define pid_t if the headers don't define it. -AC_DEFUN([AC_TYPE_PID_T], -[ - AC_CHECK_TYPE([pid_t], - [], - [dnl On 64-bit native Windows, define it to the equivalent of 'intptr_t' - dnl (= 'long long' = '__int64'), because that is the return type - dnl of the _spawnv* functions - dnl - dnl and the argument type of the _cwait function - dnl . - dnl Otherwise (on 32-bit Windows and on old Unix platforms), define it - dnl to 'int'. - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[ - #if defined _WIN64 && !defined __CYGWIN__ - LLP64 - #endif - ]]) - ], - [gl_pid_type='int'], - [gl_pid_type='__int64']) - AC_DEFINE_UNQUOTED([pid_t], [$gl_pid_type], - [Define as a signed integer type capable of holding a process identifier.]) - ], - [AC_INCLUDES_DEFAULT]) -]) - -])# m4_version_prereq 2.70 diff --git a/gl/m4/std-gnu11.m4 b/gl/m4/std-gnu11.m4 deleted file mode 100644 index 4179470..0000000 --- a/gl/m4/std-gnu11.m4 +++ /dev/null @@ -1,829 +0,0 @@ -# Prefer GNU C11 and C++11 to earlier versions. -*- coding: utf-8 -*- - -# This implementation is taken from GNU Autoconf lib/autoconf/c.m4 -# commit 017d5ddd82854911f0119691d91ea8a1438824d6 -# dated Sun Apr 3 13:57:17 2016 -0700 -# This implementation will be obsolete once we can assume Autoconf 2.70 -# or later is installed everywhere a Gnulib program might be developed. - -m4_version_prereq([2.70], [], [ - - -# Copyright (C) 2001-2023 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# Written by David MacKenzie, with help from -# Akim Demaille, Paul Eggert, -# François Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, -# Roland McGrath, Noah Friedman, david d zuhn, and many others. - - -# AC_PROG_CC([COMPILER ...]) -# -------------------------- -# COMPILER ... is a space separated list of C compilers to search for. -# This just gives the user an opportunity to specify an alternative -# search list for the C compiler. -AC_DEFUN_ONCE([AC_PROG_CC], -[AC_LANG_PUSH(C)dnl -AC_ARG_VAR([CC], [C compiler command])dnl -AC_ARG_VAR([CFLAGS], [C compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -_AC_ARG_VAR_LIBS()dnl -_AC_ARG_VAR_CPPFLAGS()dnl -m4_ifval([$1], - [AC_CHECK_TOOLS(CC, [$1])], -[AC_CHECK_TOOL(CC, gcc) -if test -z "$CC"; then - dnl Here we want: - dnl AC_CHECK_TOOL(CC, cc) - dnl but without the check for a tool without the prefix. - dnl Until the check is removed from there, copy the code: - if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG(CC, [${ac_tool_prefix}cc], [${ac_tool_prefix}cc]) - fi -fi -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) -fi -if test -z "$CC"; then - AC_CHECK_TOOLS(CC, cl.exe) -fi -if test -z "$CC"; then - AC_CHECK_TOOL(CC, clang) -fi -]) - -test -z "$CC" && AC_MSG_FAILURE([no acceptable C compiler found in \$PATH]) - -# Provide some information about the compiler. -_AS_ECHO_LOG([checking for _AC_LANG compiler version]) -set X $ac_compile -ac_compiler=$[2] -for ac_option in --version -v -V -qversion -version; do - _AC_DO_LIMIT([$ac_compiler $ac_option >&AS_MESSAGE_LOG_FD]) -done - -m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl -m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl -_AC_LANG_COMPILER_GNU -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -_AC_PROG_CC_G -dnl -dnl Set ac_prog_cc_stdc to the supported C version. -dnl Also set the documented variable ac_cv_prog_cc_stdc; -dnl its name was chosen when it was cached, but it is no longer cached. -_AC_PROG_CC_C11([ac_prog_cc_stdc=c11 - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11], - [_AC_PROG_CC_C99([ac_prog_cc_stdc=c99 - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99], - [_AC_PROG_CC_C89([ac_prog_cc_stdc=c89 - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89], - [ac_prog_cc_stdc=no - ac_cv_prog_cc_stdc=no])])]) -dnl -AC_LANG_POP(C)dnl -])# AC_PROG_CC - - - -# AC_PROG_CXX([LIST-OF-COMPILERS]) -# -------------------------------- -# LIST-OF-COMPILERS is a space separated list of C++ compilers to search -# for (if not specified, a default list is used). This just gives the -# user an opportunity to specify an alternative search list for the C++ -# compiler. -# aCC HP-UX C++ compiler much better than `CC', so test before. -# FCC Fujitsu C++ compiler -# KCC KAI C++ compiler -# RCC Rational C++ -# xlC_r AIX C Set++ (with support for reentrant code) -# xlC AIX C Set++ -AC_DEFUN([AC_PROG_CXX], -[AC_LANG_PUSH(C++)dnl -AC_ARG_VAR([CXX], [C++ compiler command])dnl -AC_ARG_VAR([CXXFLAGS], [C++ compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -_AC_ARG_VAR_LIBS()dnl -_AC_ARG_VAR_CPPFLAGS()dnl -_AC_ARG_VAR_PRECIOUS([CCC])dnl -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - AC_CHECK_TOOLS(CXX, - [m4_default([$1], - [g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++])], - g++) - fi -fi -# Provide some information about the compiler. -_AS_ECHO_LOG([checking for _AC_LANG compiler version]) -set X $ac_compile -ac_compiler=$[2] -for ac_option in --version -v -V -qversion; do - _AC_DO_LIMIT([$ac_compiler $ac_option >&AS_MESSAGE_LOG_FD]) -done - -m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl -m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl -_AC_LANG_COMPILER_GNU -if test $ac_compiler_gnu = yes; then - GXX=yes -else - GXX= -fi -_AC_PROG_CXX_G -_AC_PROG_CXX_CXX11([ac_prog_cxx_stdcxx=cxx11 - ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11], - [_AC_PROG_CXX_CXX98([ac_prog_cxx_stdcxx=cxx98 - ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98], - [ac_prog_cxx_stdcxx=no - ac_cv_prog_cxx_stdcxx=no])]) -AC_LANG_POP(C++)dnl -])# AC_PROG_CXX - - -# _AC_C_STD_TRY(STANDARD, TEST-PROLOGUE, TEST-BODY, OPTION-LIST, -# ACTION-IF-AVAILABLE, ACTION-IF-UNAVAILABLE) -# -------------------------------------------------------------- -# Check whether the C compiler accepts features of STANDARD (e.g `c89', `c99') -# by trying to compile a program of TEST-PROLOGUE and TEST-BODY. If this fails, -# try again with each compiler option in the space-separated OPTION-LIST; if one -# helps, append it to CC. If eventually successful, run ACTION-IF-AVAILABLE, -# else ACTION-IF-UNAVAILABLE. -AC_DEFUN([_AC_C_STD_TRY], -[AC_MSG_CHECKING([for $CC option to enable ]m4_translit($1, [c], [C])[ features]) -AC_CACHE_VAL(ac_cv_prog_cc_$1, -[ac_cv_prog_cc_$1=no -ac_save_CC=$CC -AC_LANG_CONFTEST([AC_LANG_PROGRAM([$2], [$3])]) -for ac_arg in '' $4 -do - CC="$ac_save_CC $ac_arg" - _AC_COMPILE_IFELSE([], [ac_cv_prog_cc_$1=$ac_arg]) - test "x$ac_cv_prog_cc_$1" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC -])# AC_CACHE_VAL -ac_prog_cc_stdc_options= -case "x$ac_cv_prog_cc_$1" in - x) - AC_MSG_RESULT([none needed]) ;; - xno) - AC_MSG_RESULT([unsupported]) ;; - *) - ac_prog_cc_stdc_options=" $ac_cv_prog_cc_$1" - CC=$CC$ac_prog_cc_stdc_options - AC_MSG_RESULT([$ac_cv_prog_cc_$1]) ;; -esac -AS_IF([test "x$ac_cv_prog_cc_$1" != xno], [$5], [$6]) -])# _AC_C_STD_TRY - -# _AC_C_C99_TEST_HEADER -# --------------------- -# A C header suitable for testing for C99. -AC_DEFUN([_AC_C_C99_TEST_HEADER], -[[#include -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - your preprocessor is broken; -#endif -#if BIG_OK -#else - your preprocessor is broken; -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\0'; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static bool -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str = ""; - int number = 0; - float fnumber = 0; - - while (*format) - { - switch (*format++) - { - case 's': // string - str = va_arg (args_copy, const char *); - break; - case 'd': // int - number = va_arg (args_copy, int); - break; - case 'f': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); - - return *str && number && fnumber; -}]])# _AC_C_C99_TEST_HEADER - -# _AC_C_C99_TEST_BODY -# ------------------- -# A C body suitable for testing for C99, assuming the corresponding header. -AC_DEFUN([_AC_C_C99_TEST_BODY], -[[ - // Check bool. - _Bool success = false; - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - success &= test_varargs ("s, d' f .", "string", 65, 34.234); - test_varargs_macros (); - - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - - ni.number = 58; - - int dynamic_array[ni.number]; - dynamic_array[ni.number - 1] = 543; - - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); -]]) - -# _AC_PROG_CC_C99 ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE]) -# ---------------------------------------------------------------- -# If the C compiler is not in ISO C99 mode by default, try to add an -# option to output variable CC to make it so. This macro tries -# various options that select ISO C99 on some system or another. It -# considers the compiler to be in ISO C99 mode if it handles _Bool, -# // comments, flexible array members, inline, long long int, mixed -# code and declarations, named initialization of structs, restrict, -# va_copy, varargs macros, variable declarations in for loops and -# variable length arrays. -AC_DEFUN([_AC_PROG_CC_C99], -[_AC_C_STD_TRY([c99], -[_AC_C_C99_TEST_HEADER], -[_AC_C_C99_TEST_BODY], -dnl Try -dnl GCC -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999) -dnl IBM XL C -qlanglvl=extc1x (V12.1; does not pass C11 test) -dnl IBM XL C -qlanglvl=extc99 -dnl (pre-V12.1; unused restrictive mode: -qlanglvl=stdc99) -dnl HP cc -AC99 -dnl Intel ICC -std=c99, -c99 (deprecated) -dnl IRIX -c99 -dnl Solaris -D_STDC_C99= -dnl cc's -xc99 option uses linker magic to define the external -dnl symbol __xpg4 as if by "int __xpg4 = 1;", which enables C99 -dnl behavior for C library functions. This is not wanted here, -dnl because it means that a single module compiled with -xc99 -dnl alters C runtime behavior for the entire program, not for -dnl just the module. Instead, define the (private) symbol -dnl _STDC_C99, which suppresses a bogus failure in . -dnl The resulting compiler passes the test case here, and that's -dnl good enough. For more, please see the thread starting at: -dnl https://lists.gnu.org/r/autoconf/2010-12/msg00059.html -dnl Tru64 -c99 -dnl with extended modes being tried first. -[[-std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99]], [$1], [$2])[]dnl -])# _AC_PROG_CC_C99 - - -# _AC_PROG_CC_C11 ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE]) -# ---------------------------------------------------------------- -# If the C compiler is not in ISO C11 mode by default, try to add an -# option to output variable CC to make it so. This macro tries -# various options that select ISO C11 on some system or another. It -# considers the compiler to be in ISO C11 mode if it handles _Alignas, -# _Alignof, _Noreturn, _Static_assert, UTF-8 string literals, -# duplicate typedefs, and anonymous structures and unions. -AC_DEFUN([_AC_PROG_CC_C11], -[_AC_C_STD_TRY([c11], -[_AC_C_C99_TEST_HEADER[ -// Check _Alignas. -char _Alignas (double) aligned_as_double; -char _Alignas (0) no_special_alignment; -extern char aligned_as_int; -char _Alignas (0) _Alignas (int) aligned_as_int; - -// Check _Alignof. -enum -{ - int_alignment = _Alignof (int), - int_array_alignment = _Alignof (int[100]), - char_alignment = _Alignof (char) -}; -_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); - -// Check _Noreturn. -int _Noreturn does_not_return (void) { for (;;) continue; } - -// Check _Static_assert. -struct test_static_assert -{ - int x; - _Static_assert (sizeof (int) <= sizeof (long int), - "_Static_assert does not work in struct"); - long int y; -}; - -// Check UTF-8 literals. -#define u8 syntax error! -char const utf8_literal[] = u8"happens to be ASCII" "another string"; - -// Check duplicate typedefs. -typedef long *long_ptr; -typedef long int *long_ptr; -typedef long_ptr long_ptr; - -// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. -struct anonymous -{ - union { - struct { int i; int j; }; - struct { int k; long int l; } w; - }; - int m; -} v1; -]], -[_AC_C_C99_TEST_BODY[ - v1.i = 2; - v1.w.k = 5; - _Static_assert ((offsetof (struct anonymous, i) - == offsetof (struct anonymous, w.k)), - "Anonymous union alignment botch"); -]], -dnl Try -dnl GCC -std=gnu11 (unused restrictive mode: -std=c11) -dnl with extended modes being tried first. -dnl -dnl Do not try -qlanglvl=extc1x, because IBM XL C V12.1 (the latest version as -dnl of September 2012) does not pass the C11 test. For now, try extc1x when -dnl compiling the C99 test instead, since it enables _Static_assert and -dnl _Noreturn, which is a win. If -qlanglvl=extc11 or -qlanglvl=extc1x passes -dnl the C11 test in some future version of IBM XL C, we'll add it here, -dnl preferably extc11. -[[-std=gnu11]], [$1], [$2])[]dnl -])# _AC_PROG_CC_C11 - - -# AC_PROG_CC_C89 -# -------------- -# Do not use AU_ALIAS here and in AC_PROG_CC_C99 and AC_PROG_CC_STDC, -# as that'd be incompatible with how Automake redefines AC_PROG_CC. See -# . -AU_DEFUN([AC_PROG_CC_C89], - [AC_REQUIRE([AC_PROG_CC])], - [$0 is obsolete; use AC_PROG_CC] -) - -# AC_PROG_CC_C99 -# -------------- -AU_DEFUN([AC_PROG_CC_C99], - [AC_REQUIRE([AC_PROG_CC])], - [$0 is obsolete; use AC_PROG_CC] -) - -# AC_PROG_CC_STDC -# --------------- -AU_DEFUN([AC_PROG_CC_STDC], - [AC_REQUIRE([AC_PROG_CC])], - [$0 is obsolete; use AC_PROG_CC] -) - - -# AC_C_PROTOTYPES -# --------------- -# Check if the C compiler supports prototypes, included if it needs -# options. -AC_DEFUN([AC_C_PROTOTYPES], -[AC_REQUIRE([AC_PROG_CC])dnl -if test "$ac_prog_cc_stdc" != no; then - AC_DEFINE(PROTOTYPES, 1, - [Define to 1 if the C compiler supports function prototypes.]) - AC_DEFINE(__PROTOTYPES, 1, - [Define like PROTOTYPES; this can be used by system headers.]) -fi -])# AC_C_PROTOTYPES - - -# _AC_CXX_STD_TRY(STANDARD, TEST-PROLOGUE, TEST-BODY, OPTION-LIST, -# ACTION-IF-AVAILABLE, ACTION-IF-UNAVAILABLE) -# ---------------------------------------------------------------- -# Check whether the C++ compiler accepts features of STANDARD (e.g -# `cxx98', `cxx11') by trying to compile a program of TEST-PROLOGUE -# and TEST-BODY. If this fails, try again with each compiler option -# in the space-separated OPTION-LIST; if one helps, append it to CXX. -# If eventually successful, run ACTION-IF-AVAILABLE, else -# ACTION-IF-UNAVAILABLE. -AC_DEFUN([_AC_CXX_STD_TRY], -[AC_MSG_CHECKING([for $CXX option to enable ]m4_translit(m4_translit($1, [x], [+]), [a-z], [A-Z])[ features]) -AC_LANG_PUSH(C++)dnl -AC_CACHE_VAL(ac_cv_prog_cxx_$1, -[ac_cv_prog_cxx_$1=no -ac_save_CXX=$CXX -AC_LANG_CONFTEST([AC_LANG_PROGRAM([$2], [$3])]) -for ac_arg in '' $4 -do - CXX="$ac_save_CXX $ac_arg" - _AC_COMPILE_IFELSE([], [ac_cv_prog_cxx_$1=$ac_arg]) - test "x$ac_cv_prog_cxx_$1" != "xno" && break -done -rm -f conftest.$ac_ext -CXX=$ac_save_CXX -])# AC_CACHE_VAL -ac_prog_cxx_stdcxx_options= -case "x$ac_cv_prog_cxx_$1" in - x) - AC_MSG_RESULT([none needed]) ;; - xno) - AC_MSG_RESULT([unsupported]) ;; - *) - ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_$1" - CXX=$CXX$ac_prog_cxx_stdcxx_options - AC_MSG_RESULT([$ac_cv_prog_cxx_$1]) ;; -esac -AC_LANG_POP(C++)dnl -AS_IF([test "x$ac_cv_prog_cxx_$1" != xno], [$5], [$6]) -])# _AC_CXX_STD_TRY - -# _AC_CXX_CXX98_TEST_HEADER -# ------------------------- -# A C++ header suitable for testing for CXX98. -AC_DEFUN([_AC_CXX_CXX98_TEST_HEADER], -[[ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace test { - typedef std::vector string_vec; - typedef std::pair map_value; - typedef std::map map_type; - typedef std::set set_type; - - template - class printer { - public: - printer(std::ostringstream& os): os(os) {} - void operator() (T elem) { os << elem << std::endl; } - private: - std::ostringstream& os; - }; -} -]])# _AC_CXX_CXX98_TEST_HEADER - -# _AC_CXX_CXX98_TEST_BODY -# ----------------------- -# A C++ body suitable for testing for CXX98, assuming the corresponding header. -AC_DEFUN([_AC_CXX_CXX98_TEST_BODY], -[[ - -try { - // Basic string. - std::string teststr("ASCII text"); - teststr += " string"; - - // Simple vector. - test::string_vec testvec; - testvec.push_back(teststr); - testvec.push_back("foo"); - testvec.push_back("bar"); - if (testvec.size() != 3) { - throw std::runtime_error("vector size is not 1"); - } - - // Dump vector into stringstream and obtain string. - std::ostringstream os; - for (test::string_vec::const_iterator i = testvec.begin(); - i != testvec.end(); ++i) { - if (i + 1 != testvec.end()) { - os << teststr << '\n'; - } - } - // Check algorithms work. - std::for_each(testvec.begin(), testvec.end(), test::printer(os)); - std::string os_out = os.str(); - - // Test pair and map. - test::map_type testmap; - testmap.insert(std::make_pair(std::string("key"), - std::make_pair(53,false))); - - // Test set. - int values[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; - test::set_type testset(values, values + sizeof(values)/sizeof(values[0])); - std::list testlist(testset.begin(), testset.end()); - std::copy(testset.begin(), testset.end(), std::back_inserter(testlist)); -} catch (const std::exception& e) { - std::cerr << "Caught exception: " << e.what() << std::endl; - - // Test fstream - std::ofstream of("test.txt"); - of << "Test ASCII text\n" << std::flush; - of << "N= " << std::hex << std::setw(8) << std::left << 534 << std::endl; - of.close(); -} -std::exit(0); -]]) - -# _AC_CXX_CXX11_TEST_HEADER -# ------------------------- -# A C++ header suitable for testing for CXX11. -AC_DEFUN([_AC_CXX_CXX11_TEST_HEADER], -[[ -#include -#include -#include -#include -#include -#include -#include - -namespace cxx11test -{ - typedef std::shared_ptr sptr; - typedef std::weak_ptr wptr; - - typedef std::tuple tp; - typedef std::array int_array; - - constexpr int get_val() { return 20; } - - struct testinit - { - int i; - double d; - }; - - class delegate { - public: - delegate(int n) : n(n) {} - delegate(): delegate(2354) {} - - virtual int getval() { return this->n; }; - protected: - int n; - }; - - class overridden : public delegate { - public: - overridden(int n): delegate(n) {} - virtual int getval() override final { return this->n * 2; } - }; - - class nocopy { - public: - nocopy(int i): i(i) {} - nocopy() = default; - nocopy(const nocopy&) = delete; - nocopy & operator=(const nocopy&) = delete; - private: - int i; - }; -} -]])# _AC_CXX_CXX11_TEST_HEADER - -# _AC_CXX_CXX11_TEST_BODY -# ----------------------- -# A C++ body suitable for testing for CXX11, assuming the corresponding header. -AC_DEFUN([_AC_CXX_CXX11_TEST_BODY], -[[ -{ - // Test auto and decltype - std::deque d; - d.push_front(43); - d.push_front(484); - d.push_front(3); - d.push_front(844); - int total = 0; - for (auto i = d.begin(); i != d.end(); ++i) { total += *i; } - - auto a1 = 6538; - auto a2 = 48573953.4; - auto a3 = "String literal"; - - decltype(a2) a4 = 34895.034; -} -{ - // Test constexpr - short sa[cxx11test::get_val()] = { 0 }; -} -{ - // Test initializer lists - cxx11test::testinit il = { 4323, 435234.23544 }; -} -{ - // Test range-based for and lambda - cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; - for (int &x : array) { x += 23; } - std::for_each(array.begin(), array.end(), [](int v1){ std::cout << v1; }); -} -{ - using cxx11test::sptr; - using cxx11test::wptr; - - sptr sp(new std::string("ASCII string")); - wptr wp(sp); - sptr sp2(wp); -} -{ - cxx11test::tp tuple("test", 54, 45.53434); - double d = std::get<2>(tuple); - std::string s; - int i; - std::tie(s,i,d) = tuple; -} -{ - static std::regex filename_regex("^_?([a-z0-9_.]+-)+[a-z0-9]+$"); - std::string testmatch("Test if this string matches"); - bool match = std::regex_search(testmatch, filename_regex); -} -{ - cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; - cxx11test::int_array::size_type size = array.size(); -} -{ - // Test constructor delegation - cxx11test::delegate d1; - cxx11test::delegate d2(); - cxx11test::delegate d3(45); -} -{ - // Test override and final - cxx11test::overridden o1(55464); -} -{ - // Test nullptr - char *c = nullptr; -} -{ - // Test template brackets - std::vector> v1; -} -{ - // Unicode literals - char const *utf8 = u8"UTF-8 string \u2500"; - char16_t const *utf16 = u"UTF-8 string \u2500"; - char32_t const *utf32 = U"UTF-32 string \u2500"; -} -]]) - -# _AC_PROG_CXX_CXX98 ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE]) -# ------------------------------------------------------------------- - -# If the C++ compiler is not in ISO C++98 mode by default, try to add -# an option to output variable CXX to make it so. This macro tries -# various options that select ISO C++98 on some system or another. It -# considers the compiler to be in ISO C++98 mode if it handles basic -# features of the std namespace including: string, containers (list, -# map, set, vector), streams (fstreams, iostreams, stringstreams, -# iomanip), pair, exceptions and algorithms. - - -AC_DEFUN([_AC_PROG_CXX_CXX98], -[_AC_CXX_STD_TRY([cxx98], -[_AC_CXX_CXX98_TEST_HEADER], -[_AC_CXX_CXX98_TEST_BODY], -dnl Try -dnl GCC -std=gnu++98 (unused restrictive mode: -std=c++98) -dnl IBM XL C -qlanglvl=extended -dnl HP aC++ -AA -dnl Intel ICC -std=gnu++98 -dnl Solaris N/A (default) -dnl Tru64 N/A (default, but -std gnu could be used) -dnl with extended modes being tried first. -[[-std=gnu++98 -std=c++98 -qlanglvl=extended -AA]], [$1], [$2])[]dnl -])# _AC_PROG_CXX_CXX98 - -# _AC_PROG_CXX_CXX11 ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE]) -# ------------------------------------------------------------------- -# If the C++ compiler is not in ISO CXX11 mode by default, try to add -# an option to output variable CXX to make it so. This macro tries -# various options that select ISO C++11 on some system or another. It -# considers the compiler to be in ISO C++11 mode if it handles all the -# tests from the C++98 checks, plus the following: Language features -# (auto, constexpr, decltype, default/deleted constructors, delegate -# constructors, final, initializer lists, lambda functions, nullptr, -# override, range-based for loops, template brackets without spaces, -# unicode literals) and library features (array, memory (shared_ptr, -# weak_ptr), regex and tuple types). -AC_DEFUN([_AC_PROG_CXX_CXX11], -[_AC_CXX_STD_TRY([cxx11], -[_AC_CXX_CXX11_TEST_HEADER -_AC_CXX_CXX98_TEST_HEADER], -[_AC_CXX_CXX11_TEST_BODY -_AC_CXX_CXX98_TEST_BODY], -dnl Try -dnl GCC -std=gnu++11 (unused restrictive mode: -std=c++11) [and 0x variants] -dnl IBM XL C -qlanglvl=extended0x -dnl (pre-V12.1; unused restrictive mode: -qlanglvl=stdcxx11) -dnl HP aC++ -AA -dnl Intel ICC -std=c++11 -std=c++0x -dnl Solaris N/A (no support) -dnl Tru64 N/A (no support) -dnl with extended modes being tried first. -[[-std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA]], [$1], [$2])[]dnl -])# _AC_PROG_CXX_CXX11 - - -])# m4_version_prereq diff --git a/gl/m4/vararrays.m4 b/gl/m4/vararrays.m4 deleted file mode 100644 index fd6230c..0000000 --- a/gl/m4/vararrays.m4 +++ /dev/null @@ -1,72 +0,0 @@ -# Check for variable-length arrays. - -# serial 6 - -# From Paul Eggert - -# Copyright (C) 2001, 2009-2023 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -m4_version_prereq([2.70], [], [ - -# AC_C_VARARRAYS -# -------------- -# Check whether the C compiler supports variable-length arrays. -AC_DEFUN([AC_C_VARARRAYS], -[ - AC_CACHE_CHECK([for variable-length arrays], - ac_cv_c_vararrays, - [AC_EGREP_CPP([defined], - [#ifdef __STDC_NO_VLA__ - defined - #endif - ], - [ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'], - [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[/* Test for VLA support. This test is partly inspired - from examples in the C standard. Use at least two VLA - functions to detect the GCC 3.4.3 bug described in: - https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html - */ - #ifdef __STDC_NO_VLA__ - syntax error; - #else - extern int n; - int B[100]; - int fvla (int m, int C[m][m]); - - int - simple (int count, int all[static count]) - { - return all[count - 1]; - } - - int - fvla (int m, int C[m][m]) - { - typedef int VLA[m][m]; - VLA x; - int D[m]; - static int (*q)[m] = &B; - int (*s)[n] = q; - return C && &x[0][0] == &D[0] && &D[0] == s[0]; - } - #endif - ]])], - [ac_cv_c_vararrays=yes], - [ac_cv_c_vararrays=no])])]) - if test "$ac_cv_c_vararrays" = yes; then - dnl This is for compatibility with Autoconf 2.61-2.69. - AC_DEFINE([HAVE_C_VARARRAYS], 1, - [Define to 1 if C supports variable-length arrays.]) - elif test "$ac_cv_c_vararrays" = no; then - AC_DEFINE([__STDC_NO_VLA__], 1, - [Define to 1 if C does not support variable-length arrays, and - if the compiler does not already define this.]) - fi -]) - -]) diff --git a/lib/Makefile.in b/lib/Makefile.in index 22dc3f9..6b13d0c 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -165,8 +165,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -179,7 +178,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -197,7 +195,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -312,8 +309,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp \ @@ -370,6 +365,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ DEFS = @DEFS@ @@ -389,6 +386,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -1760,6 +1758,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -1974,7 +1974,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/lib/parse_ini.c b/lib/parse_ini.c index 0cc864a..09c0dc4 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c @@ -36,6 +36,7 @@ */ typedef struct { char *file; + bool file_string_on_heap; char *stanza; } np_ini_info; @@ -95,16 +96,22 @@ parse_locator(const char *locator, const char *def_stanza, np_ini_info *i) i->stanza = malloc(sizeof(char) * (stanza_len + 1)); strncpy(i->stanza, locator, stanza_len); i->stanza[stanza_len] = '\0'; - } else /* otherwise we use the default stanza */ + } else {/* otherwise we use the default stanza */ i->stanza = strdup(def_stanza); + } if (i->stanza == NULL) die(STATE_UNKNOWN, _("malloc() failed!\n")); /* check whether there's an @file part */ - i->file = stanza_len == locator_len - ? default_file() - : strdup(&(locator[stanza_len + 1])); + if (stanza_len == locator_len) { + i->file = default_file(); + i->file_string_on_heap = false; + } else { + i->file = strdup(&(locator[stanza_len + 1])); + i->file_string_on_heap = true; + } + if (i->file == NULL || i->file[0] == '\0') die(STATE_UNKNOWN, _("Cannot find config file in any standard location.\n")); @@ -136,7 +143,10 @@ np_get_defaults(const char *locator, const char *default_section) _("Invalid section '%s' in config file '%s'\n"), i.stanza, i.file); - free(i.file); + if (i.file_string_on_heap) { + free(i.file); + } + if (inifile != stdin) fclose(inifile); free(i.stanza); @@ -358,14 +368,18 @@ add_option(FILE *f, np_arg_list **optlst) static char * default_file(void) { - char **p, *ini_file; + char *ini_file; if ((ini_file = getenv("MP_CONFIG_FILE")) != NULL || - (ini_file = default_file_in_path()) != NULL) + (ini_file = default_file_in_path()) != NULL) { return ini_file; - for (p = default_ini_path_names; *p != NULL; p++) - if (access(*p, F_OK) == 0) + } + + for (char **p = default_ini_path_names; *p != NULL; p++) { + if (access(*p, F_OK) == 0) { return *p; + } + } return NULL; } diff --git a/lib/tests/Makefile.in b/lib/tests/Makefile.in index b06b0d1..f9dddb2 100644 --- a/lib/tests/Makefile.in +++ b/lib/tests/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -168,8 +168,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -182,7 +181,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -200,7 +198,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -339,8 +336,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no @@ -575,6 +570,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ DEFS = @DEFS@ @@ -594,6 +591,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -1965,6 +1963,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -2352,7 +2352,6 @@ recheck: all $(check_PROGRAMS) @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/lib/utils_base.c b/lib/utils_base.c index f86efbe..f8592f4 100644 --- a/lib/utils_base.c +++ b/lib/utils_base.c @@ -37,7 +37,7 @@ monitoring_plugin *this_monitoring_plugin=NULL; -unsigned int timeout_state = STATE_CRITICAL; +int timeout_state = STATE_CRITICAL; unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; bool _np_state_read_file(FILE *); diff --git a/lib/utils_base.h b/lib/utils_base.h index 80b8743..9d4dffe 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h @@ -65,7 +65,7 @@ bool check_range(double, range *); int get_status(double, thresholds *); /* Handle timeouts */ -extern unsigned int timeout_state; +extern int timeout_state; extern unsigned int timeout_interval; /* All possible characters in a threshold range */ diff --git a/lib/utils_cmd.c b/lib/utils_cmd.c index cfb2073..7957ec1 100644 --- a/lib/utils_cmd.c +++ b/lib/utils_cmd.c @@ -390,13 +390,12 @@ cmd_file_read ( char *filename, output *out, int flags) void timeout_alarm_handler (int signo) { - size_t i; if (signo == SIGALRM) { printf (_("%s - Plugin timed out after %d seconds\n"), state_text(timeout_state), timeout_interval); long maxfd = mp_open_max(); - if(_cmd_pids) for(i = 0; i < maxfd; i++) { + if(_cmd_pids) for(long int i = 0; i < maxfd; i++) { if(_cmd_pids[i] != 0) kill(_cmd_pids[i], SIGKILL); } diff --git a/pkg/solaris/pkginfo b/pkg/solaris/pkginfo index 75f7b70..ef314e8 100644 --- a/pkg/solaris/pkginfo +++ b/pkg/solaris/pkginfo @@ -2,11 +2,11 @@ PKG="NGOSplugin" NAME="monitoring-plugins" DESC="Network Monitoring Plugins for Nagios and compatible" ARCH="unknown" -VERSION="2.3.5,REV=2023.10.18.09.15" +VERSION="2.4.0,REV=2024.07.23.19.37" CATEGORY="application" VENDOR="Monitoring Plugins Development Team" EMAIL="devel@monitoring-plugins.org" -PSTAMP="nag20231018091518" +PSTAMP="nag20240723193729" BASEDIR="/" CLASSES="none" diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am index 40aa020..a80229e 100644 --- a/plugins-root/Makefile.am +++ b/plugins-root/Makefile.am @@ -26,7 +26,7 @@ EXTRA_PROGRAMS = pst3 EXTRA_DIST = t pst3.c -BASEOBJS = ../plugins/utils.o ../lib/libmonitoringplug.a ../gl/libgnu.a $(LIB_CRYPTO) +BASEOBJS = ../plugins/utils.o ../lib/libmonitoringplug.a ../gl/libgnu.a NETOBJS = ../plugins/netutils.o $(BASEOBJS) $(EXTRA_NETOBJS) NETLIBS = $(NETOBJS) $(SOCKETLIBS) @@ -80,8 +80,8 @@ install-exec-local: $(noinst_PROGRAMS) ############################################################################## # the actual targets -check_dhcp_LDADD = @LTLIBINTL@ $(NETLIBS) -check_icmp_LDADD = @LTLIBINTL@ $(NETLIBS) $(SOCKETLIBS) +check_dhcp_LDADD = @LTLIBINTL@ $(NETLIBS) $(LIB_CRYPTO) +check_icmp_LDADD = @LTLIBINTL@ $(NETLIBS) $(SOCKETLIBS) $(LIB_CRYPTO) # -m64 needed at compiler and linker phase pst3_CFLAGS = @PST3CFLAGS@ diff --git a/plugins-root/Makefile.in b/plugins-root/Makefile.in index 5991e82..c5ecbb2 100644 --- a/plugins-root/Makefile.in +++ b/plugins-root/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -166,8 +166,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -180,7 +179,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -198,7 +196,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -220,11 +217,9 @@ PROGRAMS = $(noinst_PROGRAMS) check_dhcp_SOURCES = check_dhcp.c check_dhcp_OBJECTS = check_dhcp.$(OBJEXT) am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = ../plugins/utils.o ../lib/libmonitoringplug.a \ - ../gl/libgnu.a $(am__DEPENDENCIES_1) -am__DEPENDENCIES_3 = ../plugins/netutils.o $(am__DEPENDENCIES_2) \ +am__DEPENDENCIES_2 = ../plugins/netutils.o $(BASEOBJS) \ $(am__DEPENDENCIES_1) -am__DEPENDENCIES_4 = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) +am__DEPENDENCIES_3 = $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent @@ -297,8 +292,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no @@ -534,6 +527,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ @@ -553,6 +548,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -1924,6 +1920,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = $(datadir)/locale +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -1947,7 +1945,7 @@ with_trusted_path = @with_trusted_path@ AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"' AM_CPPFLAGS = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins @SSLINCLUDE@ EXTRA_DIST = t pst3.c -BASEOBJS = ../plugins/utils.o ../lib/libmonitoringplug.a ../gl/libgnu.a $(LIB_CRYPTO) +BASEOBJS = ../plugins/utils.o ../lib/libmonitoringplug.a ../gl/libgnu.a NETOBJS = ../plugins/netutils.o $(BASEOBJS) $(EXTRA_NETOBJS) NETLIBS = $(NETOBJS) $(SOCKETLIBS) TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir) @@ -1971,8 +1969,8 @@ INSTALL_SUID = \ ############################################################################## # the actual targets -check_dhcp_LDADD = @LTLIBINTL@ $(NETLIBS) -check_icmp_LDADD = @LTLIBINTL@ $(NETLIBS) $(SOCKETLIBS) +check_dhcp_LDADD = @LTLIBINTL@ $(NETLIBS) $(LIB_CRYPTO) +check_icmp_LDADD = @LTLIBINTL@ $(NETLIBS) $(SOCKETLIBS) $(LIB_CRYPTO) # -m64 needed at compiler and linker phase pst3_CFLAGS = @PST3CFLAGS@ @@ -2300,7 +2298,6 @@ recheck: all @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 6b07df5..4b8f5e2 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c @@ -497,7 +497,7 @@ int send_dhcp_discover(int sock){ memcpy(&discover_packet.options[opts],&requested_address,sizeof(requested_address)); opts += sizeof(requested_address); } - discover_packet.options[opts++]=DHCP_OPTION_END; + discover_packet.options[opts++]= (char)DHCP_OPTION_END; /* unicast fields */ if(unicast) diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 303241d..f788d42 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c @@ -1547,46 +1547,66 @@ finish(int sig) while(host) { if(debug) puts(""); - if (rta_mode && host->pl<100) { - printf("%srta=%0.3fms;%0.3f;%0.3f;0; %srtmax=%0.3fms;;;; %srtmin=%0.3fms;;;; ", - (targets > 1) ? host->name : "", - host->rta / 1000, (float)warn.rta / 1000, (float)crit.rta / 1000, - (targets > 1) ? host->name : "", (float)host->rtmax / 1000, - (targets > 1) ? host->name : "", (host->rtmin < INFINITY) ? (float)host->rtmin / 1000 : (float)0); + if (rta_mode) { + if (host->pl<100) { + printf("%srta=%0.3fms;%0.3f;%0.3f;0; %srtmax=%0.3fms;;;; %srtmin=%0.3fms;;;; ", + (targets > 1) ? host->name : "", + host->rta / 1000, (float)warn.rta / 1000, (float)crit.rta / 1000, + (targets > 1) ? host->name : "", (float)host->rtmax / 1000, + (targets > 1) ? host->name : "", (host->rtmin < INFINITY) ? (float)host->rtmin / 1000 : (float)0); + } else { + printf("%srta=U;;;; %srtmax=U;;;; %srtmin=U;;;; ", + (targets > 1) ? host->name : "", + (targets > 1) ? host->name : "", + (targets > 1) ? host->name : ""); + } } if (pl_mode) { printf("%spl=%u%%;%u;%u;0;100 ", (targets > 1) ? host->name : "", host->pl, warn.pl, crit.pl); } - if (jitter_mode && host->pl<100) { - printf("%sjitter_avg=%0.3fms;%0.3f;%0.3f;0; %sjitter_max=%0.3fms;;;; %sjitter_min=%0.3fms;;;; ", - (targets > 1) ? host->name : "", - (float)host->jitter, - (float)warn.jitter, - (float)crit.jitter, - (targets > 1) ? host->name : "", - (float)host->jitter_max / 1000, (targets > 1) ? host->name : "", - (float)host->jitter_min / 1000 - ); + if (jitter_mode) { + if (host->pl<100) { + printf("%sjitter_avg=%0.3fms;%0.3f;%0.3f;0; %sjitter_max=%0.3fms;;;; %sjitter_min=%0.3fms;;;; ", + (targets > 1) ? host->name : "", + (float)host->jitter, + (float)warn.jitter, + (float)crit.jitter, + (targets > 1) ? host->name : "", + (float)host->jitter_max / 1000, (targets > 1) ? host->name : "", + (float)host->jitter_min / 1000 + ); + } else { + printf("%sjitter_avg=U;;;; %sjitter_max=U;;;; %sjitter_min=U;;;; ", + (targets > 1) ? host->name : "", + (targets > 1) ? host->name : "", + (targets > 1) ? host->name : ""); + } } - if (mos_mode && host->pl<100) { - printf("%smos=%0.1f;%0.1f;%0.1f;0;5 ", - (targets > 1) ? host->name : "", - (float)host->mos, - (float)warn.mos, - (float)crit.mos - ); + if (mos_mode) { + if (host->pl<100) { + printf("%smos=%0.1f;%0.1f;%0.1f;0;5 ", + (targets > 1) ? host->name : "", + (float)host->mos, + (float)warn.mos, + (float)crit.mos); + } else { + printf("%smos=U;;;; ", (targets > 1) ? host->name : ""); + } } - if (score_mode && host->pl<100) { - printf("%sscore=%u;%u;%u;0;100 ", - (targets > 1) ? host->name : "", - (int)host->score, - (int)warn.score, - (int)crit.score - ); + if (score_mode) { + if (host->pl<100) { + printf("%sscore=%u;%u;%u;0;100 ", + (targets > 1) ? host->name : "", + (int)host->score, + (int)warn.score, + (int)crit.score); + } else { + printf("%sscore=U;;;; ", (targets > 1) ? host->name : ""); + } } host = host->next; diff --git a/plugins-root/t/check_icmp.t b/plugins-root/t/check_icmp.t index 4f9db86..de1d88d 100644 --- a/plugins-root/t/check_icmp.t +++ b/plugins-root/t/check_icmp.t @@ -12,7 +12,7 @@ my $allow_sudo = getTestParameter( "NP_ALLOW_SUDO", "no" ); if ($allow_sudo eq "yes" or $> == 0) { - plan tests => 39; + plan tests => 40; } else { plan skip_all => "Need sudo to test check_icmp"; } @@ -57,7 +57,8 @@ $res = NPTest->testCmd( "$sudo ./check_icmp -H $host_nonresponsive -w 10000ms,100% -c 10000ms,100% -t 2" ); is( $res->return_code, 2, "Timeout - host nonresponsive" ); -like( $res->output, '/100%/', "Error contains '100%' string (for 100% packet loss)" ); +like( $res->output, '/pl=100%/', "Error contains 'pl=100%' string (for 100% packet loss)" ); +like( $res->output, '/rta=U/', "Error contains 'rta=U' string" ); $res = NPTest->testCmd( "$sudo ./check_icmp -w 10000ms,100% -c 10000ms,100%" diff --git a/plugins-scripts/Makefile.in b/plugins-scripts/Makefile.in index f22ee03..4265d6a 100644 --- a/plugins-scripts/Makefile.in +++ b/plugins-scripts/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -163,8 +163,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -177,7 +176,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -195,7 +193,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -469,6 +466,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ DEFS = @DEFS@ @@ -488,6 +487,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -1859,6 +1859,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -2141,7 +2143,6 @@ recheck: all @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index 4822fe6..15a7080 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl @@ -40,15 +40,16 @@ # ----------------------------------------------------------------[ Require ]-- -require 5.004; +require 5.14.0; # -------------------------------------------------------------------[ Uses ]-- -use Socket; use strict; +use IO::Socket::IP; use Getopt::Long; -use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $verbose); +use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $opt_4 $opt_6 $verbose); use vars qw($PROGNAME); +use vars qw($ClientSocket); use FindBin; use lib "$FindBin::Bin"; use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); @@ -58,7 +59,6 @@ use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); sub print_help (); sub print_usage (); sub connection ($$$$); -sub bindRemote ($$); # -------------------------------------------------------------[ Environment ]-- @@ -104,7 +104,7 @@ sub connection ($$$$) $answer = "Server $in_remotehost has less than 0 users! Something is Really WRONG!\n"; } - print ClientSocket "quit\n"; + print $ClientSocket "quit\n"; print $answer; exit $ERRORS{$state}; } @@ -112,7 +112,7 @@ sub connection ($$$$) # ------------------------------------------------------------[ print_usage ]-- sub print_usage () { - print "Usage: $PROGNAME -H [-w ] [-c ] [-p ]\n"; + print "Usage: $PROGNAME -H [-w ] [-c ] [-p ] [ -4|-6 ]\n"; } # -------------------------------------------------------------[ print_help ]-- @@ -135,33 +135,15 @@ Perl Check IRCD plugin for monitoring Number of connected users which generates a critical state (Default: 100) -p, --port=INTEGER Port that the ircd daemon is running on (Default: 6667) +-4, --use-ipv4 + Use IPv4 connection +-6, --use-ipv6 + Use IPv6 connection -v, --verbose Print extra debugging information "; } -# -------------------------------------------------------------[ bindRemote ]-- - -sub bindRemote ($$) -{ - my ($in_remotehost, $in_remoteport) = @_; - my $proto = getprotobyname('tcp'); - my $that; - my ($name, $aliases,$type,$len,$thataddr) = gethostbyname($in_remotehost); - - if (!socket(ClientSocket,AF_INET, SOCK_STREAM, $proto)) { - print "IRCD UNKNOWN: Could not start socket ($!)\n"; - exit $ERRORS{"UNKNOWN"}; - } - $that = pack_sockaddr_in ($in_remoteport, $thataddr); - if (!connect(ClientSocket, $that)) { - print "IRCD UNKNOWN: Could not connect socket ($!)\n"; - exit $ERRORS{"UNKNOWN"}; - } - select(ClientSocket); $| = 1; select(STDOUT); - return \*ClientSocket; -} - # ===================================================================[ MAIN ]== MAIN: @@ -177,6 +159,8 @@ MAIN: "w=i" => \$opt_w, "warning=i" => \$opt_w, "c=i" => \$opt_c, "critical=i" => \$opt_c, "p=i" => \$opt_p, "port=i" => \$opt_p, + "4" => \$opt_4, "use-ipv4" => \$opt_4, + "6" => \$opt_6, "use-ipv6" => \$opt_6, "H=s" => \$opt_H, "hostname=s" => \$opt_H); if ($opt_V) { @@ -187,7 +171,7 @@ MAIN: if ($opt_h) {print_help(); exit $ERRORS{'UNKNOWN'};} ($opt_H) || ($opt_H = shift @ARGV) || usage("Host name/address not specified\n"); - my $remotehost = $1 if ($opt_H =~ /([-.A-Za-z0-9]+)/); + my $remotehost = $1 if ($opt_H =~ /([-.:%A-Za-z0-9]+)/); ($remotehost) || usage("Invalid host: $opt_H\n"); ($opt_w) || ($opt_w = shift @ARGV) || ($opt_w = 50); @@ -212,21 +196,28 @@ MAIN: alarm($TIMEOUT); - my ($name, $alias, $proto) = getprotobyname('tcp'); - print "MAIN(debug): binding to remote host: $remotehost -> $remoteport\n" if $verbose; - my $ClientSocket = &bindRemote($remotehost,$remoteport); + $ClientSocket = IO::Socket::IP->new( + PeerHost => $remotehost, + PeerService => $remoteport, + Family => $opt_4 ? AF_INET : $opt_6 ? AF_INET6 : undef, + Type => SOCK_STREAM, + ); + if (!$ClientSocket) { + print "IRCD UNKNOWN: Could not start socket ($!)\n"; + exit $ERRORS{"UNKNOWN"}; + } - print ClientSocket "NICK $NICK\nUSER $USER_INFO\n"; + print $ClientSocket "NICK $NICK\nUSER $USER_INFO\n"; - while () { + while (<$ClientSocket>) { print "MAIN(debug): default var = $_\n" if $verbose; # DALnet,LagNet,UnderNet etc. Require this! # Replies with a PONG when presented with a PING query. # If a server doesn't require it, it will be ignored. - if (m/^PING (.*)/) {print ClientSocket "PONG $1\n";} + if (m/^PING (.*)/) {print $ClientSocket "PONG $1\n";} alarm(0); diff --git a/plugins-scripts/check_mailq.pl b/plugins-scripts/check_mailq.pl index 49156af..f143c6f 100755 --- a/plugins-scripts/check_mailq.pl +++ b/plugins-scripts/check_mailq.pl @@ -1,7 +1,7 @@ #!@PERL@ -w # check_mailq - check to see how many messages are in the smtp queue awating -# transmittal. +# transmittal. # # Initial version support sendmail's mailq command # Support for multiple sendmail queues (Carlos Canau) @@ -29,8 +29,8 @@ use POSIX; use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_v $verbose $PROGNAME $opt_w $opt_c $opt_t $opt_s $opt_d - $opt_M $mailq $status $state $msg $msg_q $msg_p $opt_W $opt_C $mailq $mailq_args - @lines %srcdomains %dstdomains); + $opt_M $mailq $status $state $msg $msg_q $msg_p $opt_W $opt_C $mailq $mailq_args + @lines %srcdomains %dstdomains); use FindBin; use lib "$FindBin::Bin"; use utils qw(%ERRORS &print_revision &support &usage ); @@ -42,10 +42,10 @@ sub print_usage (); sub process_arguments (); $ENV{'PATH'}='@TRUSTED_PATH@'; -$ENV{'BASH_ENV'}=''; +$ENV{'BASH_ENV'}=''; $ENV{'ENV'}=''; $PROGNAME = "check_mailq"; -$mailq = 'sendmail'; # default +$mailq = 'sendmail'; # default $msg_q = 0 ; $msg_p = 0 ; # If appended, must start with a space @@ -55,50 +55,49 @@ $state = $ERRORS{'UNKNOWN'}; Getopt::Long::Configure('bundling'); $status = process_arguments(); if ($status){ - print "ERROR: processing arguments\n"; - exit $ERRORS{"UNKNOWN"}; + print "ERROR: processing arguments\n"; + exit $ERRORS{"UNKNOWN"}; } if ($opt_s) { - if (defined $utils::PATH_TO_SUDO && -x $utils::PATH_TO_SUDO) { - $sudo = $utils::PATH_TO_SUDO; - } else { - print "ERROR: Cannot execute sudo\n"; - exit $ERRORS{'UNKNOWN'}; - } + if (defined $utils::PATH_TO_SUDO && -x $utils::PATH_TO_SUDO) { + $sudo = $utils::PATH_TO_SUDO; + } else { + print "ERROR: Cannot execute sudo\n"; + exit $ERRORS{'UNKNOWN'}; + } } else { - $sudo = ""; + $sudo = ""; } if ($opt_d) { - $mailq_args = $mailq_args . ' -C ' . $opt_d; + $mailq_args = $mailq_args . ' -C ' . $opt_d; } $SIG{'ALRM'} = sub { - print ("ERROR: timed out waiting for $utils::PATH_TO_MAILQ \n"); - exit $ERRORS{"WARNING"}; + print ("ERROR: timed out waiting for $utils::PATH_TO_MAILQ \n"); + exit $ERRORS{"WARNING"}; }; alarm($opt_t); # switch based on MTA if ($mailq eq "sendmail") { + if( ! $utils::PATH_TO_MAILQ) { + print "ERROR: \$utils::PATH_TO_MAILQ is not defined\n"; + exit $ERRORS{'UNKNOWN'}; + } - ## open mailq - if ( defined $utils::PATH_TO_MAILQ && -x $utils::PATH_TO_MAILQ ) { - if (! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ | " ) ) { - print "ERROR: could not open $utils::PATH_TO_MAILQ \n"; - exit $ERRORS{'UNKNOWN'}; - } - }elsif( defined $utils::PATH_TO_MAILQ){ - unless (-x $utils::PATH_TO_MAILQ) { - print "ERROR: $utils::PATH_TO_MAILQ is not executable by (uid $>:gid($)))\n"; - exit $ERRORS{'UNKNOWN'}; - } - } else { - print "ERROR: \$utils::PATH_TO_MAILQ is not defined\n"; - exit $ERRORS{'UNKNOWN'}; - } + if ( ! -x $utils::PATH_TO_MAILQ) { + print "ERROR: $utils::PATH_TO_MAILQ is not executable by (uid $>:gid($)))\n"; + exit $ERRORS{'UNKNOWN'}; + } + + ## open mailq + if (! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ | " ) ) { + print "ERROR: could not open $sudo $utils::PATH_TO_MAILQ \n"; + exit $ERRORS{'UNKNOWN'}; + } # single queue empty ##/var/spool/mqueue is empty # single queue: 1 @@ -168,213 +167,207 @@ if ($mailq eq "sendmail") { ## /var/spool/mqueue is empty ## Total requests: 0 - my $this_msg_q = 0; - while () { - - # match email addr on queue listing - if ( (/<.*@.*\.(\w+\.\w+)>/) || (/<.*@(\w+\.\w+)>/) ) { - my $domain = $1; - if (/^\w+/) { - print "$utils::PATH_TO_MAILQ = srcdomain = $domain \n" if $verbose ; - $srcdomains{$domain} ++; - } - next; - } - - # - # ... - # sendmail considers a message with more than one destiny, say N, to the same MX - # to have N messages in queue. - # we will only consider one in this code - if (( /\s\(reply:\sread\serror\sfrom\s.*\.(\w+\.\w+)\.$/ ) || ( /\s\(reply:\sread\serror\sfrom\s(\w+\.\w+)\.$/ ) || - ( /\s\(timeout\swriting\smessage\sto\s.*\.(\w+\.\w+)\.:/ ) || ( /\s\(timeout\swriting\smessage\sto\s(\w+\.\w+)\.:/ ) || - ( /\s\(host\smap:\slookup\s\(.*\.(\w+\.\w+)\):/ ) || ( /\s\(host\smap:\slookup\s\((\w+\.\w+)\):/ ) || - ( /\s\(Deferred:\s.*\s.*\.(\w+\.\w+)\.\)/ ) || ( /\s\(Deferred:\s.*\s(\w+\.\w+)\.\)/ ) ) { - - print "$utils::PATH_TO_MAILQ = dstdomain = $1 \n" if $verbose ; - $dstdomains{$1} ++; - } - - if (/\s+\(I\/O\serror\)/) { - print "$utils::PATH_TO_MAILQ = dstdomain = UNKNOWN \n" if $verbose ; - $dstdomains{'UNKNOWN'} ++; - } + my $this_msg_q = 0; + while () { - # Finally look at the overall queue length - # - if (/mqueue/) { - print "$utils::PATH_TO_MAILQ = $_ "if $verbose ; - if (/ \((\d+) request/) { - # - # single queue: first line - # multi queue: one for each queue. overwrite on multi queue below - $this_msg_q = $1 ; - $msg_q += $1 ; - } - } elsif (/^\s+Total\sRequests:\s(\d+)$/i) { - if ($this_msg_q) { - $this_msg_q = 0 ; - } else { - print "$utils::PATH_TO_MAILQ = $_ \n" if $verbose ; - # - # multi queue: last line - $msg_q += $1 ; - } - } - - } - + # match email addr on queue listing + if ( (/<.*@.*\.(\w+\.\w+)>/) || (/<.*@(\w+\.\w+)>/) ) { + my $domain = $1; + if (/^\w+/) { + print "$utils::PATH_TO_MAILQ = srcdomain = $domain \n" if $verbose ; + $srcdomains{$domain} ++; + } + next; + } - ## close mailq + # + # ... + # sendmail considers a message with more than one destiny, say N, to the same MX + # to have N messages in queue. + # we will only consider one in this code + if (( /\s\(reply:\sread\serror\sfrom\s.*\.(\w+\.\w+)\.$/ ) || ( /\s\(reply:\sread\serror\sfrom\s(\w+\.\w+)\.$/ ) || + ( /\s\(timeout\swriting\smessage\sto\s.*\.(\w+\.\w+)\.:/ ) || ( /\s\(timeout\swriting\smessage\sto\s(\w+\.\w+)\.:/ ) || + ( /\s\(host\smap:\slookup\s\(.*\.(\w+\.\w+)\):/ ) || ( /\s\(host\smap:\slookup\s\((\w+\.\w+)\):/ ) || + ( /\s\(Deferred:\s.*\s.*\.(\w+\.\w+)\.\)/ ) || ( /\s\(Deferred:\s.*\s(\w+\.\w+)\.\)/ ) ) { - close (MAILQ); + print "$utils::PATH_TO_MAILQ = dstdomain = $1 \n" if $verbose ; + $dstdomains{$1} ++; + } - if ( $? ) { - print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ",$/; - exit $ERRORS{CRITICAL}; - } + if (/\s+\(I\/O\serror\)/) { + print "$utils::PATH_TO_MAILQ = dstdomain = UNKNOWN \n" if $verbose ; + $dstdomains{'UNKNOWN'} ++; + } - ## shut off the alarm - alarm(0); + # Finally look at the overall queue length + # + if (/mqueue/) { + print "$utils::PATH_TO_MAILQ = $_ "if $verbose ; + if (/ \((\d+) request/) { + # + # single queue: first line + # multi queue: one for each queue. overwrite on multi queue below + $this_msg_q = $1 ; + $msg_q += $1 ; + } + } elsif (/^\s+Total\sRequests:\s(\d+)$/i) { + if ($this_msg_q) { + $this_msg_q = 0 ; + } else { + print "$utils::PATH_TO_MAILQ = $_ \n" if $verbose ; + # + # multi queue: last line + $msg_q += $1 ; + } + } + } + ## close mailq + close (MAILQ); - ## now check the queue length(s) + if ( $? ) { + print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ",$/; + exit $ERRORS{CRITICAL}; + } - if ($msg_q == 0) { - $msg = "OK: $mailq mailq is empty"; - $state = $ERRORS{'OK'}; - } else { - print "msg_q = $msg_q warn=$opt_w crit=$opt_c\n" if $verbose; - - # overall queue length - if ($msg_q < $opt_w) { - $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; - $state = $ERRORS{'OK'}; - }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { - $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; - $state = $ERRORS{'WARNING'}; - }else { - $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; - $state = $ERRORS{'CRITICAL'}; - } + ## shut off the alarm + alarm(0); - # check for domain specific queue lengths if requested - if (defined $opt_W) { - - # Apply threshold to queue lengths FROM domain - my @srckeys = sort { $srcdomains{$b} <=> $srcdomains{$a} } keys %srcdomains; - my $srcmaxkey = $srckeys[0]; - print "src max is $srcmaxkey with $srcdomains{$srcmaxkey} messages\n" if $verbose; - - if ($srcdomains{$srcmaxkey} >= $opt_W && $srcdomains{$srcmaxkey} < $opt_C) { - if ($state == $ERRORS{'OK'}) { - $msg = "WARNING: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; - $state = $ERRORS{'WARNING'}; - } elsif (($state == $ERRORS{'WARNING'}) || ($state == $ERRORS{'CRITICAL'})){ - $msg .= " -and- $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; - } else { - $msg = "WARNING: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; - $state = $ERRORS{'WARNING'}; - } - } elsif ($srcdomains{$srcmaxkey} >= $opt_C) { - if ($state == $ERRORS{'OK'}) { - $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold C = $opt_C)"; - $state = $ERRORS{'CRITICAL'}; - } elsif ($state == $ERRORS{'WARNING'}) { - $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold C = $opt_C) -and- " . $msg; - $msg =~ s/WARNING: //; - } elsif ($state == $ERRORS{'CRITICAL'}) { - $msg .= " -and- $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; - } else { - $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; - $state = $ERRORS{'CRITICAL'}; - } - } else { - if ($srcdomains{$srcmaxkey} > 0) { - $msg .= " $srcdomains{$srcmaxkey} msgs. FROM $srcmaxkey is below threshold ($opt_W/$opt_C)"; - } - } + ## now check the queue length(s) - # Apply threshold to queue lengths TO domain - my @dstkeys = sort { $dstdomains{$b} <=> $dstdomains{$a} } keys %dstdomains; - my $dstmaxkey = $dstkeys[0]; - print "dst max is $dstmaxkey with $dstdomains{$dstmaxkey} messages\n" if $verbose; - - if ($dstdomains{$dstmaxkey} >= $opt_W && $dstdomains{$dstmaxkey} < $opt_C) { - if ($state == $ERRORS{'OK'}) { - $msg = "WARNING: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; - $state = $ERRORS{'WARNING'}; - } elsif (($state == $ERRORS{'WARNING'}) || ($state == $ERRORS{'CRITICAL'})){ - $msg .= " -and- $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; - } else { - $msg = "WARNING: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; - $state = $ERRORS{'WARNING'}; - } - } elsif ($dstdomains{$dstmaxkey} >= $opt_C) { - if ($state == $ERRORS{'OK'}) { - $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold C = $opt_C)"; - $state = $ERRORS{'CRITICAL'}; - } elsif ($state == $ERRORS{'WARNING'}) { - $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold C = $opt_C) -and- " . $msg; - $msg =~ s/WARNING: //; - } elsif ($state == $ERRORS{'CRITICAL'}) { - $msg .= " -and- $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; - } else { - $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; - $state = $ERRORS{'CRITICAL'}; - } - } else { - if ($dstdomains{$dstmaxkey} > 0) { - $msg .= " $dstdomains{$dstmaxkey} msgs. TO $dstmaxkey is below threshold ($opt_W/$opt_C)"; - } - } + if ($msg_q == 0) { + $msg = "OK: $mailq mailq is empty"; + $state = $ERRORS{'OK'}; + } else { + print "msg_q = $msg_q warn=$opt_w crit=$opt_c\n" if $verbose; - } # End of queue length thresholds + # overall queue length + if ($msg_q < $opt_w) { + $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; + $state = $ERRORS{'OK'}; + }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { + $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; + $state = $ERRORS{'WARNING'}; + }else { + $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; + $state = $ERRORS{'CRITICAL'}; + } - } + # check for domain specific queue lengths if requested + if (defined $opt_W) { + + # Apply threshold to queue lengths FROM domain + my @srckeys = sort { $srcdomains{$b} <=> $srcdomains{$a} } keys %srcdomains; + my $srcmaxkey = $srckeys[0]; + print "src max is $srcmaxkey with $srcdomains{$srcmaxkey} messages\n" if $verbose; + + if ($srcdomains{$srcmaxkey} >= $opt_W && $srcdomains{$srcmaxkey} < $opt_C) { + if ($state == $ERRORS{'OK'}) { + $msg = "WARNING: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; + $state = $ERRORS{'WARNING'}; + } elsif (($state == $ERRORS{'WARNING'}) || ($state == $ERRORS{'CRITICAL'})){ + $msg .= " -and- $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; + } else { + $msg = "WARNING: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; + $state = $ERRORS{'WARNING'}; + } + } elsif ($srcdomains{$srcmaxkey} >= $opt_C) { + if ($state == $ERRORS{'OK'}) { + $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold C = $opt_C)"; + $state = $ERRORS{'CRITICAL'}; + } elsif ($state == $ERRORS{'WARNING'}) { + $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold C = $opt_C) -and- " . $msg; + $msg =~ s/WARNING: //; + } elsif ($state == $ERRORS{'CRITICAL'}) { + $msg .= " -and- $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; + } else { + $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; + $state = $ERRORS{'CRITICAL'}; + } + } else { + if ($srcdomains{$srcmaxkey} > 0) { + $msg .= " $srcdomains{$srcmaxkey} msgs. FROM $srcmaxkey is below threshold ($opt_W/$opt_C)"; + } + } + + # Apply threshold to queue lengths TO domain + my @dstkeys = sort { $dstdomains{$b} <=> $dstdomains{$a} } keys %dstdomains; + my $dstmaxkey = $dstkeys[0]; + print "dst max is $dstmaxkey with $dstdomains{$dstmaxkey} messages\n" if $verbose; + + if ($dstdomains{$dstmaxkey} >= $opt_W && $dstdomains{$dstmaxkey} < $opt_C) { + if ($state == $ERRORS{'OK'}) { + $msg = "WARNING: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; + $state = $ERRORS{'WARNING'}; + } elsif (($state == $ERRORS{'WARNING'}) || ($state == $ERRORS{'CRITICAL'})){ + $msg .= " -and- $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; + } else { + $msg = "WARNING: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; + $state = $ERRORS{'WARNING'}; + } + } elsif ($dstdomains{$dstmaxkey} >= $opt_C) { + if ($state == $ERRORS{'OK'}) { + $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold C = $opt_C)"; + $state = $ERRORS{'CRITICAL'}; + } elsif ($state == $ERRORS{'WARNING'}) { + $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold C = $opt_C) -and- " . $msg; + $msg =~ s/WARNING: //; + } elsif ($state == $ERRORS{'CRITICAL'}) { + $msg .= " -and- $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; + } else { + $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; + $state = $ERRORS{'CRITICAL'}; + } + } else { + if ($dstdomains{$dstmaxkey} > 0) { + $msg .= " $dstdomains{$dstmaxkey} msgs. TO $dstmaxkey is below threshold ($opt_W/$opt_C)"; + } + } + + } # End of queue length thresholds + + } } # end of ($mailq eq "sendmail") elsif ( $mailq eq "postfix" ) { + if( ! $utils::PATH_TO_MAILQ ) { + print "ERROR: \$utils::PATH_TO_MAILQ is not defined\n"; + exit $ERRORS{'UNKNOWN'}; + } - ## open mailq - if ( defined $utils::PATH_TO_MAILQ && -x $utils::PATH_TO_MAILQ ) { - if (! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ$mailq_args | " ) ) { - print "ERROR: could not open $utils::PATH_TO_MAILQ$mailq_args \n"; - exit $ERRORS{'UNKNOWN'}; - } - }elsif( defined $utils::PATH_TO_MAILQ){ - unless (-x $utils::PATH_TO_MAILQ) { - print "ERROR: $utils::PATH_TO_MAILQ is not executable by (uid $>:gid($)))\n"; - exit $ERRORS{'UNKNOWN'}; - } - } else { - print "ERROR: \$utils::PATH_TO_MAILQ is not defined\n"; - exit $ERRORS{'UNKNOWN'}; - } + if ( ! -x $utils::PATH_TO_MAILQ) { + print "ERROR: $utils::PATH_TO_MAILQ is not executable by (uid $>:gid($)))\n"; + exit $ERRORS{'UNKNOWN'}; + } + ## open mailq + if (! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ$mailq_args | " ) ) { + print "ERROR: could not open $utils::PATH_TO_MAILQ$mailq_args \n"; + exit $ERRORS{'UNKNOWN'}; + } - @lines = reverse ; + @lines = reverse ; - # close qmail-qstat - close MAILQ; + # close qmail-qstat + close MAILQ; - if ( $? ) { - print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ$mailq_args",$/; - exit $ERRORS{CRITICAL}; - } + if ( $? ) { + print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ$mailq_args",$/; + exit $ERRORS{CRITICAL}; + } - ## shut off the alarm - alarm(0); + ## shut off the alarm + alarm(0); - # check queue length - if ($lines[0]=~/Kbytes in (\d+)/) { - $msg_q = $1 ; - }elsif ($lines[0]=~/Mail queue is empty/) { - $msg_q = 0; + # check queue length + if ($lines[0]=~/Kbytes in (\d+)/) { + $msg_q = $1 ; + }elsif ($lines[0]=~/Mail queue is empty/) { + $msg_q = 0; }else{ - print "Couldn't match $utils::PATH_TO_MAILQ$mailq_args output\n"; - exit $ERRORS{'UNKNOWN'}; + print "Couldn't match $utils::PATH_TO_MAILQ$mailq_args output\n"; + exit $ERRORS{'UNKNOWN'}; } # check messages not processed @@ -390,194 +383,193 @@ elsif ( $mailq eq "postfix" ) { $msg = "OK: $mailq mailq reports queue is empty"; $state = $ERRORS{'OK'}; } else { - print "msg_q = $msg_q warn=$opt_w crit=$opt_c\n" if $verbose; + print "msg_q = $msg_q warn=$opt_w crit=$opt_c\n" if $verbose; - # overall queue length - if ($msg_q < $opt_w) { - $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; - $state = $ERRORS{'OK'}; - }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { - $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; - $state = $ERRORS{'WARNING'}; - }else { - $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; - $state = $ERRORS{'CRITICAL'}; - } + # overall queue length + if ($msg_q < $opt_w) { + $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; + $state = $ERRORS{'OK'}; + }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { + $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; + $state = $ERRORS{'WARNING'}; + }else { + $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; + $state = $ERRORS{'CRITICAL'}; + } - # check messages not yet preprocessed (only compare is $opt_W and $opt_C - # are defined) + # check messages not yet preprocessed (only compare is $opt_W and $opt_C + # are defined) - #if (defined $opt_W) { - # $msg .= "[Preprocessed = $msg_p]"; - # if ($msg_p >= $opt_W && $msg_p < $opt_C ) { - # $state = $state == $ERRORS{"CRITICAL"} ? $ERRORS{"CRITICAL"} : $ERRORS{"WARNING"} ; - # }elsif ($msg_p >= $opt_C ) { - # $state = $ERRORS{"CRITICAL"} ; - # } - #} + #if (defined $opt_W) { + # $msg .= "[Preprocessed = $msg_p]"; + # if ($msg_p >= $opt_W && $msg_p < $opt_C ) { + # $state = $state == $ERRORS{"CRITICAL"} ? $ERRORS{"CRITICAL"} : $ERRORS{"WARNING"} ; + # }elsif ($msg_p >= $opt_C ) { + # $state = $ERRORS{"CRITICAL"} ; + # } + #} } } # end of ($mailq eq "postfix") elsif ( $mailq eq "qmail" ) { + if ( ! $utils::PATH_TO_QMAIL_QSTAT ) { + print "ERROR: \$utils::PATH_TO_QMAIL_QSTAT is not defined\n"; + exit $ERRORS{'UNKNOWN'}; + } - # open qmail-qstat - if ( defined $utils::PATH_TO_QMAIL_QSTAT && -x $utils::PATH_TO_QMAIL_QSTAT ) { - if (! open (MAILQ, "$sudo $utils::PATH_TO_QMAIL_QSTAT | " ) ) { - print "ERROR: could not open $utils::PATH_TO_QMAIL_QSTAT \n"; - exit $ERRORS{'UNKNOWN'}; - } - }elsif( defined $utils::PATH_TO_QMAIL_QSTAT){ - unless (-x $utils::PATH_TO_QMAIL_QSTAT) { - print "ERROR: $utils::PATH_TO_QMAIL_QSTAT is not executable by (uid $>:gid($)))\n"; - exit $ERRORS{'UNKNOWN'}; - } - } else { - print "ERROR: \$utils::PATH_TO_QMAIL_QSTAT is not defined\n"; - exit $ERRORS{'UNKNOWN'}; - } + if ( ! -x $utils::PATH_TO_QMAIL_QSTAT) { + print "ERROR: $utils::PATH_TO_QMAIL_QSTAT is not executable by (uid $>:gid($)))\n"; + exit $ERRORS{'UNKNOWN'}; + } - @lines = ; + # open qmail-qstat + if (! open (MAILQ, "$sudo $utils::PATH_TO_QMAIL_QSTAT | " ) ) { + print "ERROR: could not open $utils::PATH_TO_QMAIL_QSTAT \n"; + exit $ERRORS{'UNKNOWN'}; + } - # close qmail-qstat - close MAILQ; + @lines = ; - if ( $? ) { - print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ",$/; - exit $ERRORS{CRITICAL}; - } + # close qmail-qstat + close MAILQ; - ## shut off the alarm - alarm(0); + if ( $? ) { + print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ",$/; + exit $ERRORS{CRITICAL}; + } - # check queue length - if ($lines[0]=~/^messages in queue: (\d+)/) { - $msg_q = $1 ; - }else{ - print "Couldn't match $utils::PATH_TO_QMAIL_QSTAT output\n"; - exit $ERRORS{'UNKNOWN'}; - } + ## shut off the alarm + alarm(0); - # check messages not processed - if ($lines[1]=~/^messages in queue but not yet preprocessed: (\d+)/) { - my $msg_p = $1; - }else{ - print "Couldn't match $utils::PATH_TO_QMAIL_QSTAT output\n"; - exit $ERRORS{'UNKNOWN'}; - } + # check queue length + if ($lines[0]=~/^messages in queue: (\d+)/) { + $msg_q = $1 ; + }else{ + print "Couldn't match $utils::PATH_TO_QMAIL_QSTAT output\n"; + exit $ERRORS{'UNKNOWN'}; + } + + # check messages not processed + if ($lines[1]=~/^messages in queue but not yet preprocessed: (\d+)/) { + my $msg_p = $1; + }else{ + print "Couldn't match $utils::PATH_TO_QMAIL_QSTAT output\n"; + exit $ERRORS{'UNKNOWN'}; + } - # check queue length(s) - if ($msg_q == 0){ - $msg = "OK: qmail-qstat reports queue is empty"; - $state = $ERRORS{'OK'}; - } else { - print "msg_q = $msg_q warn=$opt_w crit=$opt_c\n" if $verbose; - - # overall queue length - if ($msg_q < $opt_w) { - $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; - $state = $ERRORS{'OK'}; - }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { - $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; - $state = $ERRORS{'WARNING'}; - }else { - $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; - $state = $ERRORS{'CRITICAL'}; - } + # check queue length(s) + if ($msg_q == 0){ + $msg = "OK: qmail-qstat reports queue is empty"; + $state = $ERRORS{'OK'}; + } else { + print "msg_q = $msg_q warn=$opt_w crit=$opt_c\n" if $verbose; + + # overall queue length + if ($msg_q < $opt_w) { + $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; + $state = $ERRORS{'OK'}; + }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { + $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; + $state = $ERRORS{'WARNING'}; + }else { + $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; + $state = $ERRORS{'CRITICAL'}; + } + + # check messages not yet preprocessed (only compare is $opt_W and $opt_C + # are defined) + + if (defined $opt_W) { + $msg .= "[Preprocessed = $msg_p]"; + if ($msg_p >= $opt_W && $msg_p < $opt_C ) { + $state = $state == $ERRORS{"CRITICAL"} ? $ERRORS{"CRITICAL"} : $ERRORS{"WARNING"} ; + }elsif ($msg_p >= $opt_C ) { + $state = $ERRORS{"CRITICAL"} ; + } + } + } - # check messages not yet preprocessed (only compare is $opt_W and $opt_C - # are defined) - - if (defined $opt_W) { - $msg .= "[Preprocessed = $msg_p]"; - if ($msg_p >= $opt_W && $msg_p < $opt_C ) { - $state = $state == $ERRORS{"CRITICAL"} ? $ERRORS{"CRITICAL"} : $ERRORS{"WARNING"} ; - }elsif ($msg_p >= $opt_C ) { - $state = $ERRORS{"CRITICAL"} ; - } - } - } - } # end of ($mailq eq "qmail") elsif ( $mailq eq "exim" ) { - ## open mailq - if ( defined $utils::PATH_TO_MAILQ && -x $utils::PATH_TO_MAILQ ) { - if (! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ | " ) ) { - print "ERROR: could not open $utils::PATH_TO_MAILQ \n"; - exit $ERRORS{'UNKNOWN'}; - } - }elsif( defined $utils::PATH_TO_MAILQ){ - unless (-x $utils::PATH_TO_MAILQ) { - print "ERROR: $utils::PATH_TO_MAILQ is not executable by (uid $>:gid($)))\n"; - exit $ERRORS{'UNKNOWN'}; - } - } else { - print "ERROR: \$utils::PATH_TO_MAILQ is not defined\n"; - exit $ERRORS{'UNKNOWN'}; - } + if ( ! $utils::PATH_TO_MAILQ ) { + print "ERROR: \$utils::PATH_TO_MAILQ is not defined\n"; + exit $ERRORS{'UNKNOWN'}; + } - while () { - #22m 1.7K 19aEEr-0007hx-Dy <> *** frozen *** + if ( ! -x $utils::PATH_TO_MAILQ) { + print "ERROR: $utils::PATH_TO_MAILQ is not executable by (uid $>:gid($)))\n"; + exit $ERRORS{'UNKNOWN'}; + } + + ## open mailq + if (! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ | " ) ) { + print "ERROR: could not open $utils::PATH_TO_MAILQ \n"; + exit $ERRORS{'UNKNOWN'}; + } + + while () { + #22m 1.7K 19aEEr-0007hx-Dy <> *** frozen *** #root@exlixams.glups.fr - if (/\s[\w\d]{6}-[\w\d]{6}-[\w\d]{2}\s/) { # message id 19aEEr-0007hx-Dy - $msg_q++ ; - } - } - close(MAILQ) ; + if (/\s[\w\d]{6}-[\w\d]{6}-[\w\d]{2}\s/) { # message id 19aEEr-0007hx-Dy + $msg_q++ ; + } + } + close(MAILQ) ; - if ( $? ) { - print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ",$/; - exit $ERRORS{CRITICAL}; - } - if ($msg_q < $opt_w) { - $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; - $state = $ERRORS{'OK'}; - }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { - $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; - $state = $ERRORS{'WARNING'}; - }else { - $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; - $state = $ERRORS{'CRITICAL'}; - } + if ( $? ) { + print "CRITICAL: Error code ".($?>>8)." returned from $utils::PATH_TO_MAILQ",$/; + exit $ERRORS{CRITICAL}; + } + if ($msg_q < $opt_w) { + $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; + $state = $ERRORS{'OK'}; + }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { + $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; + $state = $ERRORS{'WARNING'}; + }else { + $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; + $state = $ERRORS{'CRITICAL'}; + } } # end of ($mailq eq "exim") elsif ( $mailq eq "nullmailer" ) { - ## open mailq - if ( defined $utils::PATH_TO_MAILQ && -x $utils::PATH_TO_MAILQ ) { - if (! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ | " ) ) { - print "ERROR: could not open $utils::PATH_TO_MAILQ \n"; - exit $ERRORS{'UNKNOWN'}; - } - }elsif( defined $utils::PATH_TO_MAILQ){ - unless (-x $utils::PATH_TO_MAILQ) { - print "ERROR: $utils::PATH_TO_MAILQ is not executable by (uid $>:gid($)))\n"; - exit $ERRORS{'UNKNOWN'}; - } - } else { - print "ERROR: \$utils::PATH_TO_MAILQ is not defined\n"; - exit $ERRORS{'UNKNOWN'}; - } + if( ! $utils::PATH_TO_MAILQ) { + print "ERROR: \$utils::PATH_TO_MAILQ is not defined\n"; + exit $ERRORS{'UNKNOWN'}; + } - while () { - #2022-08-25 01:30:40 502 bytes from + if ( ! -x $utils::PATH_TO_MAILQ) { + print "ERROR: $utils::PATH_TO_MAILQ is not executable by (uid $>:gid($)))\n"; + exit $ERRORS{'UNKNOWN'}; + } - if (/^\d{4}-\d{2}-\d{2}\s+\d{2}\:\d{2}\:\d{2}\s+\d+\sbytes/) { - $msg_q++ ; - } - } - close(MAILQ) ; - if ($msg_q < $opt_w) { - $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; - $state = $ERRORS{'OK'}; - }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { - $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; - $state = $ERRORS{'WARNING'}; - }else { - $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; - $state = $ERRORS{'CRITICAL'}; - } + ## open mailq + if ( ! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ | " ) ) { + print "ERROR: could not open $utils::PATH_TO_MAILQ \n"; + exit $ERRORS{'UNKNOWN'}; + } + + while () { + #2022-08-25 01:30:40 502 bytes from + + if (/^\d{4}-\d{2}-\d{2}\s+\d{2}\:\d{2}\:\d{2}\s+\d+\sbytes/) { + $msg_q++ ; + } + } + close(MAILQ) ; + if ($msg_q < $opt_w) { + $msg = "OK: $mailq mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; + $state = $ERRORS{'OK'}; + }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { + $msg = "WARNING: $mailq mailq is $msg_q (threshold w = $opt_w)"; + $state = $ERRORS{'WARNING'}; + }else { + $msg = "CRITICAL: $mailq mailq is $msg_q (threshold c = $opt_c)"; + $state = $ERRORS{'CRITICAL'}; + } } # end of ($mailq eq "nullmailer") # Perfdata support @@ -590,130 +582,130 @@ exit $state; sub process_arguments(){ - GetOptions - ("V" => \$opt_V, "version" => \$opt_V, - "v" => \$opt_v, "verbose" => \$opt_v, - "h" => \$opt_h, "help" => \$opt_h, - "M:s" => \$opt_M, "mailserver:s" => \$opt_M, # mailserver (default sendmail) - "w=i" => \$opt_w, "warning=i" => \$opt_w, # warning if above this number - "c=i" => \$opt_c, "critical=i" => \$opt_c, # critical if above this number - "W=i" => \$opt_W, "warning-domain=i" => \$opt_W, # Warning if above this number - "C=i" => \$opt_C, "critical-domain=i" => \$opt_C, # Critical if above this number - "t=i" => \$opt_t, "timeout=i" => \$opt_t, - "s" => \$opt_s, "sudo" => \$opt_s, - "d:s" => \$opt_d, "configdir:s" => \$opt_d, - ); + GetOptions + ("V" => \$opt_V, "version" => \$opt_V, + "v" => \$opt_v, "verbose" => \$opt_v, + "h" => \$opt_h, "help" => \$opt_h, + "M:s" => \$opt_M, "mailserver:s" => \$opt_M, # mailserver (default sendmail) + "w=i" => \$opt_w, "warning=i" => \$opt_w, # warning if above this number + "c=i" => \$opt_c, "critical=i" => \$opt_c, # critical if above this number + "W=i" => \$opt_W, "warning-domain=i" => \$opt_W, # Warning if above this number + "C=i" => \$opt_C, "critical-domain=i" => \$opt_C, # Critical if above this number + "t=i" => \$opt_t, "timeout=i" => \$opt_t, + "s" => \$opt_s, "sudo" => \$opt_s, + "d:s" => \$opt_d, "configdir:s" => \$opt_d, + ); - if ($opt_V) { - print_revision($PROGNAME,'@NP_VERSION@'); - exit $ERRORS{'UNKNOWN'}; - } + if ($opt_V) { + print_revision($PROGNAME,'@NP_VERSION@'); + exit $ERRORS{'UNKNOWN'}; + } - if ($opt_h) { - print_help(); - exit $ERRORS{'UNKNOWN'}; - } + if ($opt_h) { + print_help(); + exit $ERRORS{'UNKNOWN'}; + } - if (defined $opt_v ){ - $verbose = $opt_v; - } + if (defined $opt_v ){ + $verbose = $opt_v; + } - unless (defined $opt_t) { - $opt_t = $utils::TIMEOUT ; # default timeout - } + unless (defined $opt_t) { + $opt_t = $utils::TIMEOUT ; # default timeout + } - unless ( defined $opt_w && defined $opt_c ) { - print_usage(); - exit $ERRORS{'UNKNOWN'}; - } + unless ( defined $opt_w && defined $opt_c ) { + print_usage(); + exit $ERRORS{'UNKNOWN'}; + } - if ( $opt_w >= $opt_c) { - print "Warning (-w) cannot be greater than Critical (-c)!\n"; - exit $ERRORS{'UNKNOWN'}; - } + if ( $opt_w >= $opt_c) { + print "Warning (-w) cannot be greater than Critical (-c)!\n"; + exit $ERRORS{'UNKNOWN'}; + } - if (defined $opt_W && ! defined !$opt_C) { - print "Need -C if using -W\n"; - exit $ERRORS{'UNKNOWN'}; - }elsif(defined $opt_W && defined $opt_C) { - if ($opt_W >= $opt_C) { - print "Warning (-W) cannot be greater than Critical (-C)!\n"; - exit $ERRORS{'UNKNOWN'}; - } - } + if (defined $opt_W && ! defined !$opt_C) { + print "Need -C if using -W\n"; + exit $ERRORS{'UNKNOWN'}; + }elsif(defined $opt_W && defined $opt_C) { + if ($opt_W >= $opt_C) { + print "Warning (-W) cannot be greater than Critical (-C)!\n"; + exit $ERRORS{'UNKNOWN'}; + } + } - if (defined $opt_M) { - if ($opt_M =~ /^(sendmail|qmail|postfix|exim|nullmailer)$/) { - $mailq = $opt_M ; - }elsif( $opt_M eq ''){ - $mailq = 'sendmail'; - }else{ - print "-M: $opt_M is not supported\n"; - exit $ERRORS{'UNKNOWN'}; - } - }else{ - if (defined $utils::PATH_TO_QMAIL_QSTAT - && -x $utils::PATH_TO_QMAIL_QSTAT) - { - $mailq = 'qmail'; - } - elsif (-d '/var/lib/postfix' || -d '/var/local/lib/postfix' - || -e '/usr/sbin/postfix' || -e '/usr/local/sbin/postfix') - { - $mailq = 'postfix'; - } - elsif (-d '/usr/lib/exim4' || -d '/usr/local/lib/exim4' - || -e '/usr/sbin/exim' || -e '/usr/local/sbin/exim') - { - $mailq = 'exim'; - } - elsif (-d '/usr/lib/nullmailer' || -d '/usr/local/lib/nullmailer' - || -e '/usr/sbin/nullmailer-send' - || -e '/usr/local/sbin/nullmailer-send') - { - $mailq = 'nullmailer'; - } - else { - $mailq = 'sendmail'; - } - } - - return $ERRORS{'OK'}; + if (defined $opt_M) { + if ($opt_M =~ /^(sendmail|qmail|postfix|exim|nullmailer)$/) { + $mailq = $opt_M ; + }elsif( $opt_M eq ''){ + $mailq = 'sendmail'; + }else{ + print "-M: $opt_M is not supported\n"; + exit $ERRORS{'UNKNOWN'}; + } + }else{ + if (defined $utils::PATH_TO_QMAIL_QSTAT + && -x $utils::PATH_TO_QMAIL_QSTAT) + { + $mailq = 'qmail'; + } + elsif (-d '/var/lib/postfix' || -d '/var/local/lib/postfix' + || -e '/usr/sbin/postfix' || -e '/usr/local/sbin/postfix') + { + $mailq = 'postfix'; + } + elsif (-d '/usr/lib/exim4' || -d '/usr/local/lib/exim4' + || -e '/usr/sbin/exim' || -e '/usr/local/sbin/exim') + { + $mailq = 'exim'; + } + elsif (-d '/usr/lib/nullmailer' || -d '/usr/local/lib/nullmailer' + || -e '/usr/sbin/nullmailer-send' + || -e '/usr/local/sbin/nullmailer-send') + { + $mailq = 'nullmailer'; + } + else { + $mailq = 'sendmail'; + } + } + + return $ERRORS{'OK'}; } sub print_usage () { - print "Usage: $PROGNAME -w -c [-W ] [-C ] [-M ] [-t ] [-s] [-d ] [-v]\n"; + print "Usage: $PROGNAME -w -c [-W ] [-C ] [-M ] [-t ] [-s] [-d ] [-v]\n"; } sub print_help () { - print_revision($PROGNAME,'@NP_VERSION@'); - print "Copyright (c) 2002 Subhendu Ghosh/Carlos Canau/Benjamin Schmid\n"; - print "\n"; - print_usage(); - print "\n"; - print " Checks the number of messages in the mail queue (supports multiple sendmail queues, qmail)\n"; - print " Feedback/patches to support non-sendmail mailqueue welcome\n\n"; - print "-w (--warning) = Min. number of messages in queue to generate warning\n"; - print "-c (--critical) = Min. number of messages in queue to generate critical alert ( w < c )\n"; - print "-W (--warning-domain) = Min. number of messages for same domain in queue to generate warning\n"; - print "-C (--critical-domain) = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n"; - print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n"; - print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)\n"; - print "-s (--sudo) = Use sudo to call the mailq command\n"; - print "-d (--configdir) = Config file or directory\n"; - print "-h (--help)\n"; - print "-V (--version)\n"; - print "-v (--verbose) = debugging output\n"; - print "\n\n"; - print "Note: -w and -c are required arguments. -W and -C are optional.\n"; - print " -W and -C are applied to domains listed on the queues - both FROM and TO. (sendmail)\n"; - print " -W and -C are applied message not yet preproccessed. (qmail)\n"; - print " This plugin tries to autodetect which mailserver you are running,\n"; - print " you can override the autodetection with -M.\n"; - print " This plugin uses the system mailq command (sendmail) or qmail-stat (qmail)\n"; - print " to look at the queues. Mailq can usually only be accessed by root or \n"; - print " a TrustedUser. You will have to set appropriate permissions for the plugin to work.\n"; - print ""; - print "\n\n"; - support(); + print_revision($PROGNAME,'@NP_VERSION@'); + print "Copyright (c) 2002 Subhendu Ghosh/Carlos Canau/Benjamin Schmid\n"; + print "\n"; + print_usage(); + print "\n"; + print " Checks the number of messages in the mail queue (supports multiple sendmail queues, qmail)\n"; + print " Feedback/patches to support non-sendmail mailqueue welcome\n\n"; + print "-w (--warning) = Min. number of messages in queue to generate warning\n"; + print "-c (--critical) = Min. number of messages in queue to generate critical alert ( w < c )\n"; + print "-W (--warning-domain) = Min. number of messages for same domain in queue to generate warning\n"; + print "-C (--critical-domain) = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n"; + print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n"; + print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)\n"; + print "-s (--sudo) = Use sudo to call the mailq command\n"; + print "-d (--configdir) = Config file or directory\n"; + print "-h (--help)\n"; + print "-V (--version)\n"; + print "-v (--verbose) = debugging output\n"; + print "\n\n"; + print "Note: -w and -c are required arguments. -W and -C are optional.\n"; + print " -W and -C are applied to domains listed on the queues - both FROM and TO. (sendmail)\n"; + print " -W and -C are applied message not yet preproccessed. (qmail)\n"; + print " This plugin tries to autodetect which mailserver you are running,\n"; + print " you can override the autodetection with -M.\n"; + print " This plugin uses the system mailq command (sendmail) or qmail-stat (qmail)\n"; + print " to look at the queues. Mailq can usually only be accessed by root or \n"; + print " a TrustedUser. You will have to set appropriate permissions for the plugin to work.\n"; + print ""; + print "\n\n"; + support(); } diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index 5998138..db824be 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh @@ -47,7 +47,7 @@ print_help() { echo "--cache" echo " Check local database for library and buffer cache hit ratios" echo " ---> Requires Oracle user/password and SID specified." - echo " ---> Requires select on v_$sysstat and v_$librarycache" + echo " ---> Requires select on v_\$sysstat and v_\$librarycache" echo "--tablespace" echo " Check local database for tablespace capacity in ORACLE_SID" echo " ---> Requires Oracle user/password specified." @@ -109,14 +109,14 @@ if [ -z "$ORACLE_HOME" ] ; then for oratab in /var/opt/oracle/oratab /etc/oratab do [ ! -f $oratab ] && continue - ORACLE_HOME=`IFS=: - while read -r SID ORACLE_HOME junk; + ORACLE_HOME=$(IFS=: + while read -r SID ORACLE_HOME _; do if [ "$SID" = "$2" ] || [ "$SID" = "*" ] ; then echo "$ORACLE_HOME"; exit; fi; - done < $oratab` + done < $oratab) [ -n "$ORACLE_HOME" ] && break done fi @@ -209,7 +209,7 @@ case "$cmd" in echo "UNKNOWN - Warning level is less then Crit" exit "$STATE_UNKNOWN" fi - result=`sqlplus -s "${3}"/"${4}"@"${2}" << EOF + result=$(sqlplus -s "${3}"/"${4}"@"${2}" << EOF set pagesize 0 set numf '9999999.99' select (1-(pr.value/(dbg.value+cg.value)))*100 @@ -217,7 +217,8 @@ from v\\$sysstat pr, v\\$sysstat dbg, v\\$sysstat cg where pr.name='physical reads' and dbg.name='db block gets' and cg.name='consistent gets'; -EOF` +EOF +) if echo "$result" | grep -q 'ORA-' ; then error=$(echo "$result" | grep "ORA-" | head -1) @@ -227,12 +228,13 @@ EOF` buf_hr=$(echo "$result" | awk '/^[0-9\. \t]+$/ {print int($1)}') buf_hrx=$(echo "$result" | awk '/^[0-9\. \t]+$/ {print $1}') - result=`sqlplus -s "${3}"/"${4}"@"${2}" << EOF + result=$(sqlplus -s "${3}"/"${4}"@"${2}" << EOF set pagesize 0 set numf '9999999.99' select sum(lc.pins)/(sum(lc.pins)+sum(lc.reloads))*100 from v\\$librarycache lc; -EOF` +EOF +) if echo "$result" | grep -q 'ORA-' ; then error=$(echo "$result" | grep "ORA-" | head -1) @@ -260,7 +262,7 @@ EOF` echo "UNKNOWN - Warning level is more then Crit" exit "$STATE_UNKNOWN" fi - result=`sqlplus -s "${3}"/"${4}"@"${2}" << EOF + result=$(sqlplus -s "${3}"/"${4}"@"${2}" << EOF set pagesize 0 set numf '9999999.99' select NVL(b.free,0.0),a.total,100 - trunc(NVL(b.free,0.0)/a.total * 1000) / 10 prc @@ -271,7 +273,8 @@ LEFT OUTER JOIN ( select tablespace_name,sum(bytes)/1024/1024 free from dba_free_space group by tablespace_name) B ON a.tablespace_name=b.tablespace_name WHERE a.tablespace_name='${5}'; -EOF` +EOF +) if echo "$result" | grep -q 'ORA-' ; then error=$(echo "$result" | grep "ORA-" | head -1) diff --git a/plugins/Makefile.in b/plugins/Makefile.in index dc5f6cf..3970232 100644 --- a/plugins/Makefile.in +++ b/plugins/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -182,8 +182,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -196,7 +195,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -214,7 +212,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -520,8 +517,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no @@ -782,6 +777,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ # gettext docs say to use AM_CPPFLAGS, but per module_CPPFLAGS override this @@ -802,6 +799,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -2174,6 +2172,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = $(datadir)/locale +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -2908,7 +2908,6 @@ recheck: all @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/plugins/check_apt.c b/plugins/check_apt.c index fa982ae..5c0f6e2 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c @@ -94,7 +94,7 @@ static int stderr_warning = 0; /* if a cmd issued output on stderr */ static int exec_warning = 0; /* if a cmd exited non-zero */ int main (int argc, char **argv) { - int result=STATE_UNKNOWN, packages_available=0, sec_count=0, i=0; + int result=STATE_UNKNOWN, packages_available=0, sec_count=0; char **packages_list=NULL, **secpackages_list=NULL; /* Parse extra opts if any */ @@ -142,10 +142,11 @@ int main (int argc, char **argv) { qsort(secpackages_list, sec_count, sizeof(char*), cmpstringp); qsort(packages_list, packages_available-sec_count, sizeof(char*), cmpstringp); - for(i = 0; i < sec_count; i++) + for(int i = 0; i < sec_count; i++) printf("%s (security)\n", secpackages_list[i]); + if (only_critical == false) { - for(i = 0; i < packages_available - sec_count; i++) + for(int i = 0; i < packages_available - sec_count; i++) printf("%s\n", packages_list[i]); } } @@ -251,7 +252,7 @@ int process_arguments (int argc, char **argv) { /* run an apt-get upgrade */ int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkglist){ - int i=0, result=STATE_UNKNOWN, regres=0, pc=0, spc=0; + int result=STATE_UNKNOWN, regres=0, pc=0, spc=0; struct output chld_out, chld_err; regex_t ireg, ereg, sreg; char *cmdline=NULL, rerrbuf[64]; @@ -320,7 +321,7 @@ int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkg * we may need to switch to the --print-uris output format, * in which case the logic here will slightly change. */ - for(i = 0; i < chld_out.lines; i++) { + for(size_t i = 0; i < chld_out.lines; i++) { if(verbose){ printf("%s\n", chld_out.line[i]); } @@ -353,7 +354,7 @@ int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkg stderr_warning=1; result = max_state(result, STATE_WARNING); if(verbose){ - for(i = 0; i < chld_err.lines; i++) { + for(size_t i = 0; i < chld_err.lines; i++) { fprintf(stderr, "%s\n", chld_err.line[i]); } } @@ -367,7 +368,7 @@ int run_upgrade(int *pkgcount, int *secpkgcount, char ***pkglist, char ***secpkg /* run an apt-get update (needs root) */ int run_update(void){ - int i=0, result=STATE_UNKNOWN; + int result=STATE_UNKNOWN; struct output chld_out, chld_err; char *cmdline; @@ -385,7 +386,7 @@ int run_update(void){ } if(verbose){ - for(i = 0; i < chld_out.lines; i++) { + for(size_t i = 0; i < chld_out.lines; i++) { printf("%s\n", chld_out.line[i]); } } @@ -395,7 +396,7 @@ int run_update(void){ stderr_warning=1; result = max_state(result, STATE_WARNING); if(verbose){ - for(i = 0; i < chld_err.lines; i++) { + for(size_t i = 0; i < chld_err.lines; i++) { fprintf(stderr, "%s\n", chld_err.line[i]); } } diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 1ad547e..2a23b39 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c @@ -50,7 +50,7 @@ unsigned int services = 0; int skip_stdout = 0; int skip_stderr = 0; int warn_on_stderr = 0; -bool unknown_timeout = FALSE; +bool unknown_timeout = false; char *remotecmd = NULL; char **commargv = NULL; int commargc = 0; @@ -58,8 +58,8 @@ char *hostname = NULL; char *outputfile = NULL; char *host_shortname = NULL; char **service; -int passive = FALSE; -int verbose = FALSE; +bool passive = false; +bool verbose = false; int main (int argc, char **argv) @@ -68,7 +68,6 @@ main (int argc, char **argv) char *status_text; int cresult; int result = STATE_UNKNOWN; - int i; time_t local_time; FILE *fp = NULL; output chld_out, chld_err; @@ -96,7 +95,7 @@ main (int argc, char **argv) /* run the command */ if (verbose) { printf ("Command: %s\n", commargv[0]); - for (i=1; i skip_stderr) { + if(chld_err.lines > (size_t)skip_stderr) { printf (_("Remote command execution failed: %s\n"), chld_err.line[skip_stderr]); if ( warn_on_stderr ) @@ -134,8 +133,8 @@ main (int argc, char **argv) /* this is simple if we're not supposed to be passive. * Wrap up quickly and keep the tricks below */ if(!passive) { - if (chld_out.lines > skip_stdout) - for (i = skip_stdout; i < chld_out.lines; i++) + if (chld_out.lines > (size_t)skip_stdout) + for (size_t i = skip_stdout; i < chld_out.lines; i++) puts (chld_out.line[i]); else printf (_("%s - check_by_ssh: Remote command '%s' returned status %d\n"), @@ -156,7 +155,7 @@ main (int argc, char **argv) local_time = time (NULL); commands = 0; - for(i = skip_stdout; i < chld_out.lines; i++) { + for(size_t i = skip_stdout; i < chld_out.lines; i++) { status_text = chld_out.line[i++]; if (i == chld_out.lines || strstr (chld_out.line[i], "STATUS CODE: ") == NULL) die (STATE_UNKNOWN, _("%s: Error parsing output\n"), progname); @@ -235,7 +234,7 @@ process_arguments (int argc, char **argv) print_help (); exit (STATE_UNKNOWN); case 'v': /* help */ - verbose = TRUE; + verbose = true; break; case 't': /* timeout period */ if (!is_integer (optarg)) @@ -244,7 +243,7 @@ process_arguments (int argc, char **argv) timeout_interval = atoi (optarg); break; case 'U': - unknown_timeout = TRUE; + unknown_timeout = true; break; case 'H': /* host */ hostname = optarg; @@ -257,7 +256,7 @@ process_arguments (int argc, char **argv) break; case 'O': /* output file */ outputfile = optarg; - passive = TRUE; + passive = true; break; case 's': /* description of service to check */ p1 = optarg; diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 153e492..c54be5e 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -134,6 +134,7 @@ char regexp[MAX_RE_SIZE]; int cflags = REG_NOSUB | REG_EXTENDED | REG_NEWLINE; int errcode; bool invert_regex = false; +int state_regex = STATE_CRITICAL; char *server_address = NULL; char *host_name = NULL; @@ -223,6 +224,7 @@ curlhelp_ssl_library ssl_library = CURLHELP_SSL_LIBRARY_UNKNOWN; int curl_http_version = CURL_HTTP_VERSION_NONE; bool automatic_decompression = false; char *cookie_jar_file = NULL; +bool haproxy_protocol = false; bool process_arguments (int, char**); void handle_curl_option_return_code (CURLcode res, const char* option); @@ -395,7 +397,7 @@ lookup_host (const char *host, char *buf, size_t buflen) char addrstr[100]; size_t addrstr_len; int errcode; - void *ptr; + void *ptr = { 0 }; size_t buflen_remaining = buflen - 1; memset (&hints, 0, sizeof (hints)); @@ -520,6 +522,11 @@ check_http (void) handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_CONNECTTIMEOUT, socket_timeout), "CURLOPT_CONNECTTIMEOUT"); handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_TIMEOUT, socket_timeout), "CURLOPT_TIMEOUT"); + /* enable haproxy protocol */ + if (haproxy_protocol) { + handle_curl_option_return_code(curl_easy_setopt(curl, CURLOPT_HAPROXYPROTOCOL, 1L), "CURLOPT_HAPROXYPROTOCOL"); + } + // fill dns resolve cache to make curl connect to the given server_address instead of the host_name, only required for ssl, because we use the host_name later on to make SNI happy if(use_ssl && host_name != NULL) { if ( (res=lookup_host (server_address, addrstr, DEFAULT_BUFFER_SIZE/2)) != 0) { @@ -1127,7 +1134,7 @@ GOT_FIRST_CERT: strcpy(msg, tmp); } - result = STATE_CRITICAL; + result = state_regex; } else { regerror (errcode, &preg, errbuf, MAX_INPUT_BUFFER); @@ -1186,16 +1193,16 @@ int uri_strcmp (const UriTextRangeA range, const char* s) { if (!range.first) return -1; - if (range.afterLast - range.first < strlen (s)) return -1; - return strncmp (s, range.first, min( range.afterLast - range.first, strlen (s))); + if ( (size_t)(range.afterLast - range.first) < strlen (s) ) return -1; + return strncmp (s, range.first, min( (size_t)(range.afterLast - range.first), strlen (s))); } char* uri_string (const UriTextRangeA range, char* buf, size_t buflen) { if (!range.first) return "(null)"; - strncpy (buf, range.first, max (buflen-1, range.afterLast - range.first)); - buf[max (buflen-1, range.afterLast - range.first)] = '\0'; + strncpy (buf, range.first, max (buflen-1, (size_t)(range.afterLast - range.first))); + buf[max (buflen-1, (size_t)(range.afterLast - range.first))] = '\0'; buf[range.afterLast - range.first] = '\0'; return buf; } @@ -1384,7 +1391,9 @@ process_arguments (int argc, char **argv) CA_CERT_OPTION, HTTP_VERSION_OPTION, AUTOMATIC_DECOMPRESSION, - COOKIE_JAR + COOKIE_JAR, + HAPROXY_PROTOCOL, + STATE_REGEX }; int option = 0; @@ -1423,6 +1432,7 @@ process_arguments (int argc, char **argv) {"content-type", required_argument, 0, 'T'}, {"pagesize", required_argument, 0, 'm'}, {"invert-regex", no_argument, NULL, INVERT_REGEX}, + {"state-regex", required_argument, 0, STATE_REGEX}, {"use-ipv4", no_argument, 0, '4'}, {"use-ipv6", no_argument, 0, '6'}, {"extended-perfdata", no_argument, 0, 'E'}, @@ -1431,6 +1441,7 @@ process_arguments (int argc, char **argv) {"http-version", required_argument, 0, HTTP_VERSION_OPTION}, {"enable-automatic-decompression", no_argument, 0, AUTOMATIC_DECOMPRESSION}, {"cookie-jar", required_argument, 0, COOKIE_JAR}, + {"haproxy-protocol", no_argument, 0, HAPROXY_PROTOCOL}, {0, 0, 0, 0} }; @@ -1757,6 +1768,13 @@ process_arguments (int argc, char **argv) case INVERT_REGEX: invert_regex = true; break; + case STATE_REGEX: + if (!strcmp (optarg, "critical")) + state_regex = STATE_CRITICAL; + else if (!strcmp (optarg, "warning")) + state_regex = STATE_WARNING; + else usage2 (_("Invalid state-regex option"), optarg); + break; case '4': address_family = AF_INET; break; @@ -1841,6 +1859,9 @@ process_arguments (int argc, char **argv) case COOKIE_JAR: cookie_jar_file = optarg; break; + case HAPROXY_PROTOCOL: + haproxy_protocol = true; + break; case '?': /* print short usage statement if args not parsable */ usage5 (); @@ -2011,7 +2032,7 @@ print_help (void) printf (" %s\n", "-u, --url=PATH"); printf (" %s\n", _("URL to GET or POST (default: /)")); printf (" %s\n", "-P, --post=STRING"); - printf (" %s\n", _("URL encoded http POST data")); + printf (" %s\n", _("URL decoded http POST data")); printf (" %s\n", "-j, --method=STRING (for example: HEAD, OPTIONS, TRACE, PUT, DELETE, CONNECT)"); printf (" %s\n", _("Set HTTP method.")); printf (" %s\n", "-N, --no-body"); @@ -2029,7 +2050,10 @@ print_help (void) printf (" %s\n", "-R, --eregi=STRING"); printf (" %s\n", _("Search page for case-insensitive regex STRING")); printf (" %s\n", "--invert-regex"); - printf (" %s\n", _("Return CRITICAL if found, OK if not\n")); + printf (" %s\n", _("Return STATE if found, OK if not (STATE is CRITICAL, per default)")); + printf (" %s\n", _("can be changed with --state--regex)")); + printf (" %s\n", "--regex-state=STATE"); + printf (" %s\n", _("Return STATE if regex is found, OK if not\n")); printf (" %s\n", "-a, --authorization=AUTH_PAIR"); printf (" %s\n", _("Username:password on sites with basic authentication")); printf (" %s\n", "-b, --proxy-authorization=AUTH_PAIR"); @@ -2060,6 +2084,8 @@ print_help (void) printf (" %s\n", _("1.0 = HTTP/1.0, 1.1 = HTTP/1.1, 2.0 = HTTP/2 (HTTP/2 will fail without -S)")); printf (" %s\n", "--enable-automatic-decompression"); printf (" %s\n", _("Enable automatic decompression of body (CURLOPT_ACCEPT_ENCODING).")); + printf(" %s\n", "--haproxy-protocol"); + printf(" %s\n", _("Send HAProxy proxy protocol v1 header (CURLOPT_HAPROXYPROTOCOL).")); printf (" %s\n", "---cookie-jar=FILE"); printf (" %s\n", _("Store cookies in the cookie jar and send them out when requested.")); printf ("\n"); @@ -2144,7 +2170,7 @@ print_usage (void) printf (" [-b proxy_auth] [-f ]\n"); printf (" [-e ] [-d string] [-s string] [-l] [-r | -R ]\n"); printf (" [-P string] [-m :] [-4|-6] [-N] [-M ]\n"); - printf (" [-A string] [-k string] [-S ] [--sni]\n"); + printf (" [-A string] [-k string] [-S ] [--sni] [--haproxy-protocol]\n"); printf (" [-T ] [-j method]\n"); printf (" [--http-version=] [--enable-automatic-decompression]\n"); printf (" [--cookie-jar=\n"); @@ -2368,8 +2394,7 @@ remove_newlines (char *s) char * get_header_value (const struct phr_header* headers, const size_t nof_headers, const char* header) { - int i; - for( i = 0; i < nof_headers; i++ ) { + for(size_t i = 0; i < nof_headers; i++ ) { if(headers[i].name != NULL && strncasecmp( header, headers[i].name, max( headers[i].name_len, 4 ) ) == 0 ) { return strndup( headers[i].value, headers[i].value_len ); } @@ -2471,7 +2496,7 @@ check_document_dates (const curlhelp_write_curlbuf *header_buf, char (*msg)[DEFA int get_content_length (const curlhelp_write_curlbuf* header_buf, const curlhelp_write_curlbuf* body_buf) { - int content_length = 0; + size_t content_length = 0; struct phr_header headers[255]; size_t nof_headers = 255; size_t msglen; diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c index c24ca24..29c8520 100644 --- a/plugins/check_dbi.c +++ b/plugins/check_dbi.c @@ -141,7 +141,7 @@ main (int argc, char **argv) if (verbose > 2) printf ("Initializing DBI\n"); - dbi_inst *instance_p; + dbi_inst *instance_p = { 0 }; if (dbi_initialize_r(NULL, instance_p) < 0) { printf ("UNKNOWN - failed to initialize DBI; possibly you don't have any drivers installed.\n"); diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 5d85ae2..be7a610 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c @@ -56,7 +56,7 @@ char *expected_address = NULL; char *dns_server = NULL; char *dig_args = ""; char *query_transport = ""; -int verbose = FALSE; +bool verbose = false; int server_port = DEFAULT_PORT; int number_tries = DEFAULT_TRIES; double warning_interval = UNDEFINED; @@ -176,11 +176,11 @@ main (int argc, char **argv) state_text (result), elapsed_time, msg ? msg : _("Probably a non-existent host/domain"), fperfdata("time", elapsed_time, "s", - (warning_interval>UNDEFINED?TRUE:FALSE), + (warning_interval>UNDEFINED ? true:false), warning_interval, - (critical_interval>UNDEFINED?TRUE:FALSE), + (critical_interval>UNDEFINED ? true:false), critical_interval, - TRUE, 0, FALSE, 0)); + true, 0, false, 0)); return result; } @@ -270,7 +270,7 @@ process_arguments (int argc, char **argv) dig_args = strdup(optarg); break; case 'v': /* verbose */ - verbose = TRUE; + verbose = true; break; case 'T': record_type = optarg; diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 2f066c7..24de2d4 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c @@ -46,7 +46,7 @@ const char *email = "devel@monitoring-plugins.org"; #include #include "fsusage.h" #include "mountlist.h" -#include "intprops.h" /* necessary for TYPE_MAXIMUM */ +#include #if HAVE_LIMITS_H # include #endif @@ -112,8 +112,7 @@ enum { SYNC_OPTION = CHAR_MAX + 1, NO_SYNC_OPTION, - BLOCK_SIZE_OPTION, - IGNORE_MISSING + BLOCK_SIZE_OPTION }; #ifdef _AIX @@ -135,12 +134,12 @@ char *exclude_device; char *units; uintmax_t mult = 1024 * 1024; int verbose = 0; -int erronly = FALSE; -int display_mntp = FALSE; -int exact_match = FALSE; +bool erronly = false; +bool display_mntp = false; +bool exact_match = false; bool ignore_missing = false; -int freespace_ignore_reserved = FALSE; -int display_inodes_perfdata = FALSE; +bool freespace_ignore_reserved = false; +bool display_inodes_perfdata = false; char *warn_freespace_units = NULL; char *crit_freespace_units = NULL; char *warn_freespace_percent = NULL; @@ -153,7 +152,7 @@ char *warn_usedinodes_percent = NULL; char *crit_usedinodes_percent = NULL; char *warn_freeinodes_percent = NULL; char *crit_freeinodes_percent = NULL; -int path_selected = FALSE; +bool path_selected = false; bool path_ignored = false; char *group = NULL; struct stat *stat_buf; @@ -205,7 +204,7 @@ main (int argc, char **argv) /* If a list of paths has not been selected, find entire mount list and create list of paths */ - if (path_selected == FALSE && path_ignored == false) { + if (path_selected == false && path_ignored == false) { for (me = mount_list; me; me = me->me_next) { if (! (path = np_find_parameter(path_select_list, me->me_mountdir))) { path = np_add_parameter(&path_select_list, me->me_mountdir); @@ -326,7 +325,7 @@ main (int argc, char **argv) get_stats (path, &fsp); if (verbose >= 3) { - printf ("For %s, used_pct=%g free_pct=%g used_units=%lu free_units=%lu total_units=%lu used_inodes_pct=%g free_inodes_pct=%g fsp.fsu_blocksize=%lu mult=%lu\n", + printf ("For %s, used_pct=%f free_pct=%f used_units=%lu free_units=%lu total_units=%lu used_inodes_pct=%f free_inodes_pct=%f fsp.fsu_blocksize=%lu mult=%lu\n", me->me_mountdir, path->dused_pct, path->dfree_pct, @@ -396,10 +395,10 @@ main (int argc, char **argv) perfdata_uint64 ( (!strcmp(me->me_mountdir, "none") || display_mntp) ? me->me_devname : me->me_mountdir, path->dused_units * mult, "B", - (warning_high_tide == UINT64_MAX ? FALSE : TRUE), warning_high_tide, - (critical_high_tide == UINT64_MAX ? FALSE : TRUE), critical_high_tide, - TRUE, 0, - TRUE, path->dtotal_units * mult)); + (warning_high_tide == UINT64_MAX ? false : true), warning_high_tide, + (critical_high_tide == UINT64_MAX ? false : true), critical_high_tide, + true, 0, + true, path->dtotal_units * mult)); if (display_inodes_perfdata) { /* *_high_tide must be reinitialized at each run */ @@ -418,10 +417,10 @@ main (int argc, char **argv) xasprintf (&perf, "%s %s", perf, perfdata_uint64 (perf_ilabel, path->inodes_used, "", - (warning_high_tide != UINT64_MAX ? TRUE : FALSE), warning_high_tide, - (critical_high_tide != UINT64_MAX ? TRUE : FALSE), critical_high_tide, - TRUE, 0, - TRUE, path->inodes_total)); + (warning_high_tide != UINT64_MAX ? true : false), warning_high_tide, + (critical_high_tide != UINT64_MAX ? true : false), critical_high_tide, + true, 0, + true, path->inodes_total)); } if (disk_result==STATE_OK && erronly && !verbose) @@ -432,7 +431,7 @@ main (int argc, char **argv) } else { xasprintf(&flag_header, ""); } - xasprintf (&output, "%s%s %s %llu%s (%.0f%%", + xasprintf (&output, "%s%s %s %llu%s (%.1f%%", output, flag_header, (!strcmp(me->me_mountdir, "none") || display_mntp) ? me->me_devname : me->me_mountdir, path->dfree_units, @@ -452,7 +451,7 @@ main (int argc, char **argv) if (strcmp(output, "") == 0 && ! erronly) { preamble = ""; - xasprintf (&output, " - No disks were found for provided parameters;"); + xasprintf (&output, " - No disks were found for provided parameters"); } printf ("DISK %s%s%s%s%s|%s\n", state_text (result), ((erronly && result==STATE_OK)) ? "" : preamble, output, (strcmp(ignored, "") == 0) ? "" : ignored_preamble, ignored, perf); @@ -462,24 +461,8 @@ main (int argc, char **argv) double calculate_percent(uintmax_t value, uintmax_t total) { double pct = -1; - /* I don't understand the below, but it is taken from coreutils' df */ - /* Seems to be calculating pct, in the best possible way */ - if (value <= TYPE_MAXIMUM(uintmax_t) / 100 - && total != 0) { - uintmax_t u100 = value * 100; - pct = u100 / total + (u100 % total != 0); - } else { - /* Possible rounding errors - see coreutils' df for more explanation */ - double u = value; - double t = total; - if (t) { - long int lipct = pct = u * 100 / t; - double ipct = lipct; - - /* Like 'pct = ceil (dpct);', but without ceil - from coreutils again */ - if (ipct - 1 < pct && pct <= ipct + 1) - pct = ipct + (ipct < pct); - } + if(value <= DBL_MAX && total != 0) { + pct = (double)value / total * 100.0; } return pct; } @@ -524,7 +507,7 @@ process_arguments (int argc, char **argv) {"ignore-ereg-partition", required_argument, 0, 'i'}, {"ignore-eregi-path", required_argument, 0, 'I'}, {"ignore-eregi-partition", required_argument, 0, 'I'}, - {"ignore-missing", no_argument, 0, IGNORE_MISSING}, + {"ignore-missing", no_argument, 0, 'n'}, {"local", no_argument, 0, 'l'}, {"stat-remote-fs", no_argument, 0, 'L'}, {"iperfdata", no_argument, 0, 'P'}, @@ -550,7 +533,7 @@ process_arguments (int argc, char **argv) strcpy (argv[c], "-t"); while (1) { - c = getopt_long (argc, argv, "+?VqhvefCt:c:w:K:W:u:p:x:X:N:mklLPg:R:r:i:I:MEA", longopts, &option); + c = getopt_long (argc, argv, "+?VqhvefCt:c:w:K:W:u:p:x:X:N:mklLPg:R:r:i:I:MEAn", longopts, &option); if (c == -1 || c == EOF) break; @@ -567,6 +550,10 @@ process_arguments (int argc, char **argv) /* See comments for 'c' */ case 'w': /* warning threshold */ + if (!is_percentage_expression(optarg) && !is_numeric(optarg)) { + die(STATE_UNKNOWN, "Argument for --warning invalid or missing: %s\n", optarg); + } + if (strstr(optarg, "%")) { if (*optarg == '@') { warn_freespace_percent = optarg; @@ -588,6 +575,10 @@ process_arguments (int argc, char **argv) force @ at the beginning of the range, so that it is backwards compatible */ case 'c': /* critical threshold */ + if (!is_percentage_expression(optarg) && !is_numeric(optarg)) { + die(STATE_UNKNOWN, "Argument for --critical invalid or missing: %s\n", optarg); + } + if (strstr(optarg, "%")) { if (*optarg == '@') { crit_freespace_percent = optarg; @@ -710,7 +701,7 @@ process_arguments (int argc, char **argv) mount_list = read_file_system_list (0); np_set_best_match(se, mount_list, exact_match); - path_selected = TRUE; + path_selected = true; break; case 'x': /* exclude path or partition */ np_add_name(&dp_exclude_list, optarg); @@ -734,18 +725,18 @@ process_arguments (int argc, char **argv) break; case 'q': /* TODO: this function should eventually go away (removed 2007-09-20) */ /* verbose--; **replaced by line below**. -q was only a broken way of implementing -e */ - erronly = TRUE; + erronly = true; break; case 'e': - erronly = TRUE; + erronly = true; break; case 'E': if (path_selected) die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set -E before selecting paths\n")); - exact_match = TRUE; + exact_match = true; break; case 'f': - freespace_ignore_reserved = TRUE; + freespace_ignore_reserved = true; break; case 'g': if (path_selected) @@ -792,7 +783,7 @@ process_arguments (int argc, char **argv) cflags = default_cflags; break; - case IGNORE_MISSING: + case 'n': ignore_missing = true; break; case 'A': @@ -817,7 +808,7 @@ process_arguments (int argc, char **argv) for (me = mount_list; me; me = me->me_next) { if (np_regex_match_mount_entry(me, &re)) { - fnd = TRUE; + fnd = true; if (verbose >= 3) printf("%s %s matching expression %s\n", me->me_devname, me->me_mountdir, optarg); @@ -832,24 +823,24 @@ process_arguments (int argc, char **argv) if (!fnd && ignore_missing == true) { path_ignored = true; - /* path_selected = TRUE;*/ + path_selected = true; break; } else if (!fnd) die (STATE_UNKNOWN, "DISK %s: %s - %s\n",_("UNKNOWN"), _("Regular expression did not match any path or disk"), optarg); - fnd = FALSE; - path_selected = TRUE; + fnd = false; + path_selected = true; np_set_best_match(path_select_list, mount_list, exact_match); cflags = default_cflags; break; case 'M': /* display mountpoint */ - display_mntp = TRUE; + display_mntp = true; break; case 'C': /* add all mount entries to path_select list if no partitions have been explicitly defined using -p */ - if (path_selected == FALSE) { + if (path_selected == false) { struct parameter_list *path; for (me = mount_list; me; me = me->me_next) { if (! (path = np_find_parameter(path_select_list, me->me_mountdir))) @@ -872,7 +863,7 @@ process_arguments (int argc, char **argv) warn_freeinodes_percent = NULL; crit_freeinodes_percent = NULL; - path_selected = FALSE; + path_selected = false; group = NULL; break; case 'V': /* version */ @@ -896,7 +887,7 @@ process_arguments (int argc, char **argv) if (argc > c) { se = np_add_parameter(&path_select_list, strdup(argv[c++])); - path_selected = TRUE; + path_selected = true; set_all_thresholds(se); } @@ -905,7 +896,7 @@ process_arguments (int argc, char **argv) mult = (uintmax_t)1024 * 1024; } - return TRUE; + return true; } @@ -1004,7 +995,7 @@ print_help (void) printf (" %s\n", _("Regular expression to ignore selected path/partition (case insensitive) (may be repeated)")); printf (" %s\n", "-i, --ignore-ereg-path=PATH, --ignore-ereg-partition=PARTITION"); printf (" %s\n", _("Regular expression to ignore selected path or partition (may be repeated)")); - printf (" %s\n", "--ignore-missing"); + printf (" %s\n", "-n, --ignore-missing"); printf (" %s\n", _("Return OK if no filesystem matches, filesystem does not exist or is inaccessible.")); printf (" %s\n", _("(Provide this option before -p / -r / --ereg-path if used)")); printf (UT_PLUG_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); @@ -1131,7 +1122,7 @@ get_stats (struct parameter_list *p, struct fs_usage *fsp) { } /* finally calculate percentages for either plain FS or summed up group */ p->dused_pct = calculate_percent( p->used, p->used + p->available ); /* used + available can never be > uintmax */ - p->dfree_pct = 100 - p->dused_pct; + p->dfree_pct = 100.0 - p->dused_pct; p->dused_inodes_percent = calculate_percent(p->inodes_total - p->inodes_free, p->inodes_total); p->dfree_inodes_percent = 100 - p->dused_inodes_percent; diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 7ffce98..468bc95 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c @@ -41,8 +41,8 @@ const char *email = "devel@monitoring-plugins.org"; int process_arguments (int, char **); int validate_arguments (void); -int error_scan (char *, int *); -int ip_match_cidr(const char *, const char *); +int error_scan (char *, bool *); +bool ip_match_cidr(const char *, const char *); unsigned long ip2long(const char *); void print_help (void); void print_usage (void); @@ -51,13 +51,13 @@ void print_usage (void); char query_address[ADDRESS_LENGTH] = ""; char dns_server[ADDRESS_LENGTH] = ""; char ptr_server[ADDRESS_LENGTH] = ""; -int verbose = FALSE; +bool verbose = false; char **expected_address = NULL; int expected_address_cnt = 0; -int expect_nxdomain = FALSE; +bool expect_nxdomain = false; -int expect_authority = FALSE; -int all_match = FALSE; +bool expect_authority = false; +bool all_match = false; thresholds *time_thresholds = NULL; static int @@ -80,15 +80,14 @@ main (int argc, char **argv) int n_addresses = 0; char *msg = NULL; char *temp_buffer = NULL; - int non_authoritative = FALSE; + bool non_authoritative = false; int result = STATE_UNKNOWN; double elapsed_time; long microsec; struct timeval tv; - int parse_address = FALSE; /* This flag scans for Address: but only after Name: */ + bool parse_address = false; /* This flag scans for Address: but only after Name: */ output chld_out, chld_err; - size_t i; - int is_nxdomain = FALSE; + bool is_nxdomain = false; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -122,7 +121,7 @@ main (int argc, char **argv) } /* scan stdout */ - for(i = 0; i < chld_out.lines; i++) { + for(size_t i = 0; i < chld_out.lines; i++) { if (addresses == NULL) addresses = malloc(sizeof(*addresses)*10); else if (!(n_addresses % 10)) @@ -164,8 +163,8 @@ main (int argc, char **argv) /* the server is responding, we just got the host name... */ if (strstr (chld_out.line[i], "Name:")) - parse_address = TRUE; - else if (parse_address == TRUE && (strstr (chld_out.line[i], "Address:") || + parse_address = true; + else if (parse_address && (strstr (chld_out.line[i], "Address:") || strstr (chld_out.line[i], "Addresses:"))) { temp_buffer = index (chld_out.line[i], ':'); temp_buffer++; @@ -184,7 +183,7 @@ main (int argc, char **argv) addresses[n_addresses++] = strdup(temp_buffer); } else if (strstr (chld_out.line[i], _("Non-authoritative answer:"))) { - non_authoritative = TRUE; + non_authoritative = true; } @@ -197,7 +196,7 @@ main (int argc, char **argv) } /* scan stderr */ - for(i = 0; i < chld_err.lines; i++) { + for(size_t i = 0; i < chld_err.lines; i++) { if (verbose) puts(chld_err.line[i]); @@ -241,7 +240,7 @@ main (int argc, char **argv) unsigned long expect_match = (1 << expected_address_cnt) - 1; unsigned long addr_match = (1 << n_addresses) - 1; - for (i=0; iwarning != NULL) && (time_thresholds->critical != NULL)) { printf ("|%s\n", fperfdata ("time", elapsed_time, "s", - TRUE, time_thresholds->warning->end, - TRUE, time_thresholds->critical->end, - TRUE, 0, FALSE, 0)); + true, time_thresholds->warning->end, + true, time_thresholds->critical->end, + true, 0, false, 0)); } else if ((time_thresholds->warning == NULL) && (time_thresholds->critical != NULL)) { printf ("|%s\n", fperfdata ("time", elapsed_time, "s", - FALSE, 0, - TRUE, time_thresholds->critical->end, - TRUE, 0, FALSE, 0)); + false, 0, + true, time_thresholds->critical->end, + true, 0, false, 0)); } else if ((time_thresholds->warning != NULL) && (time_thresholds->critical == NULL)) { printf ("|%s\n", fperfdata ("time", elapsed_time, "s", - TRUE, time_thresholds->warning->end, - FALSE, 0, - TRUE, 0, FALSE, 0)); + true, time_thresholds->warning->end, + false, 0, + true, 0, false, 0)); } else - printf ("|%s\n", fperfdata ("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); + printf ("|%s\n", fperfdata ("time", elapsed_time, "s", false, 0, false, 0, true, 0, false, 0)); } else if (result == STATE_WARNING) printf (_("DNS WARNING - %s\n"), @@ -327,15 +326,14 @@ main (int argc, char **argv) return result; } -int -ip_match_cidr(const char *addr, const char *cidr_ro) -{ +bool ip_match_cidr(const char *addr, const char *cidr_ro) { char *subnet, *mask_c, *cidr = strdup(cidr_ro); int mask; subnet = strtok(cidr, "/"); mask_c = strtok(NULL, "\0"); - if (!subnet || !mask_c) - return FALSE; + if (!subnet || !mask_c) { + return false; + } mask = atoi(mask_c); /* https://www.cryptobells.com/verifying-ips-in-a-subnet-in-php/ */ @@ -355,14 +353,14 @@ ip2long(const char* src) { } int -error_scan (char *input_buffer, int *is_nxdomain) +error_scan (char *input_buffer, bool *is_nxdomain) { const int nxdomain = strstr (input_buffer, "Non-existent") || strstr (input_buffer, "** server can't find") || strstr (input_buffer, "** Can't find") || strstr (input_buffer, "NXDOMAIN"); - if (nxdomain) *is_nxdomain = TRUE; + if (nxdomain) *is_nxdomain = true; /* the DNS lookup timed out */ if (strstr (input_buffer, _("Note: nslookup is deprecated and may be removed from future releases.")) || @@ -461,7 +459,7 @@ process_arguments (int argc, char **argv) print_revision (progname, NP_VERSION); exit (STATE_UNKNOWN); case 'v': /* version */ - verbose = TRUE; + verbose = true; break; case 't': /* timeout period */ timeout_interval = atoi (optarg); @@ -508,13 +506,13 @@ process_arguments (int argc, char **argv) } break; case 'n': /* expect NXDOMAIN */ - expect_nxdomain = TRUE; + expect_nxdomain = true; break; case 'A': /* expect authority */ - expect_authority = TRUE; + expect_authority = true; break; case 'L': /* all must match */ - all_match = TRUE; + all_match = true; break; case 'w': warning = optarg; diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 23a9e99..70d6f9f 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c @@ -59,16 +59,16 @@ int packet_size = PACKET_SIZE; int packet_count = PACKET_COUNT; int target_timeout = 0; int packet_interval = 0; -int verbose = FALSE; +bool verbose = false; int cpl; int wpl; double crta; double wrta; -int cpl_p = FALSE; -int wpl_p = FALSE; -bool alive_p = FALSE; -int crta_p = FALSE; -int wrta_p = FALSE; +bool cpl_p = false; +bool wpl_p = false; +bool alive_p = false; +bool crta_p = false; +bool wrta_p = false; int main (int argc, char **argv) @@ -194,8 +194,8 @@ int textscan (char *buf) { _("FPING %s - %s (rta=%f ms)|%s\n"), state_text (STATE_OK), server_name,rta, /* No loss since we only waited for the first reply - perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, TRUE, 0, TRUE, 100), */ - fperfdata ("rta", rta/1.0e3, "s", wrta_p, wrta/1.0e3, crta_p, crta/1.0e3, TRUE, 0, FALSE, 0)); + perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, true, 0, true, 100), */ + fperfdata ("rta", rta/1.0e3, "s", wrta_p, wrta/1.0e3, crta_p, crta/1.0e3, true, 0, false, 0)); } if (strstr (buf, "not found")) { @@ -228,21 +228,21 @@ int textscan (char *buf) { rtastr = 1 + index (rtastr, '/'); loss = strtod (losstr, NULL); rta = strtod (rtastr, NULL); - if (cpl_p == TRUE && loss > cpl) + if (cpl_p && loss > cpl) status = STATE_CRITICAL; - else if (crta_p == TRUE && rta > crta) + else if (crta_p && rta > crta) status = STATE_CRITICAL; - else if (wpl_p == TRUE && loss > wpl) + else if (wpl_p && loss > wpl) status = STATE_WARNING; - else if (wrta_p == TRUE && rta > wrta) + else if (wrta_p && rta > wrta) status = STATE_WARNING; else status = STATE_OK; die (status, _("FPING %s - %s (loss=%.0f%%, rta=%f ms)|%s %s\n"), state_text (status), server_name, loss, rta, - perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, TRUE, 0, TRUE, 100), - fperfdata ("rta", rta/1.0e3, "s", wrta_p, wrta/1.0e3, crta_p, crta/1.0e3, TRUE, 0, FALSE, 0)); + perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, true, 0, true, 100), + fperfdata ("rta", rta/1.0e3, "s", wrta_p, wrta/1.0e3, crta_p, crta/1.0e3, true, 0, false, 0)); } else if(strstr (buf, "xmt/rcv/%loss") ) { @@ -258,16 +258,16 @@ int textscan (char *buf) { loss = strtod (losstr, NULL); if (atoi(losstr) == 100) status = STATE_CRITICAL; - else if (cpl_p == TRUE && loss > cpl) + else if (cpl_p && loss > cpl) status = STATE_CRITICAL; - else if (wpl_p == TRUE && loss > wpl) + else if (wpl_p && loss > wpl) status = STATE_WARNING; else status = STATE_OK; /* loss=%.0f%%;%d;%d;0;100 */ die (status, _("FPING %s - %s (loss=%.0f%% )|%s\n"), state_text (status), server_name, loss , - perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, TRUE, 0, TRUE, 100)); + perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, true, 0, true, 100)); } else { @@ -329,7 +329,7 @@ process_arguments (int argc, char **argv) case '?': /* print short usage statement if args not parsable */ usage5 (); case 'a': /* host alive mode */ - alive_p = TRUE; + alive_p = true; break; case 'h': /* help */ print_help (); @@ -338,16 +338,16 @@ process_arguments (int argc, char **argv) print_revision (progname, NP_VERSION); exit (STATE_UNKNOWN); case 'v': /* verbose mode */ - verbose = TRUE; + verbose = true; break; case 'H': /* hostname */ - if (is_host (optarg) == FALSE) { + if (is_host (optarg) == false) { usage2 (_("Invalid hostname/address"), optarg); } server_name = strscpy (server_name, optarg); break; case 'S': /* sourceip */ - if (is_host (optarg) == FALSE) { + if (is_host (optarg) == false) { usage2 (_("Invalid hostname/address"), optarg); } sourceip = strscpy (sourceip, optarg); @@ -369,12 +369,12 @@ process_arguments (int argc, char **argv) get_threshold (optarg, rv); if (rv[RTA]) { crta = strtod (rv[RTA], NULL); - crta_p = TRUE; + crta_p = true; rv[RTA] = NULL; } if (rv[PL]) { cpl = atoi (rv[PL]); - cpl_p = TRUE; + cpl_p = true; rv[PL] = NULL; } break; @@ -382,12 +382,12 @@ process_arguments (int argc, char **argv) get_threshold (optarg, rv); if (rv[RTA]) { wrta = strtod (rv[RTA], NULL); - wrta_p = TRUE; + wrta_p = true; rv[RTA] = NULL; } if (rv[PL]) { wpl = atoi (rv[PL]); - wpl_p = TRUE; + wpl_p = true; rv[PL] = NULL; } break; diff --git a/plugins/check_game.c b/plugins/check_game.c index a534b69..ca12697 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c @@ -53,7 +53,7 @@ char *server_ip; char *game_type; int port = 0; -int verbose; +bool verbose = false; int qstat_game_players_max = -1; int qstat_game_players = -1; @@ -90,7 +90,7 @@ main (int argc, char **argv) if (port) xasprintf (&command_line, "%s:%-d", command_line, port); - if (verbose > 0) + if (verbose) printf ("%s\n", command_line); /* run the command. historically, this plugin ignores output on stderr, @@ -142,11 +142,11 @@ main (int argc, char **argv) ret[qstat_map_field], ret[qstat_ping_field], perfdata ("players", atol(ret[qstat_game_players]), "", - FALSE, 0, FALSE, 0, - TRUE, 0, TRUE, atol(ret[qstat_game_players_max])), + false, 0, false, 0, + true, 0, true, atol(ret[qstat_game_players_max])), fperfdata ("ping", strtod(ret[qstat_ping_field], NULL), "", - FALSE, 0, FALSE, 0, - TRUE, 0, FALSE, 0)); + false, 0, false, 0, + true, 0, false, 0)); } return result; @@ -201,7 +201,7 @@ process_arguments (int argc, char **argv) print_revision (progname, NP_VERSION); exit (STATE_UNKNOWN); case 'v': /* version */ - verbose = TRUE; + verbose = true; break; case 't': /* timeout period */ timeout_interval = atoi (optarg); diff --git a/plugins/check_http.c b/plugins/check_http.c index b9d8145..cdf768c 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -85,6 +85,7 @@ char errbuf[MAX_INPUT_BUFFER]; int cflags = REG_NOSUB | REG_EXTENDED | REG_NEWLINE; int errcode; int invert_regex = 0; +int state_regex = STATE_CRITICAL; struct timeval tv; struct timeval tv_temp; @@ -210,7 +211,8 @@ bool process_arguments (int argc, char **argv) INVERT_REGEX = CHAR_MAX + 1, SNI_OPTION, MAX_REDIRS_OPTION, - CONTINUE_AFTER_CHECK_CERT + CONTINUE_AFTER_CHECK_CERT, + STATE_REGEX }; int option = 0; @@ -246,6 +248,7 @@ bool process_arguments (int argc, char **argv) {"content-type", required_argument, 0, 'T'}, {"pagesize", required_argument, 0, 'm'}, {"invert-regex", no_argument, NULL, INVERT_REGEX}, + {"state-regex", required_argument, 0, STATE_REGEX}, {"use-ipv4", no_argument, 0, '4'}, {"use-ipv6", no_argument, 0, '6'}, {"extended-perfdata", no_argument, 0, 'E'}, @@ -471,10 +474,9 @@ bool process_arguments (int argc, char **argv) free(http_method); http_method = strdup (optarg); char *tmp; - if ((tmp = strstr(http_method, ":")) > 0) { - tmp[0] = '\0'; - http_method = http_method; - http_method_proxy = ++tmp; + if ((tmp = strstr(http_method, ":")) != NULL) { + tmp[0] = '\0'; // set the ":" in the middle to 0 + http_method_proxy = ++tmp; // this points to the second part } break; case 'd': /* string or substring */ @@ -512,6 +514,13 @@ bool process_arguments (int argc, char **argv) case INVERT_REGEX: invert_regex = 1; break; + case STATE_REGEX: + if (!strcmp (optarg, "critical")) + state_regex = STATE_CRITICAL; + else if (!strcmp (optarg, "warning")) + state_regex = STATE_WARNING; + else usage2 (_("Invalid state-regex option"), optarg); + break; case '4': address_family = AF_INET; break; @@ -1318,7 +1327,7 @@ check_http (void) xasprintf (&msg, _("%spattern not found, "), msg); else xasprintf (&msg, _("%spattern found, "), msg); - result = STATE_CRITICAL; + result = state_regex; } else { /* FIXME: Shouldn't that be UNKNOWN? */ @@ -1775,7 +1784,7 @@ print_help (void) printf (" %s\n", "-u, --url=PATH"); printf (" %s\n", _("URL to GET or POST (default: /)")); printf (" %s\n", "-P, --post=STRING"); - printf (" %s\n", _("URL encoded http POST data")); + printf (" %s\n", _("URL decoded http POST data")); printf (" %s\n", "-j, --method=STRING (for example: HEAD, OPTIONS, TRACE, PUT, DELETE, CONNECT, CONNECT:POST)"); printf (" %s\n", _("Set HTTP method.")); printf (" %s\n", "-N, --no-body"); @@ -1794,7 +1803,10 @@ print_help (void) printf (" %s\n", "-R, --eregi=STRING"); printf (" %s\n", _("Search page for case-insensitive regex STRING")); printf (" %s\n", "--invert-regex"); - printf (" %s\n", _("Return CRITICAL if found, OK if not\n")); + printf (" %s\n", _("Return STATE if found, OK if not (STATE is CRITICAL, per default)")); + printf (" %s\n", _("can be changed with --state--regex)")); + printf (" %s\n", "--regex-state=STATE"); + printf (" %s\n", _("Return STATE if regex is found, OK if not\n")); printf (" %s\n", "-a, --authorization=AUTH_PAIR"); printf (" %s\n", _("Username:password on sites with basic authentication")); diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c index 0160d98..3872e34 100644 --- a/plugins/check_ide_smart.c +++ b/plugins/check_ide_smart.c @@ -73,10 +73,6 @@ void print_usage (void); #define NR_ATTRIBUTES 30 -#ifndef TRUE -#define TRUE 1 -#endif /* */ - #define PREFAILURE 2 #define ADVISORY 1 #define OPERATIONAL 0 @@ -169,9 +165,9 @@ int smart_read_values (int, values_t *); int nagios (values_t *, thresholds_t *); void print_value (value_t *, threshold_t *); void print_values (values_t *, thresholds_t *); -int smart_cmd_simple (int, enum SmartCommand, __u8, char); +int smart_cmd_simple (int, enum SmartCommand, __u8, bool); int smart_read_thresholds (int, thresholds_t *); -int verbose = FALSE; +bool verbose = false; int main (int argc, char *argv[]) @@ -203,7 +199,7 @@ main (int argc, char *argv[]) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - while (1) { + while (true) { o = getopt_long (argc, argv, "+d:iq10nhVv", longopts, &longindex); @@ -229,7 +225,7 @@ main (int argc, char *argv[]) fprintf (stderr, "%s\n", _("default and will be removed from future releases.")); break; case 'v': /* verbose */ - verbose = TRUE; + verbose = true; break; case 'h': print_help (); @@ -258,7 +254,7 @@ main (int argc, char *argv[]) return STATE_CRITICAL; } - if (smart_cmd_simple (fd, SMART_CMD_ENABLE, 0, FALSE)) { + if (smart_cmd_simple (fd, SMART_CMD_ENABLE, 0, false)) { printf (_("CRITICAL - SMART_CMD_ENABLE\n")); return STATE_CRITICAL; } @@ -447,9 +443,7 @@ print_values (values_t * p, thresholds_t * t) } -int -smart_cmd_simple (int fd, enum SmartCommand command, __u8 val0, char show_error) -{ +int smart_cmd_simple (int fd, enum SmartCommand command, __u8 val0, bool show_error) { int e = STATE_UNKNOWN; #ifdef __linux__ __u8 args[4]; diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 15113b1..868ffc1 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -71,9 +71,9 @@ thresholds *entries_thresholds = NULL; struct timeval tv; char* warn_entries = NULL; char* crit_entries = NULL; -int starttls = FALSE; -int ssl_on_connect = FALSE; -int verbose = 0; +bool starttls = false; +bool ssl_on_connect = false; +bool verbose = false; /* for ldap tls */ @@ -115,7 +115,7 @@ main (int argc, char *argv[]) usage4 (_("Could not parse arguments")); if (strstr(argv[0],"check_ldaps") && ! starttls && ! ssl_on_connect) - starttls = TRUE; + starttls = true; /* initialize alarm signal handling */ signal (SIGALRM, socket_timeout_alarm_handler); @@ -253,11 +253,11 @@ main (int argc, char *argv[]) fperfdata ("time", elapsed_time, "s", (int)warn_time, warn_time, (int)crit_time, crit_time, - TRUE, 0, FALSE, 0), + true, 0, false, 0), sperfdata ("entries", (double)num_entries, "", warn_entries, crit_entries, - TRUE, 0.0, FALSE, 0.0)); + true, 0.0, false, 0.0)); } else { printf (_("LDAP %s - %.3f seconds response time|%s\n"), state_text (status), @@ -265,7 +265,7 @@ main (int argc, char *argv[]) fperfdata ("time", elapsed_time, "s", (int)warn_time, warn_time, (int)crit_time, crit_time, - TRUE, 0, FALSE, 0)); + true, 0, false, 0)); } return status; @@ -313,7 +313,7 @@ process_arguments (int argc, char **argv) strcpy (argv[c], "-t"); } - while (1) { + while (true) { c = getopt_long (argc, argv, "hvV234TS6t:c:w:H:b:p:a:D:P:C:W:", longopts, &option); if (c == -1 || c == EOF) @@ -374,17 +374,17 @@ process_arguments (int argc, char **argv) address_family = AF_INET; break; case 'v': - verbose++; + verbose = true; break; case 'T': if (! ssl_on_connect) - starttls = TRUE; + starttls = true; else usage_va(_("%s cannot be combined with %s"), "-T/--starttls", "-S/--ssl"); break; case 'S': if (! starttls) { - ssl_on_connect = TRUE; + ssl_on_connect = true; if (ld_port == -1) ld_port = LDAPS_PORT; } else diff --git a/plugins/check_load.c b/plugins/check_load.c index 313df8a..1431d13 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c @@ -110,10 +110,6 @@ main (int argc, char **argv) double la[3] = { 0.0, 0.0, 0.0 }; /* NetBSD complains about uninitialized arrays */ #ifndef HAVE_GETLOADAVG char input_buffer[MAX_INPUT_BUFFER]; -# ifdef HAVE_PROC_LOADAVG - FILE *fp; - char *str, *next; -# endif #endif setlocale (LC_ALL, ""); @@ -132,23 +128,6 @@ main (int argc, char **argv) if (result != 3) return STATE_UNKNOWN; #else -# ifdef HAVE_PROC_LOADAVG - fp = fopen (PROC_LOADAVG, "r"); - if (fp == NULL) { - printf (_("Error opening %s\n"), PROC_LOADAVG); - return STATE_UNKNOWN; - } - - while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) { - str = (char *)input_buffer; - for(i = 0; i < 3; i++) { - la[i] = strtod(str, &next); - str = next; - } - } - - fclose (fp); -# else child_process = spopen (PATH_TO_UPTIME); if (child_process == NULL) { printf (_("Error opening %s\n"), PATH_TO_UPTIME); @@ -175,18 +154,13 @@ main (int argc, char **argv) printf (_("Error code %d returned in %s\n"), result, PATH_TO_UPTIME); return STATE_UNKNOWN; } -# endif #endif if ((la[0] < 0.0) || (la[1] < 0.0) || (la[2] < 0.0)) { #ifdef HAVE_GETLOADAVG printf (_("Error in getloadavg()\n")); #else -# ifdef HAVE_PROC_LOADAVG - printf (_("Error processing %s\n"), PROC_LOADAVG); -# else printf (_("Error processing %s\n"), PATH_TO_UPTIME); -# endif #endif return STATE_UNKNOWN; } diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c index 1fda549..826b77e 100644 --- a/plugins/check_mrtg.c +++ b/plugins/check_mrtg.c @@ -43,7 +43,7 @@ void print_usage (void); char *log_file = NULL; int expire_minutes = 0; -int use_average = TRUE; +bool use_average = true; int variable_number = -1; unsigned long value_warning_threshold = 0L; unsigned long value_critical_threshold = 0L; @@ -138,7 +138,7 @@ main (int argc, char **argv) } /* else check the incoming/outgoing rates */ - if (use_average == TRUE) + if (use_average) rate = average_value_rate; else rate = maximum_value_rate; @@ -149,7 +149,7 @@ main (int argc, char **argv) result = STATE_WARNING; printf("%s. %s = %lu %s|%s\n", - (use_average == TRUE) ? _("Avg") : _("Max"), + (use_average) ? _("Avg") : _("Max"), label, rate, units, perfdata(label, (long) rate, units, (int) value_warning_threshold, (long) value_warning_threshold, @@ -211,9 +211,9 @@ process_arguments (int argc, char **argv) break; case 'a': /* port */ if (!strcmp (optarg, "MAX")) - use_average = FALSE; + use_average = false; else - use_average = TRUE; + use_average = true; break; case 'v': variable_number = atoi (optarg); @@ -258,11 +258,11 @@ process_arguments (int argc, char **argv) } if (argc > c && strcmp (argv[c], "MAX") == 0) { - use_average = FALSE; + use_average = false; c++; } else if (argc > c && strcmp (argv[c], "AVG") == 0) { - use_average = TRUE; + use_average = true; c++; } diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c index eb66f62..bd25d47 100644 --- a/plugins/check_mrtgtraf.c +++ b/plugins/check_mrtgtraf.c @@ -43,7 +43,7 @@ void print_usage(void); char *log_file = NULL; int expire_minutes = -1; -int use_average = TRUE; +bool use_average = true; unsigned long incoming_warning_threshold = 0L; unsigned long incoming_critical_threshold = 0L; unsigned long outgoing_warning_threshold = 0L; @@ -137,7 +137,7 @@ main (int argc, char **argv) (int) ((current_time - timestamp) / 60)); /* else check the incoming/outgoing rates */ - if (use_average == TRUE) { + if (use_average) { incoming_rate = average_incoming_rate; outgoing_rate = average_outgoing_rate; } @@ -192,17 +192,17 @@ main (int argc, char **argv) } xasprintf (&error_message, _("%s. In = %0.1f %s/s, %s. Out = %0.1f %s/s|%s %s\n"), - (use_average == TRUE) ? _("Avg") : _("Max"), adjusted_incoming_rate, - incoming_speed_rating, (use_average == TRUE) ? _("Avg") : _("Max"), + (use_average) ? _("Avg") : _("Max"), adjusted_incoming_rate, + incoming_speed_rating, (use_average) ? _("Avg") : _("Max"), adjusted_outgoing_rate, outgoing_speed_rating, fperfdata("in", adjusted_incoming_rate, incoming_speed_rating, (int)incoming_warning_threshold, incoming_warning_threshold, (int)incoming_critical_threshold, incoming_critical_threshold, - TRUE, 0, FALSE, 0), + true, 0, false, 0), fperfdata("out", adjusted_outgoing_rate, outgoing_speed_rating, (int)outgoing_warning_threshold, outgoing_warning_threshold, (int)outgoing_critical_threshold, outgoing_critical_threshold, - TRUE, 0, FALSE, 0)); + true, 0, false, 0)); printf (_("Traffic %s - %s\n"), state_text(result), error_message); @@ -256,9 +256,9 @@ process_arguments (int argc, char **argv) break; case 'a': /* aggregation (AVE or MAX) */ if (!strcmp (optarg, "MAX")) - use_average = FALSE; + use_average = false; else - use_average = TRUE; + use_average = true; break; case 'c': /* warning threshold */ sscanf (optarg, "%lu,%lu", &incoming_critical_threshold, @@ -289,11 +289,11 @@ process_arguments (int argc, char **argv) } if (argc > c && strcmp (argv[c], "MAX") == 0) { - use_average = FALSE; + use_average = false; c++; } else if (argc > c && strcmp (argv[c], "AVG") == 0) { - use_average = TRUE; + use_average = true; c++; } diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 7d85554..6a7daf1 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -113,7 +113,7 @@ main (int argc, char **argv) char slaveresult[SLAVERESULTSIZE] = { 0 }; char* perf; - perf = strdup (""); + perf = strdup (""); setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -193,14 +193,14 @@ main (int argc, char **argv) for(i = 0; i < LENGTH_METRIC_UNIT; i++) { if (strcmp(row[0], metric_unit[i]) == 0) { xasprintf(&perf, "%s%s ", perf, perfdata(metric_unit[i], - atol(row[1]), "", FALSE, 0, FALSE, 0, FALSE, 0, FALSE, 0)); + atol(row[1]), "", false, 0, false, 0, false, 0, false, 0)); continue; } } for(i = 0; i < LENGTH_METRIC_COUNTER; i++) { if (strcmp(row[0], metric_counter[i]) == 0) { xasprintf(&perf, "%s%s ", perf, perfdata(metric_counter[i], - atol(row[1]), "c", FALSE, 0, FALSE, 0, FALSE, 0, FALSE, 0)); + atol(row[1]), "c", false, 0, false, 0, false, 0, false, 0)); continue; } } @@ -322,10 +322,10 @@ main (int argc, char **argv) status = get_status(value, my_threshold); xasprintf (&perf, "%s %s", perf, fperfdata ("seconds behind master", value, "s", - TRUE, (double) warning_time, - TRUE, (double) critical_time, - FALSE, 0, - FALSE, 0)); + true, (double) warning_time, + true, (double) critical_time, + false, 0, + false, 0)); if (status == STATE_WARNING) { printf("SLOW_SLAVE %s: %s|%s\n", _("WARNING"), slaveresult, perf); diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c index ac2fb15..842b7a2 100644 --- a/plugins/check_mysql_query.c +++ b/plugins/check_mysql_query.c @@ -162,10 +162,10 @@ main (int argc, char **argv) } printf(_("'%s' returned %f | %s"), sql_query, value, fperfdata("result", value, "", - my_thresholds->warning?TRUE:FALSE, my_thresholds->warning?my_thresholds->warning->end:0, - my_thresholds->critical?TRUE:FALSE, my_thresholds->critical?my_thresholds->critical->end:0, - FALSE, 0, - FALSE, 0) + my_thresholds->warning?true:false, my_thresholds->warning?my_thresholds->warning->end:0, + my_thresholds->critical?true:false, my_thresholds->critical?my_thresholds->critical->end:0, + false, 0, + false, 0) ); printf("\n"); diff --git a/plugins/check_nt.c b/plugins/check_nt.c index d73d83c..19c050d 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c @@ -67,17 +67,17 @@ char *req_password=NULL; unsigned long lvalue_list[MAX_VALUE_LIST]; unsigned long warning_value=0L; unsigned long critical_value=0L; -int check_warning_value=FALSE; -int check_critical_value=FALSE; +bool check_warning_value=false; +bool check_critical_value=false; enum checkvars vars_to_check = CHECK_NONE; -int show_all=FALSE; +bool show_all = false; char recv_buffer[MAX_INPUT_BUFFER]; void fetch_data (const char* address, int port, const char* sendb); int process_arguments(int, char **); void preparelist(char *string); -int strtoularray(unsigned long *array, char *string, const char *delim); +bool strtoularray(unsigned long *array, char *string, const char *delim); void print_help(void); void print_usage(void); @@ -113,8 +113,8 @@ int main(int argc, char **argv){ int uphours=0; int upminutes=0; - int isPercent = FALSE; - int allRight = FALSE; + bool isPercent = false; + bool allRight = false; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -151,7 +151,7 @@ int main(int argc, char **argv){ if (value_list==NULL) output_message = strdup (_("missing -l parameters")); - else if (strtoularray(lvalue_list,value_list,",")==FALSE) + else if (! strtoularray(lvalue_list,value_list,",")) output_message = strdup (_("wrong -l parameter.")); else { /* -l parameters is present with only integers */ @@ -224,9 +224,9 @@ int main(int argc, char **argv){ xasprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s) |uptime=%lu"),updays, uphours, upminutes, uptime); - if (check_critical_value==TRUE && uptime <= critical_value) + if (check_critical_value && uptime <= critical_value) return_code=STATE_CRITICAL; - else if (check_warning_value==TRUE && uptime <= warning_value) + else if (check_warning_value && uptime <= warning_value) return_code=STATE_WARNING; else return_code=STATE_OK; @@ -261,9 +261,9 @@ int main(int argc, char **argv){ (total_disk_space - free_disk_space) / 1073741824, warning_used_space / 1073741824, critical_used_space / 1073741824, total_disk_space / 1073741824); - if(check_critical_value==TRUE && percent_used_space >= critical_value) + if(check_critical_value && percent_used_space >= critical_value) return_code=STATE_CRITICAL; - else if (check_warning_value==TRUE && percent_used_space >= warning_value) + else if (check_warning_value && percent_used_space >= warning_value) return_code=STATE_WARNING; else return_code=STATE_OK; @@ -285,7 +285,7 @@ int main(int argc, char **argv){ else { preparelist(value_list); /* replace , between services with & to send the request */ xasprintf(&send_buffer,"%s&%u&%s&%s", req_password,(vars_to_check==CHECK_SERVICESTATE)?5:6, - (show_all==TRUE) ? "ShowAll" : "ShowFail",value_list); + (show_all) ? "ShowAll" : "ShowFail",value_list); fetch_data (server_address, server_port, send_buffer); numstr = strtok(recv_buffer,"&"); if (numstr == NULL) @@ -321,9 +321,9 @@ int main(int argc, char **argv){ warning_used_space / 1048567, critical_used_space / 1048567, mem_commitLimit / 1048567); return_code=STATE_OK; - if(check_critical_value==TRUE && percent_used_space >= critical_value) + if(check_critical_value && percent_used_space >= critical_value) return_code=STATE_CRITICAL; - else if (check_warning_value==TRUE && percent_used_space >= warning_value) + else if (check_warning_value && percent_used_space >= warning_value) return_code=STATE_WARNING; break; @@ -371,7 +371,7 @@ int main(int argc, char **argv){ else if (isPercent) { counter_unit = strdup ("%"); - allRight = TRUE; + allRight = true; } if ((counter_unit != NULL) && (!allRight)) @@ -391,7 +391,7 @@ int main(int argc, char **argv){ if ((fmaxval == 0) && (maxval == errcvt)) output_message = strdup (_("Maximum value contains non-numbers")); else - allRight = TRUE; /* Everything is OK. */ + allRight = true; /* Everything is OK. */ } } @@ -418,9 +418,9 @@ int main(int argc, char **argv){ if (critical_value > warning_value) { /* Normal thresholds */ - if (check_critical_value == TRUE && counter_value >= critical_value) + if (check_critical_value && counter_value >= critical_value) return_code = STATE_CRITICAL; - else if (check_warning_value == TRUE && counter_value >= warning_value) + else if (check_warning_value && counter_value >= warning_value) return_code = STATE_WARNING; else return_code = STATE_OK; @@ -428,9 +428,9 @@ int main(int argc, char **argv){ else { /* inverse thresholds */ return_code = STATE_OK; - if (check_critical_value == TRUE && counter_value <= critical_value) + if (check_critical_value && counter_value <= critical_value) return_code = STATE_CRITICAL; - else if (check_warning_value == TRUE && counter_value <= warning_value) + else if (check_warning_value && counter_value <= warning_value) return_code = STATE_WARNING; } break; @@ -448,17 +448,17 @@ int main(int argc, char **argv){ output_message = strdup (description); if (critical_value > warning_value) { /* Normal thresholds */ - if(check_critical_value==TRUE && age_in_minutes >= critical_value) + if(check_critical_value && age_in_minutes >= critical_value) return_code=STATE_CRITICAL; - else if (check_warning_value==TRUE && age_in_minutes >= warning_value) + else if (check_warning_value && age_in_minutes >= warning_value) return_code=STATE_WARNING; else return_code=STATE_OK; } else { /* inverse thresholds */ - if(check_critical_value==TRUE && age_in_minutes <= critical_value) + if(check_critical_value && age_in_minutes <= critical_value) return_code=STATE_CRITICAL; - else if (check_warning_value==TRUE && age_in_minutes <= warning_value) + else if (check_warning_value && age_in_minutes <= warning_value) return_code=STATE_WARNING; else return_code=STATE_OK; @@ -600,15 +600,15 @@ int process_arguments(int argc, char **argv){ break; case 'w': /* warning threshold */ warning_value=strtoul(optarg,NULL,10); - check_warning_value=TRUE; + check_warning_value=true; break; case 'c': /* critical threshold */ critical_value=strtoul(optarg,NULL,10); - check_critical_value=TRUE; + check_critical_value=true; break; case 'd': /* Display select for services */ if (!strcmp(optarg,"SHOWALL")) - show_all = TRUE; + show_all = true; break; case 'u': socket_timeout_state=STATE_UNKNOWN; @@ -646,7 +646,7 @@ void fetch_data (const char *address, int port, const char *sendb) { die (STATE_UNKNOWN, "NSClient - %s\n",recv_buffer); } -int strtoularray(unsigned long *array, char *string, const char *delim) { +bool strtoularray(unsigned long *array, char *string, const char *delim) { /* split a delimited string into a long array */ int idx=0; char *t1; @@ -660,9 +660,9 @@ int strtoularray(unsigned long *array, char *string, const char *delim) { array[idx]=strtoul(t1,NULL,10); idx++; } else - return FALSE; + return false; } - return TRUE; + return true; } void preparelist(char *string) { diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 99537c8..61b2d69 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c @@ -40,10 +40,10 @@ const char *email = "devel@monitoring-plugins.org"; static char *server_address=NULL; static int verbose=0; -static short do_offset=0; +static bool do_offset = false; static char *owarn="60"; static char *ocrit="120"; -static short do_jitter=0; +static bool do_jitter = false; static char *jwarn="5000"; static char *jcrit="10000"; @@ -513,7 +513,8 @@ setup_control_request(ntp_control_message *p, uint8_t opcode, uint16_t seq){ /* XXX handle responses with the error bit set */ double jitter_request(int *status){ - int conn=-1, i, npeers=0, num_candidates=0, syncsource_found=0; + int conn=-1, i, npeers=0, num_candidates=0; + bool syncsource_found = false; int run=0, min_peer_sel=PEER_INCLUDED, num_selected=0, num_valid=0; int peers_size=0, peer_offset=0; ntp_assoc_status_pair *peers=NULL; @@ -570,7 +571,7 @@ double jitter_request(int *status){ if (PEER_SEL(peers[i].status) >= PEER_INCLUDED){ num_candidates++; if(PEER_SEL(peers[i].status) >= PEER_SYNCSOURCE){ - syncsource_found=1; + syncsource_found = true; min_peer_sel=PEER_SYNCSOURCE; } } @@ -699,23 +700,23 @@ int process_arguments(int argc, char **argv){ verbose++; break; case 'w': - do_offset=1; + do_offset = true; owarn = optarg; break; case 'c': - do_offset=1; + do_offset = true; ocrit = optarg; break; case 'j': - do_jitter=1; + do_jitter = true; jwarn = optarg; break; case 'k': - do_jitter=1; + do_jitter = true; jcrit = optarg; break; case 'H': - if(is_host(optarg) == FALSE) + if(!is_host(optarg)) usage2(_("Invalid hostname/address"), optarg); server_address = strdup(optarg); break; @@ -749,9 +750,9 @@ int process_arguments(int argc, char **argv){ char *perfd_offset (double offset) { return fperfdata ("offset", offset, "s", - TRUE, offset_thresholds->warning->end, - TRUE, offset_thresholds->critical->end, - FALSE, 0, FALSE, 0); + true, offset_thresholds->warning->end, + true, offset_thresholds->critical->end, + false, 0, false, 0); } char *perfd_jitter (double jitter) @@ -759,7 +760,7 @@ char *perfd_jitter (double jitter) return fperfdata ("jitter", jitter, "s", do_jitter, jitter_thresholds->warning->end, do_jitter, jitter_thresholds->critical->end, - TRUE, 0, FALSE, 0); + true, 0, false, 0); } int main(int argc, char *argv[]){ diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 49cb100..464a9e1 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c @@ -46,21 +46,20 @@ const char *email = "devel@monitoring-plugins.org"; static char *server_address=NULL; static int port=123; static int verbose=0; -static int quiet=0; -static short do_offset=0; +static bool quiet = false; static char *owarn="60"; static char *ocrit="120"; -static short do_stratum=0; +static bool do_stratum = false; static char *swarn="-1:16"; static char *scrit="-1:16"; -static short do_jitter=0; +static bool do_jitter = false; static char *jwarn="-1:5000"; static char *jcrit="-1:10000"; -static short do_truechimers=0; +static bool do_truechimers = false; static char *twarn="0:"; static char *tcrit="0:"; -static int syncsource_found=0; -static int li_alarm=0; +static bool syncsource_found = false; +static bool li_alarm = false; int process_arguments (int, char **); thresholds *offset_thresholds = NULL; @@ -254,7 +253,7 @@ int ntp_request(double *offset, int *offset_result, double *jitter, int *stratum die(STATE_CRITICAL, "NTP CRITICAL: Invalid packet received from NTP server\n"); } while (!(req.op&OP_READSTAT && ntohs(req.seq) == 1)); - if (LI(req.flags) == LI_ALARM) li_alarm = 1; + if (LI(req.flags) == LI_ALARM) li_alarm = true; /* Each peer identifier is 4 bytes in the data section, which * we represent as a ntp_assoc_status_pair datatype. */ @@ -276,7 +275,7 @@ int ntp_request(double *offset, int *offset_result, double *jitter, int *stratum if(PEER_SEL(peers[i].status) >= PEER_INCLUDED){ num_candidates++; if(PEER_SEL(peers[i].status) >= PEER_SYNCSOURCE){ - syncsource_found=1; + syncsource_found = true; min_peer_sel=PEER_SYNCSOURCE; } } @@ -440,7 +439,7 @@ int process_arguments(int argc, char **argv){ if (argc < 2) usage ("\n"); - while (1) { + while (true) { c = getopt_long (argc, argv, "Vhv46qw:c:W:C:j:k:m:n:t:H:p:", longopts, &option); if (c == -1 || c == EOF || c == 1) break; @@ -458,42 +457,40 @@ int process_arguments(int argc, char **argv){ verbose++; break; case 'q': - quiet = 1; + quiet = true; break; case 'w': - do_offset=1; owarn = optarg; break; case 'c': - do_offset=1; ocrit = optarg; break; case 'W': - do_stratum=1; + do_stratum = true; swarn = optarg; break; case 'C': - do_stratum=1; + do_stratum = true; scrit = optarg; break; case 'j': - do_jitter=1; + do_jitter = true; jwarn = optarg; break; case 'k': - do_jitter=1; + do_jitter = true; jcrit = optarg; break; case 'm': - do_truechimers=1; + do_truechimers = true; twarn = optarg; break; case 'n': - do_truechimers=1; + do_truechimers = true; tcrit = optarg; break; case 'H': - if(is_host(optarg) == FALSE) + if(!is_host(optarg)) usage2(_("Invalid hostname/address"), optarg); server_address = strdup(optarg); break; @@ -530,9 +527,9 @@ int process_arguments(int argc, char **argv){ char *perfd_offset (double offset) { return fperfdata ("offset", offset, "s", - TRUE, offset_thresholds->warning->end, - TRUE, offset_thresholds->critical->end, - FALSE, 0, FALSE, 0); + true, offset_thresholds->warning->end, + true, offset_thresholds->critical->end, + false, 0, false, 0); } char *perfd_jitter (double jitter) @@ -540,7 +537,7 @@ char *perfd_jitter (double jitter) return fperfdata ("jitter", jitter, "", do_jitter, jitter_thresholds->warning->end, do_jitter, jitter_thresholds->critical->end, - TRUE, 0, FALSE, 0); + true, 0, false, 0); } char *perfd_stratum (int stratum) @@ -548,7 +545,7 @@ char *perfd_stratum (int stratum) return perfdata ("stratum", stratum, "", do_stratum, (int)stratum_thresholds->warning->end, do_stratum, (int)stratum_thresholds->critical->end, - TRUE, 0, TRUE, 16); + true, 0, true, 16); } char *perfd_truechimers (int num_truechimers) @@ -556,11 +553,11 @@ char *perfd_truechimers (int num_truechimers) return perfdata ("truechimers", num_truechimers, "", do_truechimers, (int)truechimer_thresholds->warning->end, do_truechimers, (int)truechimer_thresholds->critical->end, - TRUE, 0, FALSE, 0); + true, 0, false, 0); } int main(int argc, char *argv[]){ - int result, offset_result, stratum, num_truechimers, oresult, jresult, sresult, tresult; + int result, offset_result, stratum, num_truechimers; double offset=0, jitter=0; char *result_line, *perfdata_line; @@ -590,25 +587,35 @@ int main(int argc, char *argv[]){ if(offset_result == STATE_UNKNOWN) { /* if there's no sync peer (this overrides ntp_request output): */ - result = (quiet == 1 ? STATE_UNKNOWN : STATE_CRITICAL); + result = (quiet ? STATE_UNKNOWN : STATE_CRITICAL); } else { /* Be quiet if there's no candidates either */ - if (quiet == 1 && result == STATE_WARNING) + if (quiet && result == STATE_WARNING) result = STATE_UNKNOWN; result = max_state_alt(result, get_status(fabs(offset), offset_thresholds)); } - oresult = result; + + int oresult = result; + + + int tresult = STATE_UNKNOWN; if(do_truechimers) { tresult = get_status(num_truechimers, truechimer_thresholds); result = max_state_alt(result, tresult); } + + int sresult = STATE_UNKNOWN; + if(do_stratum) { sresult = get_status(stratum, stratum_thresholds); result = max_state_alt(result, sresult); } + + int jresult = STATE_UNKNOWN; + if(do_jitter) { jresult = get_status(jitter, jitter_thresholds); result = max_state_alt(result, jresult); diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index 46cc604..b2e1655 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c @@ -45,7 +45,7 @@ const char *email = "devel@monitoring-plugins.org"; static char *server_address=NULL; static char *port="123"; static int verbose=0; -static int quiet=0; +static bool quiet = false; static char *owarn="60"; static char *ocrit="120"; static int time_offset=0; @@ -485,7 +485,7 @@ int process_arguments(int argc, char **argv){ verbose++; break; case 'q': - quiet = 1; + quiet = true; break; case 'w': owarn = optarg; @@ -494,7 +494,7 @@ int process_arguments(int argc, char **argv){ ocrit = optarg; break; case 'H': - if(is_host(optarg) == FALSE) + if(!is_host(optarg)) usage2(_("Invalid hostname/address"), optarg); server_address = strdup(optarg); break; @@ -531,12 +531,11 @@ int process_arguments(int argc, char **argv){ return 0; } -char *perfd_offset (double offset) -{ +char *perfd_offset (double offset) { return fperfdata ("offset", offset, "s", - TRUE, offset_thresholds->warning->end, - TRUE, offset_thresholds->critical->end, - FALSE, 0, FALSE, 0); + true, offset_thresholds->warning->end, + true, offset_thresholds->critical->end, + false, 0, false, 0); } int main(int argc, char *argv[]){ @@ -566,7 +565,7 @@ int main(int argc, char *argv[]){ offset = offset_request(server_address, &offset_result); if (offset_result == STATE_UNKNOWN) { - result = (quiet == 1 ? STATE_UNKNOWN : STATE_CRITICAL); + result = ( (!quiet) ? STATE_UNKNOWN : STATE_CRITICAL); } else { result = get_status(fabs(offset), offset_thresholds); } diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index 3c9d23e..10c493b 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c @@ -46,6 +46,7 @@ enum checkvar { VPF, /* check % free space on volume */ VMF, /* check MB free space on volume */ VMU, /* check MB used space on volume */ + VPU, /* check % used space on volume */ VMP, /* check MB purgeable space on volume */ VKF, /* check KB free space on volume */ LTCH, /* check long-term cache hit percentage */ @@ -104,9 +105,9 @@ char *nss7_name=NULL; int server_port=PORT; unsigned long warning_value=0L; unsigned long critical_value=0L; -int check_warning_value=FALSE; -int check_critical_value=FALSE; -int check_netware_version=FALSE; +bool check_warning_value = false; +bool check_critical_value = false; +bool check_netware_version = false; enum checkvar vars_to_check = NONE; int sap_number=-1; @@ -146,6 +147,8 @@ main(int argc, char **argv) { unsigned long nss6_value=0L; unsigned long nss7_value=0L; unsigned long total_disk_space=0L; + unsigned long used_disk_space=0L; + unsigned long percent_used_disk_space=0L; unsigned long purgeable_disk_space=0L; unsigned long non_purgeable_disk_space=0L; unsigned long percent_free_space=0; @@ -182,7 +185,7 @@ main(int argc, char **argv) { my_tcp_connect (server_address, server_port, &sd); /* get OS version string */ - if (check_netware_version==TRUE) { + if (check_netware_version) { send_buffer = strdup ("S19\r\n"); result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); if (result!=STATE_OK) @@ -231,9 +234,9 @@ main(int argc, char **argv) { recv_buffer[strlen(recv_buffer)-1]=0; sprintf(uptime,_("Up %s,"),recv_buffer); - if (check_critical_value==TRUE && utilization >= critical_value) + if (check_critical_value && utilization >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && utilization >= warning_value) + else if (check_warning_value && utilization >= warning_value) result=STATE_WARNING; xasprintf (&output_message, @@ -259,9 +262,9 @@ main(int argc, char **argv) { return result; current_connections=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && current_connections >= critical_value) + if (check_critical_value && current_connections >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && current_connections >= warning_value) + else if (check_warning_value && current_connections >= warning_value) result=STATE_WARNING; xasprintf (&output_message, @@ -284,9 +287,9 @@ main(int argc, char **argv) { return result; cache_hits=atoi(recv_buffer); - if (check_critical_value==TRUE && cache_hits <= critical_value) + if (check_critical_value && cache_hits <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && cache_hits <= warning_value) + else if (check_warning_value && cache_hits <= warning_value) result=STATE_WARNING; xasprintf (&output_message, @@ -306,9 +309,9 @@ main(int argc, char **argv) { return result; cache_buffers=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && cache_buffers <= critical_value) + if (check_critical_value && cache_buffers <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && cache_buffers <= warning_value) + else if (check_warning_value && cache_buffers <= warning_value) result=STATE_WARNING; xasprintf (&output_message, @@ -331,9 +334,9 @@ main(int argc, char **argv) { return result; cache_buffers=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && cache_buffers >= critical_value) + if (check_critical_value && cache_buffers >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && cache_buffers >= warning_value) + else if (check_warning_value && cache_buffers >= warning_value) result=STATE_WARNING; xasprintf (&output_message, @@ -356,9 +359,9 @@ main(int argc, char **argv) { return result; lru_time=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && lru_time <= critical_value) + if (check_critical_value && lru_time <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && lru_time <= warning_value) + else if (check_warning_value && lru_time <= warning_value) result=STATE_WARNING; xasprintf (&output_message, @@ -383,9 +386,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { free_disk_space=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && free_disk_space <= critical_value) + if (check_critical_value && free_disk_space <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && free_disk_space <= warning_value) + else if (check_warning_value && free_disk_space <= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s%lu KB free on volume %s|KBFree%s=%lu;%lu;%lu;;"), @@ -411,9 +414,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { free_disk_space=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && free_disk_space <= critical_value) + if (check_critical_value && free_disk_space <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && free_disk_space <= warning_value) + else if (check_warning_value && free_disk_space <= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s%lu MB free on volume %s|MBFree%s=%lu;%lu;%lu;;"), @@ -438,9 +441,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { free_disk_space=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && free_disk_space <= critical_value) + if (check_critical_value && free_disk_space <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && free_disk_space <= warning_value) + else if (check_warning_value && free_disk_space <= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s%lu MB used on volume %s|MBUsed%s=%lu;%lu;%lu;;"), @@ -452,7 +455,50 @@ main(int argc, char **argv) { warning_value, critical_value); } + /* check % used space on volume */ + } else if (vars_to_check==VPU) { + close(sd); + my_tcp_connect (server_address, server_port, &sd); + asprintf (&send_buffer,"VMU%s\r\n",volume_name); + result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); + + if (result!=STATE_OK) + return result; + + if (!strcmp(recv_buffer,"-1\n")) { + asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name); + result=STATE_CRITICAL; + + } else { + used_disk_space=strtoul(recv_buffer,NULL,10); + close(sd); + my_tcp_connect (server_address, server_port, &sd); + /* get total volume in MB */ + asprintf (&send_buffer,"VMS%s\r\n",volume_name); + result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); + if (result!=STATE_OK) + return result; + total_disk_space=strtoul(recv_buffer,NULL,10); + /* calculate percent used on volume */ + percent_used_disk_space=(unsigned long)(((double)used_disk_space/(double)total_disk_space)*100.0); + + if (check_critical_value && percent_used_disk_space >= critical_value) + result=STATE_CRITICAL; + else if (check_warning_value && percent_used_disk_space >= warning_value) + result=STATE_WARNING; + + asprintf (&output_message,_("%lu MB (%lu%%) used on volume %s - total %lu MB|Used space in percent on %s=%lu;%lu;%lu;0;100"), + used_disk_space, + percent_used_disk_space, + volume_name, + total_disk_space, + volume_name, + percent_used_disk_space, + warning_value, + critical_value + ); + } /* check % free space on volume */ } else if (vars_to_check==VPF) { @@ -485,9 +531,9 @@ main(int argc, char **argv) { percent_free_space=(unsigned long)(((double)free_disk_space/(double)total_disk_space)*100.0); - if (check_critical_value==TRUE && percent_free_space <= critical_value) + if (check_critical_value && percent_free_space <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && percent_free_space <= warning_value) + else if (check_warning_value && percent_free_space <= warning_value) result=STATE_WARNING; free_disk_space/=1024; total_disk_space/=1024; @@ -596,14 +642,14 @@ main(int argc, char **argv) { percent_used_packet_receive_buffers=(unsigned long)(((double)used_packet_receive_buffers/(double)max_packet_receive_buffers)*100.0); if (vars_to_check==UPRB) { - if (check_critical_value==TRUE && used_packet_receive_buffers >= critical_value) + if (check_critical_value && used_packet_receive_buffers >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && used_packet_receive_buffers >= warning_value) + else if (check_warning_value && used_packet_receive_buffers >= warning_value) result=STATE_WARNING; } else { - if (check_critical_value==TRUE && percent_used_packet_receive_buffers >= critical_value) + if (check_critical_value && percent_used_packet_receive_buffers >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && percent_used_packet_receive_buffers >= warning_value) + else if (check_warning_value && percent_used_packet_receive_buffers >= warning_value) result=STATE_WARNING; } @@ -625,9 +671,9 @@ main(int argc, char **argv) { sap_entries=atoi(recv_buffer); - if (check_critical_value==TRUE && sap_entries >= critical_value) + if (check_critical_value && sap_entries >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && sap_entries >= warning_value) + else if (check_warning_value && sap_entries >= warning_value) result=STATE_WARNING; if (sap_number==-1) @@ -651,9 +697,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { purgeable_disk_space=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && purgeable_disk_space >= critical_value) + if (check_critical_value && purgeable_disk_space >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && purgeable_disk_space >= warning_value) + else if (check_warning_value && purgeable_disk_space >= warning_value) result=STATE_WARNING; xasprintf (&output_message,_("%s%lu KB purgeable on volume %s|Purge%s=%lu;%lu;%lu;;"), (result==STATE_OK)?"":_("Only "), @@ -677,9 +723,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { purgeable_disk_space=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && purgeable_disk_space >= critical_value) + if (check_critical_value && purgeable_disk_space >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && purgeable_disk_space >= warning_value) + else if (check_warning_value && purgeable_disk_space >= warning_value) result=STATE_WARNING; xasprintf (&output_message,_("%s%lu MB purgeable on volume %s|Purge%s=%lu;%lu;%lu;;"), (result==STATE_OK)?"":_("Only "), @@ -722,9 +768,9 @@ main(int argc, char **argv) { percent_purgeable_space=(unsigned long)(((double)purgeable_disk_space/(double)total_disk_space)*100.0); - if (check_critical_value==TRUE && percent_purgeable_space >= critical_value) + if (check_critical_value && percent_purgeable_space >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && percent_purgeable_space >= warning_value) + else if (check_warning_value && percent_purgeable_space >= warning_value) result=STATE_WARNING; purgeable_disk_space/=1024; xasprintf (&output_message,_("%lu MB (%lu%%) purgeable on volume %s|Purgeable%s=%lu;%lu;%lu;0;100"), @@ -754,9 +800,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { non_purgeable_disk_space=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && non_purgeable_disk_space >= critical_value) + if (check_critical_value && non_purgeable_disk_space >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && non_purgeable_disk_space >= warning_value) + else if (check_warning_value && non_purgeable_disk_space >= warning_value) result=STATE_WARNING; xasprintf (&output_message,_("%s%lu KB not yet purgeable on volume %s"),(result==STATE_OK)?"":_("Only "),non_purgeable_disk_space,volume_name); } @@ -792,9 +838,9 @@ main(int argc, char **argv) { percent_non_purgeable_space=(unsigned long)(((double)non_purgeable_disk_space/(double)total_disk_space)*100.0); - if (check_critical_value==TRUE && percent_non_purgeable_space >= critical_value) + if (check_critical_value && percent_non_purgeable_space >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && percent_non_purgeable_space >= warning_value) + else if (check_warning_value && percent_non_purgeable_space >= warning_value) result=STATE_WARNING; purgeable_disk_space/=1024; xasprintf (&output_message,_("%lu MB (%lu%%) not yet purgeable on volume %s"),non_purgeable_disk_space,percent_non_purgeable_space,volume_name); @@ -813,9 +859,9 @@ main(int argc, char **argv) { open_files=atoi(recv_buffer); - if (check_critical_value==TRUE && open_files >= critical_value) + if (check_critical_value && open_files >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && open_files >= warning_value) + else if (check_warning_value && open_files >= warning_value) result=STATE_WARNING; xasprintf (&output_message,_("%lu open files|Openfiles=%lu;%lu;%lu;0,0"), @@ -838,9 +884,9 @@ main(int argc, char **argv) { abended_threads=atoi(recv_buffer); - if (check_critical_value==TRUE && abended_threads >= critical_value) + if (check_critical_value && abended_threads >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && abended_threads >= warning_value) + else if (check_warning_value && abended_threads >= warning_value) result=STATE_WARNING; xasprintf (&output_message,_("%lu abended threads|Abends=%lu;%lu;%lu;;"), @@ -872,9 +918,9 @@ main(int argc, char **argv) { current_service_processes=atoi(recv_buffer); - if (check_critical_value==TRUE && current_service_processes >= critical_value) + if (check_critical_value && current_service_processes >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && current_service_processes >= warning_value) + else if (check_warning_value && current_service_processes >= warning_value) result=STATE_WARNING; xasprintf (&output_message, @@ -923,9 +969,9 @@ main(int argc, char **argv) { return result; lru_time=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && lru_time <= critical_value) + if (check_critical_value && lru_time <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && lru_time <= warning_value) + else if (check_warning_value && lru_time <= warning_value) result=STATE_WARNING; xasprintf (&output_message,_("LRU sitting time = %lu seconds"),lru_time); @@ -942,9 +988,9 @@ main(int argc, char **argv) { return result; dirty_cache_buffers=atoi(recv_buffer); - if (check_critical_value==TRUE && dirty_cache_buffers <= critical_value) + if (check_critical_value && dirty_cache_buffers <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && dirty_cache_buffers <= warning_value) + else if (check_warning_value && dirty_cache_buffers <= warning_value) result=STATE_WARNING; xasprintf (&output_message,_("Dirty cache buffers = %lu%% of the total|DCB=%lu;%lu;%lu;0;100"), dirty_cache_buffers, @@ -964,9 +1010,9 @@ main(int argc, char **argv) { return result; total_cache_buffers=atoi(recv_buffer); - if (check_critical_value==TRUE && total_cache_buffers <= critical_value) + if (check_critical_value && total_cache_buffers <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && total_cache_buffers <= warning_value) + else if (check_warning_value && total_cache_buffers <= warning_value) result=STATE_WARNING; xasprintf (&output_message,_("Total cache buffers = %lu%% of the original|TCB=%lu;%lu;%lu;0;100"), total_cache_buffers, @@ -1034,9 +1080,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nrmp_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nrmp_value <= critical_value) + if (check_critical_value && nrmp_value <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nrmp_value <= warning_value) + else if (check_warning_value && nrmp_value <= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1060,9 +1106,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nrmm_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nrmm_value <= critical_value) + if (check_critical_value && nrmm_value <= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nrmm_value <= warning_value) + else if (check_warning_value && nrmm_value <= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1086,9 +1132,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nrms_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nrms_value >= critical_value) + if (check_critical_value && nrms_value >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nrms_value >= warning_value) + else if (check_warning_value && nrms_value >= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1112,9 +1158,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nss1_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nss1_value >= critical_value) + if (check_critical_value && nss1_value >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nss1_value >= warning_value) + else if (check_warning_value && nss1_value >= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1138,9 +1184,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nss2_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nss2_value >= critical_value) + if (check_critical_value && nss2_value >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nss2_value >= warning_value) + else if (check_warning_value && nss2_value >= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1164,9 +1210,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nss3_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nss3_value >= critical_value) + if (check_critical_value && nss3_value >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nss3_value >= warning_value) + else if (check_warning_value && nss3_value >= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1190,9 +1236,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nss4_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nss4_value >= critical_value) + if (check_critical_value && nss4_value >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nss4_value >= warning_value) + else if (check_warning_value && nss4_value >= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1216,9 +1262,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nss5_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nss5_value >= critical_value) + if (check_critical_value && nss5_value >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nss5_value >= warning_value) + else if (check_warning_value && nss5_value >= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1242,9 +1288,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nss6_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nss6_value >= critical_value) + if (check_critical_value && nss6_value >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nss6_value >= warning_value) + else if (check_warning_value && nss6_value >= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1268,9 +1314,9 @@ main(int argc, char **argv) { result=STATE_CRITICAL; } else { nss7_value=strtoul(recv_buffer,NULL,10); - if (check_critical_value==TRUE && nss7_value >= critical_value) + if (check_critical_value && nss7_value >= critical_value) result=STATE_CRITICAL; - else if (check_warning_value==TRUE && nss7_value >= warning_value) + else if (check_warning_value && nss7_value >= warning_value) result=STATE_WARNING; xasprintf (&output_message, _("%s is %lu|%s=%lu;%lu;%lu;;"), @@ -1362,7 +1408,7 @@ int process_arguments(int argc, char **argv) { server_address=optarg; break; case 'o': /* display nos version */ - check_netware_version=TRUE; + check_netware_version = true; break; case 'p': /* port */ if (is_intnonneg(optarg)) @@ -1450,6 +1496,12 @@ int process_arguments(int argc, char **argv) { if (!strcmp(volume_name,"")) volume_name = strdup ("SYS"); } + else if (strncmp(optarg,"VPU",3)==0) { + vars_to_check=VPU; + volume_name = strdup (optarg+3); + if (!strcmp(volume_name,"")) + volume_name = strdup ("SYS"); + } else if (strncmp(optarg,"VPP",3)==0) { vars_to_check=VPP; volume_name = strdup (optarg+3); @@ -1569,11 +1621,11 @@ int process_arguments(int argc, char **argv) { break; case 'w': /* warning threshold */ warning_value=strtoul(optarg,NULL,10); - check_warning_value=TRUE; + check_warning_value = true; break; case 'c': /* critical threshold */ critical_value=strtoul(optarg,NULL,10); - check_critical_value=TRUE; + check_critical_value = true; break; case 't': /* timeout */ socket_timeout=atoi(optarg); @@ -1626,6 +1678,7 @@ void print_help(void) printf (" %s\n", _("OFILES = number of open files")); printf (" %s\n", _(" VMF = MB of free space on Volume ")); printf (" %s\n", _(" VMU = MB used space on Volume ")); + printf (" %s\n", _(" VPU = percent used space on Volume ")); printf (" %s\n", _(" VMP = MB of purgeable space on Volume ")); printf (" %s\n", _(" VPF = percent free space on volume ")); printf (" %s\n", _(" VKF = KB of free space on volume ")); diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c index 9a4d25f..5165c82 100644 --- a/plugins/check_overcr.c +++ b/plugins/check_overcr.c @@ -56,15 +56,15 @@ char *server_address = NULL; int server_port = PORT; double warning_value = 0L; double critical_value = 0L; -int check_warning_value = FALSE; -int check_critical_value = FALSE; +bool check_warning_value = false; +bool check_critical_value = false; enum checkvar vars_to_check = NONE; int cmd_timeout = 1; int netstat_port = 0; char *disk_name = NULL; char *process_name = NULL; - char send_buffer[MAX_INPUT_BUFFER]; +char send_buffer[MAX_INPUT_BUFFER]; int process_arguments (int, char **); void print_usage (void); @@ -77,7 +77,7 @@ main (int argc, char **argv) char recv_buffer[MAX_INPUT_BUFFER]; char temp_buffer[MAX_INPUT_BUFFER]; char *temp_ptr = NULL; - int found_disk = FALSE; + bool found_disk = false; unsigned long percent_used_disk_space = 100; double load; double load_1min; @@ -155,9 +155,9 @@ main (int argc, char **argv) break; } - if (check_critical_value == TRUE && (load >= critical_value)) + if (check_critical_value && (load >= critical_value)) result = STATE_CRITICAL; - else if (check_warning_value == TRUE && (load >= warning_value)) + else if (check_warning_value && (load >= warning_value)) result = STATE_WARNING; die (result, @@ -178,7 +178,7 @@ main (int argc, char **argv) temp_ptr = (char *) strtok (NULL, " ")) { if (!strcmp (temp_ptr, disk_name)) { - found_disk = TRUE; + found_disk = true; temp_ptr = (char *) strtok (NULL, "%"); if (temp_ptr == NULL) die (STATE_CRITICAL, _("Invalid response from server\n")); @@ -191,14 +191,14 @@ main (int argc, char **argv) } /* error if we couldn't find the info for the disk */ - if (found_disk == FALSE) + if (!found_disk) die (STATE_CRITICAL, "CRITICAL - Disk '%s' non-existent or not mounted", disk_name); - if (check_critical_value == TRUE && (percent_used_disk_space >= critical_value)) + if (check_critical_value && (percent_used_disk_space >= critical_value)) result = STATE_CRITICAL; - else if (check_warning_value == TRUE && (percent_used_disk_space >= warning_value)) + else if (check_warning_value && (percent_used_disk_space >= warning_value)) result = STATE_WARNING; die (result, "Disk %s - %lu%% used on %s", state_text(result), percent_used_disk_space, disk_name); @@ -212,9 +212,9 @@ main (int argc, char **argv) else port_connections = strtod (recv_buffer, NULL); - if (check_critical_value == TRUE && (port_connections >= critical_value)) + if (check_critical_value && (port_connections >= critical_value)) result = STATE_CRITICAL; - else if (check_warning_value == TRUE && (port_connections >= warning_value)) + else if (check_warning_value && (port_connections >= warning_value)) result = STATE_WARNING; die (result, @@ -241,9 +241,9 @@ main (int argc, char **argv) else processes = strtod (temp_ptr, NULL); - if (check_critical_value == TRUE && (processes >= critical_value)) + if (check_critical_value && (processes >= critical_value)) result = STATE_CRITICAL; - else if (check_warning_value == TRUE && (processes >= warning_value)) + else if (check_warning_value && (processes >= warning_value)) result = STATE_WARNING; die (result, @@ -262,9 +262,9 @@ main (int argc, char **argv) uptime_raw_hours = strtod (recv_buffer, NULL); uptime_raw_minutes = (unsigned long) (uptime_raw_hours * 60.0); - if (check_critical_value == TRUE && (uptime_raw_minutes <= critical_value)) + if (check_critical_value && (uptime_raw_minutes <= critical_value)) result = STATE_CRITICAL; - else if (check_warning_value == TRUE && (uptime_raw_minutes <= warning_value)) + else if (check_warning_value && (uptime_raw_minutes <= warning_value)) result = STATE_WARNING; uptime_days = uptime_raw_minutes / 1440; @@ -388,11 +388,11 @@ process_arguments (int argc, char **argv) break; case 'w': /* warning threshold */ warning_value = strtoul (optarg, NULL, 10); - check_warning_value = TRUE; + check_warning_value = true; break; case 'c': /* critical threshold */ critical_value = strtoul (optarg, NULL, 10); - check_critical_value = TRUE; + check_critical_value = true; break; case 't': /* timeout */ socket_timeout = atoi (optarg); diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 6199033..94d589e 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c @@ -69,7 +69,7 @@ int process_arguments (int, char **); int validate_arguments (void); void print_usage (void); void print_help (void); -int is_pg_logname (char *); +bool is_pg_logname (char *); int do_query (PGconn *, char *); char *pghost = NULL; /* host name of the backend server */ @@ -252,7 +252,7 @@ main (int argc, char **argv) printf (_(" %s - database %s (%f sec.)|%s\n"), state_text(status), dbName, elapsed_time, fperfdata("time", elapsed_time, "s", - !!(twarn > 0.0), twarn, !!(tcrit > 0.0), tcrit, TRUE, 0, FALSE,0)); + !!(twarn > 0.0), twarn, !!(tcrit > 0.0), tcrit, true, 0, false,0)); if (pgquery) query_status = do_query (conn, pgquery); @@ -393,7 +393,7 @@ process_arguments (int argc, char **argv) &PROTO_validate_arguments; -Given a database name, this function returns TRUE if the string +Given a database name, this function returns true if the string is a valid PostgreSQL database name, and returns false if it is not. @@ -424,7 +424,7 @@ function prototype &PROTO_is_pg_logname; -Given a username, this function returns TRUE if the string is a +Given a username, this function returns true if the string is a valid PostgreSQL username, and returns false if it is not. Valid PostgreSQL usernames are less than &NAMEDATALEN; characters long and consist of letters, numbers, dashes, and underscores, plus possibly some other @@ -439,12 +439,10 @@ should be added. -int -is_pg_logname (char *username) -{ +bool is_pg_logname (char *username) { if (strlen (username) > NAMEDATALEN - 1) - return (FALSE); - return (TRUE); + return (false); + return (true); } /****************************************************************************** diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 741f732..6e162e6 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -55,7 +55,7 @@ int error_scan (char buf[MAX_INPUT_BUFFER], const char *addr); void print_usage (void); void print_help (void); -int display_html = FALSE; +bool display_html = false; int wpl = UNKNOWN_PACKET_LOSS; int cpl = UNKNOWN_PACKET_LOSS; float wrta = UNKNOWN_TRIP_TIME; @@ -153,7 +153,7 @@ main (int argc, char **argv) if (n_addresses > 1 && this_result != STATE_UNKNOWN) die (STATE_OK, "%s is alive\n", addresses[i]); - if (display_html == TRUE) + if (display_html == true) printf ("", CGIURL, addresses[i]); if (pl == 100) printf (_("PING %s - %sPacket loss = %d%%"), state_text (this_result), warn_text, @@ -161,22 +161,22 @@ main (int argc, char **argv) else printf (_("PING %s - %sPacket loss = %d%%, RTA = %2.2f ms"), state_text (this_result), warn_text, pl, rta); - if (display_html == TRUE) + if (display_html == true) printf (""); /* Print performance data */ if (pl != 100) { printf("|%s", fperfdata ("rta", (double) rta, "ms", - wrta>0?TRUE:FALSE, wrta, - crta>0?TRUE:FALSE, crta, - TRUE, 0, FALSE, 0)); + wrta>0?true:false, wrta, + crta>0?true:false, crta, + true, 0, false, 0)); } else { printf("| rta=U;%f;%f;;", wrta, crta); } printf(" %s\n", perfdata ("pl", (long) pl, "%", - wpl>0?TRUE:FALSE, wpl, - cpl>0?TRUE:FALSE, cpl, - TRUE, 0, FALSE, 0)); + wpl>0?true:false, wpl, + cpl>0?true:false, cpl, + true, 0, false, 0)); if (verbose >= 2) printf ("%f:%d%% %f:%d%%\n", wrta, wpl, crta, cpl); @@ -278,10 +278,10 @@ process_arguments (int argc, char **argv) usage2 (_(" (%s) must be a non-negative number\n"), optarg); break; case 'n': /* no HTML */ - display_html = FALSE; + display_html = false; break; case 'L': /* show HTML */ - display_html = TRUE; + display_html = true; break; case 'c': get_threshold (optarg, &crta, &cpl); @@ -297,7 +297,7 @@ process_arguments (int argc, char **argv) return validate_arguments (); if (addresses[0] == NULL) { - if (is_host (argv[c]) == FALSE) { + if (!is_host (argv[c])) { usage2 (_("Invalid hostname/address"), argv[c]); } else { addresses[0] = argv[c++]; @@ -308,7 +308,7 @@ process_arguments (int argc, char **argv) } if (wpl == UNKNOWN_PACKET_LOSS) { - if (is_intpercent (argv[c]) == FALSE) { + if (!is_intpercent (argv[c])) { printf (_(" (%s) must be an integer percentage\n"), argv[c]); return ERROR; } else { @@ -319,7 +319,7 @@ process_arguments (int argc, char **argv) } if (cpl == UNKNOWN_PACKET_LOSS) { - if (is_intpercent (argv[c]) == FALSE) { + if (!is_intpercent (argv[c])) { printf (_(" (%s) must be an integer percentage\n"), argv[c]); return ERROR; } else { @@ -420,7 +420,7 @@ validate_arguments () timeout_interval = (int)max_seconds; for (i=0; i= 3) @@ -255,6 +258,13 @@ main (int argc, char **argv) continue; } + /* Ignore our own children */ + if (procppid == mypid) { + if (verbose >= 3) + printf("not considering - is our child\n"); + continue; + } + /* Ignore excluded processes by name */ if(options & EXCLUDE_PROGS) { int found = 0; @@ -728,18 +738,23 @@ convert_to_seconds(char *etime) { void print_help (void) { - print_revision (progname, NP_VERSION); + print_revision (progname, NP_VERSION); - printf ("Copyright (c) 1999 Ethan Galstad \n"); - printf (COPYRIGHT, copyright, email); + printf ("Copyright (c) 1999 Ethan Galstad \n"); + printf (COPYRIGHT, copyright, email); - printf ("%s\n", _("Checks all processes and generates WARNING or CRITICAL states if the specified")); + printf ("%s\n", _("Checks all processes and generates WARNING or CRITICAL states if the specified")); printf ("%s\n", _("metric is outside the required threshold ranges. The metric defaults to number")); printf ("%s\n", _("of processes. Search filters can be applied to limit the processes to check.")); printf ("\n\n"); - print_usage (); + printf ("%s\n", _("The parent process, check_procs itself and any child process of check_procs (ps)")); + printf ("%s\n", _("are excluded from any checks to prevent false positives.")); + + printf ("\n\n"); + + print_usage (); printf (UT_HELP_VRSN); printf (UT_EXTRA_OPTS); @@ -755,11 +770,11 @@ print_help (void) printf (" %s\n", _("CPU - percentage CPU")); /* only linux etime is support currently */ #if defined( __linux__ ) - printf (" %s\n", _("ELAPSED - time elapsed in seconds")); + printf (" %s\n", _("ELAPSED - time elapsed in seconds")); #endif /* defined(__linux__) */ - printf (UT_PLUG_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); + printf (UT_PLUG_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); - printf (" %s\n", "-v, --verbose"); + printf (" %s\n", "-v, --verbose"); printf (" %s\n", _("Extra information. Up to 3 verbosity levels")); printf (" %s\n", "-T, --traditional"); @@ -777,7 +792,7 @@ print_help (void) printf (" %s\n", _("Only scan for processes with VSZ higher than indicated.")); printf (" %s\n", "-r, --rss=RSS"); printf (" %s\n", _("Only scan for processes with RSS higher than indicated.")); - printf (" %s\n", "-P, --pcpu=PCPU"); + printf (" %s\n", "-P, --pcpu=PCPU"); printf (" %s\n", _("Only scan for processes with PCPU higher than indicated.")); printf (" %s\n", "-u, --user=USER"); printf (" %s\n", _("Only scan for processes with user name or ID indicated.")); @@ -792,19 +807,19 @@ print_help (void) printf (" %s\n", "-k, --no-kthreads"); printf (" %s\n", _("Only scan for non kernel threads (works on Linux only).")); - printf(_("\n\ + printf(_("\n\ RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If\n\ specified 'max:min', a warning status will be generated if the\n\ count is inside the specified range\n\n")); - printf(_("\ + printf(_("\ This plugin checks the number of currently running processes and\n\ generates WARNING or CRITICAL states if the process count is outside\n\ the specified threshold ranges. The process count can be filtered by\n\ process owner, parent process PID, current state (e.g., 'Z'), or may\n\ be the total number of running processes\n\n")); - printf ("%s\n", _("Examples:")); + printf ("%s\n", _("Examples:")); printf (" %s\n", "check_procs -w 2:2 -c 2:1024 -C portsentry"); printf (" %s\n", _("Warning if not two processes with command name portsentry.")); printf (" %s\n\n", _("Critical if < 2 or > 1024 processes")); @@ -821,14 +836,14 @@ be the total number of running processes\n\n")); printf (" %s\n", "check_procs -w 10 -c 20 --metric=CPU"); printf (" %s\n", _("Alert if CPU of any processes over 10\% or 20\%")); - printf (UT_SUPPORT); + printf (UT_SUPPORT); } void print_usage (void) { printf ("%s\n", _("Usage:")); - printf ("%s -w -c [-m metric] [-s state] [-p ppid]\n", progname); + printf ("%s -w -c [-m metric] [-s state] [-p ppid]\n", progname); printf (" [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n"); printf (" [-C command] [-X process_to_exclude] [-k] [-t timeout] [-v]\n"); } diff --git a/plugins/check_radius.c b/plugins/check_radius.c index b1b4938..6b32710 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c @@ -93,7 +93,7 @@ char *expect = NULL; char *config_file = NULL; unsigned short port = PW_AUTH_UDP_PORT; int retries = 1; -int verbose = FALSE; +bool verbose = false; /****************************************************************************** @@ -272,10 +272,10 @@ process_arguments (int argc, char **argv) print_revision (progname, NP_VERSION); exit (STATE_UNKNOWN); case 'v': /* verbose mode */ - verbose = TRUE; + verbose = true; break; case 'H': /* hostname */ - if (is_host (optarg) == FALSE) { + if (!is_host (optarg)) { usage2 (_("Invalid hostname/address"), optarg); } server = optarg; diff --git a/plugins/check_real.c b/plugins/check_real.c index fbdb70f..15e035b 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c @@ -54,10 +54,10 @@ char *host_name; char *server_url = NULL; char *server_expect; int warning_time = 0; -int check_warning_time = FALSE; +bool check_warning_time = false; int critical_time = 0; -int check_critical_time = FALSE; -int verbose = FALSE; +bool check_critical_time = false; +bool verbose = false; @@ -238,9 +238,9 @@ main (int argc, char **argv) /* Return results */ if (result == STATE_OK) { - if (check_critical_time == TRUE + if (check_critical_time && (end_time - start_time) > critical_time) result = STATE_CRITICAL; - else if (check_warning_time == TRUE + else if (check_warning_time && (end_time - start_time) > warning_time) result = STATE_WARNING; @@ -331,7 +331,7 @@ process_arguments (int argc, char **argv) case 'w': /* warning time threshold */ if (is_intnonneg (optarg)) { warning_time = atoi (optarg); - check_warning_time = TRUE; + check_warning_time = true; } else { usage4 (_("Warning time must be a positive integer")); @@ -340,14 +340,14 @@ process_arguments (int argc, char **argv) case 'c': /* critical time threshold */ if (is_intnonneg (optarg)) { critical_time = atoi (optarg); - check_critical_time = TRUE; + check_critical_time = true; } else { usage4 (_("Critical time must be a positive integer")); } break; case 'v': /* verbose */ - verbose = TRUE; + verbose = true; break; case 't': /* timeout */ if (is_intnonneg (optarg)) { diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index fc0ae2c..986c3e1 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c @@ -40,7 +40,7 @@ const char *email = "devel@monitoring-plugins.org"; #include #ifdef HAVE_SSL -int check_cert = FALSE; +bool check_cert = false; int days_till_exp_warn, days_till_exp_crit; # define my_recv(buf, len) (((use_starttls || use_ssl) && ssl_established) ? np_net_ssl_read(buf, len) : read(sd, buf, len)) # define my_send(buf, len) (((use_starttls || use_ssl) && ssl_established) ? np_net_ssl_write(buf, len) : send(sd, buf, len, 0)) @@ -100,17 +100,17 @@ char *authtype = NULL; char *authuser = NULL; char *authpass = NULL; double warning_time = 0; -int check_warning_time = FALSE; +bool check_warning_time = false; double critical_time = 0; -int check_critical_time = FALSE; +bool check_critical_time = false; int verbose = 0; -int use_ssl = FALSE; -int use_starttls = FALSE; -int use_sni = FALSE; -short use_proxy_prefix = FALSE; -short use_ehlo = FALSE; -short use_lhlo = FALSE; -short ssl_established = 0; +bool use_ssl = false; +bool use_starttls = false; +bool use_sni = false; +bool use_proxy_prefix = false; +bool use_ehlo = false; +bool use_lhlo = false; +bool ssl_established = false; char *localhostname = NULL; int sd; char buffer[MAX_INPUT_BUFFER]; @@ -118,13 +118,13 @@ enum { TCP_PROTOCOL = 1, UDP_PROTOCOL = 2, }; -int ignore_send_quit_failure = FALSE; +bool ignore_send_quit_failure = false; int main (int argc, char **argv) { - short supports_tls=FALSE; + bool supports_tls = false; int n = 0; double elapsed_time; long microsec; @@ -230,7 +230,7 @@ main (int argc, char **argv) } else if(use_ehlo || use_lhlo){ if(strstr(buffer, "250 STARTTLS") != NULL || strstr(buffer, "250-STARTTLS") != NULL){ - supports_tls=TRUE; + supports_tls=true; } } @@ -466,7 +466,7 @@ main (int argc, char **argv) fperfdata ("time", elapsed_time, "s", (int)check_warning_time, warning_time, (int)check_critical_time, critical_time, - TRUE, 0, FALSE, 0)); + true, 0, false, 0)); return result; } @@ -480,6 +480,8 @@ process_arguments (int argc, char **argv) int c; char* temp; + bool implicit_tls = false; + enum { SNI_OPTION }; @@ -560,7 +562,7 @@ process_arguments (int argc, char **argv) break; case 'A': authtype = optarg; - use_ehlo = TRUE; + use_ehlo = true; break; case 'U': authuser = optarg; @@ -600,7 +602,7 @@ process_arguments (int argc, char **argv) usage4 (_("Critical time must be a positive")); else { critical_time = strtod (optarg, NULL); - check_critical_time = TRUE; + check_critical_time = true; } break; case 'w': /* warning time threshold */ @@ -608,14 +610,14 @@ process_arguments (int argc, char **argv) usage4 (_("Warning time must be a positive")); else { warning_time = strtod (optarg, NULL); - check_warning_time = TRUE; + check_warning_time = true; } break; case 'v': /* verbose */ verbose++; break; case 'q': - ignore_send_quit_failure++; /* ignore problem sending QUIT */ + ignore_send_quit_failure = true; /* ignore problem sending QUIT */ break; case 't': /* timeout */ if (is_intnonneg (optarg)) { @@ -645,33 +647,35 @@ process_arguments (int argc, char **argv) usage2 ("Invalid certificate expiration period", optarg); days_till_exp_warn = atoi (optarg); } - check_cert = TRUE; - ignore_send_quit_failure = TRUE; + check_cert = true; + ignore_send_quit_failure = true; #else usage (_("SSL support not available - install OpenSSL and recompile")); #endif + implicit_tls = true; + // fallthrough case 's': /* ssl */ - use_ssl = TRUE; + use_ssl = true; server_port = SMTPS_PORT; break; case 'S': /* starttls */ - use_starttls = TRUE; - use_ehlo = TRUE; + use_starttls = true; + use_ehlo = true; break; case SNI_OPTION: #ifdef HAVE_SSL - use_sni = TRUE; + use_sni = true; #else usage (_("SSL support not available - install OpenSSL and recompile")); #endif break; case 'r': - use_proxy_prefix = TRUE; + use_proxy_prefix = true; break; case 'L': - use_lhlo = TRUE; + use_lhlo = true; break; case '4': address_family = AF_INET; @@ -717,7 +721,12 @@ process_arguments (int argc, char **argv) from_arg = strdup(" "); if (use_starttls && use_ssl) { - usage4 (_("Set either -s/--ssl/--tls or -S/--starttls")); + if (implicit_tls) { + use_ssl = false; + server_port = SMTP_PORT; + } else { + usage4 (_("Set either -s/--ssl/--tls or -S/--starttls")); + } } if (server_port_option != 0) { diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 56a586a..295aa9b 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -131,11 +131,11 @@ size_t nlabels = 0; size_t labels_size = OID_COUNT_STEP; size_t nunits = 0; size_t unitv_size = OID_COUNT_STEP; -int numoids = 0; +size_t numoids = 0; int numauthpriv = 0; int numcontext = 0; int verbose = 0; -int usesnmpgetnext = FALSE; +bool usesnmpgetnext = false; char *warning_thresholds = NULL; char *critical_thresholds = NULL; thresholds **thlds; @@ -148,7 +148,7 @@ size_t eval_size = OID_COUNT_STEP; char *delimiter; char *output_delim; char *miblist = NULL; -int needmibs = FALSE; +bool needmibs = false; int calculate_rate = 0; double offset = 0.0; int rate_multiplier = 1; @@ -187,7 +187,8 @@ static char *fix_snmp_range(char *th) int main (int argc, char **argv) { - int i, len, line, total_oids; + int len, total_oids; + size_t line; unsigned int bk_count = 0, dq_count = 0; int iresult = STATE_UNKNOWN; int result = STATE_UNKNOWN; @@ -253,14 +254,16 @@ main (int argc, char **argv) if(calculate_rate) { if (!strcmp(label, "SNMP")) label = strdup("SNMP RATE"); - i=0; + + size_t i = 0; + previous_state = np_state_read(); if(previous_state!=NULL) { /* Split colon separated values */ previous_string = strdup((char *) previous_state->data); while((ap = strsep(&previous_string, ":")) != NULL) { if(verbose>2) - printf("State for %d=%s\n", i, ap); + printf("State for %zd=%s\n", i, ap); while (i >= previous_size) { previous_size += OID_COUNT_STEP; previous_value = realloc(previous_value, previous_size * sizeof(*previous_value)); @@ -273,7 +276,7 @@ main (int argc, char **argv) /* Populate the thresholds */ th_warn=warning_thresholds; th_crit=critical_thresholds; - for (i=0; i 0) { printf (_("External command error: %s\n"), chld_err.line[0]); - for (i = 1; i < chld_err.lines; i++) { + for (size_t i = 1; i < chld_err.lines; i++) { printf ("%s\n", chld_err.line[i]); } } else { @@ -392,12 +395,14 @@ main (int argc, char **argv) } if (verbose) { - for (i = 0; i < chld_out.lines; i++) { + for (size_t i = 0; i < chld_out.lines; i++) { printf ("%s\n", chld_out.line[i]); } } - for (line=0, i=0; line < chld_out.lines && i < numoids ; line++, i++) { + line = 0; + total_oids = 0; + for (size_t i = 0; line < chld_out.lines && i < numoids ; line++, i++, total_oids++) { if(calculate_rate) conv = "%.10g"; else @@ -410,7 +415,7 @@ main (int argc, char **argv) break; if (verbose > 2) { - printf("Processing oid %i (line %i)\n oidname: %s\n response: %s\n", i+1, line+1, oidname, response); + printf("Processing oid %zi (line %zi)\n oidname: %s\n response: %s\n", i+1, line+1, oidname, response); } /* Clean up type array - Sol10 does not necessarily zero it out */ @@ -634,7 +639,6 @@ main (int argc, char **argv) strncat(perfstr, " ", sizeof(perfstr)-strlen(perfstr)-1); } } - total_oids=i; /* Save state data, as all data collected now */ if(calculate_rate) { @@ -644,7 +648,7 @@ main (int argc, char **argv) die(STATE_UNKNOWN, _("Cannot malloc")); current_length=0; - for(i=0; i= oids_size) { @@ -843,7 +847,6 @@ process_arguments (int argc, char **argv) numoids = j; if (c == 'E' || c == 'e') { jj++; - ii++; while (j+1 >= eval_size) { eval_size += OID_COUNT_STEP; eval_method = realloc(eval_method, eval_size * sizeof(*eval_method)); @@ -870,7 +873,6 @@ process_arguments (int argc, char **argv) memset(eval_method + eval_size - OID_COUNT_STEP, 0, 8); } eval_method[jj++] = CRIT_STRING; - ii++; break; case 'R': /* regex */ cflags = REG_ICASE; @@ -891,7 +893,6 @@ process_arguments (int argc, char **argv) memset(eval_method + eval_size - OID_COUNT_STEP, 0, 8); } eval_method[jj++] = CRIT_REGEX; - ii++; break; /* Format */ @@ -1034,7 +1035,7 @@ validate_arguments () { /* check whether to load locally installed MIBS (CPU/disk intensive) */ if (miblist == NULL) { - if ( needmibs == TRUE ) { + if (needmibs) { miblist = strdup (DEFAULT_MIBLIST); }else{ miblist = ""; /* don't read any mib files for numeric oids */ diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 8ccbd5a..34ef37b 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c @@ -1,39 +1,39 @@ /***************************************************************************** -* +* * Monitoring check_ssh plugin -* +* * License: GPL * Copyright (c) 2000-2007 Monitoring Plugins Development Team -* +* * Description: -* +* * This file contains the check_ssh plugin -* +* * Try to connect to an SSH server at specified server and port -* -* +* +* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program. If not, see . -* -* +* +* *****************************************************************************/ const char *progname = "check_ssh"; const char *copyright = "2000-2007"; const char *email = "devel@monitoring-plugins.org"; -#include "common.h" -#include "netutils.h" +#include "./common.h" +#include "./netutils.h" #include "utils.h" #ifndef MSG_DONTWAIT @@ -47,7 +47,7 @@ int port = -1; char *server_name = NULL; char *remote_version = NULL; char *remote_protocol = NULL; -int verbose = FALSE; +bool verbose = false; int process_arguments (int, char **); int validate_arguments (void); @@ -57,7 +57,6 @@ void print_usage (void); int ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol); - int main (int argc, char **argv) { @@ -106,7 +105,7 @@ process_arguments (int argc, char **argv) {"timeout", required_argument, 0, 't'}, {"verbose", no_argument, 0, 'v'}, {"remote-version", required_argument, 0, 'r'}, - {"remote-protcol", required_argument, 0, 'P'}, + {"remote-protocol", required_argument, 0, 'P'}, {0, 0, 0, 0} }; @@ -133,7 +132,7 @@ process_arguments (int argc, char **argv) print_help (); exit (STATE_UNKNOWN); case 'v': /* verbose */ - verbose = TRUE; + verbose = true; break; case 't': /* timeout period */ if (!is_integer (optarg)) @@ -158,7 +157,7 @@ process_arguments (int argc, char **argv) remote_protocol = optarg; break; case 'H': /* host */ - if (is_host (optarg) == FALSE) + if (!is_host (optarg)) usage2 (_("Invalid hostname/address"), optarg); server_name = optarg; break; @@ -215,7 +214,9 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol { int sd; int result; - char *output = NULL; + int len = 0; + ssize_t recv_ret = 0; + char *version_control_string = NULL; char *buffer = NULL; char *ssh_proto = NULL; char *ssh_server = NULL; @@ -230,52 +231,126 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol if (result != STATE_OK) return result; - output = (char *) malloc (BUFF_SZ + 1); - memset (output, 0, BUFF_SZ + 1); - recv (sd, output, BUFF_SZ, 0); - if (strncmp (output, "SSH", 3)) { - printf (_("Server answer: %s"), output); + char *output = (char *) calloc (BUFF_SZ + 1, sizeof(char)); + + unsigned int iteration = 0; + ssize_t byte_offset = 0; + + while ((version_control_string == NULL) && (recv_ret = recv(sd, output+byte_offset, BUFF_SZ - byte_offset, 0) > 0)) { + + if (strchr(output, '\n')) { /* we've got at least one full line, start parsing*/ + byte_offset = 0; + + char *index = NULL; + while ((index = strchr(output+byte_offset, '\n')) != NULL) { + /*Partition the buffer so that this line is a separate string, + * by replacing the newline with NUL*/ + output[(index - output)] = '\0'; + len = strlen(output + byte_offset); + + if ((len >= 4) && (strncmp (output+byte_offset, "SSH-", 4) == 0)) { + /*if the string starts with SSH-, this _should_ be a valid version control string*/ + version_control_string = output+byte_offset; + break; + } + + /*the start of the next line (if one exists) will be after the current one (+ NUL)*/ + byte_offset += (len + 1); + } + + if(version_control_string == NULL) { + /* move unconsumed data to beginning of buffer, null rest */ + memmove((void *)output, (void *)output+byte_offset+1, BUFF_SZ - len+1); + memset(output+byte_offset+1, 0, BUFF_SZ-byte_offset+1); + + /*start reading from end of current line chunk on next recv*/ + byte_offset = strlen(output); + } + } else { + byte_offset += recv_ret; + } + } + + if (recv_ret < 0) { + printf("SSH CRITICAL - %s", strerror(errno)); + exit(STATE_CRITICAL); + } + + if (version_control_string == NULL) { + printf("SSH CRITICAL - No version control string received"); + exit(STATE_CRITICAL); + } + /* + * "When the connection has been established, both sides MUST send an + * identification string. This identification string MUST be + * + * SSH-protoversion-softwareversion SP comments CR LF" + * - RFC 4253:4.2 + */ + strip (version_control_string); + if (verbose) + printf ("%s\n", version_control_string); + ssh_proto = version_control_string + 4; + + /* + * We assume the protoversion is of the form Major.Minor, although + * this is not _strictly_ required. See + * + * "Both the 'protoversion' and 'softwareversion' strings MUST consist of + * printable US-ASCII characters, with the exception of whitespace + * characters and the minus sign (-)" + * - RFC 4253:4.2 + * and, + * + * "As stated earlier, the 'protoversion' specified for this protocol is + * "2.0". Earlier versions of this protocol have not been formally + * documented, but it is widely known that they use 'protoversion' of + * "1.x" (e.g., "1.5" or "1.3")." + * - RFC 4253:5 + */ + ssh_server = ssh_proto + strspn (ssh_proto, "0123456789.") + 1; /* (+1 for the '-' separating protoversion from softwareversion) */ + + /* If there's a space in the version string, whatever's after the space is a comment + * (which is NOT part of the server name/version)*/ + char *tmp = strchr(ssh_server, ' '); + if (tmp) { + ssh_server[tmp - ssh_server] = '\0'; + } + if (strlen(ssh_proto) == 0 || strlen(ssh_server) == 0) { + printf(_("SSH CRITICAL - Invalid protocol version control string %s\n"), version_control_string); + exit (STATE_CRITICAL); + } + ssh_proto[strspn (ssh_proto, "0123456789. ")] = 0; + + xasprintf (&buffer, "SSH-%s-check_ssh_%s\r\n", ssh_proto, rev_no); + send (sd, buffer, strlen (buffer), MSG_DONTWAIT); + if (verbose) + printf ("%s\n", buffer); + + if (remote_version && strcmp(remote_version, ssh_server)) { + printf + (_("SSH CRITICAL - %s (protocol %s) version mismatch, expected '%s'\n"), + ssh_server, ssh_proto, remote_version); close(sd); exit (STATE_CRITICAL); } - else { - strip (output); - if (verbose) - printf ("%s\n", output); - ssh_proto = output + 4; - ssh_server = ssh_proto + strspn (ssh_proto, "-0123456789. "); - ssh_proto[strspn (ssh_proto, "0123456789. ")] = 0; - - xasprintf (&buffer, "SSH-%s-check_ssh_%s\r\n", ssh_proto, rev_no); - send (sd, buffer, strlen (buffer), MSG_DONTWAIT); - if (verbose) - printf ("%s\n", buffer); - - if (remote_version && strcmp(remote_version, ssh_server)) { - printf - (_("SSH CRITICAL - %s (protocol %s) version mismatch, expected '%s'\n"), - ssh_server, ssh_proto, remote_version); - close(sd); - exit (STATE_CRITICAL); - } - - if (remote_protocol && strcmp(remote_protocol, ssh_proto)) { - printf - (_("SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s'\n"), - ssh_server, ssh_proto, remote_protocol); - close(sd); - exit (STATE_CRITICAL); - } - - elapsed_time = (double)deltime(tv) / 1.0e6; + if (remote_protocol && strcmp(remote_protocol, ssh_proto)) { printf - (_("SSH OK - %s (protocol %s) | %s\n"), - ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s", - FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout)); + (_("SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s' | %s\n"), + ssh_server, ssh_proto, remote_protocol, fperfdata("time", elapsed_time, "s", + false, 0, false, 0, true, 0, true, (int)socket_timeout)); close(sd); - exit (STATE_OK); + exit (STATE_CRITICAL); } + elapsed_time = (double)deltime(tv) / 1.0e6; + + printf + (_("SSH OK - %s (protocol %s) | %s\n"), + ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s", + false, 0, false, 0, true, 0, true, (int)socket_timeout)); + close(sd); + exit (STATE_OK); } @@ -293,7 +368,7 @@ print_help (void) printf ("%s\n", _("Try to connect to an SSH server at specified server and port")); - printf ("\n\n"); + printf ("\n\n"); print_usage (); @@ -307,10 +382,10 @@ print_help (void) printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); printf (" %s\n", "-r, --remote-version=STRING"); - printf (" %s\n", _("Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1)")); + printf (" %s\n", _("Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1)")); printf (" %s\n", "-P, --remote-protocol=STRING"); - printf (" %s\n", _("Alert if protocol doesn't match expected protocol version (ex: 2.0)")); + printf (" %s\n", _("Alert if protocol doesn't match expected protocol version (ex: 2.0)")); printf (UT_VERBOSE); @@ -322,7 +397,7 @@ print_help (void) void print_usage (void) { - printf ("%s\n", _("Usage:")); + printf ("%s\n", _("Usage:")); printf ("%s [-4|-6] [-t ] [-r ] [-p ] \n", progname); } diff --git a/plugins/check_swap.c b/plugins/check_swap.c index cd965e3..e7ee785 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c @@ -4,7 +4,7 @@ * * License: GPL * Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net) -* Copyright (c) 2000-2007 Monitoring Plugins Development Team +* Copyright (c) 2000-2024 Monitoring Plugins Development Team * * Description: * @@ -28,7 +28,7 @@ *****************************************************************************/ const char *progname = "check_swap"; -const char *copyright = "2000-2007"; +const char *copyright = "2000-2024"; const char *email = "devel@monitoring-plugins.org"; #include "common.h" @@ -52,9 +52,9 @@ const char *email = "devel@monitoring-plugins.org"; #endif typedef struct { - int is_percentage; + bool is_percentage; uint64_t value; -} threshold_t; +} threshold; int check_swap (float free_swap_mb, float total_swap_mb); int process_arguments (int argc, char **argv); @@ -62,10 +62,10 @@ int validate_arguments (void); void print_usage (void); void print_help (void); -threshold_t warn; -threshold_t crit; +threshold warn; +threshold crit; int verbose; -int allswaps; +bool allswaps = false; int no_swap_state = STATE_CRITICAL; int @@ -383,10 +383,10 @@ main (int argc, char **argv) if (crit.is_percentage) crit_print = crit.value * (total_swap_mb *1024 *1024/100); puts (perfdata_uint64 ("swap", free_swap_mb *1024 *1024, "B", - TRUE, warn_print, - TRUE, crit_print, - TRUE, 0, - TRUE, (long) total_swap_mb * 1024 * 1024)); + true, warn_print, + true, crit_print, + true, 0, + true, (long) total_swap_mb * 1024 * 1024)); return result; } @@ -399,28 +399,30 @@ check_swap(float free_swap_mb, float total_swap_mb) if (!total_swap_mb) return no_swap_state; uint64_t free_swap = free_swap_mb * (1024 * 1024); /* Convert back to bytes as warn and crit specified in bytes */ - - if (!crit.is_percentage && crit.value >= free_swap) return STATE_CRITICAL; - if (!warn.is_percentage && warn.value >= free_swap) return STATE_WARNING; - - uint64_t usage_percentage = ((total_swap_mb - free_swap_mb) / total_swap_mb) * 100; - if (crit.is_percentage && - crit.value != 0 && - usage_percentage >= (100 - crit.value)) - { - return STATE_CRITICAL; - } + if (warn.value || crit.value) { /* Thresholds defined */ + if (!crit.is_percentage && crit.value >= free_swap) return STATE_CRITICAL; + if (!warn.is_percentage && warn.value >= free_swap) return STATE_WARNING; - if (warn.is_percentage && - warn.value != 0 && - usage_percentage >= (100 - warn.value)) - { - return STATE_WARNING; - } + if (crit.is_percentage && + crit.value != 0 && + usage_percentage >= (100 - crit.value)) + { + return STATE_CRITICAL; + } - return STATE_OK; + if (warn.is_percentage && + warn.value != 0 && + usage_percentage >= (100 - warn.value)) + { + return STATE_WARNING; + } + + return STATE_OK; + } else { /* Without thresholds */ + return STATE_OK; + } } @@ -443,9 +445,6 @@ process_arguments (int argc, char **argv) {0, 0, 0, 0} }; - if (argc < 2) - return ERROR; - while (1) { c = getopt_long (argc, argv, "+?Vvhac:w:n:", longopts, &option); @@ -465,7 +464,7 @@ process_arguments (int argc, char **argv) if (optarg[length - 1] == '%') { /* It's percentage */ - warn.is_percentage = 1; + warn.is_percentage = true; optarg[length - 1] = '\0'; if (is_uint64(optarg, &warn.value)) { if (warn.value > 100) { @@ -475,7 +474,7 @@ process_arguments (int argc, char **argv) break; } else { /* It's Bytes */ - warn.is_percentage = 0; + warn.is_percentage = false; if (is_uint64(optarg, &warn.value)) { break; } else { @@ -495,7 +494,7 @@ process_arguments (int argc, char **argv) if (optarg[length - 1] == '%') { /* It's percentage */ - crit.is_percentage = 1; + crit.is_percentage = true; optarg[length - 1] = '\0'; if (is_uint64(optarg, &crit.value)) { if (crit.value> 100) { @@ -505,7 +504,7 @@ process_arguments (int argc, char **argv) break; } else { /* It's Bytes */ - crit.is_percentage = 0; + crit.is_percentage = false; if (is_uint64(optarg, &crit.value)) { break; } else { @@ -514,7 +513,7 @@ process_arguments (int argc, char **argv) } } case 'a': /* all swap */ - allswaps = TRUE; + allswaps = true; break; case 'n': if ((no_swap_state = mp_translate_state(optarg)) == ERROR) { @@ -547,10 +546,7 @@ process_arguments (int argc, char **argv) int validate_arguments (void) { - if (warn.value == 0 && crit.value == 0) { - return ERROR; - } - else if ((warn.is_percentage == crit.is_percentage) && (warn.value < crit.value)) { + if ((warn.is_percentage == crit.is_percentage) && (warn.value < crit.value)) { /* This is NOT triggered if warn and crit are different units, e.g warn is percentage * and crit is absolute. We cannot determine the condition at this point since we * dont know the value of total swap yet @@ -595,6 +591,7 @@ print_help (void) printf ("\n"); printf ("%s\n", _("Notes:")); printf (" %s\n", _("Both INTEGER and PERCENT thresholds can be specified, they are all checked.")); + printf (" %s\n", _("Without thresholds, the plugin shows free swap space and performance data, but always returns OK.")); printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.")); printf (UT_SUPPORT); @@ -605,6 +602,6 @@ void print_usage (void) { printf ("%s\n", _("Usage:")); - printf (" %s [-av] -w %% -c %%\n",progname); - printf (" -w -c [-n ]\n"); + printf (" %s [-av] [-w %%] [-c %%]\n",progname); + printf (" [-w ] [-c ] [-n ]\n"); } diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 1d307cf..01dd35e 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -41,7 +41,7 @@ const char *email = "devel@monitoring-plugins.org"; #include #ifdef HAVE_SSL -static int check_cert = FALSE; +static bool check_cert = false; static int days_till_exp_warn, days_till_exp_crit; # define my_recv(buf, len) ((flags & FLAG_SSL) ? np_net_ssl_read(buf, len) : read(sd, buf, len)) # define my_send(buf, len) ((flags & FLAG_SSL) ? np_net_ssl_write(buf, len) : send(sd, buf, len, 0)) @@ -65,12 +65,12 @@ static int READ_TIMEOUT = 2; static int server_port = 0; static char *server_address = NULL; -static int host_specified = FALSE; +static bool host_specified = false; static char *server_send = NULL; static char *server_quit = NULL; static char **server_expect; static size_t server_expect_count = 0; -static size_t maxbytes = 0; +static ssize_t maxbytes = 0; static char **warn_codes = NULL; static size_t warn_codes_count = 0; static char **crit_codes = NULL; @@ -88,7 +88,7 @@ static int match_flags = NP_MATCH_EXACT; #ifdef HAVE_SSL static char *sni = NULL; -static int sni_specified = FALSE; +static bool sni_specified = false; #endif #define FLAG_SSL 0x01 @@ -102,11 +102,9 @@ int main (int argc, char **argv) { int result = STATE_UNKNOWN; - int i; char *status = NULL; struct timeval tv; struct timeval timeout; - size_t len; int match = -1; fd_set rfds; @@ -121,10 +119,10 @@ main (int argc, char **argv) if(progname != NULL) progname++; else progname = argv[0]; - len = strlen(progname); - if(len > 6 && !memcmp(progname, "check_", 6)) { + size_t prog_name_len = strlen(progname); + if(prog_name_len > 6 && !memcmp(progname, "check_", 6)) { SERVICE = strdup(progname + 6); - for(i = 0; i < len - 6; i++) + for(size_t i = 0; i < prog_name_len - 6; i++) SERVICE[i] = toupper(SERVICE[i]); } @@ -247,7 +245,7 @@ main (int argc, char **argv) #ifdef HAVE_SSL if (flags & FLAG_SSL){ result = np_net_ssl_init_with_hostname(sd, (sni_specified ? sni : NULL)); - if (result == STATE_OK && check_cert == TRUE) { + if (result == STATE_OK && check_cert) { result = np_net_ssl_check_cert(days_till_exp_warn, days_till_exp_crit); } } @@ -275,19 +273,21 @@ main (int argc, char **argv) printf("Quit string: %s\n", server_quit); } printf("server_expect_count: %d\n", (int)server_expect_count); - for(i = 0; i < server_expect_count; i++) - printf("\t%d: %s\n", i, server_expect[i]); + for(size_t i = 0; i < server_expect_count; i++) + printf("\t%zd: %s\n", i, server_expect[i]); } /* if(len) later on, we know we have a non-NULL response */ - len = 0; + ssize_t len = 0; + if (server_expect_count) { + ssize_t received = 0; /* watch for the expect string */ - while ((i = my_recv(buffer, sizeof(buffer))) > 0) { - status = realloc(status, len + i + 1); - memcpy(&status[len], buffer, i); - len += i; + while ((received = my_recv(buffer, sizeof(buffer))) > 0) { + status = realloc(status, len + received + 1); + memcpy(&status[len], buffer, received); + len += received; status[len] = '\0'; /* stop reading if user-forced */ @@ -307,6 +307,7 @@ main (int argc, char **argv) if(select(sd + 1, &rfds, NULL, NULL, &timeout) <= 0) break; } + if (match == NP_MATCH_RETRY) match = NP_MATCH_FAILURE; @@ -378,18 +379,18 @@ main (int argc, char **argv) if(match == NP_MATCH_FAILURE) printf ("|%s", fperfdata ("time", elapsed_time, "s", - (flags & FLAG_TIME_WARN ? TRUE : FALSE), 0, - (flags & FLAG_TIME_CRIT ? TRUE : FALSE), 0, - TRUE, 0, - TRUE, socket_timeout) + (flags & FLAG_TIME_WARN ? true : false), 0, + (flags & FLAG_TIME_CRIT ? true : false), 0, + true, 0, + true, socket_timeout) ); else printf("|%s", fperfdata ("time", elapsed_time, "s", - (flags & FLAG_TIME_WARN ? TRUE : FALSE), warning_time, - (flags & FLAG_TIME_CRIT ? TRUE : FALSE), critical_time, - TRUE, 0, - TRUE, socket_timeout) + (flags & FLAG_TIME_WARN ? true : false), warning_time, + (flags & FLAG_TIME_CRIT ? true : false), critical_time, + true, 0, + true, socket_timeout) ); putchar('\n'); @@ -399,11 +400,9 @@ main (int argc, char **argv) /* process command-line arguments */ -static int -process_arguments (int argc, char **argv) -{ +static int process_arguments (int argc, char **argv) { int c; - int escape = 0; + bool escape = false; char *temp; enum { @@ -492,7 +491,7 @@ process_arguments (int argc, char **argv) #endif break; case 'H': /* hostname */ - host_specified = TRUE; + host_specified = true; server_address = optarg; break; case 'c': /* critical */ @@ -527,7 +526,7 @@ process_arguments (int argc, char **argv) server_port = atoi (optarg); break; case 'E': - escape = 1; + escape = true; break; case 's': if (escape) @@ -601,7 +600,7 @@ process_arguments (int argc, char **argv) usage2 (_("Invalid certificate expiration period"), optarg); days_till_exp_warn = atoi (optarg); } - check_cert = TRUE; + check_cert = true; flags |= FLAG_SSL; break; # endif /* USE_OPENSSL */ @@ -617,7 +616,7 @@ process_arguments (int argc, char **argv) case SNI_OPTION: #ifdef HAVE_SSL flags |= FLAG_SSL; - sni_specified = TRUE; + sni_specified = true; sni = optarg; #else die (STATE_UNKNOWN, _("Invalid option - SSL is not available")); @@ -630,15 +629,15 @@ process_arguments (int argc, char **argv) } c = optind; - if(host_specified == FALSE && c < argc) + if(!host_specified && c < argc) server_address = strdup (argv[c++]); if (server_address == NULL) usage4 (_("You must provide a server address")); - else if (server_address[0] != '/' && is_host (server_address) == FALSE) + else if (server_address[0] != '/' && !is_host(server_address)) die (STATE_CRITICAL, "%s %s - %s: %s\n", SERVICE, state_text(STATE_CRITICAL), _("Invalid hostname, address or socket"), server_address); - return TRUE; + return OK; } diff --git a/plugins/check_time.c b/plugins/check_time.c index baf8c59..f50ea42 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c @@ -45,16 +45,16 @@ enum { uint32_t raw_server_time; unsigned long server_time, diff_time; int warning_time = 0; -int check_warning_time = FALSE; +bool check_warning_time = false; int critical_time = 0; -int check_critical_time = FALSE; +bool check_critical_time = false; unsigned long warning_diff = 0; -int check_warning_diff = FALSE; +bool check_warning_diff = false; unsigned long critical_diff = 0; -int check_critical_diff = FALSE; +bool check_critical_diff = false; int server_port = TIME_PORT; char *server_address = NULL; -int use_udp = FALSE; +bool use_udp = false; int process_arguments (int, char **); void print_help (void); @@ -92,9 +92,9 @@ main (int argc, char **argv) } if (result != STATE_OK) { - if (check_critical_time == TRUE) + if (check_critical_time) result = STATE_CRITICAL; - else if (check_warning_time == TRUE) + else if (check_warning_time) result = STATE_WARNING; else result = STATE_UNKNOWN; @@ -105,9 +105,9 @@ main (int argc, char **argv) if (use_udp) { if (send (sd, "", 0, 0) < 0) { - if (check_critical_time == TRUE) + if (check_critical_time) result = STATE_CRITICAL; - else if (check_warning_time == TRUE) + else if (check_warning_time) result = STATE_WARNING; else result = STATE_UNKNOWN; @@ -129,9 +129,9 @@ main (int argc, char **argv) /* return a WARNING status if we couldn't read any data */ if (result <= 0) { - if (check_critical_time == TRUE) + if (check_critical_time) result = STATE_CRITICAL; - else if (check_warning_time == TRUE) + else if (check_warning_time) result = STATE_WARNING; else result = STATE_UNKNOWN; @@ -143,9 +143,9 @@ main (int argc, char **argv) result = STATE_OK; conntime = (end_time - start_time); - if (check_critical_time == TRUE && conntime > critical_time) + if (check_critical_time&& conntime > critical_time) result = STATE_CRITICAL; - else if (check_warning_time == TRUE && conntime > warning_time) + else if (check_warning_time && conntime > warning_time) result = STATE_WARNING; if (result != STATE_OK) @@ -154,7 +154,7 @@ main (int argc, char **argv) perfdata ("time", (long)conntime, "s", check_warning_time, (long)warning_time, check_critical_time, (long)critical_time, - TRUE, 0, FALSE, 0)); + true, 0, false, 0)); server_time = ntohl (raw_server_time) - UNIX_EPOCH; if (server_time > (unsigned long)end_time) @@ -162,9 +162,9 @@ main (int argc, char **argv) else diff_time = (unsigned long)end_time - server_time; - if (check_critical_diff == TRUE && diff_time > critical_diff) + if (check_critical_diff&& diff_time > critical_diff) result = STATE_CRITICAL; - else if (check_warning_diff == TRUE && diff_time > warning_diff) + else if (check_warning_diff&& diff_time > warning_diff) result = STATE_WARNING; printf (_("TIME %s - %lu second time difference|%s %s\n"), @@ -172,11 +172,11 @@ main (int argc, char **argv) perfdata ("time", (long)conntime, "s", check_warning_time, (long)warning_time, check_critical_time, (long)critical_time, - TRUE, 0, FALSE, 0), + true, 0, false, 0), perfdata ("offset", diff_time, "s", check_warning_diff, warning_diff, check_critical_diff, critical_diff, - TRUE, 0, FALSE, 0)); + true, 0, false, 0)); return result; } @@ -219,7 +219,7 @@ process_arguments (int argc, char **argv) strcpy (argv[c], "-C"); } - while (1) { + while (true) { c = getopt_long (argc, argv, "hVH:w:c:W:C:p:t:u", longopts, &option); @@ -236,19 +236,19 @@ process_arguments (int argc, char **argv) print_revision (progname, NP_VERSION); exit (STATE_UNKNOWN); case 'H': /* hostname */ - if (is_host (optarg) == FALSE) + if (!is_host (optarg)) usage2 (_("Invalid hostname/address"), optarg); server_address = optarg; break; case 'w': /* warning-variance */ if (is_intnonneg (optarg)) { warning_diff = strtoul (optarg, NULL, 10); - check_warning_diff = TRUE; + check_warning_diff = true; } else if (strspn (optarg, "0123456789:,") > 0) { if (sscanf (optarg, "%lu%*[:,]%d", &warning_diff, &warning_time) == 2) { - check_warning_diff = TRUE; - check_warning_time = TRUE; + check_warning_diff = true; + check_warning_time = true; } else { usage4 (_("Warning thresholds must be a positive integer")); @@ -261,13 +261,13 @@ process_arguments (int argc, char **argv) case 'c': /* critical-variance */ if (is_intnonneg (optarg)) { critical_diff = strtoul (optarg, NULL, 10); - check_critical_diff = TRUE; + check_critical_diff = true; } else if (strspn (optarg, "0123456789:,") > 0) { if (sscanf (optarg, "%lu%*[:,]%d", &critical_diff, &critical_time) == 2) { - check_critical_diff = TRUE; - check_critical_time = TRUE; + check_critical_diff = true; + check_critical_time = true; } else { usage4 (_("Critical thresholds must be a positive integer")); @@ -282,14 +282,14 @@ process_arguments (int argc, char **argv) usage4 (_("Warning threshold must be a positive integer")); else warning_time = atoi (optarg); - check_warning_time = TRUE; + check_warning_time = true; break; case 'C': /* critical-connect */ if (!is_intnonneg (optarg)) usage4 (_("Critical threshold must be a positive integer")); else critical_time = atoi (optarg); - check_critical_time = TRUE; + check_critical_time = true; break; case 'p': /* port */ if (!is_intnonneg (optarg)) @@ -304,14 +304,14 @@ process_arguments (int argc, char **argv) socket_timeout = atoi (optarg); break; case 'u': /* udp */ - use_udp = TRUE; + use_udp = true; } } c = optind; if (server_address == NULL) { if (argc > c) { - if (is_host (argv[c]) == FALSE) + if (!is_host (argv[c])) usage2 (_("Invalid hostname/address"), optarg); server_address = argv[c]; } diff --git a/plugins/check_ups.c b/plugins/check_ups.c index 68737c4..380ff3b 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c @@ -1,665 +1,746 @@ /***************************************************************************** -* -* Monitoring check_ups plugin -* -* License: GPL -* Copyright (c) 2000 Tom Shields -* 2004 Alain Richard -* 2004 Arnaud Quette -* Copyright (c) 2002-2007 Monitoring Plugins Development Team -* -* Description: -* -* This file contains Network UPS Tools plugin for Monitoring -* -* This plugin tests the UPS service on the specified host. Network UPS Tools -* from www.networkupstools.org must be running for this plugin to work. -* -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -* -* -*****************************************************************************/ + * + * Monitoring check_ups plugin + * + * License: GPL + * Copyright (c) 2000 Tom Shields + * 2004 Alain Richard + * 2004 Arnaud Quette + * Copyright (c) 2002-2023 Monitoring Plugins Development Team + * + * Description: + * + * This file contains Network UPS Tools plugin for Monitoring + * + * This plugin tests the UPS service on the specified host. Network UPS Tools + * from www.networkupstools.org must be running for this plugin to work. + * + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * + *****************************************************************************/ const char *progname = "check_ups"; -const char *copyright = "2000-2007"; +const char *copyright = "2000-2023"; const char *email = "devel@monitoring-plugins.org"; #include "common.h" #include "netutils.h" #include "utils.h" -enum { - PORT = 3493 -}; +enum { PORT = 3493 }; -#define CHECK_NONE 0 +#define UPS_NONE 0 /* no supported options */ +#define UPS_UTILITY 1 /* supports utility line */ +#define UPS_BATTPCT 2 /* supports percent battery remaining */ +#define UPS_STATUS 4 /* supports UPS status */ +#define UPS_TEMP 8 /* supports UPS temperature */ +#define UPS_LOADPCT 16 /* supports load percent */ +#define UPS_REALPOWER 32 /* supports real power */ -#define UPS_NONE 0 /* no supported options */ -#define UPS_UTILITY 1 /* supports utility line voltage */ -#define UPS_BATTPCT 2 /* supports percent battery remaining */ -#define UPS_STATUS 4 /* supports UPS status */ -#define UPS_TEMP 8 /* supports UPS temperature */ -#define UPS_LOADPCT 16 /* supports load percent */ - -#define UPSSTATUS_NONE 0 -#define UPSSTATUS_OFF 1 -#define UPSSTATUS_OL 2 -#define UPSSTATUS_OB 4 -#define UPSSTATUS_LB 8 -#define UPSSTATUS_CAL 16 -#define UPSSTATUS_RB 32 /*Replace Battery */ -#define UPSSTATUS_BYPASS 64 -#define UPSSTATUS_OVER 128 -#define UPSSTATUS_TRIM 256 -#define UPSSTATUS_BOOST 512 +#define UPSSTATUS_NONE 0 +#define UPSSTATUS_OFF 1 +#define UPSSTATUS_OL 2 +#define UPSSTATUS_OB 4 +#define UPSSTATUS_LB 8 +#define UPSSTATUS_CAL 16 +#define UPSSTATUS_RB 32 /*Replace Battery */ +#define UPSSTATUS_BYPASS 64 +#define UPSSTATUS_OVER 128 +#define UPSSTATUS_TRIM 256 +#define UPSSTATUS_BOOST 512 #define UPSSTATUS_CHRG 1024 #define UPSSTATUS_DISCHRG 2048 -#define UPSSTATUS_UNKNOWN 4096 +#define UPSSTATUS_UNKNOWN 4096 +#define UPSSTATUS_ALARM 8192 -enum { NOSUCHVAR = ERROR-1 }; +enum { NOSUCHVAR = ERROR - 1 }; -int server_port = PORT; -char *server_address; -char *ups_name = NULL; -double warning_value = 0.0; -double critical_value = 0.0; -int check_warn = FALSE; -int check_crit = FALSE; -int check_variable = UPS_NONE; -int supported_options = UPS_NONE; -int status = UPSSTATUS_NONE; +typedef struct ups_config { + unsigned int server_port; + char *server_address; + char *ups_name; + double warning_value; + double critical_value; + bool check_warn; + bool check_crit; + int check_variable; + int status; + bool temp_output_c; +} ups_config; -double ups_utility_voltage = 0.0; -double ups_battery_percent = 0.0; -double ups_load_percent = 0.0; -double ups_temperature = 0.0; -char *ups_status; -int temp_output_c = 0; +ups_config ups_config_init(void) { + ups_config tmp = {0}; + tmp.server_port = PORT; + tmp.server_address = NULL; + tmp.ups_name = NULL; + tmp.check_variable = UPS_NONE; + tmp.status = UPSSTATUS_NONE; -int determine_status (void); -int get_ups_variable (const char *, char *); + return tmp; +} -int process_arguments (int, char **); -int validate_arguments (void); -void print_help (void); -void print_usage (void); +// Forward declarations +int determine_status(ups_config *, int *supported_options); +int get_ups_variable(const char *, char *, const ups_config config); + +int process_arguments(int, char **, ups_config *); +int validate_arguments(ups_config); +void print_help(void); +void print_usage(void); + +int main(int argc, char **argv) { + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + + char *ups_status; + ups_status = strdup("N/A"); -int -main (int argc, char **argv) -{ - int result = STATE_UNKNOWN; - char *message; char *data; - char *tunits; - char temp_buffer[MAX_INPUT_BUFFER]; - double ups_utility_deviation = 0.0; - int res; + data = strdup(""); - setlocale (LC_ALL, ""); - bindtextdomain (PACKAGE, LOCALEDIR); - textdomain (PACKAGE); + char *message; + message = strdup(""); - ups_status = strdup ("N/A"); - data = strdup (""); - message = strdup (""); + // Exit result + int result = STATE_UNKNOWN; /* Parse extra opts if any */ - argv=np_extra_opts (&argc, argv, progname); + argv = np_extra_opts(&argc, argv, progname); - if (process_arguments (argc, argv) == ERROR) - usage4 (_("Could not parse arguments")); + // Config from commandline + ups_config config = ups_config_init(); - /* initialize alarm signal handling */ - signal (SIGALRM, socket_timeout_alarm_handler); - - /* set socket timeout */ - alarm (socket_timeout); - - /* get the ups status if possible */ - if (determine_status () != OK) - return STATE_CRITICAL; - if (supported_options & UPS_STATUS) { - - ups_status = strdup (""); - result = STATE_OK; - - if (status & UPSSTATUS_OFF) { - xasprintf (&ups_status, "Off"); - result = STATE_CRITICAL; - } - else if ((status & (UPSSTATUS_OB | UPSSTATUS_LB)) == - (UPSSTATUS_OB | UPSSTATUS_LB)) { - xasprintf (&ups_status, _("On Battery, Low Battery")); - result = STATE_CRITICAL; - } - else { - if (status & UPSSTATUS_OL) { - xasprintf (&ups_status, "%s%s", ups_status, _("Online")); - } - if (status & UPSSTATUS_OB) { - xasprintf (&ups_status, "%s%s", ups_status, _("On Battery")); - result = STATE_WARNING; - } - if (status & UPSSTATUS_LB) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Low Battery")); - result = STATE_WARNING; - } - if (status & UPSSTATUS_CAL) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Calibrating")); - } - if (status & UPSSTATUS_RB) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Replace Battery")); - result = STATE_WARNING; - } - if (status & UPSSTATUS_BYPASS) { - xasprintf (&ups_status, "%s%s", ups_status, _(", On Bypass")); - } - if (status & UPSSTATUS_OVER) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Overload")); - } - if (status & UPSSTATUS_TRIM) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Trimming")); - } - if (status & UPSSTATUS_BOOST) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Boosting")); - } - if (status & UPSSTATUS_CHRG) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Charging")); - } - if (status & UPSSTATUS_DISCHRG) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Discharging")); - } - if (status & UPSSTATUS_UNKNOWN) { - xasprintf (&ups_status, "%s%s", ups_status, _(", Unknown")); - } - } - xasprintf (&message, "%sStatus=%s ", message, ups_status); + if (process_arguments(argc, argv, &config) == ERROR) { + usage4(_("Could not parse arguments")); } - /* get the ups utility voltage if possible */ - res=get_ups_variable ("input.voltage", temp_buffer); - if (res == NOSUCHVAR) supported_options &= ~UPS_UTILITY; - else if (res != OK) + /* initialize alarm signal handling */ + signal(SIGALRM, socket_timeout_alarm_handler); + + /* set socket timeout */ + alarm(socket_timeout); + + int supported_options = UPS_NONE; + + /* get the ups status if possible */ + if (determine_status(&config, &supported_options) != OK) { return STATE_CRITICAL; - else { - supported_options |= UPS_UTILITY; + } - ups_utility_voltage = atof (temp_buffer); - xasprintf (&message, "%sUtility=%3.1fV ", message, ups_utility_voltage); - if (ups_utility_voltage > 120.0) - ups_utility_deviation = 120.0 - ups_utility_voltage; - else - ups_utility_deviation = ups_utility_voltage - 120.0; + if (supported_options & UPS_STATUS) { - if (check_variable == UPS_UTILITY) { - if (check_crit==TRUE && ups_utility_deviation>=critical_value) { + ups_status = strdup(""); + + result = STATE_OK; + + if (config.status & UPSSTATUS_OFF) { + xasprintf(&ups_status, "Off"); + result = STATE_CRITICAL; + } else if ((config.status & (UPSSTATUS_OB | UPSSTATUS_LB)) == + (UPSSTATUS_OB | UPSSTATUS_LB)) { + xasprintf(&ups_status, _("On Battery, Low Battery")); + result = STATE_CRITICAL; + } else { + if (config.status & UPSSTATUS_OL) { + xasprintf(&ups_status, "%s%s", ups_status, _("Online")); + } + if (config.status & UPSSTATUS_OB) { + xasprintf(&ups_status, "%s%s", ups_status, _("On Battery")); + result = max_state(result, STATE_WARNING); + } + if (config.status & UPSSTATUS_LB) { + xasprintf(&ups_status, "%s%s", ups_status, _(", Low Battery")); + result = max_state(result, STATE_WARNING); + } + if (config.status & UPSSTATUS_CAL) { + xasprintf(&ups_status, "%s%s", ups_status, _(", Calibrating")); + } + if (config.status & UPSSTATUS_RB) { + xasprintf(&ups_status, "%s%s", ups_status, + _(", Replace Battery")); + result = max_state(result, STATE_WARNING); + } + if (config.status & UPSSTATUS_BYPASS) { + xasprintf(&ups_status, "%s%s", ups_status, _(", On Bypass")); + // Bypassing the battery is likely a bad thing result = STATE_CRITICAL; } - else if (check_warn==TRUE && ups_utility_deviation>=warning_value) { - result = max_state (result, STATE_WARNING); + if (config.status & UPSSTATUS_OVER) { + xasprintf(&ups_status, "%s%s", ups_status, _(", Overload")); + result = max_state(result, STATE_WARNING); } - xasprintf (&data, "%s", - perfdata ("voltage", (long)(1000*ups_utility_voltage), "mV", - check_warn, (long)(1000*warning_value), - check_crit, (long)(1000*critical_value), - TRUE, 0, FALSE, 0)); + if (config.status & UPSSTATUS_TRIM) { + xasprintf(&ups_status, "%s%s", ups_status, _(", Trimming")); + } + if (config.status & UPSSTATUS_BOOST) { + xasprintf(&ups_status, "%s%s", ups_status, _(", Boosting")); + } + if (config.status & UPSSTATUS_CHRG) { + xasprintf(&ups_status, "%s%s", ups_status, _(", Charging")); + } + if (config.status & UPSSTATUS_DISCHRG) { + xasprintf(&ups_status, "%s%s", ups_status, _(", Discharging")); + result = max_state(result, STATE_WARNING); + } + if (config.status & UPSSTATUS_ALARM) { + xasprintf(&ups_status, "%s%s", ups_status, _(", ALARM")); + result = STATE_CRITICAL; + } + if (config.status & UPSSTATUS_UNKNOWN) { + xasprintf(&ups_status, "%s%s", ups_status, _(", Unknown")); + } + } + xasprintf(&message, "%sStatus=%s ", message, ups_status); + } + + int res; + char temp_buffer[MAX_INPUT_BUFFER]; + + /* get the ups utility voltage if possible */ + res = get_ups_variable("input.voltage", temp_buffer, config); + if (res == NOSUCHVAR) { + supported_options &= ~UPS_UTILITY; + } else if (res != OK) { + return STATE_CRITICAL; + } else { + supported_options |= UPS_UTILITY; + + double ups_utility_voltage = 0.0; + ups_utility_voltage = atof(temp_buffer); + xasprintf(&message, "%sUtility=%3.1fV ", message, ups_utility_voltage); + + double ups_utility_deviation = 0.0; + + if (ups_utility_voltage > 120.0) { + ups_utility_deviation = 120.0 - ups_utility_voltage; } else { - xasprintf (&data, "%s", - perfdata ("voltage", (long)(1000*ups_utility_voltage), "mV", - FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); + ups_utility_deviation = ups_utility_voltage - 120.0; + } + + if (config.check_variable == UPS_UTILITY) { + if (config.check_crit && + ups_utility_deviation >= config.critical_value) { + result = STATE_CRITICAL; + } else if (config.check_warn && + ups_utility_deviation >= config.warning_value) { + result = max_state(result, STATE_WARNING); + } + xasprintf(&data, "%s", + perfdata("voltage", (long)(1000 * ups_utility_voltage), + "mV", config.check_warn, + (long)(1000 * config.warning_value), + config.check_crit, + (long)(1000 * config.critical_value), true, 0, + false, 0)); + } else { + xasprintf(&data, "%s", + perfdata("voltage", (long)(1000 * ups_utility_voltage), + "mV", false, 0, false, 0, true, 0, false, 0)); } } /* get the ups battery percent if possible */ - res=get_ups_variable ("battery.charge", temp_buffer); - if (res == NOSUCHVAR) supported_options &= ~UPS_BATTPCT; - else if ( res != OK) + res = get_ups_variable("battery.charge", temp_buffer, config); + if (res == NOSUCHVAR) { + supported_options &= ~UPS_BATTPCT; + } else if (res != OK) { return STATE_CRITICAL; - else { + } else { supported_options |= UPS_BATTPCT; - ups_battery_percent = atof (temp_buffer); - xasprintf (&message, "%sBatt=%3.1f%% ", message, ups_battery_percent); - if (check_variable == UPS_BATTPCT) { - if (check_crit==TRUE && ups_battery_percent <= critical_value) { + double ups_battery_percent = 0.0; + ups_battery_percent = atof(temp_buffer); + xasprintf(&message, "%sBatt=%3.1f%% ", message, ups_battery_percent); + + if (config.check_variable == UPS_BATTPCT) { + if (config.check_crit && + ups_battery_percent <= config.critical_value) { result = STATE_CRITICAL; + } else if (config.check_warn && + ups_battery_percent <= config.warning_value) { + result = max_state(result, STATE_WARNING); } - else if (check_warn==TRUE && ups_battery_percent<=warning_value) { - result = max_state (result, STATE_WARNING); - } - xasprintf (&data, "%s %s", data, - perfdata ("battery", (long)ups_battery_percent, "%", - check_warn, (long)(warning_value), - check_crit, (long)(critical_value), - TRUE, 0, TRUE, 100)); + xasprintf(&data, "%s %s", data, + perfdata("battery", (long)ups_battery_percent, "%", + config.check_warn, (long)(config.warning_value), + config.check_crit, (long)(config.critical_value), + true, 0, true, 100)); } else { - xasprintf (&data, "%s %s", data, - perfdata ("battery", (long)ups_battery_percent, "%", - FALSE, 0, FALSE, 0, TRUE, 0, TRUE, 100)); + xasprintf(&data, "%s %s", data, + perfdata("battery", (long)ups_battery_percent, "%", false, + 0, false, 0, true, 0, true, 100)); } } /* get the ups load percent if possible */ - res=get_ups_variable ("ups.load", temp_buffer); - if ( res == NOSUCHVAR ) supported_options &= ~UPS_LOADPCT; - else if ( res != OK) + res = get_ups_variable("ups.load", temp_buffer, config); + if (res == NOSUCHVAR) { + supported_options &= ~UPS_LOADPCT; + } else if (res != OK) { return STATE_CRITICAL; - else { + } else { supported_options |= UPS_LOADPCT; - ups_load_percent = atof (temp_buffer); - xasprintf (&message, "%sLoad=%3.1f%% ", message, ups_load_percent); - if (check_variable == UPS_LOADPCT) { - if (check_crit==TRUE && ups_load_percent>=critical_value) { + double ups_load_percent = 0.0; + ups_load_percent = atof(temp_buffer); + xasprintf(&message, "%sLoad=%3.1f%% ", message, ups_load_percent); + + if (config.check_variable == UPS_LOADPCT) { + if (config.check_crit && + ups_load_percent >= config.critical_value) { result = STATE_CRITICAL; + } else if (config.check_warn && + ups_load_percent >= config.warning_value) { + result = max_state(result, STATE_WARNING); } - else if (check_warn==TRUE && ups_load_percent>=warning_value) { - result = max_state (result, STATE_WARNING); - } - xasprintf (&data, "%s %s", data, - perfdata ("load", (long)ups_load_percent, "%", - check_warn, (long)(warning_value), - check_crit, (long)(critical_value), - TRUE, 0, TRUE, 100)); + xasprintf(&data, "%s %s", data, + perfdata("load", (long)ups_load_percent, "%", + config.check_warn, (long)(config.warning_value), + config.check_crit, (long)(config.critical_value), + true, 0, true, 100)); } else { - xasprintf (&data, "%s %s", data, - perfdata ("load", (long)ups_load_percent, "%", - FALSE, 0, FALSE, 0, TRUE, 0, TRUE, 100)); + xasprintf(&data, "%s %s", data, + perfdata("load", (long)ups_load_percent, "%", false, 0, + false, 0, true, 0, true, 100)); } } /* get the ups temperature if possible */ - res=get_ups_variable ("ups.temperature", temp_buffer); - if ( res == NOSUCHVAR ) supported_options &= ~UPS_TEMP; - else if ( res != OK) + res = get_ups_variable("ups.temperature", temp_buffer, config); + if (res == NOSUCHVAR) { + supported_options &= ~UPS_TEMP; + } else if (res != OK) { return STATE_CRITICAL; - else { - supported_options |= UPS_TEMP; - if (temp_output_c) { - tunits="degC"; - ups_temperature = atof (temp_buffer); - xasprintf (&message, "%sTemp=%3.1fC", message, ups_temperature); - } - else { - tunits="degF"; - ups_temperature = (atof (temp_buffer) * 1.8) + 32; - xasprintf (&message, "%sTemp=%3.1fF", message, ups_temperature); + } else { + supported_options |= UPS_TEMP; + + double ups_temperature = 0.0; + char *tunits; + + if (config.temp_output_c) { + tunits = "degC"; + ups_temperature = atof(temp_buffer); + xasprintf(&message, "%sTemp=%3.1fC", message, ups_temperature); + } else { + tunits = "degF"; + ups_temperature = (atof(temp_buffer) * 1.8) + 32; + xasprintf(&message, "%sTemp=%3.1fF", message, ups_temperature); } - if (check_variable == UPS_TEMP) { - if (check_crit==TRUE && ups_temperature>=critical_value) { + if (config.check_variable == UPS_TEMP) { + if (config.check_crit && ups_temperature >= config.critical_value) { result = STATE_CRITICAL; + } else if (config.check_warn && + ups_temperature >= config.warning_value) { + result = max_state(result, STATE_WARNING); } - else if (check_warn == TRUE && ups_temperature>=warning_value) { - result = max_state (result, STATE_WARNING); - } - xasprintf (&data, "%s %s", data, - perfdata ("temp", (long)ups_temperature, tunits, - check_warn, (long)(warning_value), - check_crit, (long)(critical_value), - TRUE, 0, FALSE, 0)); + xasprintf(&data, "%s %s", data, + perfdata("temp", (long)ups_temperature, tunits, + config.check_warn, (long)(config.warning_value), + config.check_crit, (long)(config.critical_value), + true, 0, false, 0)); } else { - xasprintf (&data, "%s %s", data, - perfdata ("temp", (long)ups_temperature, tunits, - FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); + xasprintf(&data, "%s %s", data, + perfdata("temp", (long)ups_temperature, tunits, false, 0, + false, 0, true, 0, false, 0)); } } - /* if the UPS does not support any options we are looking for, report an error */ + /* get the ups real power if possible */ + res = get_ups_variable("ups.realpower", temp_buffer, config); + if (res == NOSUCHVAR) { + supported_options &= ~UPS_REALPOWER; + } else if (res != OK) { + return STATE_CRITICAL; + } else { + supported_options |= UPS_REALPOWER; + double ups_realpower = 0.0; + ups_realpower = atof(temp_buffer); + xasprintf(&message, "%sReal power=%3.1fW ", message, ups_realpower); + + if (config.check_variable == UPS_REALPOWER) { + if (config.check_crit && ups_realpower >= config.critical_value) { + result = STATE_CRITICAL; + } else if (config.check_warn && + ups_realpower >= config.warning_value) { + result = max_state(result, STATE_WARNING); + } + xasprintf(&data, "%s %s", data, + perfdata("realpower", (long)ups_realpower, "W", + config.check_warn, (long)(config.warning_value), + config.check_crit, (long)(config.critical_value), + true, 0, false, 0)); + } else { + xasprintf(&data, "%s %s", data, + perfdata("realpower", (long)ups_realpower, "W", false, 0, + false, 0, true, 0, false, 0)); + } + } + + /* if the UPS does not support any options we are looking for, report an + * error */ if (supported_options == UPS_NONE) { result = STATE_CRITICAL; - xasprintf (&message, _("UPS does not support any available options\n")); + xasprintf(&message, _("UPS does not support any available options\n")); } /* reset timeout */ - alarm (0); + alarm(0); - printf ("UPS %s - %s|%s\n", state_text(result), message, data); + printf("UPS %s - %s|%s\n", state_text(result), message, data); return result; } - - /* determines what options are supported by the UPS */ -int -determine_status (void) -{ +int determine_status(ups_config *config, int *supported_options) { char recv_buffer[MAX_INPUT_BUFFER]; - char temp_buffer[MAX_INPUT_BUFFER]; - char *ptr; - int res; - res=get_ups_variable ("ups.status", recv_buffer); - if (res == NOSUCHVAR) return OK; + int res = get_ups_variable("ups.status", recv_buffer, *config); + if (res == NOSUCHVAR) { + return OK; + } + if (res != STATE_OK) { - printf ("%s\n", _("Invalid response received from host")); + printf("%s\n", _("Invalid response received from host")); return ERROR; } - supported_options |= UPS_STATUS; + *supported_options |= UPS_STATUS; - strcpy (temp_buffer, recv_buffer); - for (ptr = (char *) strtok (temp_buffer, " "); ptr != NULL; - ptr = (char *) strtok (NULL, " ")) { - if (!strcmp (ptr, "OFF")) - status |= UPSSTATUS_OFF; - else if (!strcmp (ptr, "OL")) - status |= UPSSTATUS_OL; - else if (!strcmp (ptr, "OB")) - status |= UPSSTATUS_OB; - else if (!strcmp (ptr, "LB")) - status |= UPSSTATUS_LB; - else if (!strcmp (ptr, "CAL")) - status |= UPSSTATUS_CAL; - else if (!strcmp (ptr, "RB")) - status |= UPSSTATUS_RB; - else if (!strcmp (ptr, "BYPASS")) - status |= UPSSTATUS_BYPASS; - else if (!strcmp (ptr, "OVER")) - status |= UPSSTATUS_OVER; - else if (!strcmp (ptr, "TRIM")) - status |= UPSSTATUS_TRIM; - else if (!strcmp (ptr, "BOOST")) - status |= UPSSTATUS_BOOST; - else if (!strcmp (ptr, "CHRG")) - status |= UPSSTATUS_CHRG; - else if (!strcmp (ptr, "DISCHRG")) - status |= UPSSTATUS_DISCHRG; - else - status |= UPSSTATUS_UNKNOWN; + char temp_buffer[MAX_INPUT_BUFFER]; + + strcpy(temp_buffer, recv_buffer); + for (char *ptr = (char *)strtok(temp_buffer, " "); ptr != NULL; + ptr = (char *)strtok(NULL, " ")) { + if (!strcmp(ptr, "OFF")) { + config->status |= UPSSTATUS_OFF; + } else if (!strcmp(ptr, "OL")) { + config->status |= UPSSTATUS_OL; + } else if (!strcmp(ptr, "OB")) { + config->status |= UPSSTATUS_OB; + } else if (!strcmp(ptr, "LB")) { + config->status |= UPSSTATUS_LB; + } else if (!strcmp(ptr, "CAL")) { + config->status |= UPSSTATUS_CAL; + } else if (!strcmp(ptr, "RB")) { + config->status |= UPSSTATUS_RB; + } else if (!strcmp(ptr, "BYPASS")) { + config->status |= UPSSTATUS_BYPASS; + } else if (!strcmp(ptr, "OVER")) { + config->status |= UPSSTATUS_OVER; + } else if (!strcmp(ptr, "TRIM")) { + config->status |= UPSSTATUS_TRIM; + } else if (!strcmp(ptr, "BOOST")) { + config->status |= UPSSTATUS_BOOST; + } else if (!strcmp(ptr, "CHRG")) { + config->status |= UPSSTATUS_CHRG; + } else if (!strcmp(ptr, "DISCHRG")) { + config->status |= UPSSTATUS_DISCHRG; + } else if (!strcmp(ptr, "ALARM")) { + config->status |= UPSSTATUS_ALARM; + } else { + config->status |= UPSSTATUS_UNKNOWN; + } } return OK; } - /* gets a variable value for a specific UPS */ -int -get_ups_variable (const char *varname, char *buf) -{ - /* char command[MAX_INPUT_BUFFER]; */ - char temp_buffer[MAX_INPUT_BUFFER]; +int get_ups_variable(const char *varname, char *buf, const ups_config config) { char send_buffer[MAX_INPUT_BUFFER]; - char *ptr; - char *logout = "OK Goodbye\n"; - int logout_len = strlen(logout); - int len; - - *buf=0; /* create the command string to send to the UPS daemon */ /* Add LOGOUT to avoid read failure logs */ - if (snprintf (send_buffer, sizeof(send_buffer), "GET VAR %s %s\nLOGOUT\n", ups_name, varname) >= sizeof(send_buffer)) { + int res = snprintf(send_buffer, sizeof(send_buffer), + "GET VAR %s %s\nLOGOUT\n", config.ups_name, varname); + if ((res > 0) && ((size_t)res >= sizeof(send_buffer))) { printf("%s\n", _("UPS name to long for buffer")); return ERROR; } + char temp_buffer[MAX_INPUT_BUFFER]; + /* send the command to the daemon and get a response back */ - if (process_tcp_request - (server_address, server_port, send_buffer, temp_buffer, - sizeof (temp_buffer)) != STATE_OK) { - printf ("%s\n", _("Invalid response received from host")); + if (process_tcp_request(config.server_address, config.server_port, + send_buffer, temp_buffer, + sizeof(temp_buffer)) != STATE_OK) { + printf("%s\n", _("Invalid response received from host")); return ERROR; } - ptr = temp_buffer; - len = strlen(ptr); - if (len > logout_len && strcmp (ptr + len - logout_len, logout) == 0) len -= logout_len; - if (len > 0 && ptr[len-1] == '\n') ptr[len-1]=0; - if (strcmp (ptr, "ERR UNKNOWN-UPS") == 0) { - printf (_("CRITICAL - no such UPS '%s' on that host\n"), ups_name); + char *ptr = temp_buffer; + int len = strlen(ptr); + const char *logout = "OK Goodbye\n"; + const int logout_len = strlen(logout); + + if (len > logout_len && strcmp(ptr + len - logout_len, logout) == 0) { + len -= logout_len; + } + if (len > 0 && ptr[len - 1] == '\n') { + ptr[len - 1] = 0; + } + if (strcmp(ptr, "ERR UNKNOWN-UPS") == 0) { + printf(_("CRITICAL - no such UPS '%s' on that host\n"), + config.ups_name); return ERROR; } - if (strcmp (ptr, "ERR VAR-NOT-SUPPORTED") == 0) { + if (strcmp(ptr, "ERR VAR-NOT-SUPPORTED") == 0) { /*printf ("Error: Variable '%s' is not supported\n", varname);*/ return NOSUCHVAR; } - if (strcmp (ptr, "ERR DATA-STALE") == 0) { - printf ("%s\n", _("CRITICAL - UPS data is stale")); + if (strcmp(ptr, "ERR DATA-STALE") == 0) { + printf("%s\n", _("CRITICAL - UPS data is stale")); return ERROR; } - if (strncmp (ptr, "ERR", 3) == 0) { - printf (_("Unknown error: %s\n"), ptr); + if (strncmp(ptr, "ERR", 3) == 0) { + printf(_("Unknown error: %s\n"), ptr); return ERROR; } - ptr = temp_buffer + strlen (varname) + strlen (ups_name) + 6; + ptr = temp_buffer + strlen(varname) + strlen(config.ups_name) + 6; len = strlen(ptr); - if (len < 2 || ptr[0] != '"' || ptr[len-1] != '"') { - printf ("%s\n", _("Error: unable to parse variable")); + if (len < 2 || ptr[0] != '"' || ptr[len - 1] != '"') { + printf("%s\n", _("Error: unable to parse variable")); return ERROR; } - strncpy (buf, ptr+1, len - 2); + + *buf = 0; + strncpy(buf, ptr + 1, len - 2); buf[len - 2] = 0; return OK; } - /* Command line: CHECK_UPS -H -u ups [-p port] [-v variable] [-wv warn_value] [-cv crit_value] [-to to_sec] */ - /* process command-line arguments */ -int -process_arguments (int argc, char **argv) -{ - int c; +int process_arguments(int argc, char **argv, ups_config *config) { - int option = 0; - static struct option longopts[] = { - {"hostname", required_argument, 0, 'H'}, - {"ups", required_argument, 0, 'u'}, - {"port", required_argument, 0, 'p'}, - {"critical", required_argument, 0, 'c'}, - {"warning", required_argument, 0, 'w'}, - {"timeout", required_argument, 0, 't'}, - {"temperature", no_argument, 0, 'T'}, - {"variable", required_argument, 0, 'v'}, - {"version", no_argument, 0, 'V'}, - {"help", no_argument, 0, 'h'}, - {0, 0, 0, 0} - }; + static struct option longopts[] = {{"hostname", required_argument, 0, 'H'}, + {"ups", required_argument, 0, 'u'}, + {"port", required_argument, 0, 'p'}, + {"critical", required_argument, 0, 'c'}, + {"warning", required_argument, 0, 'w'}, + {"timeout", required_argument, 0, 't'}, + {"temperature", no_argument, 0, 'T'}, + {"variable", required_argument, 0, 'v'}, + {"version", no_argument, 0, 'V'}, + {"help", no_argument, 0, 'h'}, + {0, 0, 0, 0}}; - if (argc < 2) + if (argc < 2) { return ERROR; - - for (c = 1; c < argc; c++) { - if (strcmp ("-to", argv[c]) == 0) - strcpy (argv[c], "-t"); - else if (strcmp ("-wt", argv[c]) == 0) - strcpy (argv[c], "-w"); - else if (strcmp ("-ct", argv[c]) == 0) - strcpy (argv[c], "-c"); } - while (1) { - c = getopt_long (argc, argv, "hVTH:u:p:v:c:w:t:", longopts, - &option); - - if (c == -1 || c == EOF) - break; - - switch (c) { - case '?': /* help */ - usage5 (); - case 'H': /* hostname */ - if (is_host (optarg)) { - server_address = optarg; - } - else { - usage2 (_("Invalid hostname/address"), optarg); - } - break; - case 'T': /* FIXME: to be improved (ie "-T C" for Celsius or "-T F" for Fahrenheit) */ - temp_output_c = 1; - break; - case 'u': /* ups name */ - ups_name = optarg; - break; - case 'p': /* port */ - if (is_intpos (optarg)) { - server_port = atoi (optarg); - } - else { - usage2 (_("Port must be a positive integer"), optarg); - } - break; - case 'c': /* critical time threshold */ - if (is_intnonneg (optarg)) { - critical_value = atoi (optarg); - check_crit = TRUE; - } - else { - usage2 (_("Critical time must be a positive integer"), optarg); - } - break; - case 'w': /* warning time threshold */ - if (is_intnonneg (optarg)) { - warning_value = atoi (optarg); - check_warn = TRUE; - } - else { - usage2 (_("Warning time must be a positive integer"), optarg); - } - break; - case 'v': /* variable */ - if (!strcmp (optarg, "LINE")) - check_variable = UPS_UTILITY; - else if (!strcmp (optarg, "TEMP")) - check_variable = UPS_TEMP; - else if (!strcmp (optarg, "BATTPCT")) - check_variable = UPS_BATTPCT; - else if (!strcmp (optarg, "LOADPCT")) - check_variable = UPS_LOADPCT; - else - usage2 (_("Unrecognized UPS variable"), optarg); - break; - case 't': /* timeout */ - if (is_intnonneg (optarg)) { - socket_timeout = atoi (optarg); - } - else { - usage4 (_("Timeout interval must be a positive integer")); - } - break; - case 'V': /* version */ - print_revision (progname, NP_VERSION); - exit (STATE_UNKNOWN); - case 'h': /* help */ - print_help (); - exit (STATE_UNKNOWN); + int c; + for (c = 1; c < argc; c++) { + if (strcmp("-to", argv[c]) == 0) { + strcpy(argv[c], "-t"); + } else if (strcmp("-wt", argv[c]) == 0) { + strcpy(argv[c], "-w"); + } else if (strcmp("-ct", argv[c]) == 0) { + strcpy(argv[c], "-c"); } } + int option = 0; + while (1) { + c = getopt_long(argc, argv, "hVTH:u:p:v:c:w:t:", longopts, &option); - if (server_address == NULL && argc > optind) { - if (is_host (argv[optind])) - server_address = argv[optind++]; - else - usage2 (_("Invalid hostname/address"), optarg); + if (c == -1 || c == EOF) { + break; + } + + switch (c) { + case '?': /* help */ + usage5(); + case 'H': /* hostname */ + if (is_host(optarg)) { + config->server_address = optarg; + } else { + usage2(_("Invalid hostname/address"), optarg); + } + break; + case 'T': /* FIXME: to be improved (ie "-T C" for Celsius or "-T F" for + Fahrenheit) */ + config->temp_output_c = true; + break; + case 'u': /* ups name */ + config->ups_name = optarg; + break; + case 'p': /* port */ + if (is_intpos(optarg)) { + config->server_port = atoi(optarg); + } else { + usage2(_("Port must be a positive integer"), optarg); + } + break; + case 'c': /* critical time threshold */ + if (is_intnonneg(optarg)) { + config->critical_value = atoi(optarg); + config->check_crit = true; + } else { + usage2(_("Critical time must be a positive integer"), optarg); + } + break; + case 'w': /* warning time threshold */ + if (is_intnonneg(optarg)) { + config->warning_value = atoi(optarg); + config->check_warn = true; + } else { + usage2(_("Warning time must be a positive integer"), optarg); + } + break; + case 'v': /* variable */ + if (!strcmp(optarg, "LINE")) { + config->check_variable = UPS_UTILITY; + } else if (!strcmp(optarg, "TEMP")) { + config->check_variable = UPS_TEMP; + } else if (!strcmp(optarg, "BATTPCT")) { + config->check_variable = UPS_BATTPCT; + } else if (!strcmp(optarg, "LOADPCT")) { + config->check_variable = UPS_LOADPCT; + } else if (!strcmp(optarg, "REALPOWER")) { + config->check_variable = UPS_REALPOWER; + } else { + usage2(_("Unrecognized UPS variable"), optarg); + } + break; + case 't': /* timeout */ + if (is_intnonneg(optarg)) { + socket_timeout = atoi(optarg); + } else { + usage4(_("Timeout interval must be a positive integer")); + } + break; + case 'V': /* version */ + print_revision(progname, NP_VERSION); + exit(STATE_UNKNOWN); + case 'h': /* help */ + print_help(); + exit(STATE_UNKNOWN); + } } - if (server_address == NULL) - server_address = strdup("127.0.0.1"); + if (config->server_address == NULL && argc > optind) { + if (is_host(argv[optind])) { + config->server_address = argv[optind++]; + } else { + usage2(_("Invalid hostname/address"), optarg); + } + } - return validate_arguments(); + if (config->server_address == NULL) { + config->server_address = strdup("127.0.0.1"); + } + + return validate_arguments(*config); } - -int -validate_arguments (void) -{ - if (! ups_name) { - printf ("%s\n", _("Error : no UPS indicated")); +int validate_arguments(ups_config config) { + if (!config.ups_name) { + printf("%s\n", _("Error : no UPS indicated")); return ERROR; } return OK; } +void print_help(void) { + print_revision(progname, NP_VERSION); + + printf("Copyright (c) 2000 Tom Shields\n"); + printf("Copyright (c) 2004 Alain Richard \n"); + printf("Copyright (c) 2004 Arnaud Quette \n"); + printf(COPYRIGHT, copyright, email); + + printf("%s\n", _("This plugin tests the UPS service on the specified host. " + "Network UPS Tools")); + printf("%s\n", _("from www.networkupstools.org must be running for this " + "plugin to work.")); + + printf("\n\n"); + + print_usage(); + + printf(UT_HELP_VRSN); + printf(UT_EXTRA_OPTS); -void -print_help (void) -{ char *myport; - xasprintf (&myport, "%d", PORT); + xasprintf(&myport, "%d", PORT); + printf(UT_HOST_PORT, 'p', myport); - print_revision (progname, NP_VERSION); + printf(" %s\n", "-u, --ups=STRING"); + printf(" %s\n", _("Name of UPS")); + printf(" %s\n", "-T, --temperature"); + printf(" %s\n", _("Output of temperatures in Celsius")); + printf(" %s\n", "-v, --variable=STRING"); + printf(" %s %s\n", _("Valid values for STRING are"), + "LINE, TEMP, BATTPCT, LOADPCT or REALPOWER"); - printf ("Copyright (c) 2000 Tom Shields\n"); - printf ("Copyright (c) 2004 Alain Richard \n"); - printf ("Copyright (c) 2004 Arnaud Quette \n"); - printf (COPYRIGHT, copyright, email); + printf(UT_WARN_CRIT); - printf ("%s\n", _("This plugin tests the UPS service on the specified host. Network UPS Tools")); - printf ("%s\n", _("from www.networkupstools.org must be running for this plugin to work.")); + printf(UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); - printf ("\n\n"); + /* TODO: -v clashing with -v/-variable. Commenting out help text since + verbose is unused up to now */ + /* printf (UT_VERBOSE); */ - print_usage (); + printf("\n"); + printf("%s\n", _("This plugin attempts to determine the status of a UPS " + "(Uninterruptible Power")); + printf("%s\n", _("Supply) on a local or remote host. If the UPS is online " + "or calibrating, the")); + printf("%s\n", _("plugin will return an OK state. If the battery is on it " + "will return a WARNING")); + printf("%s\n", _("state. If the UPS is off or has a low battery the plugin " + "will return a CRITICAL")); + printf("%s\n", _("state.")); - printf (UT_HELP_VRSN); - printf (UT_EXTRA_OPTS); + printf("\n"); + printf("%s\n", _("Notes:")); + printf(" %s\n", _("You may also specify a variable to check (such as " + "temperature, utility voltage,")); + printf(" %s\n", _("battery load, etc.) as well as warning and critical " + "thresholds for the value")); + printf(" %s\n", _("of that variable. If the remote host has multiple UPS " + "that are being monitored")); + printf(" %s\n", _("you will have to use the --ups option to specify which " + "UPS to check.")); + printf("\n"); + printf(" %s\n", _("This plugin requires that the UPSD daemon distributed " + "with Russell Kroll's")); + printf(" %s\n", _("Network UPS Tools be installed on the remote host. If " + "you do not have the")); + printf(" %s\n", + _("package installed on your system, you can download it from")); + printf(" %s\n", _("http://www.networkupstools.org")); - printf (UT_HOST_PORT, 'p', myport); - - printf (" %s\n", "-u, --ups=STRING"); - printf (" %s\n", _("Name of UPS")); - printf (" %s\n", "-T, --temperature"); - printf (" %s\n", _("Output of temperatures in Celsius")); - printf (" %s\n", "-v, --variable=STRING"); - printf (" %s %s\n", _("Valid values for STRING are"), "LINE, TEMP, BATTPCT or LOADPCT"); - - printf (UT_WARN_CRIT); - - printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); - -/* TODO: -v clashing with -v/-variable. Commenting out help text since verbose - is unused up to now */ -/* printf (UT_VERBOSE); */ - - printf ("\n"); - printf ("%s\n", _("This plugin attempts to determine the status of a UPS (Uninterruptible Power")); - printf ("%s\n", _("Supply) on a local or remote host. If the UPS is online or calibrating, the")); - printf ("%s\n", _("plugin will return an OK state. If the battery is on it will return a WARNING")); - printf ("%s\n", _("state. If the UPS is off or has a low battery the plugin will return a CRITICAL")); - printf ("%s\n", _("state.")); - - printf ("\n"); - printf ("%s\n", _("Notes:")); - printf (" %s\n", _("You may also specify a variable to check (such as temperature, utility voltage,")); - printf (" %s\n", _("battery load, etc.) as well as warning and critical thresholds for the value")); - printf (" %s\n", _("of that variable. If the remote host has multiple UPS that are being monitored")); - printf (" %s\n", _("you will have to use the --ups option to specify which UPS to check.")); - printf ("\n"); - printf (" %s\n", _("This plugin requires that the UPSD daemon distributed with Russell Kroll's")); - printf (" %s\n", _("Network UPS Tools be installed on the remote host. If you do not have the")); - printf (" %s\n", _("package installed on your system, you can download it from")); - printf (" %s\n", _("http://www.networkupstools.org")); - - printf (UT_SUPPORT); + printf(UT_SUPPORT); } - -void -print_usage (void) -{ - printf ("%s\n", _("Usage:")); - printf ("%s -H host -u ups [-p port] [-v variable] [-w warn_value] [-c crit_value] [-to to_sec] [-T]\n", progname); +void print_usage(void) { + printf("%s\n", _("Usage:")); + printf("%s -H host -u ups [-p port] [-v variable] [-w warn_value] [-c " + "crit_value] [-to to_sec] [-T]\n", + progname); } diff --git a/plugins/check_users.c b/plugins/check_users.c index 2a9ee98..89b9536 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c @@ -179,7 +179,7 @@ main (int argc, char **argv) printf (_("USERS %s - %d users currently logged in |%s\n"), state_text(result), users, sperfdata_int("users", users, "", warning_range, - critical_range, TRUE, 0, FALSE, 0)); + critical_range, true, 0, false, 0)); } return result; @@ -202,7 +202,7 @@ process_arguments (int argc, char **argv) if (argc < 2) usage ("\n"); - while (1) { + while (true) { c = getopt_long (argc, argv, "+hVvc:w:", longopts, &option); if (c == -1 || c == EOF || c == 1) @@ -227,18 +227,23 @@ process_arguments (int argc, char **argv) } c = optind; + if (warning_range == NULL && argc > c) warning_range = argv[c++]; + if (critical_range == NULL && argc > c) critical_range = argv[c++]; /* this will abort in case of invalid ranges */ set_thresholds (&thlds, warning_range, critical_range); - if (thlds->warning->end < 0) - usage4 (_("Warning threshold must be a positive integer")); - if (thlds->critical->end < 0) - usage4 (_("Critical threshold must be a positive integer")); + if (!thlds->warning) { + usage4 (_("Warning threshold must be a valid range expression")); + } + + if (!thlds->critical) { + usage4 (_("Critical threshold must be a valid range expression")); + } return OK; } @@ -261,10 +266,10 @@ print_help (void) printf (UT_HELP_VRSN); printf (UT_EXTRA_OPTS); - printf (" %s\n", "-w, --warning=INTEGER"); - printf (" %s\n", _("Set WARNING status if more than INTEGER users are logged in")); - printf (" %s\n", "-c, --critical=INTEGER"); - printf (" %s\n", _("Set CRITICAL status if more than INTEGER users are logged in")); + printf (" %s\n", "-w, --warning=RANGE_EXPRESSION"); + printf (" %s\n", _("Set WARNING status if number of logged in users violates RANGE_EXPRESSION")); + printf (" %s\n", "-c, --critical=RANGE_EXPRESSION"); + printf (" %s\n", _("Set CRITICAL status if number of logged in users violates RANGE_EXPRESSION")); printf (UT_SUPPORT); } diff --git a/plugins/common.h b/plugins/common.h index 6bf4fca..833479c 100644 --- a/plugins/common.h +++ b/plugins/common.h @@ -184,14 +184,6 @@ enum { ERROR = -1 }; -/* AIX seems to have this defined somewhere else */ -#ifndef FALSE -enum { - FALSE, - TRUE -}; -#endif - enum { STATE_OK, STATE_WARNING, diff --git a/plugins/negate.c b/plugins/negate.c index 50f62d3..c5fe7e1 100644 --- a/plugins/negate.c +++ b/plugins/negate.c @@ -47,7 +47,7 @@ static const char **process_arguments (int, char **); void validate_arguments (char **); void print_help (void); void print_usage (void); -int subst_text = FALSE; +bool subst_text = false; static int state[4] = { STATE_OK, @@ -63,7 +63,6 @@ main (int argc, char **argv) char *sub; char **command_line; output chld_out, chld_err; - int i; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -86,7 +85,7 @@ main (int argc, char **argv) result = cmd_run_array (command_line, &chld_out, &chld_err, 0); } if (chld_err.lines > 0) { - for (i = 0; i < chld_err.lines; i++) { + for (size_t i = 0; i < chld_err.lines; i++) { fprintf (stderr, "%s\n", chld_err.line[i]); } } @@ -95,7 +94,7 @@ main (int argc, char **argv) if (chld_out.lines == 0) die (max_state_alt (result, STATE_UNKNOWN), _("No data returned from command\n")); - for (i = 0; i < chld_out.lines; i++) { + for (size_t i = 0; i < chld_out.lines; i++) { if (subst_text && result >= 0 && result <= 4 && result != state[result]) { /* Loop over each match found */ while ((sub = strstr (chld_out.line[i], state_text (result)))) { @@ -122,7 +121,7 @@ static const char ** process_arguments (int argc, char **argv) { int c; - int permute = TRUE; + bool permute = true; int option = 0; static struct option longopts[] = { @@ -168,26 +167,26 @@ process_arguments (int argc, char **argv) case 'o': /* replacement for OK */ if ((state[STATE_OK] = mp_translate_state(optarg)) == ERROR) usage4 (_("Ok must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or integer (0-3).")); - permute = FALSE; + permute = false; break; case 'w': /* replacement for WARNING */ if ((state[STATE_WARNING] = mp_translate_state(optarg)) == ERROR) usage4 (_("Warning must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or integer (0-3).")); - permute = FALSE; + permute = false; break; case 'c': /* replacement for CRITICAL */ if ((state[STATE_CRITICAL] = mp_translate_state(optarg)) == ERROR) usage4 (_("Critical must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or integer (0-3).")); - permute = FALSE; + permute = false; break; case 'u': /* replacement for UNKNOWN */ if ((state[STATE_UNKNOWN] = mp_translate_state(optarg)) == ERROR) usage4 (_("Unknown must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or integer (0-3).")); - permute = FALSE; + permute = false; break; case 's': /* Substitute status text */ - subst_text = TRUE; + subst_text = true; break; } } @@ -221,8 +220,10 @@ print_help (void) printf (COPYRIGHT, copyright, email); - printf ("%s\n", _("Negates the status of a plugin (returns OK for CRITICAL and vice-versa).")); - printf ("%s\n", _("Additional switches can be used to control which state becomes what.")); + printf ("%s\n", _("Negates only the return code of a plugin (returns OK for CRITICAL and vice-versa) by default.")); + printf ("%s\n", _("Additional switches can be used to control:\n")); + printf ("\t - which state becomes what\n"); + printf ("\t - changing the plugin output text to match the return code"); printf ("\n\n"); diff --git a/plugins/netutils.c b/plugins/netutils.c index 1bb4f07..c6af248 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c @@ -34,7 +34,7 @@ unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; unsigned int socket_timeout_state = STATE_CRITICAL; int econn_refuse_state = STATE_CRITICAL; -int was_refused = FALSE; +bool was_refused = false; #if USE_IPV6 int address_family = AF_UNSPEC; #else @@ -215,14 +215,14 @@ np_net_connect (const char *host_name, int port, int *sd, int proto) result = connect (*sd, r->ai_addr, r->ai_addrlen); if (result == 0) { - was_refused = FALSE; + was_refused = false; break; } if (result < 0) { switch (errno) { case ECONNREFUSED: - was_refused = TRUE; + was_refused = true; break; } } @@ -246,7 +246,7 @@ np_net_connect (const char *host_name, int port, int *sd, int proto) } result = connect(*sd, (struct sockaddr *)&su, sizeof(su)); if (result < 0 && errno == ECONNREFUSED) - was_refused = TRUE; + was_refused = true; } if (result == 0) @@ -326,13 +326,11 @@ send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int } -int -is_host (const char *address) -{ +bool is_host (const char *address) { if (is_addr (address) || is_hostname (address)) - return (TRUE); + return (true); - return (FALSE); + return (false); } void @@ -342,20 +340,18 @@ host_or_die(const char *str) usage_va(_("Invalid hostname/address - %s"), str); } -int -is_addr (const char *address) -{ +bool is_addr (const char *address) { #ifdef USE_IPV6 if (address_family == AF_INET && is_inet_addr (address)) - return TRUE; + return true; else if (address_family == AF_INET6 && is_inet6_addr (address)) - return TRUE; + return true; #else if (is_inet_addr (address)) - return (TRUE); + return (true); #endif - return (FALSE); + return (false); } int @@ -370,10 +366,10 @@ dns_lookup (const char *in, struct sockaddr_storage *ss, int family) retval = getaddrinfo (in, NULL, &hints, &res); if (retval != 0) - return FALSE; + return false; if (ss != NULL) memcpy (ss, res->ai_addr, res->ai_addrlen); freeaddrinfo (res); - return TRUE; + return true; } diff --git a/plugins/netutils.h b/plugins/netutils.h index ea653e7..a95057e 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h @@ -73,8 +73,8 @@ int send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, /* "is_*" wrapper macros and functions */ -int is_host (const char *); -int is_addr (const char *); +bool is_host (const char *); +bool is_addr (const char *); int dns_lookup (const char *, struct sockaddr_storage *, int); void host_or_die(const char *str); #define resolve_host_or_addr(addr, family) dns_lookup(addr, NULL, family) @@ -89,7 +89,7 @@ void host_or_die(const char *str); extern unsigned int socket_timeout; extern unsigned int socket_timeout_state; extern int econn_refuse_state; -extern int was_refused; +extern bool was_refused; extern int address_family; void socket_timeout_alarm_handler (int) __attribute__((noreturn)); diff --git a/plugins/picohttpparser/Makefile.in b/plugins/picohttpparser/Makefile.in index 75fea6b..fd1dc34 100644 --- a/plugins/picohttpparser/Makefile.in +++ b/plugins/picohttpparser/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -164,8 +164,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -178,7 +177,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -196,7 +194,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -286,8 +283,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp \ $(top_srcdir)/build-aux/mkinstalldirs @@ -318,6 +313,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ DEFS = @DEFS@ @@ -337,6 +334,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -1708,6 +1706,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -1863,7 +1863,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/plugins/popen.c b/plugins/popen.c index 036bc60..54e63bc 100644 --- a/plugins/popen.c +++ b/plugins/popen.c @@ -105,7 +105,7 @@ spopen (const char *cmdstring) #endif env[0] = strdup("LC_ALL=C"); - env[1] = '\0'; + env[1] = NULL; /* if no command was passed, return with no error */ if (cmdstring == NULL) diff --git a/plugins/runcmd.c b/plugins/runcmd.c index 4f3e349..ed49bb9 100644 --- a/plugins/runcmd.c +++ b/plugins/runcmd.c @@ -115,7 +115,7 @@ np_runcmd_open(const char *cmdstring, int *pfd, int *pfderr) if(!np_pids) NP_RUNCMD_INIT; env[0] = strdup("LC_ALL=C"); - env[1] = '\0'; + env[1] = NULL; /* make copy of command string so strtok() doesn't silently modify it */ /* (the calling program may want to access it later) */ @@ -240,13 +240,12 @@ np_runcmd_close(int fd) void runcmd_timeout_alarm_handler (int signo) { - size_t i; if (signo == SIGALRM) puts(_("CRITICAL - Plugin timed out while executing system call")); long maxfd = mp_open_max(); - if(np_pids) for(i = 0; i < maxfd; i++) { + if(np_pids) for(long int i = 0; i < maxfd; i++) { if(np_pids[i] != 0) kill(np_pids[i], SIGKILL); } diff --git a/plugins/t/check_curl.t b/plugins/t/check_curl.t index eae98cc..7a930a4 100644 --- a/plugins/t/check_curl.t +++ b/plugins/t/check_curl.t @@ -205,9 +205,9 @@ SKIP: { like ( $res->output, '/time_connect=[\d\.]+/', 'Extended Performance Data Output OK' ); like ( $res->output, '/time_ssl=[\d\.]+/', 'Extended Performance Data SSL Output OK' ); - $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f curl" ); + $res = NPTest->testCmd( "./$plugin -H monitoring-plugins.org -u /download.html -f follow" ); is( $res->return_code, 0, "Redirection based on location is okay"); - $res = NPTest->testCmd( "./$plugin -H www.mozilla.com --extended-perfdata" ); + $res = NPTest->testCmd( "./$plugin -H monitoring-plugins.org --extended-perfdata" ); like ( $res->output, '/time_connect=[\d\.]+/', 'Extended Performance Data Output OK' ); } diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t index ca035ce..9eb77ce 100644 --- a/plugins/t/check_disk.t +++ b/plugins/t/check_disk.t @@ -23,11 +23,11 @@ my $mountpoint2_valid = getTestParameter( "NP_MOUNTPOINT2_VALID", "Path to anoth if ($mountpoint_valid eq "" or $mountpoint2_valid eq "") { plan skip_all => "Need 2 mountpoints to test"; } else { - plan tests => 88; + plan tests => 94; } -$result = NPTest->testCmd( - "./check_disk -w 1% -c 1% -p $mountpoint_valid -w 1% -c 1% -p $mountpoint2_valid" +$result = NPTest->testCmd( + "./check_disk -w 1% -c 1% -p $mountpoint_valid -w 1% -c 1% -p $mountpoint2_valid" ); cmp_ok( $result->return_code, "==", 0, "Checking two mountpoints (must have at least 1% free in space and inodes)"); my $c = 0; @@ -44,7 +44,7 @@ my @perf_data = sort(split(/ /, $result->perf_output)); # Calculate avg_free free on mountpoint1 and mountpoint2 # because if you check in the middle, you should get different errors $_ = $result->output; -my ($free_on_mp1, $free_on_mp2) = (m/\((\d+)%.*\((\d+)%/); +my ($free_on_mp1, $free_on_mp2) = (m/\((\d+\.\d+)%.*\((\d+\.\d+)%/); die "Cannot parse output: $_" unless ($free_on_mp1 && $free_on_mp2); my $avg_free = ceil(($free_on_mp1+$free_on_mp2)/2); my ($more_free, $less_free); @@ -103,8 +103,8 @@ is ($crit_percth_data, int((1-10/100)*$total_percth_data), "Wrong critical in pe # Check when order of mount points are reversed, that perf data remains same -$result = NPTest->testCmd( - "./check_disk -w 1% -c 1% -p $mountpoint2_valid -w 1% -c 1% -p $mountpoint_valid" +$result = NPTest->testCmd( + "./check_disk -w 1% -c 1% -p $mountpoint2_valid -w 1% -c 1% -p $mountpoint_valid" ); @_ = sort(split(/ /, $result->perf_output)); is_deeply( \@perf_data, \@_, "perf data for both filesystems same when reversed"); @@ -119,8 +119,12 @@ like ( $result->only_output, qr/$more_free/, "Have disk name in text"); $result = NPTest->testCmd( "./check_disk -w 1 -c 1 -p $more_free -p $less_free" ); cmp_ok( $result->return_code, '==', 0, "At least 1 MB available on $more_free and $less_free"); + $_ = $result->output; + my ($free_mb_on_mp1, $free_mb_on_mp2) = (m/(\d+)MiB .* (\d+)MiB /g); +die "Cannot parse output: $_" unless ($free_mb_on_mp1 && $free_mb_on_mp2); + my $free_mb_on_all = $free_mb_on_mp1 + $free_mb_on_mp2; @@ -134,8 +138,8 @@ cmp_ok( $result->return_code, '==', 0, "Old syntax okay" ); $result = NPTest->testCmd( "./check_disk -w 1% -c 1% -p $more_free" ); cmp_ok( $result->return_code, "==", 0, "At least 1% free" ); -$result = NPTest->testCmd( - "./check_disk -w 1% -c 1% -p $more_free -w 100% -c 100% -p $less_free" +$result = NPTest->testCmd( + "./check_disk -w 1% -c 1% -p $more_free -w 100% -c 100% -p $less_free" ); cmp_ok( $result->return_code, "==", 2, "Get critical on less_free mountpoint $less_free" ); like( $result->output, $failureOutput, "Right output" ); @@ -151,14 +155,14 @@ $result = NPTest->testCmd( ); cmp_ok( $result->return_code, '==', 0, "Get ok on more_free mountpoint, when checking avg_free"); -$result = NPTest->testCmd( - "./check_disk -w $avg_free% -c 0% -p $less_free -w $avg_free% -c $avg_free% -p $more_free" +$result = NPTest->testCmd( + "./check_disk -w $avg_free% -c 0% -p $less_free -w $avg_free% -c $avg_free% -p $more_free" ); cmp_ok( $result->return_code, "==", 1, "Combining above two tests, get warning"); my $all_disks = $result->output; $result = NPTest->testCmd( - "./check_disk -e -w $avg_free% -c 0% -p $less_free -w $avg_free% -c $avg_free% -p $more_free" + "./check_disk -e -w $avg_free% -c 0% -p $less_free -w $avg_free% -c $avg_free% -p $more_free" ); isnt( $result->output, $all_disks, "-e gives different output"); @@ -240,7 +244,7 @@ TODO: { cmp_ok( $result->return_code, '==', 3, "Invalid command line options" ); } -$result = NPTest->testCmd( +$result = NPTest->testCmd( "./check_disk -p $mountpoint_valid -w 10% -c 15%" ); cmp_ok( $result->return_code, "==", 3, "Invalid options: -p must come after thresholds" ); @@ -311,8 +315,8 @@ $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -C -w 0% -c 0% -p $mountpoi like( $result->output, '/;.*;\|/', "-C selects partitions if -p is not given"); # grouping: exit crit if the sum of free megs on mp1+mp2 is less than warn/crit -$result = NPTest->testCmd( "./check_disk -w ". ($free_mb_on_all + 1) ." -c ". ($free_mb_on_all + 1) ."-g group -p $mountpoint_valid -p $mountpoint2_valid" ); -cmp_ok( $result->return_code, '==', 2, "grouping: exit crit if the sum of free megs on mp1+mp2 is less than warn/crit"); +$result = NPTest->testCmd( "./check_disk -w ". ($free_mb_on_all + 1) ." -c ". ($free_mb_on_all + 1) ." -g group -p $mountpoint_valid -p $mountpoint2_valid" ); +cmp_ok( $result->return_code, '==', 2, "grouping: exit crit if the sum of free megs on mp1+mp2 is less than warn/crit\nInstead received: " . $result->output); # grouping: exit warning if the sum of free megs on mp1+mp2 is between -w and -c $result = NPTest->testCmd( "./check_disk -w ". ($free_mb_on_all + 1) ." -c ". ($free_mb_on_all - 1) ." -g group -p $mountpoint_valid -p $mountpoint2_valid" ); @@ -322,7 +326,7 @@ cmp_ok( $result->return_code, '==', 1, "grouping: exit warning if the sum of fre $result = NPTest->testCmd( "./check_disk -w ". ($free_mb_on_all - 1) ." -c ". ($free_mb_on_all - 1) ." -g group -p $mountpoint_valid -p $mountpoint2_valid" ); cmp_ok( $result->return_code, '==', 0, "grouping: exit ok if the sum of free megs on mp1+mp2 is more than warn/crit"); -# grouping: exit unknown if group name is given after -p +# grouping: exit unknown if group name is given after -p $result = NPTest->testCmd( "./check_disk -w ". ($free_mb_on_all - 1) ." -c ". ($free_mb_on_all - 1) ." -p $mountpoint_valid -g group -p $mountpoint2_valid" ); cmp_ok( $result->return_code, '==', 3, "Invalid options: -p must come after groupname"); @@ -355,17 +359,17 @@ like( $result->output, qr/$mountpoint2_valid/,"ignore: output data does have $mo # ignore-missing: exit okay, when fs is not accessible $result = NPTest->testCmd( "./check_disk --ignore-missing -w 0% -c 0% -p /bob"); cmp_ok( $result->return_code, '==', 0, "ignore-missing: return okay for not existing filesystem /bob"); -like( $result->output, '/^DISK OK - No disks were found for provided parameters; - ignored paths: /bob;.*$/', 'Output OK'); +like( $result->output, '/^DISK OK - No disks were found for provided parameters - ignored paths: /bob;.*$/', 'Output OK'); # ignore-missing: exit okay, when regex does not match $result = NPTest->testCmd( "./check_disk --ignore-missing -w 0% -c 0% -r /bob"); cmp_ok( $result->return_code, '==', 0, "ignore-missing: return okay for regular expression not matching"); -like( $result->output, '/^DISK OK - No disks were found for provided parameters;.*$/', 'Output OK'); +like( $result->output, '/^DISK OK - No disks were found for provided parameters.*$/', 'Output OK'); # ignore-missing: exit okay, when fs with exact match (-E) is not found $result = NPTest->testCmd( "./check_disk --ignore-missing -w 0% -c 0% -E -p /etc"); cmp_ok( $result->return_code, '==', 0, "ignore-missing: return okay when exact match does not find fs"); -like( $result->output, '/^DISK OK - No disks were found for provided parameters; - ignored paths: /etc;.*$/', 'Output OK'); +like( $result->output, '/^DISK OK - No disks were found for provided parameters - ignored paths: /etc;.*$/', 'Output OK'); # ignore-missing: exit okay, when checking one existing fs and one non-existing fs (regex) $result = NPTest->testCmd( "./check_disk --ignore-missing -w 0% -c 0% -r '/bob' -r '^/\$'"); @@ -375,4 +379,19 @@ like( $result->output, '/^DISK OK - free space: \/ .*$/', 'Output OK'); # ignore-missing: exit okay, when checking one existing fs and one non-existing fs (path) $result = NPTest->testCmd( "./check_disk --ignore-missing -w 0% -c 0% -p '/bob' -p '/'"); cmp_ok( $result->return_code, '==', 0, "ignore-missing: return okay for regular expression not matching"); -like( $result->output, '/^DISK OK - free space: / .*; - ignored paths: /bob;.*$/', 'Output OK'); \ No newline at end of file +like( $result->output, '/^DISK OK - free space: / .*; - ignored paths: /bob;.*$/', 'Output OK'); + +# ignore-missing: exit okay, when checking one non-existing fs (path) and one ignored +$result = NPTest->testCmd( "./check_disk -n -w 0% -c 0% -r /dummy -i /dummy2"); +cmp_ok( $result->return_code, '==', 0, "ignore-missing: return okay for regular expression not matching"); +like( $result->output, '/^DISK OK - No disks were found for provided parameters\|$/', 'Output OK'); + +# ignore-missing: exit okay, when regex match does not find anything +$result = NPTest->testCmd( "./check_disk -n -e -l -w 10% -c 5% -W 10% -K 5% -r /dummy"); +cmp_ok( $result->return_code, '==', 0, "ignore-missing: return okay for regular expression not matching"); +like( $result->output, '/^DISK OK\|$/', 'Output OK'); + +# ignore-missing: exit okay, when regex match does not find anything +$result = NPTest->testCmd( "./check_disk -n -l -w 10% -c 5% -W 10% -K 5% -r /dummy"); +cmp_ok( $result->return_code, '==', 0, "ignore-missing: return okay for regular expression not matching"); +like( $result->output, '/^DISK OK - No disks were found for provided parameters\|$/', 'Output OK'); diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index 1f2fbdf..6ab4a5b 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t @@ -166,10 +166,10 @@ SKIP: { like ( $res->output, '/time_connect=[\d\.]+/', 'Extended Performance Data Output OK' ); like ( $res->output, '/time_ssl=[\d\.]+/', 'Extended Performance Data SSL Output OK' ); - $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f follow" ); + $res = NPTest->testCmd( "./$plugin -H monitoring-plugins.org -u /download.html -f follow" ); is( $res->return_code, 0, "Redirection based on location is okay"); - $res = NPTest->testCmd( "./$plugin -H www.mozilla.com --extended-perfdata" ); + $res = NPTest->testCmd( "./$plugin -H monitoring-plugins.org --extended-perfdata" ); like ( $res->output, '/time_connect=[\d\.]+/', 'Extended Performance Data Output OK' ); } diff --git a/plugins/t/check_ssh.t b/plugins/t/check_ssh.t index a5cd23c..907d33a 100644 --- a/plugins/t/check_ssh.t +++ b/plugins/t/check_ssh.t @@ -8,34 +8,116 @@ use strict; use Test::More; use NPTest; +my $res; + # Required parameters -my $ssh_host = getTestParameter("NP_SSH_HOST", "A host providing SSH service", "localhost"); -my $host_nonresponsive = getTestParameter("NP_HOST_NONRESPONSIVE", "The hostname of system not responsive to network requests", "10.0.0.1" ); -my $hostname_invalid = getTestParameter("NP_HOSTNAME_INVALID", "An invalid (not known to DNS) hostname", "nosuchhost" ); +my $ssh_host = getTestParameter("NP_SSH_HOST", + "A host providing SSH service", + "localhost"); + +my $host_nonresponsive = getTestParameter("NP_HOST_NONRESPONSIVE", + "The hostname of system not responsive to network requests", + "10.0.0.1" ); + +my $hostname_invalid = getTestParameter("NP_HOSTNAME_INVALID", + "An invalid (not known to DNS) hostname", + "nosuchhost" ); -plan skip_all => "SSH_HOST must be defined" unless $ssh_host; -plan tests => 6; +plan tests => 14 + 6; + +SKIP: { + skip "SSH_HOST must be defined", 6 unless $ssh_host; + my $result = NPTest->testCmd( + "./check_ssh -H $ssh_host" + ); + cmp_ok($result->return_code, '==', 0, "Exit with return code 0 (OK)"); + like($result->output, '/^SSH OK - /', "Status text if command returned none (OK)"); -my $result = NPTest->testCmd( - "./check_ssh -H $ssh_host" - ); -cmp_ok($result->return_code, '==', 0, "Exit with return code 0 (OK)"); -like($result->output, '/^SSH OK - /', "Status text if command returned none (OK)"); - - -$result = NPTest->testCmd( - "./check_ssh -H $host_nonresponsive -t 2" - ); -cmp_ok($result->return_code, '==', 2, "Exit with return code 0 (OK)"); -like($result->output, '/^CRITICAL - Socket timeout after 2 seconds/', "Status text if command returned none (OK)"); + $result = NPTest->testCmd( + "./check_ssh -H $host_nonresponsive -t 2" + ); + cmp_ok($result->return_code, '==', 2, "Exit with return code 0 (OK)"); + like($result->output, '/^CRITICAL - Socket timeout after 2 seconds/', "Status text if command returned none (OK)"); -$result = NPTest->testCmd( - "./check_ssh -H $hostname_invalid -t 2" - ); -cmp_ok($result->return_code, '==', 3, "Exit with return code 0 (OK)"); -like($result->output, '/^check_ssh: Invalid hostname/', "Status text if command returned none (OK)"); + $result = NPTest->testCmd( + "./check_ssh -H $hostname_invalid -t 2" + ); + cmp_ok($result->return_code, '==', 3, "Exit with return code 0 (OK)"); + like($result->output, '/^check_ssh: Invalid hostname/', "Status text if command returned none (OK)"); + +} +SKIP: { + + skip "No netcat available", 14 unless (system("which nc > /dev/null") == 0); + + # netcat on linux (on debian) will just keep the socket open if not advised otherwise + # therefore we add -q to close it after two seconds after receiving the EOF from input + my $nc_flags = "-l 5003 -N"; + #A valid protocol version control string has the form + # SSH-protoversion-softwareversion SP comments CR LF + # + # where `comments` is optional, protoversion is the SSH protocol version and + # softwareversion is an arbitrary string representing the server software version + open(NC, "echo 'SSH-2.0-nagiosplug.ssh.0.1' | nc ${nc_flags}|"); + sleep 0.1; + $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" ); + cmp_ok( $res->return_code, '==', 0, "Got SSH protocol version control string"); + like( $res->output, '/^SSH OK - nagiosplug.ssh.0.1 \(protocol 2.0\)/', "Output OK"); + close NC; + + open(NC, "echo 'SSH-2.0-3.2.9.1' | nc ${nc_flags}|"); + sleep 0.1; + $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" ); + cmp_ok( $res->return_code, "==", 0, "Got SSH protocol version control string with non-alpha softwareversion string"); + like( $res->output, '/^SSH OK - 3.2.9.1 \(protocol 2.0\)/', "Output OK for non-alpha softwareversion string"); + close NC; + + open(NC, "echo 'SSH-2.0-nagiosplug.ssh.0.1 this is a comment' | nc ${nc_flags} |"); + sleep 0.1; + $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003 -r nagiosplug.ssh.0.1" ); + cmp_ok( $res->return_code, '==', 0, "Got SSH protocol version control string, and parsed comment appropriately"); + like( $res->output, '/^SSH OK - nagiosplug.ssh.0.1 \(protocol 2.0\)/', "Output OK"); + close NC; + + open(NC, "echo 'SSH-' | nc ${nc_flags}|"); + sleep 0.1; + $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" ); + cmp_ok( $res->return_code, '==', 2, "Got invalid SSH protocol version control string"); + like( $res->output, '/^SSH CRITICAL/', "Output OK"); + close NC; + + open(NC, "echo '' | nc ${nc_flags}|"); + sleep 0.1; + $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" ); + cmp_ok( $res->return_code, '==', 2, "No version control string received"); + like( $res->output, '/^SSH CRITICAL - No version control string received/', "Output OK"); + close NC; + + open(NC, "echo 'Not a version control string' | nc ${nc_flags}|"); + sleep 0.1; + $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" ); + cmp_ok( $res->return_code, '==', 2, "No version control string received"); + like( $res->output, '/^SSH CRITICAL - No version control string received/', "Output OK"); + close NC; + + + #RFC 4253 permits servers to send any number of data lines prior to sending the protocol version control string + open(NC, "{ echo 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'; sleep 0.5; + echo 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'; sleep 0.5; + echo 'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'; sleep 0.2; + echo 'DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD'; sleep 0.3; + printf 'EEEEEEEEEEEEEEEEEE'; sleep 0.2; + printf 'EEEEEEEEEEEEEEEEEE\n'; sleep 0.2; + echo 'Some\nPrepended\nData\nLines\n'; sleep 0.2; + echo 'SSH-2.0-nagiosplug.ssh.0.2';} | nc ${nc_flags}|"); + sleep 0.1; + $res = NPTest->testCmd( "./check_ssh -H localhost -p 5003" ); + cmp_ok( $res->return_code, '==', 0, "Got delayed SSH protocol version control string"); + like( $res->output, '/^SSH OK - nagiosplug.ssh.0.2 \(protocol 2.0\)/', "Output OK"); + close NC; +} diff --git a/plugins/t/check_swap.t b/plugins/t/check_swap.t index de9e0f0..1878038 100644 --- a/plugins/t/check_swap.t +++ b/plugins/t/check_swap.t @@ -5,7 +5,7 @@ # use strict; -use Test::More tests => 8; +use Test::More tests => 14; use NPTest; my $successOutput = '/^SWAP OK - [0-9]+\% free \([0-9]+MB out of [0-9]+MB\)/'; @@ -14,6 +14,10 @@ my $warnOutput = '/^SWAP WARNING - [0-9]+\% free \([0-9]+MB out of [0-9]+MB\) my $result; +$result = NPTest->testCmd( "./check_swap" ); # Always OK +cmp_ok( $result->return_code, "==", 0, "Always OK" ); +like( $result->output, $successOutput, "Right output" ); + $result = NPTest->testCmd( "./check_swap -w 1048576 -c 1048576" ); # 1 MB free cmp_ok( $result->return_code, "==", 0, "At least 1MB free" ); like( $result->output, $successOutput, "Right output" ); @@ -29,3 +33,11 @@ like( $result->output, $failureOutput, "Right output" ); $result = NPTest->testCmd( "./check_swap -w 100% -c 1%" ); # 100% (always warn) cmp_ok( $result->return_code, "==", 1, 'Get warning because not 100% free' ); like( $result->output, $warnOutput, "Right output" ); + +$result = NPTest->testCmd( "./check_swap -w 100%" ); # 100% (single threshold, always warn) +cmp_ok( $result->return_code, "==", 1, 'Get warning because not 100% free' ); +like( $result->output, $warnOutput, "Right output" ); + +$result = NPTest->testCmd( "./check_swap -c 100%" ); # 100% (single threshold, always critical) +cmp_ok( $result->return_code, "==", 2, 'Get critical because not 100% free' ); +like( $result->output, $failureOutput, "Right output" ); diff --git a/plugins/t/check_users.t b/plugins/t/check_users.t index 9ebc2fc..21c3e53 100644 --- a/plugins/t/check_users.t +++ b/plugins/t/check_users.t @@ -13,10 +13,11 @@ use Test; use NPTest; use vars qw($tests); -BEGIN {$tests = 8; plan tests => $tests} +BEGIN {$tests = 12; plan tests => $tests} my $successOutput = '/^USERS OK - [0-9]+ users currently logged in/'; my $failureOutput = '/^USERS CRITICAL - [0-9]+ users currently logged in/'; +my $wrongOptionOutput = '/Usage:/'; my $t; @@ -24,6 +25,8 @@ $t += checkCmd( "./check_users 1000 1000", 0, $successOutput ); $t += checkCmd( "./check_users 0 0", 2, $failureOutput ); $t += checkCmd( "./check_users -w 0:1000 -c 0:1000", 0, $successOutput ); $t += checkCmd( "./check_users -w 0:0 -c 0:0", 2, $failureOutput ); +$t += checkCmd( "./check_users -w 0:1000", 3, $wrongOptionOutput); +$t += checkCmd( "./check_users", 3, $wrongOptionOutput); exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); diff --git a/plugins/utils.c b/plugins/utils.c index 71c0bdd..77d6a6f 100644 --- a/plugins/utils.c +++ b/plugins/utils.c @@ -23,13 +23,15 @@ *****************************************************************************/ #include "common.h" -#include "utils.h" +#include "./utils.h" #include "utils_base.h" #include #include #include #include +#include + #include extern void print_usage (void); @@ -147,98 +149,107 @@ print_revision (const char *command_name, const char *revision) command_name, revision, PACKAGE, VERSION); } -int -is_numeric (char *number) -{ +bool is_numeric (char *number) { char tmp[1]; float x; if (!number) - return FALSE; + return false; else if (sscanf (number, "%f%c", &x, tmp) == 1) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_positive (char *number) -{ +bool is_positive (char *number) { if (is_numeric (number) && atof (number) > 0.0) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_negative (char *number) -{ +bool is_negative (char *number) { if (is_numeric (number) && atof (number) < 0.0) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_nonnegative (char *number) -{ +bool is_nonnegative (char *number) { if (is_numeric (number) && atof (number) >= 0.0) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_percentage (char *number) -{ +bool is_percentage (char *number) { int x; if (is_numeric (number) && (x = atof (number)) >= 0 && x <= 100) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_integer (char *number) -{ +bool is_percentage_expression (const char str[]) { + if (!str) { + return false; + } + + size_t len = strlen(str); + + if (str[len-1] != '%') { + return false; + } + + char *foo = calloc(sizeof(char), len + 1); + + if (!foo) { + die (STATE_UNKNOWN, _("calloc failed \n")); + } + + strcpy(foo, str); + foo[len-1] = '\0'; + + bool result = is_numeric(foo); + + free(foo); + + return result; +} + +bool is_integer (char *number) { long int n; if (!number || (strspn (number, "-0123456789 ") != strlen (number))) - return FALSE; + return false; n = strtol (number, NULL, 10); if (errno != ERANGE && n >= INT_MIN && n <= INT_MAX) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_intpos (char *number) -{ +bool is_intpos (char *number) { if (is_integer (number) && atoi (number) > 0) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_intneg (char *number) -{ +bool is_intneg (char *number) { if (is_integer (number) && atoi (number) < 0) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_intnonneg (char *number) -{ +bool is_intnonneg (char *number) { if (is_integer (number) && atoi (number) >= 0) - return TRUE; + return true; else - return FALSE; + return false; } /* @@ -246,19 +257,27 @@ is_intnonneg (char *number) * On success the number will be written to the _target_ address, if _target_ is not set * to NULL. */ -int is_int64(char *number, int64_t *target) { +bool is_int64(char *number, int64_t *target) { errno = 0; - uint64_t tmp = strtoll(number, NULL, 10); + char *endptr = { 0 }; + + int64_t tmp = strtoll(number, &endptr, 10); if (errno != 0) { + return false; + } + + if (*endptr == '\0') { return 0; } + if (tmp < INT64_MIN || tmp > INT64_MAX) { - return 0; + return false; } + if (target != NULL) { *target = tmp; } - return 1; + return true; } /* @@ -266,40 +285,45 @@ int is_int64(char *number, int64_t *target) { * On success the number will be written to the _target_ address, if _target_ is not set * to NULL. */ -int is_uint64(char *number, uint64_t *target) { +bool is_uint64(char *number, uint64_t *target) { errno = 0; - uint64_t tmp = strtoll(number, NULL, 10); + char *endptr = { 0 }; + unsigned long long tmp = strtoull(number, &endptr, 10); + if (errno != 0) { - return 0; + return false; } - if (tmp < 0 || tmp > UINT64_MAX) { - return 0; + + if (*endptr != '\0') { + return false; } + + if (tmp > UINT64_MAX) { + return false; + } + if (target != NULL) { - *target = tmp; + *target = (uint64_t)tmp; } - return 1; + + return true; } -int -is_intpercent (char *number) -{ +bool is_intpercent (char *number) { int i; if (is_integer (number) && (i = atoi (number)) >= 0 && i <= 100) - return TRUE; + return true; else - return FALSE; + return false; } -int -is_option (char *str) -{ +bool is_option (char *str) { if (!str) - return FALSE; + return false; else if (strspn (str, "-") == 1 || strspn (str, "-") == 2) - return TRUE; + return true; else - return FALSE; + return false; } #ifdef NEED_GETTIMEOFDAY diff --git a/plugins/utils.h b/plugins/utils.h index cb979ce..f939e33 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -16,6 +16,8 @@ suite of plugins. */ /* now some functions etc are being defined in ../lib/utils_base.c */ #include "utils_base.h" +#include + #ifdef NP_EXTRA_OPTS /* Include extra-opts functions if compiled in */ @@ -34,21 +36,22 @@ extern time_t start_time, end_time; /* Test input types */ -int is_integer (char *); -int is_intpos (char *); -int is_intneg (char *); -int is_intnonneg (char *); -int is_intpercent (char *); -int is_uint64(char *number, uint64_t *target); -int is_int64(char *number, int64_t *target); +bool is_integer (char *); +bool is_intpos (char *); +bool is_intneg (char *); +bool is_intnonneg (char *); +bool is_intpercent (char *); +bool is_uint64(char *number, uint64_t *target); +bool is_int64(char *number, int64_t *target); -int is_numeric (char *); -int is_positive (char *); -int is_negative (char *); -int is_nonnegative (char *); -int is_percentage (char *); +bool is_numeric (char *); +bool is_positive (char *); +bool is_negative (char *); +bool is_nonnegative (char *); +bool is_percentage (char *); +bool is_percentage_expression (const char[]); -int is_option (char *); +bool is_option (char *); /* Generalized timer that will do milliseconds if available */ #ifndef HAVE_STRUCT_TIMEVAL diff --git a/po/ChangeLog b/po/ChangeLog deleted file mode 100644 index 1074102..0000000 --- a/po/ChangeLog +++ /dev/null @@ -1,11 +0,0 @@ -2003-07-02 gettextize - - * Makefile.in.in: New file, from gettext-0.11.4. - * boldquot.sed: New file, from gettext-0.11.4. - * en@boldquot.header: New file, from gettext-0.11.4. - * en@quot.header: New file, from gettext-0.11.4. - * insert-header.sin: New file, from gettext-0.11.4. - * quot.sed: New file, from gettext-0.11.4. - * remove-potcdate.sin: New file, from gettext-0.11.4. - * Rules-quot: New file, from gettext-0.11.4. - diff --git a/po/LINGUAS b/po/LINGUAS deleted file mode 100644 index 1ce0c39..0000000 --- a/po/LINGUAS +++ /dev/null @@ -1,2 +0,0 @@ -fr de - diff --git a/po/Makefile.in.in b/po/Makefile.in.in deleted file mode 100644 index 82864b2..0000000 --- a/po/Makefile.in.in +++ /dev/null @@ -1,395 +0,0 @@ -# -*- buffer-read-only: t -*- vi: set ro: -# DO NOT EDIT! GENERATED AUTOMATICALLY! -# Makefile for PO directory in any package using GNU gettext. -# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper -# -# This file can be copied and used freely without restrictions. It can -# be used in projects which are not available under the GNU General Public -# License but which still want to provide support for the GNU gettext -# functionality. -# Please note that the actual code of GNU gettext is covered by the GNU -# General Public License and is *not* in the public domain. -# -# Origin: gettext-0.15 - -PACKAGE = @PACKAGE@ -VERSION = @VERSION@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ - -SHELL = /bin/sh -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -datarootdir = @datarootdir@ -datadir = @datadir@ -localedir = @localedir@ -gettextsrcdir = $(datadir)/gettext/po - -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -mkinstalldirs = $(SHELL) @install_sh@ -d -mkdir_p = @MKDIR_P@ - -GMSGFMT_ = @GMSGFMT@ -GMSGFMT_no = @GMSGFMT@ -GMSGFMT_yes = @GMSGFMT_015@ -GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) -MSGFMT_ = @MSGFMT@ -MSGFMT_no = @MSGFMT@ -MSGFMT_yes = @MSGFMT_015@ -MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) -XGETTEXT_ = @XGETTEXT@ -XGETTEXT_no = @XGETTEXT@ -XGETTEXT_yes = @XGETTEXT_015@ -XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) -MSGMERGE = msgmerge -MSGMERGE_UPDATE = @MSGMERGE@ --update -MSGINIT = msginit -MSGCONV = msgconv -MSGFILTER = msgfilter - -POFILES = @POFILES@ -GMOFILES = @GMOFILES@ -UPDATEPOFILES = @UPDATEPOFILES@ -DUMMYPOFILES = @DUMMYPOFILES@ -DISTFILES.common = Makefile.in.in remove-potcdate.sin \ -$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) -DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ -$(POFILES) $(GMOFILES) \ -$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) - -POTFILES = \ - -CATALOGS = @CATALOGS@ - -# Makevars gets inserted here. (Don't remove this line!) - -.SUFFIXES: -.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update - -.po.mo: - @echo "$(MSGFMT) -c -o $@ $<"; \ - $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ - -.po.gmo: - @lang=`echo $* | sed -e 's,.*/,,'`; \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo - -.sin.sed: - sed -e '/^#/d' $< > t-$@ - mv t-$@ $@ - - -all: all-@USE_NLS@ - -all-yes: stamp-po -all-no: - -# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no -# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because -# we don't want to bother translators with empty POT files). We assume that -# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. -# In this case, stamp-po is a nop (i.e. a phony target). - -# stamp-po is a timestamp denoting the last time at which the CATALOGS have -# been loosely updated. Its purpose is that when a developer or translator -# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, -# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent -# invocations of "make" will do nothing. This timestamp would not be necessary -# if updating the $(CATALOGS) would always touch them; however, the rule for -# $(POFILES) has been designed to not touch files that don't need to be -# changed. -stamp-po: $(srcdir)/$(DOMAIN).pot - test ! -f $(srcdir)/$(DOMAIN).pot || \ - test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) - @test ! -f $(srcdir)/$(DOMAIN).pot || { \ - echo "touch stamp-po" && \ - echo timestamp > stamp-poT && \ - mv stamp-poT stamp-po; \ - } - -# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', -# otherwise packages like GCC can not be built if only parts of the source -# have been downloaded. - -# This target rebuilds $(DOMAIN).pot; it is an expensive operation. -# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. -$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed - if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ - msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ - else \ - msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ - fi; \ - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ - --files-from=$(srcdir)/POTFILES.in \ - --copyright-holder='$(COPYRIGHT_HOLDER)' \ - --msgid-bugs-address="$$msgid_bugs_address" - test ! -f $(DOMAIN).po || { \ - if test -f $(srcdir)/$(DOMAIN).pot; then \ - sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ - sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ - if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ - rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ - else \ - rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ - mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ - fi; \ - else \ - mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ - fi; \ - } - -# This rule has no dependencies: we don't need to update $(DOMAIN).pot at -# every "make" invocation, only create it when it is missing. -# Only "make $(DOMAIN).pot-update" or "make dist" will force an update. -$(srcdir)/$(DOMAIN).pot: - $(MAKE) $(DOMAIN).pot-update - -# This target rebuilds a PO file if $(DOMAIN).pot has changed. -# Note that a PO file is not touched if it doesn't need to be changed. -$(POFILES): $(srcdir)/$(DOMAIN).pot - @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ - if test -f "$(srcdir)/$${lang}.po"; then \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ - else \ - $(MAKE) $${lang}.po-create; \ - fi - - -install: install-exec install-data -install-exec: -install-data: install-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ - for file in $(DISTFILES.common) Makevars.template; do \ - $(INSTALL_DATA) $(srcdir)/$$file \ - $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - for file in Makevars; do \ - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - else \ - : ; \ - fi -install-data-no: all -install-data-yes: all - $(mkdir_p) $(DESTDIR)$(datadir) - @catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - dir=$(localedir)/$$lang/LC_MESSAGES; \ - $(mkdir_p) $(DESTDIR)$$dir; \ - if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ - $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ - echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ - if test -n "$$lc"; then \ - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ - link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ - mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ - for file in *; do \ - if test -f $$file; then \ - ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ - fi; \ - done); \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - else \ - if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ - :; \ - else \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - fi; \ - fi; \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ - ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ - cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ - fi; \ - done; \ - done - -install-strip: install - -installdirs: installdirs-exec installdirs-data -installdirs-exec: -installdirs-data: installdirs-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ - else \ - : ; \ - fi -installdirs-data-no: -installdirs-data-yes: - $(mkdir_p) $(DESTDIR)$(datadir) - @catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - dir=$(localedir)/$$lang/LC_MESSAGES; \ - $(mkdir_p) $(DESTDIR)$$dir; \ - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ - if test -n "$$lc"; then \ - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ - link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ - mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ - for file in *; do \ - if test -f $$file; then \ - ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ - fi; \ - done); \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - else \ - if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ - :; \ - else \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - fi; \ - fi; \ - fi; \ - done; \ - done - -# Define this as empty until I found a useful application. -installcheck: - -uninstall: uninstall-exec uninstall-data -uninstall-exec: -uninstall-data: uninstall-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - for file in $(DISTFILES.common) Makevars.template; do \ - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - else \ - : ; \ - fi -uninstall-data-no: -uninstall-data-yes: - catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - done; \ - done - -check: all - -info dvi ps pdf html tags TAGS ctags CTAGS ID: - -mostlyclean: - rm -f remove-potcdate.sed - rm -f stamp-poT - rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po - rm -fr *.o - -clean: mostlyclean - -distclean: clean - rm -f Makefile Makefile.in POTFILES *.mo - -maintainer-clean: distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - rm -f stamp-po $(GMOFILES) - -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) -dist distdir: - $(MAKE) update-po - @$(MAKE) dist2 -# This is a separate target because 'update-po' must be executed before. -dist2: stamp-po $(DISTFILES) - dists="$(DISTFILES)"; \ - if test "$(PACKAGE)" = "gettext-tools"; then \ - dists="$$dists Makevars.template"; \ - fi; \ - if test -f $(srcdir)/$(DOMAIN).pot; then \ - dists="$$dists $(DOMAIN).pot stamp-po"; \ - fi; \ - if test -f $(srcdir)/ChangeLog; then \ - dists="$$dists ChangeLog"; \ - fi; \ - for i in 0 1 2 3 4 5 6 7 8 9; do \ - if test -f $(srcdir)/ChangeLog.$$i; then \ - dists="$$dists ChangeLog.$$i"; \ - fi; \ - done; \ - if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ - for file in $$dists; do \ - if test -f $$file; then \ - cp -p $$file $(distdir) || exit 1; \ - else \ - cp -p $(srcdir)/$$file $(distdir) || exit 1; \ - fi; \ - done - -update-po: Makefile - $(MAKE) $(DOMAIN).pot-update - test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) - $(MAKE) update-gmo - -# General rule for creating PO files. - -.nop.po-create: - @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ - echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ - exit 1 - -# General rule for updating PO files. - -.nop.po-update: - @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ - if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ - tmpdir=`pwd`; \ - echo "$$lang:"; \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ - cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ - if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ - rm -f $$tmpdir/$$lang.new.po; \ - else \ - if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ - :; \ - else \ - echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ - exit 1; \ - fi; \ - fi; \ - else \ - echo "msgmerge for $$lang.po failed!" 1>&2; \ - rm -f $$tmpdir/$$lang.new.po; \ - fi - -$(DUMMYPOFILES): - -update-gmo: Makefile $(GMOFILES) - @: - -Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ - cd $(top_builddir) \ - && $(SHELL) ./config.status $(subdir)/$@.in po-directories - -force: - -# Tell versions [3.59,3.63) of GNU make not to export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/po/Makevars b/po/Makevars deleted file mode 100644 index b35f5ad..0000000 --- a/po/Makevars +++ /dev/null @@ -1,29 +0,0 @@ -# Makefile variables for PO directory in any package using GNU gettext. - -# Usually the message domain is the same as the package name. -DOMAIN = $(PACKAGE) - -# These two variables depend on the location of this directory. -subdir = po -top_builddir = .. - -# These options get passed to xgettext. -XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --flag=error:3:c-format --flag=error_at_line:5:c-format --flag=asprintf:2:c-format --flag=vasprintf:2:c-format --no-location - -# This is the copyright holder that gets inserted into the header of the -# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding -# package. (Note that the msgstr strings, extracted from the package's -# sources, belong to the copyright holder of the package.) Translators are -# expected to transfer the copyright for their translations to this person -# or entity, or to disclaim their copyright. The empty string stands for -# the public domain; in this case the translators are expected to disclaim -# their copyright. -COPYRIGHT_HOLDER = Monitoring Plugins Development Team - -# This is the list of locale categories, beyond LC_MESSAGES, for which the -# message catalogs shall be used. It is usually empty. -EXTRA_LOCALE_CATEGORIES = - -# Email address were to send bug report for the .po translation files -PACKAGE_BUGREPORT = devel@monitoring-plugins.org - diff --git a/po/POTFILES.in b/po/POTFILES.in deleted file mode 100644 index 6e491d7..0000000 --- a/po/POTFILES.in +++ /dev/null @@ -1,44 +0,0 @@ -plugins/check_by_ssh.c -plugins/check_cluster.c -plugins/check_dig.c -plugins/check_disk.c -plugins/check_dns.c -plugins/check_dummy.c -plugins/check_fping.c -plugins/check_game.c -plugins/check_hpjd.c -plugins/check_http.c -plugins/check_ldap.c -plugins/check_load.c -plugins/check_mrtg.c -plugins/check_mrtgtraf.c -plugins/check_mysql.c -plugins/check_nagios.c -plugins/check_nt.c -plugins/check_ntp.c -plugins/check_ntp_peer.c -plugins/check_ntp_time.c -plugins/check_nwstat.c -plugins/check_overcr.c -plugins/check_pgsql.c -plugins/check_ping.c -plugins/check_procs.c -plugins/check_radius.c -plugins/check_real.c -plugins/check_smtp.c -plugins/check_snmp.c -plugins/check_ssh.c -plugins/check_swap.c -plugins/check_tcp.c -plugins/check_time.c -plugins/check_ups.c -plugins/check_users.c -plugins/check_ide_smart.c -plugins/negate.c -plugins/netutils.c -plugins/popen.c -plugins/urlize.c -plugins/utils.c -plugins/utils.h -plugins-root/check_dhcp.c -plugins-root/check_icmp.c diff --git a/po/de.gmo b/po/de.gmo deleted file mode 100644 index 8617038..0000000 Binary files a/po/de.gmo and /dev/null differ diff --git a/po/de.po b/po/de.po deleted file mode 100644 index 1b666f4..0000000 --- a/po/de.po +++ /dev/null @@ -1,5447 +0,0 @@ -# translation of de.po to -# German Language Translation File. -# This file is distributed under the same license as the nagios-plugins package. -# Copyright (C) 2023 Nagios Plugin Development Group. -# Karl DeBisschop , 2003, 2004. -# -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" -"POT-Creation-Date: 2023-10-01 15:10+0200\n" -"PO-Revision-Date: 2004-12-23 17:46+0100\n" -"Last-Translator: \n" -"Language-Team: Monitoring Plugin Development Team \n" -"Language: de\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Generator: KBabel 1.3.1\n" - -msgid "Could not parse arguments" -msgstr "Argumente konnten nicht ausgewertet werden" - -msgid "Cannot catch SIGALRM" -msgstr "Konnte SIGALRM nicht erhalten" - -#, c-format -msgid "SSH connection failed: %s\n" -msgstr "" - -#, c-format -msgid "Remote command execution failed: %s\n" -msgstr "" - -#, c-format -msgid "%s - check_by_ssh: Remote command '%s' returned status %d\n" -msgstr "" - -#, c-format -msgid "SSH WARNING: could not open %s\n" -msgstr "SSH WARNING: Konnte %s nicht öffnen\n" - -#, c-format -msgid "%s: Error parsing output\n" -msgstr "" - -msgid "Timeout interval must be a positive integer" -msgstr "Timeout interval muss ein positiver Integer sein" - -msgid "Port must be a positive integer" -msgstr "Port muss ein positiver Integer sein" - -#, fuzzy -msgid "skip-stdout argument must be an integer" -msgstr "skip-stdout argument muss ein Integer sein" - -#, fuzzy -msgid "skip-stderr argument must be an integer" -msgstr "skip-stderr argument muss ein Integer sein" - -#, c-format -msgid "%s: You must provide a host name\n" -msgstr "%s: Hostname muss angegeben werden\n" - -msgid "No remotecmd" -msgstr "Kein remotecm" - -#, c-format -msgid "%s: Argument limit of %d exceeded\n" -msgstr "" - -#, fuzzy -msgid "Can not (re)allocate 'commargv' buffer\n" -msgstr "Konnte·url·nicht·zuweisen\n" - -#, c-format -msgid "" -"%s: In passive mode, you must provide a service name for each command.\n" -msgstr "" -"%s: Im passive mode muss ein Servicename für jeden Befehl angegeben werden.\n" - -#, fuzzy, c-format -msgid "" -"%s: In passive mode, you must provide the host short name from the " -"monitoring configs.\n" -msgstr "" -"%s: Im passive mode muss der \"host short name\" aus der Nagios " -"Konfiguration angegeben werden\n" - -#, fuzzy, c-format -msgid "This plugin uses SSH to execute commands on a remote host" -msgstr "" -"Dieses Plugin nutzt SSH um Befehle auf dem entfernten Rechner auszuführen\n" -"\n" - -msgid "tell ssh to use Protocol 1 [optional]" -msgstr "" - -msgid "tell ssh to use Protocol 2 [optional]" -msgstr "" - -msgid "Ignore all or (if specified) first n lines on STDOUT [optional]" -msgstr "" - -msgid "Ignore all or (if specified) first n lines on STDERR [optional]" -msgstr "" - -msgid "Exit with an warning, if there is an output on STDERR" -msgstr "" - -msgid "" -"tells ssh to fork rather than create a tty [optional]. This will always " -"return OK if ssh is executed" -msgstr "" - -msgid "command to execute on the remote machine" -msgstr "" - -msgid "SSH user name on remote host [optional]" -msgstr "" - -msgid "identity of an authorized key [optional]" -msgstr "" - -msgid "external command file for monitoring [optional]" -msgstr "" - -msgid "list of monitoring service names, separated by ':' [optional]" -msgstr "" - -msgid "short name of host in the monitoring configuration [optional]" -msgstr "" - -msgid "Call ssh with '-o OPTION' (may be used multiple times) [optional]" -msgstr "" - -msgid "Tell ssh to use this configfile [optional]" -msgstr "" - -msgid "Tell ssh to suppress warning and diagnostic messages [optional]" -msgstr "" - -msgid "Make connection problems return UNKNOWN instead of CRITICAL" -msgstr "" - -msgid "The most common mode of use is to refer to a local identity file with" -msgstr "" - -msgid "the '-i' option. In this mode, the identity pair should have a null" -msgstr "" - -msgid "passphrase and the public key should be listed in the authorized_keys" -msgstr "" - -msgid "file of the remote host. Usually the key will be restricted to running" -msgstr "" - -msgid "only one command on the remote server. If the remote SSH server tracks" -msgstr "" - -msgid "invocation arguments, the one remote program may be an agent that can" -msgstr "" - -msgid "execute additional commands as proxy" -msgstr "" - -msgid "To use passive mode, provide multiple '-C' options, and provide" -msgstr "" - -msgid "" -"all of -O, -s, and -n options (servicelist order must match '-C'options)" -msgstr "" - -msgid "Examples:" -msgstr "" - -msgid "Usage:" -msgstr "" - -#, c-format -msgid "Host/Service Cluster Plugin for Monitoring" -msgstr "" - -msgid "Options:" -msgstr "" - -msgid "Check service cluster status" -msgstr "" - -msgid "Check host cluster status" -msgstr "" - -msgid "Optional prepended text output (i.e. \"Host cluster\")" -msgstr "" - -msgid "Specifies the range of hosts or services in cluster that must be in a" -msgstr "" - -msgid "non-OK state in order to return a WARNING status level" -msgstr "" - -msgid "non-OK state in order to return a CRITICAL status level" -msgstr "" - -msgid "The status codes of the hosts or services in the cluster, separated by" -msgstr "" - -msgid "commas" -msgstr "" - -msgid "Notes:" -msgstr "" - -msgid "" -"Will alert critical if there are 3 or more service data points in a non-OK" -msgstr "" - -msgid "state." -msgstr "" - -#, c-format -msgid "Looking for: '%s'\n" -msgstr "" - -msgid "dig returned an error status" -msgstr "dig hat einen Fehler zurückgegeben" - -msgid "Server not found in ANSWER SECTION" -msgstr "Server nicht gefunden in ANSWER SECTION" - -msgid "No ANSWER SECTION found" -msgstr "Keine ANSWER SECTION gefunden" - -#, fuzzy -msgid "Probably a non-existent host/domain" -msgstr "nicht existierender Host/Domain" - -#, fuzzy, c-format -msgid "Port must be a positive integer - %s" -msgstr "Port muss ein positiver Integer sein - %s" - -#, fuzzy, c-format -msgid "Warning interval must be a positive integer - %s" -msgstr "Warning interval muss ein positiver Integer sein - %s" - -#, fuzzy, c-format -msgid "Critical interval must be a positive integer - %s" -msgstr "Critical interval muss ein positiver Integer sein - %s" - -#, fuzzy, c-format -msgid "Timeout interval must be a positive integer - %s" -msgstr "Timeout interval muss ein positiver Integer sein - %s" - -#, fuzzy, c-format -msgid "This plugin tests the DNS service on the specified host using dig" -msgstr "Testet den DNS Dienst auf dem angegebenen Host mit dig" - -msgid "Force dig to only use IPv4 query transport" -msgstr "" - -msgid "Force dig to only use IPv6 query transport" -msgstr "" - -#, fuzzy -msgid "Machine name to lookup" -msgstr "zu prüfender Hostname" - -#, fuzzy -msgid "Record type to lookup (default: A)" -msgstr "abzufragender Datensatztyp (Default: A)" - -#, fuzzy -msgid "" -"An address expected to be in the answer section. If not set, uses whatever" -msgstr "" -"Adresse die in der ANSWER SECTION erwartet wird.wenn nicht gesetzt, " -"ubernommen aus -l" - -msgid "was in -l" -msgstr "" - -msgid "Pass STRING as argument(s) to dig" -msgstr "" - -#, fuzzy, c-format -msgid "DISK %s: %s not found\n" -msgstr "%s [%s nicht gefunden]" - -#, c-format -msgid "CRITICAL" -msgstr "CRITICAL" - -#, c-format -msgid "unit type %s not known\n" -msgstr "unbekannter unit type: %s\n" - -#, c-format -msgid "failed allocating storage for '%s'\n" -msgstr "konnte keinen Speicher für '%s' reservieren\n" - -#, c-format -msgid "UNKNOWN" -msgstr "UNKNOWN" - -msgid "Must set a threshold value before using -p\n" -msgstr "" - -msgid "Could not compile regular expression" -msgstr "" - -msgid "Must set -E before selecting paths\n" -msgstr "" - -msgid "Must set group value before selecting paths\n" -msgstr "" - -msgid "" -"Paths need to be selected before using -i/-I. Use -A to select all paths " -"explicitly" -msgstr "" - -msgid "" -"Must set a threshold value before using -r/-R/-A (--ereg-path/--eregi-path/--" -"all)\n" -msgstr "" - -msgid "Regular expression did not match any path or disk" -msgstr "" - -#, fuzzy -msgid "Unknown argument" -msgstr "Unbekanntes Argument" - -#, c-format -msgid " for %s\n" -msgstr "" - -#, fuzzy -msgid "" -"This plugin checks the amount of used disk space on a mounted file system" -msgstr "" -"Dieses Plugin prüft den freien Speicher auf einem gemounteten Filesystem" - -#, fuzzy -msgid "" -"and generates an alert if free space is less than one of the threshold values" -msgstr "" -"und erzeugt einen Alarm wenn einer der angegebenen Schwellwerte " -"unterschritten wird." - -msgid "Exit with WARNING status if less than INTEGER units of disk are free" -msgstr "" - -msgid "Exit with WARNING status if less than PERCENT of disk space is free" -msgstr "" - -msgid "Exit with CRITICAL status if less than INTEGER units of disk are free" -msgstr "" - -msgid "Exit with CRITICAL status if less than PERCENT of disk space is free" -msgstr "" - -msgid "Exit with WARNING status if less than PERCENT of inode space is free" -msgstr "" - -msgid "Exit with CRITICAL status if less than PERCENT of inode space is free" -msgstr "" - -msgid "" -"Mount point or block device as emitted by the mount(8) command (may be " -"repeated)" -msgstr "" - -msgid "Ignore device (only works if -p unspecified)" -msgstr "" - -msgid "Clear thresholds" -msgstr "" - -msgid "For paths or partitions specified with -p, only check for exact paths" -msgstr "" - -msgid "Display only devices/mountpoints with errors" -msgstr "" - -msgid "Don't account root-reserved blocks into freespace in perfdata" -msgstr "" - -msgid "Display inode usage in perfdata" -msgstr "" - -msgid "" -"Group paths. Thresholds apply to (free-)space of all partitions together" -msgstr "" - -msgid "Same as '--units kB'" -msgstr "" - -msgid "Only check local filesystems" -msgstr "" - -msgid "" -"Only check local filesystems against thresholds. Yet call stat on remote " -"filesystems" -msgstr "" - -msgid "to test if they are accessible (e.g. to detect Stale NFS Handles)" -msgstr "" - -msgid "Display the (block) device instead of the mount point" -msgstr "" - -msgid "Same as '--units MB'" -msgstr "" - -msgid "Explicitly select all paths. This is equivalent to -R '.*'" -msgstr "" - -msgid "" -"Case insensitive regular expression for path/partition (may be repeated)" -msgstr "" - -msgid "Regular expression for path or partition (may be repeated)" -msgstr "" - -msgid "" -"Regular expression to ignore selected path/partition (case insensitive) (may " -"be repeated)" -msgstr "" - -msgid "" -"Regular expression to ignore selected path or partition (may be repeated)" -msgstr "" - -msgid "" -"Return OK if no filesystem matches, filesystem does not exist or is " -"inaccessible." -msgstr "" - -msgid "(Provide this option before -p / -r / --ereg-path if used)" -msgstr "" - -msgid "Choose bytes, kB, MB, GB, TB (default: MB)" -msgstr "" - -msgid "" -"Ignore all filesystems of types matching given regex(7) (may be repeated)" -msgstr "" - -msgid "" -"Check only filesystems where the type matches this given regex(7) (may be " -"repeated)" -msgstr "" - -msgid "General usage hints:" -msgstr "Allgemeine Nutzungshinweise:" - -msgid "" -"- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the " -"same as" -msgstr "" - -msgid "\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\"." -msgstr "" - -msgid "" -"- The syntax is broadly: \"{thresholds a} {paths a} -C {thresholds b} " -"{thresholds b} ...\"" -msgstr "" - -msgid "Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB" -msgstr "" - -msgid "" -"Checks all filesystems not matching -r at 100M and 50M. The fs matching the -" -"r regex" -msgstr "" - -msgid "" -"are grouped which means the freespace thresholds are applied to all disks " -"together" -msgstr "" - -msgid "" -"Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use " -"100M/50M" -msgstr "" - -#, c-format -msgid "%s %s: %s\n" -msgstr "" - -msgid "is not accessible" -msgstr "" - -#, fuzzy -msgid "nslookup returned an error status" -msgstr "nslookup hat einen Fehler zurückgegeben" - -msgid "Warning plugin error" -msgstr "Warnung Plugin Fehler" - -#, fuzzy, c-format -msgid "DNS CRITICAL - '%s' returned empty server string\n" -msgstr "DNS CRITICAL - '%s' hat einen leeren Hostnamen zurückgegeben\n" - -#, fuzzy, c-format -msgid "DNS CRITICAL - No response from DNS %s\n" -msgstr "Keine Antwort von DNS %s\n" - -#, c-format -msgid "DNS CRITICAL - '%s' returned empty host name string\n" -msgstr "DNS CRITICAL - '%s' hat einen leeren Hostnamen zurückgegeben\n" - -msgid "Non-authoritative answer:" -msgstr "" - -#, fuzzy, c-format -msgid "Domain '%s' was not found by the server\n" -msgstr "Domäne %s wurde vom Server nicht gefunden\n" - -#, fuzzy, c-format -msgid "DNS CRITICAL - '%s' msg parsing exited with no address\n" -msgstr "DNS CRITICAL - '%s' Ausgabeverarbeitung hat keine Adresse ergeben\n" - -#, fuzzy, c-format -msgid "expected '%s' but got '%s'" -msgstr "Erwartet: %s aber: %s erhalten" - -#, fuzzy, c-format -msgid "Domain '%s' was found by the server: '%s'\n" -msgstr "Domäne %s wurde vom Server nicht gefunden\n" - -#, c-format -msgid "server %s is not authoritative for %s" -msgstr "Server %s ist nicht autoritativ für %s" - -#, c-format -msgid "OK" -msgstr "OK" - -#, c-format -msgid "WARNING" -msgstr "WARNING" - -#, fuzzy, c-format -msgid "%.3f second response time" -msgid_plural "%.3f seconds response time" -msgstr[0] "%.3f Sekunden Antwortzeit " -msgstr[1] "%.3f Sekunden Antwortzeit " - -#, fuzzy, c-format -msgid ". %s returns %s" -msgstr "%s hat %s zurückgegeben" - -#, c-format -msgid "DNS WARNING - %s\n" -msgstr "DNS WARNING - %s\n" - -msgid " Probably a non-existent host/domain" -msgstr "nicht existierender Host/Domain" - -#, c-format -msgid "DNS CRITICAL - %s\n" -msgstr "DNS CRITICAL - %s\n" - -#, fuzzy, c-format -msgid "DNS UNKNOWN - %s\n" -msgstr "DNS UNKNOWN - %s\n" - -msgid "Note: nslookup is deprecated and may be removed from future releases." -msgstr "" - -msgid "Consider using the `dig' or `host' programs instead. Run nslookup with" -msgstr "" - -msgid "the `-sil[ent]' option to prevent this message from appearing." -msgstr "" - -#, c-format -msgid "No response from DNS %s\n" -msgstr "Keine Antwort von DNS %s\n" - -#, c-format -msgid "DNS %s has no records\n" -msgstr "Nameserver %s hat keine Datensätze\n" - -#, c-format -msgid "Connection to DNS %s was refused\n" -msgstr "Verbindung zum Nameserver %s wurde verweigert\n" - -#, c-format -msgid "Query was refused by DNS server at %s\n" -msgstr "" - -#, c-format -msgid "No information returned by DNS server at %s\n" -msgstr "" - -msgid "Network is unreachable\n" -msgstr "Netzwerk nicht erreichbar\n" - -#, c-format -msgid "DNS failure for %s\n" -msgstr "DNS Fehler für %s\n" - -msgid "Input buffer overflow\n" -msgstr "Eingabe-Pufferüberlauf\n" - -msgid "" -"This plugin uses the nslookup program to obtain the IP address for the given " -"host/domain query." -msgstr "" - -msgid "An optional DNS server to use may be specified." -msgstr "" - -msgid "" -"If no DNS server is specified, the default server(s) specified in /etc/" -"resolv.conf will be used." -msgstr "" - -msgid "The name or address you want to query" -msgstr "" - -msgid "Optional DNS server you want to use for the lookup" -msgstr "" - -msgid "" -"Optional IP-ADDRESS/CIDR you expect the DNS server to return. HOST must end" -msgstr "" - -msgid "" -"with a dot (.). This option can be repeated multiple times (Returns OK if any" -msgstr "" - -msgid "value matches)." -msgstr "" - -msgid "" -"Expect the DNS server to return NXDOMAIN (i.e. the domain was not found)" -msgstr "" - -msgid "Cannot be used together with -a" -msgstr "" - -msgid "Optionally expect the DNS server to be authoritative for the lookup" -msgstr "" - -msgid "Return warning if elapsed time exceeds value. Default off" -msgstr "" - -msgid "Return critical if elapsed time exceeds value. Default off" -msgstr "" - -msgid "" -"Return critical if the list of expected addresses does not match all " -"addresses" -msgstr "" - -msgid "returned. Default off" -msgstr "" - -msgid "Arguments to check_dummy must be an integer" -msgstr "Argument für check_dummy muss ein Integer sein" - -#, c-format -msgid "Status %d is not a supported error state\n" -msgstr "Status %d ist kein bekannter Fehlerstatus\n" - -msgid "" -"This plugin will simply return the state corresponding to the numeric value" -msgstr "" - -msgid "of the argument with optional text" -msgstr "" - -#, c-format -msgid "Could not open pipe: %s\n" -msgstr "Pipe: %s konnte nicht geöffnet werden\n" - -#, c-format -msgid "Could not open stderr for %s\n" -msgstr "Konnte stderr nicht öffnen für: %s\n" - -#, fuzzy -msgid "FPING UNKNOWN - IP address not found\n" -msgstr "FPING UNKNOWN - %s nicht gefunden\n" - -msgid "FPING UNKNOWN - invalid commandline argument\n" -msgstr "" - -#, fuzzy -msgid "FPING UNKNOWN - failed system call\n" -msgstr "FPING UNKNOWN - %s nicht gefunden\n" - -#, fuzzy, c-format -msgid "FPING %s - %s (rta=%f ms)|%s\n" -msgstr "FPING %s - %s (verloren=%.0f%% )|%s\n" - -#, c-format -msgid "FPING UNKNOWN - %s not found\n" -msgstr "FPING UNKNOWN - %s nicht gefunden\n" - -#, c-format -msgid "FPING CRITICAL - %s is unreachable\n" -msgstr "FPING CRITICAL - %s ist nicht erreichbar\n" - -#, fuzzy, c-format -msgid "FPING UNKNOWN - %s parameter error\n" -msgstr "FPING UNKNOWN - %s nicht gefunden\n" - -#, c-format -msgid "FPING CRITICAL - %s is down\n" -msgstr "FPING CRITICAL - %s ist down\n" - -#, c-format -msgid "FPING %s - %s (loss=%.0f%%, rta=%f ms)|%s %s\n" -msgstr "FPING %s - %s (verloren=%.0f%%, rta=%f ms)|%s %s\n" - -#, c-format -msgid "FPING %s - %s (loss=%.0f%% )|%s\n" -msgstr "FPING %s - %s (verloren=%.0f%% )|%s\n" - -msgid "Invalid hostname/address" -msgstr "Ungültige(r) Hostname/Adresse" - -msgid "IPv6 support not available\n" -msgstr "" - -msgid "Packet size must be a positive integer" -msgstr "Paketgröße muss ein positiver Integer sein" - -msgid "Packet count must be a positive integer" -msgstr "Paketanzahl muss ein positiver Integer sein" - -#, fuzzy -msgid "Target timeout must be a positive integer" -msgstr "Warnung time muss ein positiver Integer sein" - -#, fuzzy -msgid "Interval must be a positive integer" -msgstr "Timeout interval muss ein positiver Integer sein" - -msgid "Hostname was not supplied" -msgstr "" - -#, c-format -msgid "%s: Only one threshold may be packet loss (%s)\n" -msgstr "%s: Nur ein Wert darf für packet loss angegeben werden (%s)\n" - -#, c-format -msgid "%s: Only one threshold must be packet loss (%s)\n" -msgstr "%s: Nur ein Wert darf für packet loss angegeben werden (%s)\n" - -msgid "" -"This plugin will use the fping command to ping the specified host for a fast " -"check" -msgstr "" - -msgid "Note that it is necessary to set the suid flag on fping." -msgstr "" - -msgid "" -"name or IP Address of host to ping (IP Address bypasses name lookup, " -"reducing system load)" -msgstr "" - -#, fuzzy -msgid "warning threshold pair" -msgstr "Warning threshold Integer sein" - -#, fuzzy -msgid "critical threshold pair" -msgstr "Critical threshold muss ein Integer sein" - -msgid "Return OK after first successful reply" -msgstr "" - -msgid "size of ICMP packet" -msgstr "" - -msgid "number of ICMP packets to send" -msgstr "" - -msgid "Target timeout (ms)" -msgstr "" - -msgid "Interval (ms) between sending packets" -msgstr "" - -msgid "name or IP Address of sourceip" -msgstr "" - -msgid "source interface name" -msgstr "" - -#, c-format -msgid "" -"THRESHOLD is ,%% where is the round trip average travel time " -"(ms)" -msgstr "" - -msgid "" -"which triggers a WARNING or CRITICAL state, and is the percentage of" -msgstr "" - -msgid "packet loss to trigger an alarm state." -msgstr "" - -msgid "IPv4 is used by default. Specify -6 to use IPv6." -msgstr "" - -#, c-format -msgid "CRITICAL - Host type parameter incorrect!\n" -msgstr "CRITICAL - Host type parameter unkorrekt!\n" - -#, fuzzy, c-format -msgid "CRITICAL - Host not found\n" -msgstr "CRITICAL - Text nicht gefunden%s|%s %s\n" - -#, fuzzy, c-format -msgid "CRITICAL - Game server down or unavailable\n" -msgstr "CRITICAL - Serverdatum \"%100s\" konnte nicht verarbeitet werden" - -#, fuzzy, c-format -msgid "CRITICAL - Game server timeout\n" -msgstr "CRITICAL - Konnte kein Serverzertifikat erhalten\n" - -#, c-format -msgid "This plugin tests game server connections with the specified host." -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -msgid "Optional port of which to connect" -msgstr "" - -msgid "Field number in raw qstat output that contains game name" -msgstr "" - -msgid "Field number in raw qstat output that contains map name" -msgstr "" - -msgid "Field number in raw qstat output that contains ping time" -msgstr "" - -#, fuzzy -msgid "" -"This plugin uses the 'qstat' command, the popular game server status query " -"tool." -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -msgid "" -"If you don't have the package installed, you will need to download it from" -msgstr "" - -msgid "https://github.com/multiplay/qstat before you can use this plugin." -msgstr "" - -msgid "Paper Jam" -msgstr "Papierstau" - -msgid "Out of Paper" -msgstr "Kein Papier" - -msgid "Printer Offline" -msgstr "Drucker ausgeschaltet" - -msgid "Peripheral Error" -msgstr "Peripheriefehler" - -msgid "Intervention Required" -msgstr "Eingriff benötigt" - -msgid "Toner Low" -msgstr "Wenig Toner" - -msgid "Insufficient Memory" -msgstr "Nicht genügend Speicher" - -msgid "A Door is Open" -msgstr "Eine Abdeckung ist offen" - -msgid "Output Tray is Full" -msgstr "Ausgabeschacht ist voll" - -msgid "Data too Slow for Engine" -msgstr "" - -msgid "Unknown Paper Error" -msgstr "Papierfehler" - -#, c-format -msgid "Printer ok - (%s)\n" -msgstr "Printer ok - (%s)\n" - -#, fuzzy -msgid "Port must be a positive short integer" -msgstr "Port muss ein positiver Integer sein" - -#, fuzzy -msgid "This plugin tests the STATUS of an HP printer with a JetDirect card." -msgstr "" -"Dieses Plugin testet den STATUS eines HP Druckers mit einer JetDirect " -"Karte.\n" -"Net-snmp muss auf dem ausführenden Computer installiert sein.\n" -"\n" - -#, fuzzy -msgid "Net-snmp must be installed on the computer running the plugin." -msgstr "" -"Dieses Plugin testet den STATUS eines HP Druckers mit einer JetDirect " -"Karte.\n" -"Net-snmp muss auf dem ausführenden Computer installiert sein.\n" -"\n" - -msgid "The SNMP community name " -msgstr "" - -#, c-format -msgid "(default=%s)" -msgstr "" - -msgid "Specify the port to check " -msgstr "" - -msgid "Disable paper check " -msgstr "" - -msgid "file does not exist or is not readable" -msgstr "" - -msgid "Invalid certificate expiration period" -msgstr "Ungültiger Zertifikatsablauftermin" - -msgid "" -"Invalid option - Valid SSL/TLS versions: 2, 3, 1, 1.1, 1.2 (with optional " -"'+' suffix)" -msgstr "" - -#, fuzzy -msgid "Invalid option - SSL is not available" -msgstr "Ungültige Option - SSL ist nicht verfügbar\n" - -msgid "Invalid max_redirs count" -msgstr "" - -msgid "Invalid onredirect option" -msgstr "" - -#, c-format -msgid "option f:%d \n" -msgstr "Option f:%d \n" - -msgid "Invalid port number" -msgstr "Ungültige Portnummer" - -#, c-format -msgid "Could Not Compile Regular Expression: %s" -msgstr "" - -msgid "IPv6 support not available" -msgstr "IPv6 Unterstützung nicht vorhanden" - -msgid "You must specify a server address or host name" -msgstr "Hostname oder Serveradresse muss angegeben werden" - -msgid "" -"If you use a client certificate you must also specify a private key file" -msgstr "" - -#, fuzzy -msgid "HTTP UNKNOWN - Memory allocation error\n" -msgstr "HTTP UNKNOWN - Konnte·url·nicht·zuweisen\n" - -#, fuzzy, c-format -msgid "%sServer date unknown, " -msgstr "HTTP UNKNOWN - Serverdatum unbekannt\n" - -#, fuzzy, c-format -msgid "%sDocument modification date unknown, " -msgstr "HTTP CRITICAL - Datum der letzten Änderung unbekannt\n" - -#, fuzzy, c-format -msgid "%sServer date \"%100s\" unparsable, " -msgstr "HTTP CRITICAL - Serverdatum \"%100s\" konnte nicht verarbeitet werden" - -#, fuzzy, c-format -msgid "%sDocument date \"%100s\" unparsable, " -msgstr "" -"HTTP CRITICAL - Dokumentendatum \"%100s\" konnte nicht verarbeitet werden" - -#, fuzzy, c-format -msgid "%sDocument is %d seconds in the future, " -msgstr "HTTP CRITICAL - Dokumentendatum ist %d Sekunden in der Zukunft\n" - -#, fuzzy, c-format -msgid "%sLast modified %.1f days ago, " -msgstr "HTTP CRITICAL - Letzte Änderung vor %.1f Tagen\n" - -#, fuzzy, c-format -msgid "%sLast modified %d:%02d:%02d ago, " -msgstr "HTTP CRITICAL - Letzte Änderung vor %d:%02d:%02d \n" - -msgid "HTTP CRITICAL - Unable to open TCP socket\n" -msgstr "HTTP CRITICAL - Konnte TCP socket nicht öffnen\n" - -#, fuzzy -msgid "HTTP UNKNOWN - Could not allocate memory for full_page\n" -msgstr "HTTP UNKNOWN - Konnte·url·nicht·zuweisen\n" - -msgid "HTTP CRITICAL - Error on receive\n" -msgstr "HTTP CRITICAL - Fehler beim Empfangen\n" - -#, fuzzy -msgid "HTTP CRITICAL - No data received from host\n" -msgstr "HTTP CRITICAL - Keine Daten empfangen\n" - -#, fuzzy, c-format -msgid "Invalid HTTP response received from host: %s\n" -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -#, fuzzy, c-format -msgid "Invalid HTTP response received from host on port %d: %s\n" -msgstr "Ungültige HTTP Antwort von Host erhalten auf Port %d\n" - -#, c-format -msgid "" -"%s\n" -"%s" -msgstr "" - -#, fuzzy, c-format -msgid "Status line output matched \"%s\" - " -msgstr "HTTP OK: Statusausgabe passt auf \"%s\"\n" - -#, c-format -msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" -msgstr "HTTP CRITICAL: Ungültige Statusmeldung (%s)\n" - -#, c-format -msgid "HTTP CRITICAL: Invalid Status (%s)\n" -msgstr "HTTP CRITICAL: Ungültiger Status (%s)\n" - -#, c-format -msgid "%s - " -msgstr "" - -#, fuzzy, c-format -msgid "%sheader '%s' not found on '%s://%s:%d%s', " -msgstr "CRITICAL - Muster nicht gefunden%s|%s %s\n" - -#, fuzzy, c-format -msgid "%sstring '%s' not found on '%s://%s:%d%s', " -msgstr "CRITICAL - Muster nicht gefunden%s|%s %s\n" - -#, fuzzy, c-format -msgid "%spattern not found, " -msgstr "CRITICAL - Muster nicht gefunden%s|%s %s\n" - -#, fuzzy, c-format -msgid "%spattern found, " -msgstr "CRITICAL - Muster nicht gefunden%s|%s %s\n" - -#, fuzzy, c-format -msgid "%sExecute Error: %s, " -msgstr "HTTP CRITICAL - Fehler: %s\n" - -#, fuzzy, c-format -msgid "%spage size %d too large, " -msgstr "HTTP WARNING: Seitengröße %d zu klein%s|%s\n" - -#, fuzzy, c-format -msgid "%spage size %d too small, " -msgstr "HTTP WARNING: Seitengröße %d zu klein%s|%s\n" - -#, fuzzy, c-format -msgid "%s - %d bytes in %.3f second response time %s|%s %s %s %s %s %s %s" -msgstr " - %s - %.3f Sekunden Antwortzeit %s%s|%s %s\n" - -#, fuzzy, c-format -msgid "%s - %d bytes in %.3f second response time %s|%s %s" -msgstr " - %s - %.3f Sekunden Antwortzeit %s%s|%s %s\n" - -msgid "HTTP UNKNOWN - Could not allocate addr\n" -msgstr "HTTP UNKNOWN - Konnte addr nicht zuweisen\n" - -#, fuzzy -msgid "HTTP UNKNOWN - Could not allocate URL\n" -msgstr "HTTP UNKNOWN - Konnte·url·nicht·zuweisen\n" - -#, c-format -msgid "HTTP UNKNOWN - Could not find redirect location - %s%s\n" -msgstr "" - -#, fuzzy, c-format -msgid "HTTP UNKNOWN - Empty redirect location%s\n" -msgstr "HTTP UNKNOWN - Serverdatum unbekannt\n" - -#, c-format -msgid "HTTP UNKNOWN - Could not parse redirect location - %s%s\n" -msgstr "" - -#, fuzzy, c-format -msgid "HTTP WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" -msgstr "HTTP WARNING - Umleitung verursacht eine Schleife - %s://%s:%d%s%s\n" - -#, fuzzy, c-format -msgid "HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n" -msgstr "HTTP WARNING - Umleitung verursacht eine Schleife - %s://%s:%d%s%s\n" - -#, fuzzy, c-format -msgid "HTTP UNKNOWN - Redirection to port above %d - %s://%s:%d%s%s\n" -msgstr "HTTP WARNING - Umleitung verursacht eine Schleife - %s://%s:%d%s%s\n" - -#, c-format -msgid "Redirection to %s://%s:%d%s\n" -msgstr "" - -#, fuzzy -msgid "This plugin tests the HTTP service on the specified host. It can test" -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "normal (http) and secure (https) servers, follow redirects, search for" -msgstr "" - -msgid "strings and regular expressions, check connection times, and report on" -msgstr "" - -#, fuzzy -msgid "certificate expiration times." -msgstr "Clientzertifikat benötigt\n" - -#, c-format -msgid "In the first form, make an HTTP request." -msgstr "" - -#, c-format -msgid "" -"In the second form, connect to the server and check the TLS certificate." -msgstr "" - -#, c-format -msgid "NOTE: One or both of -H and -I must be specified" -msgstr "" - -msgid "Host name argument for servers using host headers (virtual host)" -msgstr "" - -msgid "Append a port to include it in the header (eg: example.com:5000)" -msgstr "" - -msgid "" -"IP address or name (use numeric address if possible to bypass DNS lookup)." -msgstr "" - -msgid "Port number (default: " -msgstr "" - -msgid "" -"Connect via SSL. Port defaults to 443. VERSION is optional, and prevents" -msgstr "" - -msgid "auto-negotiation (2 = SSLv2, 3 = SSLv3, 1 = TLSv1, 1.1 = TLSv1.1," -msgstr "" - -msgid "1.2 = TLSv1.2). With a '+' suffix, newer versions are also accepted." -msgstr "" - -msgid "Enable SSL/TLS hostname extension support (SNI)" -msgstr "" - -msgid "" -"Minimum number of days a certificate has to be valid. Port defaults to 443" -msgstr "" - -msgid "" -"(when this option is used the URL is not checked by default. You can use" -msgstr "" - -msgid " --continue-after-certificate to override this behavior)" -msgstr "" - -msgid "" -"Allows the HTTP check to continue after performing the certificate check." -msgstr "" - -msgid "Does nothing unless -C is used." -msgstr "" - -msgid "Name of file that contains the client certificate (PEM format)" -msgstr "" - -msgid "to be used in establishing the SSL session" -msgstr "" - -msgid "Name of file containing the private key (PEM format)" -msgstr "" - -msgid "matching the client certificate" -msgstr "" - -msgid "Comma-delimited list of strings, at least one of them is expected in" -msgstr "" - -msgid "the first (status) line of the server response (default: " -msgstr "" - -msgid "" -"If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)" -msgstr "" - -msgid "String to expect in the response headers" -msgstr "" - -msgid "String to expect in the content" -msgstr "" - -msgid "URL to GET or POST (default: /)" -msgstr "" - -msgid "URL encoded http POST data" -msgstr "" - -msgid "Set HTTP method." -msgstr "" - -msgid "Don't wait for document body: stop reading after headers." -msgstr "" - -msgid "(Note that this still does an HTTP GET or POST, not a HEAD.)" -msgstr "" - -msgid "Warn if document is more than SECONDS old. the number can also be of" -msgstr "" - -msgid "the form \"10m\" for minutes, \"10h\" for hours, or \"10d\" for days." -msgstr "" - -msgid "specify Content-Type header media type when POSTing\n" -msgstr "" - -msgid "Allow regex to span newlines (must precede -r or -R)" -msgstr "" - -msgid "Search page for regex STRING" -msgstr "" - -msgid "Search page for case-insensitive regex STRING" -msgstr "" - -msgid "Return CRITICAL if found, OK if not\n" -msgstr "" - -msgid "Username:password on sites with basic authentication" -msgstr "" - -msgid "Username:password on proxy-servers with basic authentication" -msgstr "" - -msgid "String to be sent in http header as \"User Agent\"" -msgstr "" - -msgid "" -"Any other tags to be sent in http header. Use multiple times for additional " -"headers" -msgstr "" - -msgid "Print additional performance data" -msgstr "" - -msgid "Print body content below status line" -msgstr "" - -msgid "Wrap output in HTML link (obsoleted by urlize)" -msgstr "" - -msgid "How to handle redirected pages. sticky is like follow but stick to the" -msgstr "" - -msgid "specified IP address. stickyport also ensures port stays the same." -msgstr "" - -#, fuzzy -msgid "Maximal number of redirects (default: " -msgstr "Ungültige Portnummer" - -msgid "Minimum page size required (bytes) : Maximum page size required (bytes)" -msgstr "" - -#, fuzzy -msgid "This plugin will attempt to open an HTTP connection with the host." -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -msgid "" -"Successful connects return STATE_OK, refusals and timeouts return " -"STATE_CRITICAL" -msgstr "" - -msgid "" -"other errors return STATE_UNKNOWN. Successful connects, but incorrect " -"response" -msgstr "" - -msgid "" -"messages from the host result in STATE_WARNING return values. If you are" -msgstr "" - -msgid "" -"checking a virtual server that uses 'host headers' you must supply the FQDN" -msgstr "" - -msgid "(fully qualified domain name) as the [host_name] argument." -msgstr "" - -msgid "This plugin can also check whether an SSL enabled web server is able to" -msgstr "" - -msgid "serve content (optionally within a specified time) or whether the X509 " -msgstr "" - -msgid "certificate is still valid for the specified number of days." -msgstr "" - -#, fuzzy -msgid "Please note that this plugin does not check if the presented server" -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "certificate matches the hostname of the server, or if the certificate" -msgstr "" - -msgid "has a valid chain of trust to one of the locally installed CAs." -msgstr "" - -msgid "" -"When the 'www.verisign.com' server returns its content within 5 seconds," -msgstr "" - -msgid "" -"a STATE_OK will be returned. When the server returns its content but exceeds" -msgstr "" - -msgid "" -"the 5-second threshold, a STATE_WARNING will be returned. When an error " -"occurs," -msgstr "" - -msgid "a STATE_CRITICAL will be returned." -msgstr "" - -msgid "" -"When the certificate of 'www.verisign.com' is valid for more than 14 days," -msgstr "" - -msgid "" -"a STATE_OK is returned. When the certificate is still valid, but for less " -"than" -msgstr "" - -msgid "" -"14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when" -msgstr "" - -#, fuzzy -msgid "the certificate is expired." -msgstr "Clientzertifikat benötigt\n" - -msgid "" -"When the certificate of 'www.verisign.com' is valid for more than 30 days," -msgstr "" - -msgid "30 days, but more than 14 days, a STATE_WARNING is returned." -msgstr "" - -msgid "" -"A STATE_CRITICAL will be returned when certificate expires in less than 14 " -"days" -msgstr "" - -msgid "" -"check_http -I 192.168.100.35 -p 80 -u https://www.verisign.com/ -S -j " -"CONNECT -H www.verisign.com " -msgstr "" - -msgid "" -"all these options are needed: -I -p -u -" -"S(sl) -j CONNECT -H " -msgstr "" - -msgid "" -"a STATE_CRITICAL will be returned. By adding a colon to the method you can " -"set the method used" -msgstr "" - -msgid "inside the proxied connection: -j CONNECT:POST" -msgstr "" - -#, c-format -msgid "Could not connect to the server at port %i\n" -msgstr "" - -#, c-format -msgid "Could not set protocol version %d\n" -msgstr "" - -#, fuzzy, c-format -msgid "Could not init TLS at port %i!\n" -msgstr "Konnte stderr nicht öffnen für: %s\n" - -#, c-format -msgid "TLS not supported by the libraries!\n" -msgstr "" - -#, fuzzy, c-format -msgid "Could not init startTLS at port %i!\n" -msgstr "Konnte stderr nicht öffnen für: %s\n" - -#, c-format -msgid "startTLS not supported by the library, needs LDAPv3!\n" -msgstr "" - -#, c-format -msgid "Could not bind to the LDAP server\n" -msgstr "" - -#, c-format -msgid "Could not search/find objectclasses in %s\n" -msgstr "" - -#, fuzzy, c-format -msgid "LDAP %s - found %d entries in %.3f seconds|%s %s\n" -msgstr "HTTP OK %s - %.3f Sekunde Antwortzeit %s%s|%s %s\n" - -#, c-format -msgid "LDAP %s - %.3f seconds response time|%s\n" -msgstr "" - -#, c-format -msgid "%s cannot be combined with %s" -msgstr "" - -msgid "Please specify the host name\n" -msgstr "" - -msgid "Please specify the LDAP base\n" -msgstr "" - -msgid "ldap attribute to search (default: \"(objectclass=*)\"" -msgstr "" - -msgid "ldap base (eg. ou=my unit, o=my org, c=at" -msgstr "" - -msgid "ldap bind DN (if required)" -msgstr "" - -msgid "" -"ldap password (if required, or set the password through environment variable " -"'LDAP_PASSWORD')" -msgstr "" - -msgid "use starttls mechanism introduced in protocol version 3" -msgstr "" - -msgid "use ldaps (ldap v2 ssl method). this also sets the default port to" -msgstr "" - -msgid "use ldap protocol version 2" -msgstr "" - -msgid "use ldap protocol version 3" -msgstr "" - -msgid "default protocol version:" -msgstr "" - -msgid "Number of found entries to result in warning status" -msgstr "" - -msgid "Number of found entries to result in critical status" -msgstr "" - -msgid "If this plugin is called via 'check_ldaps', method 'STARTTLS' will be" -msgstr "" - -#, c-format -msgid "" -" implied (using default port %i) unless --port=636 is specified. In that " -"case\n" -msgstr "" - -msgid "'SSL on connect' will be used no matter how the plugin was called." -msgstr "" - -msgid "" -"This detection is deprecated, please use 'check_ldap' with the '--starttls' " -"or '--ssl' flags" -msgstr "" - -msgid "to define the behaviour explicitly instead." -msgstr "" - -msgid "The parameters --warn-entries and --crit-entries are optional." -msgstr "" - -msgid "Warning threshold must be float or float triplet!\n" -msgstr "" - -#, c-format -msgid "Error opening %s\n" -msgstr "" - -#, fuzzy, c-format -msgid "could not parse load from uptime %s: %d\n" -msgstr "Argumente konnten nicht ausgewertet werden" - -#, c-format -msgid "Error code %d returned in %s\n" -msgstr "" - -#, c-format -msgid "Error in getloadavg()\n" -msgstr "" - -#, c-format -msgid "Error processing %s\n" -msgstr "" - -#, c-format -msgid "load average: %.2f, %.2f, %.2f" -msgstr "" - -#, fuzzy, c-format -msgid "Critical threshold for %d-minute load average is not specified\n" -msgstr "Critical threshold muss ein positiver Integer sein\n" - -#, fuzzy, c-format -msgid "Warning threshold for %d-minute load average is not specified\n" -msgstr "Warning threshold muss ein positiver Integer sein\n" - -#, c-format -msgid "" -"Parameter inconsistency: %d-minute \"warning load\" is greater than " -"\"critical load\"\n" -msgstr "" - -#, c-format -msgid "This plugin tests the current system load average." -msgstr "" - -msgid "Exit with WARNING status if load average exceeds WLOADn" -msgstr "" - -msgid "Exit with CRITICAL status if load average exceed CLOADn" -msgstr "" - -msgid "the load average format is the same used by \"uptime\" and \"w\"" -msgstr "" - -msgid "Divide the load averages by the number of CPUs (when possible)" -msgstr "" - -msgid "Number of processes to show when printing the top consuming processes." -msgstr "" - -msgid "NUMBER_OF_PROCS=0 disables this feature. Default value is 0" -msgstr "" - -#, c-format -msgid "'%s' exited with non-zero status.\n" -msgstr "" - -#, c-format -msgid "some error occurred getting procs list.\n" -msgstr "" - -msgid "Could not parse arguments\n" -msgstr "" - -#, c-format -msgid "Unable to open MRTG log file\n" -msgstr "" - -#, c-format -msgid "Unable to process MRTG log file\n" -msgstr "" - -#, c-format -msgid "MRTG data has expired (%d minutes old)\n" -msgstr "" - -msgid "Avg" -msgstr "" - -msgid "Max" -msgstr "" - -msgid "Invalid variable number" -msgstr "" - -#, c-format -msgid "" -"%s is not a valid expiration time\n" -"Use '%s -h' for additional help\n" -msgstr "" - -msgid "Invalid variable number\n" -msgstr "" - -msgid "You must supply the variable number" -msgstr "" - -msgid "" -"This plugin will check either the average or maximum value of one of the" -msgstr "" - -#, fuzzy -msgid "two variables recorded in an MRTG log file." -msgstr "Konnte MRTG Logfile nicht öffnen" - -msgid "The MRTG log file containing the data you want to monitor" -msgstr "" - -msgid "Minutes before MRTG data is considered to be too old" -msgstr "" - -msgid "Should we check average or maximum values?" -msgstr "" - -msgid "Which variable set should we inspect? (1 or 2)" -msgstr "" - -msgid "Threshold value for data to result in WARNING status" -msgstr "" - -msgid "Threshold value for data to result in CRITICAL status" -msgstr "" - -msgid "Type label for data (Examples: Conns, \"Processor Load\", In, Out)" -msgstr "" - -msgid "Option units label for data (Example: Packets/Sec, Errors/Sec," -msgstr "" - -#, c-format -msgid "\"Bytes Per Second\", \"%% Utilization\")" -msgstr "" - -msgid "" -"If the value exceeds the threshold, a WARNING status is returned. If" -msgstr "" - -msgid "" -"the value exceeds the threshold, a CRITICAL status is returned. If" -msgstr "" - -msgid "the data in the log file is older than old, a WARNING" -msgstr "" - -msgid "status is returned and a warning message is printed." -msgstr "" - -msgid "" -"This plugin is useful for monitoring MRTG data that does not correspond to" -msgstr "" - -msgid "" -"bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth)." -msgstr "" - -msgid "" -"It can be used to monitor any kind of data that MRTG is monitoring - errors," -msgstr "" - -msgid "" -"packets/sec, etc. I use MRTG in conjunction with the Novell NLM that allows" -msgstr "" - -msgid "" -"me to track processor utilization, user connections, drive space, etc and" -msgstr "" - -msgid "this plugin works well for monitoring that kind of data as well." -msgstr "" - -msgid "" -"- This plugin only monitors one of the two variables stored in the MRTG log" -msgstr "" - -msgid "file. If you want to monitor both values you will have to define two" -msgstr "" - -msgid "commands with different values for the argument. Of course," -msgstr "" - -msgid "you can always hack the code to make this plugin work for you..." -msgstr "" - -msgid "" -"- MRTG stands for the Multi Router Traffic Grapher. It can be downloaded " -"from" -msgstr "" - -msgid "Unable to open MRTG log file" -msgstr "Konnte MRTG Logfile nicht öffnen" - -msgid "Unable to process MRTG log file" -msgstr "" - -#, c-format -msgid "%s. In = %0.1f %s/s, %s. Out = %0.1f %s/s|%s %s\n" -msgstr "" - -#, c-format -msgid "Traffic %s - %s\n" -msgstr "" - -msgid "" -"This plugin will check the incoming/outgoing transfer rates of a router," -msgstr "" - -msgid "switch, etc recorded in an MRTG log. If the newest log entry is older" -msgstr "" - -msgid "than , a WARNING status is returned. If either the" -msgstr "" - -msgid "incoming or outgoing rates exceed the or thresholds (in" -msgstr "" - -msgid "Bytes/sec), a CRITICAL status results. If either of the rates exceed" -msgstr "" - -msgid "the or thresholds (in Bytes/sec), a WARNING status results." -msgstr "" - -msgid "File to read log from" -msgstr "" - -msgid "Minutes after which log expires" -msgstr "" - -msgid "Test average or maximum" -msgstr "" - -#, fuzzy -msgid "Warning threshold pair ," -msgstr "Warning threshold Integer sein" - -#, fuzzy -msgid "Critical threshold pair ," -msgstr "Critical threshold muss ein Integer sein" - -msgid "" -"- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from" -msgstr "" - -msgid "- While MRTG can monitor things other than traffic rates, this" -msgstr "" - -msgid " plugin probably won't work with much else without modification." -msgstr "" - -msgid "- The calculated i/o rates are a little off from what MRTG actually" -msgstr "" - -msgid " reports. I'm not sure why this is right now, but will look into it" -msgstr "" - -msgid " for future enhancements of this plugin." -msgstr "" - -#, c-format -msgid "Usage" -msgstr "" - -#, c-format -msgid "status store_result error: %s\n" -msgstr "" - -#, c-format -msgid "slave query error: %s\n" -msgstr "" - -#, c-format -msgid "slave store_result error: %s\n" -msgstr "" - -msgid "No slaves defined" -msgstr "" - -#, c-format -msgid "slave fetch row error: %s\n" -msgstr "" - -#, c-format -msgid "Slave running: %s" -msgstr "" - -msgid "This program tests connections to a MySQL server" -msgstr "" - -msgid "Ignore authentication failure and check for mysql connectivity only" -msgstr "" - -msgid "Use the specified socket (has no effect if -H is used)" -msgstr "" - -msgid "Check database with indicated name" -msgstr "" - -msgid "Read from the specified client options file" -msgstr "" - -msgid "Use a client options group" -msgstr "" - -msgid "Connect using the indicated username" -msgstr "" - -msgid "Use the indicated password to authenticate the connection" -msgstr "" - -msgid "IMPORTANT: THIS FORM OF AUTHENTICATION IS NOT SECURE!!!" -msgstr "" - -msgid "Your clear-text password could be visible as a process table entry" -msgstr "" - -msgid "Check if the slave thread is running properly." -msgstr "" - -msgid "Exit with WARNING status if slave server is more than INTEGER seconds" -msgstr "" - -msgid "behind master" -msgstr "" - -msgid "Exit with CRITICAL status if slave server is more then INTEGER seconds" -msgstr "" - -msgid "Use ssl encryption" -msgstr "" - -msgid "Path to CA signing the cert" -msgstr "" - -msgid "Path to SSL certificate" -msgstr "" - -msgid "Path to private SSL key" -msgstr "" - -msgid "Path to CA directory" -msgstr "" - -msgid "List of valid SSL ciphers" -msgstr "" - -msgid "" -"There are no required arguments. By default, the local database is checked" -msgstr "" - -msgid "" -"using the default unix socket. You can force TCP on localhost by using an" -msgstr "" - -msgid "IP address or FQDN ('localhost' will use the socket as well)." -msgstr "" - -msgid "You must specify -p with an empty string to force an empty password," -msgstr "" - -msgid "overriding any my.cnf settings." -msgstr "" - -msgid "Cannot open status log for reading!" -msgstr "" - -#, c-format -msgid "Found process: %s %s\n" -msgstr "" - -msgid "Could not locate a running Nagios process!" -msgstr "" - -msgid "Cannot parse Nagios log file for valid time" -msgstr "" - -#, c-format -msgid "%d process" -msgid_plural "%d processes" -msgstr[0] "" -msgstr[1] "" - -#, c-format -msgid "status log updated %d second ago" -msgid_plural "status log updated %d seconds ago" -msgstr[0] "" -msgstr[1] "" - -#, fuzzy -msgid "Expiration time must be an integer (seconds)\n" -msgstr "skip lines muss ein Integer sein" - -#, fuzzy -msgid "Timeout must be an integer (seconds)\n" -msgstr "skip lines muss ein Integer sein" - -#, fuzzy -msgid "You must provide the status_log\n" -msgstr "%s: Hostname muss angegeben werden\n" - -#, fuzzy -msgid "You must provide a process string\n" -msgstr "%s: Hostname muss angegeben werden\n" - -#, fuzzy -msgid "" -"This plugin checks the status of the Nagios process on the local machine" -msgstr "" -"Dieses Plugin prüft den freien Speicher auf einem gemounteten Filesystem\n" -"und erzeugt einen Alarm wenn einer der angegebenen Schwellwerte " -"unterschritten wird.\n" -"\n" - -msgid "" -"The plugin will check to make sure the Nagios status log is no older than" -msgstr "" - -msgid "the number of minutes specified by the expires option." -msgstr "" - -msgid "" -"It also checks the process table for a process matching the command argument." -msgstr "" - -msgid "Name of the log file to check" -msgstr "" - -msgid "Minutes aging after which logfile is considered stale" -msgstr "" - -msgid "Substring to search for in process arguments" -msgstr "" - -msgid "Timeout for the plugin in seconds" -msgstr "" - -#, c-format -msgid "Wrong client version - running: %s, required: %s" -msgstr "" - -msgid "missing -l parameters" -msgstr "" - -msgid "wrong -l parameter." -msgstr "" - -msgid "CPU Load" -msgstr "" - -#, c-format -msgid " %lu%% (%lu min average)" -msgstr "" - -#, c-format -msgid " '%lu min avg Load'=%lu%%;%lu;%lu;0;100" -msgstr "" - -msgid "not enough values for -l parameters" -msgstr "" - -msgid "wrong -l argument" -msgstr "" - -#, c-format -msgid "System Uptime - %u day(s) %u hour(s) %u minute(s) |uptime=%lu" -msgstr "" - -#, c-format -msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" -msgstr "" - -#, c-format -msgid "'%s:\\ Used Space'=%.2fGb;%.2f;%.2f;0.00;%.2f" -msgstr "" - -msgid "Free disk space : Invalid drive" -msgstr "" - -msgid "No service/process specified" -msgstr "" - -msgid "could not fetch information from server\n" -msgstr "" - -#, c-format -msgid "" -"Memory usage: total:%.2f MB - used: %.2f MB (%.0f%%) - free: %.2f MB (%.0f%%)" -msgstr "" - -#, c-format -msgid "'Memory usage'=%.2fMB;%.2f;%.2f;0.00;%.2f" -msgstr "" - -msgid "No counter specified" -msgstr "" - -msgid "Minimum value contains non-numbers" -msgstr "" - -msgid "Maximum value contains non-numbers" -msgstr "" - -msgid "No unit counter specified" -msgstr "" - -msgid "Please specify a variable to check" -msgstr "" - -#, fuzzy -msgid "Server port must be an integer\n" -msgstr "skip lines muss ein Integer sein" - -#, fuzzy -msgid "You must provide a server address or host name" -msgstr "Hostname oder Serveradresse muss angegeben werden" - -msgid "None" -msgstr "" - -msgid "This plugin collects data from the NSClient service running on a" -msgstr "" - -msgid "Windows NT/2000/XP/2003 server." -msgstr "" - -msgid "Name of the host to check" -msgstr "" - -#, fuzzy -msgid "Optional port number (default: " -msgstr "Ungültige Portnummer" - -msgid "Password needed for the request" -msgstr "" - -msgid "Threshold which will result in a warning status" -msgstr "" - -msgid "Threshold which will result in a critical status" -msgstr "" - -msgid "Seconds before connection attempt times out (default: " -msgstr "" - -msgid "Parameters passed to specified check (see below)" -msgstr "" - -msgid "Display options (currently only SHOWALL works)" -msgstr "" - -msgid "Return UNKNOWN on timeouts" -msgstr "" - -msgid "Print this help screen" -msgstr "" - -msgid "Print version information" -msgstr "" - -msgid "Variable to check" -msgstr "" - -msgid "Valid variables are:" -msgstr "" - -msgid "Get the NSClient version" -msgstr "" - -msgid "If -l is specified, will return warning if versions differ." -msgstr "" - -msgid "Average CPU load on last x minutes." -msgstr "" - -msgid "Request a -l parameter with the following syntax:" -msgstr "" - -msgid "-l ,,." -msgstr "" - -msgid " should be less than 24*60." -msgstr "" - -msgid "" -"Thresholds are percentage and up to 10 requests can be done in one shot." -msgstr "" - -msgid "Get the uptime of the machine." -msgstr "" - -msgid "-l " -msgstr "" - -msgid " = seconds, minutes, hours, or days. (default: minutes)" -msgstr "" - -#, fuzzy -msgid "Thresholds will use the unit specified above." -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "Size and percentage of disk use." -msgstr "" - -msgid "Request a -l parameter containing the drive letter only." -msgstr "" - -msgid "Warning and critical thresholds can be specified with -w and -c." -msgstr "" - -msgid "Memory use." -msgstr "" - -msgid "Check the state of one or several services." -msgstr "" - -msgid "Request a -l parameters with the following syntax:" -msgstr "" - -msgid "-l ,,,..." -msgstr "" - -msgid "You can specify -d SHOWALL in case you want to see working services" -msgstr "" - -msgid "in the returned string." -msgstr "" - -msgid "Check if one or several process are running." -msgstr "" - -msgid "Same syntax as SERVICESTATE." -msgstr "" - -msgid "Check any performance counter of Windows NT/2000." -msgstr "" - -msgid "-l \"\\\\\\\\counter\",\"" -msgstr "" - -msgid "The parameter is optional and is given to a printf " -msgstr "" - -msgid "output command which requires a float parameter." -msgstr "" - -#, c-format -msgid "If does not include \"%%\", it is used as a label." -msgstr "" - -msgid "Some examples:" -msgstr "" - -msgid "Check any performance counter object of Windows NT/2000." -msgstr "" - -msgid "" -"Syntax: check_nt -H -p -v INSTANCES -l " -msgstr "" - -msgid " is a Windows Perfmon Counter object (eg. Process)," -msgstr "" - -msgid "if it is two words, it should be enclosed in quotes" -msgstr "" - -msgid "The returned results will be a comma-separated list of instances on " -msgstr "" - -msgid " the selected computer for that object." -msgstr "" - -msgid "" -"The purpose of this is to be run from command line to determine what " -"instances" -msgstr "" - -msgid "" -" are available for monitoring without having to log onto the Windows server" -msgstr "" - -msgid " to run Perfmon directly." -msgstr "" - -msgid "" -"It can also be used in scripts that automatically create the monitoring " -"service" -msgstr "" - -msgid " configuration files." -msgstr "" - -msgid "check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process" -msgstr "" - -msgid "" -"- The NSClient service should be running on the server to get any information" -msgstr "" - -msgid "- Critical thresholds should be lower than warning thresholds" -msgstr "" - -msgid "- Default port 1248 is sometimes in use by other services. The error" -msgstr "" - -msgid "" -"output when this happens contains \"Cannot map xxxxx to protocol number\"." -msgstr "" - -msgid "One fix for this is to change the port to something else on check_nt " -msgstr "" - -msgid "and on the client service it's connecting to." -msgstr "" - -#, c-format -msgid "jitter response too large (%lu bytes)\n" -msgstr "" - -msgid "NTP CRITICAL:" -msgstr "NTP CRITICAL:" - -msgid "NTP WARNING:" -msgstr "NTP WARNING:" - -msgid "NTP OK:" -msgstr "NTP OK:" - -msgid "NTP UNKNOWN:" -msgstr "NTP UNKNOWN:" - -msgid "Offset unknown" -msgstr "" - -msgid "Offset" -msgstr "" - -#, fuzzy -msgid "This plugin checks the selected ntp server" -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "Offset to result in warning status (seconds)" -msgstr "" - -msgid "Offset to result in critical status (seconds)" -msgstr "" - -#, fuzzy -msgid "Warning threshold for jitter" -msgstr "Warning threshold Integer sein" - -#, fuzzy -msgid "Critical threshold for jitter" -msgstr "Critical threshold muss ein Integer sein" - -msgid "Normal offset check:" -msgstr "" - -msgid "" -"Check jitter too, avoiding critical notifications if jitter isn't available" -msgstr "" - -msgid "(See Notes above for more details on thresholds formats):" -msgstr "" - -msgid "WARNING: check_ntp is deprecated. Please use check_ntp_peer or" -msgstr "" - -msgid "check_ntp_time instead." -msgstr "" - -msgid "Server not synchronized" -msgstr "" - -msgid "Server has the LI_ALARM bit set" -msgstr "" - -msgid "" -"Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized" -msgstr "" - -#, fuzzy -msgid "Warning threshold for stratum of server's synchronization peer" -msgstr "Warning threshold Integer sein" - -#, fuzzy -msgid "Critical threshold for stratum of server's synchronization peer" -msgstr "Critical threshold muss ein Integer sein" - -#, fuzzy -msgid "Warning threshold for number of usable time sources (\"truechimers\")" -msgstr "Warning threshold muss ein positiver Integer sein\n" - -#, fuzzy -msgid "Critical threshold for number of usable time sources (\"truechimers\")" -msgstr "Critical threshold muss ein positiver Integer sein\n" - -msgid "This plugin checks an NTP server independent of any commandline" -msgstr "" - -msgid "programs or external libraries." -msgstr "" - -#, fuzzy -msgid "Use this plugin to check the health of an NTP server. It supports" -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "checking the offset with the sync peer, the jitter and stratum. This" -msgstr "" - -msgid "plugin will not check the clock offset between the local host and NTP" -msgstr "" - -msgid "server; please use check_ntp_time for that purpose." -msgstr "" - -msgid "Simple NTP server check:" -msgstr "" - -msgid "Only check the number of usable time sources (\"truechimers\"):" -msgstr "" - -msgid "Check only stratum:" -msgstr "" - -#, fuzzy -msgid "This plugin checks the clock offset with the ntp server" -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "Returns UNKNOWN instead of CRITICAL if offset cannot be found" -msgstr "" - -msgid "Expected offset of the ntp server relative to local server (seconds)" -msgstr "" - -#, fuzzy -msgid "This plugin checks the clock offset between the local host and a" -msgstr "" -"Dieses Plugin prüft den freien Speicher auf einem gemounteten Filesystem\n" -"und erzeugt einen Alarm wenn einer der angegebenen Schwellwerte " -"unterschritten wird.\n" -"\n" - -msgid "remote NTP server. It is independent of any commandline programs or" -msgstr "" - -msgid "external libraries." -msgstr "" - -msgid "If you'd rather want to monitor an NTP server, please use" -msgstr "" - -msgid "check_ntp_peer." -msgstr "" - -msgid "--time-offset is useful for compensating for servers with known" -msgstr "" - -msgid "and expected clock skew." -msgstr "" - -#, c-format -msgid "NetWare %s: " -msgstr "" - -#, c-format -msgid "Up %s," -msgstr "" - -#, c-format -msgid "Load %s - %s %s-min load average = %lu%%|load%s=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "Conns %s - %lu current connections|Conns=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s: Long term cache hits = %lu%%" -msgstr "" - -#, c-format -msgid "%s: Total cache buffers = %lu|Cachebuffers=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s: Dirty cache buffers = %lu|Dirty-Cache-Buffers=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s: LRU sitting time = %lu minutes" -msgstr "" - -#, c-format -msgid "CRITICAL - Volume '%s' does not exist!" -msgstr "" - -#, c-format -msgid "%s%lu KB free on volume %s|KBFree%s=%lu;%lu;%lu;;" -msgstr "" - -msgid "Only " -msgstr "" - -#, c-format -msgid "%s%lu MB free on volume %s|MBFree%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s%lu MB used on volume %s|MBUsed%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "" -"%lu MB (%lu%%) free on volume %s - total %lu MB|FreeMB%s=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "Directory Services Database is %s (DS version %s)" -msgstr "" - -#, c-format -msgid "Logins are %s" -msgstr "" - -msgid "enabled" -msgstr "" - -msgid "disabled" -msgstr "" - -#, fuzzy -msgid "CRITICAL - NRM Status is bad!" -msgstr "CRITICAL - Serverdatum \"%100s\" konnte nicht verarbeitet werden" - -msgid "Warning - NRM Status is suspect!" -msgstr "" - -msgid "OK - NRM Status is good!" -msgstr "" - -#, c-format -msgid "%lu of %lu (%lu%%) packet receive buffers used" -msgstr "" - -#, c-format -msgid "%lu entries in SAP table" -msgstr "" - -#, c-format -msgid "%lu entries in SAP table for SAP type %d" -msgstr "" - -#, c-format -msgid "%s%lu KB purgeable on volume %s|Purge%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s%lu MB purgeable on volume %s|Purge%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%lu MB (%lu%%) purgeable on volume %s|Purgeable%s=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "%s%lu KB not yet purgeable on volume %s" -msgstr "" - -#, c-format -msgid "%lu MB (%lu%%) not yet purgeable on volume %s" -msgstr "" - -#, c-format -msgid "%lu open files|Openfiles=%lu;%lu;%lu;0,0" -msgstr "" - -#, c-format -msgid "%lu abended threads|Abends=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%lu current service processes (%lu max)|Processes=%lu;%lu;%lu;0;%lu" -msgstr "" - -msgid "CRITICAL - Time not in sync with network!" -msgstr "" - -msgid "OK - Time in sync with network!" -msgstr "" - -#, c-format -msgid "LRU sitting time = %lu seconds" -msgstr "" - -#, c-format -msgid "Dirty cache buffers = %lu%% of the total|DCB=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "Total cache buffers = %lu%% of the original|TCB=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "NDS Version %s" -msgstr "" - -#, c-format -msgid "Up %s" -msgstr "" - -#, c-format -msgid "Module %s version %s is loaded" -msgstr "" - -#, c-format -msgid "Module %s is not loaded" -msgstr "" - -#, fuzzy, c-format -msgid "CRITICAL - Value '%s' does not exist!" -msgstr "%s [%s nicht gefunden]" - -#, c-format -msgid "%s is %lu|%s=%lu;%lu;%lu;;" -msgstr "" - -msgid "Nothing to check!\n" -msgstr "" - -#, fuzzy -msgid "Server port an integer\n" -msgstr "skip lines muss ein Integer sein" - -msgid "This plugin attempts to contact the MRTGEXT NLM running on a" -msgstr "" - -msgid "Novell server to gather the requested system information." -msgstr "" - -msgid "Variable to check. Valid variables include:" -msgstr "" - -msgid "LOAD1 = 1 minute average CPU load" -msgstr "" - -msgid "LOAD5 = 5 minute average CPU load" -msgstr "" - -msgid "LOAD15 = 15 minute average CPU load" -msgstr "" - -msgid "CSPROCS = number of current service processes (NW 5.x only)" -msgstr "" - -msgid "ABENDS = number of abended threads (NW 5.x only)" -msgstr "" - -msgid "UPTIME = server uptime" -msgstr "" - -msgid "LTCH = percent long term cache hits" -msgstr "" - -msgid "CBUFF = current number of cache buffers" -msgstr "" - -msgid "CDBUFF = current number of dirty cache buffers" -msgstr "" - -msgid "DCB = dirty cache buffers as a percentage of the total" -msgstr "" - -msgid "TCB = dirty cache buffers as a percentage of the original" -msgstr "" - -msgid "OFILES = number of open files" -msgstr "" - -msgid " VMF = MB of free space on Volume " -msgstr "" - -msgid " VMU = MB used space on Volume " -msgstr "" - -msgid " VMP = MB of purgeable space on Volume " -msgstr "" - -msgid " VPF = percent free space on volume " -msgstr "" - -msgid " VKF = KB of free space on volume " -msgstr "" - -msgid " VPP = percent purgeable space on volume " -msgstr "" - -msgid " VKP = KB of purgeable space on volume " -msgstr "" - -msgid " VPNP = percent not yet purgeable space on volume " -msgstr "" - -msgid " VKNP = KB of not yet purgeable space on volume " -msgstr "" - -msgid " LRUM = LRU sitting time in minutes" -msgstr "" - -msgid " LRUS = LRU sitting time in seconds" -msgstr "" - -msgid " DSDB = check to see if DS Database is open" -msgstr "" - -msgid " DSVER = NDS version" -msgstr "" - -msgid " UPRB = used packet receive buffers" -msgstr "" - -msgid " PUPRB = percent (of max) used packet receive buffers" -msgstr "" - -msgid " SAPENTRIES = number of entries in the SAP table" -msgstr "" - -msgid " SAPENTRIES = number of entries in the SAP table for SAP type " -msgstr "" - -msgid " TSYNC = timesync status" -msgstr "" - -msgid " LOGINS = check to see if logins are enabled" -msgstr "" - -msgid " CONNS = number of currently licensed connections" -msgstr "" - -msgid " NRMH\t= NRM Summary Status" -msgstr "" - -msgid " NRMP = Returns the current value for a NRM health item" -msgstr "" - -msgid " NRMM = Returns the current memory stats from NRM" -msgstr "" - -msgid " NRMS = Returns the current Swapfile stats from NRM" -msgstr "" - -msgid " NSS1 = Statistics from _Admin:Manage_NSS\\GeneralStats.xml" -msgstr "" - -msgid " NSS3 = Statistics from _Admin:Manage_NSS\\NameCache.xml" -msgstr "" - -msgid " NSS4 = Statistics from _Admin:Manage_NSS\\FileStats.xml" -msgstr "" - -msgid " NSS5 = Statistics from _Admin:Manage_NSS\\ObjectCache.xml" -msgstr "" - -msgid " NSS6 = Statistics from _Admin:Manage_NSS\\Thread.xml" -msgstr "" - -msgid "" -" NSS7 = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml" -msgstr "" - -msgid " NLM: = check if NLM is loaded and report version" -msgstr "" - -msgid " (e.g. NLM:TSANDS.NLM)" -msgstr "" - -msgid "Include server version string in results" -msgstr "" - -msgid "- This plugin requires that the MRTGEXT.NLM file from James Drews' MRTG" -msgstr "" - -msgid "" -" extension for NetWare be loaded on the Novell servers you wish to check." -msgstr "" - -msgid " (available from http://www.engr.wisc.edu/~drews/mrtg/)" -msgstr "" - -msgid "" -"- Values for critical thresholds should be lower than warning thresholds" -msgstr "" - -msgid "" -" when the following variables are checked: VPF, VKF, LTCH, CBUFF, DCB, " -msgstr "" - -msgid " TCB, LRUS and LRUM." -msgstr "" - -msgid "Unknown error fetching load data\n" -msgstr "" - -msgid "Invalid response from server - no load information\n" -msgstr "" - -msgid "Invalid response from server after load 1\n" -msgstr "" - -msgid "Invalid response from server after load 5\n" -msgstr "" - -#, c-format -msgid "Load %s - %s-min load average = %0.2f" -msgstr "" - -msgid "Unknown error fetching disk data\n" -msgstr "" - -msgid "Invalid response from server\n" -msgstr "" - -msgid "Unknown error fetching network status\n" -msgstr "" - -#, c-format -msgid "Net %s - %d connection%s on port %d" -msgstr "" - -msgid "Unknown error fetching process status\n" -msgstr "" - -#, c-format -msgid "Process %s - %d instance%s of %s running" -msgstr "" - -#, c-format -msgid "Uptime %s - Up %d days %d hours %d minutes" -msgstr "" - -msgid "" -"This plugin attempts to contact the Over-CR collector daemon running on the" -msgstr "" - -msgid "remote UNIX server in order to gather the requested system information." -msgstr "" - -msgid "LOAD1 = 1 minute average CPU load" -msgstr "" - -msgid "LOAD5 = 5 minute average CPU load" -msgstr "" - -msgid "LOAD15 = 15 minute average CPU load" -msgstr "" - -msgid "DPU = percent used disk space on filesystem " -msgstr "" - -msgid "PROC = number of running processes with name " -msgstr "" - -msgid "NET = number of active connections on TCP port " -msgstr "" - -msgid "UPTIME = system uptime in seconds" -msgstr "" - -msgid "This plugin requires that Eric Molitors' Over-CR collector daemon be" -msgstr "" - -msgid "running on the remote server." -msgstr "" - -msgid "Over-CR can be downloaded from http://www.molitor.org/overcr" -msgstr "" - -msgid "This plugin was tested with version 0.99.53 of the Over-CR collector" -msgstr "" - -msgid "" -"For the available options, the critical threshold value should always be" -msgstr "" - -msgid "" -"higher than the warning threshold value, EXCEPT with the uptime variable" -msgstr "" - -#, c-format -msgid "CRITICAL - no connection to '%s' (%s).\n" -msgstr "" - -#, c-format -msgid " %s - database %s (%f sec.)|%s\n" -msgstr "" - -msgid "Critical threshold must be a positive integer" -msgstr "Critical threshold muss ein positiver Integer sein" - -msgid "Warning threshold must be a positive integer" -msgstr "Warning threshold muss ein positiver Integer sein" - -msgid "Database name exceeds the maximum length" -msgstr "" - -msgid "User name is not valid" -msgstr "" - -#, c-format -msgid "Test whether a PostgreSQL Database is accepting connections." -msgstr "" - -msgid "Database to check " -msgstr "" - -#, c-format -msgid "(default: %s)\n" -msgstr "" - -msgid "Login name of user" -msgstr "" - -msgid "Password (BIG SECURITY ISSUE)" -msgstr "" - -msgid "Connection parameters (keyword = value), see below" -msgstr "" - -msgid "SQL query to run. Only first column in first row will be read" -msgstr "" - -msgid "A name for the query, this string is used instead of the query" -msgstr "" - -msgid "in the long output of the plugin" -msgstr "" - -msgid "SQL query value to result in warning status (double)" -msgstr "" - -msgid "SQL query value to result in critical status (double)" -msgstr "" - -msgid "All parameters are optional." -msgstr "" - -msgid "" -"This plugin tests a PostgreSQL DBMS to determine whether it is active and" -msgstr "" - -msgid "accepting queries. In its current operation, it simply connects to the" -msgstr "" - -msgid "" -"specified database, and then disconnects. If no database is specified, it" -msgstr "" - -msgid "" -"connects to the template1 database, which is present in every functioning" -msgstr "" - -msgid "PostgreSQL DBMS." -msgstr "" - -msgid "If a query is specified using the -q option, it will be executed after" -msgstr "" - -msgid "connecting to the server. The result from the query has to be numeric." -msgstr "" - -msgid "" -"Multiple SQL commands, separated by semicolon, are allowed but the result " -msgstr "" - -msgid "of the last command is taken into account only. The value of the first" -msgstr "" - -msgid "" -"column in the first row is used as the check result. If a second column is" -msgstr "" - -msgid "present in the result set, this is added to the plugin output with a" -msgstr "" - -msgid "" -"prefix of \"Extra Info:\". This information can be displayed in the system" -msgstr "" - -msgid "executing the plugin." -msgstr "" - -msgid "" -"See the chapter \"Monitoring Database Activity\" of the PostgreSQL manual" -msgstr "" - -msgid "" -"for details about how to access internal statistics of the database server." -msgstr "" - -msgid "" -"For a list of available connection parameters which may be used with the -o" -msgstr "" - -msgid "" -"command line option, see the documentation for PQconnectdb() in the chapter" -msgstr "" - -msgid "" -"\"libpq - C Library\" of the PostgreSQL manual. For example, this may be" -msgstr "" - -msgid "" -"used to specify a service name in pg_service.conf to be used for additional" -msgstr "" - -msgid "connection parameters: -o 'service=' or to specify the SSL mode:" -msgstr "" - -msgid "-o 'sslmode=require'." -msgstr "" - -msgid "" -"The plugin will connect to a local postmaster if no host is specified. To" -msgstr "" - -msgid "" -"connect to a remote host, be sure that the remote postmaster accepts TCP/IP" -msgstr "" - -msgid "connections (start the postmaster with the -i option)." -msgstr "" - -msgid "" -"Typically, the monitoring user (unless the --logname option is used) should " -"be" -msgstr "" - -msgid "" -"able to connect to the database without a password. The plugin can also send" -msgstr "" - -msgid "a password, but no effort is made to obscure or encrypt the password." -msgstr "" - -#, c-format -msgid "QUERY %s - %s: %s.\n" -msgstr "" - -msgid "Error with query" -msgstr "" - -msgid "No rows returned" -msgstr "" - -msgid "No columns returned" -msgstr "" - -#, fuzzy -msgid "No data returned" -msgstr "Keine Daten empfangen %s\n" - -msgid "Is not a numeric" -msgstr "" - -#, fuzzy, c-format -msgid "%s returned %f" -msgstr "%s hat %s zurückgegeben" - -#, fuzzy, c-format -msgid "'%s' returned %f" -msgstr "%s hat %s zurückgegeben" - -msgid "CRITICAL - Could not interpret output from ping command\n" -msgstr "" - -#, c-format -msgid "PING %s - %sPacket loss = %d%%" -msgstr "" - -#, c-format -msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" -msgstr "" - -msgid "Could not realloc() addresses\n" -msgstr "" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr "" - -#, c-format -msgid " (%s) must be an integer percentage\n" -msgstr "" - -#, c-format -msgid " (%s) must be an integer percentage\n" -msgstr "" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr "" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr "" - -#, c-format -msgid "" -"%s: Warning threshold must be integer or percentage!\n" -"\n" -msgstr "" - -#, c-format -msgid " was not set\n" -msgstr "" - -#, c-format -msgid " was not set\n" -msgstr "" - -#, c-format -msgid " was not set\n" -msgstr "" - -#, c-format -msgid " was not set\n" -msgstr "" - -#, c-format -msgid " (%f) cannot be larger than (%f)\n" -msgstr "" - -#, c-format -msgid " (%d) cannot be larger than (%d)\n" -msgstr "" - -#, c-format -msgid "Cannot open stderr for %s\n" -msgstr "" - -msgid "System call sent warnings to stderr " -msgstr "" - -#, fuzzy, c-format -msgid "CRITICAL - Network Unreachable (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Host Unreachable (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Bogus ICMP: Port Unreachable (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Bogus ICMP: Protocol Unreachable (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Network Prohibited (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Host Prohibited (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Packet Filtered (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Host not found (%s)\n" -msgstr "CRITICAL - Text nicht gefunden%s|%s %s\n" - -#, fuzzy, c-format -msgid "CRITICAL - Time to live exceeded (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Destination Unreachable (%s)\n" -msgstr "CRITICAL - Netzwerk nicht erreichbar (%s)" - -msgid "Unable to realloc warn_text\n" -msgstr "" - -#, c-format -msgid "Use ping to check connection statistics for a remote host." -msgstr "" - -msgid "host to ping" -msgstr "" - -msgid "number of ICMP ECHO packets to send" -msgstr "" - -#, c-format -msgid "(Default: %d)\n" -msgstr "" - -msgid "show HTML in the plugin output (obsoleted by urlize)" -msgstr "" - -msgid "THRESHOLD is ,% where is the round trip average travel" -msgstr "" - -msgid "time (ms) which triggers a WARNING or CRITICAL state, and is the" -msgstr "" - -msgid "percentage of packet loss to trigger an alarm state." -msgstr "" - -#, fuzzy -msgid "" -"This plugin uses the ping command to probe the specified host for packet loss" -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -msgid "" -"(percentage) and round trip average (milliseconds). It can produce HTML " -"output" -msgstr "" - -msgid "" -"linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in" -msgstr "" - -msgid "the contrib area of the downloads section at http://www.nagios.org/" -msgstr "" - -#, c-format -msgid "CMD: %s\n" -msgstr "" - -msgid "System call sent warnings to stderr" -msgstr "" - -#, c-format -msgid "Not parseable: %s" -msgstr "" - -#, c-format -msgid "Unable to read output\n" -msgstr "" - -#, c-format -msgid "%d warn out of " -msgstr "" - -#, c-format -msgid "%d crit, %d warn out of " -msgstr "" - -#, c-format -msgid " with %s" -msgstr "" - -#, fuzzy -msgid "Parent Process ID must be an integer!" -msgstr "Argument für check_dummy muss ein Integer sein" - -#, c-format -msgid "%s%sSTATE = %s" -msgstr "" - -#, fuzzy -msgid "UID was not found" -msgstr "%s [%s nicht gefunden]" - -#, fuzzy -msgid "User name was not found" -msgstr "%s [%s nicht gefunden]" - -#, c-format -msgid "%s%scommand name '%s'" -msgstr "" - -#, c-format -msgid "%s%sexclude progs '%s'" -msgstr "" - -#, fuzzy -msgid "RSS must be an integer!" -msgstr "skip lines muss ein Integer sein" - -#, fuzzy -msgid "VSZ must be an integer!" -msgstr "skip lines muss ein Integer sein" - -msgid "PCPU must be a float!" -msgstr "" - -msgid "Metric must be one of PROCS, VSZ, RSS, CPU, ELAPSED!" -msgstr "" - -msgid "" -"Checks all processes and generates WARNING or CRITICAL states if the " -"specified" -msgstr "" - -msgid "" -"metric is outside the required threshold ranges. The metric defaults to " -"number" -msgstr "" - -msgid "" -"of processes. Search filters can be applied to limit the processes to check." -msgstr "" - -msgid "Generate warning state if metric is outside this range" -msgstr "" - -msgid "Generate critical state if metric is outside this range" -msgstr "" - -msgid "Check thresholds against metric. Valid types:" -msgstr "" - -msgid "PROCS - number of processes (default)" -msgstr "" - -msgid "VSZ - virtual memory size" -msgstr "" - -msgid "RSS - resident set memory size" -msgstr "" - -msgid "CPU - percentage CPU" -msgstr "" - -msgid "ELAPSED - time elapsed in seconds" -msgstr "" - -msgid "Extra information. Up to 3 verbosity levels" -msgstr "" - -msgid "Filter own process the traditional way by PID instead of /proc/pid/exe" -msgstr "" - -msgid "Only scan for processes that have, in the output of `ps`, one or" -msgstr "" - -msgid "more of the status flags you specify (for example R, Z, S, RS," -msgstr "" - -msgid "RSZDT, plus others based on the output of your 'ps' command)." -msgstr "" - -msgid "Only scan for children of the parent process ID indicated." -msgstr "" - -msgid "Only scan for processes with VSZ higher than indicated." -msgstr "" - -msgid "Only scan for processes with RSS higher than indicated." -msgstr "" - -msgid "Only scan for processes with PCPU higher than indicated." -msgstr "" - -msgid "Only scan for processes with user name or ID indicated." -msgstr "" - -msgid "Only scan for processes with args that contain STRING." -msgstr "" - -msgid "Only scan for processes with args that contain the regex STRING." -msgstr "" - -msgid "Only scan for exact matches of COMMAND (without path)." -msgstr "" - -msgid "Exclude processes which match this comma separated list" -msgstr "" - -msgid "Only scan for non kernel threads (works on Linux only)." -msgstr "" - -#, c-format -msgid "" -"\n" -"RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If\n" -"specified 'max:min', a warning status will be generated if the\n" -"count is inside the specified range\n" -"\n" -msgstr "" - -#, c-format -msgid "" -"This plugin checks the number of currently running processes and\n" -"generates WARNING or CRITICAL states if the process count is outside\n" -"the specified threshold ranges. The process count can be filtered by\n" -"process owner, parent process PID, current state (e.g., 'Z'), or may\n" -"be the total number of running processes\n" -"\n" -msgstr "" - -msgid "Warning if not two processes with command name portsentry." -msgstr "" - -msgid "Critical if < 2 or > 1024 processes" -msgstr "" - -msgid "Critical if not at least 1 process with command sshd" -msgstr "" - -msgid "Warning if > 1024 processes with command name sshd." -msgstr "" - -msgid "Critical if < 1 processes with command name sshd." -msgstr "" - -msgid "Warning alert if > 10 processes with command arguments containing" -msgstr "" - -msgid "'/usr/local/bin/perl' and owned by root" -msgstr "" - -msgid "Alert if VSZ of any processes over 50K or 100K" -msgstr "" - -msgid "Alert if CPU of any processes over 10% or 20%" -msgstr "" - -msgid "Config file error\n" -msgstr "" - -#, fuzzy -msgid "Out of Memory?\n" -msgstr "Kein Papier" - -#, fuzzy -msgid "Invalid NAS-Identifier\n" -msgstr "Ungültige(r) Hostname/Adresse" - -#, c-format -msgid "gethostname() failed!\n" -msgstr "" - -#, fuzzy -msgid "Invalid NAS-IP-Address\n" -msgstr "Ungültige(r) Hostname/Adresse" - -msgid "Timeout\n" -msgstr "" - -msgid "Auth Error\n" -msgstr "" - -#, fuzzy -msgid "Auth Failed\n" -msgstr "Fehlgeschlagen" - -msgid "Bad Response\n" -msgstr "" - -msgid "Auth OK\n" -msgstr "" - -#, fuzzy, c-format -msgid "Unexpected result code %d" -msgstr "Erwartet: %s aber: %s erhalten" - -msgid "Number of retries must be a positive integer" -msgstr "" - -msgid "User not specified" -msgstr "" - -msgid "Password not specified" -msgstr "" - -msgid "Configuration file not specified" -msgstr "" - -#, fuzzy -msgid "Tests to see if a RADIUS server is accepting connections." -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -msgid "The user to authenticate" -msgstr "" - -msgid "Password for authentication (SECURITY RISK)" -msgstr "" - -msgid "NAS identifier" -msgstr "" - -msgid "NAS IP Address" -msgstr "" - -msgid "Configuration file" -msgstr "" - -msgid "Response string to expect from the server" -msgstr "" - -msgid "Number of times to retry a failed connection" -msgstr "" - -#, fuzzy -msgid "" -"This plugin tests a RADIUS server to see if it is accepting connections." -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -msgid "" -"The server to test must be specified in the invocation, as well as a user" -msgstr "" - -msgid "name and password. A configuration file must be present. The format of" -msgstr "" - -msgid "" -"the configuration file is described in the radiusclient library sources." -msgstr "" - -msgid "The password option presents a substantial security issue because the" -msgstr "" - -msgid "" -"password can possibly be determined by careful watching of the command line" -msgstr "" - -msgid "in a process listing. This risk is exacerbated because the plugin will" -msgstr "" - -msgid "" -"typically be executed at regular predictable intervals. Please be sure that" -msgstr "" - -msgid "the password used does not allow access to sensitive system resources." -msgstr "" - -#, c-format -msgid "Unable to connect to %s on port %d\n" -msgstr "" - -#, c-format -msgid "No data received from %s\n" -msgstr "" - -#, fuzzy -msgid "Invalid REAL response received from host" -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -#, c-format -msgid "Invalid REAL response received from host on port %d\n" -msgstr "" - -#, c-format -msgid "No data received from host\n" -msgstr "" - -#, c-format -msgid "REAL %s - %d second response time\n" -msgstr "" - -msgid "Warning time must be a positive integer" -msgstr "Warnung time muss ein positiver Integer sein" - -msgid "Critical time must be a positive integer" -msgstr "Critical time muss ein positiver Integer sein" - -#, fuzzy -msgid "You must provide a server to check" -msgstr "%s: Hostname muss angegeben werden\n" - -#, fuzzy -msgid "This plugin tests the REAL service on the specified host." -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "Connect to this url" -msgstr "" - -#, c-format -msgid "String to expect in first line of server response (default: %s)\n" -msgstr "" - -#, fuzzy -msgid "This plugin will attempt to open an RTSP connection with the host." -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -msgid "Successful connects return STATE_OK, refusals and timeouts return" -msgstr "" - -msgid "" -"STATE_CRITICAL, other errors return STATE_UNKNOWN. Successful connects," -msgstr "" - -msgid "" -"but incorrect response messages from the host result in STATE_WARNING return" -msgstr "" - -msgid "values." -msgstr "" - -#, c-format -msgid "malloc() failed!\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Cannot create SSL context.\n" -msgstr "" - -#, c-format -msgid "recv() failed\n" -msgstr "" - -#, c-format -msgid "WARNING - TLS not supported by server\n" -msgstr "" - -#, c-format -msgid "Server does not support STARTTLS\n" -msgstr "" - -msgid "SMTP UNKNOWN - Cannot send EHLO command via TLS." -msgstr "" - -#, c-format -msgid "sent %s" -msgstr "" - -msgid "SMTP UNKNOWN - Cannot read EHLO response via TLS." -msgstr "" - -#, fuzzy, c-format -msgid "Invalid SMTP response received from host: %s\n" -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -#, fuzzy, c-format -msgid "Invalid SMTP response received from host on port %d: %s\n" -msgstr "Ungültige HTTP Antwort von Host erhalten auf Port %d\n" - -#, c-format -msgid "Could Not Compile Regular Expression" -msgstr "" - -#, c-format -msgid "SMTP %s - Invalid response '%s' to command '%s'\n" -msgstr "" - -#, c-format -msgid "Execute Error: %s\n" -msgstr "" - -msgid "no authuser specified, " -msgstr "" - -msgid "no authpass specified, " -msgstr "" - -#, c-format -msgid "sent %s\n" -msgstr "" - -#, fuzzy -msgid "recv() failed after AUTH LOGIN, " -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -#, fuzzy, c-format -msgid "received %s\n" -msgstr "Keine Daten empfangen %s\n" - -#, fuzzy -msgid "invalid response received after AUTH LOGIN, " -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -msgid "recv() failed after sending authuser, " -msgstr "" - -#, fuzzy -msgid "invalid response received after authuser, " -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -msgid "recv() failed after sending authpass, " -msgstr "" - -#, fuzzy -msgid "invalid response received after authpass, " -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -msgid "only authtype LOGIN is supported, " -msgstr "" - -#, fuzzy, c-format -msgid "SMTP %s - %s%.3f sec. response time%s%s|%s\n" -msgstr " - %s - %.3f Sekunden Antwortzeit %s%s|%s %s\n" - -#, c-format -msgid "Could not realloc() units [%d]\n" -msgstr "" - -#, fuzzy -msgid "Critical time must be a positive" -msgstr "Critical time muss ein positiver Integer sein" - -#, fuzzy -msgid "Warning time must be a positive" -msgstr "Warnung time muss ein positiver Integer sein" - -msgid "SSL support not available - install OpenSSL and recompile" -msgstr "" - -msgid "Set either -s/--ssl/--tls or -S/--starttls" -msgstr "Setze entweder -s/--ssl/--tls oder -S/--starttls" - -#, c-format -msgid "Connection closed by server before sending QUIT command\n" -msgstr "" - -#, fuzzy, c-format -msgid "recv() failed after QUIT." -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -#, c-format -msgid "Connection reset by peer." -msgstr "" - -#, fuzzy -msgid "This plugin will attempt to open an SMTP connection with the host." -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -#, c-format -msgid " String to expect in first line of server response (default: '%s')\n" -msgstr "" - -msgid "SMTP command (may be used repeatedly)" -msgstr "" - -msgid "Expected response to command (may be used repeatedly)" -msgstr "" - -msgid "FROM-address to include in MAIL command, required by Exchange 2000" -msgstr "" - -msgid "FQDN used for HELO" -msgstr "" - -msgid "Use PROXY protocol prefix for the connection." -msgstr "Benutze PROXY-Protokoll-Präfix für die Verbindung." - -msgid "Minimum number of days a certificate has to be valid." -msgstr "" - -#, fuzzy -msgid "Use SSL/TLS for the connection." -msgstr "Benutze SSL/TLS für die Verbindung." - -#, c-format -msgid " Sets default port to %d.\n" -msgstr " Setze den Default-Port auf %d.\n" - -msgid "Use STARTTLS for the connection." -msgstr "Benutze STARTTLS für die Verbindung." - -msgid "SMTP AUTH type to check (default none, only LOGIN supported)" -msgstr "" - -msgid "SMTP AUTH username" -msgstr "" - -msgid "SMTP AUTH password" -msgstr "" - -msgid "Send LHLO instead of HELO/EHLO" -msgstr "" - -msgid "Ignore failure when sending QUIT command to server" -msgstr "" - -msgid "STATE_CRITICAL, other errors return STATE_UNKNOWN. Successful" -msgstr "" - -msgid "connects, but incorrect response messages from the host result in" -msgstr "" - -msgid "STATE_WARNING return values." -msgstr "" - -msgid "Cannot malloc" -msgstr "" - -#, fuzzy, c-format -msgid "External command error: %s\n" -msgstr "Papierfehler" - -#, c-format -msgid "External command error with no output (return code: %d)\n" -msgstr "" - -#, fuzzy, c-format -msgid "No valid data returned (%s)\n" -msgstr "Keine Daten empfangen %s\n" - -msgid "Time duration between plugin calls is invalid" -msgstr "" - -msgid "Cannot asprintf()" -msgstr "" - -msgid "Cannot realloc()" -msgstr "" - -msgid "No previous data to calculate rate - assume okay" -msgstr "" - -#, fuzzy -msgid "Retries interval must be a positive integer" -msgstr "Time interval muss ein positiver Integer sein" - -#, fuzzy -msgid "Exit status must be a positive integer" -msgstr "Maxbytes muss ein positiver Integer sein" - -#, fuzzy, c-format -msgid "Could not reallocate labels[%d]" -msgstr "Konnte addr nicht zuweisen\n" - -#, fuzzy -msgid "Could not reallocate labels\n" -msgstr "Konnte·url·nicht·zuweisen\n" - -#, fuzzy, c-format -msgid "Could not reallocate units [%d]\n" -msgstr "Konnte·url·nicht·zuweisen\n" - -msgid "Could not realloc() units\n" -msgstr "" - -#, fuzzy -msgid "Rate multiplier must be a positive integer" -msgstr "Paketgröße muss ein positiver Integer sein" - -#, fuzzy -msgid "No host specified\n" -msgstr "" -"Kein Hostname angegeben\n" -"\n" - -#, fuzzy -msgid "No OIDs specified\n" -msgstr "" -"Kein Hostname angegeben\n" -"\n" - -#, c-format -msgid "Required parameter: %s\n" -msgstr "" - -msgid "Invalid seclevel" -msgstr "" - -msgid "Invalid SNMP version" -msgstr "" - -msgid "Unbalanced quotes\n" -msgstr "" - -#, c-format -msgid "multiplier set (%.1f), but input is not a number: %s" -msgstr "" - -msgid "Check status of remote machines and obtain system information via SNMP" -msgstr "" - -msgid "Use SNMP GETNEXT instead of SNMP GET" -msgstr "" - -msgid "SNMP protocol version" -msgstr "" - -msgid "SNMPv3 context" -msgstr "" - -msgid "SNMPv3 securityLevel" -msgstr "" - -msgid "SNMPv3 auth proto" -msgstr "" - -msgid "SNMPv3 priv proto (default DES)" -msgstr "" - -msgid "Optional community string for SNMP communication" -msgstr "" - -msgid "default is" -msgstr "" - -msgid "SNMPv3 username" -msgstr "" - -msgid "SNMPv3 authentication password" -msgstr "" - -msgid "SNMPv3 privacy password" -msgstr "" - -msgid "Object identifier(s) or SNMP variables whose value you wish to query" -msgstr "" - -msgid "" -"List of MIBS to be loaded (default = none if using numeric OIDs or 'ALL'" -msgstr "" - -msgid "for symbolic OIDs.)" -msgstr "" - -msgid "Delimiter to use when parsing returned data. Default is" -msgstr "" - -msgid "Any data on the right hand side of the delimiter is considered" -msgstr "" - -msgid "to be the data that should be used in the evaluation." -msgstr "" - -msgid "If the check returns a 0 length string or NULL value" -msgstr "" - -msgid "This option allows you to choose what status you want it to exit" -msgstr "" - -msgid "Excluding this option renders the default exit of 3(STATE_UNKNOWN)" -msgstr "" - -msgid "0 = OK" -msgstr "" - -#, fuzzy -msgid "1 = WARNING" -msgstr "WARNING" - -#, fuzzy -msgid "2 = CRITICAL" -msgstr "CRITICAL" - -#, fuzzy -msgid "3 = UNKNOWN" -msgstr "UNKNOWN" - -#, fuzzy -msgid "Warning threshold range(s)" -msgstr "Warning threshold Integer sein" - -#, fuzzy -msgid "Critical threshold range(s)" -msgstr "Critical threshold muss ein Integer sein" - -msgid "Enable rate calculation. See 'Rate Calculation' below" -msgstr "" - -msgid "" -"Converts rate per second. For example, set to 60 to convert to per minute" -msgstr "" - -msgid "Add/subtract the specified OFFSET to numeric sensor data" -msgstr "" - -msgid "Return OK state (for that OID) if STRING is an exact match" -msgstr "" - -msgid "" -"Return OK state (for that OID) if extended regular expression REGEX matches" -msgstr "" - -msgid "" -"Return OK state (for that OID) if case-insensitive extended REGEX matches" -msgstr "" - -msgid "Invert search result (CRITICAL if found)" -msgstr "" - -msgid "Prefix label for output from plugin" -msgstr "" - -msgid "Units label(s) for output data (e.g., 'sec.')." -msgstr "" - -msgid "Separates output on multiple OID requests" -msgstr "" - -msgid "Multiplies current value, 0 < n < 1 works as divider, defaults to 1" -msgstr "" - -msgid "C-style format string for float values (see option -M)" -msgstr "" - -msgid "" -"NOTE the final timeout value is calculated using this formula: " -"timeout_interval * retries + 5" -msgstr "" - -msgid "Number of retries to be used in the requests, default: " -msgstr "" - -msgid "Label performance data with OIDs instead of --label's" -msgstr "" - -msgid "Tell snmpget to not print errors encountered when parsing MIB files" -msgstr "" - -msgid "" -"This plugin uses the 'snmpget' command included with the NET-SNMP package." -msgstr "" - -msgid "" -"if you don't have the package installed, you will need to download it from" -msgstr "" - -msgid "http://net-snmp.sourceforge.net before you can use this plugin." -msgstr "" - -msgid "" -"- Multiple OIDs (and labels) may be indicated by a comma or space-delimited " -msgstr "" - -msgid "list (lists with internal spaces must be quoted)." -msgstr "" - -msgid "" -"- When checking multiple OIDs, separate ranges by commas like '-w " -"1:10,1:,:20'" -msgstr "" - -msgid "- Note that only one string and one regex may be checked at present" -msgstr "" - -msgid "" -"- All evaluation methods other than PR, STR, and SUBSTR expect that the value" -msgstr "" - -msgid "returned from the SNMP query is an unsigned integer." -msgstr "" - -msgid "Rate Calculation:" -msgstr "" - -msgid "In many places, SNMP returns counters that are only meaningful when" -msgstr "" - -msgid "calculating the counter difference since the last check. check_snmp" -msgstr "" - -msgid "saves the last state information in a file so that the rate per second" -msgstr "" - -msgid "can be calculated. Use the --rate option to save state information." -msgstr "" - -msgid "" -"On the first run, there will be no prior state - this will return with OK." -msgstr "" - -msgid "The state is uniquely determined by the arguments to the plugin, so" -msgstr "" - -msgid "changing the arguments will create a new state file." -msgstr "" - -#, fuzzy -msgid "Port number must be a positive integer" -msgstr "Port muss ein positiver Integer sein" - -#, c-format -msgid "Server answer: %s" -msgstr "" - -#, c-format -msgid "SSH CRITICAL - %s (protocol %s) version mismatch, expected '%s'\n" -msgstr "" - -#, c-format -msgid "" -"SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s'\n" -msgstr "" - -#, c-format -msgid "SSH OK - %s (protocol %s) | %s\n" -msgstr "" - -msgid "Try to connect to an SSH server at specified server and port" -msgstr "" - -msgid "" -"Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1)" -msgstr "" - -msgid "Alert if protocol doesn't match expected protocol version (ex: 2.0)" -msgstr "" - -#, c-format -msgid "Command: %s\n" -msgstr "" - -#, c-format -msgid "Format: %s\n" -msgstr "" - -#, c-format -msgid "total=%.0f, used=%.0f, free=%.0f\n" -msgstr "" - -#, c-format -msgid "total=%.0f, free=%.0f\n" -msgstr "" - -msgid "Error getting swap devices\n" -msgstr "" - -msgid "SWAP OK: No swap devices defined\n" -msgstr "" - -msgid "swapctl failed: " -msgstr "" - -msgid "Error in swapctl call\n" -msgstr "" - -#, c-format -msgid "SWAP %s - %d%% free (%dMB out of %dMB) %s|" -msgstr "" - -#, fuzzy -msgid "Warning threshold percentage must be <= 100!" -msgstr "Warning threshold Integer sein" - -#, fuzzy -msgid "Warning threshold be positive integer or percentage!" -msgstr "Warning threshold muss ein Integer oder ein Prozentwert sein" - -#, fuzzy -msgid "Critical threshold percentage must be <= 100!" -msgstr "Critical threshold muss ein Integer sein" - -#, fuzzy -msgid "Critical threshold be positive integer or percentage!" -msgstr "Critical threshold muss ein Integer oder ein Prozentwert sein!" - -msgid "" -"no-swap result must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) " -"or integer (0-3)." -msgstr "" - -#, fuzzy -msgid "Warning should be more than critical" -msgstr "Warning threshold muss ein Integer oder ein Prozentwert sein" - -msgid "Check swap space on local machine." -msgstr "" - -msgid "" -"Exit with WARNING status if less than INTEGER bytes of swap space are free" -msgstr "" - -msgid "Exit with WARNING status if less than PERCENT of swap space is free" -msgstr "" - -msgid "" -"Exit with CRITICAL status if less than INTEGER bytes of swap space are free" -msgstr "" - -msgid "Exit with CRITICAL status if less than PERCENT of swap space is free" -msgstr "" - -msgid "Conduct comparisons for all swap partitions, one by one" -msgstr "" - -msgid "" -"Resulting state when there is no swap regardless of thresholds. Default:" -msgstr "" - -msgid "" -"Both INTEGER and PERCENT thresholds can be specified, they are all checked." -msgstr "" - -msgid "On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s." -msgstr "" - -msgid "CRITICAL - Generic check_tcp called with unknown service\n" -msgstr "" - -msgid "With UDP checks, a send/expect string must be specified." -msgstr "" - -msgid "No arguments found" -msgstr "" - -msgid "Maxbytes must be a positive integer" -msgstr "Maxbytes muss ein positiver Integer sein" - -msgid "Refuse must be one of ok, warn, crit" -msgstr "" - -msgid "Mismatch must be one of ok, warn, crit" -msgstr "" - -msgid "Delay must be a positive integer" -msgstr "Delay muss ein positiver Integer sein" - -#, fuzzy -msgid "You must provide a server address" -msgstr "%s: Hostname muss angegeben werden\n" - -#, fuzzy -msgid "Invalid hostname, address or socket" -msgstr "Ungültige(r) Hostname/Adresse" - -#, fuzzy, c-format -msgid "" -"This plugin tests %s connections with the specified host (or unix socket).\n" -"\n" -msgstr "Dieses plugin testet Gameserververbindungen zum angegebenen Host." - -msgid "" -"Can use \\n, \\r, \\t or \\\\ in send or quit string. Must come before send " -"or quit option" -msgstr "" - -msgid "Default: nothing added to send, \\r\\n added to end of quit" -msgstr "" - -msgid "String to send to the server" -msgstr "" - -msgid "String to expect in server response" -msgstr "" - -msgid "(may be repeated)" -msgstr "" - -msgid "All expect strings need to occur in server response. Default is any" -msgstr "" - -msgid "String to send server to initiate a clean close of the connection" -msgstr "" - -msgid "Accept TCP refusals with states ok, warn, crit (default: crit)" -msgstr "" - -msgid "" -"Accept expected string mismatches with states ok, warn, crit (default: warn)" -msgstr "" - -#, fuzzy -msgid "Hide output from TCP socket" -msgstr "Konnte TCP socket nicht öffnen\n" - -msgid "Close connection once more than this number of bytes are received" -msgstr "" - -msgid "Seconds to wait between sending string and polling for response" -msgstr "" - -msgid "1st is #days for warning, 2nd is critical (if not specified - 0)." -msgstr "" - -msgid "Use SSL for the connection." -msgstr "" - -msgid "SSL server_name" -msgstr "" - -#, c-format -msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" -msgstr "" - -#, c-format -msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" -msgstr "" - -#, c-format -msgid "TIME UNKNOWN - no data received from server %s, port %d\n" -msgstr "" - -#, c-format -msgid "TIME %s - %d second response time|%s\n" -msgstr "" - -#, c-format -msgid "TIME %s - %lu second time difference|%s %s\n" -msgstr "" - -msgid "Warning thresholds must be a positive integer" -msgstr "Warning thresholds muss ein positiver Integer sein" - -msgid "Critical thresholds must be a positive integer" -msgstr "Critical thresholds muss ein positiver Integer sein" - -#, fuzzy -msgid "This plugin will check the time on the specified host." -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "Use UDP to connect, not TCP" -msgstr "" - -msgid "Time difference (sec.) necessary to result in a warning status" -msgstr "" - -msgid "Time difference (sec.) necessary to result in a critical status" -msgstr "" - -msgid "Response time (sec.) necessary to result in warning status" -msgstr "" - -msgid "Response time (sec.) necessary to result in critical status" -msgstr "" - -msgid "On Battery, Low Battery" -msgstr "" - -msgid "Online" -msgstr "" - -msgid "On Battery" -msgstr "" - -msgid ", Low Battery" -msgstr "" - -msgid ", Calibrating" -msgstr "" - -msgid ", Replace Battery" -msgstr "" - -msgid ", On Bypass" -msgstr "" - -msgid ", Overload" -msgstr "" - -msgid ", Trimming" -msgstr "" - -msgid ", Boosting" -msgstr "" - -msgid ", Charging" -msgstr "" - -msgid ", Discharging" -msgstr "" - -msgid ", Unknown" -msgstr "" - -#, fuzzy -msgid "UPS does not support any available options\n" -msgstr "IPv6 Unterstützung nicht vorhanden" - -#, fuzzy -msgid "Invalid response received from host" -msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -msgid "UPS name to long for buffer" -msgstr "" - -#, fuzzy, c-format -msgid "CRITICAL - no such UPS '%s' on that host\n" -msgstr "%s [%s nicht gefunden]" - -#, fuzzy -msgid "CRITICAL - UPS data is stale" -msgstr "CRITICAL - Serverdatum \"%100s\" konnte nicht verarbeitet werden" - -#, fuzzy, c-format -msgid "Unknown error: %s\n" -msgstr "Papierfehler" - -msgid "Error: unable to parse variable" -msgstr "" - -msgid "Unrecognized UPS variable" -msgstr "" - -msgid "Error : no UPS indicated" -msgstr "" - -#, fuzzy -msgid "" -"This plugin tests the UPS service on the specified host. Network UPS Tools" -msgstr "" -"Testet den DNS Dienst auf dem angegebenen Host mit dig\n" -"\n" - -msgid "from www.networkupstools.org must be running for this plugin to work." -msgstr "" - -msgid "Name of UPS" -msgstr "" - -msgid "Output of temperatures in Celsius" -msgstr "" - -msgid "Valid values for STRING are" -msgstr "" - -msgid "" -"This plugin attempts to determine the status of a UPS (Uninterruptible Power" -msgstr "" - -msgid "" -"Supply) on a local or remote host. If the UPS is online or calibrating, the" -msgstr "" - -msgid "" -"plugin will return an OK state. If the battery is on it will return a WARNING" -msgstr "" - -msgid "" -"state. If the UPS is off or has a low battery the plugin will return a " -"CRITICAL" -msgstr "" - -msgid "" -"You may also specify a variable to check (such as temperature, utility " -"voltage," -msgstr "" - -msgid "" -"battery load, etc.) as well as warning and critical thresholds for the value" -msgstr "" - -msgid "" -"of that variable. If the remote host has multiple UPS that are being " -"monitored" -msgstr "" - -msgid "you will have to use the --ups option to specify which UPS to check." -msgstr "" - -msgid "" -"This plugin requires that the UPSD daemon distributed with Russell Kroll's" -msgstr "" - -msgid "" -"Network UPS Tools be installed on the remote host. If you do not have the" -msgstr "" - -msgid "package installed on your system, you can download it from" -msgstr "" - -msgid "http://www.networkupstools.org" -msgstr "" - -#, fuzzy, c-format -msgid "Could not enumerate RD sessions: %d\n" -msgstr "Konnte·url·nicht·zuweisen\n" - -#, c-format -msgid "# users=%d" -msgstr "" - -msgid "Unable to read output" -msgstr "" - -#, c-format -msgid "USERS %s - %d users currently logged in |%s\n" -msgstr "" - -#, fuzzy -msgid "This plugin checks the number of users currently logged in on the local" -msgstr "" -"Dieses Plugin prüft den freien Speicher auf einem gemounteten Filesystem\n" -"und erzeugt einen Alarm wenn einer der angegebenen Schwellwerte " -"unterschritten wird.\n" -"\n" - -msgid "" -"system and generates an error if the number exceeds the thresholds specified." -msgstr "" - -msgid "Set WARNING status if more than INTEGER users are logged in" -msgstr "" - -msgid "Set CRITICAL status if more than INTEGER users are logged in" -msgstr "" - -msgid "" -"DEPRECATION WARNING: the -q switch (quiet output) is no longer \"quiet\"." -msgstr "" - -msgid "Nagios-compatible output is now always returned." -msgstr "" - -msgid "SMART commands are broken and have been disabled (See Notes in --help)." -msgstr "" - -msgid "" -"DEPRECATION WARNING: the -n switch (Nagios-compatible output) is now the" -msgstr "" - -msgid "default and will be removed from future releases." -msgstr "" - -#, fuzzy, c-format -msgid "CRITICAL - Couldn't open device %s: %s\n" -msgstr "CRITICAL - Device konnte nicht geöffnet werden: %s\n" - -#, c-format -msgid "CRITICAL - SMART_CMD_ENABLE\n" -msgstr "" - -#, c-format -msgid "CRITICAL - SMART_READ_VALUES: %s\n" -msgstr "" - -#, c-format -msgid "CRITICAL - %d Harddrive PreFailure%cDetected! %d/%d tests failed.\n" -msgstr "" - -#, c-format -msgid "WARNING - %d Harddrive Advisor%s Detected. %d/%d tests failed.\n" -msgstr "" - -#, c-format -msgid "OK - Operational (%d/%d tests passed)\n" -msgstr "" - -#, c-format -msgid "ERROR - Status '%d' unknown. %d/%d tests passed\n" -msgstr "" - -#, c-format -msgid "OffLineStatus=%d {%s}, AutoOffLine=%s, OffLineTimeout=%d minutes\n" -msgstr "" - -#, c-format -msgid "OffLineCapability=%d {%s %s %s}\n" -msgstr "" - -#, c-format -msgid "SmartRevision=%d, CheckSum=%d, SmartCapability=%d {%s %s}\n" -msgstr "" - -#, c-format -msgid "CRITICAL - %s: %s\n" -msgstr "" - -#, c-format -msgid "OK - Command sent (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - SMART_READ_THRESHOLDS: %s\n" -msgstr "" - -#, c-format -msgid "" -"This plugin checks a local hard drive with the (Linux specific) SMART " -"interface [http://smartlinux.sourceforge.net/smart/index.php]." -msgstr "" - -msgid "Select device DEVICE" -msgstr "" - -msgid "" -"Note: if the device is specified without this option, any further option will" -msgstr "" - -msgid "be ignored." -msgstr "" - -msgid "" -"The SMART command modes (-i/--immediate, -0/--auto-off and -1/--auto-on) were" -msgstr "" - -msgid "" -"broken in an underhand manner and have been disabled. You can use smartctl" -msgstr "" - -msgid "instead:" -msgstr "" - -msgid "-0/--auto-off: use \"smartctl --offlineauto=off\"" -msgstr "" - -msgid "-1/--auto-on: use \"smartctl --offlineauto=on\"" -msgstr "" - -msgid "-i/--immediate: use \"smartctl --test=offline\"" -msgstr "" - -#, fuzzy -msgid "No data returned from command\n" -msgstr "Keine Daten empfangen %s\n" - -msgid "" -"Timeout result must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) " -"or integer (0-3)." -msgstr "" - -msgid "" -"Ok must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or integer " -"(0-3)." -msgstr "" - -msgid "" -"Warning must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" - -msgid "" -"Critical must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" - -msgid "" -"Unknown must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" - -msgid "Require path to command" -msgstr "" - -msgid "" -"Negates the status of a plugin (returns OK for CRITICAL and vice-versa)." -msgstr "" - -msgid "Additional switches can be used to control which state becomes what." -msgstr "" - -msgid "Keep timeout longer than the plugin timeout to retain CRITICAL status." -msgstr "" - -msgid "Custom result on Negate timeouts; see below for STATUS definition\n" -msgstr "" - -#, c-format -msgid "" -" STATUS can be 'OK', 'WARNING', 'CRITICAL' or 'UNKNOWN' without single\n" -msgstr "" - -#, c-format -msgid "" -" quotes. Numeric values are accepted. If nothing is specified, permutes\n" -msgstr "" - -#, c-format -msgid " OK and CRITICAL.\n" -msgstr "" - -#, c-format -msgid "" -" Substitute output text as well. Will only substitute text in CAPITALS\n" -msgstr "" - -msgid "Run check_ping and invert result. Must use full path to plugin" -msgstr "" - -msgid "This will return OK instead of WARNING and UNKNOWN instead of CRITICAL" -msgstr "" - -msgid "" -"This plugin is a wrapper to take the output of another plugin and invert it." -msgstr "" - -msgid "The full path of the plugin must be provided." -msgstr "" - -msgid "If the wrapped plugin returns OK, the wrapper will return CRITICAL." -msgstr "" - -msgid "If the wrapped plugin returns CRITICAL, the wrapper will return OK." -msgstr "" - -msgid "Otherwise, the output state of the wrapped plugin is unchanged." -msgstr "" - -msgid "" -"Using timeout-result, it is possible to override the timeout behaviour or a" -msgstr "" - -msgid "plugin by setting the negate timeout a bit lower." -msgstr "" - -#, fuzzy, c-format -msgid "%s - Socket timeout after %d seconds\n" -msgstr "CRITICAL - Dokumentendatum ist %d Sekunden in der Zukunft\n" - -#, fuzzy, c-format -msgid "%s - Abnormal timeout after %d seconds\n" -msgstr "CRITICAL - Dokumentendatum ist %d Sekunden in der Zukunft\n" - -msgid "Send failed" -msgstr "" - -#, fuzzy -msgid "No data was received from host!" -msgstr "Keine Daten empfangen %s\n" - -msgid "Socket creation failed" -msgstr "" - -msgid "Supplied path too long unix domain socket" -msgstr "" - -msgid "Receive failed" -msgstr "" - -#, fuzzy, c-format -msgid "Invalid hostname/address - %s" -msgstr "" -"Ungültige(r) Name/Adresse: %s\n" -"\n" - -#, fuzzy -msgid "Could not malloc argv array in popen()" -msgstr "Konnte addr nicht zuweisen\n" - -#, fuzzy -msgid "CRITICAL - You need more args!!!" -msgstr "CRITICAL - Fehler: %s\n" - -#, fuzzy -msgid "Cannot catch SIGCHLD" -msgstr "Konnte SIGALRM nicht erhalten" - -#, fuzzy, c-format -msgid "CRITICAL - Plugin timed out after %d seconds\n" -msgstr "CRITICAL - Dokumentendatum ist %d Sekunden in der Zukunft\n" - -msgid "CRITICAL - popen timeout received, but no child process" -msgstr "" - -#, c-format -msgid "" -"%s UNKNOWN - No data received from host\n" -"CMD: %s\n" -msgstr "" - -msgid "" -"This plugin wraps the text output of another command (plugin) in HTML " -msgstr "" - -msgid "" -"tags, thus displaying the child plugin's output as a clickable link in " -"compatible" -msgstr "" - -msgid "" -"monitoring status screen. This plugin returns the status of the invoked " -"plugin." -msgstr "" - -msgid "" -"Pay close attention to quoting to ensure that the shell passes the expected" -msgstr "" - -msgid "data to the plugin. For example, in:" -msgstr "" - -msgid "urlize http://example.com/ check_http -H example.com -r 'two words'" -msgstr "" - -msgid "the shell will remove the single quotes and urlize will see:" -msgstr "" - -msgid "urlize http://example.com/ check_http -H example.com -r two words" -msgstr "" - -msgid "You probably want:" -msgstr "" - -msgid "urlize http://example.com/ \"check_http -H example.com -r 'two words'\"" -msgstr "" - -#, fuzzy -msgid "failed realloc in strpcpy\n" -msgstr "konnte keinen Speicher für '%s' reservieren\n" - -#, fuzzy -msgid "failed malloc in strscat\n" -msgstr "konnte keinen Speicher für '%s' reservieren\n" - -#, fuzzy -msgid "failed malloc in xvasprintf\n" -msgstr "konnte keinen Speicher für '%s' reservieren\n" - -#, c-format -msgid "" -" %s (-h | --help) for detailed help\n" -" %s (-V | --version) for version information\n" -msgstr "" - -msgid "" -"\n" -"Options:\n" -" -h, --help\n" -" Print detailed help screen\n" -" -V, --version\n" -" Print version information\n" -msgstr "" - -#, c-format -msgid "" -" -H, --hostname=ADDRESS\n" -" Host name, IP Address, or unix socket (must be an absolute path)\n" -" -%c, --port=INTEGER\n" -" Port number (default: %s)\n" -msgstr "" - -msgid "" -" -4, --use-ipv4\n" -" Use IPv4 connection\n" -" -6, --use-ipv6\n" -" Use IPv6 connection\n" -msgstr "" - -msgid "" -" -v, --verbose\n" -" Show details for command-line debugging (output may be truncated by\n" -" the monitoring system)\n" -msgstr "" - -msgid "" -" -w, --warning=DOUBLE\n" -" Response time to result in warning status (seconds)\n" -" -c, --critical=DOUBLE\n" -" Response time to result in critical status (seconds)\n" -msgstr "" - -msgid "" -" -w, --warning=RANGE\n" -" Warning range (format: start:end). Alert if outside this range\n" -" -c, --critical=RANGE\n" -" Critical range\n" -msgstr "" - -#, c-format -msgid "" -" -t, --timeout=INTEGER\n" -" Seconds before connection times out (default: %d)\n" -msgstr "" - -#, c-format -msgid "" -" -t, --timeout=INTEGER\n" -" Seconds before plugin times out (default: %d)\n" -msgstr "" - -msgid "" -" --extra-opts=[section][@file]\n" -" Read options from an ini file. See\n" -" https://www.monitoring-plugins.org/doc/extra-opts.html\n" -" for usage and examples.\n" -msgstr "" - -msgid "" -" See:\n" -" https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT\n" -" for THRESHOLD format and examples.\n" -msgstr "" - -msgid "" -"\n" -"Send email to help@monitoring-plugins.org if you have questions regarding\n" -"use of this software. To submit patches or suggest improvements, send email\n" -"to devel@monitoring-plugins.org\n" -"\n" -msgstr "" - -msgid "" -"\n" -"The Monitoring Plugins come with ABSOLUTELY NO WARRANTY. You may " -"redistribute\n" -"copies of the plugins under the terms of the GNU General Public License.\n" -"For more information about these matters, see the file named COPYING.\n" -msgstr "" - -#, c-format -msgid "Error: Could not get hardware address of interface '%s'\n" -msgstr "" - -#, c-format -msgid "Error: if_nametoindex error - %s.\n" -msgstr "" - -#, c-format -msgid "Error: Couldn't get hardware address from %s. sysctl 1 error - %s.\n" -msgstr "" - -#, c-format -msgid "" -"Error: Couldn't get hardware address from interface %s. malloc error - %s.\n" -msgstr "" - -#, c-format -msgid "Error: Couldn't get hardware address from %s. sysctl 2 error - %s.\n" -msgstr "" - -#, c-format -msgid "" -"Error: can't find unit number in interface_name (%s) - expecting TypeNumber " -"eg lnc0.\n" -msgstr "" - -#, c-format -msgid "" -"Error: can't read MAC address from DLPI streams interface for device %s unit " -"%d.\n" -msgstr "" - -#, c-format -msgid "" -"Error: can't get MAC address for this architecture. Use the --mac option.\n" -msgstr "" - -#, c-format -msgid "Error: Cannot determine IP address of interface %s\n" -msgstr "" - -#, c-format -msgid "Error: Cannot get interface IP address on this platform.\n" -msgstr "" - -#, c-format -msgid "Pretending to be relay client %s\n" -msgstr "" - -#, c-format -msgid "DHCPDISCOVER to %s port %d\n" -msgstr "" - -#, c-format -msgid "Result=ERROR\n" -msgstr "" - -#, c-format -msgid "Result=OK\n" -msgstr "" - -#, c-format -msgid "DHCPOFFER from IP address %s" -msgstr "" - -#, c-format -msgid " via %s\n" -msgstr "" - -#, c-format -msgid "" -"DHCPOFFER XID (%u) did not match DHCPDISCOVER XID (%u) - ignoring packet\n" -msgstr "" - -#, c-format -msgid "DHCPOFFER hardware address did not match our own - ignoring packet\n" -msgstr "" - -#, c-format -msgid "Total responses seen on the wire: %d\n" -msgstr "" - -#, fuzzy, c-format -msgid "Valid responses for this machine: %d\n" -msgstr "Keine Antwort vom Host \n" - -#, c-format -msgid "send_dhcp_packet result: %d\n" -msgstr "" - -#, fuzzy, c-format -msgid "No (more) data received (nfound: %d)\n" -msgstr "Keine Daten empfangen %s\n" - -#, c-format -msgid "recvfrom() failed, " -msgstr "" - -#, c-format -msgid "receive_dhcp_packet() result: %d\n" -msgstr "" - -#, c-format -msgid "receive_dhcp_packet() source: %s\n" -msgstr "" - -#, c-format -msgid "Error: Could not create socket!\n" -msgstr "" - -#, c-format -msgid "Error: Could not set reuse address option on DHCP socket!\n" -msgstr "" - -#, c-format -msgid "Error: Could not set broadcast option on DHCP socket!\n" -msgstr "" - -#, c-format -msgid "" -"Error: Could not bind socket to interface %s. Check your privileges...\n" -msgstr "" - -#, c-format -msgid "" -"Error: Could not bind to DHCP socket (port %d)! Check your privileges...\n" -msgstr "" - -#, c-format -msgid "Requested server address: %s\n" -msgstr "" - -#, c-format -msgid "Lease Time: Infinite\n" -msgstr "" - -#, c-format -msgid "Lease Time: %lu seconds\n" -msgstr "" - -#, c-format -msgid "Renewal Time: Infinite\n" -msgstr "" - -#, c-format -msgid "Renewal Time: %lu seconds\n" -msgstr "" - -#, c-format -msgid "Rebinding Time: Infinite\n" -msgstr "" - -#, c-format -msgid "Rebinding Time: %lu seconds\n" -msgstr "" - -#, c-format -msgid "Added offer from server @ %s" -msgstr "" - -#, c-format -msgid " of IP address %s\n" -msgstr "" - -#, c-format -msgid "DHCP Server Match: Offerer=%s" -msgstr "" - -#, c-format -msgid " Requested=%s" -msgstr "" - -#, c-format -msgid " (duplicate)" -msgstr "" - -#, c-format -msgid "\n" -msgstr "" - -#, c-format -msgid "No DHCPOFFERs were received.\n" -msgstr "" - -#, c-format -msgid "Received %d DHCPOFFER(s)" -msgstr "" - -#, c-format -msgid ", Rogue DHCP Server detected! Server %s" -msgstr "" - -#, c-format -msgid " offered %s \n" -msgstr "" - -#, c-format -msgid ", %s%d of %d requested servers responded" -msgstr "" - -#, c-format -msgid ", requested address (%s) was %soffered" -msgstr "" - -msgid "not " -msgstr "" - -#, c-format -msgid ", max lease time = " -msgstr "" - -#, c-format -msgid "Infinity" -msgstr "" - -msgid "Got unexpected non-option argument" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in check_ctrl: %s.\n" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in put_ctrl/putmsg(): %s.\n" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in put_both/putmsg().\n" -msgstr "" - -#, c-format -msgid "" -"Error: DLPI stream API failed to get MAC in dl_attach_req/open(%s..): %s.\n" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in dl_bind/check_ctrl(): %s.\n" -msgstr "" - -#, c-format -msgid "Hardware address: " -msgstr "" - -msgid "This plugin tests the availability of DHCP servers on a network." -msgstr "" - -msgid "IP address of DHCP server that we must hear from" -msgstr "" - -msgid "IP address that should be offered by at least one DHCP server" -msgstr "" - -msgid "Seconds to wait for DHCPOFFER before timeout occurs" -msgstr "" - -msgid "Interface to to use for listening (i.e. eth0)" -msgstr "" - -msgid "MAC address to use in the DHCP request" -msgstr "" - -msgid "Unicast testing: mimic a DHCP relay, requires -s" -msgstr "" - -msgid "" -"Only requested DHCP server may response (rogue DHCP server detection), " -"requires -s" -msgstr "" - -msgid "specify a target" -msgstr "" - -msgid "Use IPv4 (default) or IPv6 to communicate with the targets" -msgstr "" - -#, fuzzy -msgid "warning threshold (currently " -msgstr "Warning threshold Integer sein" - -#, fuzzy -msgid "critical threshold (currently " -msgstr "Critical threshold muss ein Integer sein" - -msgid "" -"RTA, round trip average, mode warning,critical, ex. 100ms,200ms unit in ms" -msgstr "" - -msgid "packet loss mode, ex. 40%,50% , unit in %" -msgstr "" - -msgid "jitter mode warning,critical, ex. 40.000ms,50.000ms , unit in ms " -msgstr "" - -msgid "MOS mode, between 0 and 4.4 warning,critical, ex. 3.5,3.0" -msgstr "" - -msgid "score mode, max value 100 warning,critical, ex. 80,70 " -msgstr "" - -msgid "detect out of order ICMP packts " -msgstr "" - -#, fuzzy -msgid "specify a source IP address or device name" -msgstr "Hostname oder Serveradresse muss angegeben werden" - -msgid "number of packets to send (currently " -msgstr "" - -msgid "max packet interval (currently " -msgstr "" - -msgid "max target interval (currently " -msgstr "" - -msgid "number of alive hosts required for success" -msgstr "" - -msgid "TTL on outgoing packets (currently " -msgstr "" - -msgid "timeout value (seconds, currently " -msgstr "" - -msgid "Number of icmp data bytes to send" -msgstr "" - -msgid "Packet size will be data bytes + icmp header (currently" -msgstr "" - -msgid "verbose" -msgstr "" - -msgid "If none of R,P,J,M,S or O is specified, default behavior is -R -P" -msgstr "" - -msgid "The -H switch is optional. Naming a host (or several) to check is not." -msgstr "" - -msgid "" -"Threshold format for -w and -c is 200.25,60% for 200.25 msec RTA and 60%" -msgstr "" - -msgid "packet loss. The default values should work well for most users." -msgstr "" - -msgid "" -"You can specify different RTA factors using the standardized abbreviations" -msgstr "" - -msgid "" -"us (microseconds), ms (milliseconds, default) or just plain s for seconds." -msgstr "" - -msgid "The -v switch can be specified several times for increased verbosity." -msgstr "" - -#, fuzzy, c-format -#~ msgid "%s - Plugin timed out after %d seconds\n" -#~ msgstr "CRITICAL - Dokumentendatum ist %d Sekunden in der Zukunft\n" - -#, fuzzy -#~ msgid "Critical Process Count must be an integer!" -#~ msgstr "Critical threshold muss ein Integer sein" - -#, fuzzy -#~ msgid "Warning Process Count must be an integer!" -#~ msgstr "Warning threshold Integer sein" - -#, fuzzy -#~ msgid "CRITICAL - Cannot retrieve server certificate." -#~ msgstr "CRITICAL - Konnte kein Serverzertifikat erhalten\n" - -#~ msgid "CRITICAL - Cannot retrieve server certificate.\n" -#~ msgstr "CRITICAL - Konnte kein Serverzertifikat erhalten\n" - -#~ msgid "Invalid HTTP response received from host\n" -#~ msgstr "Ungültige HTTP Antwort von Host empfangen\n" - -#~ msgid "Invalid HTTP response received from host on port %d\n" -#~ msgstr "Ungültige HTTP Antwort von Host erhalten auf Port %d\n" - -#~ msgid "HTTP CRITICAL: %s\n" -#~ msgstr "HTTP CRITICAL: %s\n" - -#~ msgid "HTTP WARNING: %s\n" -#~ msgstr "HTTP WARNING: %s\n" - -#~ msgid "HTTP UNKNOWN" -#~ msgstr "HTTP UNKNOWN" - -#~ msgid "HTTP OK" -#~ msgstr "HTTP OK" - -#~ msgid "HTTP WARNING" -#~ msgstr "HTTP WARNING" - -#~ msgid "HTTP CRITICAL" -#~ msgstr "HTTP CRITICAL" - -#, fuzzy -#~ msgid "HTTP OK %s - %.3f second response time %s|%s %s\n" -#~ msgstr "HTTP OK %s - %.3f Sekunde Antwortzeit %s%s|%s %s\n" - -#~ msgid "HTTP CRITICAL - string not found%s|%s %s\n" -#~ msgstr "HTTP CRITICAL - Text nicht gefunden%s|%s %s\n" - -#, fuzzy -#~ msgid "HTTP UNKNOWN - could not allocate url\n" -#~ msgstr "HTTP UNKNOWN - Konnte·url·nicht·zuweisen\n" - -#, fuzzy -#~ msgid "snmpget returned an error status" -#~ msgstr "dig hat einen Fehler zurückgegeben" - -#, fuzzy -#~ msgid "Invalid critical threshold" -#~ msgstr "Critical threshold muss ein Integer sein" - -#, fuzzy -#~ msgid "Invalid warning threshold" -#~ msgstr "Warning threshold Integer sein" - -#, fuzzy -#~ msgid "HTTP WARNING: %s - %.3f second response time %s|%s %s\n" -#~ msgstr "HTTP WARNING: %s - %.3f Sekunden Antwortzeit %s%s|%s %s\n" - -#, fuzzy -#~ msgid "%s does not exist\n" -#~ msgstr "%s [%s nicht gefunden]" - -#, fuzzy -#~ msgid "Unknown error" -#~ msgstr "Papierfehler" - -#, fuzzy -#~ msgid "Unknown argument - %s" -#~ msgstr "" -#~ "%s: Unbekanntes Argument: %s\n" -#~ "\n" - -#~ msgid "" -#~ " -1, --proto1\n" -#~ " tell ssh to use Protocol 1\n" -#~ " -2, --proto2\n" -#~ " tell ssh to use Protocol 2\n" -#~ " -S, --skiplines=n\n" -#~ " Ignore first n lines on STDERR (to suppress a logon banner)\n" -#~ " -f\n" -#~ " tells ssh to fork rather than create a tty\n" -#~ msgstr "" -#~ " -1, --proto1\n" -#~ " ssh anweisen Protokoll 1 zu verwenden\n" -#~ " -2, --proto2\n" -#~ " ssh anweisen Protokoll 2 zu verwenden\n" -#~ " -S, --skiplines=n\n" -#~ " Ignoriere die ersten n Zeilen auf STDERR (um Logon Banner zu " -#~ "unterdrücken)\n" -#~ " -f\n" -#~ " ssh anweisen fork zu nutzen statt ein tty zu erzeugen\n" - -#~ msgid "" -#~ " -C, --command='COMMAND STRING'\n" -#~ " command to execute on the remote machine\n" -#~ " -l, --logname=USERNAME\n" -#~ " SSH user name on remote host [optional]\n" -#~ " -i, --identity=KEYFILE\n" -#~ " identity of an authorized key [optional]\n" -#~ " -O, --output=FILE\n" -#~ " external command file for nagios [optional]\n" -#~ " -s, --services=LIST\n" -#~ " list of nagios service names, separated by ':' [optional]\n" -#~ " -n, --name=NAME\n" -#~ " short name of host in nagios configuration [optional]\n" -#~ msgstr "" -#~ " -C, --command='COMMAND STRING'\n" -#~ " Befehl der auf der entfernten Maschine ausgeführt werden soll\n" -#~ " -l, --logname=USERNAME\n" -#~ " SSH user name auf dem entfernten Host [optional]\n" -#~ " -i, --identity=KEYFILE\n" -#~ " zu verwendende Schlüsseldatei [optional]\n" -#~ " -O, --output=FILE\n" -#~ " externe Befehlsdatei für nagios [optional]\n" -#~ " -s, --services=LIST\n" -#~ " Liste von nagios Servicenamen, getrennt durch ':' [optional]\n" -#~ " -n, --name=NAME\n" -#~ " Shortname des Hosts in der nagios Konfiguration [optional]\n" - -#, fuzzy -#~ msgid "Warning inode threshold must be percentage!\n" -#~ msgstr "Warning threshold muss ein Integer oder ein Prozentwert sein!\n" - -#, fuzzy -#~ msgid "Critical inode threshold must be percentage!\n" -#~ msgstr "Critical threshold muss ein Integer oder ein Prozentwert sein!\n" - -#~ msgid "INPUT ERROR: No thresholds specified" -#~ msgstr "FEHLER: Kein Schwellwert angegeben" - -#~ msgid "" -#~ "INPUT ERROR: C_DFP (%f) should be less than W_DFP (%.1f) and both should " -#~ "be between zero and 100 percent, inclusive" -#~ msgstr "" -#~ "INPUT ERROR: C_DFP (%f) sollte kleiner sein als W_DFP (%.1f) und beide " -#~ "sollten zwischen 0 und 100 Prozent liegen" - -#, fuzzy -#~ msgid "" -#~ "INPUT ERROR: C_IDFP (%f) should be less than W_IDFP (%.1f) and both " -#~ "should be between zero and 100 percent, inclusive" -#~ msgstr "" -#~ "INPUT ERROR: C_DFP (%f) sollte kleiner sein als W_DFP (%.1f) und beide " -#~ "sollten zwischen 0 und 100 Prozent liegen" - -#~ msgid "" -#~ "INPUT ERROR: C_DF (%lu) should be less than W_DF (%lu) and both should be " -#~ "greater than zero" -#~ msgstr "" -#~ "INPUT ERROR: C_DF (%lu) sollte kleiner sein als W_DF (%lu) und beide " -#~ "sollten größer als 0 sein" - -#, fuzzy -#~ msgid "No response from host on port %d\n" -#~ msgstr "Ungültige HTTP Antwort von Host erhalten auf Port %d\n" - -#, fuzzy -#~ msgid "Invalid response received from host on port %d\n" -#~ msgstr "Ungültige HTTP Antwort von Host erhalten auf Port %d\n" - -#~ msgid "%.3f seconds response time (%s)" -#~ msgstr "%.3f Sekunden Antwortzeit (%s)" - -#~ msgid "" -#~ " -w, --warning=INTEGER\n" -#~ " Exit with WARNING status if less than INTEGER --units of disk are " -#~ "free\n" -#~ " -w, --warning=PERCENT%%\n" -#~ " Exit with WARNING status if less than PERCENT of disk space is free\n" -#~ " -c, --critical=INTEGER\n" -#~ " Exit with CRITICAL status if less than INTEGER --units of disk are " -#~ "free\n" -#~ " -c, --critical=PERCENT%%\n" -#~ " Exit with CRITICAL status if less than PERCENT of disk space is free\n" -#~ " -C, --clear\n" -#~ " Clear thresholds\n" -#~ msgstr "" -#~ " -w, --warning=INTEGER\n" -#~ " meldet Status WARNING, wenn weniger als INTEGER --Einheiten frei\n" -#~ " -w, --warning=PERCENT%%\n" -#~ " meldet Status WARNING, wenn weniger als PERCENT --Plattenplatz frei\n" -#~ " -c, --critical=INTEGER\n" -#~ " meldet Status CRITICAL, wenn weniger als INTEGER --Einheiten frei\n" -#~ " -c, --critical=PERCENT%%\n" -#~ " meldet Status CRITICAL, wenn weniger als PERCENT --Plattenplatz frei\n" -#~ " -C, --clear\n" -#~ " Schwellwerte löschen\n" - -#~ msgid "" -#~ "Examples:\n" -#~ " check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /\n" -#~ " Checks /tmp and /var at 10%,5% and / at 100MB, 50MB\n" -#~ msgstr "" -#~ "Beispiel:\n" -#~ " check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /\n" -#~ " Prüft /tmp und /var mit 10%,5% und / mit 100MB, 50MB\n" - -#~ msgid "" -#~ "This plugin uses the nslookup program to obtain the IP address\n" -#~ "for the given host/domain query. A optional DNS server to use may\n" -#~ "be specified. If no DNS server is specified, the default server(s)\n" -#~ "specified in /etc/resolv.conf will be used.\n" -#~ "\n" -#~ msgstr "" -#~ "Dieses Plugin nutzt nslookup, um die IP-Adresse des angegebenen\n" -#~ "Hosts zu erfragen. Optional kann ein DNS-Server angegeben werden\n" -#~ "Wenn kein DNS-Server angegeben wird, so wird der Standardserver aus\n" -#~ "/etc/resolv.conf genutzt.\n" -#~ "\n" - -#~ msgid "HTTP CRITICAL - Could not make SSL connection\n" -#~ msgstr "HTTP CRITICAL - Konnte keine SSL Verbindung herstellen\n" - -#~ msgid "Client Certificate Required\n" -#~ msgstr "Clientzertifikat benötigt\n" - -#~ msgid "CRITICAL - Cannot create SSL context.\n" -#~ msgstr "CRITICAL - Konnte SSL Kontext nicht erzeugen.\n" - -#~ msgid "CRITICAL - Cannot initiate SSL handshake.\n" -#~ msgstr "CRITICAL - Konnte SSL Handshake nicht starten.\n" - -#, fuzzy -#~ msgid "Failed to allocate memory for hostname" -#~ msgstr "konnte keinen Speicher für '%s' reservieren\n" - -#, fuzzy -#~ msgid "CRITICAL - %d of %d hosts are alive\n" -#~ msgstr "CRITICAL - Serverdatum \"%100s\" konnte nicht verarbeitet werden" - -#, fuzzy -#~ msgid "%s has no address data\n" -#~ msgstr "Nameserver %s hat keine Datensätze\n" - -#, fuzzy -#~ msgid "CRITICAL - Could not make SSL connection\n" -#~ msgstr "HTTP CRITICAL - Konnte keine SSL Verbindung herstellen\n" - -#, fuzzy -#~ msgid "Unexpected response from host: %s\n" -#~ msgstr "Keine Antwort vom Host \n" - -#, fuzzy -#~ msgid "Certificate expires today (%s).\n" -#~ msgstr "Clientzertifikat benötigt\n" - -#, fuzzy -#~ msgid "ERROR: Cannot create SSL context.\n" -#~ msgstr "CRITICAL - Konnte SSL Kontext nicht erzeugen.\n" - -#, fuzzy -#~ msgid "ERROR: Cannot retrieve server certificate.\n" -#~ msgstr "CRITICAL - Konnte kein Serverzertifikat erhalten\n" - -#, fuzzy -#~ msgid "ERROR: Cannot initiate SSL handshake.\n" -#~ msgstr "CRITICAL - Konnte SSL Handshake nicht starten.\n" - -#~ msgid "" -#~ "%s: Unknown argument: %s\n" -#~ "\n" -#~ msgstr "" -#~ "%s: Unbekanntes Argument: %s\n" -#~ "\n" - -#~ msgid "Critical time must be a nonnegative integer" -#~ msgstr "Critical time muss ein positiver Integer sein" - -#~ msgid "Time interval must be a nonnegative integer" -#~ msgstr "Time interval muss ein positiver Integer sein" - -#~ msgid "check_http: invalid option - SSL is not available\n" -#~ msgstr "check_http: ungültige Option - SSL ist nicht verfügbar\n" - -#~ msgid "invalid hostname/address" -#~ msgstr "Ungültige(r) Hostname/Adresse" diff --git a/po/fr.gmo b/po/fr.gmo deleted file mode 100644 index d59d6cf..0000000 Binary files a/po/fr.gmo and /dev/null differ diff --git a/po/fr.po b/po/fr.po deleted file mode 100644 index 40fbb67..0000000 --- a/po/fr.po +++ /dev/null @@ -1,5445 +0,0 @@ -# translation of fr.po to -# Messages français pour Nagios Plugins -# Copyright (C) 2003-2023 Nagios Plugin Development Group -# This file is distributed under the same license as the nagiosplug package. -# -# Karl DeBisschop , 2003. -# Benoit Mortier , 2004, 2006, 2007. -# Thomas Guyot-Sionnest , 2007. -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" -"POT-Creation-Date: 2023-10-01 15:10+0200\n" -"PO-Revision-Date: 2010-04-21 23:38-0400\n" -"Last-Translator: \n" -"Language-Team: Monitoring Plugin Development Team \n" -"Language: fr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: KBabel 1.11.4\n" - -msgid "Could not parse arguments" -msgstr "Impossible de décomposer les arguments" - -msgid "Cannot catch SIGALRM" -msgstr "Impossible d'obtenir le signal SIGALRM" - -#, fuzzy, c-format -msgid "SSH connection failed: %s\n" -msgstr "L'exécution de la commande à distance %s à échoué\n" - -#, c-format -msgid "Remote command execution failed: %s\n" -msgstr "L'exécution de la commande à distance %s à échoué\n" - -#, c-format -msgid "%s - check_by_ssh: Remote command '%s' returned status %d\n" -msgstr "" - -#, c-format -msgid "SSH WARNING: could not open %s\n" -msgstr "SSH AVERTISSEMENT: impossible d'ouvrir %s\n" - -#, c-format -msgid "%s: Error parsing output\n" -msgstr "%s: Erreur d'analyse du résultat\n" - -msgid "Timeout interval must be a positive integer" -msgstr "Le délai d'attente doit être un entier positif" - -msgid "Port must be a positive integer" -msgstr "Le numéro du port doit être un entier positif" - -msgid "skip-stdout argument must be an integer" -msgstr "Le nombres de lignes à sauter (skip-stdout) doit être un entier" - -msgid "skip-stderr argument must be an integer" -msgstr "Le nombres de lignes à sauter (skip-stderr) doit être un entier" - -#, c-format -msgid "%s: You must provide a host name\n" -msgstr "%s: Vous devez fournir un nom d'hôte\n" - -msgid "No remotecmd" -msgstr "Pas de commande distante" - -#, c-format -msgid "%s: Argument limit of %d exceeded\n" -msgstr "" - -msgid "Can not (re)allocate 'commargv' buffer\n" -msgstr "Impossible de réallouer le tampon 'commargv'\n" - -#, c-format -msgid "" -"%s: In passive mode, you must provide a service name for each command.\n" -msgstr "" -"%s: En mode passif, vous devez fournir un service pour chaque commande.\n" - -#, fuzzy, c-format -msgid "" -"%s: In passive mode, you must provide the host short name from the " -"monitoring configs.\n" -msgstr "" -"%s: En mode passif, vous devez fournir le nom court du hôte mentionné dans " -"la configuration de nagios.\n" - -#, c-format -msgid "This plugin uses SSH to execute commands on a remote host" -msgstr "Ce plugin utilise SSH pour exécuter des commandes sur un hôte distant" - -msgid "tell ssh to use Protocol 1 [optional]" -msgstr "dire à ssh d'utiliser le protocole version 1 [optionnel]" - -msgid "tell ssh to use Protocol 2 [optional]" -msgstr "dire à ssh d'utiliser le protocole 2 [optionnel]" - -msgid "Ignore all or (if specified) first n lines on STDOUT [optional]" -msgstr "" - -msgid "Ignore all or (if specified) first n lines on STDERR [optional]" -msgstr "" - -msgid "Exit with an warning, if there is an output on STDERR" -msgstr "" - -msgid "" -"tells ssh to fork rather than create a tty [optional]. This will always " -"return OK if ssh is executed" -msgstr "" - -msgid "command to execute on the remote machine" -msgstr "commande à exécuter sur la machine distante" - -msgid "SSH user name on remote host [optional]" -msgstr "Nom d'utilisateur ssh sur la machine distante [optionnel]" - -msgid "identity of an authorized key [optional]" -msgstr "Identité de la clé autorisée [optionnel]" - -#, fuzzy -msgid "external command file for monitoring [optional]" -msgstr "commande externe pour nagios [optionnel]" - -#, fuzzy -msgid "list of monitoring service names, separated by ':' [optional]" -msgstr "liste des services nagios, séparés par ':' [optionnel] " - -#, fuzzy -msgid "short name of host in the monitoring configuration [optional]" -msgstr "nom court de l'hôte dans la configuration nagios [optionnel]" - -msgid "Call ssh with '-o OPTION' (may be used multiple times) [optional]" -msgstr "" -"appelle ssh avec '-o OPTION' (peut être utilisé plusieurs fois) [optionnel]" - -#, fuzzy -msgid "Tell ssh to use this configfile [optional]" -msgstr "dire à ssh d'utiliser le protocole version 1 [optionnel]" - -msgid "Tell ssh to suppress warning and diagnostic messages [optional]" -msgstr "" -"dire à ssh de supprimer les messages d'erreurs et de diagnostic [optionnel]" - -msgid "Make connection problems return UNKNOWN instead of CRITICAL" -msgstr "" - -msgid "The most common mode of use is to refer to a local identity file with" -msgstr "" - -msgid "the '-i' option. In this mode, the identity pair should have a null" -msgstr "" - -msgid "passphrase and the public key should be listed in the authorized_keys" -msgstr "" - -msgid "file of the remote host. Usually the key will be restricted to running" -msgstr "" - -msgid "only one command on the remote server. If the remote SSH server tracks" -msgstr "" - -msgid "invocation arguments, the one remote program may be an agent that can" -msgstr "" - -msgid "execute additional commands as proxy" -msgstr "" - -msgid "To use passive mode, provide multiple '-C' options, and provide" -msgstr "Pour utiliser le mode passif, utilisez plusieurs fois l'option '-C',et" - -msgid "" -"all of -O, -s, and -n options (servicelist order must match '-C'options)" -msgstr "" -"et les options -O, -s, n (l'ordre des services doit correspondre aux " -"multiples options '-C)" - -msgid "Examples:" -msgstr "Exemples:" - -msgid "Usage:" -msgstr "Utilisation:" - -#, fuzzy, c-format -msgid "Host/Service Cluster Plugin for Monitoring" -msgstr "Plugin de Cluster d'Hôte/Service pour Nagios 2" - -msgid "Options:" -msgstr "Options:" - -msgid "Check service cluster status" -msgstr "Vérifie l'état d'un cluster de services" - -msgid "Check host cluster status" -msgstr "Vérifie l'état d'un cluster d'hôtes" - -msgid "Optional prepended text output (i.e. \"Host cluster\")" -msgstr "Texte optionnel accolé à la sortie (i.e. \"Cluster d'hôtes\")" - -msgid "Specifies the range of hosts or services in cluster that must be in a" -msgstr "Défini le nombre d'hôtes ou de services du cluster qui doivent être" - -msgid "non-OK state in order to return a WARNING status level" -msgstr "dans un état non-OK pour retourner un état AVERTISSEMENT" - -msgid "non-OK state in order to return a CRITICAL status level" -msgstr "dans un état non-OK pour retourner un état CRITIQUE" - -msgid "The status codes of the hosts or services in the cluster, separated by" -msgstr "Les codes d'état des hôtes ou des services du cluster, séparés par des" - -msgid "commas" -msgstr "virgules" - -msgid "Notes:" -msgstr "Notes:" - -msgid "" -"Will alert critical if there are 3 or more service data points in a non-OK" -msgstr "" - -msgid "state." -msgstr "" - -#, c-format -msgid "Looking for: '%s'\n" -msgstr "Recherche de: '%s'\n" - -msgid "dig returned an error status" -msgstr "dig à renvoyé un état d'erreur" - -msgid "Server not found in ANSWER SECTION" -msgstr "Le serveur n'a pas été trouvé dans l'ANSWER SECTION" - -msgid "No ANSWER SECTION found" -msgstr "Pas d' ANSWER SECTION trouvé" - -msgid "Probably a non-existent host/domain" -msgstr "Probablement un hôte/domaine inexistant" - -#, c-format -msgid "Port must be a positive integer - %s" -msgstr "Le numéro du port doit être un entier positif - %s" - -#, c-format -msgid "Warning interval must be a positive integer - %s" -msgstr "Le seuil d'avertissement doit être un entier positif - %s" - -#, c-format -msgid "Critical interval must be a positive integer - %s" -msgstr "Le seuil critique doit être un entier positif - %s" - -#, c-format -msgid "Timeout interval must be a positive integer - %s" -msgstr "Le délai d'attente doit être un entier positif - %s" - -#, fuzzy, c-format -msgid "This plugin tests the DNS service on the specified host using dig" -msgstr "Ce plugin teste le service DNS sur l'hôte spécifié en utilisant dig" - -msgid "Force dig to only use IPv4 query transport" -msgstr "" - -msgid "Force dig to only use IPv6 query transport" -msgstr "" - -msgid "Machine name to lookup" -msgstr "Nom de machine à rechercher" - -msgid "Record type to lookup (default: A)" -msgstr "Type d'enregistrement à rechercher (par défaut: A)" - -msgid "" -"An address expected to be in the answer section. If not set, uses whatever" -msgstr "" -"Une adresse qui devrait se trouver dans la section réponce. Si omit, utilise" - -msgid "was in -l" -msgstr "ce qui est passé au paramètre -l" - -msgid "Pass STRING as argument(s) to dig" -msgstr "" - -#, c-format -msgid "DISK %s: %s not found\n" -msgstr "DISK %s: %s non trouvé\n" - -#, c-format -msgid "CRITICAL" -msgstr "CRITIQUE" - -#, c-format -msgid "unit type %s not known\n" -msgstr "unité de type %s inconnue\n" - -#, c-format -msgid "failed allocating storage for '%s'\n" -msgstr "Impossible d'allouer de l'espace pour '%s'\n" - -#, c-format -msgid "UNKNOWN" -msgstr "INCONNU" - -msgid "Must set a threshold value before using -p\n" -msgstr "" - -msgid "Could not compile regular expression" -msgstr "Impossible de compiler l'expression rationnelle" - -msgid "Must set -E before selecting paths\n" -msgstr "" - -msgid "Must set group value before selecting paths\n" -msgstr "" - -msgid "" -"Paths need to be selected before using -i/-I. Use -A to select all paths " -"explicitly" -msgstr "" - -msgid "" -"Must set a threshold value before using -r/-R/-A (--ereg-path/--eregi-path/--" -"all)\n" -msgstr "" - -msgid "Regular expression did not match any path or disk" -msgstr "" - -msgid "Unknown argument" -msgstr "Argument inconnu" - -#, c-format -msgid " for %s\n" -msgstr " pour %s\n" - -msgid "" -"This plugin checks the amount of used disk space on a mounted file system" -msgstr "Ce plugin vérifie la place utilisé sur un système de fichier monté" - -msgid "" -"and generates an alert if free space is less than one of the threshold values" -msgstr "" -"et génère une alerte si la place disponible est plus petite qu'un des seuils " -"fourni" - -msgid "Exit with WARNING status if less than INTEGER units of disk are free" -msgstr "" -"Sortir avec un résultat AVERTISSEMENT si moins de X unités de disques sont " -"libres" - -msgid "Exit with WARNING status if less than PERCENT of disk space is free" -msgstr "" -"Sortir avec un résultat AVERTISSEMENT si moins de X pour-cent du disque est " -"libre" - -msgid "Exit with CRITICAL status if less than INTEGER units of disk are free" -msgstr "" -"Sortir avec un résultat CRITIQUE si moins de X unités du disque sont libres" - -#, fuzzy -msgid "Exit with CRITICAL status if less than PERCENT of disk space is free" -msgstr "" -"Sortir avec un résultat CRITIQUE si moins de X pour-cent du disque est libre" - -msgid "Exit with WARNING status if less than PERCENT of inode space is free" -msgstr "" -"Sortir avec un résultat AVERTISSEMENT si moins de X pour-cent des inodes " -"sont libres" - -msgid "Exit with CRITICAL status if less than PERCENT of inode space is free" -msgstr "" -"Sortir avec un résultat CRITIQUE si moins de X pour-cent des inodes sont " -"libres" - -msgid "" -"Mount point or block device as emitted by the mount(8) command (may be " -"repeated)" -msgstr "" - -msgid "Ignore device (only works if -p unspecified)" -msgstr "Ignorer le périphérique (marche seulement lorsque -p est utilisé)" - -msgid "Clear thresholds" -msgstr "Effacer les seuils" - -msgid "For paths or partitions specified with -p, only check for exact paths" -msgstr "" - -msgid "Display only devices/mountpoints with errors" -msgstr "Afficher seulement les périphériques/point de montage avec des erreurs" - -msgid "Don't account root-reserved blocks into freespace in perfdata" -msgstr "" - -msgid "Display inode usage in perfdata" -msgstr "" - -msgid "" -"Group paths. Thresholds apply to (free-)space of all partitions together" -msgstr "" - -msgid "Same as '--units kB'" -msgstr "Pareil à '--units kB'" - -msgid "Only check local filesystems" -msgstr "Vérifier seulement les systèmes de fichiers locaux" - -msgid "" -"Only check local filesystems against thresholds. Yet call stat on remote " -"filesystems" -msgstr "" - -msgid "to test if they are accessible (e.g. to detect Stale NFS Handles)" -msgstr "" - -#, fuzzy -msgid "Display the (block) device instead of the mount point" -msgstr "Afficher le point de montage au lieu de la partition" - -msgid "Same as '--units MB'" -msgstr "Pareil à '--units MB'" - -msgid "Explicitly select all paths. This is equivalent to -R '.*'" -msgstr "" - -msgid "" -"Case insensitive regular expression for path/partition (may be repeated)" -msgstr "" -"Expression rationnelle indépendante de la case pour un répertoire ou une " -"partition (peut être utilisé plusieurs fois)" - -msgid "Regular expression for path or partition (may be repeated)" -msgstr "" -"Expression rationnelle pour un répertoire ou une partition (peut être " -"utilisé plusieurs fois)" - -msgid "" -"Regular expression to ignore selected path/partition (case insensitive) (may " -"be repeated)" -msgstr "" -"Expression rationnelle pour ignorer un répertoire ou une partition (peut " -"être utilisé plusieurs fois)" - -msgid "" -"Regular expression to ignore selected path or partition (may be repeated)" -msgstr "" -"Expression rationnelle pour ignorer un répertoire ou une partition (peut " -"être utilisé plusieurs fois)" - -msgid "" -"Return OK if no filesystem matches, filesystem does not exist or is " -"inaccessible." -msgstr "" - -msgid "(Provide this option before -p / -r / --ereg-path if used)" -msgstr "" - -msgid "Choose bytes, kB, MB, GB, TB (default: MB)" -msgstr "Choisissez octets, kb, MB, GB, TB (par défaut: MB)" - -#, fuzzy -msgid "" -"Ignore all filesystems of types matching given regex(7) (may be repeated)" -msgstr "" -"Ignorer tout les systèmes de fichiers qui correspondent au type indiqué " -"(peut être utilisé plusieurs fois)" - -#, fuzzy -msgid "" -"Check only filesystems where the type matches this given regex(7) (may be " -"repeated)" -msgstr "" -"Ignorer tout les systèmes de fichiers qui correspondent au type indiqué " -"(peut être utilisé plusieurs fois)" - -msgid "General usage hints:" -msgstr "" - -msgid "" -"- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the " -"same as" -msgstr "" - -msgid "\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\"." -msgstr "" - -msgid "" -"- The syntax is broadly: \"{thresholds a} {paths a} -C {thresholds b} " -"{thresholds b} ...\"" -msgstr "" - -msgid "Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB" -msgstr "Vérifie /tmp à 10% et /var à 5% et / à 100MB et 50MB" - -msgid "" -"Checks all filesystems not matching -r at 100M and 50M. The fs matching the -" -"r regex" -msgstr "" - -msgid "" -"are grouped which means the freespace thresholds are applied to all disks " -"together" -msgstr "" - -msgid "" -"Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use " -"100M/50M" -msgstr "" - -#, c-format -msgid "%s %s: %s\n" -msgstr "" - -msgid "is not accessible" -msgstr "" - -msgid "nslookup returned an error status" -msgstr "nslookup à retourné un code d'erreur" - -msgid "Warning plugin error" -msgstr "Alerte erreur de plugin" - -#, fuzzy, c-format -msgid "DNS CRITICAL - '%s' returned empty server string\n" -msgstr "DNS CRITIQUE - '%s' à retourné un nom d'hôte vide\n" - -#, fuzzy, c-format -msgid "DNS CRITICAL - No response from DNS %s\n" -msgstr "Pas de réponse du DNS %s\n" - -#, c-format -msgid "DNS CRITICAL - '%s' returned empty host name string\n" -msgstr "DNS CRITIQUE - '%s' à retourné un nom d'hôte vide\n" - -msgid "Non-authoritative answer:" -msgstr "Réponse non autoritative:" - -#, fuzzy, c-format -msgid "Domain '%s' was not found by the server\n" -msgstr "Le domaine %s n'a pas été trouvé par le serveur\n" - -#, c-format -msgid "DNS CRITICAL - '%s' msg parsing exited with no address\n" -msgstr "DNS CRITIQUE - '%s' n'a pas retourné d'adresse\n" - -#, c-format -msgid "expected '%s' but got '%s'" -msgstr "j'attendais '%s' mais j'ai reçu '%s'" - -#, fuzzy, c-format -msgid "Domain '%s' was found by the server: '%s'\n" -msgstr "Le domaine %s n'a pas été trouvé par le serveur\n" - -#, c-format -msgid "server %s is not authoritative for %s" -msgstr "serveur %s n'est pas autoritaire pour %s" - -#, c-format -msgid "OK" -msgstr "OK" - -#, c-format -msgid "WARNING" -msgstr "AVERTISSEMENT" - -#, c-format -msgid "%.3f second response time" -msgid_plural "%.3f seconds response time" -msgstr[0] "%.3f secondes de temps de réponse " -msgstr[1] "%.3f secondes de temps de réponse " - -#, c-format -msgid ". %s returns %s" -msgstr ". %s renvoie %s" - -#, c-format -msgid "DNS WARNING - %s\n" -msgstr "DNS AVERTISSEMENT - %s\n" - -msgid " Probably a non-existent host/domain" -msgstr " Probablement un hôte/domaine inexistant" - -#, c-format -msgid "DNS CRITICAL - %s\n" -msgstr "DNS CRITIQUE - %s\n" - -#, c-format -msgid "DNS UNKNOWN - %s\n" -msgstr "DNS INCONNU - %s\n" - -msgid "Note: nslookup is deprecated and may be removed from future releases." -msgstr "" -"Note: nslookup est obsolète et pourra être retiré dans les prochaines " -"versions." - -msgid "Consider using the `dig' or `host' programs instead. Run nslookup with" -msgstr "" -"Veuillez utiliser le programme 'dig' ou 'host' à la place. Faire fonctionner " -"nslookup avec" - -msgid "the `-sil[ent]' option to prevent this message from appearing." -msgstr "L'option '-sil[ent]' empêche l'apparition de ce message." - -#, c-format -msgid "No response from DNS %s\n" -msgstr "Pas de réponse du DNS %s\n" - -#, c-format -msgid "DNS %s has no records\n" -msgstr "Le DNS %s n'a pas d'enregistrements\n" - -#, c-format -msgid "Connection to DNS %s was refused\n" -msgstr "La connexion au DNS %s à été refusée\n" - -#, c-format -msgid "Query was refused by DNS server at %s\n" -msgstr "La requête à été refusée par le serveur DNS %s\n" - -#, c-format -msgid "No information returned by DNS server at %s\n" -msgstr "Pas d'information renvoyée par le serveur DNS %s\n" - -msgid "Network is unreachable\n" -msgstr "Le réseau est inaccessible\n" - -#, c-format -msgid "DNS failure for %s\n" -msgstr "DNS à échoué pour %s\n" - -msgid "Input buffer overflow\n" -msgstr "Le tampon d'entrée a débordé\n" - -msgid "" -"This plugin uses the nslookup program to obtain the IP address for the given " -"host/domain query." -msgstr "" -"Ce plugin utilise le programme nslookup pour obtenir l'adresse IP de l'hôte/" -"domaine à interroger." - -msgid "An optional DNS server to use may be specified." -msgstr "Un serveur DNS à utiliser peut être indiqué." - -msgid "" -"If no DNS server is specified, the default server(s) specified in /etc/" -"resolv.conf will be used." -msgstr "" -"Si aucun serveur DNS n'est spécifié, les serveurs spécifiés dans /etc/resolv." -"conf seront utilisé." - -msgid "The name or address you want to query" -msgstr "Le nom ou l'adresse que vous voulez interroger" - -msgid "Optional DNS server you want to use for the lookup" -msgstr "Serveur DNS que vous voulez utiliser pour la recherche" - -#, fuzzy -msgid "" -"Optional IP-ADDRESS/CIDR you expect the DNS server to return. HOST must end" -msgstr "" -"Adresse IP que le serveur DNS doit retourner. Les hôtes doivent se terminer " - -#, fuzzy -msgid "" -"with a dot (.). This option can be repeated multiple times (Returns OK if any" -msgstr "avec un point (.). Cette option peut être répétée (Retourne OK si une" - -msgid "value matches)." -msgstr "" - -msgid "" -"Expect the DNS server to return NXDOMAIN (i.e. the domain was not found)" -msgstr "" - -msgid "Cannot be used together with -a" -msgstr "" - -msgid "Optionally expect the DNS server to be authoritative for the lookup" -msgstr "Serveur DNS qui doit normalement être autoritaire pour la recherche" - -msgid "Return warning if elapsed time exceeds value. Default off" -msgstr "" -"Renvoie une alerte si le temps écoulé dépasse la valeur indiquée. Désactivé " -"par défaut" - -msgid "Return critical if elapsed time exceeds value. Default off" -msgstr "" -"Renvoie critique si le temps utilisé dépasse la valeur indiquée. Désactivé " -"par défaut" - -msgid "" -"Return critical if the list of expected addresses does not match all " -"addresses" -msgstr "" - -msgid "returned. Default off" -msgstr "" - -msgid "Arguments to check_dummy must be an integer" -msgstr "Les arguments pour check_dummy doivent être des entiers" - -#, c-format -msgid "Status %d is not a supported error state\n" -msgstr "Le résultat %d n'est pas un résultat supporté\n" - -msgid "" -"This plugin will simply return the state corresponding to the numeric value" -msgstr "" -"Ce plugin renverra simplement l'état correspondant à la valeur numérique" - -msgid "of the argument with optional text" -msgstr "du paramètre avec un texte optionnel" - -#, c-format -msgid "Could not open pipe: %s\n" -msgstr "Impossible d'ouvrir le pipe: %s\n" - -#, c-format -msgid "Could not open stderr for %s\n" -msgstr "Impossible d'ouvrir la sortie d'erreur standard pour %s\n" - -#, fuzzy -msgid "FPING UNKNOWN - IP address not found\n" -msgstr "PING INCONNU - Hôte non trouvé (%s)\n" - -msgid "FPING UNKNOWN - invalid commandline argument\n" -msgstr "" - -#, fuzzy -msgid "FPING UNKNOWN - failed system call\n" -msgstr "PING INCONNU - Hôte non trouvé (%s)\n" - -#, fuzzy, c-format -msgid "FPING %s - %s (rta=%f ms)|%s\n" -msgstr "FPING %s - %s (perte=%.0f%% )|%s\n" - -#, c-format -msgid "FPING UNKNOWN - %s not found\n" -msgstr "PING INCONNU - Hôte non trouvé (%s)\n" - -#, c-format -msgid "FPING CRITICAL - %s is unreachable\n" -msgstr "PING CRITIQUE - Hôte inaccessible (%s)\n" - -#, fuzzy, c-format -msgid "FPING UNKNOWN - %s parameter error\n" -msgstr "PING INCONNU - Hôte non trouvé (%s)\n" - -#, c-format -msgid "FPING CRITICAL - %s is down\n" -msgstr "FPING CRITIQUE - %s est en panne\n" - -#, c-format -msgid "FPING %s - %s (loss=%.0f%%, rta=%f ms)|%s %s\n" -msgstr "FPING %s - %s (perte=%.0f%%, rta=%f ms)|%s %s\n" - -#, c-format -msgid "FPING %s - %s (loss=%.0f%% )|%s\n" -msgstr "FPING %s - %s (perte=%.0f%% )|%s\n" - -msgid "Invalid hostname/address" -msgstr "Adresse/Nom d'hôte invalide" - -msgid "IPv6 support not available\n" -msgstr "Support IPv6 non disponible\n" - -msgid "Packet size must be a positive integer" -msgstr "La taille du paquet doit être un entier positif" - -msgid "Packet count must be a positive integer" -msgstr "Le nombre de paquets doit être un entier positif" - -msgid "Target timeout must be a positive integer" -msgstr "Le seuil d'avertissement doit être un entier positif" - -msgid "Interval must be a positive integer" -msgstr "Le délai d'attente doit être un entier positif" - -msgid "Hostname was not supplied" -msgstr "Le nom de l'hôte n'a pas été spécifié" - -#, c-format -msgid "%s: Only one threshold may be packet loss (%s)\n" -msgstr "" -"%s: Seulement un seuil peut être utilisé pour les pertes de paquets (%s)\n" - -#, c-format -msgid "%s: Only one threshold must be packet loss (%s)\n" -msgstr "" -"%s: Seulement un seuil doit être utilisé pour les pertes de paquets (%s)\n" - -msgid "" -"This plugin will use the fping command to ping the specified host for a fast " -"check" -msgstr "" -"Ce plugin va utiliser la commande fping pour pinger l'hôte de manière rapide." - -msgid "Note that it is necessary to set the suid flag on fping." -msgstr "" -"Veuillez noter qu'il est nécessaire de mettre le bit suid sur le programme " -"fping." - -msgid "" -"name or IP Address of host to ping (IP Address bypasses name lookup, " -"reducing system load)" -msgstr "" -"nom ou adresse IP des hôtes à pinger (l'indication d'un adresse IP évite une " -"recherche sur le nom, ce qui réduit la charge système)" - -msgid "warning threshold pair" -msgstr "Valeurs pour le seuil d'avertissement" - -msgid "critical threshold pair" -msgstr "Valeurs pour le seuil critique" - -msgid "Return OK after first successful reply" -msgstr "" - -msgid "size of ICMP packet" -msgstr "taille du paquet ICMP" - -msgid "number of ICMP packets to send" -msgstr "nombre de paquets ICMP à envoyer" - -msgid "Target timeout (ms)" -msgstr "" - -msgid "Interval (ms) between sending packets" -msgstr "" - -msgid "name or IP Address of sourceip" -msgstr "" - -msgid "source interface name" -msgstr "" - -#, c-format -msgid "" -"THRESHOLD is ,%% where is the round trip average travel time " -"(ms)" -msgstr "" -"Le seuil est ,%% ou est le temps moyen pour l'aller retour " -"(ms)" - -msgid "" -"which triggers a WARNING or CRITICAL state, and is the percentage of" -msgstr "" -"qui déclenche résultat AVERTISSEMENT ou CRITIQUE, et est le pourcentage " -"de" - -msgid "packet loss to trigger an alarm state." -msgstr "paquets perdu pour déclencher une alarme." - -msgid "IPv4 is used by default. Specify -6 to use IPv6." -msgstr "" - -#, c-format -msgid "CRITICAL - Host type parameter incorrect!\n" -msgstr "CRITIQUE - Argument de type hôte incorrect!\n" - -#, c-format -msgid "CRITICAL - Host not found\n" -msgstr "CRITIQUE - Hôte non trouvé\n" - -#, c-format -msgid "CRITICAL - Game server down or unavailable\n" -msgstr "CRITIQUE - Serveur de jeux en panne ou non disponible\n" - -#, c-format -msgid "CRITICAL - Game server timeout\n" -msgstr "CRITIQUE - Temps d'attente pour le serveur de jeux dépassé\n" - -#, c-format -msgid "This plugin tests game server connections with the specified host." -msgstr "Le plugin teste la connexion au serveur de jeux avec l'hôte spécifié." - -msgid "Optional port of which to connect" -msgstr "" - -msgid "Field number in raw qstat output that contains game name" -msgstr "" - -msgid "Field number in raw qstat output that contains map name" -msgstr "" - -msgid "Field number in raw qstat output that contains ping time" -msgstr "" - -msgid "" -"This plugin uses the 'qstat' command, the popular game server status query " -"tool." -msgstr "" -"Ce plugin utilise la commande 'qstat', un programme répandu pour questioner " -"les serveurs de jeux." - -msgid "" -"If you don't have the package installed, you will need to download it from" -msgstr "" -"Si vous n'avez pas le programme installé, vous devrez le télécharger depuis" - -#, fuzzy -msgid "https://github.com/multiplay/qstat before you can use this plugin." -msgstr "" -"http://www.activesw.com/people/steve/qstat.html avant de pouvoir utiliser ce " -"plugin." - -msgid "Paper Jam" -msgstr "Bourrage Papier" - -msgid "Out of Paper" -msgstr "Plus de Papier" - -msgid "Printer Offline" -msgstr "Imprimante hors ligne" - -msgid "Peripheral Error" -msgstr "Erreur du périphérique" - -msgid "Intervention Required" -msgstr "Intervention Requise" - -msgid "Toner Low" -msgstr "Toner Faible" - -msgid "Insufficient Memory" -msgstr "Mémoire Insuffisante" - -msgid "A Door is Open" -msgstr "Une porte est ouverte" - -msgid "Output Tray is Full" -msgstr "Le bac de sortie est plein" - -msgid "Data too Slow for Engine" -msgstr "Le données arrivent trop lentement pour l'imprimante" - -msgid "Unknown Paper Error" -msgstr "Erreur de papier inconnue" - -#, c-format -msgid "Printer ok - (%s)\n" -msgstr "Imprimante ok - (%s)\n" - -#, fuzzy -msgid "Port must be a positive short integer" -msgstr "Le numéro du port doit être un entier positif" - -msgid "This plugin tests the STATUS of an HP printer with a JetDirect card." -msgstr "Ce plugin teste l'état d'une imprimante HP avec une carte JetDirect." - -msgid "Net-snmp must be installed on the computer running the plugin." -msgstr "Net-snmp doit être installé sur l'ordinateur qui exécute le plugin." - -msgid "The SNMP community name " -msgstr "Le nom de la communauté SNMP " - -#, c-format -msgid "(default=%s)" -msgstr "(défaut=%s)" - -#, fuzzy -msgid "Specify the port to check " -msgstr "Nom de l'hôte à vérifier" - -#, fuzzy -msgid "Disable paper check " -msgstr "Variable a vérifier" - -msgid "file does not exist or is not readable" -msgstr "" - -msgid "Invalid certificate expiration period" -msgstr "Période d'expiration du certificat invalide" - -msgid "" -"Invalid option - Valid SSL/TLS versions: 2, 3, 1, 1.1, 1.2 (with optional " -"'+' suffix)" -msgstr "" - -msgid "Invalid option - SSL is not available" -msgstr "Option invalide - SSL n'est pas disponible" - -msgid "Invalid max_redirs count" -msgstr "" - -msgid "Invalid onredirect option" -msgstr "" - -#, c-format -msgid "option f:%d \n" -msgstr "option f:%d \n" - -msgid "Invalid port number" -msgstr "Numéro de port invalide" - -#, c-format -msgid "Could Not Compile Regular Expression: %s" -msgstr "Impossible de compiler l'expression rationnelle: %s" - -msgid "IPv6 support not available" -msgstr "Support IPv6 non disponible" - -msgid "You must specify a server address or host name" -msgstr "Vous devez spécifier une adresse ou un nom d'hôte" - -msgid "" -"If you use a client certificate you must also specify a private key file" -msgstr "" - -msgid "HTTP UNKNOWN - Memory allocation error\n" -msgstr "HTTP INCONNU - Impossible d'allouer la mémoire\n" - -#, c-format -msgid "%sServer date unknown, " -msgstr "%sDate du serveur inconnue, " - -#, c-format -msgid "%sDocument modification date unknown, " -msgstr "%sDate de modification du document inconnue, " - -#, c-format -msgid "%sServer date \"%100s\" unparsable, " -msgstr "%sDate du serveur \"%100s\" illisible, " - -#, c-format -msgid "%sDocument date \"%100s\" unparsable, " -msgstr "%sDate du document \"%100s\" illisible, " - -#, c-format -msgid "%sDocument is %d seconds in the future, " -msgstr "%sLa date du document est %d secondes dans le futur, " - -#, c-format -msgid "%sLast modified %.1f days ago, " -msgstr "%sDernière modification %.1f jours auparavant, " - -#, c-format -msgid "%sLast modified %d:%02d:%02d ago, " -msgstr "%sDernière modification %d:%02d:%02d auparavant, " - -msgid "HTTP CRITICAL - Unable to open TCP socket\n" -msgstr "HTTP CRITIQUE - Impossible d'ouvrir un socket TCP\n" - -#, fuzzy -msgid "HTTP UNKNOWN - Could not allocate memory for full_page\n" -msgstr "HTTP INCONNU - Impossible d'allouer une adresse\n" - -msgid "HTTP CRITICAL - Error on receive\n" -msgstr "HTTP CRITIQUE - Erreur dans la réception\n" - -msgid "HTTP CRITICAL - No data received from host\n" -msgstr "HTTP CRITIQUE - Pas de données reçues de l'hôte\n" - -#, c-format -msgid "Invalid HTTP response received from host: %s\n" -msgstr "Réponse HTTP reçue de l'hôte invalide: %s\n" - -#, c-format -msgid "Invalid HTTP response received from host on port %d: %s\n" -msgstr "Réponse HTTP reçue de l'hôte sur le port %d invalide: %s\n" - -#, c-format -msgid "" -"%s\n" -"%s" -msgstr "" - -#, c-format -msgid "Status line output matched \"%s\" - " -msgstr "La ligne d'état correspond à \"%s\" - " - -#, c-format -msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" -msgstr "HTTP CRITIQUE: Ligne d'état non valide (%s)\n" - -#, c-format -msgid "HTTP CRITICAL: Invalid Status (%s)\n" -msgstr "HTTP CRITIQUE: Etat Invalide (%s)\n" - -#, c-format -msgid "%s - " -msgstr "" - -#, fuzzy, c-format -msgid "%sheader '%s' not found on '%s://%s:%d%s', " -msgstr "%schaîne non trouvée, " - -#, fuzzy, c-format -msgid "%sstring '%s' not found on '%s://%s:%d%s', " -msgstr "%schaîne non trouvée, " - -#, c-format -msgid "%spattern not found, " -msgstr "%sexpression non trouvée, " - -#, c-format -msgid "%spattern found, " -msgstr "%sexpression trouvée, " - -#, c-format -msgid "%sExecute Error: %s, " -msgstr "%sErreur d'exécution: %s, " - -#, c-format -msgid "%spage size %d too large, " -msgstr "%sla taille de la page est trop grande (%d), " - -#, c-format -msgid "%spage size %d too small, " -msgstr "%sla taille de la page est trop petite (%d), " - -#, fuzzy, c-format -msgid "%s - %d bytes in %.3f second response time %s|%s %s %s %s %s %s %s" -msgstr "%s - %d octets en %.3f secondes de temps de réponse %s|%s %s" - -#, c-format -msgid "%s - %d bytes in %.3f second response time %s|%s %s" -msgstr "%s - %d octets en %.3f secondes de temps de réponse %s|%s %s" - -msgid "HTTP UNKNOWN - Could not allocate addr\n" -msgstr "HTTP INCONNU - Impossible d'allouer une adresse\n" - -msgid "HTTP UNKNOWN - Could not allocate URL\n" -msgstr "HTTP INCONNU - Impossible d'allouer l'URL\n" - -#, c-format -msgid "HTTP UNKNOWN - Could not find redirect location - %s%s\n" -msgstr "" -"HTTP INCONNU - Impossible de trouver l'endroit de la redirection - %s%s\n" - -#, c-format -msgid "HTTP UNKNOWN - Empty redirect location%s\n" -msgstr "HTTP INCONNU - endroit de redirection vide%s\n" - -#, c-format -msgid "HTTP UNKNOWN - Could not parse redirect location - %s%s\n" -msgstr "" -"HTTP INCONNU - Impossible de définir l'endroit de la redirection - %s%s\n" - -#, c-format -msgid "HTTP WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" -msgstr "" -"HTTP AVERTISSEMENT - le niveau maximum de redirection %d à été dépassé - " -"%s://%s:%d%s%s\n" - -#, fuzzy, c-format -msgid "HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n" -msgstr "" -"HTTP AVERTISSEMENT - la redirection crée une boucle infinie - %s://%s:%d%s" -"%s\n" - -#, c-format -msgid "HTTP UNKNOWN - Redirection to port above %d - %s://%s:%d%s%s\n" -msgstr "HTTP INCONNU - Redirection à un port supérieur à %d - %s://%s:%d%s%s\n" - -#, c-format -msgid "Redirection to %s://%s:%d%s\n" -msgstr "Redirection vers %s://%s:%d%s\n" - -msgid "This plugin tests the HTTP service on the specified host. It can test" -msgstr "" -"Ce plugin teste le service HTTP sur l'hôte spécifié. Il peut tester les" - -msgid "normal (http) and secure (https) servers, follow redirects, search for" -msgstr "" -"serveurs normaux (http) et sécurisés (https), suivre les redirections, " -"rechercher des" - -msgid "strings and regular expressions, check connection times, and report on" -msgstr "" -"chaînes de caractères et expressions rationnelles, vérifier le temps de " -"réponse" - -msgid "certificate expiration times." -msgstr "et rapporter la date d'expiration du certificat." - -#, c-format -msgid "In the first form, make an HTTP request." -msgstr "" - -#, c-format -msgid "" -"In the second form, connect to the server and check the TLS certificate." -msgstr "" - -#, c-format -msgid "NOTE: One or both of -H and -I must be specified" -msgstr "NOTE: les paramètres -H et -I peuvent être spécifiés" - -msgid "Host name argument for servers using host headers (virtual host)" -msgstr "" - -msgid "Append a port to include it in the header (eg: example.com:5000)" -msgstr "" - -msgid "" -"IP address or name (use numeric address if possible to bypass DNS lookup)." -msgstr "" - -msgid "Port number (default: " -msgstr "Numéro du port (défaut: " - -msgid "" -"Connect via SSL. Port defaults to 443. VERSION is optional, and prevents" -msgstr "" - -msgid "auto-negotiation (2 = SSLv2, 3 = SSLv3, 1 = TLSv1, 1.1 = TLSv1.1," -msgstr "" - -msgid "1.2 = TLSv1.2). With a '+' suffix, newer versions are also accepted." -msgstr "" - -msgid "Enable SSL/TLS hostname extension support (SNI)" -msgstr "" - -msgid "" -"Minimum number of days a certificate has to be valid. Port defaults to 443" -msgstr "" -"Nombre de jours minimum pour que le certificat soit valide. Port par défaut " -"443" - -msgid "" -"(when this option is used the URL is not checked by default. You can use" -msgstr "" - -msgid " --continue-after-certificate to override this behavior)" -msgstr "" - -msgid "" -"Allows the HTTP check to continue after performing the certificate check." -msgstr "" - -msgid "Does nothing unless -C is used." -msgstr "" - -msgid "Name of file that contains the client certificate (PEM format)" -msgstr "" - -msgid "to be used in establishing the SSL session" -msgstr "" - -msgid "Name of file containing the private key (PEM format)" -msgstr "" - -msgid "matching the client certificate" -msgstr "" - -msgid "Comma-delimited list of strings, at least one of them is expected in" -msgstr "" -"Liste the chaines de charactères séparées par des virgules, au moins une " -"d'elles" - -msgid "the first (status) line of the server response (default: " -msgstr "est attendue dans la première ligne de réponse du serveur (défaut: " - -msgid "" -"If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)" -msgstr "" -"Si spécifié, surpasse toute autre logique de status (ex: 3xx, 4xx, 5xx)" - -#, fuzzy -msgid "String to expect in the response headers" -msgstr "Chaîne de caractères à attendre en réponse" - -msgid "String to expect in the content" -msgstr "Chaîne de caractère attendue dans le contenu" - -msgid "URL to GET or POST (default: /)" -msgstr "URL pour le GET ou le POST (défaut: /)" - -msgid "URL encoded http POST data" -msgstr "" - -msgid "Set HTTP method." -msgstr "" - -msgid "Don't wait for document body: stop reading after headers." -msgstr "" -"Ne pas attendre pour le corps du document: arrêter de lire après les entêtes" - -msgid "(Note that this still does an HTTP GET or POST, not a HEAD.)" -msgstr "(Veuillez noter qu'un HTTP GET ou POST est effectué, pas un HEAD.)" - -msgid "Warn if document is more than SECONDS old. the number can also be of" -msgstr "" - -msgid "the form \"10m\" for minutes, \"10h\" for hours, or \"10d\" for days." -msgstr "" - -msgid "specify Content-Type header media type when POSTing\n" -msgstr "" - -msgid "Allow regex to span newlines (must precede -r or -R)" -msgstr "" - -msgid "Search page for regex STRING" -msgstr "" - -msgid "Search page for case-insensitive regex STRING" -msgstr "" - -msgid "Return CRITICAL if found, OK if not\n" -msgstr "" - -msgid "Username:password on sites with basic authentication" -msgstr "" - -msgid "Username:password on proxy-servers with basic authentication" -msgstr "" - -msgid "String to be sent in http header as \"User Agent\"" -msgstr "" - -msgid "" -"Any other tags to be sent in http header. Use multiple times for additional " -"headers" -msgstr "" - -msgid "Print additional performance data" -msgstr "" - -msgid "Print body content below status line" -msgstr "" - -msgid "Wrap output in HTML link (obsoleted by urlize)" -msgstr "" - -msgid "How to handle redirected pages. sticky is like follow but stick to the" -msgstr "" - -msgid "specified IP address. stickyport also ensures port stays the same." -msgstr "" - -#, fuzzy -msgid "Maximal number of redirects (default: " -msgstr "PROCS - nombre de processus (défaut)" - -msgid "Minimum page size required (bytes) : Maximum page size required (bytes)" -msgstr "" - -msgid "This plugin will attempt to open an HTTP connection with the host." -msgstr "Ce plugin va essayer d'ouvrir un connexion SMTP avec l'hôte." - -msgid "" -"Successful connects return STATE_OK, refusals and timeouts return " -"STATE_CRITICAL" -msgstr "" - -msgid "" -"other errors return STATE_UNKNOWN. Successful connects, but incorrect " -"response" -msgstr "" - -msgid "" -"messages from the host result in STATE_WARNING return values. If you are" -msgstr "" - -msgid "" -"checking a virtual server that uses 'host headers' you must supply the FQDN" -msgstr "" - -msgid "(fully qualified domain name) as the [host_name] argument." -msgstr "" - -msgid "This plugin can also check whether an SSL enabled web server is able to" -msgstr "" - -msgid "serve content (optionally within a specified time) or whether the X509 " -msgstr "" - -msgid "certificate is still valid for the specified number of days." -msgstr "" - -#, fuzzy -msgid "Please note that this plugin does not check if the presented server" -msgstr "Ce plugin vérifie le service ntp sur l'hôte" - -msgid "certificate matches the hostname of the server, or if the certificate" -msgstr "" - -msgid "has a valid chain of trust to one of the locally installed CAs." -msgstr "" - -msgid "" -"When the 'www.verisign.com' server returns its content within 5 seconds," -msgstr "" - -msgid "" -"a STATE_OK will be returned. When the server returns its content but exceeds" -msgstr "" - -msgid "" -"the 5-second threshold, a STATE_WARNING will be returned. When an error " -"occurs," -msgstr "" - -msgid "a STATE_CRITICAL will be returned." -msgstr "" - -msgid "" -"When the certificate of 'www.verisign.com' is valid for more than 14 days," -msgstr "" - -msgid "" -"a STATE_OK is returned. When the certificate is still valid, but for less " -"than" -msgstr "" - -msgid "" -"14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when" -msgstr "" - -msgid "the certificate is expired." -msgstr "le certificat est expiré." - -msgid "" -"When the certificate of 'www.verisign.com' is valid for more than 30 days," -msgstr "" - -msgid "30 days, but more than 14 days, a STATE_WARNING is returned." -msgstr "" - -msgid "" -"A STATE_CRITICAL will be returned when certificate expires in less than 14 " -"days" -msgstr "" - -msgid "" -"check_http -I 192.168.100.35 -p 80 -u https://www.verisign.com/ -S -j " -"CONNECT -H www.verisign.com " -msgstr "" - -msgid "" -"all these options are needed: -I -p -u -" -"S(sl) -j CONNECT -H " -msgstr "" - -msgid "" -"a STATE_CRITICAL will be returned. By adding a colon to the method you can " -"set the method used" -msgstr "" - -msgid "inside the proxied connection: -j CONNECT:POST" -msgstr "" - -#, c-format -msgid "Could not connect to the server at port %i\n" -msgstr "Impossible de se connecter au serveur port %i\n" - -#, c-format -msgid "Could not set protocol version %d\n" -msgstr "Impossible d'utiliser le protocole version %d\n" - -#, c-format -msgid "Could not init TLS at port %i!\n" -msgstr "Impossible d'initialiser TLS sur le port %i!\n" - -#, c-format -msgid "TLS not supported by the libraries!\n" -msgstr "TLS n'est pas supporté!\n" - -#, c-format -msgid "Could not init startTLS at port %i!\n" -msgstr "Impossible d'initialiser startTLS sur le port %i!\n" - -#, c-format -msgid "startTLS not supported by the library, needs LDAPv3!\n" -msgstr "" -"startTLS n'est pas supporté par la librairie LDAP, j'ai besoin de LDAPv3!\n" - -#, c-format -msgid "Could not bind to the LDAP server\n" -msgstr "Impossible de se connecter au serveur LDAP\n" - -#, c-format -msgid "Could not search/find objectclasses in %s\n" -msgstr "Impossible de chercher/trouver les objectclasses dans %s\n" - -#, fuzzy, c-format -msgid "LDAP %s - found %d entries in %.3f seconds|%s %s\n" -msgstr "%s - %d octets en %.3f secondes de temps de réponse %s|%s %s" - -#, c-format -msgid "LDAP %s - %.3f seconds response time|%s\n" -msgstr "LDAP %s - %.3f secondes de temps de réponse|%s\n" - -#, c-format -msgid "%s cannot be combined with %s" -msgstr "" - -msgid "Please specify the host name\n" -msgstr "Veuillez spécifier le nom de l'hôte\n" - -msgid "Please specify the LDAP base\n" -msgstr "Veuillez spécifier la base LDAP\n" - -msgid "ldap attribute to search (default: \"(objectclass=*)\"" -msgstr "" - -msgid "ldap base (eg. ou=my unit, o=my org, c=at" -msgstr "" - -msgid "ldap bind DN (if required)" -msgstr "" - -msgid "" -"ldap password (if required, or set the password through environment variable " -"'LDAP_PASSWORD')" -msgstr "" - -msgid "use starttls mechanism introduced in protocol version 3" -msgstr "utiliser le fonctionnement starttls du protocole version 3" - -msgid "use ldaps (ldap v2 ssl method). this also sets the default port to" -msgstr "" - -msgid "use ldap protocol version 2" -msgstr "utiliser le protocole ldap version 2" - -msgid "use ldap protocol version 3" -msgstr "utiliser le protocole ldap version 3" - -msgid "default protocol version:" -msgstr "version du protocole par défaut:" - -#, fuzzy -msgid "Number of found entries to result in warning status" -msgstr "Décalage résultant en un avertissement (secondes)" - -#, fuzzy -msgid "Number of found entries to result in critical status" -msgstr "Décalage résultant en un état critique (secondes)" - -msgid "If this plugin is called via 'check_ldaps', method 'STARTTLS' will be" -msgstr "" - -#, c-format -msgid "" -" implied (using default port %i) unless --port=636 is specified. In that " -"case\n" -msgstr "" - -msgid "'SSL on connect' will be used no matter how the plugin was called." -msgstr "" - -msgid "" -"This detection is deprecated, please use 'check_ldap' with the '--starttls' " -"or '--ssl' flags" -msgstr "" - -msgid "to define the behaviour explicitly instead." -msgstr "" - -msgid "The parameters --warn-entries and --crit-entries are optional." -msgstr "" - -msgid "Warning threshold must be float or float triplet!\n" -msgstr "Le seuil d'alerte doit être un nombre à virgule flottante!\n" - -#, c-format -msgid "Error opening %s\n" -msgstr "Erreur à l'ouverture de %s\n" - -#, fuzzy, c-format -msgid "could not parse load from uptime %s: %d\n" -msgstr "Lecture des arguments impossible\n" - -#, c-format -msgid "Error code %d returned in %s\n" -msgstr "Le code erreur %d à été retourné par %s\n" - -#, c-format -msgid "Error in getloadavg()\n" -msgstr "Erreur dans la fonction getloadavg()\n" - -#, c-format -msgid "Error processing %s\n" -msgstr "Erreur lors de l'utilisation de %s\n" - -#, c-format -msgid "load average: %.2f, %.2f, %.2f" -msgstr "Charge moyenne: %.2f, %.2f, %.2f" - -#, c-format -msgid "Critical threshold for %d-minute load average is not specified\n" -msgstr "" -"Le seuil critique pour la charge système après %d minutes n'est pas " -"spécifié\n" - -#, c-format -msgid "Warning threshold for %d-minute load average is not specified\n" -msgstr "" -"Le seuil d'avertissement pour la charge système après %d minutes n'est pas " -"spécifié\n" - -#, c-format -msgid "" -"Parameter inconsistency: %d-minute \"warning load\" is greater than " -"\"critical load\"\n" -msgstr "" -"Arguments Incorrects: %d-minute \"alerte charge système\" est plus grand que " -"\"alerte critique charge système\"\n" - -#, c-format -msgid "This plugin tests the current system load average." -msgstr "Ce plugin teste la charge système actuelle." - -msgid "Exit with WARNING status if load average exceeds WLOADn" -msgstr "" -"Sortir avec un résultat AVERTISSEMENT si la charge moyenne dépasse WLOAD" - -msgid "Exit with CRITICAL status if load average exceed CLOADn" -msgstr "Sortir avec un résultat CRITIQUE si la charge moyenne excède CLOAD" - -msgid "the load average format is the same used by \"uptime\" and \"w\"" -msgstr "" - -msgid "Divide the load averages by the number of CPUs (when possible)" -msgstr "" - -msgid "Number of processes to show when printing the top consuming processes." -msgstr "" - -msgid "NUMBER_OF_PROCS=0 disables this feature. Default value is 0" -msgstr "" - -#, c-format -msgid "'%s' exited with non-zero status.\n" -msgstr "" - -#, c-format -msgid "some error occurred getting procs list.\n" -msgstr "" - -msgid "Could not parse arguments\n" -msgstr "Lecture des arguments impossible\n" - -#, c-format -msgid "Unable to open MRTG log file\n" -msgstr "Impossible d'ouvrir le fichier de log de MRTG\n" - -#, c-format -msgid "Unable to process MRTG log file\n" -msgstr "Impossible de traiter le fichier de log de MRTG\n" - -#, c-format -msgid "MRTG data has expired (%d minutes old)\n" -msgstr "Les données de MRTG on expirées (vieilles de %d minutes)\n" - -msgid "Avg" -msgstr "Moyenne" - -msgid "Max" -msgstr "Max" - -msgid "Invalid variable number" -msgstr "Numéro de la variable invalide" - -#, c-format -msgid "" -"%s is not a valid expiration time\n" -"Use '%s -h' for additional help\n" -msgstr "" -"%s n'est pas un temps d'expiration valide\n" -"Utilisez '%s -h' pour de l'aide supplémentaire\n" - -msgid "Invalid variable number\n" -msgstr "Numéro de la variable invalide\n" - -msgid "You must supply the variable number" -msgstr "Vous devez fournir le numéro de la variable" - -msgid "" -"This plugin will check either the average or maximum value of one of the" -msgstr "Ce plugin va vérifier la moyenne ou le maximum d'une " - -msgid "two variables recorded in an MRTG log file." -msgstr "deux variables du fichier de log de MRTG." - -msgid "The MRTG log file containing the data you want to monitor" -msgstr "" - -msgid "Minutes before MRTG data is considered to be too old" -msgstr "" - -msgid "Should we check average or maximum values?" -msgstr "" - -msgid "Which variable set should we inspect? (1 or 2)" -msgstr "" - -msgid "Threshold value for data to result in WARNING status" -msgstr "" - -msgid "Threshold value for data to result in CRITICAL status" -msgstr "" - -msgid "Type label for data (Examples: Conns, \"Processor Load\", In, Out)" -msgstr "" - -msgid "Option units label for data (Example: Packets/Sec, Errors/Sec," -msgstr "" - -#, c-format -msgid "\"Bytes Per Second\", \"%% Utilization\")" -msgstr "" - -msgid "" -"If the value exceeds the threshold, a WARNING status is returned. If" -msgstr "" - -msgid "" -"the value exceeds the threshold, a CRITICAL status is returned. If" -msgstr "" - -msgid "the data in the log file is older than old, a WARNING" -msgstr "" - -msgid "status is returned and a warning message is printed." -msgstr "" - -msgid "" -"This plugin is useful for monitoring MRTG data that does not correspond to" -msgstr "" - -msgid "" -"bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth)." -msgstr "" - -msgid "" -"It can be used to monitor any kind of data that MRTG is monitoring - errors," -msgstr "" - -msgid "" -"packets/sec, etc. I use MRTG in conjunction with the Novell NLM that allows" -msgstr "" - -msgid "" -"me to track processor utilization, user connections, drive space, etc and" -msgstr "" - -msgid "this plugin works well for monitoring that kind of data as well." -msgstr "" - -msgid "" -"- This plugin only monitors one of the two variables stored in the MRTG log" -msgstr "" -"- Ce plugin vérifie seulement une ou deux variables écrites dans un fichier " -"de log MRTG" - -msgid "file. If you want to monitor both values you will have to define two" -msgstr "" - -msgid "commands with different values for the argument. Of course," -msgstr "" - -msgid "you can always hack the code to make this plugin work for you..." -msgstr "" - -msgid "" -"- MRTG stands for the Multi Router Traffic Grapher. It can be downloaded " -"from" -msgstr "" - -msgid "Unable to open MRTG log file" -msgstr "Impossible d'ouvrir le fichier de log de MRTG" - -msgid "Unable to process MRTG log file" -msgstr "Impossible de traiter le fichier de log de MRTG" - -#, fuzzy, c-format -msgid "%s. In = %0.1f %s/s, %s. Out = %0.1f %s/s|%s %s\n" -msgstr "%s. Entrée = %0.1f %s, %s. Sortie = %0.1f %s|%s %s\n" - -#, c-format -msgid "Traffic %s - %s\n" -msgstr "Trafic %s - %s\n" - -msgid "" -"This plugin will check the incoming/outgoing transfer rates of a router," -msgstr "" -"Ce plugin va vérifier le taux de transfert en entrée/sortie d'un routeur," - -msgid "switch, etc recorded in an MRTG log. If the newest log entry is older" -msgstr "" - -msgid "than , a WARNING status is returned. If either the" -msgstr "" - -msgid "incoming or outgoing rates exceed the or thresholds (in" -msgstr "" - -msgid "Bytes/sec), a CRITICAL status results. If either of the rates exceed" -msgstr "" - -msgid "the or thresholds (in Bytes/sec), a WARNING status results." -msgstr "" - -msgid "File to read log from" -msgstr "" - -msgid "Minutes after which log expires" -msgstr "" - -msgid "Test average or maximum" -msgstr "" - -msgid "Warning threshold pair ," -msgstr "Paire de seuils d'avertissement ," - -msgid "Critical threshold pair ," -msgstr "Paire de seuils critique ," - -msgid "" -"- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from" -msgstr "" - -msgid "- While MRTG can monitor things other than traffic rates, this" -msgstr "" - -msgid " plugin probably won't work with much else without modification." -msgstr "" - -msgid "- The calculated i/o rates are a little off from what MRTG actually" -msgstr "" - -msgid " reports. I'm not sure why this is right now, but will look into it" -msgstr "" - -msgid " for future enhancements of this plugin." -msgstr "" - -#, c-format -msgid "Usage" -msgstr "Utilisation" - -#, fuzzy, c-format -msgid "status store_result error: %s\n" -msgstr "erreur slave store_result: %s\n" - -#, c-format -msgid "slave query error: %s\n" -msgstr "erreur de requête de l'esclave: %s\n" - -#, c-format -msgid "slave store_result error: %s\n" -msgstr "erreur slave store_result: %s\n" - -msgid "No slaves defined" -msgstr "Pas d'esclave spécifié" - -#, c-format -msgid "slave fetch row error: %s\n" -msgstr "erreur esclave lecture d'une ligne: %s\n" - -#, c-format -msgid "Slave running: %s" -msgstr "L'esclave fonctionne: %s" - -msgid "This program tests connections to a MySQL server" -msgstr "Ce plugin teste une connexion vers un serveur MySQL" - -msgid "Ignore authentication failure and check for mysql connectivity only" -msgstr "" - -msgid "Use the specified socket (has no effect if -H is used)" -msgstr "" - -msgid "Check database with indicated name" -msgstr "" - -msgid "Read from the specified client options file" -msgstr "" - -msgid "Use a client options group" -msgstr "" - -msgid "Connect using the indicated username" -msgstr "" - -msgid "Use the indicated password to authenticate the connection" -msgstr "" - -msgid "IMPORTANT: THIS FORM OF AUTHENTICATION IS NOT SECURE!!!" -msgstr "" - -msgid "Your clear-text password could be visible as a process table entry" -msgstr "" - -msgid "Check if the slave thread is running properly." -msgstr "" - -msgid "Exit with WARNING status if slave server is more than INTEGER seconds" -msgstr "" -"Sortir avec un résultat AVERTISSEMENT si le serveur esclave est plus de X " - -msgid "behind master" -msgstr "secondes en retard sur le maître" - -msgid "Exit with CRITICAL status if slave server is more then INTEGER seconds" -msgstr "Sortir avec un résultat CRITIQUE si le serveur esclave est plus de X " - -msgid "Use ssl encryption" -msgstr "" - -msgid "Path to CA signing the cert" -msgstr "" - -msgid "Path to SSL certificate" -msgstr "" - -msgid "Path to private SSL key" -msgstr "" - -msgid "Path to CA directory" -msgstr "" - -msgid "List of valid SSL ciphers" -msgstr "" - -msgid "" -"There are no required arguments. By default, the local database is checked" -msgstr "" -"Il n'y a pas d'arguments nécessaires. Par défaut la base de donnée locale " -"est testée" - -msgid "" -"using the default unix socket. You can force TCP on localhost by using an" -msgstr "" - -msgid "IP address or FQDN ('localhost' will use the socket as well)." -msgstr "" - -msgid "You must specify -p with an empty string to force an empty password," -msgstr "" - -msgid "overriding any my.cnf settings." -msgstr "" - -msgid "Cannot open status log for reading!" -msgstr "Impossible d'ouvrir le fichier status log en lecture!" - -#, c-format -msgid "Found process: %s %s\n" -msgstr "Processus trouvé: %s %s\n" - -msgid "Could not locate a running Nagios process!" -msgstr "Impossible de trouver un processus Nagios actif!" - -msgid "Cannot parse Nagios log file for valid time" -msgstr "" -"Impossible de trouver une date/heure valide dans le fichier de log de Nagios" - -#, c-format -msgid "%d process" -msgid_plural "%d processes" -msgstr[0] "%d processus" -msgstr[1] "%d processus" - -#, c-format -msgid "status log updated %d second ago" -msgid_plural "status log updated %d seconds ago" -msgstr[0] "status log mis à jour %d secondes auparavant" -msgstr[1] "status log mis à jour %d secondes auparavant" - -msgid "Expiration time must be an integer (seconds)\n" -msgstr "Le délai d'expiration doit être un entier (en secondes)\n" - -#, fuzzy -msgid "Timeout must be an integer (seconds)\n" -msgstr "Le délai d'expiration doit être un entier (en secondes)\n" - -msgid "You must provide the status_log\n" -msgstr "Vous devez fournir le status_log\n" - -msgid "You must provide a process string\n" -msgstr "Vous devez fournir un nom de processus\n" - -msgid "" -"This plugin checks the status of the Nagios process on the local machine" -msgstr "Ce plugin vérifie l'état du processus Nagios sur la machine locale." - -msgid "" -"The plugin will check to make sure the Nagios status log is no older than" -msgstr "Ce plugin vérifie que le status log de Nagios n'est pas plus vieux que" - -msgid "the number of minutes specified by the expires option." -msgstr "le nombre de minutes spécifies par l'option expire." - -msgid "" -"It also checks the process table for a process matching the command argument." -msgstr "" - -msgid "Name of the log file to check" -msgstr "Nom du fichier log à vérifier" - -msgid "Minutes aging after which logfile is considered stale" -msgstr "" - -msgid "Substring to search for in process arguments" -msgstr "" - -msgid "Timeout for the plugin in seconds" -msgstr "" - -#, c-format -msgid "Wrong client version - running: %s, required: %s" -msgstr "Mauvaise version du client utilisée: %s, nécessaire: %s" - -msgid "missing -l parameters" -msgstr "Arguments -l manquants" - -msgid "wrong -l parameter." -msgstr "Arguments -l erronés." - -msgid "CPU Load" -msgstr "Charge CPU" - -#, c-format -msgid " %lu%% (%lu min average)" -msgstr " %lu%% (%lu moyenne minimale)" - -#, c-format -msgid " '%lu min avg Load'=%lu%%;%lu;%lu;0;100" -msgstr " '%lu Charge moyenne minimale'=%lu%%;%lu;%lu;0;100" - -msgid "not enough values for -l parameters" -msgstr "pas assez de valeur pour l'argument -l" - -msgid "wrong -l argument" -msgstr "Argument -l erroné" - -#, fuzzy, c-format -msgid "System Uptime - %u day(s) %u hour(s) %u minute(s) |uptime=%lu" -msgstr "Système démarré - %u jour(s) %u heure(s) %u minute(s)" - -#, c-format -msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" -msgstr "" -"%s:\\ - total: %.2f Gb - utilisé: %.2f Gb (%.0f%%) - libre %.2f Gb (%.0f%%)" - -#, c-format -msgid "'%s:\\ Used Space'=%.2fGb;%.2f;%.2f;0.00;%.2f" -msgstr "'%s:\\ Espace Utilisé'=%.2fGb;%.2f;%.2f;0.00;%.2f" - -msgid "Free disk space : Invalid drive" -msgstr "Espace disque libre : Lecteur invalide" - -msgid "No service/process specified" -msgstr "Pas de service/processus spécifié" - -msgid "could not fetch information from server\n" -msgstr "Impossible d'obtenir l'information depuis le serveur\n" - -#, fuzzy, c-format -msgid "" -"Memory usage: total:%.2f MB - used: %.2f MB (%.0f%%) - free: %.2f MB (%.0f%%)" -msgstr "" -"Mémoire utilisée: total:%.2f Mb - utilisée: %.2f Mb (%.0f%%) - libre: %.2f " -"Mb (%.0f%%)" - -#, fuzzy, c-format -msgid "'Memory usage'=%.2fMB;%.2f;%.2f;0.00;%.2f" -msgstr "'Mémoire utilisée'=%.2fMb;%.2f;%.2f;0.00;%.2f" - -msgid "No counter specified" -msgstr "Pas de compteur spécifié" - -msgid "Minimum value contains non-numbers" -msgstr "La valeur minimum contient des caractères non numériques" - -msgid "Maximum value contains non-numbers" -msgstr "La valeur maximum contient des caractères non numériques" - -msgid "No unit counter specified" -msgstr "Pas de compteur spécifié" - -msgid "Please specify a variable to check" -msgstr "Veuillez préciser une variable a vérifier" - -msgid "Server port must be an integer\n" -msgstr "Le port du serveur doit être un nombre entier\n" - -msgid "You must provide a server address or host name" -msgstr "Vous devez spécifier une adresse ou un nom d'hôte" - -msgid "None" -msgstr "Aucun" - -msgid "This plugin collects data from the NSClient service running on a" -msgstr "" -"Ce plugin collecte les données depuis le service NSClient tournant sur un" - -msgid "Windows NT/2000/XP/2003 server." -msgstr "Serveur Windows NT/2000/XP/2003." - -msgid "Name of the host to check" -msgstr "Nom de l'hôte à vérifier" - -msgid "Optional port number (default: " -msgstr "Numéro de port optionnel (défaut: " - -msgid "Password needed for the request" -msgstr "Mot de passe nécessaire pour la requête" - -msgid "Threshold which will result in a warning status" -msgstr "" - -msgid "Threshold which will result in a critical status" -msgstr "" - -msgid "Seconds before connection attempt times out (default: " -msgstr "" - -msgid "Parameters passed to specified check (see below)" -msgstr "" - -msgid "Display options (currently only SHOWALL works)" -msgstr "" - -msgid "Return UNKNOWN on timeouts" -msgstr "" - -msgid "Print this help screen" -msgstr "Afficher l'écran d'aide" - -msgid "Print version information" -msgstr "Afficher la version" - -msgid "Variable to check" -msgstr "Variable a vérifier" - -msgid "Valid variables are:" -msgstr "Les variables valides sont" - -msgid "Get the NSClient version" -msgstr "Obtenir la version de NSClient" - -msgid "If -l is specified, will return warning if versions differ." -msgstr "" -"si l'argument -l est spécifié, une alerte AVERTISSEMENT sera " -"renvoyée, si les versions sont différentes." - -msgid "Average CPU load on last x minutes." -msgstr "Moyenne de la charge CPU sur les dernières x minutes." - -msgid "Request a -l parameter with the following syntax:" -msgstr "Demande un paramètre -l avec la syntaxe suivante:" - -msgid "-l ,,." -msgstr "-l ,,." - -msgid " should be less than 24*60." -msgstr " devrait être inférieur à 24*60." - -msgid "" -"Thresholds are percentage and up to 10 requests can be done in one shot." -msgstr "" -"Les seuils sonts en pourcentage et un maximum de 10 requêtes peuvent être " -"effectuées à la fois." - -msgid "Get the uptime of the machine." -msgstr "Obtenir le temps de service de la machine." - -msgid "-l " -msgstr "" - -msgid " = seconds, minutes, hours, or days. (default: minutes)" -msgstr "" - -#, fuzzy -msgid "Thresholds will use the unit specified above." -msgstr "Ce plugin va vérifier l'heure sur l'hôte spécifié." - -msgid "Size and percentage of disk use." -msgstr "Taille et pourcentage de l'utilisation disque." - -msgid "Request a -l parameter containing the drive letter only." -msgstr "Demande un paramètre -l contennant uniquement la lettre du lecteur." - -msgid "Warning and critical thresholds can be specified with -w and -c." -msgstr "Les seuils d'alerte et critiques peuvent être spécifiés avec -w et -c." - -msgid "Memory use." -msgstr "Mémoire utilisée." - -msgid "Check the state of one or several services." -msgstr "Vérifier l'état d'un ou plusieurs services." - -msgid "Request a -l parameters with the following syntax:" -msgstr "Demande un paramètre -l avec la syntaxe suivante:" - -msgid "-l ,,,..." -msgstr "-l ,,,..." - -msgid "You can specify -d SHOWALL in case you want to see working services" -msgstr "Vous pouvez spécifier -d SHOWALL pour voir les services fonctionnant" - -msgid "in the returned string." -msgstr "dans la chaîne de caractère renvoyée." - -msgid "Check if one or several process are running." -msgstr "Vérifie si un ou plusieurs processus sont démarrés." - -msgid "Same syntax as SERVICESTATE." -msgstr "Même syntaxe que SERVICESTATE." - -msgid "Check any performance counter of Windows NT/2000." -msgstr "Vérifier n'importe quel compteur de performance sur Windows NT/2000." - -msgid "-l \"\\\\\\\\counter\",\"" -msgstr "-l \"\\\\\\\\compteur\",\"" - -msgid "The parameter is optional and is given to a printf " -msgstr "Le paramètre est optionnel et est passé à la fonction " - -msgid "output command which requires a float parameter." -msgstr "de sortie printf qui demande un paramètre de type float." - -#, c-format -msgid "If does not include \"%%\", it is used as a label." -msgstr "Si n'inclus pas \"%%\", il est utilisé comme étiquette." - -msgid "Some examples:" -msgstr "Exemples:" - -msgid "Check any performance counter object of Windows NT/2000." -msgstr "Vérifie n'importe quel compteur de performance de Windows NT/2000." - -msgid "" -"Syntax: check_nt -H -p -v INSTANCES -l " -msgstr "" - -msgid " is a Windows Perfmon Counter object (eg. Process)," -msgstr "" - -msgid "if it is two words, it should be enclosed in quotes" -msgstr "" - -msgid "The returned results will be a comma-separated list of instances on " -msgstr "" - -msgid " the selected computer for that object." -msgstr "" - -msgid "" -"The purpose of this is to be run from command line to determine what " -"instances" -msgstr "" - -msgid "" -" are available for monitoring without having to log onto the Windows server" -msgstr "" - -msgid " to run Perfmon directly." -msgstr "" - -msgid "" -"It can also be used in scripts that automatically create the monitoring " -"service" -msgstr "" - -msgid " configuration files." -msgstr "" - -msgid "check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process" -msgstr "" - -msgid "" -"- The NSClient service should be running on the server to get any information" -msgstr "" -"- Le service NSClient doit rouler sur le serveur pour obtenir les " -"informations" - -msgid "- Critical thresholds should be lower than warning thresholds" -msgstr "" -"- Les seuils critiques doivent être plus bas que les seuils d'avertissement" - -msgid "- Default port 1248 is sometimes in use by other services. The error" -msgstr "" -"- Le port par défaut 1248 est parfois utilisé par d'autres services. L'erreur" - -msgid "" -"output when this happens contains \"Cannot map xxxxx to protocol number\"." -msgstr "qui en résulte contiens \"Cannot map xxxxx to protocol number\"." - -msgid "One fix for this is to change the port to something else on check_nt " -msgstr "" -"Une possibilité pour corriger ce problème est de changer le port dans " -"check_nt " - -msgid "and on the client service it's connecting to." -msgstr "et dans le service auquel il se connecte." - -#, c-format -msgid "jitter response too large (%lu bytes)\n" -msgstr "" - -msgid "NTP CRITICAL:" -msgstr "NTP CRITIQUE:" - -msgid "NTP WARNING:" -msgstr "NTP AVERTISSEMENT:" - -msgid "NTP OK:" -msgstr "NTP OK:" - -msgid "NTP UNKNOWN:" -msgstr "NTP INCONNU:" - -msgid "Offset unknown" -msgstr "Décalage inconnu" - -msgid "Offset" -msgstr "Décalage" - -msgid "This plugin checks the selected ntp server" -msgstr "Ce plugin vérifie le service ntp sur l'hôte" - -msgid "Offset to result in warning status (seconds)" -msgstr "Décalage résultant en un avertissement (secondes)" - -msgid "Offset to result in critical status (seconds)" -msgstr "Décalage résultant en un état critique (secondes)" - -msgid "Warning threshold for jitter" -msgstr "Seuil d'avertissement pour la variation (jitter)" - -msgid "Critical threshold for jitter" -msgstr "Seuil critique pour la variation (jitter)" - -msgid "Normal offset check:" -msgstr "Vérification normale du décalage:" - -msgid "" -"Check jitter too, avoiding critical notifications if jitter isn't available" -msgstr "" -"Vérifier aussi la variation (jitter) en évitant les notifications s'il n'est " -"pas dispoible" - -msgid "(See Notes above for more details on thresholds formats):" -msgstr "" -"(Voir les Notes ci-dessus pour plus de détails sur le format des seuils)" - -msgid "WARNING: check_ntp is deprecated. Please use check_ntp_peer or" -msgstr "ATTENTION: check_ntp est périmé, utilisez plutôt check_ntp_peer" - -msgid "check_ntp_time instead." -msgstr "ou check_ntp_time." - -msgid "Server not synchronized" -msgstr "Le serveur n'est pas synchronisé" - -msgid "Server has the LI_ALARM bit set" -msgstr "" - -msgid "" -"Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized" -msgstr "" -"Retourne INCONNU au lieu de CRITIQUE ou AVERTISSEMENT si le serveur n'est " -"pas synchronisé" - -#, fuzzy -msgid "Warning threshold for stratum of server's synchronization peer" -msgstr "Seuil d'avertissement pour le stratum" - -#, fuzzy -msgid "Critical threshold for stratum of server's synchronization peer" -msgstr "Seuil critique pour le stratum" - -msgid "Warning threshold for number of usable time sources (\"truechimers\")" -msgstr "" -"Seuil d'avertissement pour le nombre de sources de temps utilisable " -"(\"truechimers\")" - -msgid "Critical threshold for number of usable time sources (\"truechimers\")" -msgstr "" -"Seuil critique pour le nombre de sources de temps utilisable (\"truechimers" -"\")" - -msgid "This plugin checks an NTP server independent of any commandline" -msgstr "Ce plugin vérifie un serveur NTP sans recours aux programmes de" - -msgid "programs or external libraries." -msgstr "la ligne de commande ou libraries externes" - -msgid "Use this plugin to check the health of an NTP server. It supports" -msgstr "" -"Utilisez ce plugin pour vérifier le service NTP sur l'hôte. Il supporte la" - -msgid "checking the offset with the sync peer, the jitter and stratum. This" -msgstr "" -"vérification du décalage avec le pair se synchronisation, la variation " -"(jitter) et le stratum." - -msgid "plugin will not check the clock offset between the local host and NTP" -msgstr "" -"Ce plugin ne vérifie pas le décalage entre le serveur local et le serveur" - -msgid "server; please use check_ntp_time for that purpose." -msgstr "NTP; utilisez plutôt check_ntp_time à cette fin." - -msgid "Simple NTP server check:" -msgstr "Vérification simple du serveur NTP:" - -msgid "Only check the number of usable time sources (\"truechimers\"):" -msgstr "" - -msgid "Check only stratum:" -msgstr "Vérification du stratum seulement:" - -msgid "This plugin checks the clock offset with the ntp server" -msgstr "Ce plugin vérifie le décalage de l'horloge avec le serveur ntp" - -msgid "Returns UNKNOWN instead of CRITICAL if offset cannot be found" -msgstr "Retourne INCONNU au lieu de CRITIQUE si le décalage est inconnu" - -msgid "Expected offset of the ntp server relative to local server (seconds)" -msgstr "" - -msgid "This plugin checks the clock offset between the local host and a" -msgstr "Ce plugin vérifie le décalage de l'horloge entre se serveur local et" - -msgid "remote NTP server. It is independent of any commandline programs or" -msgstr "le serveur NTP distant. Il ne fait aucun recours aux programmes de" - -msgid "external libraries." -msgstr "la ligne de commande ou libraries externes." - -msgid "If you'd rather want to monitor an NTP server, please use" -msgstr "Si vous voulez plutôt surveiller un serveur NTP, veuillez" - -msgid "check_ntp_peer." -msgstr "utiliser check_ntp_peer." - -msgid "--time-offset is useful for compensating for servers with known" -msgstr "" - -msgid "and expected clock skew." -msgstr "" - -#, c-format -msgid "NetWare %s: " -msgstr "NetWare %s: " - -#, c-format -msgid "Up %s," -msgstr "Démarré %s," - -#, c-format -msgid "Load %s - %s %s-min load average = %lu%%|load%s=%lu;%lu;%lu;0;100" -msgstr "" -"Charge %s - %s %s charge système minimale = %lu%%|charge%s=%lu;%lu;%lu;0;100" - -#, c-format -msgid "Conns %s - %lu current connections|Conns=%lu;%lu;%lu;;" -msgstr "Conns %s - %lu connections actuelles|Conns=%lu;%lu;%lu;;" - -#, c-format -msgid "%s: Long term cache hits = %lu%%" -msgstr "%s: Accès cache longue durée = %lu%%" - -#, c-format -msgid "%s: Total cache buffers = %lu|Cachebuffers=%lu;%lu;%lu;;" -msgstr "%s: Total des caches tampons= %lu|Caches Tampons=%lu,%lu;%lu;;" - -#, c-format -msgid "%s: Dirty cache buffers = %lu|Dirty-Cache-Buffers=%lu;%lu;%lu;;" -msgstr "%s: cache tampons sales = %lu|caches tampons sales=%lu;%lu;%lu;;" - -#, c-format -msgid "%s: LRU sitting time = %lu minutes" -msgstr "" - -#, c-format -msgid "CRITICAL - Volume '%s' does not exist!" -msgstr "CRITIQUE: Le volume '%s' n'existe pas!" - -#, c-format -msgid "%s%lu KB free on volume %s|KBFree%s=%lu;%lu;%lu;;" -msgstr "%s%lu KB libre sur le volume %s|KB libres%s=%lu;%lu;%lu;;" - -msgid "Only " -msgstr "Seulement" - -#, c-format -msgid "%s%lu MB free on volume %s|MBFree%s=%lu;%lu;%lu;;" -msgstr "%s%lu MB libre sur le volume %s|MBlibre%s=%lu;%lu;%lu;;" - -#, c-format -msgid "%s%lu MB used on volume %s|MBUsed%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "" -"%lu MB (%lu%%) free on volume %s - total %lu MB|FreeMB%s=%lu;%lu;%lu;0;100" -msgstr "" -"%lu MB (%lu%%) libre sur le volume %s - total %lu MB|MBlibre%s=%lu;%lu;" -"%lu;0;100" - -#, c-format -msgid "Directory Services Database is %s (DS version %s)" -msgstr "La base de données Directory Services est %s (DS version %s)" - -#, c-format -msgid "Logins are %s" -msgstr "Les logins sont %s" - -msgid "enabled" -msgstr "activé" - -msgid "disabled" -msgstr "désactivé" - -msgid "CRITICAL - NRM Status is bad!" -msgstr "CRITIQUE - le statut NRM est mauvais!" - -msgid "Warning - NRM Status is suspect!" -msgstr "" - -msgid "OK - NRM Status is good!" -msgstr "OK - Le status du NRM est bon!" - -#, c-format -msgid "%lu of %lu (%lu%%) packet receive buffers used" -msgstr "%lu de %lu (%lu%%) paquets du tampon de réception utilisés" - -#, c-format -msgid "%lu entries in SAP table" -msgstr "%lu entrées dans la table SAP" - -#, c-format -msgid "%lu entries in SAP table for SAP type %d" -msgstr "%lu entrées dans la table SAP pour le type SAP %d" - -#, c-format -msgid "%s%lu KB purgeable on volume %s|Purge%s=%lu;%lu;%lu;;" -msgstr "%s%lu KB effaçables sur le volume %s|Purge%s=%lu;%lu;%lu;;" - -#, c-format -msgid "%s%lu MB purgeable on volume %s|Purge%s=%lu;%lu;%lu;;" -msgstr "%s%lu KB effaçables sur le volume %s|Purge%s=%lu;%lu;%lu;;" - -#, c-format -msgid "%lu MB (%lu%%) purgeable on volume %s|Purgeable%s=%lu;%lu;%lu;0;100" -msgstr "" -"%lu MB (%lu%%) effaçables sur le volume %s|Effacable%s=%lu;%lu;%lu;0;100" - -#, c-format -msgid "%s%lu KB not yet purgeable on volume %s" -msgstr "%s%lu KB pas encore effaçables sur le volume %s" - -#, c-format -msgid "%lu MB (%lu%%) not yet purgeable on volume %s" -msgstr "%lu MB (%lu%%) pas encore effaçables sur le volume %s" - -#, c-format -msgid "%lu open files|Openfiles=%lu;%lu;%lu;0,0" -msgstr "" - -#, c-format -msgid "%lu abended threads|Abends=%lu;%lu;%lu;;" -msgstr "%lu processus avortés|Avortés=%lu;%lu;%lu;;" - -#, c-format -msgid "%lu current service processes (%lu max)|Processes=%lu;%lu;%lu;0;%lu" -msgstr "%lu processus services actuels (%lu max)|Processus=%lu;%lu;%lu;0;%lu" - -msgid "CRITICAL - Time not in sync with network!" -msgstr "CRITIQUE - Le temps n'est pas synchronisé avec le réseau!" - -msgid "OK - Time in sync with network!" -msgstr "OK - Le temps est synchronisé avec le réseau!" - -#, c-format -msgid "LRU sitting time = %lu seconds" -msgstr "LRU temps d'attente = %lu secondes" - -#, c-format -msgid "Dirty cache buffers = %lu%% of the total|DCB=%lu;%lu;%lu;0;100" -msgstr "Buffers cache sales = %lu%% du total|DCB=%lu;%lu;%lu;0;100" - -#, c-format -msgid "Total cache buffers = %lu%% of the original|TCB=%lu;%lu;%lu;0;100" -msgstr "cache tampons totaux= %lu%% de l'original|TCB=%lu;%lu;%lu;0;100" - -#, c-format -msgid "NDS Version %s" -msgstr "Version NDS %s" - -#, c-format -msgid "Up %s" -msgstr "Démarré %s" - -#, c-format -msgid "Module %s version %s is loaded" -msgstr "Le Module %s version %s est chargé" - -#, c-format -msgid "Module %s is not loaded" -msgstr "Le Module %s n'est pas chargé" - -#, c-format -msgid "CRITICAL - Value '%s' does not exist!" -msgstr "CRITIQUE: Le valeur '%s' n'existe pas!" - -#, c-format -msgid "%s is %lu|%s=%lu;%lu;%lu;;" -msgstr "%s est %lu|%s=%lu;%lu;%lu;;" - -msgid "Nothing to check!\n" -msgstr "Rien à vérifier!\n" - -msgid "Server port an integer\n" -msgstr "Le port du serveur doit être un nombre entier\n" - -msgid "This plugin attempts to contact the MRTGEXT NLM running on a" -msgstr "Ce plugin essaye de contacter le NLM MRTGEXT qui s'exécute sur" - -msgid "Novell server to gather the requested system information." -msgstr "un serveur Novell pour récupérer l'information système demandée." - -msgid "Variable to check. Valid variables include:" -msgstr "Variable à vérifier. Les variables valides sont:" - -msgid "LOAD1 = 1 minute average CPU load" -msgstr "" - -msgid "LOAD5 = 5 minute average CPU load" -msgstr "" - -msgid "LOAD15 = 15 minute average CPU load" -msgstr "" - -msgid "CSPROCS = number of current service processes (NW 5.x only)" -msgstr "CSPROCS = nombres de processus services actuels (NW 5.x seulement)" - -msgid "ABENDS = number of abended threads (NW 5.x only)" -msgstr "" - -msgid "UPTIME = server uptime" -msgstr "" - -msgid "LTCH = percent long term cache hits" -msgstr "" - -msgid "CBUFF = current number of cache buffers" -msgstr "" - -msgid "CDBUFF = current number of dirty cache buffers" -msgstr "" - -msgid "DCB = dirty cache buffers as a percentage of the total" -msgstr "" - -msgid "TCB = dirty cache buffers as a percentage of the original" -msgstr "" - -msgid "OFILES = number of open files" -msgstr "" - -msgid " VMF = MB of free space on Volume " -msgstr "" - -msgid " VMU = MB used space on Volume " -msgstr "" - -msgid " VMP = MB of purgeable space on Volume " -msgstr "" - -msgid " VPF = percent free space on volume " -msgstr "" - -msgid " VKF = KB of free space on volume " -msgstr "" - -msgid " VPP = percent purgeable space on volume " -msgstr "" - -msgid " VKP = KB of purgeable space on volume " -msgstr "" - -msgid " VPNP = percent not yet purgeable space on volume " -msgstr "" - -msgid " VKNP = KB of not yet purgeable space on volume " -msgstr "" - -msgid " LRUM = LRU sitting time in minutes" -msgstr "" - -msgid " LRUS = LRU sitting time in seconds" -msgstr " LRUS = LRU temps d'attente en secondes" - -msgid " DSDB = check to see if DS Database is open" -msgstr "" - -msgid " DSVER = NDS version" -msgstr "" - -msgid " UPRB = used packet receive buffers" -msgstr " UPRB = paquets du tampon de réception utilisés" - -msgid " PUPRB = percent (of max) used packet receive buffers" -msgstr "" - -msgid " SAPENTRIES = number of entries in the SAP table" -msgstr "" - -msgid " SAPENTRIES = number of entries in the SAP table for SAP type " -msgstr " SAPENTRIES = entrées dans la table SAP pour le type SAP " - -msgid " TSYNC = timesync status" -msgstr "" - -msgid " LOGINS = check to see if logins are enabled" -msgstr "" - -msgid " CONNS = number of currently licensed connections" -msgstr "" - -msgid " NRMH\t= NRM Summary Status" -msgstr "" - -msgid " NRMP = Returns the current value for a NRM health item" -msgstr "" - -msgid " NRMM = Returns the current memory stats from NRM" -msgstr "" - -msgid " NRMS = Returns the current Swapfile stats from NRM" -msgstr "" - -msgid " NSS1 = Statistics from _Admin:Manage_NSS\\GeneralStats.xml" -msgstr "" - -msgid " NSS3 = Statistics from _Admin:Manage_NSS\\NameCache.xml" -msgstr "" - -msgid " NSS4 = Statistics from _Admin:Manage_NSS\\FileStats.xml" -msgstr "" - -msgid " NSS5 = Statistics from _Admin:Manage_NSS\\ObjectCache.xml" -msgstr "" - -msgid " NSS6 = Statistics from _Admin:Manage_NSS\\Thread.xml" -msgstr "" - -msgid "" -" NSS7 = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml" -msgstr "" - -msgid " NLM: = check if NLM is loaded and report version" -msgstr "" - -msgid " (e.g. NLM:TSANDS.NLM)" -msgstr "" - -msgid "Include server version string in results" -msgstr "" - -msgid "- This plugin requires that the MRTGEXT.NLM file from James Drews' MRTG" -msgstr "" - -msgid "" -" extension for NetWare be loaded on the Novell servers you wish to check." -msgstr "" - -msgid " (available from http://www.engr.wisc.edu/~drews/mrtg/)" -msgstr " (disponible depuis http://www.engr.wisc.edu/~drews/mrtg/)" - -msgid "" -"- Values for critical thresholds should be lower than warning thresholds" -msgstr "" - -msgid "" -" when the following variables are checked: VPF, VKF, LTCH, CBUFF, DCB, " -msgstr "" - -msgid " TCB, LRUS and LRUM." -msgstr "" - -msgid "Unknown error fetching load data\n" -msgstr "" -"Erreur inconnue lors de la récupération des données de charge système\n" - -msgid "Invalid response from server - no load information\n" -msgstr "Réponse invalide du serveur - pas d'information de charge système\n" - -msgid "Invalid response from server after load 1\n" -msgstr "Réponse invalide du serveur après charge système à 1 minute\n" - -msgid "Invalid response from server after load 5\n" -msgstr "Réponse invalide du serveur après charge système à 5 minute\n" - -#, c-format -msgid "Load %s - %s-min load average = %0.2f" -msgstr "Charge %s - %s-moyenne minimale de charge système = %0.2f" - -msgid "Unknown error fetching disk data\n" -msgstr "Erreur inconnue en récupérant les données des disques\n" - -msgid "Invalid response from server\n" -msgstr "Réponse invalide reçue du serveur\n" - -msgid "Unknown error fetching network status\n" -msgstr "Erreur inconnue lors de la réception de l'état du réseau\n" - -#, c-format -msgid "Net %s - %d connection%s on port %d" -msgstr "Net %s - %d connections%s sur le port %d" - -msgid "Unknown error fetching process status\n" -msgstr "Erreur inconnue en récupérant l'état des processus\n" - -#, c-format -msgid "Process %s - %d instance%s of %s running" -msgstr "Processus %s - %d instances%s de %s démarrées" - -#, c-format -msgid "Uptime %s - Up %d days %d hours %d minutes" -msgstr "Temps de fonctionnement %s - Up %d jours %d heures %d minutes" - -msgid "" -"This plugin attempts to contact the Over-CR collector daemon running on the" -msgstr "" -"Ce plugin essaye de joindre le service Over CR tournant sur le serveur UNIX" - -msgid "remote UNIX server in order to gather the requested system information." -msgstr "distant afin de récupérer les informations système demandées." - -msgid "LOAD1 = 1 minute average CPU load" -msgstr "" - -msgid "LOAD5 = 5 minute average CPU load" -msgstr "" - -msgid "LOAD15 = 15 minute average CPU load" -msgstr "" - -msgid "DPU = percent used disk space on filesystem " -msgstr "" - -msgid "PROC = number of running processes with name " -msgstr "" - -msgid "NET = number of active connections on TCP port " -msgstr "" - -msgid "UPTIME = system uptime in seconds" -msgstr "" - -msgid "This plugin requires that Eric Molitors' Over-CR collector daemon be" -msgstr "Ce plugin requiert que le daemon collecteur Over-CR d'Eric Molitors" - -msgid "running on the remote server." -msgstr "soit fonctionnel sur le serveur distant" - -msgid "Over-CR can be downloaded from http://www.molitor.org/overcr" -msgstr "" - -msgid "This plugin was tested with version 0.99.53 of the Over-CR collector" -msgstr "Ce plugin a été testé avec la version 0.99.53 su collecteur Over-CR" - -msgid "" -"For the available options, the critical threshold value should always be" -msgstr "" -"Pour toutes les options disponibles, le seuil critique doit toujours être" - -msgid "" -"higher than the warning threshold value, EXCEPT with the uptime variable" -msgstr "plus grand que le seuil d'alerte SAUF pour l'option uptime" - -#, c-format -msgid "CRITICAL - no connection to '%s' (%s).\n" -msgstr "CRITIQUE - pas de connexion à '%s' (%s).\n" - -#, fuzzy, c-format -msgid " %s - database %s (%f sec.)|%s\n" -msgstr " %s - base de données %s (%d sec.)|%s\n" - -msgid "Critical threshold must be a positive integer" -msgstr "Le seuil critique doit être un entier positif" - -msgid "Warning threshold must be a positive integer" -msgstr "Le seuil d'avertissement doit être un entier positif" - -#, fuzzy -msgid "Database name exceeds the maximum length" -msgstr "Le nom de la base de données est invalide" - -msgid "User name is not valid" -msgstr "Le nom de l'utilisateur est invalide" - -#, c-format -msgid "Test whether a PostgreSQL Database is accepting connections." -msgstr "Teste si une base de données Postgresql accepte les connections." - -msgid "Database to check " -msgstr "" - -#, fuzzy, c-format -msgid "(default: %s)\n" -msgstr "(Défaut: %d)\n" - -msgid "Login name of user" -msgstr "Le nom d'un utilisateur" - -msgid "Password (BIG SECURITY ISSUE)" -msgstr "" - -msgid "Connection parameters (keyword = value), see below" -msgstr "" - -msgid "SQL query to run. Only first column in first row will be read" -msgstr "" - -msgid "A name for the query, this string is used instead of the query" -msgstr "" - -msgid "in the long output of the plugin" -msgstr "" - -#, fuzzy -msgid "SQL query value to result in warning status (double)" -msgstr "Décalage résultant en un avertissement (secondes)" - -#, fuzzy -msgid "SQL query value to result in critical status (double)" -msgstr "Décalage résultant en un état critique (secondes)" - -msgid "All parameters are optional." -msgstr "" - -msgid "" -"This plugin tests a PostgreSQL DBMS to determine whether it is active and" -msgstr "" - -msgid "accepting queries. In its current operation, it simply connects to the" -msgstr "" - -msgid "" -"specified database, and then disconnects. If no database is specified, it" -msgstr "" - -msgid "" -"connects to the template1 database, which is present in every functioning" -msgstr "" - -msgid "PostgreSQL DBMS." -msgstr "" - -msgid "If a query is specified using the -q option, it will be executed after" -msgstr "" - -msgid "connecting to the server. The result from the query has to be numeric." -msgstr "" - -msgid "" -"Multiple SQL commands, separated by semicolon, are allowed but the result " -msgstr "" - -msgid "of the last command is taken into account only. The value of the first" -msgstr "" - -msgid "" -"column in the first row is used as the check result. If a second column is" -msgstr "" - -msgid "present in the result set, this is added to the plugin output with a" -msgstr "" - -msgid "" -"prefix of \"Extra Info:\". This information can be displayed in the system" -msgstr "" - -msgid "executing the plugin." -msgstr "" - -msgid "" -"See the chapter \"Monitoring Database Activity\" of the PostgreSQL manual" -msgstr "" - -msgid "" -"for details about how to access internal statistics of the database server." -msgstr "" - -msgid "" -"For a list of available connection parameters which may be used with the -o" -msgstr "" - -msgid "" -"command line option, see the documentation for PQconnectdb() in the chapter" -msgstr "" - -msgid "" -"\"libpq - C Library\" of the PostgreSQL manual. For example, this may be" -msgstr "" - -msgid "" -"used to specify a service name in pg_service.conf to be used for additional" -msgstr "" - -msgid "connection parameters: -o 'service=' or to specify the SSL mode:" -msgstr "" - -msgid "-o 'sslmode=require'." -msgstr "" - -msgid "" -"The plugin will connect to a local postmaster if no host is specified. To" -msgstr "" -"Ce plugin va se connecter sur un postmaster local si aucun hôte n'est " -"spécifié." - -msgid "" -"connect to a remote host, be sure that the remote postmaster accepts TCP/IP" -msgstr "" - -msgid "connections (start the postmaster with the -i option)." -msgstr "" - -msgid "" -"Typically, the monitoring user (unless the --logname option is used) should " -"be" -msgstr "" - -msgid "" -"able to connect to the database without a password. The plugin can also send" -msgstr "" - -msgid "a password, but no effort is made to obscure or encrypt the password." -msgstr "" - -#, c-format -msgid "QUERY %s - %s: %s.\n" -msgstr "" - -msgid "Error with query" -msgstr "" - -#, fuzzy -msgid "No rows returned" -msgstr "Pas de données valides reçues" - -#, fuzzy -msgid "No columns returned" -msgstr "Pas de données valides reçues" - -#, fuzzy -msgid "No data returned" -msgstr "Pas de données valides reçues" - -msgid "Is not a numeric" -msgstr "" - -#, fuzzy, c-format -msgid "%s returned %f" -msgstr ". %s renvoie %s" - -#, fuzzy, c-format -msgid "'%s' returned %f" -msgstr ". %s renvoie %s" - -msgid "CRITICAL - Could not interpret output from ping command\n" -msgstr "CRITIQUE - Impossible d'interpréter le réponse de la commande ping\n" - -#, c-format -msgid "PING %s - %sPacket loss = %d%%" -msgstr "PING %s - %s Paquets perdus = %d%%" - -#, c-format -msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" -msgstr "PING %s - %s Paquets perdus = %d%%, RTA = %2.2f ms" - -msgid "Could not realloc() addresses\n" -msgstr "Impossible de réallouer les adresses\n" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr " (%s) doit être un nombre positif\n" - -#, c-format -msgid " (%s) must be an integer percentage\n" -msgstr " (%s) doit être un pourcentage entier\n" - -#, c-format -msgid " (%s) must be an integer percentage\n" -msgstr " (%s) doit être un pourcentage entier\n" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr " (%s) doit être un nombre positif\n" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr " (%s) doit être un nombre positif\n" - -#, c-format -msgid "" -"%s: Warning threshold must be integer or percentage!\n" -"\n" -msgstr "%s: Le seuil d'avertissement doit être un entier ou un pourcentage!\n" - -#, c-format -msgid " was not set\n" -msgstr " n'a pas été indiqué\n" - -#, c-format -msgid " was not set\n" -msgstr " n'a pas été indiqué\n" - -#, c-format -msgid " was not set\n" -msgstr " n'a pas été indiqué\n" - -#, c-format -msgid " was not set\n" -msgstr " n'a pas été indiqué\n" - -#, c-format -msgid " (%f) cannot be larger than (%f)\n" -msgstr " (%f) ne peut pas être plus large que (%f)\n" - -#, c-format -msgid " (%d) cannot be larger than (%d)\n" -msgstr " (%d) ne peut pas être plus large que (%d)\n" - -#, c-format -msgid "Cannot open stderr for %s\n" -msgstr "Impossible d'ouvrir le canal d'erreur standard pour %s\n" - -msgid "System call sent warnings to stderr " -msgstr "" -"Les appel système enverront leurs messages d'avertissement vers le canal " -"d'erreur standard" - -#, fuzzy, c-format -msgid "CRITICAL - Network Unreachable (%s)\n" -msgstr "CRITIQUE - Le réseau est inaccessible (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Host Unreachable (%s)\n" -msgstr "CRITIQUE - Hôte inaccessible (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Bogus ICMP: Port Unreachable (%s)\n" -msgstr "CRITIQUE - Paquet ICMP incorrect: Port inaccessible (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Bogus ICMP: Protocol Unreachable (%s)\n" -msgstr "CRITIQUE - Paquet ICMP incorrect: Protocole inaccessible (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Network Prohibited (%s)\n" -msgstr "CRITIQUE - L'accès au réseau est interdit (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Host Prohibited (%s)\n" -msgstr "CRITIQUE - L'accès a l'hôte est interdit (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Packet Filtered (%s)\n" -msgstr "CRITIQUE - Paquet filtré (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Host not found (%s)\n" -msgstr "CRITIQUE - Hôte non trouvé (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Time to live exceeded (%s)\n" -msgstr "CRITIQUE - La durée de vie du paquet est dépassée (%s)" - -#, fuzzy, c-format -msgid "CRITICAL - Destination Unreachable (%s)\n" -msgstr "CRITIQUE - Hôte inaccessible (%s)" - -#, fuzzy -msgid "Unable to realloc warn_text\n" -msgstr "Impossible de réattribuer le texte d'avertissement" - -#, c-format -msgid "Use ping to check connection statistics for a remote host." -msgstr "" -"Utilise ping pour vérifier les statistiques de connections d'un hôte distant." - -msgid "host to ping" -msgstr "hôte à tester" - -msgid "number of ICMP ECHO packets to send" -msgstr "nombre de paquets ICMP à envoyer" - -#, c-format -msgid "(Default: %d)\n" -msgstr "(Défaut: %d)\n" - -msgid "show HTML in the plugin output (obsoleted by urlize)" -msgstr "" - -msgid "THRESHOLD is ,% where is the round trip average travel" -msgstr "" -"Le seuil est ,% où est le temps moyen pour l'aller retour (ms)" - -msgid "time (ms) which triggers a WARNING or CRITICAL state, and is the" -msgstr "qui déclenche un résultat AVERTISSEMENT ou CRITIQUE, et est le " - -msgid "percentage of packet loss to trigger an alarm state." -msgstr "pourcentage de paquets perdus pour déclencher une alarme." - -msgid "" -"This plugin uses the ping command to probe the specified host for packet loss" -msgstr "" -"Ce plugin utilise la commande ping pour vérifier l'hôte spécifié pour les " -"pertes de paquets" - -msgid "" -"(percentage) and round trip average (milliseconds). It can produce HTML " -"output" -msgstr "" - -msgid "" -"linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in" -msgstr "" - -msgid "the contrib area of the downloads section at http://www.nagios.org/" -msgstr "" - -#, c-format -msgid "CMD: %s\n" -msgstr "Commande: %s\n" - -msgid "System call sent warnings to stderr" -msgstr "" -"L'appel système à retourné des avertissement vers le canal d'erreur standard" - -#, c-format -msgid "Not parseable: %s" -msgstr "Impossible de parcourir les arguments: %s" - -#, c-format -msgid "Unable to read output\n" -msgstr "Impossible de lire les données en entrée\n" - -#, c-format -msgid "%d warn out of " -msgstr "%d avertissements sur" - -#, c-format -msgid "%d crit, %d warn out of " -msgstr "%d crit, %d alertes sur " - -#, c-format -msgid " with %s" -msgstr " avec %s" - -msgid "Parent Process ID must be an integer!" -msgstr "L'identifiant du processus parent doit être un entier!" - -#, c-format -msgid "%s%sSTATE = %s" -msgstr "%s%sETAT = %s" - -msgid "UID was not found" -msgstr "L'UID n'a pas été trouvé" - -msgid "User name was not found" -msgstr "L'utilisateur n'a pas été trouvé" - -#, c-format -msgid "%s%scommand name '%s'" -msgstr "%s%snom de la commande '%s'" - -#, c-format -msgid "%s%sexclude progs '%s'" -msgstr "" - -msgid "RSS must be an integer!" -msgstr "RSS doit être un entier!" - -msgid "VSZ must be an integer!" -msgstr "VSZ doit être un entier!" - -msgid "PCPU must be a float!" -msgstr "PCPU doit être un nombre en virgule flottante!" - -msgid "Metric must be one of PROCS, VSZ, RSS, CPU, ELAPSED!" -msgstr "Metric doit être l'un des PROCS, VSZ, RSS, CPU, ELAPSED!" - -msgid "" -"Checks all processes and generates WARNING or CRITICAL states if the " -"specified" -msgstr "" - -msgid "" -"metric is outside the required threshold ranges. The metric defaults to " -"number" -msgstr "" - -msgid "" -"of processes. Search filters can be applied to limit the processes to check." -msgstr "" - -msgid "Generate warning state if metric is outside this range" -msgstr "" - -msgid "Generate critical state if metric is outside this range" -msgstr "" - -msgid "Check thresholds against metric. Valid types:" -msgstr "" - -msgid "PROCS - number of processes (default)" -msgstr "PROCS - nombre de processus (défaut)" - -msgid "VSZ - virtual memory size" -msgstr "VSZ - taille mémoire virtuelle" - -msgid "RSS - resident set memory size" -msgstr "" - -msgid "CPU - percentage CPU" -msgstr "CPU - pourcentage du processeur" - -msgid "ELAPSED - time elapsed in seconds" -msgstr "ELAPSED - temps écoulé en secondes" - -msgid "Extra information. Up to 3 verbosity levels" -msgstr "informations supplémentaires. Jusqu'à 3 niveaux de verbosité" - -msgid "Filter own process the traditional way by PID instead of /proc/pid/exe" -msgstr "" - -msgid "Only scan for processes that have, in the output of `ps`, one or" -msgstr "" - -msgid "more of the status flags you specify (for example R, Z, S, RS," -msgstr "" - -msgid "RSZDT, plus others based on the output of your 'ps' command)." -msgstr "" - -msgid "Only scan for children of the parent process ID indicated." -msgstr "" - -msgid "Only scan for processes with VSZ higher than indicated." -msgstr "" - -msgid "Only scan for processes with RSS higher than indicated." -msgstr "" - -msgid "Only scan for processes with PCPU higher than indicated." -msgstr "" - -msgid "Only scan for processes with user name or ID indicated." -msgstr "" - -msgid "Only scan for processes with args that contain STRING." -msgstr "" - -msgid "Only scan for processes with args that contain the regex STRING." -msgstr "" - -msgid "Only scan for exact matches of COMMAND (without path)." -msgstr "" - -msgid "Exclude processes which match this comma separated list" -msgstr "" - -msgid "Only scan for non kernel threads (works on Linux only)." -msgstr "" - -#, c-format -msgid "" -"\n" -"RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If\n" -"specified 'max:min', a warning status will be generated if the\n" -"count is inside the specified range\n" -"\n" -msgstr "" -"\n" -"Les seuils sont spécifiés 'min:max' or 'min:' or ':max' (or 'max').\n" -"Si spécifié 'max:min', un avertissement sera généré si le nombre\n" -"est à l'intérieur du seuil\n" -"\n" - -#, c-format -msgid "" -"This plugin checks the number of currently running processes and\n" -"generates WARNING or CRITICAL states if the process count is outside\n" -"the specified threshold ranges. The process count can be filtered by\n" -"process owner, parent process PID, current state (e.g., 'Z'), or may\n" -"be the total number of running processes\n" -"\n" -msgstr "" -"Ce plugin vérifie le nombre de processus actifs et génère un résultat \n" -"AVERTISSEMENT ou CRITIQUE si le nombre de processus est au dessus du seuil\n" -"spécifié. Le total des processus peut être filtré par propriétaire, " -"processus parent,\n" -"état actuel (ex: 'Z'), ou par le nombre de processus en cours d'exécution\n" -"\n" - -msgid "Warning if not two processes with command name portsentry." -msgstr "" - -msgid "Critical if < 2 or > 1024 processes" -msgstr "" - -msgid "Critical if not at least 1 process with command sshd" -msgstr "" - -msgid "Warning if > 1024 processes with command name sshd." -msgstr "" - -msgid "Critical if < 1 processes with command name sshd." -msgstr "" - -msgid "Warning alert if > 10 processes with command arguments containing" -msgstr "" - -msgid "'/usr/local/bin/perl' and owned by root" -msgstr "" - -msgid "Alert if VSZ of any processes over 50K or 100K" -msgstr "" - -msgid "Alert if CPU of any processes over 10% or 20%" -msgstr "" - -#, fuzzy -msgid "Config file error\n" -msgstr "Erreur dans le fichier de configuration" - -#, fuzzy -msgid "Out of Memory?\n" -msgstr "Manque de Mémoire?" - -#, fuzzy -msgid "Invalid NAS-Identifier\n" -msgstr "NAS-Identifier invalide" - -#, c-format -msgid "gethostname() failed!\n" -msgstr "La commande gethostname() à échoué\n" - -#, fuzzy -msgid "Invalid NAS-IP-Address\n" -msgstr "NAS-IP-Address invalide" - -#, fuzzy -msgid "Timeout\n" -msgstr "Temps dépassé" - -#, fuzzy -msgid "Auth Error\n" -msgstr "Erreur d'authentification" - -#, fuzzy -msgid "Auth Failed\n" -msgstr "L'authentification à échoué" - -#, fuzzy -msgid "Bad Response\n" -msgstr "Réponse invalide" - -#, fuzzy -msgid "Auth OK\n" -msgstr "L'authentification à réussi" - -#, c-format -msgid "Unexpected result code %d" -msgstr "Résultat inattendu: %d" - -msgid "Number of retries must be a positive integer" -msgstr "Le nombre d'essai doit être un entier positif" - -msgid "User not specified" -msgstr "L'utilisateur n'a pas été spécifié" - -msgid "Password not specified" -msgstr "Le mot de passe n'a pas été spécifié" - -msgid "Configuration file not specified" -msgstr "Le fichier de configuration n'a pas été spécifié" - -msgid "Tests to see if a RADIUS server is accepting connections." -msgstr "Teste si un serveur RADIUS accepte les connections." - -msgid "The user to authenticate" -msgstr "" - -msgid "Password for authentication (SECURITY RISK)" -msgstr "" - -msgid "NAS identifier" -msgstr "" - -msgid "NAS IP Address" -msgstr "Adresse IP NAS" - -msgid "Configuration file" -msgstr "Fichier de configuration" - -msgid "Response string to expect from the server" -msgstr "" - -msgid "Number of times to retry a failed connection" -msgstr "" - -msgid "" -"This plugin tests a RADIUS server to see if it is accepting connections." -msgstr "" -"Ce plugin teste un serveur RADIUS afin de vérifier si il accepte les " -"connections." - -msgid "" -"The server to test must be specified in the invocation, as well as a user" -msgstr "" - -msgid "name and password. A configuration file must be present. The format of" -msgstr "" - -msgid "" -"the configuration file is described in the radiusclient library sources." -msgstr "" - -msgid "The password option presents a substantial security issue because the" -msgstr "" - -msgid "" -"password can possibly be determined by careful watching of the command line" -msgstr "" - -msgid "in a process listing. This risk is exacerbated because the plugin will" -msgstr "" - -msgid "" -"typically be executed at regular predictable intervals. Please be sure that" -msgstr "" - -msgid "the password used does not allow access to sensitive system resources." -msgstr "" - -#, c-format -msgid "Unable to connect to %s on port %d\n" -msgstr "Impossible de se connecter à %s sur le port %d\n" - -#, c-format -msgid "No data received from %s\n" -msgstr "Pas de données reçues de %s\n" - -msgid "Invalid REAL response received from host" -msgstr "Réponses REAL invalide reçue de l'hôte" - -#, c-format -msgid "Invalid REAL response received from host on port %d\n" -msgstr "Réponses REAL invalide reçue de l'hôte sur le port %d\n" - -#, c-format -msgid "No data received from host\n" -msgstr "Pas de données reçues de l'hôte\n" - -#, c-format -msgid "REAL %s - %d second response time\n" -msgstr "REAL %s - %d secondes de temps de réponse\n" - -msgid "Warning time must be a positive integer" -msgstr "Le seuil d'avertissement doit être un entier positif" - -msgid "Critical time must be a positive integer" -msgstr "Le seuil critique doit être un entier positif" - -msgid "You must provide a server to check" -msgstr "Vous devez fournir un serveur à vérifier" - -msgid "This plugin tests the REAL service on the specified host." -msgstr "Ce plugin teste le service REAL sur l'hôte spécifié." - -msgid "Connect to this url" -msgstr "" - -#, c-format -msgid "String to expect in first line of server response (default: %s)\n" -msgstr "" -"Texte attendu dans la première ligne de réponse du serveur (défaut: %s)\n" - -msgid "This plugin will attempt to open an RTSP connection with the host." -msgstr "Ce plugin va essayer d'ouvrir un connexion RTSP avec l'hôte." - -msgid "Successful connects return STATE_OK, refusals and timeouts return" -msgstr "" - -msgid "" -"STATE_CRITICAL, other errors return STATE_UNKNOWN. Successful connects," -msgstr "" - -msgid "" -"but incorrect response messages from the host result in STATE_WARNING return" -msgstr "" - -msgid "values." -msgstr "" - -#, c-format -msgid "malloc() failed!\n" -msgstr "l'allocation mémoire à échoué!\n" - -#, c-format -msgid "CRITICAL - Cannot create SSL context.\n" -msgstr "CRITIQUE - Impossible de créer le contexte SSL.\n" - -#, c-format -msgid "recv() failed\n" -msgstr "La commande recv() à échoué\n" - -#, c-format -msgid "WARNING - TLS not supported by server\n" -msgstr "AVERTISSEMENT: - TLS n'est pas supporté par ce serveur\n" - -#, c-format -msgid "Server does not support STARTTLS\n" -msgstr "Le serveur ne supporte pas STARTTLS\n" - -msgid "SMTP UNKNOWN - Cannot send EHLO command via TLS." -msgstr "" - -#, c-format -msgid "sent %s" -msgstr "envoyé %s" - -msgid "SMTP UNKNOWN - Cannot read EHLO response via TLS." -msgstr "" - -#, c-format -msgid "Invalid SMTP response received from host: %s\n" -msgstr "Réponse SMTP reçue de l'hôte invalide: %s\n" - -#, c-format -msgid "Invalid SMTP response received from host on port %d: %s\n" -msgstr "Réponse SMTP reçue de l'hôte sur le port %d invalide: %s\n" - -#, c-format -msgid "Could Not Compile Regular Expression" -msgstr "Impossible de compiler l'expression rationnelle" - -#, c-format -msgid "SMTP %s - Invalid response '%s' to command '%s'\n" -msgstr "SMTP %s - réponse invalide de '%s' à la commande '%s'\n" - -#, c-format -msgid "Execute Error: %s\n" -msgstr "Erreur d'exécution: %s\n" - -msgid "no authuser specified, " -msgstr "Pas d'utilisateur pour l'authentification spécifié, " - -msgid "no authpass specified, " -msgstr "pas de mot de passe spécifié, " - -#, c-format -msgid "sent %s\n" -msgstr "envoyé %s\n" - -msgid "recv() failed after AUTH LOGIN, " -msgstr "recv() à échoué après AUTH LOGIN, " - -#, c-format -msgid "received %s\n" -msgstr "reçu %s\n" - -msgid "invalid response received after AUTH LOGIN, " -msgstr "Réponse invalide reçue après AUTH LOGIN, " - -msgid "recv() failed after sending authuser, " -msgstr "La commande recv() a échoué après authuser, " - -msgid "invalid response received after authuser, " -msgstr "Réponse invalide reçue après authuser, " - -msgid "recv() failed after sending authpass, " -msgstr "la commande recv() à échoué après authpass, " - -msgid "invalid response received after authpass, " -msgstr "Réponse invalide reçue après authpass, " - -msgid "only authtype LOGIN is supported, " -msgstr "seul la méthode d'authentification LOGIN est supportée, " - -#, c-format -msgid "SMTP %s - %s%.3f sec. response time%s%s|%s\n" -msgstr "SMTP %s - %s%.3f sec. de temps de réponse%s%s|%s\n" - -#, c-format -msgid "Could not realloc() units [%d]\n" -msgstr "Impossible de réallouer des unités [%d]\n" - -#, fuzzy -msgid "Critical time must be a positive" -msgstr "Le seuil critique doit être un entier positif" - -#, fuzzy -msgid "Warning time must be a positive" -msgstr "Le seuil d'avertissement doit être un entier positif" - -msgid "SSL support not available - install OpenSSL and recompile" -msgstr "SSL n'est pas disponible - installer OpenSSL et recompilez" - -msgid "Set either -s/--ssl/--tls or -S/--starttls" -msgstr "Définissez -s/--ssl/--tls ou -S/--starttls" - -#, c-format -msgid "Connection closed by server before sending QUIT command\n" -msgstr "" - -#, c-format -msgid "recv() failed after QUIT." -msgstr "recv() à échoué après QUIT." - -#, c-format -msgid "Connection reset by peer." -msgstr "" - -msgid "This plugin will attempt to open an SMTP connection with the host." -msgstr "Ce plugin va essayer d'ouvrir un connexion SMTP avec l'hôte." - -#, c-format -msgid " String to expect in first line of server response (default: '%s')\n" -msgstr "" -" Texte attendu dans la première ligne de réponse du serveur (défaut: " -"'%s')\n" - -msgid "SMTP command (may be used repeatedly)" -msgstr "Commande SMTP (peut être utilisé plusieurs fois)" - -msgid "Expected response to command (may be used repeatedly)" -msgstr "" - -msgid "FROM-address to include in MAIL command, required by Exchange 2000" -msgstr "" - -msgid "FQDN used for HELO" -msgstr "" - -msgid "Use PROXY protocol prefix for the connection." -msgstr "Utiliser le préfixe du protocole PROXY pour la connexion." - -msgid "Minimum number of days a certificate has to be valid." -msgstr "Nombre de jours minimum pour que le certificat soit valide." - -#, fuzzy -msgid "Use SSL/TLS for the connection." -msgstr "Utiliser SSL/TLS pour la connexion." - -#, c-format -msgid " Sets default port to %d.\n" -msgstr " Définit le port par défaut à %d.\n" - -msgid "Use STARTTLS for the connection." -msgstr "Utiliser STARTTLS pour la connexion." - -msgid "SMTP AUTH type to check (default none, only LOGIN supported)" -msgstr "" - -msgid "SMTP AUTH username" -msgstr "" - -msgid "SMTP AUTH password" -msgstr "" - -msgid "Send LHLO instead of HELO/EHLO" -msgstr "" - -msgid "Ignore failure when sending QUIT command to server" -msgstr "" - -msgid "STATE_CRITICAL, other errors return STATE_UNKNOWN. Successful" -msgstr "" - -msgid "connects, but incorrect response messages from the host result in" -msgstr "" - -msgid "STATE_WARNING return values." -msgstr "" - -msgid "Cannot malloc" -msgstr "" - -#, c-format -msgid "External command error: %s\n" -msgstr "Erreur d'exécution de commande externe: %s\n" - -#, c-format -msgid "External command error with no output (return code: %d)\n" -msgstr "" - -#, fuzzy, c-format -msgid "No valid data returned (%s)\n" -msgstr "Pas de données valides reçues" - -msgid "Time duration between plugin calls is invalid" -msgstr "" - -msgid "Cannot asprintf()" -msgstr "" - -#, fuzzy -msgid "Cannot realloc()" -msgstr "Impossible de réallouer des unités\n" - -msgid "No previous data to calculate rate - assume okay" -msgstr "" - -msgid "Retries interval must be a positive integer" -msgstr "L'intervalle pour les essais doit être un entier positif" - -#, fuzzy -msgid "Exit status must be a positive integer" -msgstr "Maxbytes doit être un entier positif" - -#, c-format -msgid "Could not reallocate labels[%d]" -msgstr "Impossible de réallouer des labels[%d]" - -msgid "Could not reallocate labels\n" -msgstr "Impossible de réallouer des labels\n" - -#, c-format -msgid "Could not reallocate units [%d]\n" -msgstr "Impossible de réallouer des unités [%d]\n" - -msgid "Could not realloc() units\n" -msgstr "Impossible de réallouer des unités\n" - -#, fuzzy -msgid "Rate multiplier must be a positive integer" -msgstr "La taille du paquet doit être un entier positif" - -msgid "No host specified\n" -msgstr "Pas d'hôte spécifié\n" - -msgid "No OIDs specified\n" -msgstr "Pas de compteur spécifié\n" - -#, c-format -msgid "Required parameter: %s\n" -msgstr "" - -msgid "Invalid seclevel" -msgstr "" - -msgid "Invalid SNMP version" -msgstr "Version de SNMP invalide" - -msgid "Unbalanced quotes\n" -msgstr "Guillemets manquants\n" - -#, c-format -msgid "multiplier set (%.1f), but input is not a number: %s" -msgstr "" - -msgid "Check status of remote machines and obtain system information via SNMP" -msgstr "" -"Vérifie l'état des machines distantes et obtient l'information système via " -"SNMP" - -msgid "Use SNMP GETNEXT instead of SNMP GET" -msgstr "Utiliser SNMP GETNEXT au lieu de SNMP GET" - -msgid "SNMP protocol version" -msgstr "Version du protocole SNMP" - -#, fuzzy -msgid "SNMPv3 context" -msgstr "Nom d'utilisateur SNMPv3" - -msgid "SNMPv3 securityLevel" -msgstr "Niveau de sécurité SNMPv3 (securityLevel)" - -msgid "SNMPv3 auth proto" -msgstr "Protocole d'authentification SNMPv3" - -msgid "SNMPv3 priv proto (default DES)" -msgstr "" - -msgid "Optional community string for SNMP communication" -msgstr "Communauté optionnelle pour la communication SNMP" - -msgid "default is" -msgstr "défaut:" - -msgid "SNMPv3 username" -msgstr "Nom d'utilisateur SNMPv3" - -msgid "SNMPv3 authentication password" -msgstr "Mot de passe d'authentification SNMPv3" - -msgid "SNMPv3 privacy password" -msgstr "Mot de passe de confidentialité SNMPv3" - -msgid "Object identifier(s) or SNMP variables whose value you wish to query" -msgstr "" - -msgid "" -"List of MIBS to be loaded (default = none if using numeric OIDs or 'ALL'" -msgstr "" - -msgid "for symbolic OIDs.)" -msgstr "" - -msgid "Delimiter to use when parsing returned data. Default is" -msgstr "" - -msgid "Any data on the right hand side of the delimiter is considered" -msgstr "" - -msgid "to be the data that should be used in the evaluation." -msgstr "" - -msgid "If the check returns a 0 length string or NULL value" -msgstr "" - -msgid "This option allows you to choose what status you want it to exit" -msgstr "" - -msgid "Excluding this option renders the default exit of 3(STATE_UNKNOWN)" -msgstr "" - -msgid "0 = OK" -msgstr "" - -#, fuzzy -msgid "1 = WARNING" -msgstr "AVERTISSEMENT" - -#, fuzzy -msgid "2 = CRITICAL" -msgstr "CRITIQUE" - -#, fuzzy -msgid "3 = UNKNOWN" -msgstr "INCONNU" - -msgid "Warning threshold range(s)" -msgstr "Valeurs pour le seuil d'avertissement" - -msgid "Critical threshold range(s)" -msgstr "Valeurs pour le seuil critique" - -msgid "Enable rate calculation. See 'Rate Calculation' below" -msgstr "" - -msgid "" -"Converts rate per second. For example, set to 60 to convert to per minute" -msgstr "" - -msgid "Add/subtract the specified OFFSET to numeric sensor data" -msgstr "" - -msgid "Return OK state (for that OID) if STRING is an exact match" -msgstr "" - -msgid "" -"Return OK state (for that OID) if extended regular expression REGEX matches" -msgstr "" - -msgid "" -"Return OK state (for that OID) if case-insensitive extended REGEX matches" -msgstr "" - -msgid "Invert search result (CRITICAL if found)" -msgstr "" - -msgid "Prefix label for output from plugin" -msgstr "" - -msgid "Units label(s) for output data (e.g., 'sec.')." -msgstr "" - -msgid "Separates output on multiple OID requests" -msgstr "" - -msgid "Multiplies current value, 0 < n < 1 works as divider, defaults to 1" -msgstr "" - -msgid "C-style format string for float values (see option -M)" -msgstr "" - -msgid "" -"NOTE the final timeout value is calculated using this formula: " -"timeout_interval * retries + 5" -msgstr "" - -#, fuzzy -msgid "Number of retries to be used in the requests, default: " -msgstr "Le nombre d'essai pour les requêtes" - -msgid "Label performance data with OIDs instead of --label's" -msgstr "" - -msgid "Tell snmpget to not print errors encountered when parsing MIB files" -msgstr "" - -msgid "" -"This plugin uses the 'snmpget' command included with the NET-SNMP package." -msgstr "" - -msgid "" -"if you don't have the package installed, you will need to download it from" -msgstr "" -"Si vous n'avez pas le programme installé, vous devrez le télécharger depuis" - -msgid "http://net-snmp.sourceforge.net before you can use this plugin." -msgstr "http://net-snmp.sourceforge.net avant de pouvoir utiliser ce plugin." - -#, fuzzy -msgid "" -"- Multiple OIDs (and labels) may be indicated by a comma or space-delimited " -msgstr "" -"- Des OIDs multiples peuvent être séparées par des virgules ou des espaces" - -#, fuzzy -msgid "list (lists with internal spaces must be quoted)." -msgstr "(Les liste avec espaces doivent être entre guillemets). Max:" - -msgid "" -"- When checking multiple OIDs, separate ranges by commas like '-w " -"1:10,1:,:20'" -msgstr "" - -msgid "- Note that only one string and one regex may be checked at present" -msgstr "" - -msgid "" -"- All evaluation methods other than PR, STR, and SUBSTR expect that the value" -msgstr "" - -msgid "returned from the SNMP query is an unsigned integer." -msgstr "" - -msgid "Rate Calculation:" -msgstr "" - -msgid "In many places, SNMP returns counters that are only meaningful when" -msgstr "" - -msgid "calculating the counter difference since the last check. check_snmp" -msgstr "" - -msgid "saves the last state information in a file so that the rate per second" -msgstr "" - -msgid "can be calculated. Use the --rate option to save state information." -msgstr "" - -msgid "" -"On the first run, there will be no prior state - this will return with OK." -msgstr "" - -msgid "The state is uniquely determined by the arguments to the plugin, so" -msgstr "" - -msgid "changing the arguments will create a new state file." -msgstr "" - -msgid "Port number must be a positive integer" -msgstr "Le numéro du port doit être un nombre entier positif" - -#, c-format -msgid "Server answer: %s" -msgstr "Réponse du serveur: %s" - -#, fuzzy, c-format -msgid "SSH CRITICAL - %s (protocol %s) version mismatch, expected '%s'\n" -msgstr "" -"SSH AVERTISSEMENT - %s (protocole %s) différence de version, attendu'%s'\n" - -#, fuzzy, c-format -msgid "" -"SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s'\n" -msgstr "" -"SSH AVERTISSEMENT - %s (protocole %s) différence de version, attendu'%s'\n" - -#, fuzzy, c-format -msgid "SSH OK - %s (protocol %s) | %s\n" -msgstr "SSH OK - %s (protocole %s)\n" - -msgid "Try to connect to an SSH server at specified server and port" -msgstr "Essaye de se connecter à un serveur SSH précisé à un port précis" - -#, fuzzy -msgid "" -"Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1)" -msgstr "" -"AVERTISSEMENT si la chaîne ne correspond pas à la version précisée (ex: " -"OpenSSH_3.9p1)" - -#, fuzzy -msgid "Alert if protocol doesn't match expected protocol version (ex: 2.0)" -msgstr "" -"AVERTISSEMENT si la chaîne ne correspond pas à la version précisée (ex: " -"OpenSSH_3.9p1)" - -#, c-format -msgid "Command: %s\n" -msgstr "Commande: %s\n" - -#, c-format -msgid "Format: %s\n" -msgstr "Format: %s\n" - -#, c-format -msgid "total=%.0f, used=%.0f, free=%.0f\n" -msgstr "total=%.0f, utilisé=%.0f, libre=%.0ff\n" - -#, c-format -msgid "total=%.0f, free=%.0f\n" -msgstr "total=%.0f, libre=%.0f\n" - -msgid "Error getting swap devices\n" -msgstr "" - -msgid "SWAP OK: No swap devices defined\n" -msgstr "SWAP OK: Pas de périphériques swap définis\n" - -msgid "swapctl failed: " -msgstr "swapctl à échoué:" - -msgid "Error in swapctl call\n" -msgstr "" - -#, fuzzy, c-format -msgid "SWAP %s - %d%% free (%dMB out of %dMB) %s|" -msgstr "SWAP %s - %d%% libre (%d MB sur un total de %d MB) %s|" - -#, fuzzy -msgid "Warning threshold percentage must be <= 100!" -msgstr "Le seuil d'avertissement doit être un entier positif" - -#, fuzzy -msgid "Warning threshold be positive integer or percentage!" -msgstr "Le seuil d'avertissement doit être un entier ou un pourcentage!" - -#, fuzzy -msgid "Critical threshold percentage must be <= 100!" -msgstr "le seuil critique doit être un entier positif" - -#, fuzzy -msgid "Critical threshold be positive integer or percentage!" -msgstr "Le seuil critique doit être un entier ou un pourcentage!" - -#, fuzzy -msgid "" -"no-swap result must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) " -"or integer (0-3)." -msgstr "" -"Le résultat de temps dépassé doit être un nom d'état valide (OK, WARNING, " -"CRITICAL, UNKNOWN) ou un nombre entier (0-3)." - -#, fuzzy -msgid "Warning should be more than critical" -msgstr "" -"Le pourcentage d'avertissement doit être plus important que le pourcentage " -"critique" - -msgid "Check swap space on local machine." -msgstr "Vérifie l'espace swap sur la machine locale." - -msgid "" -"Exit with WARNING status if less than INTEGER bytes of swap space are free" -msgstr "" -"Sortir avec un résultat AVERTISSEMENT si moins de X octets de mémoire " -"virtuelle sont libres" - -msgid "Exit with WARNING status if less than PERCENT of swap space is free" -msgstr "" -"Sortir avec un résultat AVERTISSEMENT si moins de X pour cent de mémoire " -"virtuelle est libre" - -msgid "" -"Exit with CRITICAL status if less than INTEGER bytes of swap space are free" -msgstr "" -"Sortir avec un résultat CRITIQUE si moins de X octets de mémoire virtuelle " -"sont libres" - -msgid "Exit with CRITICAL status if less than PERCENT of swap space is free" -msgstr "" -"Sortir avec un résultat CRITIQUE si moins de X pour cent de mémoire " -"virtuelle est libre" - -msgid "Conduct comparisons for all swap partitions, one by one" -msgstr "Vérifier chacune des partitions de mémoire virtuelle séparément" - -msgid "" -"Resulting state when there is no swap regardless of thresholds. Default:" -msgstr "" - -#, fuzzy -msgid "" -"Both INTEGER and PERCENT thresholds can be specified, they are all checked." -msgstr "Les seuils d'alerte et critiques peuvent être spécifiés avec -w et -c." - -msgid "On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s." -msgstr "" -"Sur AIX, si -a est spécifié, le plugin utilise lsps -a, sinon il utilise " -"lsps -s." - -msgid "CRITICAL - Generic check_tcp called with unknown service\n" -msgstr "" -"CRITIQUE -check_tcp version générique utilisé avec un service inconnu\n" - -msgid "With UDP checks, a send/expect string must be specified." -msgstr "" -"Avec la surveillance UDP, une chaîne d'envoi et un chaîne de réponse doit " -"être spécifiée." - -msgid "No arguments found" -msgstr "Pas de paramètres" - -msgid "Maxbytes must be a positive integer" -msgstr "Maxbytes doit être un entier positif" - -msgid "Refuse must be one of ok, warn, crit" -msgstr "Refuse doit être parmis ok, warn, crit" - -msgid "Mismatch must be one of ok, warn, crit" -msgstr "Mismatch doit être parmis ok, warn, crit" - -msgid "Delay must be a positive integer" -msgstr "Delay doit être un entier positif" - -msgid "You must provide a server address" -msgstr "Vous devez fournir une adresse serveur" - -msgid "Invalid hostname, address or socket" -msgstr "Adresse/Nom/Socket invalide" - -#, c-format -msgid "" -"This plugin tests %s connections with the specified host (or unix socket).\n" -"\n" -msgstr "" -"Ce plugin teste %s connections avec l'hôte spécifié (ou socket unix).\n" -"\n" - -#, fuzzy -msgid "" -"Can use \\n, \\r, \\t or \\\\ in send or quit string. Must come before send " -"or quit option" -msgstr "" -"Permet d'utiliser \\n, \\r, \\t ou \\ dans la chaîne de caractères send ou " -"quit. Doit être placé avant ces dernières." - -msgid "Default: nothing added to send, \\r\\n added to end of quit" -msgstr "" -"Par défaut: Rien n'est ajouté à send, \\r\\n est ajouté à la fin de quit" - -msgid "String to send to the server" -msgstr "Chaîne de caractères à envoyer au serveur" - -msgid "String to expect in server response" -msgstr "Chaîne de caractères à attendre en réponse" - -msgid "(may be repeated)" -msgstr "(peut être utilisé plusieurs fois)" - -msgid "All expect strings need to occur in server response. Default is any" -msgstr "" -"Toutes les chaînes attendus (expect) doivent être repérés dans la réponse. " -"Par défaut, n'importe laquelle suffit." - -msgid "String to send server to initiate a clean close of the connection" -msgstr "Chaîne de caractères à envoyer pour fermer gracieusement la connection" - -msgid "Accept TCP refusals with states ok, warn, crit (default: crit)" -msgstr "" - -msgid "" -"Accept expected string mismatches with states ok, warn, crit (default: warn)" -msgstr "" - -msgid "Hide output from TCP socket" -msgstr "Cacher la réponse provenant du socket TCP" - -msgid "Close connection once more than this number of bytes are received" -msgstr "" - -msgid "Seconds to wait between sending string and polling for response" -msgstr "" - -msgid "1st is #days for warning, 2nd is critical (if not specified - 0)." -msgstr "" - -msgid "Use SSL for the connection." -msgstr "" - -#, fuzzy -msgid "SSL server_name" -msgstr "Nom d'utilisateur SNMPv3" - -#, c-format -msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" -msgstr "TEMPS INCONNU - impossible de se connecter au serveur %s, au port %d\n" - -#, c-format -msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" -msgstr "" -"TEMPS INCONNU - impossible d'envoyer une requête UDP au serveur %s, au port " -"%d\n" - -#, c-format -msgid "TIME UNKNOWN - no data received from server %s, port %d\n" -msgstr "TEMPS INCONNU - pas de données reçues du serveur %s, du port %d\n" - -#, c-format -msgid "TIME %s - %d second response time|%s\n" -msgstr "TEMPS %s - %d secondes de temps de réponse|%s\n" - -#, c-format -msgid "TIME %s - %lu second time difference|%s %s\n" -msgstr "TEMPS %s - %lu secondes de différence|%s %s\n" - -msgid "Warning thresholds must be a positive integer" -msgstr "Les seuils d'avertissement doivent être un entier positif" - -msgid "Critical thresholds must be a positive integer" -msgstr "Les seuils critiques doivent être un entier positif" - -msgid "This plugin will check the time on the specified host." -msgstr "Ce plugin va vérifier l'heure sur l'hôte spécifié." - -msgid "Use UDP to connect, not TCP" -msgstr "" - -msgid "Time difference (sec.) necessary to result in a warning status" -msgstr "" - -msgid "Time difference (sec.) necessary to result in a critical status" -msgstr "" - -msgid "Response time (sec.) necessary to result in warning status" -msgstr "" - -msgid "Response time (sec.) necessary to result in critical status" -msgstr "" - -msgid "On Battery, Low Battery" -msgstr "Sur Batterie, Batterie faible" - -msgid "Online" -msgstr "En marche" - -msgid "On Battery" -msgstr "Sur Batterie" - -msgid ", Low Battery" -msgstr ", Batterie faible" - -msgid ", Calibrating" -msgstr ", Calibration" - -msgid ", Replace Battery" -msgstr ", Remplacer la batterie" - -msgid ", On Bypass" -msgstr ", Sur Secteur" - -msgid ", Overload" -msgstr ", Surcharge" - -msgid ", Trimming" -msgstr ", En Test" - -msgid ", Boosting" -msgstr "" - -msgid ", Charging" -msgstr ", En charge" - -msgid ", Discharging" -msgstr ", Déchargement" - -msgid ", Unknown" -msgstr ", Inconnu" - -msgid "UPS does not support any available options\n" -msgstr "L'UPS ne supporte aucune des options disponibles\n" - -msgid "Invalid response received from host" -msgstr "Réponse invalide reçue de l'hôte" - -msgid "UPS name to long for buffer" -msgstr "" - -#, c-format -msgid "CRITICAL - no such UPS '%s' on that host\n" -msgstr "CRITIQUE - pas d'UPS '%s' sur cet hôte\n" - -msgid "CRITICAL - UPS data is stale" -msgstr "CRITIQUE - les données de l'ups ne sont plus valables" - -#, c-format -msgid "Unknown error: %s\n" -msgstr "Erreur inconnue: %s\n" - -msgid "Error: unable to parse variable" -msgstr "Erreur: impossible de lire la variable" - -msgid "Unrecognized UPS variable" -msgstr "Variable d'UPS non reconnue" - -msgid "Error : no UPS indicated" -msgstr "Erreur: pas d'UPS indiqué" - -msgid "" -"This plugin tests the UPS service on the specified host. Network UPS Tools" -msgstr "Ce plugin teste le service UPS sur l'hôte spécifié. Network UPS Tools" - -msgid "from www.networkupstools.org must be running for this plugin to work." -msgstr "" -"de www.networkupstools.org doit s'exécuter sur l'hôte pour que ce plugin " -"fonctionne." - -msgid "Name of UPS" -msgstr "" - -msgid "Output of temperatures in Celsius" -msgstr "Affichage des températures en Celsius" - -msgid "Valid values for STRING are" -msgstr "Les variables valides pour STRING sont" - -msgid "" -"This plugin attempts to determine the status of a UPS (Uninterruptible Power" -msgstr "" - -msgid "" -"Supply) on a local or remote host. If the UPS is online or calibrating, the" -msgstr "" - -msgid "" -"plugin will return an OK state. If the battery is on it will return a WARNING" -msgstr "" - -msgid "" -"state. If the UPS is off or has a low battery the plugin will return a " -"CRITICAL" -msgstr "" - -msgid "" -"You may also specify a variable to check (such as temperature, utility " -"voltage," -msgstr "" - -msgid "" -"battery load, etc.) as well as warning and critical thresholds for the value" -msgstr "" - -msgid "" -"of that variable. If the remote host has multiple UPS that are being " -"monitored" -msgstr "" - -msgid "you will have to use the --ups option to specify which UPS to check." -msgstr "" - -msgid "" -"This plugin requires that the UPSD daemon distributed with Russell Kroll's" -msgstr "" - -msgid "" -"Network UPS Tools be installed on the remote host. If you do not have the" -msgstr "" - -msgid "package installed on your system, you can download it from" -msgstr "" - -msgid "http://www.networkupstools.org" -msgstr "" - -#, fuzzy, c-format -msgid "Could not enumerate RD sessions: %d\n" -msgstr "Impossible d'utiliser le protocole version %d\n" - -#, c-format -msgid "# users=%d" -msgstr "# utilisateurs=%d" - -msgid "Unable to read output" -msgstr "Impossible de lire les données en entrée" - -#, c-format -msgid "USERS %s - %d users currently logged in |%s\n" -msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n" - -msgid "This plugin checks the number of users currently logged in on the local" -msgstr "" -"Ce plugin vérifie le nombre d'utilisateurs actuellement connecté sur le " -"système local" - -msgid "" -"system and generates an error if the number exceeds the thresholds specified." -msgstr "et génère une erreur si le nombre excède le seuil spécifié." - -msgid "Set WARNING status if more than INTEGER users are logged in" -msgstr "" -"Sortir avec un résultat AVERTISSEMENT si plus de INTEGER utilisateurs sont " -"connectés" - -msgid "Set CRITICAL status if more than INTEGER users are logged in" -msgstr "" -"Sortir avec un résultat CRITIQUE si plus de INTEGER utilisateurs sont " -"connectés" - -msgid "" -"DEPRECATION WARNING: the -q switch (quiet output) is no longer \"quiet\"." -msgstr "" - -msgid "Nagios-compatible output is now always returned." -msgstr "" - -msgid "SMART commands are broken and have been disabled (See Notes in --help)." -msgstr "" - -msgid "" -"DEPRECATION WARNING: the -n switch (Nagios-compatible output) is now the" -msgstr "" - -#, fuzzy -msgid "default and will be removed from future releases." -msgstr "" -"Note: nslookup est obsolète et pourra être retiré dans les prochaines " -"versions." - -#, c-format -msgid "CRITICAL - Couldn't open device %s: %s\n" -msgstr "Critique - Impossible d'ouvrir le périphérique %s: %s\n" - -#, c-format -msgid "CRITICAL - SMART_CMD_ENABLE\n" -msgstr "CRITIQUE - SMART_CMD_ENABLE\n" - -#, c-format -msgid "CRITICAL - SMART_READ_VALUES: %s\n" -msgstr "CRITIQUE - SMART_READ_VALUES: %s\n" - -#, c-format -msgid "CRITICAL - %d Harddrive PreFailure%cDetected! %d/%d tests failed.\n" -msgstr "" -"CRITIQUE - %d État de pré-panne %c Détecté! %d/%d les tests on échoués.\n" - -#, c-format -msgid "WARNING - %d Harddrive Advisor%s Detected. %d/%d tests failed.\n" -msgstr "" -"AVERTISSEMENT - %d État de pré-panne %s Détecté! %d/%d les tests on " -"échoués.\n" - -#, c-format -msgid "OK - Operational (%d/%d tests passed)\n" -msgstr "OK - En fonctionnement (%d/%d les tests on été réussi)\n" - -#, c-format -msgid "ERROR - Status '%d' unknown. %d/%d tests passed\n" -msgstr "ERREUR - État '%d' inconnu. %d/%d les tests on réussi\n" - -#, c-format -msgid "OffLineStatus=%d {%s}, AutoOffLine=%s, OffLineTimeout=%d minutes\n" -msgstr "" -"Etat Hors Ligne=%d {%s}, Hors Ligne Auto=%s, Temps avant arrêt=%d minutes\n" - -#, c-format -msgid "OffLineCapability=%d {%s %s %s}\n" -msgstr "Capacité Hors Ligne=%d {%s %s %s}\n" - -#, c-format -msgid "SmartRevision=%d, CheckSum=%d, SmartCapability=%d {%s %s}\n" -msgstr "Révision Smart=%d, Somme de contrôle=%d, Capacité Smart=%d {%s %s}\n" - -#, c-format -msgid "CRITICAL - %s: %s\n" -msgstr "CRITIQUE - %s: %s\n" - -#, fuzzy, c-format -msgid "OK - Command sent (%s)\n" -msgstr "Commande: %s\n" - -#, c-format -msgid "CRITICAL - SMART_READ_THRESHOLDS: %s\n" -msgstr "CRITIQUE - SMART_READ_THRESHOLDS: %s\n" - -#, c-format -msgid "" -"This plugin checks a local hard drive with the (Linux specific) SMART " -"interface [http://smartlinux.sourceforge.net/smart/index.php]." -msgstr "" -"Ce plugin vérifie un disque dur local à l'aide de l'interface SMART (pour " -"Linux) [http://smartlinux.sourceforge.net/smart/index.php]." - -msgid "Select device DEVICE" -msgstr "" - -msgid "" -"Note: if the device is specified without this option, any further option will" -msgstr "" - -msgid "be ignored." -msgstr "" - -msgid "" -"The SMART command modes (-i/--immediate, -0/--auto-off and -1/--auto-on) were" -msgstr "" - -msgid "" -"broken in an underhand manner and have been disabled. You can use smartctl" -msgstr "" - -msgid "instead:" -msgstr "" - -msgid "-0/--auto-off: use \"smartctl --offlineauto=off\"" -msgstr "" - -msgid "-1/--auto-on: use \"smartctl --offlineauto=on\"" -msgstr "" - -msgid "-i/--immediate: use \"smartctl --test=offline\"" -msgstr "" - -msgid "No data returned from command\n" -msgstr "Pas de données reçues de la commande\n" - -msgid "" -"Timeout result must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) " -"or integer (0-3)." -msgstr "" -"Le résultat de temps dépassé doit être un nom d'état valide (OK, WARNING, " -"CRITICAL, UNKNOWN) ou un nombre entier (0-3)." - -msgid "" -"Ok must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or integer " -"(0-3)." -msgstr "" -"Ok doit être un nom d'état valide (OK, WARNING, CRITICAL, UNKNOWN) ou un " -"nombre entier (0-3)." - -msgid "" -"Warning must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" -"Warning doit être un nom d'état valide (OK, WARNING, CRITICAL, UNKNOWN) ou " -"un nombre entier (0-3)." - -msgid "" -"Critical must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" -"Critical doit être un nom d'état valide (OK, WARNING, CRITICAL, UNKNOWN) ou " -"un nombre entier (0-3)." - -msgid "" -"Unknown must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" -"Unknown doit être un nom d'état valide (OK, WARNING, CRITICAL, UNKNOWN) ou " -"un nombre entier (0-3)." - -msgid "Require path to command" -msgstr "Chemin vers la commande requis" - -msgid "" -"Negates the status of a plugin (returns OK for CRITICAL and vice-versa)." -msgstr "" -"Inverse le statut d'un plugin (retourne OK pour CRITIQUE et vice-versa)." - -msgid "Additional switches can be used to control which state becomes what." -msgstr "" -"Des options additionnelles peuvent être utilisées pour contrôler quel état " -"devient quoi." - -msgid "Keep timeout longer than the plugin timeout to retain CRITICAL status." -msgstr "" -"Utilisez un délai de réponse plus long que celui du plugin afin de conserver " -"les résultats CRITIQUE" - -msgid "Custom result on Negate timeouts; see below for STATUS definition\n" -msgstr "" - -#, c-format -msgid "" -" STATUS can be 'OK', 'WARNING', 'CRITICAL' or 'UNKNOWN' without single\n" -msgstr "" -" STATUS peut être 'OK', 'WARNING', 'CRITICAL' ou 'UNKNOWN' sans les " -"simple\n" - -#, c-format -msgid "" -" quotes. Numeric values are accepted. If nothing is specified, permutes\n" -msgstr " quotes. Les valeurs numériques sont acceptées. Si rien n'est\n" - -#, c-format -msgid " OK and CRITICAL.\n" -msgstr " spécifié, inverse OK et CRITIQUE.\n" - -#, c-format -msgid "" -" Substitute output text as well. Will only substitute text in CAPITALS\n" -msgstr "" - -msgid "Run check_ping and invert result. Must use full path to plugin" -msgstr "" -"Execute check_ping et inverse le résultat. Le chemin complet du plug-in doit " -"être spécifié" - -msgid "This will return OK instead of WARNING and UNKNOWN instead of CRITICAL" -msgstr "" -"Ceci retournera OK au lieu de AVERTISSEMENT et INCONNU au lieu de CRITIQUE" - -msgid "" -"This plugin is a wrapper to take the output of another plugin and invert it." -msgstr "" -"Ce plugin est un adaptateur qui prends l'état d'un autre plug-in et " -"l'inverse." - -msgid "The full path of the plugin must be provided." -msgstr "Le chemin complet du plugin doit être spécifié." - -msgid "If the wrapped plugin returns OK, the wrapper will return CRITICAL." -msgstr "Si le plugin executé retourne OK, l'adaptateur retournera CRITIQUE." - -msgid "If the wrapped plugin returns CRITICAL, the wrapper will return OK." -msgstr "Si le plugin executé retourne CRITIQUE, l'adaptateur retournera OK." - -msgid "Otherwise, the output state of the wrapped plugin is unchanged." -msgstr "Autrement, l'état du plugin executé reste inchangé." - -msgid "" -"Using timeout-result, it is possible to override the timeout behaviour or a" -msgstr "" - -msgid "plugin by setting the negate timeout a bit lower." -msgstr "" - -#, c-format -msgid "%s - Socket timeout after %d seconds\n" -msgstr "%s - Le socket n'a pas répondu dans les %d secondes\n" - -#, c-format -msgid "%s - Abnormal timeout after %d seconds\n" -msgstr "%s - Dépassement anormal du temps de réponse après %d secondes\n" - -msgid "Send failed" -msgstr "L'envoi à échoué" - -msgid "No data was received from host!" -msgstr "Pas de données reçues de l'hôte!" - -msgid "Socket creation failed" -msgstr "La création du socket à échoué " - -msgid "Supplied path too long unix domain socket" -msgstr "Le chemin fourni est trop long pour un socket unix" - -msgid "Receive failed" -msgstr "La réception à échoué" - -#, c-format -msgid "Invalid hostname/address - %s" -msgstr "Adresse/Nom invalide - %s" - -msgid "Could not malloc argv array in popen()" -msgstr "Impossible de réallouer un tableau pour les paramètres dans popen()" - -msgid "CRITICAL - You need more args!!!" -msgstr "CRITIQUE - Vous devez spécifier plus d'arguments!!!" - -msgid "Cannot catch SIGCHLD" -msgstr "impossible d'obtenir le signal SIGCHLD" - -#, c-format -msgid "CRITICAL - Plugin timed out after %d seconds\n" -msgstr "CRITIQUE - Le plugin n'as pas répondu dans les %d secondes\n" - -msgid "CRITICAL - popen timeout received, but no child process" -msgstr "" -"CRITIQUE - le temps d'attente à été dépassé dans la fonction popen, mais il " -"n'y a pas de processus fils" - -#, c-format -msgid "" -"%s UNKNOWN - No data received from host\n" -"CMD: %s\n" -msgstr "" -"%s INCONNU - Pas de données reçues de l'hôte\n" -"Commande: %s\n" - -#, fuzzy -msgid "" -"This plugin wraps the text output of another command (plugin) in HTML " -msgstr "" -"Ce plugin est un adaptateur qui prends l'état d'un autre plug-in et " -"l'inverse." - -msgid "" -"tags, thus displaying the child plugin's output as a clickable link in " -"compatible" -msgstr "" - -msgid "" -"monitoring status screen. This plugin returns the status of the invoked " -"plugin." -msgstr "" - -msgid "" -"Pay close attention to quoting to ensure that the shell passes the expected" -msgstr "" - -msgid "data to the plugin. For example, in:" -msgstr "" - -msgid "urlize http://example.com/ check_http -H example.com -r 'two words'" -msgstr "" - -msgid "the shell will remove the single quotes and urlize will see:" -msgstr "" - -msgid "urlize http://example.com/ check_http -H example.com -r two words" -msgstr "" - -msgid "You probably want:" -msgstr "" - -msgid "urlize http://example.com/ \"check_http -H example.com -r 'two words'\"" -msgstr "" - -msgid "failed realloc in strpcpy\n" -msgstr "La fonction realloc à échoué dans strpcpy\n" - -msgid "failed malloc in strscat\n" -msgstr "La fonction malloc à échoué dans strscat\n" - -#, fuzzy -msgid "failed malloc in xvasprintf\n" -msgstr "La fonction malloc à échoué dans strscat\n" - -#, c-format -msgid "" -" %s (-h | --help) for detailed help\n" -" %s (-V | --version) for version information\n" -msgstr "" -" %s (-h | --help) pour l'aide détaillée\n" -" %s (-V | --version) pour les informations relative à la version\n" - -msgid "" -"\n" -"Options:\n" -" -h, --help\n" -" Print detailed help screen\n" -" -V, --version\n" -" Print version information\n" -msgstr "" -"\n" -"Options:\n" -" -h, --help\n" -" Afficher l'aide détaillée\n" -" -V, --version\n" -" Afficher les informations relative à la version\n" - -#, c-format -msgid "" -" -H, --hostname=ADDRESS\n" -" Host name, IP Address, or unix socket (must be an absolute path)\n" -" -%c, --port=INTEGER\n" -" Port number (default: %s)\n" -msgstr "" -" -H, --hostname=ADDRESS\n" -" Nom d'hôte, Adresse IP, ou socket UNIX (doit être un chemin absolu)\n" -" -%c, --port=INTEGER\n" -" Numéro de port (défaut: %s)\n" - -msgid "" -" -4, --use-ipv4\n" -" Use IPv4 connection\n" -" -6, --use-ipv6\n" -" Use IPv6 connection\n" -msgstr "" -" -4, --use-ipv4\n" -" Utiliser une connection IPv4\n" -" -6, --use-ipv6\n" -" Utiliser une connection IPv6\n" - -#, fuzzy -msgid "" -" -v, --verbose\n" -" Show details for command-line debugging (output may be truncated by\n" -" the monitoring system)\n" -msgstr "" -" -v, --verbose\n" -" Affiche les informations de déboguage en ligne de commande (Nagios peut " -"tronquer la sortie)\n" - -msgid "" -" -w, --warning=DOUBLE\n" -" Response time to result in warning status (seconds)\n" -" -c, --critical=DOUBLE\n" -" Response time to result in critical status (seconds)\n" -msgstr "" -" -w, --warning=DOUBLE\n" -" Temps de réponse résultant en un état d'avertissement (secondes)\n" -" -c, --critical=DOUBLE\n" -" Temps de réponse résultant en un état critique (secondes)\n" - -msgid "" -" -w, --warning=RANGE\n" -" Warning range (format: start:end). Alert if outside this range\n" -" -c, --critical=RANGE\n" -" Critical range\n" -msgstr "" -" -w, --warning=RANGE\n" -" Seuil d'avertissement (format: début:fin). Alerte à l'extérieur de la " -"plage\n" -" -c, --critical=RANGE\n" -" Seuil critique\n" - -#, c-format -msgid "" -" -t, --timeout=INTEGER\n" -" Seconds before connection times out (default: %d)\n" -msgstr "" -" -t, --timeout=INTEGER\n" -" Délais de connection en secondes (défaut: %d)\n" - -#, fuzzy, c-format -msgid "" -" -t, --timeout=INTEGER\n" -" Seconds before plugin times out (default: %d)\n" -msgstr "" -" -t, --timeout=INTEGER\n" -" Délais de connection en secondes (défaut: %d)\n" - -#, fuzzy -msgid "" -" --extra-opts=[section][@file]\n" -" Read options from an ini file. See\n" -" https://www.monitoring-plugins.org/doc/extra-opts.html\n" -" for usage and examples.\n" -msgstr "" -" --extra-opts=[section][@file]\n" -" Lire les options d'un fichier ini. Voir\n" -" https://www.monitoring-plugins.org/doc/extra-opts.html\n" -" pour les instructions et examples.\n" - -#, fuzzy -msgid "" -" See:\n" -" https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT\n" -" for THRESHOLD format and examples.\n" -msgstr "" -" Voir:\n" -" https://www.monitoring-plugins.org/doc/guidelines.html." -"html#THRESHOLDFORMAT\n" -" pour le format et examples des seuils (THRESHOLD).\n" - -#, fuzzy -msgid "" -"\n" -"Send email to help@monitoring-plugins.org if you have questions regarding\n" -"use of this software. To submit patches or suggest improvements, send email\n" -"to devel@monitoring-plugins.org\n" -"\n" -msgstr "" -"\n" -"Envoyez un email à help@monitoring-plugins.org si vous avez des questions\n" -"reliées à l'utilisation de ce logiciel. Pour envoyer des patches ou suggérer " -"des\n" -"améliorations, envoyez un email à devel@monitoring-plugins.org\n" -"\n" - -#, fuzzy -msgid "" -"\n" -"The Monitoring Plugins come with ABSOLUTELY NO WARRANTY. You may " -"redistribute\n" -"copies of the plugins under the terms of the GNU General Public License.\n" -"For more information about these matters, see the file named COPYING.\n" -msgstr "" -"\n" -"Les plugins de Nagios ne portent AUCUNE GARANTIE. Vous pouvez redistribuer\n" -"des copies des plugins selon les termes de la GNU General Public License.\n" -"Pour de plus ample informations, voir le fichier COPYING.\n" - -#, c-format -msgid "Error: Could not get hardware address of interface '%s'\n" -msgstr "" -"Erreur: Impossible d'obtenir l'adresse matérielle pour l'interface '%s'\n" - -#, c-format -msgid "Error: if_nametoindex error - %s.\n" -msgstr "Erreur: if_nametoindex erreur - %s.\n" - -#, c-format -msgid "Error: Couldn't get hardware address from %s. sysctl 1 error - %s.\n" -msgstr "" -"Erreur: Impossible d'obtenir l'adresse matérielle depuis %s. erreur sysctl 1 " -"- %s.\n" - -#, c-format -msgid "" -"Error: Couldn't get hardware address from interface %s. malloc error - %s.\n" -msgstr "" -"Erreur: Impossible d'obtenir l'adresse matérielle depuis l'interface %s\n" -" erreur malloc - %s.\n" - -#, c-format -msgid "Error: Couldn't get hardware address from %s. sysctl 2 error - %s.\n" -msgstr "" -"Erreur: Impossible d'obtenir l'adresse matérielle depuis %s erreur sysctl 2 " -"- %s.\n" - -#, c-format -msgid "" -"Error: can't find unit number in interface_name (%s) - expecting TypeNumber " -"eg lnc0.\n" -msgstr "" -"Erreur: impossible de trouver le numéro dans le nom de l'interface (%s).\n" -"J'attendais le nom suivi du type ex lnc0.\n" - -#, c-format -msgid "" -"Error: can't read MAC address from DLPI streams interface for device %s unit " -"%d.\n" -msgstr "" -"Erreur: impossible de lire l'adresse MAC depuis l'interface DLPI pour le \n" -"périphérique %s numéro %d.\n" - -#, c-format -msgid "" -"Error: can't get MAC address for this architecture. Use the --mac option.\n" -msgstr "" -"Erreur: impossible d'obtenir l'adresse MAC sur cette architecture. Utilisez " -"l'option --mac.\n" - -#, c-format -msgid "Error: Cannot determine IP address of interface %s\n" -msgstr "Erreur: Impossible d'obtenir l'adresse IP de l'interface %s\n" - -#, c-format -msgid "Error: Cannot get interface IP address on this platform.\n" -msgstr "Erreur: Impossible d'obtenir l'adresse IP sur cette architecture.\n" - -#, c-format -msgid "Pretending to be relay client %s\n" -msgstr "" - -#, c-format -msgid "DHCPDISCOVER to %s port %d\n" -msgstr "DHCPDISCOVER vers %s port %d\n" - -#, c-format -msgid "Result=ERROR\n" -msgstr "Résultat=ERREUR\n" - -#, c-format -msgid "Result=OK\n" -msgstr "Résultat=OK\n" - -#, c-format -msgid "DHCPOFFER from IP address %s" -msgstr "DHCPOFFER depuis l'adresse IP %s" - -#, c-format -msgid " via %s\n" -msgstr " depuis %s\n" - -#, c-format -msgid "" -"DHCPOFFER XID (%u) did not match DHCPDISCOVER XID (%u) - ignoring packet\n" -msgstr "" -"DHCPOFFER XID (%u) ne correspond pas au DHCPDISCOVER XID (%u) - paquet " -"ignoré\n" - -#, c-format -msgid "DHCPOFFER hardware address did not match our own - ignoring packet\n" -msgstr "" -"l'adresse matérielle du DHCPOFFER ne correspond pas à la notre paquet " -"ignoré\n" - -#, c-format -msgid "Total responses seen on the wire: %d\n" -msgstr "Nombre total de réponses vues: %d\n" - -#, c-format -msgid "Valid responses for this machine: %d\n" -msgstr "Nombre de réponse valides pour cette machine: %d\n" - -#, c-format -msgid "send_dhcp_packet result: %d\n" -msgstr "résultat de send_dchp_packet: %d\n" - -#, c-format -msgid "No (more) data received (nfound: %d)\n" -msgstr "Plus de données reçues (nfound: %d)\n" - -#, c-format -msgid "recvfrom() failed, " -msgstr "recvfrom() a échoué, " - -#, c-format -msgid "receive_dhcp_packet() result: %d\n" -msgstr "résultat de receive_dchp_packet(): %d\n" - -#, c-format -msgid "receive_dhcp_packet() source: %s\n" -msgstr "source de receive_dchp_packet(): %s\n" - -#, c-format -msgid "Error: Could not create socket!\n" -msgstr "Erreur: Impossible de créer un socket!\n" - -#, c-format -msgid "Error: Could not set reuse address option on DHCP socket!\n" -msgstr "" -"Erreur: Impossible de configurer l'option de réutilisation de l'adresse sur\n" -"le socket DHCP!\n" - -#, c-format -msgid "Error: Could not set broadcast option on DHCP socket!\n" -msgstr "" -"Erreur: Impossible de configurer l'option broadcast sur le socket DHCP!\n" - -#, c-format -msgid "" -"Error: Could not bind socket to interface %s. Check your privileges...\n" -msgstr "" -"Erreur: Impossible de connecter le socket à l'interface %s.\n" -"Vérifiez vos droits...\n" - -#, c-format -msgid "" -"Error: Could not bind to DHCP socket (port %d)! Check your privileges...\n" -msgstr "" -"Erreur: Impossible de se connecter au socket (port %d)! Vérifiez vos " -"droits..\n" - -#, c-format -msgid "Requested server address: %s\n" -msgstr "Adresse serveur demandée: %s\n" - -#, c-format -msgid "Lease Time: Infinite\n" -msgstr "Durée du Bail: Infini\n" - -#, c-format -msgid "Lease Time: %lu seconds\n" -msgstr "Durée du Bail: %lu secondes\n" - -#, c-format -msgid "Renewal Time: Infinite\n" -msgstr "Renouvellement du bail: Infini\n" - -#, c-format -msgid "Renewal Time: %lu seconds\n" -msgstr "Durée du renouvellement = %lu secondes\n" - -#, c-format -msgid "Rebinding Time: Infinite\n" -msgstr "Délai de nouvelle demande: Infini\n" - -#, c-format -msgid "Rebinding Time: %lu seconds\n" -msgstr "Délai de nouvelle demande: %lu secondes\n" - -#, c-format -msgid "Added offer from server @ %s" -msgstr "Rajouté offre du serveur @ %s" - -#, c-format -msgid " of IP address %s\n" -msgstr "de l'adresse IP %s\n" - -#, c-format -msgid "DHCP Server Match: Offerer=%s" -msgstr "Correspondance du serveur DHCP: Offrant=%s" - -#, c-format -msgid " Requested=%s" -msgstr " Demandé=%s" - -#, c-format -msgid " (duplicate)" -msgstr "" - -#, c-format -msgid "\n" -msgstr "" - -#, c-format -msgid "No DHCPOFFERs were received.\n" -msgstr "Pas de DHCPOFFERs reçus.\n" - -#, c-format -msgid "Received %d DHCPOFFER(s)" -msgstr "Reçu %d DHCPOFFER(s)" - -#, fuzzy, c-format -msgid ", Rogue DHCP Server detected! Server %s" -msgstr "Correspondance du serveur DHCP: Offrant=%s" - -#, c-format -msgid " offered %s \n" -msgstr "" - -#, c-format -msgid ", %s%d of %d requested servers responded" -msgstr ", %s%d de %d serveurs ont répondus" - -#, c-format -msgid ", requested address (%s) was %soffered" -msgstr ", l'adresse demandée (%s) %s été offerte" - -msgid "not " -msgstr "" - -#, c-format -msgid ", max lease time = " -msgstr ", bail maximum = " - -#, c-format -msgid "Infinity" -msgstr "Infini" - -msgid "Got unexpected non-option argument" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in check_ctrl: %s.\n" -msgstr "" -"Erreur: Impossible d'obtenir la MAC par l'API DLPI dans check_ctrl: %s.\n" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in put_ctrl/putmsg(): %s.\n" -msgstr "" -"Erreur: Impossible d'obtenir la MAC par l'API DLPI dans put_ctrl/putmsg(): " -"%s.\n" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in put_both/putmsg().\n" -msgstr "" -"Erreur: Impossible d'obtenir la MAC par l'API DLPI dans put_both/putmsg().\n" - -#, c-format -msgid "" -"Error: DLPI stream API failed to get MAC in dl_attach_req/open(%s..): %s.\n" -msgstr "" -"Erreur: Impossible d'obtenir la MAC par l'API DLPI dans dl_attach_req/" -"open(%s..): %s.\n" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in dl_bind/check_ctrl(): %s.\n" -msgstr "" -"Erreur: Impossible d'obtenir la MAC par l'API DLPI dans dl_bind/" -"check_ctrl(): %s.\n" - -#, c-format -msgid "Hardware address: " -msgstr "Adresse matérielle: " - -msgid "This plugin tests the availability of DHCP servers on a network." -msgstr "Ce plugin teste la disponibilité de serveurs DHCP dans un réseau." - -msgid "IP address of DHCP server that we must hear from" -msgstr "" - -msgid "IP address that should be offered by at least one DHCP server" -msgstr "" - -msgid "Seconds to wait for DHCPOFFER before timeout occurs" -msgstr "" - -msgid "Interface to to use for listening (i.e. eth0)" -msgstr "" - -msgid "MAC address to use in the DHCP request" -msgstr "" - -msgid "Unicast testing: mimic a DHCP relay, requires -s" -msgstr "" - -msgid "" -"Only requested DHCP server may response (rogue DHCP server detection), " -"requires -s" -msgstr "" - -msgid "specify a target" -msgstr "" - -msgid "Use IPv4 (default) or IPv6 to communicate with the targets" -msgstr "" - -msgid "warning threshold (currently " -msgstr "Valeurs pour le seuil d'avertissement (actuellement " - -msgid "critical threshold (currently " -msgstr "Valeurs pour le seuil critique (actuellement " - -msgid "" -"RTA, round trip average, mode warning,critical, ex. 100ms,200ms unit in ms" -msgstr "" - -msgid "packet loss mode, ex. 40%,50% , unit in %" -msgstr "" - -msgid "jitter mode warning,critical, ex. 40.000ms,50.000ms , unit in ms " -msgstr "" - -msgid "MOS mode, between 0 and 4.4 warning,critical, ex. 3.5,3.0" -msgstr "" - -msgid "score mode, max value 100 warning,critical, ex. 80,70 " -msgstr "" - -msgid "detect out of order ICMP packts " -msgstr "" - -msgid "specify a source IP address or device name" -msgstr "spécifiez une adresse ou un nom d'hôte" - -msgid "number of packets to send (currently " -msgstr "nombre de paquets à envoyer (actuellement " - -msgid "max packet interval (currently " -msgstr "" - -msgid "max target interval (currently " -msgstr "" - -msgid "number of alive hosts required for success" -msgstr "nombre d'hôtes vivants requis pour réussite" - -msgid "TTL on outgoing packets (currently " -msgstr "" - -msgid "timeout value (seconds, currently " -msgstr "" - -msgid "Number of icmp data bytes to send" -msgstr "Nombre de paquets ICMP à envoyer" - -msgid "Packet size will be data bytes + icmp header (currently" -msgstr "" - -msgid "verbose" -msgstr "" - -msgid "If none of R,P,J,M,S or O is specified, default behavior is -R -P" -msgstr "" - -msgid "The -H switch is optional. Naming a host (or several) to check is not." -msgstr "" - -msgid "" -"Threshold format for -w and -c is 200.25,60% for 200.25 msec RTA and 60%" -msgstr "" - -msgid "packet loss. The default values should work well for most users." -msgstr "" - -msgid "" -"You can specify different RTA factors using the standardized abbreviations" -msgstr "" - -msgid "" -"us (microseconds), ms (milliseconds, default) or just plain s for seconds." -msgstr "" - -msgid "The -v switch can be specified several times for increased verbosity." -msgstr "" - -#, fuzzy -#~ msgid "Check only filesystems of indicated type (may be repeated)" -#~ msgstr "" -#~ "Ignorer tout les systèmes de fichiers qui correspondent au type indiqué " -#~ "(peut être utilisé plusieurs fois)" - -#~ msgid "Path or partition (may be repeated)" -#~ msgstr "Répertoire ou partition (peut être utilisé plusieurs fois)" - -#~ msgid "" -#~ "value match). If multiple addresses are returned at once, you have to " -#~ "match" -#~ msgstr "" -#~ "valeur correspond). Si plusieurs adresses sont retournées en même temps," - -#~ msgid "" -#~ "the whole string of addresses separated with commas (sorted " -#~ "alphabetically)." -#~ msgstr "" -#~ "vous devrez toutes les inscrire séparées pas des virgules (en ordre " -#~ "alphabétique)" - -#~ msgid "No specific parameters. No warning or critical threshold" -#~ msgstr "Pas d'argument spécifique. Pas de seuil d'avertissement ou critique" - -#~ msgid "Can't find local IP for NAS-IP-Address" -#~ msgstr "Impossible de trouver une addresse IP locale pour le NAS-IP-Address" - -#~ msgid "Warning free space should be more than critical free space" -#~ msgstr "" -#~ "Le seuil d'avertissement pour la place libre doit être plus grand que le " -#~ "seuil critique" - -#, c-format -#~ msgid "%s - Plugin timed out after %d seconds\n" -#~ msgstr "%s - Le plugin n'as pas répondu dans les %d secondes\n" - -#~ msgid "Critical Process Count must be an integer!" -#~ msgstr "Critique Le total des processus doit être un nombre entier!" - -#~ msgid "Warning Process Count must be an integer!" -#~ msgstr "Avertissement Le total des processus doit être un nombre entier!" - -#~ msgid "wmax (%d) cannot be greater than cmax (%d)\n" -#~ msgstr "wmax (%d) ne peut pas être plus grand que cmax (%d)\n" - -#~ msgid "wmin (%d) cannot be less than cmin (%d)\n" -#~ msgstr "wmin (%d) ne peut pas être plus petit que cmin (%d)\n" - -#~ msgid "CRITICAL - Cannot retrieve server certificate." -#~ msgstr "CRITIQUE - Impossible d'obtenir le certificat du serveur" - -#~ msgid "OIDs." -#~ msgstr "OIDs." - -#~ msgid "CRITICAL - Cannot retrieve server certificate.\n" -#~ msgstr "CRITIQUE - Impossible d'obtenir le certificat du serveur.\n" - -#~ msgid "Usage: " -#~ msgstr "Utilisation: " - -#~ msgid "" -#~ " See: http://nagiosplugins.org/extra-opts for --extra-opts usage and " -#~ "examples.\n" -#~ msgstr "" -#~ " Voir: http://nagiosplugins.org/extra-opts pour le format et examples de " -#~ "--extra-opts.\n" diff --git a/po/monitoring-plugins.pot b/po/monitoring-plugins.pot deleted file mode 100644 index 6b63fd9..0000000 --- a/po/monitoring-plugins.pot +++ /dev/null @@ -1,4982 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Monitoring Plugins Development Team -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" -"POT-Creation-Date: 2023-10-01 15:10+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" - -msgid "Could not parse arguments" -msgstr "" - -msgid "Cannot catch SIGALRM" -msgstr "" - -#, c-format -msgid "SSH connection failed: %s\n" -msgstr "" - -#, c-format -msgid "Remote command execution failed: %s\n" -msgstr "" - -#, c-format -msgid "%s - check_by_ssh: Remote command '%s' returned status %d\n" -msgstr "" - -#, c-format -msgid "SSH WARNING: could not open %s\n" -msgstr "" - -#, c-format -msgid "%s: Error parsing output\n" -msgstr "" - -msgid "Timeout interval must be a positive integer" -msgstr "" - -msgid "Port must be a positive integer" -msgstr "" - -msgid "skip-stdout argument must be an integer" -msgstr "" - -msgid "skip-stderr argument must be an integer" -msgstr "" - -#, c-format -msgid "%s: You must provide a host name\n" -msgstr "" - -msgid "No remotecmd" -msgstr "" - -#, c-format -msgid "%s: Argument limit of %d exceeded\n" -msgstr "" - -msgid "Can not (re)allocate 'commargv' buffer\n" -msgstr "" - -#, c-format -msgid "" -"%s: In passive mode, you must provide a service name for each command.\n" -msgstr "" - -#, c-format -msgid "" -"%s: In passive mode, you must provide the host short name from the " -"monitoring configs.\n" -msgstr "" - -#, c-format -msgid "This plugin uses SSH to execute commands on a remote host" -msgstr "" - -msgid "tell ssh to use Protocol 1 [optional]" -msgstr "" - -msgid "tell ssh to use Protocol 2 [optional]" -msgstr "" - -msgid "Ignore all or (if specified) first n lines on STDOUT [optional]" -msgstr "" - -msgid "Ignore all or (if specified) first n lines on STDERR [optional]" -msgstr "" - -msgid "Exit with an warning, if there is an output on STDERR" -msgstr "" - -msgid "" -"tells ssh to fork rather than create a tty [optional]. This will always " -"return OK if ssh is executed" -msgstr "" - -msgid "command to execute on the remote machine" -msgstr "" - -msgid "SSH user name on remote host [optional]" -msgstr "" - -msgid "identity of an authorized key [optional]" -msgstr "" - -msgid "external command file for monitoring [optional]" -msgstr "" - -msgid "list of monitoring service names, separated by ':' [optional]" -msgstr "" - -msgid "short name of host in the monitoring configuration [optional]" -msgstr "" - -msgid "Call ssh with '-o OPTION' (may be used multiple times) [optional]" -msgstr "" - -msgid "Tell ssh to use this configfile [optional]" -msgstr "" - -msgid "Tell ssh to suppress warning and diagnostic messages [optional]" -msgstr "" - -msgid "Make connection problems return UNKNOWN instead of CRITICAL" -msgstr "" - -msgid "The most common mode of use is to refer to a local identity file with" -msgstr "" - -msgid "the '-i' option. In this mode, the identity pair should have a null" -msgstr "" - -msgid "passphrase and the public key should be listed in the authorized_keys" -msgstr "" - -msgid "file of the remote host. Usually the key will be restricted to running" -msgstr "" - -msgid "only one command on the remote server. If the remote SSH server tracks" -msgstr "" - -msgid "invocation arguments, the one remote program may be an agent that can" -msgstr "" - -msgid "execute additional commands as proxy" -msgstr "" - -msgid "To use passive mode, provide multiple '-C' options, and provide" -msgstr "" - -msgid "" -"all of -O, -s, and -n options (servicelist order must match '-C'options)" -msgstr "" - -msgid "Examples:" -msgstr "" - -msgid "Usage:" -msgstr "" - -#, c-format -msgid "Host/Service Cluster Plugin for Monitoring" -msgstr "" - -msgid "Options:" -msgstr "" - -msgid "Check service cluster status" -msgstr "" - -msgid "Check host cluster status" -msgstr "" - -msgid "Optional prepended text output (i.e. \"Host cluster\")" -msgstr "" - -msgid "Specifies the range of hosts or services in cluster that must be in a" -msgstr "" - -msgid "non-OK state in order to return a WARNING status level" -msgstr "" - -msgid "non-OK state in order to return a CRITICAL status level" -msgstr "" - -msgid "The status codes of the hosts or services in the cluster, separated by" -msgstr "" - -msgid "commas" -msgstr "" - -msgid "Notes:" -msgstr "" - -msgid "" -"Will alert critical if there are 3 or more service data points in a non-OK" -msgstr "" - -msgid "state." -msgstr "" - -#, c-format -msgid "Looking for: '%s'\n" -msgstr "" - -msgid "dig returned an error status" -msgstr "" - -msgid "Server not found in ANSWER SECTION" -msgstr "" - -msgid "No ANSWER SECTION found" -msgstr "" - -msgid "Probably a non-existent host/domain" -msgstr "" - -#, c-format -msgid "Port must be a positive integer - %s" -msgstr "" - -#, c-format -msgid "Warning interval must be a positive integer - %s" -msgstr "" - -#, c-format -msgid "Critical interval must be a positive integer - %s" -msgstr "" - -#, c-format -msgid "Timeout interval must be a positive integer - %s" -msgstr "" - -#, c-format -msgid "This plugin tests the DNS service on the specified host using dig" -msgstr "" - -msgid "Force dig to only use IPv4 query transport" -msgstr "" - -msgid "Force dig to only use IPv6 query transport" -msgstr "" - -msgid "Machine name to lookup" -msgstr "" - -msgid "Record type to lookup (default: A)" -msgstr "" - -msgid "" -"An address expected to be in the answer section. If not set, uses whatever" -msgstr "" - -msgid "was in -l" -msgstr "" - -msgid "Pass STRING as argument(s) to dig" -msgstr "" - -#, c-format -msgid "DISK %s: %s not found\n" -msgstr "" - -#, c-format -msgid "CRITICAL" -msgstr "" - -#, c-format -msgid "unit type %s not known\n" -msgstr "" - -#, c-format -msgid "failed allocating storage for '%s'\n" -msgstr "" - -#, c-format -msgid "UNKNOWN" -msgstr "" - -msgid "Must set a threshold value before using -p\n" -msgstr "" - -msgid "Could not compile regular expression" -msgstr "" - -msgid "Must set -E before selecting paths\n" -msgstr "" - -msgid "Must set group value before selecting paths\n" -msgstr "" - -msgid "" -"Paths need to be selected before using -i/-I. Use -A to select all paths " -"explicitly" -msgstr "" - -msgid "" -"Must set a threshold value before using -r/-R/-A (--ereg-path/--eregi-path/--" -"all)\n" -msgstr "" - -msgid "Regular expression did not match any path or disk" -msgstr "" - -msgid "Unknown argument" -msgstr "" - -#, c-format -msgid " for %s\n" -msgstr "" - -msgid "" -"This plugin checks the amount of used disk space on a mounted file system" -msgstr "" - -msgid "" -"and generates an alert if free space is less than one of the threshold values" -msgstr "" - -msgid "Exit with WARNING status if less than INTEGER units of disk are free" -msgstr "" - -msgid "Exit with WARNING status if less than PERCENT of disk space is free" -msgstr "" - -msgid "Exit with CRITICAL status if less than INTEGER units of disk are free" -msgstr "" - -msgid "Exit with CRITICAL status if less than PERCENT of disk space is free" -msgstr "" - -msgid "Exit with WARNING status if less than PERCENT of inode space is free" -msgstr "" - -msgid "Exit with CRITICAL status if less than PERCENT of inode space is free" -msgstr "" - -msgid "" -"Mount point or block device as emitted by the mount(8) command (may be " -"repeated)" -msgstr "" - -msgid "Ignore device (only works if -p unspecified)" -msgstr "" - -msgid "Clear thresholds" -msgstr "" - -msgid "For paths or partitions specified with -p, only check for exact paths" -msgstr "" - -msgid "Display only devices/mountpoints with errors" -msgstr "" - -msgid "Don't account root-reserved blocks into freespace in perfdata" -msgstr "" - -msgid "Display inode usage in perfdata" -msgstr "" - -msgid "" -"Group paths. Thresholds apply to (free-)space of all partitions together" -msgstr "" - -msgid "Same as '--units kB'" -msgstr "" - -msgid "Only check local filesystems" -msgstr "" - -msgid "" -"Only check local filesystems against thresholds. Yet call stat on remote " -"filesystems" -msgstr "" - -msgid "to test if they are accessible (e.g. to detect Stale NFS Handles)" -msgstr "" - -msgid "Display the (block) device instead of the mount point" -msgstr "" - -msgid "Same as '--units MB'" -msgstr "" - -msgid "Explicitly select all paths. This is equivalent to -R '.*'" -msgstr "" - -msgid "" -"Case insensitive regular expression for path/partition (may be repeated)" -msgstr "" - -msgid "Regular expression for path or partition (may be repeated)" -msgstr "" - -msgid "" -"Regular expression to ignore selected path/partition (case insensitive) (may " -"be repeated)" -msgstr "" - -msgid "" -"Regular expression to ignore selected path or partition (may be repeated)" -msgstr "" - -msgid "" -"Return OK if no filesystem matches, filesystem does not exist or is " -"inaccessible." -msgstr "" - -msgid "(Provide this option before -p / -r / --ereg-path if used)" -msgstr "" - -msgid "Choose bytes, kB, MB, GB, TB (default: MB)" -msgstr "" - -msgid "" -"Ignore all filesystems of types matching given regex(7) (may be repeated)" -msgstr "" - -msgid "" -"Check only filesystems where the type matches this given regex(7) (may be " -"repeated)" -msgstr "" - -msgid "General usage hints:" -msgstr "" - -msgid "" -"- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the " -"same as" -msgstr "" - -msgid "\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\"." -msgstr "" - -msgid "" -"- The syntax is broadly: \"{thresholds a} {paths a} -C {thresholds b} " -"{thresholds b} ...\"" -msgstr "" - -msgid "Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB" -msgstr "" - -msgid "" -"Checks all filesystems not matching -r at 100M and 50M. The fs matching the -" -"r regex" -msgstr "" - -msgid "" -"are grouped which means the freespace thresholds are applied to all disks " -"together" -msgstr "" - -msgid "" -"Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use " -"100M/50M" -msgstr "" - -#, c-format -msgid "%s %s: %s\n" -msgstr "" - -msgid "is not accessible" -msgstr "" - -msgid "nslookup returned an error status" -msgstr "" - -msgid "Warning plugin error" -msgstr "" - -#, c-format -msgid "DNS CRITICAL - '%s' returned empty server string\n" -msgstr "" - -#, c-format -msgid "DNS CRITICAL - No response from DNS %s\n" -msgstr "" - -#, c-format -msgid "DNS CRITICAL - '%s' returned empty host name string\n" -msgstr "" - -msgid "Non-authoritative answer:" -msgstr "" - -#, c-format -msgid "Domain '%s' was not found by the server\n" -msgstr "" - -#, c-format -msgid "DNS CRITICAL - '%s' msg parsing exited with no address\n" -msgstr "" - -#, c-format -msgid "expected '%s' but got '%s'" -msgstr "" - -#, c-format -msgid "Domain '%s' was found by the server: '%s'\n" -msgstr "" - -#, c-format -msgid "server %s is not authoritative for %s" -msgstr "" - -#, c-format -msgid "OK" -msgstr "" - -#, c-format -msgid "WARNING" -msgstr "" - -#, c-format -msgid "%.3f second response time" -msgid_plural "%.3f seconds response time" -msgstr[0] "" -msgstr[1] "" - -#, c-format -msgid ". %s returns %s" -msgstr "" - -#, c-format -msgid "DNS WARNING - %s\n" -msgstr "" - -msgid " Probably a non-existent host/domain" -msgstr "" - -#, c-format -msgid "DNS CRITICAL - %s\n" -msgstr "" - -#, c-format -msgid "DNS UNKNOWN - %s\n" -msgstr "" - -msgid "Note: nslookup is deprecated and may be removed from future releases." -msgstr "" - -msgid "Consider using the `dig' or `host' programs instead. Run nslookup with" -msgstr "" - -msgid "the `-sil[ent]' option to prevent this message from appearing." -msgstr "" - -#, c-format -msgid "No response from DNS %s\n" -msgstr "" - -#, c-format -msgid "DNS %s has no records\n" -msgstr "" - -#, c-format -msgid "Connection to DNS %s was refused\n" -msgstr "" - -#, c-format -msgid "Query was refused by DNS server at %s\n" -msgstr "" - -#, c-format -msgid "No information returned by DNS server at %s\n" -msgstr "" - -msgid "Network is unreachable\n" -msgstr "" - -#, c-format -msgid "DNS failure for %s\n" -msgstr "" - -msgid "Input buffer overflow\n" -msgstr "" - -msgid "" -"This plugin uses the nslookup program to obtain the IP address for the given " -"host/domain query." -msgstr "" - -msgid "An optional DNS server to use may be specified." -msgstr "" - -msgid "" -"If no DNS server is specified, the default server(s) specified in /etc/" -"resolv.conf will be used." -msgstr "" - -msgid "The name or address you want to query" -msgstr "" - -msgid "Optional DNS server you want to use for the lookup" -msgstr "" - -msgid "" -"Optional IP-ADDRESS/CIDR you expect the DNS server to return. HOST must end" -msgstr "" - -msgid "" -"with a dot (.). This option can be repeated multiple times (Returns OK if any" -msgstr "" - -msgid "value matches)." -msgstr "" - -msgid "" -"Expect the DNS server to return NXDOMAIN (i.e. the domain was not found)" -msgstr "" - -msgid "Cannot be used together with -a" -msgstr "" - -msgid "Optionally expect the DNS server to be authoritative for the lookup" -msgstr "" - -msgid "Return warning if elapsed time exceeds value. Default off" -msgstr "" - -msgid "Return critical if elapsed time exceeds value. Default off" -msgstr "" - -msgid "" -"Return critical if the list of expected addresses does not match all " -"addresses" -msgstr "" - -msgid "returned. Default off" -msgstr "" - -msgid "Arguments to check_dummy must be an integer" -msgstr "" - -#, c-format -msgid "Status %d is not a supported error state\n" -msgstr "" - -msgid "" -"This plugin will simply return the state corresponding to the numeric value" -msgstr "" - -msgid "of the argument with optional text" -msgstr "" - -#, c-format -msgid "Could not open pipe: %s\n" -msgstr "" - -#, c-format -msgid "Could not open stderr for %s\n" -msgstr "" - -msgid "FPING UNKNOWN - IP address not found\n" -msgstr "" - -msgid "FPING UNKNOWN - invalid commandline argument\n" -msgstr "" - -msgid "FPING UNKNOWN - failed system call\n" -msgstr "" - -#, c-format -msgid "FPING %s - %s (rta=%f ms)|%s\n" -msgstr "" - -#, c-format -msgid "FPING UNKNOWN - %s not found\n" -msgstr "" - -#, c-format -msgid "FPING CRITICAL - %s is unreachable\n" -msgstr "" - -#, c-format -msgid "FPING UNKNOWN - %s parameter error\n" -msgstr "" - -#, c-format -msgid "FPING CRITICAL - %s is down\n" -msgstr "" - -#, c-format -msgid "FPING %s - %s (loss=%.0f%%, rta=%f ms)|%s %s\n" -msgstr "" - -#, c-format -msgid "FPING %s - %s (loss=%.0f%% )|%s\n" -msgstr "" - -msgid "Invalid hostname/address" -msgstr "" - -msgid "IPv6 support not available\n" -msgstr "" - -msgid "Packet size must be a positive integer" -msgstr "" - -msgid "Packet count must be a positive integer" -msgstr "" - -msgid "Target timeout must be a positive integer" -msgstr "" - -msgid "Interval must be a positive integer" -msgstr "" - -msgid "Hostname was not supplied" -msgstr "" - -#, c-format -msgid "%s: Only one threshold may be packet loss (%s)\n" -msgstr "" - -#, c-format -msgid "%s: Only one threshold must be packet loss (%s)\n" -msgstr "" - -msgid "" -"This plugin will use the fping command to ping the specified host for a fast " -"check" -msgstr "" - -msgid "Note that it is necessary to set the suid flag on fping." -msgstr "" - -msgid "" -"name or IP Address of host to ping (IP Address bypasses name lookup, " -"reducing system load)" -msgstr "" - -msgid "warning threshold pair" -msgstr "" - -msgid "critical threshold pair" -msgstr "" - -msgid "Return OK after first successful reply" -msgstr "" - -msgid "size of ICMP packet" -msgstr "" - -msgid "number of ICMP packets to send" -msgstr "" - -msgid "Target timeout (ms)" -msgstr "" - -msgid "Interval (ms) between sending packets" -msgstr "" - -msgid "name or IP Address of sourceip" -msgstr "" - -msgid "source interface name" -msgstr "" - -#, c-format -msgid "" -"THRESHOLD is ,%% where is the round trip average travel time " -"(ms)" -msgstr "" - -msgid "" -"which triggers a WARNING or CRITICAL state, and is the percentage of" -msgstr "" - -msgid "packet loss to trigger an alarm state." -msgstr "" - -msgid "IPv4 is used by default. Specify -6 to use IPv6." -msgstr "" - -#, c-format -msgid "CRITICAL - Host type parameter incorrect!\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Host not found\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Game server down or unavailable\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Game server timeout\n" -msgstr "" - -#, c-format -msgid "This plugin tests game server connections with the specified host." -msgstr "" - -msgid "Optional port of which to connect" -msgstr "" - -msgid "Field number in raw qstat output that contains game name" -msgstr "" - -msgid "Field number in raw qstat output that contains map name" -msgstr "" - -msgid "Field number in raw qstat output that contains ping time" -msgstr "" - -msgid "" -"This plugin uses the 'qstat' command, the popular game server status query " -"tool." -msgstr "" - -msgid "" -"If you don't have the package installed, you will need to download it from" -msgstr "" - -msgid "https://github.com/multiplay/qstat before you can use this plugin." -msgstr "" - -msgid "Paper Jam" -msgstr "" - -msgid "Out of Paper" -msgstr "" - -msgid "Printer Offline" -msgstr "" - -msgid "Peripheral Error" -msgstr "" - -msgid "Intervention Required" -msgstr "" - -msgid "Toner Low" -msgstr "" - -msgid "Insufficient Memory" -msgstr "" - -msgid "A Door is Open" -msgstr "" - -msgid "Output Tray is Full" -msgstr "" - -msgid "Data too Slow for Engine" -msgstr "" - -msgid "Unknown Paper Error" -msgstr "" - -#, c-format -msgid "Printer ok - (%s)\n" -msgstr "" - -msgid "Port must be a positive short integer" -msgstr "" - -msgid "This plugin tests the STATUS of an HP printer with a JetDirect card." -msgstr "" - -msgid "Net-snmp must be installed on the computer running the plugin." -msgstr "" - -msgid "The SNMP community name " -msgstr "" - -#, c-format -msgid "(default=%s)" -msgstr "" - -msgid "Specify the port to check " -msgstr "" - -msgid "Disable paper check " -msgstr "" - -msgid "file does not exist or is not readable" -msgstr "" - -msgid "Invalid certificate expiration period" -msgstr "" - -msgid "" -"Invalid option - Valid SSL/TLS versions: 2, 3, 1, 1.1, 1.2 (with optional " -"'+' suffix)" -msgstr "" - -msgid "Invalid option - SSL is not available" -msgstr "" - -msgid "Invalid max_redirs count" -msgstr "" - -msgid "Invalid onredirect option" -msgstr "" - -#, c-format -msgid "option f:%d \n" -msgstr "" - -msgid "Invalid port number" -msgstr "" - -#, c-format -msgid "Could Not Compile Regular Expression: %s" -msgstr "" - -msgid "IPv6 support not available" -msgstr "" - -msgid "You must specify a server address or host name" -msgstr "" - -msgid "" -"If you use a client certificate you must also specify a private key file" -msgstr "" - -msgid "HTTP UNKNOWN - Memory allocation error\n" -msgstr "" - -#, c-format -msgid "%sServer date unknown, " -msgstr "" - -#, c-format -msgid "%sDocument modification date unknown, " -msgstr "" - -#, c-format -msgid "%sServer date \"%100s\" unparsable, " -msgstr "" - -#, c-format -msgid "%sDocument date \"%100s\" unparsable, " -msgstr "" - -#, c-format -msgid "%sDocument is %d seconds in the future, " -msgstr "" - -#, c-format -msgid "%sLast modified %.1f days ago, " -msgstr "" - -#, c-format -msgid "%sLast modified %d:%02d:%02d ago, " -msgstr "" - -msgid "HTTP CRITICAL - Unable to open TCP socket\n" -msgstr "" - -msgid "HTTP UNKNOWN - Could not allocate memory for full_page\n" -msgstr "" - -msgid "HTTP CRITICAL - Error on receive\n" -msgstr "" - -msgid "HTTP CRITICAL - No data received from host\n" -msgstr "" - -#, c-format -msgid "Invalid HTTP response received from host: %s\n" -msgstr "" - -#, c-format -msgid "Invalid HTTP response received from host on port %d: %s\n" -msgstr "" - -#, c-format -msgid "" -"%s\n" -"%s" -msgstr "" - -#, c-format -msgid "Status line output matched \"%s\" - " -msgstr "" - -#, c-format -msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" -msgstr "" - -#, c-format -msgid "HTTP CRITICAL: Invalid Status (%s)\n" -msgstr "" - -#, c-format -msgid "%s - " -msgstr "" - -#, c-format -msgid "%sheader '%s' not found on '%s://%s:%d%s', " -msgstr "" - -#, c-format -msgid "%sstring '%s' not found on '%s://%s:%d%s', " -msgstr "" - -#, c-format -msgid "%spattern not found, " -msgstr "" - -#, c-format -msgid "%spattern found, " -msgstr "" - -#, c-format -msgid "%sExecute Error: %s, " -msgstr "" - -#, c-format -msgid "%spage size %d too large, " -msgstr "" - -#, c-format -msgid "%spage size %d too small, " -msgstr "" - -#, c-format -msgid "%s - %d bytes in %.3f second response time %s|%s %s %s %s %s %s %s" -msgstr "" - -#, c-format -msgid "%s - %d bytes in %.3f second response time %s|%s %s" -msgstr "" - -msgid "HTTP UNKNOWN - Could not allocate addr\n" -msgstr "" - -msgid "HTTP UNKNOWN - Could not allocate URL\n" -msgstr "" - -#, c-format -msgid "HTTP UNKNOWN - Could not find redirect location - %s%s\n" -msgstr "" - -#, c-format -msgid "HTTP UNKNOWN - Empty redirect location%s\n" -msgstr "" - -#, c-format -msgid "HTTP UNKNOWN - Could not parse redirect location - %s%s\n" -msgstr "" - -#, c-format -msgid "HTTP WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" -msgstr "" - -#, c-format -msgid "HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n" -msgstr "" - -#, c-format -msgid "HTTP UNKNOWN - Redirection to port above %d - %s://%s:%d%s%s\n" -msgstr "" - -#, c-format -msgid "Redirection to %s://%s:%d%s\n" -msgstr "" - -msgid "This plugin tests the HTTP service on the specified host. It can test" -msgstr "" - -msgid "normal (http) and secure (https) servers, follow redirects, search for" -msgstr "" - -msgid "strings and regular expressions, check connection times, and report on" -msgstr "" - -msgid "certificate expiration times." -msgstr "" - -#, c-format -msgid "In the first form, make an HTTP request." -msgstr "" - -#, c-format -msgid "" -"In the second form, connect to the server and check the TLS certificate." -msgstr "" - -#, c-format -msgid "NOTE: One or both of -H and -I must be specified" -msgstr "" - -msgid "Host name argument for servers using host headers (virtual host)" -msgstr "" - -msgid "Append a port to include it in the header (eg: example.com:5000)" -msgstr "" - -msgid "" -"IP address or name (use numeric address if possible to bypass DNS lookup)." -msgstr "" - -msgid "Port number (default: " -msgstr "" - -msgid "" -"Connect via SSL. Port defaults to 443. VERSION is optional, and prevents" -msgstr "" - -msgid "auto-negotiation (2 = SSLv2, 3 = SSLv3, 1 = TLSv1, 1.1 = TLSv1.1," -msgstr "" - -msgid "1.2 = TLSv1.2). With a '+' suffix, newer versions are also accepted." -msgstr "" - -msgid "Enable SSL/TLS hostname extension support (SNI)" -msgstr "" - -msgid "" -"Minimum number of days a certificate has to be valid. Port defaults to 443" -msgstr "" - -msgid "" -"(when this option is used the URL is not checked by default. You can use" -msgstr "" - -msgid " --continue-after-certificate to override this behavior)" -msgstr "" - -msgid "" -"Allows the HTTP check to continue after performing the certificate check." -msgstr "" - -msgid "Does nothing unless -C is used." -msgstr "" - -msgid "Name of file that contains the client certificate (PEM format)" -msgstr "" - -msgid "to be used in establishing the SSL session" -msgstr "" - -msgid "Name of file containing the private key (PEM format)" -msgstr "" - -msgid "matching the client certificate" -msgstr "" - -msgid "Comma-delimited list of strings, at least one of them is expected in" -msgstr "" - -msgid "the first (status) line of the server response (default: " -msgstr "" - -msgid "" -"If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)" -msgstr "" - -msgid "String to expect in the response headers" -msgstr "" - -msgid "String to expect in the content" -msgstr "" - -msgid "URL to GET or POST (default: /)" -msgstr "" - -msgid "URL encoded http POST data" -msgstr "" - -msgid "Set HTTP method." -msgstr "" - -msgid "Don't wait for document body: stop reading after headers." -msgstr "" - -msgid "(Note that this still does an HTTP GET or POST, not a HEAD.)" -msgstr "" - -msgid "Warn if document is more than SECONDS old. the number can also be of" -msgstr "" - -msgid "the form \"10m\" for minutes, \"10h\" for hours, or \"10d\" for days." -msgstr "" - -msgid "specify Content-Type header media type when POSTing\n" -msgstr "" - -msgid "Allow regex to span newlines (must precede -r or -R)" -msgstr "" - -msgid "Search page for regex STRING" -msgstr "" - -msgid "Search page for case-insensitive regex STRING" -msgstr "" - -msgid "Return CRITICAL if found, OK if not\n" -msgstr "" - -msgid "Username:password on sites with basic authentication" -msgstr "" - -msgid "Username:password on proxy-servers with basic authentication" -msgstr "" - -msgid "String to be sent in http header as \"User Agent\"" -msgstr "" - -msgid "" -"Any other tags to be sent in http header. Use multiple times for additional " -"headers" -msgstr "" - -msgid "Print additional performance data" -msgstr "" - -msgid "Print body content below status line" -msgstr "" - -msgid "Wrap output in HTML link (obsoleted by urlize)" -msgstr "" - -msgid "How to handle redirected pages. sticky is like follow but stick to the" -msgstr "" - -msgid "specified IP address. stickyport also ensures port stays the same." -msgstr "" - -msgid "Maximal number of redirects (default: " -msgstr "" - -msgid "Minimum page size required (bytes) : Maximum page size required (bytes)" -msgstr "" - -msgid "This plugin will attempt to open an HTTP connection with the host." -msgstr "" - -msgid "" -"Successful connects return STATE_OK, refusals and timeouts return " -"STATE_CRITICAL" -msgstr "" - -msgid "" -"other errors return STATE_UNKNOWN. Successful connects, but incorrect " -"response" -msgstr "" - -msgid "" -"messages from the host result in STATE_WARNING return values. If you are" -msgstr "" - -msgid "" -"checking a virtual server that uses 'host headers' you must supply the FQDN" -msgstr "" - -msgid "(fully qualified domain name) as the [host_name] argument." -msgstr "" - -msgid "This plugin can also check whether an SSL enabled web server is able to" -msgstr "" - -msgid "serve content (optionally within a specified time) or whether the X509 " -msgstr "" - -msgid "certificate is still valid for the specified number of days." -msgstr "" - -msgid "Please note that this plugin does not check if the presented server" -msgstr "" - -msgid "certificate matches the hostname of the server, or if the certificate" -msgstr "" - -msgid "has a valid chain of trust to one of the locally installed CAs." -msgstr "" - -msgid "" -"When the 'www.verisign.com' server returns its content within 5 seconds," -msgstr "" - -msgid "" -"a STATE_OK will be returned. When the server returns its content but exceeds" -msgstr "" - -msgid "" -"the 5-second threshold, a STATE_WARNING will be returned. When an error " -"occurs," -msgstr "" - -msgid "a STATE_CRITICAL will be returned." -msgstr "" - -msgid "" -"When the certificate of 'www.verisign.com' is valid for more than 14 days," -msgstr "" - -msgid "" -"a STATE_OK is returned. When the certificate is still valid, but for less " -"than" -msgstr "" - -msgid "" -"14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when" -msgstr "" - -msgid "the certificate is expired." -msgstr "" - -msgid "" -"When the certificate of 'www.verisign.com' is valid for more than 30 days," -msgstr "" - -msgid "30 days, but more than 14 days, a STATE_WARNING is returned." -msgstr "" - -msgid "" -"A STATE_CRITICAL will be returned when certificate expires in less than 14 " -"days" -msgstr "" - -msgid "" -"check_http -I 192.168.100.35 -p 80 -u https://www.verisign.com/ -S -j " -"CONNECT -H www.verisign.com " -msgstr "" - -msgid "" -"all these options are needed: -I -p -u -" -"S(sl) -j CONNECT -H " -msgstr "" - -msgid "" -"a STATE_CRITICAL will be returned. By adding a colon to the method you can " -"set the method used" -msgstr "" - -msgid "inside the proxied connection: -j CONNECT:POST" -msgstr "" - -#, c-format -msgid "Could not connect to the server at port %i\n" -msgstr "" - -#, c-format -msgid "Could not set protocol version %d\n" -msgstr "" - -#, c-format -msgid "Could not init TLS at port %i!\n" -msgstr "" - -#, c-format -msgid "TLS not supported by the libraries!\n" -msgstr "" - -#, c-format -msgid "Could not init startTLS at port %i!\n" -msgstr "" - -#, c-format -msgid "startTLS not supported by the library, needs LDAPv3!\n" -msgstr "" - -#, c-format -msgid "Could not bind to the LDAP server\n" -msgstr "" - -#, c-format -msgid "Could not search/find objectclasses in %s\n" -msgstr "" - -#, c-format -msgid "LDAP %s - found %d entries in %.3f seconds|%s %s\n" -msgstr "" - -#, c-format -msgid "LDAP %s - %.3f seconds response time|%s\n" -msgstr "" - -#, c-format -msgid "%s cannot be combined with %s" -msgstr "" - -msgid "Please specify the host name\n" -msgstr "" - -msgid "Please specify the LDAP base\n" -msgstr "" - -msgid "ldap attribute to search (default: \"(objectclass=*)\"" -msgstr "" - -msgid "ldap base (eg. ou=my unit, o=my org, c=at" -msgstr "" - -msgid "ldap bind DN (if required)" -msgstr "" - -msgid "" -"ldap password (if required, or set the password through environment variable " -"'LDAP_PASSWORD')" -msgstr "" - -msgid "use starttls mechanism introduced in protocol version 3" -msgstr "" - -msgid "use ldaps (ldap v2 ssl method). this also sets the default port to" -msgstr "" - -msgid "use ldap protocol version 2" -msgstr "" - -msgid "use ldap protocol version 3" -msgstr "" - -msgid "default protocol version:" -msgstr "" - -msgid "Number of found entries to result in warning status" -msgstr "" - -msgid "Number of found entries to result in critical status" -msgstr "" - -msgid "If this plugin is called via 'check_ldaps', method 'STARTTLS' will be" -msgstr "" - -#, c-format -msgid "" -" implied (using default port %i) unless --port=636 is specified. In that " -"case\n" -msgstr "" - -msgid "'SSL on connect' will be used no matter how the plugin was called." -msgstr "" - -msgid "" -"This detection is deprecated, please use 'check_ldap' with the '--starttls' " -"or '--ssl' flags" -msgstr "" - -msgid "to define the behaviour explicitly instead." -msgstr "" - -msgid "The parameters --warn-entries and --crit-entries are optional." -msgstr "" - -msgid "Warning threshold must be float or float triplet!\n" -msgstr "" - -#, c-format -msgid "Error opening %s\n" -msgstr "" - -#, c-format -msgid "could not parse load from uptime %s: %d\n" -msgstr "" - -#, c-format -msgid "Error code %d returned in %s\n" -msgstr "" - -#, c-format -msgid "Error in getloadavg()\n" -msgstr "" - -#, c-format -msgid "Error processing %s\n" -msgstr "" - -#, c-format -msgid "load average: %.2f, %.2f, %.2f" -msgstr "" - -#, c-format -msgid "Critical threshold for %d-minute load average is not specified\n" -msgstr "" - -#, c-format -msgid "Warning threshold for %d-minute load average is not specified\n" -msgstr "" - -#, c-format -msgid "" -"Parameter inconsistency: %d-minute \"warning load\" is greater than " -"\"critical load\"\n" -msgstr "" - -#, c-format -msgid "This plugin tests the current system load average." -msgstr "" - -msgid "Exit with WARNING status if load average exceeds WLOADn" -msgstr "" - -msgid "Exit with CRITICAL status if load average exceed CLOADn" -msgstr "" - -msgid "the load average format is the same used by \"uptime\" and \"w\"" -msgstr "" - -msgid "Divide the load averages by the number of CPUs (when possible)" -msgstr "" - -msgid "Number of processes to show when printing the top consuming processes." -msgstr "" - -msgid "NUMBER_OF_PROCS=0 disables this feature. Default value is 0" -msgstr "" - -#, c-format -msgid "'%s' exited with non-zero status.\n" -msgstr "" - -#, c-format -msgid "some error occurred getting procs list.\n" -msgstr "" - -msgid "Could not parse arguments\n" -msgstr "" - -#, c-format -msgid "Unable to open MRTG log file\n" -msgstr "" - -#, c-format -msgid "Unable to process MRTG log file\n" -msgstr "" - -#, c-format -msgid "MRTG data has expired (%d minutes old)\n" -msgstr "" - -msgid "Avg" -msgstr "" - -msgid "Max" -msgstr "" - -msgid "Invalid variable number" -msgstr "" - -#, c-format -msgid "" -"%s is not a valid expiration time\n" -"Use '%s -h' for additional help\n" -msgstr "" - -msgid "Invalid variable number\n" -msgstr "" - -msgid "You must supply the variable number" -msgstr "" - -msgid "" -"This plugin will check either the average or maximum value of one of the" -msgstr "" - -msgid "two variables recorded in an MRTG log file." -msgstr "" - -msgid "The MRTG log file containing the data you want to monitor" -msgstr "" - -msgid "Minutes before MRTG data is considered to be too old" -msgstr "" - -msgid "Should we check average or maximum values?" -msgstr "" - -msgid "Which variable set should we inspect? (1 or 2)" -msgstr "" - -msgid "Threshold value for data to result in WARNING status" -msgstr "" - -msgid "Threshold value for data to result in CRITICAL status" -msgstr "" - -msgid "Type label for data (Examples: Conns, \"Processor Load\", In, Out)" -msgstr "" - -msgid "Option units label for data (Example: Packets/Sec, Errors/Sec," -msgstr "" - -#, c-format -msgid "\"Bytes Per Second\", \"%% Utilization\")" -msgstr "" - -msgid "" -"If the value exceeds the threshold, a WARNING status is returned. If" -msgstr "" - -msgid "" -"the value exceeds the threshold, a CRITICAL status is returned. If" -msgstr "" - -msgid "the data in the log file is older than old, a WARNING" -msgstr "" - -msgid "status is returned and a warning message is printed." -msgstr "" - -msgid "" -"This plugin is useful for monitoring MRTG data that does not correspond to" -msgstr "" - -msgid "" -"bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth)." -msgstr "" - -msgid "" -"It can be used to monitor any kind of data that MRTG is monitoring - errors," -msgstr "" - -msgid "" -"packets/sec, etc. I use MRTG in conjunction with the Novell NLM that allows" -msgstr "" - -msgid "" -"me to track processor utilization, user connections, drive space, etc and" -msgstr "" - -msgid "this plugin works well for monitoring that kind of data as well." -msgstr "" - -msgid "" -"- This plugin only monitors one of the two variables stored in the MRTG log" -msgstr "" - -msgid "file. If you want to monitor both values you will have to define two" -msgstr "" - -msgid "commands with different values for the argument. Of course," -msgstr "" - -msgid "you can always hack the code to make this plugin work for you..." -msgstr "" - -msgid "" -"- MRTG stands for the Multi Router Traffic Grapher. It can be downloaded " -"from" -msgstr "" - -msgid "Unable to open MRTG log file" -msgstr "" - -msgid "Unable to process MRTG log file" -msgstr "" - -#, c-format -msgid "%s. In = %0.1f %s/s, %s. Out = %0.1f %s/s|%s %s\n" -msgstr "" - -#, c-format -msgid "Traffic %s - %s\n" -msgstr "" - -msgid "" -"This plugin will check the incoming/outgoing transfer rates of a router," -msgstr "" - -msgid "switch, etc recorded in an MRTG log. If the newest log entry is older" -msgstr "" - -msgid "than , a WARNING status is returned. If either the" -msgstr "" - -msgid "incoming or outgoing rates exceed the or thresholds (in" -msgstr "" - -msgid "Bytes/sec), a CRITICAL status results. If either of the rates exceed" -msgstr "" - -msgid "the or thresholds (in Bytes/sec), a WARNING status results." -msgstr "" - -msgid "File to read log from" -msgstr "" - -msgid "Minutes after which log expires" -msgstr "" - -msgid "Test average or maximum" -msgstr "" - -msgid "Warning threshold pair ," -msgstr "" - -msgid "Critical threshold pair ," -msgstr "" - -msgid "" -"- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from" -msgstr "" - -msgid "- While MRTG can monitor things other than traffic rates, this" -msgstr "" - -msgid " plugin probably won't work with much else without modification." -msgstr "" - -msgid "- The calculated i/o rates are a little off from what MRTG actually" -msgstr "" - -msgid " reports. I'm not sure why this is right now, but will look into it" -msgstr "" - -msgid " for future enhancements of this plugin." -msgstr "" - -#, c-format -msgid "Usage" -msgstr "" - -#, c-format -msgid "status store_result error: %s\n" -msgstr "" - -#, c-format -msgid "slave query error: %s\n" -msgstr "" - -#, c-format -msgid "slave store_result error: %s\n" -msgstr "" - -msgid "No slaves defined" -msgstr "" - -#, c-format -msgid "slave fetch row error: %s\n" -msgstr "" - -#, c-format -msgid "Slave running: %s" -msgstr "" - -msgid "This program tests connections to a MySQL server" -msgstr "" - -msgid "Ignore authentication failure and check for mysql connectivity only" -msgstr "" - -msgid "Use the specified socket (has no effect if -H is used)" -msgstr "" - -msgid "Check database with indicated name" -msgstr "" - -msgid "Read from the specified client options file" -msgstr "" - -msgid "Use a client options group" -msgstr "" - -msgid "Connect using the indicated username" -msgstr "" - -msgid "Use the indicated password to authenticate the connection" -msgstr "" - -msgid "IMPORTANT: THIS FORM OF AUTHENTICATION IS NOT SECURE!!!" -msgstr "" - -msgid "Your clear-text password could be visible as a process table entry" -msgstr "" - -msgid "Check if the slave thread is running properly." -msgstr "" - -msgid "Exit with WARNING status if slave server is more than INTEGER seconds" -msgstr "" - -msgid "behind master" -msgstr "" - -msgid "Exit with CRITICAL status if slave server is more then INTEGER seconds" -msgstr "" - -msgid "Use ssl encryption" -msgstr "" - -msgid "Path to CA signing the cert" -msgstr "" - -msgid "Path to SSL certificate" -msgstr "" - -msgid "Path to private SSL key" -msgstr "" - -msgid "Path to CA directory" -msgstr "" - -msgid "List of valid SSL ciphers" -msgstr "" - -msgid "" -"There are no required arguments. By default, the local database is checked" -msgstr "" - -msgid "" -"using the default unix socket. You can force TCP on localhost by using an" -msgstr "" - -msgid "IP address or FQDN ('localhost' will use the socket as well)." -msgstr "" - -msgid "You must specify -p with an empty string to force an empty password," -msgstr "" - -msgid "overriding any my.cnf settings." -msgstr "" - -msgid "Cannot open status log for reading!" -msgstr "" - -#, c-format -msgid "Found process: %s %s\n" -msgstr "" - -msgid "Could not locate a running Nagios process!" -msgstr "" - -msgid "Cannot parse Nagios log file for valid time" -msgstr "" - -#, c-format -msgid "%d process" -msgid_plural "%d processes" -msgstr[0] "" -msgstr[1] "" - -#, c-format -msgid "status log updated %d second ago" -msgid_plural "status log updated %d seconds ago" -msgstr[0] "" -msgstr[1] "" - -msgid "Expiration time must be an integer (seconds)\n" -msgstr "" - -msgid "Timeout must be an integer (seconds)\n" -msgstr "" - -msgid "You must provide the status_log\n" -msgstr "" - -msgid "You must provide a process string\n" -msgstr "" - -msgid "" -"This plugin checks the status of the Nagios process on the local machine" -msgstr "" - -msgid "" -"The plugin will check to make sure the Nagios status log is no older than" -msgstr "" - -msgid "the number of minutes specified by the expires option." -msgstr "" - -msgid "" -"It also checks the process table for a process matching the command argument." -msgstr "" - -msgid "Name of the log file to check" -msgstr "" - -msgid "Minutes aging after which logfile is considered stale" -msgstr "" - -msgid "Substring to search for in process arguments" -msgstr "" - -msgid "Timeout for the plugin in seconds" -msgstr "" - -#, c-format -msgid "Wrong client version - running: %s, required: %s" -msgstr "" - -msgid "missing -l parameters" -msgstr "" - -msgid "wrong -l parameter." -msgstr "" - -msgid "CPU Load" -msgstr "" - -#, c-format -msgid " %lu%% (%lu min average)" -msgstr "" - -#, c-format -msgid " '%lu min avg Load'=%lu%%;%lu;%lu;0;100" -msgstr "" - -msgid "not enough values for -l parameters" -msgstr "" - -msgid "wrong -l argument" -msgstr "" - -#, c-format -msgid "System Uptime - %u day(s) %u hour(s) %u minute(s) |uptime=%lu" -msgstr "" - -#, c-format -msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" -msgstr "" - -#, c-format -msgid "'%s:\\ Used Space'=%.2fGb;%.2f;%.2f;0.00;%.2f" -msgstr "" - -msgid "Free disk space : Invalid drive" -msgstr "" - -msgid "No service/process specified" -msgstr "" - -msgid "could not fetch information from server\n" -msgstr "" - -#, c-format -msgid "" -"Memory usage: total:%.2f MB - used: %.2f MB (%.0f%%) - free: %.2f MB (%.0f%%)" -msgstr "" - -#, c-format -msgid "'Memory usage'=%.2fMB;%.2f;%.2f;0.00;%.2f" -msgstr "" - -msgid "No counter specified" -msgstr "" - -msgid "Minimum value contains non-numbers" -msgstr "" - -msgid "Maximum value contains non-numbers" -msgstr "" - -msgid "No unit counter specified" -msgstr "" - -msgid "Please specify a variable to check" -msgstr "" - -msgid "Server port must be an integer\n" -msgstr "" - -msgid "You must provide a server address or host name" -msgstr "" - -msgid "None" -msgstr "" - -msgid "This plugin collects data from the NSClient service running on a" -msgstr "" - -msgid "Windows NT/2000/XP/2003 server." -msgstr "" - -msgid "Name of the host to check" -msgstr "" - -msgid "Optional port number (default: " -msgstr "" - -msgid "Password needed for the request" -msgstr "" - -msgid "Threshold which will result in a warning status" -msgstr "" - -msgid "Threshold which will result in a critical status" -msgstr "" - -msgid "Seconds before connection attempt times out (default: " -msgstr "" - -msgid "Parameters passed to specified check (see below)" -msgstr "" - -msgid "Display options (currently only SHOWALL works)" -msgstr "" - -msgid "Return UNKNOWN on timeouts" -msgstr "" - -msgid "Print this help screen" -msgstr "" - -msgid "Print version information" -msgstr "" - -msgid "Variable to check" -msgstr "" - -msgid "Valid variables are:" -msgstr "" - -msgid "Get the NSClient version" -msgstr "" - -msgid "If -l is specified, will return warning if versions differ." -msgstr "" - -msgid "Average CPU load on last x minutes." -msgstr "" - -msgid "Request a -l parameter with the following syntax:" -msgstr "" - -msgid "-l ,,." -msgstr "" - -msgid " should be less than 24*60." -msgstr "" - -msgid "" -"Thresholds are percentage and up to 10 requests can be done in one shot." -msgstr "" - -msgid "Get the uptime of the machine." -msgstr "" - -msgid "-l " -msgstr "" - -msgid " = seconds, minutes, hours, or days. (default: minutes)" -msgstr "" - -msgid "Thresholds will use the unit specified above." -msgstr "" - -msgid "Size and percentage of disk use." -msgstr "" - -msgid "Request a -l parameter containing the drive letter only." -msgstr "" - -msgid "Warning and critical thresholds can be specified with -w and -c." -msgstr "" - -msgid "Memory use." -msgstr "" - -msgid "Check the state of one or several services." -msgstr "" - -msgid "Request a -l parameters with the following syntax:" -msgstr "" - -msgid "-l ,,,..." -msgstr "" - -msgid "You can specify -d SHOWALL in case you want to see working services" -msgstr "" - -msgid "in the returned string." -msgstr "" - -msgid "Check if one or several process are running." -msgstr "" - -msgid "Same syntax as SERVICESTATE." -msgstr "" - -msgid "Check any performance counter of Windows NT/2000." -msgstr "" - -msgid "-l \"\\\\\\\\counter\",\"" -msgstr "" - -msgid "The parameter is optional and is given to a printf " -msgstr "" - -msgid "output command which requires a float parameter." -msgstr "" - -#, c-format -msgid "If does not include \"%%\", it is used as a label." -msgstr "" - -msgid "Some examples:" -msgstr "" - -msgid "Check any performance counter object of Windows NT/2000." -msgstr "" - -msgid "" -"Syntax: check_nt -H -p -v INSTANCES -l " -msgstr "" - -msgid " is a Windows Perfmon Counter object (eg. Process)," -msgstr "" - -msgid "if it is two words, it should be enclosed in quotes" -msgstr "" - -msgid "The returned results will be a comma-separated list of instances on " -msgstr "" - -msgid " the selected computer for that object." -msgstr "" - -msgid "" -"The purpose of this is to be run from command line to determine what " -"instances" -msgstr "" - -msgid "" -" are available for monitoring without having to log onto the Windows server" -msgstr "" - -msgid " to run Perfmon directly." -msgstr "" - -msgid "" -"It can also be used in scripts that automatically create the monitoring " -"service" -msgstr "" - -msgid " configuration files." -msgstr "" - -msgid "check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process" -msgstr "" - -msgid "" -"- The NSClient service should be running on the server to get any information" -msgstr "" - -msgid "- Critical thresholds should be lower than warning thresholds" -msgstr "" - -msgid "- Default port 1248 is sometimes in use by other services. The error" -msgstr "" - -msgid "" -"output when this happens contains \"Cannot map xxxxx to protocol number\"." -msgstr "" - -msgid "One fix for this is to change the port to something else on check_nt " -msgstr "" - -msgid "and on the client service it's connecting to." -msgstr "" - -#, c-format -msgid "jitter response too large (%lu bytes)\n" -msgstr "" - -msgid "NTP CRITICAL:" -msgstr "" - -msgid "NTP WARNING:" -msgstr "" - -msgid "NTP OK:" -msgstr "" - -msgid "NTP UNKNOWN:" -msgstr "" - -msgid "Offset unknown" -msgstr "" - -msgid "Offset" -msgstr "" - -msgid "This plugin checks the selected ntp server" -msgstr "" - -msgid "Offset to result in warning status (seconds)" -msgstr "" - -msgid "Offset to result in critical status (seconds)" -msgstr "" - -msgid "Warning threshold for jitter" -msgstr "" - -msgid "Critical threshold for jitter" -msgstr "" - -msgid "Normal offset check:" -msgstr "" - -msgid "" -"Check jitter too, avoiding critical notifications if jitter isn't available" -msgstr "" - -msgid "(See Notes above for more details on thresholds formats):" -msgstr "" - -msgid "WARNING: check_ntp is deprecated. Please use check_ntp_peer or" -msgstr "" - -msgid "check_ntp_time instead." -msgstr "" - -msgid "Server not synchronized" -msgstr "" - -msgid "Server has the LI_ALARM bit set" -msgstr "" - -msgid "" -"Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized" -msgstr "" - -msgid "Warning threshold for stratum of server's synchronization peer" -msgstr "" - -msgid "Critical threshold for stratum of server's synchronization peer" -msgstr "" - -msgid "Warning threshold for number of usable time sources (\"truechimers\")" -msgstr "" - -msgid "Critical threshold for number of usable time sources (\"truechimers\")" -msgstr "" - -msgid "This plugin checks an NTP server independent of any commandline" -msgstr "" - -msgid "programs or external libraries." -msgstr "" - -msgid "Use this plugin to check the health of an NTP server. It supports" -msgstr "" - -msgid "checking the offset with the sync peer, the jitter and stratum. This" -msgstr "" - -msgid "plugin will not check the clock offset between the local host and NTP" -msgstr "" - -msgid "server; please use check_ntp_time for that purpose." -msgstr "" - -msgid "Simple NTP server check:" -msgstr "" - -msgid "Only check the number of usable time sources (\"truechimers\"):" -msgstr "" - -msgid "Check only stratum:" -msgstr "" - -msgid "This plugin checks the clock offset with the ntp server" -msgstr "" - -msgid "Returns UNKNOWN instead of CRITICAL if offset cannot be found" -msgstr "" - -msgid "Expected offset of the ntp server relative to local server (seconds)" -msgstr "" - -msgid "This plugin checks the clock offset between the local host and a" -msgstr "" - -msgid "remote NTP server. It is independent of any commandline programs or" -msgstr "" - -msgid "external libraries." -msgstr "" - -msgid "If you'd rather want to monitor an NTP server, please use" -msgstr "" - -msgid "check_ntp_peer." -msgstr "" - -msgid "--time-offset is useful for compensating for servers with known" -msgstr "" - -msgid "and expected clock skew." -msgstr "" - -#, c-format -msgid "NetWare %s: " -msgstr "" - -#, c-format -msgid "Up %s," -msgstr "" - -#, c-format -msgid "Load %s - %s %s-min load average = %lu%%|load%s=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "Conns %s - %lu current connections|Conns=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s: Long term cache hits = %lu%%" -msgstr "" - -#, c-format -msgid "%s: Total cache buffers = %lu|Cachebuffers=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s: Dirty cache buffers = %lu|Dirty-Cache-Buffers=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s: LRU sitting time = %lu minutes" -msgstr "" - -#, c-format -msgid "CRITICAL - Volume '%s' does not exist!" -msgstr "" - -#, c-format -msgid "%s%lu KB free on volume %s|KBFree%s=%lu;%lu;%lu;;" -msgstr "" - -msgid "Only " -msgstr "" - -#, c-format -msgid "%s%lu MB free on volume %s|MBFree%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s%lu MB used on volume %s|MBUsed%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "" -"%lu MB (%lu%%) free on volume %s - total %lu MB|FreeMB%s=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "Directory Services Database is %s (DS version %s)" -msgstr "" - -#, c-format -msgid "Logins are %s" -msgstr "" - -msgid "enabled" -msgstr "" - -msgid "disabled" -msgstr "" - -msgid "CRITICAL - NRM Status is bad!" -msgstr "" - -msgid "Warning - NRM Status is suspect!" -msgstr "" - -msgid "OK - NRM Status is good!" -msgstr "" - -#, c-format -msgid "%lu of %lu (%lu%%) packet receive buffers used" -msgstr "" - -#, c-format -msgid "%lu entries in SAP table" -msgstr "" - -#, c-format -msgid "%lu entries in SAP table for SAP type %d" -msgstr "" - -#, c-format -msgid "%s%lu KB purgeable on volume %s|Purge%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%s%lu MB purgeable on volume %s|Purge%s=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%lu MB (%lu%%) purgeable on volume %s|Purgeable%s=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "%s%lu KB not yet purgeable on volume %s" -msgstr "" - -#, c-format -msgid "%lu MB (%lu%%) not yet purgeable on volume %s" -msgstr "" - -#, c-format -msgid "%lu open files|Openfiles=%lu;%lu;%lu;0,0" -msgstr "" - -#, c-format -msgid "%lu abended threads|Abends=%lu;%lu;%lu;;" -msgstr "" - -#, c-format -msgid "%lu current service processes (%lu max)|Processes=%lu;%lu;%lu;0;%lu" -msgstr "" - -msgid "CRITICAL - Time not in sync with network!" -msgstr "" - -msgid "OK - Time in sync with network!" -msgstr "" - -#, c-format -msgid "LRU sitting time = %lu seconds" -msgstr "" - -#, c-format -msgid "Dirty cache buffers = %lu%% of the total|DCB=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "Total cache buffers = %lu%% of the original|TCB=%lu;%lu;%lu;0;100" -msgstr "" - -#, c-format -msgid "NDS Version %s" -msgstr "" - -#, c-format -msgid "Up %s" -msgstr "" - -#, c-format -msgid "Module %s version %s is loaded" -msgstr "" - -#, c-format -msgid "Module %s is not loaded" -msgstr "" - -#, c-format -msgid "CRITICAL - Value '%s' does not exist!" -msgstr "" - -#, c-format -msgid "%s is %lu|%s=%lu;%lu;%lu;;" -msgstr "" - -msgid "Nothing to check!\n" -msgstr "" - -msgid "Server port an integer\n" -msgstr "" - -msgid "This plugin attempts to contact the MRTGEXT NLM running on a" -msgstr "" - -msgid "Novell server to gather the requested system information." -msgstr "" - -msgid "Variable to check. Valid variables include:" -msgstr "" - -msgid "LOAD1 = 1 minute average CPU load" -msgstr "" - -msgid "LOAD5 = 5 minute average CPU load" -msgstr "" - -msgid "LOAD15 = 15 minute average CPU load" -msgstr "" - -msgid "CSPROCS = number of current service processes (NW 5.x only)" -msgstr "" - -msgid "ABENDS = number of abended threads (NW 5.x only)" -msgstr "" - -msgid "UPTIME = server uptime" -msgstr "" - -msgid "LTCH = percent long term cache hits" -msgstr "" - -msgid "CBUFF = current number of cache buffers" -msgstr "" - -msgid "CDBUFF = current number of dirty cache buffers" -msgstr "" - -msgid "DCB = dirty cache buffers as a percentage of the total" -msgstr "" - -msgid "TCB = dirty cache buffers as a percentage of the original" -msgstr "" - -msgid "OFILES = number of open files" -msgstr "" - -msgid " VMF = MB of free space on Volume " -msgstr "" - -msgid " VMU = MB used space on Volume " -msgstr "" - -msgid " VMP = MB of purgeable space on Volume " -msgstr "" - -msgid " VPF = percent free space on volume " -msgstr "" - -msgid " VKF = KB of free space on volume " -msgstr "" - -msgid " VPP = percent purgeable space on volume " -msgstr "" - -msgid " VKP = KB of purgeable space on volume " -msgstr "" - -msgid " VPNP = percent not yet purgeable space on volume " -msgstr "" - -msgid " VKNP = KB of not yet purgeable space on volume " -msgstr "" - -msgid " LRUM = LRU sitting time in minutes" -msgstr "" - -msgid " LRUS = LRU sitting time in seconds" -msgstr "" - -msgid " DSDB = check to see if DS Database is open" -msgstr "" - -msgid " DSVER = NDS version" -msgstr "" - -msgid " UPRB = used packet receive buffers" -msgstr "" - -msgid " PUPRB = percent (of max) used packet receive buffers" -msgstr "" - -msgid " SAPENTRIES = number of entries in the SAP table" -msgstr "" - -msgid " SAPENTRIES = number of entries in the SAP table for SAP type " -msgstr "" - -msgid " TSYNC = timesync status" -msgstr "" - -msgid " LOGINS = check to see if logins are enabled" -msgstr "" - -msgid " CONNS = number of currently licensed connections" -msgstr "" - -msgid " NRMH\t= NRM Summary Status" -msgstr "" - -msgid " NRMP = Returns the current value for a NRM health item" -msgstr "" - -msgid " NRMM = Returns the current memory stats from NRM" -msgstr "" - -msgid " NRMS = Returns the current Swapfile stats from NRM" -msgstr "" - -msgid " NSS1 = Statistics from _Admin:Manage_NSS\\GeneralStats.xml" -msgstr "" - -msgid " NSS3 = Statistics from _Admin:Manage_NSS\\NameCache.xml" -msgstr "" - -msgid " NSS4 = Statistics from _Admin:Manage_NSS\\FileStats.xml" -msgstr "" - -msgid " NSS5 = Statistics from _Admin:Manage_NSS\\ObjectCache.xml" -msgstr "" - -msgid " NSS6 = Statistics from _Admin:Manage_NSS\\Thread.xml" -msgstr "" - -msgid "" -" NSS7 = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml" -msgstr "" - -msgid " NLM: = check if NLM is loaded and report version" -msgstr "" - -msgid " (e.g. NLM:TSANDS.NLM)" -msgstr "" - -msgid "Include server version string in results" -msgstr "" - -msgid "- This plugin requires that the MRTGEXT.NLM file from James Drews' MRTG" -msgstr "" - -msgid "" -" extension for NetWare be loaded on the Novell servers you wish to check." -msgstr "" - -msgid " (available from http://www.engr.wisc.edu/~drews/mrtg/)" -msgstr "" - -msgid "" -"- Values for critical thresholds should be lower than warning thresholds" -msgstr "" - -msgid "" -" when the following variables are checked: VPF, VKF, LTCH, CBUFF, DCB, " -msgstr "" - -msgid " TCB, LRUS and LRUM." -msgstr "" - -msgid "Unknown error fetching load data\n" -msgstr "" - -msgid "Invalid response from server - no load information\n" -msgstr "" - -msgid "Invalid response from server after load 1\n" -msgstr "" - -msgid "Invalid response from server after load 5\n" -msgstr "" - -#, c-format -msgid "Load %s - %s-min load average = %0.2f" -msgstr "" - -msgid "Unknown error fetching disk data\n" -msgstr "" - -msgid "Invalid response from server\n" -msgstr "" - -msgid "Unknown error fetching network status\n" -msgstr "" - -#, c-format -msgid "Net %s - %d connection%s on port %d" -msgstr "" - -msgid "Unknown error fetching process status\n" -msgstr "" - -#, c-format -msgid "Process %s - %d instance%s of %s running" -msgstr "" - -#, c-format -msgid "Uptime %s - Up %d days %d hours %d minutes" -msgstr "" - -msgid "" -"This plugin attempts to contact the Over-CR collector daemon running on the" -msgstr "" - -msgid "remote UNIX server in order to gather the requested system information." -msgstr "" - -msgid "LOAD1 = 1 minute average CPU load" -msgstr "" - -msgid "LOAD5 = 5 minute average CPU load" -msgstr "" - -msgid "LOAD15 = 15 minute average CPU load" -msgstr "" - -msgid "DPU = percent used disk space on filesystem " -msgstr "" - -msgid "PROC = number of running processes with name " -msgstr "" - -msgid "NET = number of active connections on TCP port " -msgstr "" - -msgid "UPTIME = system uptime in seconds" -msgstr "" - -msgid "This plugin requires that Eric Molitors' Over-CR collector daemon be" -msgstr "" - -msgid "running on the remote server." -msgstr "" - -msgid "Over-CR can be downloaded from http://www.molitor.org/overcr" -msgstr "" - -msgid "This plugin was tested with version 0.99.53 of the Over-CR collector" -msgstr "" - -msgid "" -"For the available options, the critical threshold value should always be" -msgstr "" - -msgid "" -"higher than the warning threshold value, EXCEPT with the uptime variable" -msgstr "" - -#, c-format -msgid "CRITICAL - no connection to '%s' (%s).\n" -msgstr "" - -#, c-format -msgid " %s - database %s (%f sec.)|%s\n" -msgstr "" - -msgid "Critical threshold must be a positive integer" -msgstr "" - -msgid "Warning threshold must be a positive integer" -msgstr "" - -msgid "Database name exceeds the maximum length" -msgstr "" - -msgid "User name is not valid" -msgstr "" - -#, c-format -msgid "Test whether a PostgreSQL Database is accepting connections." -msgstr "" - -msgid "Database to check " -msgstr "" - -#, c-format -msgid "(default: %s)\n" -msgstr "" - -msgid "Login name of user" -msgstr "" - -msgid "Password (BIG SECURITY ISSUE)" -msgstr "" - -msgid "Connection parameters (keyword = value), see below" -msgstr "" - -msgid "SQL query to run. Only first column in first row will be read" -msgstr "" - -msgid "A name for the query, this string is used instead of the query" -msgstr "" - -msgid "in the long output of the plugin" -msgstr "" - -msgid "SQL query value to result in warning status (double)" -msgstr "" - -msgid "SQL query value to result in critical status (double)" -msgstr "" - -msgid "All parameters are optional." -msgstr "" - -msgid "" -"This plugin tests a PostgreSQL DBMS to determine whether it is active and" -msgstr "" - -msgid "accepting queries. In its current operation, it simply connects to the" -msgstr "" - -msgid "" -"specified database, and then disconnects. If no database is specified, it" -msgstr "" - -msgid "" -"connects to the template1 database, which is present in every functioning" -msgstr "" - -msgid "PostgreSQL DBMS." -msgstr "" - -msgid "If a query is specified using the -q option, it will be executed after" -msgstr "" - -msgid "connecting to the server. The result from the query has to be numeric." -msgstr "" - -msgid "" -"Multiple SQL commands, separated by semicolon, are allowed but the result " -msgstr "" - -msgid "of the last command is taken into account only. The value of the first" -msgstr "" - -msgid "" -"column in the first row is used as the check result. If a second column is" -msgstr "" - -msgid "present in the result set, this is added to the plugin output with a" -msgstr "" - -msgid "" -"prefix of \"Extra Info:\". This information can be displayed in the system" -msgstr "" - -msgid "executing the plugin." -msgstr "" - -msgid "" -"See the chapter \"Monitoring Database Activity\" of the PostgreSQL manual" -msgstr "" - -msgid "" -"for details about how to access internal statistics of the database server." -msgstr "" - -msgid "" -"For a list of available connection parameters which may be used with the -o" -msgstr "" - -msgid "" -"command line option, see the documentation for PQconnectdb() in the chapter" -msgstr "" - -msgid "" -"\"libpq - C Library\" of the PostgreSQL manual. For example, this may be" -msgstr "" - -msgid "" -"used to specify a service name in pg_service.conf to be used for additional" -msgstr "" - -msgid "connection parameters: -o 'service=' or to specify the SSL mode:" -msgstr "" - -msgid "-o 'sslmode=require'." -msgstr "" - -msgid "" -"The plugin will connect to a local postmaster if no host is specified. To" -msgstr "" - -msgid "" -"connect to a remote host, be sure that the remote postmaster accepts TCP/IP" -msgstr "" - -msgid "connections (start the postmaster with the -i option)." -msgstr "" - -msgid "" -"Typically, the monitoring user (unless the --logname option is used) should " -"be" -msgstr "" - -msgid "" -"able to connect to the database without a password. The plugin can also send" -msgstr "" - -msgid "a password, but no effort is made to obscure or encrypt the password." -msgstr "" - -#, c-format -msgid "QUERY %s - %s: %s.\n" -msgstr "" - -msgid "Error with query" -msgstr "" - -msgid "No rows returned" -msgstr "" - -msgid "No columns returned" -msgstr "" - -msgid "No data returned" -msgstr "" - -msgid "Is not a numeric" -msgstr "" - -#, c-format -msgid "%s returned %f" -msgstr "" - -#, c-format -msgid "'%s' returned %f" -msgstr "" - -msgid "CRITICAL - Could not interpret output from ping command\n" -msgstr "" - -#, c-format -msgid "PING %s - %sPacket loss = %d%%" -msgstr "" - -#, c-format -msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" -msgstr "" - -msgid "Could not realloc() addresses\n" -msgstr "" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr "" - -#, c-format -msgid " (%s) must be an integer percentage\n" -msgstr "" - -#, c-format -msgid " (%s) must be an integer percentage\n" -msgstr "" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr "" - -#, c-format -msgid " (%s) must be a non-negative number\n" -msgstr "" - -#, c-format -msgid "" -"%s: Warning threshold must be integer or percentage!\n" -"\n" -msgstr "" - -#, c-format -msgid " was not set\n" -msgstr "" - -#, c-format -msgid " was not set\n" -msgstr "" - -#, c-format -msgid " was not set\n" -msgstr "" - -#, c-format -msgid " was not set\n" -msgstr "" - -#, c-format -msgid " (%f) cannot be larger than (%f)\n" -msgstr "" - -#, c-format -msgid " (%d) cannot be larger than (%d)\n" -msgstr "" - -#, c-format -msgid "Cannot open stderr for %s\n" -msgstr "" - -msgid "System call sent warnings to stderr " -msgstr "" - -#, c-format -msgid "CRITICAL - Network Unreachable (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Host Unreachable (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Bogus ICMP: Port Unreachable (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Bogus ICMP: Protocol Unreachable (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Network Prohibited (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Host Prohibited (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Packet Filtered (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Host not found (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Time to live exceeded (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Destination Unreachable (%s)\n" -msgstr "" - -msgid "Unable to realloc warn_text\n" -msgstr "" - -#, c-format -msgid "Use ping to check connection statistics for a remote host." -msgstr "" - -msgid "host to ping" -msgstr "" - -msgid "number of ICMP ECHO packets to send" -msgstr "" - -#, c-format -msgid "(Default: %d)\n" -msgstr "" - -msgid "show HTML in the plugin output (obsoleted by urlize)" -msgstr "" - -msgid "THRESHOLD is ,% where is the round trip average travel" -msgstr "" - -msgid "time (ms) which triggers a WARNING or CRITICAL state, and is the" -msgstr "" - -msgid "percentage of packet loss to trigger an alarm state." -msgstr "" - -msgid "" -"This plugin uses the ping command to probe the specified host for packet loss" -msgstr "" - -msgid "" -"(percentage) and round trip average (milliseconds). It can produce HTML " -"output" -msgstr "" - -msgid "" -"linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in" -msgstr "" - -msgid "the contrib area of the downloads section at http://www.nagios.org/" -msgstr "" - -#, c-format -msgid "CMD: %s\n" -msgstr "" - -msgid "System call sent warnings to stderr" -msgstr "" - -#, c-format -msgid "Not parseable: %s" -msgstr "" - -#, c-format -msgid "Unable to read output\n" -msgstr "" - -#, c-format -msgid "%d warn out of " -msgstr "" - -#, c-format -msgid "%d crit, %d warn out of " -msgstr "" - -#, c-format -msgid " with %s" -msgstr "" - -msgid "Parent Process ID must be an integer!" -msgstr "" - -#, c-format -msgid "%s%sSTATE = %s" -msgstr "" - -msgid "UID was not found" -msgstr "" - -msgid "User name was not found" -msgstr "" - -#, c-format -msgid "%s%scommand name '%s'" -msgstr "" - -#, c-format -msgid "%s%sexclude progs '%s'" -msgstr "" - -msgid "RSS must be an integer!" -msgstr "" - -msgid "VSZ must be an integer!" -msgstr "" - -msgid "PCPU must be a float!" -msgstr "" - -msgid "Metric must be one of PROCS, VSZ, RSS, CPU, ELAPSED!" -msgstr "" - -msgid "" -"Checks all processes and generates WARNING or CRITICAL states if the " -"specified" -msgstr "" - -msgid "" -"metric is outside the required threshold ranges. The metric defaults to " -"number" -msgstr "" - -msgid "" -"of processes. Search filters can be applied to limit the processes to check." -msgstr "" - -msgid "Generate warning state if metric is outside this range" -msgstr "" - -msgid "Generate critical state if metric is outside this range" -msgstr "" - -msgid "Check thresholds against metric. Valid types:" -msgstr "" - -msgid "PROCS - number of processes (default)" -msgstr "" - -msgid "VSZ - virtual memory size" -msgstr "" - -msgid "RSS - resident set memory size" -msgstr "" - -msgid "CPU - percentage CPU" -msgstr "" - -msgid "ELAPSED - time elapsed in seconds" -msgstr "" - -msgid "Extra information. Up to 3 verbosity levels" -msgstr "" - -msgid "Filter own process the traditional way by PID instead of /proc/pid/exe" -msgstr "" - -msgid "Only scan for processes that have, in the output of `ps`, one or" -msgstr "" - -msgid "more of the status flags you specify (for example R, Z, S, RS," -msgstr "" - -msgid "RSZDT, plus others based on the output of your 'ps' command)." -msgstr "" - -msgid "Only scan for children of the parent process ID indicated." -msgstr "" - -msgid "Only scan for processes with VSZ higher than indicated." -msgstr "" - -msgid "Only scan for processes with RSS higher than indicated." -msgstr "" - -msgid "Only scan for processes with PCPU higher than indicated." -msgstr "" - -msgid "Only scan for processes with user name or ID indicated." -msgstr "" - -msgid "Only scan for processes with args that contain STRING." -msgstr "" - -msgid "Only scan for processes with args that contain the regex STRING." -msgstr "" - -msgid "Only scan for exact matches of COMMAND (without path)." -msgstr "" - -msgid "Exclude processes which match this comma separated list" -msgstr "" - -msgid "Only scan for non kernel threads (works on Linux only)." -msgstr "" - -#, c-format -msgid "" -"\n" -"RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If\n" -"specified 'max:min', a warning status will be generated if the\n" -"count is inside the specified range\n" -"\n" -msgstr "" - -#, c-format -msgid "" -"This plugin checks the number of currently running processes and\n" -"generates WARNING or CRITICAL states if the process count is outside\n" -"the specified threshold ranges. The process count can be filtered by\n" -"process owner, parent process PID, current state (e.g., 'Z'), or may\n" -"be the total number of running processes\n" -"\n" -msgstr "" - -msgid "Warning if not two processes with command name portsentry." -msgstr "" - -msgid "Critical if < 2 or > 1024 processes" -msgstr "" - -msgid "Critical if not at least 1 process with command sshd" -msgstr "" - -msgid "Warning if > 1024 processes with command name sshd." -msgstr "" - -msgid "Critical if < 1 processes with command name sshd." -msgstr "" - -msgid "Warning alert if > 10 processes with command arguments containing" -msgstr "" - -msgid "'/usr/local/bin/perl' and owned by root" -msgstr "" - -msgid "Alert if VSZ of any processes over 50K or 100K" -msgstr "" - -msgid "Alert if CPU of any processes over 10% or 20%" -msgstr "" - -msgid "Config file error\n" -msgstr "" - -msgid "Out of Memory?\n" -msgstr "" - -msgid "Invalid NAS-Identifier\n" -msgstr "" - -#, c-format -msgid "gethostname() failed!\n" -msgstr "" - -msgid "Invalid NAS-IP-Address\n" -msgstr "" - -msgid "Timeout\n" -msgstr "" - -msgid "Auth Error\n" -msgstr "" - -msgid "Auth Failed\n" -msgstr "" - -msgid "Bad Response\n" -msgstr "" - -msgid "Auth OK\n" -msgstr "" - -#, c-format -msgid "Unexpected result code %d" -msgstr "" - -msgid "Number of retries must be a positive integer" -msgstr "" - -msgid "User not specified" -msgstr "" - -msgid "Password not specified" -msgstr "" - -msgid "Configuration file not specified" -msgstr "" - -msgid "Tests to see if a RADIUS server is accepting connections." -msgstr "" - -msgid "The user to authenticate" -msgstr "" - -msgid "Password for authentication (SECURITY RISK)" -msgstr "" - -msgid "NAS identifier" -msgstr "" - -msgid "NAS IP Address" -msgstr "" - -msgid "Configuration file" -msgstr "" - -msgid "Response string to expect from the server" -msgstr "" - -msgid "Number of times to retry a failed connection" -msgstr "" - -msgid "" -"This plugin tests a RADIUS server to see if it is accepting connections." -msgstr "" - -msgid "" -"The server to test must be specified in the invocation, as well as a user" -msgstr "" - -msgid "name and password. A configuration file must be present. The format of" -msgstr "" - -msgid "" -"the configuration file is described in the radiusclient library sources." -msgstr "" - -msgid "The password option presents a substantial security issue because the" -msgstr "" - -msgid "" -"password can possibly be determined by careful watching of the command line" -msgstr "" - -msgid "in a process listing. This risk is exacerbated because the plugin will" -msgstr "" - -msgid "" -"typically be executed at regular predictable intervals. Please be sure that" -msgstr "" - -msgid "the password used does not allow access to sensitive system resources." -msgstr "" - -#, c-format -msgid "Unable to connect to %s on port %d\n" -msgstr "" - -#, c-format -msgid "No data received from %s\n" -msgstr "" - -msgid "Invalid REAL response received from host" -msgstr "" - -#, c-format -msgid "Invalid REAL response received from host on port %d\n" -msgstr "" - -#, c-format -msgid "No data received from host\n" -msgstr "" - -#, c-format -msgid "REAL %s - %d second response time\n" -msgstr "" - -msgid "Warning time must be a positive integer" -msgstr "" - -msgid "Critical time must be a positive integer" -msgstr "" - -msgid "You must provide a server to check" -msgstr "" - -msgid "This plugin tests the REAL service on the specified host." -msgstr "" - -msgid "Connect to this url" -msgstr "" - -#, c-format -msgid "String to expect in first line of server response (default: %s)\n" -msgstr "" - -msgid "This plugin will attempt to open an RTSP connection with the host." -msgstr "" - -msgid "Successful connects return STATE_OK, refusals and timeouts return" -msgstr "" - -msgid "" -"STATE_CRITICAL, other errors return STATE_UNKNOWN. Successful connects," -msgstr "" - -msgid "" -"but incorrect response messages from the host result in STATE_WARNING return" -msgstr "" - -msgid "values." -msgstr "" - -#, c-format -msgid "malloc() failed!\n" -msgstr "" - -#, c-format -msgid "CRITICAL - Cannot create SSL context.\n" -msgstr "" - -#, c-format -msgid "recv() failed\n" -msgstr "" - -#, c-format -msgid "WARNING - TLS not supported by server\n" -msgstr "" - -#, c-format -msgid "Server does not support STARTTLS\n" -msgstr "" - -msgid "SMTP UNKNOWN - Cannot send EHLO command via TLS." -msgstr "" - -#, c-format -msgid "sent %s" -msgstr "" - -msgid "SMTP UNKNOWN - Cannot read EHLO response via TLS." -msgstr "" - -#, c-format -msgid "Invalid SMTP response received from host: %s\n" -msgstr "" - -#, c-format -msgid "Invalid SMTP response received from host on port %d: %s\n" -msgstr "" - -#, c-format -msgid "Could Not Compile Regular Expression" -msgstr "" - -#, c-format -msgid "SMTP %s - Invalid response '%s' to command '%s'\n" -msgstr "" - -#, c-format -msgid "Execute Error: %s\n" -msgstr "" - -msgid "no authuser specified, " -msgstr "" - -msgid "no authpass specified, " -msgstr "" - -#, c-format -msgid "sent %s\n" -msgstr "" - -msgid "recv() failed after AUTH LOGIN, " -msgstr "" - -#, c-format -msgid "received %s\n" -msgstr "" - -msgid "invalid response received after AUTH LOGIN, " -msgstr "" - -msgid "recv() failed after sending authuser, " -msgstr "" - -msgid "invalid response received after authuser, " -msgstr "" - -msgid "recv() failed after sending authpass, " -msgstr "" - -msgid "invalid response received after authpass, " -msgstr "" - -msgid "only authtype LOGIN is supported, " -msgstr "" - -#, c-format -msgid "SMTP %s - %s%.3f sec. response time%s%s|%s\n" -msgstr "" - -#, c-format -msgid "Could not realloc() units [%d]\n" -msgstr "" - -msgid "Critical time must be a positive" -msgstr "" - -msgid "Warning time must be a positive" -msgstr "" - -msgid "SSL support not available - install OpenSSL and recompile" -msgstr "" - -msgid "Set either -s/--ssl/--tls or -S/--starttls" -msgstr "" - -#, c-format -msgid "Connection closed by server before sending QUIT command\n" -msgstr "" - -#, c-format -msgid "recv() failed after QUIT." -msgstr "" - -#, c-format -msgid "Connection reset by peer." -msgstr "" - -msgid "This plugin will attempt to open an SMTP connection with the host." -msgstr "" - -#, c-format -msgid " String to expect in first line of server response (default: '%s')\n" -msgstr "" - -msgid "SMTP command (may be used repeatedly)" -msgstr "" - -msgid "Expected response to command (may be used repeatedly)" -msgstr "" - -msgid "FROM-address to include in MAIL command, required by Exchange 2000" -msgstr "" - -msgid "FQDN used for HELO" -msgstr "" - -msgid "Use PROXY protocol prefix for the connection." -msgstr "" - -msgid "Minimum number of days a certificate has to be valid." -msgstr "" - -msgid "Use SSL/TLS for the connection." -msgstr "" - -#, c-format -msgid " Sets default port to %d.\n" -msgstr "" - -msgid "Use STARTTLS for the connection." -msgstr "" - -msgid "SMTP AUTH type to check (default none, only LOGIN supported)" -msgstr "" - -msgid "SMTP AUTH username" -msgstr "" - -msgid "SMTP AUTH password" -msgstr "" - -msgid "Send LHLO instead of HELO/EHLO" -msgstr "" - -msgid "Ignore failure when sending QUIT command to server" -msgstr "" - -msgid "STATE_CRITICAL, other errors return STATE_UNKNOWN. Successful" -msgstr "" - -msgid "connects, but incorrect response messages from the host result in" -msgstr "" - -msgid "STATE_WARNING return values." -msgstr "" - -msgid "Cannot malloc" -msgstr "" - -#, c-format -msgid "External command error: %s\n" -msgstr "" - -#, c-format -msgid "External command error with no output (return code: %d)\n" -msgstr "" - -#, c-format -msgid "No valid data returned (%s)\n" -msgstr "" - -msgid "Time duration between plugin calls is invalid" -msgstr "" - -msgid "Cannot asprintf()" -msgstr "" - -msgid "Cannot realloc()" -msgstr "" - -msgid "No previous data to calculate rate - assume okay" -msgstr "" - -msgid "Retries interval must be a positive integer" -msgstr "" - -msgid "Exit status must be a positive integer" -msgstr "" - -#, c-format -msgid "Could not reallocate labels[%d]" -msgstr "" - -msgid "Could not reallocate labels\n" -msgstr "" - -#, c-format -msgid "Could not reallocate units [%d]\n" -msgstr "" - -msgid "Could not realloc() units\n" -msgstr "" - -msgid "Rate multiplier must be a positive integer" -msgstr "" - -msgid "No host specified\n" -msgstr "" - -msgid "No OIDs specified\n" -msgstr "" - -#, c-format -msgid "Required parameter: %s\n" -msgstr "" - -msgid "Invalid seclevel" -msgstr "" - -msgid "Invalid SNMP version" -msgstr "" - -msgid "Unbalanced quotes\n" -msgstr "" - -#, c-format -msgid "multiplier set (%.1f), but input is not a number: %s" -msgstr "" - -msgid "Check status of remote machines and obtain system information via SNMP" -msgstr "" - -msgid "Use SNMP GETNEXT instead of SNMP GET" -msgstr "" - -msgid "SNMP protocol version" -msgstr "" - -msgid "SNMPv3 context" -msgstr "" - -msgid "SNMPv3 securityLevel" -msgstr "" - -msgid "SNMPv3 auth proto" -msgstr "" - -msgid "SNMPv3 priv proto (default DES)" -msgstr "" - -msgid "Optional community string for SNMP communication" -msgstr "" - -msgid "default is" -msgstr "" - -msgid "SNMPv3 username" -msgstr "" - -msgid "SNMPv3 authentication password" -msgstr "" - -msgid "SNMPv3 privacy password" -msgstr "" - -msgid "Object identifier(s) or SNMP variables whose value you wish to query" -msgstr "" - -msgid "" -"List of MIBS to be loaded (default = none if using numeric OIDs or 'ALL'" -msgstr "" - -msgid "for symbolic OIDs.)" -msgstr "" - -msgid "Delimiter to use when parsing returned data. Default is" -msgstr "" - -msgid "Any data on the right hand side of the delimiter is considered" -msgstr "" - -msgid "to be the data that should be used in the evaluation." -msgstr "" - -msgid "If the check returns a 0 length string or NULL value" -msgstr "" - -msgid "This option allows you to choose what status you want it to exit" -msgstr "" - -msgid "Excluding this option renders the default exit of 3(STATE_UNKNOWN)" -msgstr "" - -msgid "0 = OK" -msgstr "" - -msgid "1 = WARNING" -msgstr "" - -msgid "2 = CRITICAL" -msgstr "" - -msgid "3 = UNKNOWN" -msgstr "" - -msgid "Warning threshold range(s)" -msgstr "" - -msgid "Critical threshold range(s)" -msgstr "" - -msgid "Enable rate calculation. See 'Rate Calculation' below" -msgstr "" - -msgid "" -"Converts rate per second. For example, set to 60 to convert to per minute" -msgstr "" - -msgid "Add/subtract the specified OFFSET to numeric sensor data" -msgstr "" - -msgid "Return OK state (for that OID) if STRING is an exact match" -msgstr "" - -msgid "" -"Return OK state (for that OID) if extended regular expression REGEX matches" -msgstr "" - -msgid "" -"Return OK state (for that OID) if case-insensitive extended REGEX matches" -msgstr "" - -msgid "Invert search result (CRITICAL if found)" -msgstr "" - -msgid "Prefix label for output from plugin" -msgstr "" - -msgid "Units label(s) for output data (e.g., 'sec.')." -msgstr "" - -msgid "Separates output on multiple OID requests" -msgstr "" - -msgid "Multiplies current value, 0 < n < 1 works as divider, defaults to 1" -msgstr "" - -msgid "C-style format string for float values (see option -M)" -msgstr "" - -msgid "" -"NOTE the final timeout value is calculated using this formula: " -"timeout_interval * retries + 5" -msgstr "" - -msgid "Number of retries to be used in the requests, default: " -msgstr "" - -msgid "Label performance data with OIDs instead of --label's" -msgstr "" - -msgid "Tell snmpget to not print errors encountered when parsing MIB files" -msgstr "" - -msgid "" -"This plugin uses the 'snmpget' command included with the NET-SNMP package." -msgstr "" - -msgid "" -"if you don't have the package installed, you will need to download it from" -msgstr "" - -msgid "http://net-snmp.sourceforge.net before you can use this plugin." -msgstr "" - -msgid "" -"- Multiple OIDs (and labels) may be indicated by a comma or space-delimited " -msgstr "" - -msgid "list (lists with internal spaces must be quoted)." -msgstr "" - -msgid "" -"- When checking multiple OIDs, separate ranges by commas like '-w " -"1:10,1:,:20'" -msgstr "" - -msgid "- Note that only one string and one regex may be checked at present" -msgstr "" - -msgid "" -"- All evaluation methods other than PR, STR, and SUBSTR expect that the value" -msgstr "" - -msgid "returned from the SNMP query is an unsigned integer." -msgstr "" - -msgid "Rate Calculation:" -msgstr "" - -msgid "In many places, SNMP returns counters that are only meaningful when" -msgstr "" - -msgid "calculating the counter difference since the last check. check_snmp" -msgstr "" - -msgid "saves the last state information in a file so that the rate per second" -msgstr "" - -msgid "can be calculated. Use the --rate option to save state information." -msgstr "" - -msgid "" -"On the first run, there will be no prior state - this will return with OK." -msgstr "" - -msgid "The state is uniquely determined by the arguments to the plugin, so" -msgstr "" - -msgid "changing the arguments will create a new state file." -msgstr "" - -msgid "Port number must be a positive integer" -msgstr "" - -#, c-format -msgid "Server answer: %s" -msgstr "" - -#, c-format -msgid "SSH CRITICAL - %s (protocol %s) version mismatch, expected '%s'\n" -msgstr "" - -#, c-format -msgid "" -"SSH CRITICAL - %s (protocol %s) protocol version mismatch, expected '%s'\n" -msgstr "" - -#, c-format -msgid "SSH OK - %s (protocol %s) | %s\n" -msgstr "" - -msgid "Try to connect to an SSH server at specified server and port" -msgstr "" - -msgid "" -"Alert if string doesn't match expected server version (ex: OpenSSH_3.9p1)" -msgstr "" - -msgid "Alert if protocol doesn't match expected protocol version (ex: 2.0)" -msgstr "" - -#, c-format -msgid "Command: %s\n" -msgstr "" - -#, c-format -msgid "Format: %s\n" -msgstr "" - -#, c-format -msgid "total=%.0f, used=%.0f, free=%.0f\n" -msgstr "" - -#, c-format -msgid "total=%.0f, free=%.0f\n" -msgstr "" - -msgid "Error getting swap devices\n" -msgstr "" - -msgid "SWAP OK: No swap devices defined\n" -msgstr "" - -msgid "swapctl failed: " -msgstr "" - -msgid "Error in swapctl call\n" -msgstr "" - -#, c-format -msgid "SWAP %s - %d%% free (%dMB out of %dMB) %s|" -msgstr "" - -msgid "Warning threshold percentage must be <= 100!" -msgstr "" - -msgid "Warning threshold be positive integer or percentage!" -msgstr "" - -msgid "Critical threshold percentage must be <= 100!" -msgstr "" - -msgid "Critical threshold be positive integer or percentage!" -msgstr "" - -msgid "" -"no-swap result must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) " -"or integer (0-3)." -msgstr "" - -msgid "Warning should be more than critical" -msgstr "" - -msgid "Check swap space on local machine." -msgstr "" - -msgid "" -"Exit with WARNING status if less than INTEGER bytes of swap space are free" -msgstr "" - -msgid "Exit with WARNING status if less than PERCENT of swap space is free" -msgstr "" - -msgid "" -"Exit with CRITICAL status if less than INTEGER bytes of swap space are free" -msgstr "" - -msgid "Exit with CRITICAL status if less than PERCENT of swap space is free" -msgstr "" - -msgid "Conduct comparisons for all swap partitions, one by one" -msgstr "" - -msgid "" -"Resulting state when there is no swap regardless of thresholds. Default:" -msgstr "" - -msgid "" -"Both INTEGER and PERCENT thresholds can be specified, they are all checked." -msgstr "" - -msgid "On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s." -msgstr "" - -msgid "CRITICAL - Generic check_tcp called with unknown service\n" -msgstr "" - -msgid "With UDP checks, a send/expect string must be specified." -msgstr "" - -msgid "No arguments found" -msgstr "" - -msgid "Maxbytes must be a positive integer" -msgstr "" - -msgid "Refuse must be one of ok, warn, crit" -msgstr "" - -msgid "Mismatch must be one of ok, warn, crit" -msgstr "" - -msgid "Delay must be a positive integer" -msgstr "" - -msgid "You must provide a server address" -msgstr "" - -msgid "Invalid hostname, address or socket" -msgstr "" - -#, c-format -msgid "" -"This plugin tests %s connections with the specified host (or unix socket).\n" -"\n" -msgstr "" - -msgid "" -"Can use \\n, \\r, \\t or \\\\ in send or quit string. Must come before send " -"or quit option" -msgstr "" - -msgid "Default: nothing added to send, \\r\\n added to end of quit" -msgstr "" - -msgid "String to send to the server" -msgstr "" - -msgid "String to expect in server response" -msgstr "" - -msgid "(may be repeated)" -msgstr "" - -msgid "All expect strings need to occur in server response. Default is any" -msgstr "" - -msgid "String to send server to initiate a clean close of the connection" -msgstr "" - -msgid "Accept TCP refusals with states ok, warn, crit (default: crit)" -msgstr "" - -msgid "" -"Accept expected string mismatches with states ok, warn, crit (default: warn)" -msgstr "" - -msgid "Hide output from TCP socket" -msgstr "" - -msgid "Close connection once more than this number of bytes are received" -msgstr "" - -msgid "Seconds to wait between sending string and polling for response" -msgstr "" - -msgid "1st is #days for warning, 2nd is critical (if not specified - 0)." -msgstr "" - -msgid "Use SSL for the connection." -msgstr "" - -msgid "SSL server_name" -msgstr "" - -#, c-format -msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" -msgstr "" - -#, c-format -msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" -msgstr "" - -#, c-format -msgid "TIME UNKNOWN - no data received from server %s, port %d\n" -msgstr "" - -#, c-format -msgid "TIME %s - %d second response time|%s\n" -msgstr "" - -#, c-format -msgid "TIME %s - %lu second time difference|%s %s\n" -msgstr "" - -msgid "Warning thresholds must be a positive integer" -msgstr "" - -msgid "Critical thresholds must be a positive integer" -msgstr "" - -msgid "This plugin will check the time on the specified host." -msgstr "" - -msgid "Use UDP to connect, not TCP" -msgstr "" - -msgid "Time difference (sec.) necessary to result in a warning status" -msgstr "" - -msgid "Time difference (sec.) necessary to result in a critical status" -msgstr "" - -msgid "Response time (sec.) necessary to result in warning status" -msgstr "" - -msgid "Response time (sec.) necessary to result in critical status" -msgstr "" - -msgid "On Battery, Low Battery" -msgstr "" - -msgid "Online" -msgstr "" - -msgid "On Battery" -msgstr "" - -msgid ", Low Battery" -msgstr "" - -msgid ", Calibrating" -msgstr "" - -msgid ", Replace Battery" -msgstr "" - -msgid ", On Bypass" -msgstr "" - -msgid ", Overload" -msgstr "" - -msgid ", Trimming" -msgstr "" - -msgid ", Boosting" -msgstr "" - -msgid ", Charging" -msgstr "" - -msgid ", Discharging" -msgstr "" - -msgid ", Unknown" -msgstr "" - -msgid "UPS does not support any available options\n" -msgstr "" - -msgid "Invalid response received from host" -msgstr "" - -msgid "UPS name to long for buffer" -msgstr "" - -#, c-format -msgid "CRITICAL - no such UPS '%s' on that host\n" -msgstr "" - -msgid "CRITICAL - UPS data is stale" -msgstr "" - -#, c-format -msgid "Unknown error: %s\n" -msgstr "" - -msgid "Error: unable to parse variable" -msgstr "" - -msgid "Unrecognized UPS variable" -msgstr "" - -msgid "Error : no UPS indicated" -msgstr "" - -msgid "" -"This plugin tests the UPS service on the specified host. Network UPS Tools" -msgstr "" - -msgid "from www.networkupstools.org must be running for this plugin to work." -msgstr "" - -msgid "Name of UPS" -msgstr "" - -msgid "Output of temperatures in Celsius" -msgstr "" - -msgid "Valid values for STRING are" -msgstr "" - -msgid "" -"This plugin attempts to determine the status of a UPS (Uninterruptible Power" -msgstr "" - -msgid "" -"Supply) on a local or remote host. If the UPS is online or calibrating, the" -msgstr "" - -msgid "" -"plugin will return an OK state. If the battery is on it will return a WARNING" -msgstr "" - -msgid "" -"state. If the UPS is off or has a low battery the plugin will return a " -"CRITICAL" -msgstr "" - -msgid "" -"You may also specify a variable to check (such as temperature, utility " -"voltage," -msgstr "" - -msgid "" -"battery load, etc.) as well as warning and critical thresholds for the value" -msgstr "" - -msgid "" -"of that variable. If the remote host has multiple UPS that are being " -"monitored" -msgstr "" - -msgid "you will have to use the --ups option to specify which UPS to check." -msgstr "" - -msgid "" -"This plugin requires that the UPSD daemon distributed with Russell Kroll's" -msgstr "" - -msgid "" -"Network UPS Tools be installed on the remote host. If you do not have the" -msgstr "" - -msgid "package installed on your system, you can download it from" -msgstr "" - -msgid "http://www.networkupstools.org" -msgstr "" - -#, c-format -msgid "Could not enumerate RD sessions: %d\n" -msgstr "" - -#, c-format -msgid "# users=%d" -msgstr "" - -msgid "Unable to read output" -msgstr "" - -#, c-format -msgid "USERS %s - %d users currently logged in |%s\n" -msgstr "" - -msgid "This plugin checks the number of users currently logged in on the local" -msgstr "" - -msgid "" -"system and generates an error if the number exceeds the thresholds specified." -msgstr "" - -msgid "Set WARNING status if more than INTEGER users are logged in" -msgstr "" - -msgid "Set CRITICAL status if more than INTEGER users are logged in" -msgstr "" - -msgid "" -"DEPRECATION WARNING: the -q switch (quiet output) is no longer \"quiet\"." -msgstr "" - -msgid "Nagios-compatible output is now always returned." -msgstr "" - -msgid "SMART commands are broken and have been disabled (See Notes in --help)." -msgstr "" - -msgid "" -"DEPRECATION WARNING: the -n switch (Nagios-compatible output) is now the" -msgstr "" - -msgid "default and will be removed from future releases." -msgstr "" - -#, c-format -msgid "CRITICAL - Couldn't open device %s: %s\n" -msgstr "" - -#, c-format -msgid "CRITICAL - SMART_CMD_ENABLE\n" -msgstr "" - -#, c-format -msgid "CRITICAL - SMART_READ_VALUES: %s\n" -msgstr "" - -#, c-format -msgid "CRITICAL - %d Harddrive PreFailure%cDetected! %d/%d tests failed.\n" -msgstr "" - -#, c-format -msgid "WARNING - %d Harddrive Advisor%s Detected. %d/%d tests failed.\n" -msgstr "" - -#, c-format -msgid "OK - Operational (%d/%d tests passed)\n" -msgstr "" - -#, c-format -msgid "ERROR - Status '%d' unknown. %d/%d tests passed\n" -msgstr "" - -#, c-format -msgid "OffLineStatus=%d {%s}, AutoOffLine=%s, OffLineTimeout=%d minutes\n" -msgstr "" - -#, c-format -msgid "OffLineCapability=%d {%s %s %s}\n" -msgstr "" - -#, c-format -msgid "SmartRevision=%d, CheckSum=%d, SmartCapability=%d {%s %s}\n" -msgstr "" - -#, c-format -msgid "CRITICAL - %s: %s\n" -msgstr "" - -#, c-format -msgid "OK - Command sent (%s)\n" -msgstr "" - -#, c-format -msgid "CRITICAL - SMART_READ_THRESHOLDS: %s\n" -msgstr "" - -#, c-format -msgid "" -"This plugin checks a local hard drive with the (Linux specific) SMART " -"interface [http://smartlinux.sourceforge.net/smart/index.php]." -msgstr "" - -msgid "Select device DEVICE" -msgstr "" - -msgid "" -"Note: if the device is specified without this option, any further option will" -msgstr "" - -msgid "be ignored." -msgstr "" - -msgid "" -"The SMART command modes (-i/--immediate, -0/--auto-off and -1/--auto-on) were" -msgstr "" - -msgid "" -"broken in an underhand manner and have been disabled. You can use smartctl" -msgstr "" - -msgid "instead:" -msgstr "" - -msgid "-0/--auto-off: use \"smartctl --offlineauto=off\"" -msgstr "" - -msgid "-1/--auto-on: use \"smartctl --offlineauto=on\"" -msgstr "" - -msgid "-i/--immediate: use \"smartctl --test=offline\"" -msgstr "" - -msgid "No data returned from command\n" -msgstr "" - -msgid "" -"Timeout result must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) " -"or integer (0-3)." -msgstr "" - -msgid "" -"Ok must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or integer " -"(0-3)." -msgstr "" - -msgid "" -"Warning must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" - -msgid "" -"Critical must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" - -msgid "" -"Unknown must be a valid state name (OK, WARNING, CRITICAL, UNKNOWN) or " -"integer (0-3)." -msgstr "" - -msgid "Require path to command" -msgstr "" - -msgid "" -"Negates the status of a plugin (returns OK for CRITICAL and vice-versa)." -msgstr "" - -msgid "Additional switches can be used to control which state becomes what." -msgstr "" - -msgid "Keep timeout longer than the plugin timeout to retain CRITICAL status." -msgstr "" - -msgid "Custom result on Negate timeouts; see below for STATUS definition\n" -msgstr "" - -#, c-format -msgid "" -" STATUS can be 'OK', 'WARNING', 'CRITICAL' or 'UNKNOWN' without single\n" -msgstr "" - -#, c-format -msgid "" -" quotes. Numeric values are accepted. If nothing is specified, permutes\n" -msgstr "" - -#, c-format -msgid " OK and CRITICAL.\n" -msgstr "" - -#, c-format -msgid "" -" Substitute output text as well. Will only substitute text in CAPITALS\n" -msgstr "" - -msgid "Run check_ping and invert result. Must use full path to plugin" -msgstr "" - -msgid "This will return OK instead of WARNING and UNKNOWN instead of CRITICAL" -msgstr "" - -msgid "" -"This plugin is a wrapper to take the output of another plugin and invert it." -msgstr "" - -msgid "The full path of the plugin must be provided." -msgstr "" - -msgid "If the wrapped plugin returns OK, the wrapper will return CRITICAL." -msgstr "" - -msgid "If the wrapped plugin returns CRITICAL, the wrapper will return OK." -msgstr "" - -msgid "Otherwise, the output state of the wrapped plugin is unchanged." -msgstr "" - -msgid "" -"Using timeout-result, it is possible to override the timeout behaviour or a" -msgstr "" - -msgid "plugin by setting the negate timeout a bit lower." -msgstr "" - -#, c-format -msgid "%s - Socket timeout after %d seconds\n" -msgstr "" - -#, c-format -msgid "%s - Abnormal timeout after %d seconds\n" -msgstr "" - -msgid "Send failed" -msgstr "" - -msgid "No data was received from host!" -msgstr "" - -msgid "Socket creation failed" -msgstr "" - -msgid "Supplied path too long unix domain socket" -msgstr "" - -msgid "Receive failed" -msgstr "" - -#, c-format -msgid "Invalid hostname/address - %s" -msgstr "" - -msgid "Could not malloc argv array in popen()" -msgstr "" - -msgid "CRITICAL - You need more args!!!" -msgstr "" - -msgid "Cannot catch SIGCHLD" -msgstr "" - -#, c-format -msgid "CRITICAL - Plugin timed out after %d seconds\n" -msgstr "" - -msgid "CRITICAL - popen timeout received, but no child process" -msgstr "" - -#, c-format -msgid "" -"%s UNKNOWN - No data received from host\n" -"CMD: %s\n" -msgstr "" - -msgid "" -"This plugin wraps the text output of another command (plugin) in HTML " -msgstr "" - -msgid "" -"tags, thus displaying the child plugin's output as a clickable link in " -"compatible" -msgstr "" - -msgid "" -"monitoring status screen. This plugin returns the status of the invoked " -"plugin." -msgstr "" - -msgid "" -"Pay close attention to quoting to ensure that the shell passes the expected" -msgstr "" - -msgid "data to the plugin. For example, in:" -msgstr "" - -msgid "urlize http://example.com/ check_http -H example.com -r 'two words'" -msgstr "" - -msgid "the shell will remove the single quotes and urlize will see:" -msgstr "" - -msgid "urlize http://example.com/ check_http -H example.com -r two words" -msgstr "" - -msgid "You probably want:" -msgstr "" - -msgid "urlize http://example.com/ \"check_http -H example.com -r 'two words'\"" -msgstr "" - -msgid "failed realloc in strpcpy\n" -msgstr "" - -msgid "failed malloc in strscat\n" -msgstr "" - -msgid "failed malloc in xvasprintf\n" -msgstr "" - -#, c-format -msgid "" -" %s (-h | --help) for detailed help\n" -" %s (-V | --version) for version information\n" -msgstr "" - -msgid "" -"\n" -"Options:\n" -" -h, --help\n" -" Print detailed help screen\n" -" -V, --version\n" -" Print version information\n" -msgstr "" - -#, c-format -msgid "" -" -H, --hostname=ADDRESS\n" -" Host name, IP Address, or unix socket (must be an absolute path)\n" -" -%c, --port=INTEGER\n" -" Port number (default: %s)\n" -msgstr "" - -msgid "" -" -4, --use-ipv4\n" -" Use IPv4 connection\n" -" -6, --use-ipv6\n" -" Use IPv6 connection\n" -msgstr "" - -msgid "" -" -v, --verbose\n" -" Show details for command-line debugging (output may be truncated by\n" -" the monitoring system)\n" -msgstr "" - -msgid "" -" -w, --warning=DOUBLE\n" -" Response time to result in warning status (seconds)\n" -" -c, --critical=DOUBLE\n" -" Response time to result in critical status (seconds)\n" -msgstr "" - -msgid "" -" -w, --warning=RANGE\n" -" Warning range (format: start:end). Alert if outside this range\n" -" -c, --critical=RANGE\n" -" Critical range\n" -msgstr "" - -#, c-format -msgid "" -" -t, --timeout=INTEGER\n" -" Seconds before connection times out (default: %d)\n" -msgstr "" - -#, c-format -msgid "" -" -t, --timeout=INTEGER\n" -" Seconds before plugin times out (default: %d)\n" -msgstr "" - -msgid "" -" --extra-opts=[section][@file]\n" -" Read options from an ini file. See\n" -" https://www.monitoring-plugins.org/doc/extra-opts.html\n" -" for usage and examples.\n" -msgstr "" - -msgid "" -" See:\n" -" https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT\n" -" for THRESHOLD format and examples.\n" -msgstr "" - -msgid "" -"\n" -"Send email to help@monitoring-plugins.org if you have questions regarding\n" -"use of this software. To submit patches or suggest improvements, send email\n" -"to devel@monitoring-plugins.org\n" -"\n" -msgstr "" - -msgid "" -"\n" -"The Monitoring Plugins come with ABSOLUTELY NO WARRANTY. You may " -"redistribute\n" -"copies of the plugins under the terms of the GNU General Public License.\n" -"For more information about these matters, see the file named COPYING.\n" -msgstr "" - -#, c-format -msgid "Error: Could not get hardware address of interface '%s'\n" -msgstr "" - -#, c-format -msgid "Error: if_nametoindex error - %s.\n" -msgstr "" - -#, c-format -msgid "Error: Couldn't get hardware address from %s. sysctl 1 error - %s.\n" -msgstr "" - -#, c-format -msgid "" -"Error: Couldn't get hardware address from interface %s. malloc error - %s.\n" -msgstr "" - -#, c-format -msgid "Error: Couldn't get hardware address from %s. sysctl 2 error - %s.\n" -msgstr "" - -#, c-format -msgid "" -"Error: can't find unit number in interface_name (%s) - expecting TypeNumber " -"eg lnc0.\n" -msgstr "" - -#, c-format -msgid "" -"Error: can't read MAC address from DLPI streams interface for device %s unit " -"%d.\n" -msgstr "" - -#, c-format -msgid "" -"Error: can't get MAC address for this architecture. Use the --mac option.\n" -msgstr "" - -#, c-format -msgid "Error: Cannot determine IP address of interface %s\n" -msgstr "" - -#, c-format -msgid "Error: Cannot get interface IP address on this platform.\n" -msgstr "" - -#, c-format -msgid "Pretending to be relay client %s\n" -msgstr "" - -#, c-format -msgid "DHCPDISCOVER to %s port %d\n" -msgstr "" - -#, c-format -msgid "Result=ERROR\n" -msgstr "" - -#, c-format -msgid "Result=OK\n" -msgstr "" - -#, c-format -msgid "DHCPOFFER from IP address %s" -msgstr "" - -#, c-format -msgid " via %s\n" -msgstr "" - -#, c-format -msgid "" -"DHCPOFFER XID (%u) did not match DHCPDISCOVER XID (%u) - ignoring packet\n" -msgstr "" - -#, c-format -msgid "DHCPOFFER hardware address did not match our own - ignoring packet\n" -msgstr "" - -#, c-format -msgid "Total responses seen on the wire: %d\n" -msgstr "" - -#, c-format -msgid "Valid responses for this machine: %d\n" -msgstr "" - -#, c-format -msgid "send_dhcp_packet result: %d\n" -msgstr "" - -#, c-format -msgid "No (more) data received (nfound: %d)\n" -msgstr "" - -#, c-format -msgid "recvfrom() failed, " -msgstr "" - -#, c-format -msgid "receive_dhcp_packet() result: %d\n" -msgstr "" - -#, c-format -msgid "receive_dhcp_packet() source: %s\n" -msgstr "" - -#, c-format -msgid "Error: Could not create socket!\n" -msgstr "" - -#, c-format -msgid "Error: Could not set reuse address option on DHCP socket!\n" -msgstr "" - -#, c-format -msgid "Error: Could not set broadcast option on DHCP socket!\n" -msgstr "" - -#, c-format -msgid "" -"Error: Could not bind socket to interface %s. Check your privileges...\n" -msgstr "" - -#, c-format -msgid "" -"Error: Could not bind to DHCP socket (port %d)! Check your privileges...\n" -msgstr "" - -#, c-format -msgid "Requested server address: %s\n" -msgstr "" - -#, c-format -msgid "Lease Time: Infinite\n" -msgstr "" - -#, c-format -msgid "Lease Time: %lu seconds\n" -msgstr "" - -#, c-format -msgid "Renewal Time: Infinite\n" -msgstr "" - -#, c-format -msgid "Renewal Time: %lu seconds\n" -msgstr "" - -#, c-format -msgid "Rebinding Time: Infinite\n" -msgstr "" - -#, c-format -msgid "Rebinding Time: %lu seconds\n" -msgstr "" - -#, c-format -msgid "Added offer from server @ %s" -msgstr "" - -#, c-format -msgid " of IP address %s\n" -msgstr "" - -#, c-format -msgid "DHCP Server Match: Offerer=%s" -msgstr "" - -#, c-format -msgid " Requested=%s" -msgstr "" - -#, c-format -msgid " (duplicate)" -msgstr "" - -#, c-format -msgid "\n" -msgstr "" - -#, c-format -msgid "No DHCPOFFERs were received.\n" -msgstr "" - -#, c-format -msgid "Received %d DHCPOFFER(s)" -msgstr "" - -#, c-format -msgid ", Rogue DHCP Server detected! Server %s" -msgstr "" - -#, c-format -msgid " offered %s \n" -msgstr "" - -#, c-format -msgid ", %s%d of %d requested servers responded" -msgstr "" - -#, c-format -msgid ", requested address (%s) was %soffered" -msgstr "" - -msgid "not " -msgstr "" - -#, c-format -msgid ", max lease time = " -msgstr "" - -#, c-format -msgid "Infinity" -msgstr "" - -msgid "Got unexpected non-option argument" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in check_ctrl: %s.\n" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in put_ctrl/putmsg(): %s.\n" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in put_both/putmsg().\n" -msgstr "" - -#, c-format -msgid "" -"Error: DLPI stream API failed to get MAC in dl_attach_req/open(%s..): %s.\n" -msgstr "" - -#, c-format -msgid "Error: DLPI stream API failed to get MAC in dl_bind/check_ctrl(): %s.\n" -msgstr "" - -#, c-format -msgid "Hardware address: " -msgstr "" - -msgid "This plugin tests the availability of DHCP servers on a network." -msgstr "" - -msgid "IP address of DHCP server that we must hear from" -msgstr "" - -msgid "IP address that should be offered by at least one DHCP server" -msgstr "" - -msgid "Seconds to wait for DHCPOFFER before timeout occurs" -msgstr "" - -msgid "Interface to to use for listening (i.e. eth0)" -msgstr "" - -msgid "MAC address to use in the DHCP request" -msgstr "" - -msgid "Unicast testing: mimic a DHCP relay, requires -s" -msgstr "" - -msgid "" -"Only requested DHCP server may response (rogue DHCP server detection), " -"requires -s" -msgstr "" - -msgid "specify a target" -msgstr "" - -msgid "Use IPv4 (default) or IPv6 to communicate with the targets" -msgstr "" - -msgid "warning threshold (currently " -msgstr "" - -msgid "critical threshold (currently " -msgstr "" - -msgid "" -"RTA, round trip average, mode warning,critical, ex. 100ms,200ms unit in ms" -msgstr "" - -msgid "packet loss mode, ex. 40%,50% , unit in %" -msgstr "" - -msgid "jitter mode warning,critical, ex. 40.000ms,50.000ms , unit in ms " -msgstr "" - -msgid "MOS mode, between 0 and 4.4 warning,critical, ex. 3.5,3.0" -msgstr "" - -msgid "score mode, max value 100 warning,critical, ex. 80,70 " -msgstr "" - -msgid "detect out of order ICMP packts " -msgstr "" - -msgid "specify a source IP address or device name" -msgstr "" - -msgid "number of packets to send (currently " -msgstr "" - -msgid "max packet interval (currently " -msgstr "" - -msgid "max target interval (currently " -msgstr "" - -msgid "number of alive hosts required for success" -msgstr "" - -msgid "TTL on outgoing packets (currently " -msgstr "" - -msgid "timeout value (seconds, currently " -msgstr "" - -msgid "Number of icmp data bytes to send" -msgstr "" - -msgid "Packet size will be data bytes + icmp header (currently" -msgstr "" - -msgid "verbose" -msgstr "" - -msgid "If none of R,P,J,M,S or O is specified, default behavior is -R -P" -msgstr "" - -msgid "The -H switch is optional. Naming a host (or several) to check is not." -msgstr "" - -msgid "" -"Threshold format for -w and -c is 200.25,60% for 200.25 msec RTA and 60%" -msgstr "" - -msgid "packet loss. The default values should work well for most users." -msgstr "" - -msgid "" -"You can specify different RTA factors using the standardized abbreviations" -msgstr "" - -msgid "" -"us (microseconds), ms (milliseconds, default) or just plain s for seconds." -msgstr "" - -msgid "The -v switch can be specified several times for increased verbosity." -msgstr "" diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin deleted file mode 100644 index 2436c49..0000000 --- a/po/remove-potcdate.sin +++ /dev/null @@ -1,19 +0,0 @@ -# Sed script that remove the POT-Creation-Date line in the header entry -# from a POT file. -# -# The distinction between the first and the following occurrences of the -# pattern is achieved by looking at the hold space. -/^"POT-Creation-Date: .*"$/{ -x -# Test if the hold space is empty. -s/P/P/ -ta -# Yes it was empty. First occurrence. Remove the line. -g -d -bb -:a -# The hold space was nonempty. Following occurrences. Do nothing. -x -:b -} diff --git a/po/stamp-po b/po/stamp-po deleted file mode 100644 index 9788f70..0000000 --- a/po/stamp-po +++ /dev/null @@ -1 +0,0 @@ -timestamp diff --git a/release b/release index cc6c9a4..197c4d5 100644 --- a/release +++ b/release @@ -1 +1 @@ -2.3.5 +2.4.0 diff --git a/tap/Makefile.in b/tap/Makefile.in index 281f3ce..da7f4c6 100644 --- a/tap/Makefile.in +++ b/tap/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -168,8 +168,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/nocrash.m4 $(top_srcdir)/gl/m4/off_t.m4 \ $(top_srcdir)/gl/m4/open-cloexec.m4 \ $(top_srcdir)/gl/m4/open-slash.m4 $(top_srcdir)/gl/m4/open.m4 \ - $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/pid_t.m4 \ - $(top_srcdir)/gl/m4/printf.m4 \ + $(top_srcdir)/gl/m4/pathmax.m4 $(top_srcdir)/gl/m4/printf.m4 \ $(top_srcdir)/gl/m4/pthread_rwlock_rdlock.m4 \ $(top_srcdir)/gl/m4/realloc.m4 \ $(top_srcdir)/gl/m4/reallocarray.m4 \ @@ -182,7 +181,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/sockets.m4 $(top_srcdir)/gl/m4/socklen.m4 \ $(top_srcdir)/gl/m4/sockpfaf.m4 $(top_srcdir)/gl/m4/ssize_t.m4 \ $(top_srcdir)/gl/m4/stat-time.m4 $(top_srcdir)/gl/m4/stat.m4 \ - $(top_srcdir)/gl/m4/std-gnu11.m4 \ $(top_srcdir)/gl/m4/stdalign.m4 \ $(top_srcdir)/gl/m4/stddef_h.m4 $(top_srcdir)/gl/m4/stdint.m4 \ $(top_srcdir)/gl/m4/stdint_h.m4 $(top_srcdir)/gl/m4/stdio_h.m4 \ @@ -200,7 +198,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/gl/m4/time_r.m4 $(top_srcdir)/gl/m4/timegm.m4 \ $(top_srcdir)/gl/m4/ungetc.m4 $(top_srcdir)/gl/m4/unistd_h.m4 \ $(top_srcdir)/gl/m4/unlocked-io.m4 \ - $(top_srcdir)/gl/m4/vararrays.m4 \ $(top_srcdir)/gl/m4/vasnprintf.m4 \ $(top_srcdir)/gl/m4/vasprintf.m4 \ $(top_srcdir)/gl/m4/visibility.m4 \ @@ -318,8 +315,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp \ $(top_srcdir)/build-aux/mkinstalldirs README @@ -350,6 +345,8 @@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBILIBS = @DBILIBS@ DEFS = @DEFS@ @@ -369,6 +366,7 @@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ EXTRAS_ROOT = @EXTRAS_ROOT@ @@ -1740,6 +1738,8 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ +localedir_c = @localedir_c@ +localedir_c_make = @localedir_c_make@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ @@ -1923,7 +1923,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am