#! /bin/sh
#
# To apply this patch, cd to the top level Octave source directory and
# run this file through /bin/sh. It will first remove any files that
# have been deleted from the source distribution since the last
# release and then update the sources with patch(1).
#
# Diffs for updating *.ps, *.dvi, *.info*, and *.html files are not
# included because they can be recreated from the Texinfo files using
# TeX, makeinfo, or texi2html.
#
# Diffs for updating parse.cc and y.tab.h are not included because
# they can be recreated from the file parse.y using bison.
#
# Diffs for updating lex.cc are not included because it can be
# recreated from lex.l using flex.
#
# John W. Eaton
# jwe@bevo.che.wisc.edu
# University of Wisconsin-Madison
# Department of Chemical Engineering
if test -f src/octave.cc ; then
true
else
echo '***********************************************************' 1>&2
echo 'You must run this script in the top-level octave directory!' 1>&2
echo '***********************************************************' 1>&2
exit 1
fi
###
### Special commands should go here.
###
echo 'patching existing files'
patch -p1 << \PATCH_EOF
diff -cNr octave-3.4.2/aclocal.m4 octave-3.4.3/aclocal.m4
*** octave-3.4.2/aclocal.m4 2011-06-24 10:38:32.000000000 -0400
--- octave-3.4.3/aclocal.m4 2011-10-10 10:24:08.000000000 -0400
***************
*** 1426,1431 ****
--- 1426,1432 ----
m4_include([m4/check-math-lib.m4])
m4_include([m4/chown.m4])
m4_include([m4/close.m4])
+ m4_include([m4/closedir.m4])
m4_include([m4/codeset.m4])
m4_include([m4/configmake.m4])
m4_include([m4/d-ino.m4])
***************
*** 1434,1439 ****
--- 1435,1441 ----
m4_include([m4/dirfd.m4])
m4_include([m4/dirname.m4])
m4_include([m4/double-slash-root.m4])
+ m4_include([m4/dup.m4])
m4_include([m4/dup2.m4])
m4_include([m4/eealloc.m4])
m4_include([m4/errno_h.m4])
***************
*** 1452,1461 ****
--- 1454,1465 ----
m4_include([m4/floor.m4])
m4_include([m4/floorf.m4])
m4_include([m4/fnmatch.m4])
+ m4_include([m4/fopen.m4])
m4_include([m4/fpurge.m4])
m4_include([m4/freading.m4])
m4_include([m4/fseek.m4])
m4_include([m4/fseeko.m4])
+ m4_include([m4/fstat.m4])
m4_include([m4/ftell.m4])
m4_include([m4/ftello.m4])
m4_include([m4/getcwd-abort-bug.m4])
***************
*** 1473,1478 ****
--- 1477,1483 ----
m4_include([m4/include_next.m4])
m4_include([m4/intmax_t.m4])
m4_include([m4/inttypes_h.m4])
+ m4_include([m4/largefile.m4])
m4_include([m4/lchown.m4])
m4_include([m4/libtool.m4])
m4_include([m4/link.m4])
***************
*** 1505,1518 ****
--- 1510,1528 ----
m4_include([m4/mktime.m4])
m4_include([m4/mmap-anon.m4])
m4_include([m4/mode_t.m4])
+ m4_include([m4/msvc-inval.m4])
+ m4_include([m4/msvc-nothrow.m4])
m4_include([m4/multiarch.m4])
m4_include([m4/nanosleep.m4])
m4_include([m4/nocrash.m4])
m4_include([m4/nproc.m4])
m4_include([m4/open.m4])
m4_include([m4/openat.m4])
+ m4_include([m4/opendir.m4])
m4_include([m4/pathmax.m4])
m4_include([m4/printf.m4])
+ m4_include([m4/raise.m4])
+ m4_include([m4/readdir.m4])
m4_include([m4/readlink.m4])
m4_include([m4/realloc.m4])
m4_include([m4/rename.m4])
***************
*** 1529,1534 ****
--- 1539,1545 ----
m4_include([m4/socketlib.m4])
m4_include([m4/sockets.m4])
m4_include([m4/socklen.m4])
+ m4_include([m4/ssize_t.m4])
m4_include([m4/st_dm_mode.m4])
m4_include([m4/stat.m4])
m4_include([m4/stdbool.m4])
***************
*** 1537,1546 ****
--- 1548,1559 ----
m4_include([m4/stdint_h.m4])
m4_include([m4/stdio_h.m4])
m4_include([m4/stdlib_h.m4])
+ m4_include([m4/strcase.m4])
m4_include([m4/strdup.m4])
m4_include([m4/strerror.m4])
m4_include([m4/strftime.m4])
m4_include([m4/string_h.m4])
+ m4_include([m4/strings_h.m4])
m4_include([m4/strptime.m4])
m4_include([m4/symlink.m4])
m4_include([m4/sys_select_h.m4])
***************
*** 1548,1559 ****
--- 1561,1575 ----
m4_include([m4/sys_stat_h.m4])
m4_include([m4/sys_time_h.m4])
m4_include([m4/sys_times_h.m4])
+ m4_include([m4/sys_types_h.m4])
m4_include([m4/sys_uio_h.m4])
m4_include([m4/tempname.m4])
m4_include([m4/time_h.m4])
m4_include([m4/time_r.m4])
m4_include([m4/times.m4])
m4_include([m4/tm_gmtoff.m4])
+ m4_include([m4/tmpdir.m4])
+ m4_include([m4/tmpfile.m4])
m4_include([m4/trunc.m4])
m4_include([m4/truncf.m4])
m4_include([m4/unistd-safer.m4])
diff -cNr octave-3.4.2/build-aux/arg-nonnull.h octave-3.4.3/build-aux/arg-nonnull.h
*** octave-3.4.2/build-aux/arg-nonnull.h 2011-04-19 21:36:56.000000000 -0400
--- octave-3.4.3/build-aux/arg-nonnull.h 1969-12-31 19:00:00.000000000 -0500
***************
*** 1,28 ****
- /* -*- buffer-read-only: t -*- vi: set ro: */
- /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
- /* A C macro for declaring that specific arguments must not be NULL.
- Copyright (C) 2009-2011 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 . */
-
- /* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
- that the values passed as arguments n, ..., m must be non-NULL pointers.
- n = 1 stands for the first argument, n = 2 for the second argument etc. */
- #ifndef _GL_ARG_NONNULL
- # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
- # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
- # else
- # define _GL_ARG_NONNULL(params)
- # endif
- #endif
--- 0 ----
diff -cNr octave-3.4.2/build-aux/bootstrap.conf octave-3.4.3/build-aux/bootstrap.conf
*** octave-3.4.2/build-aux/bootstrap.conf 2011-06-10 13:48:38.000000000 -0400
--- octave-3.4.3/build-aux/bootstrap.conf 2011-09-01 09:38:52.000000000 -0400
***************
*** 21,29 ****
--- 21,34 ----
c-strcase
copysign
crypto/md5
+ fclose
fcntl
filemode
fnmatch
+ fopen
+ fflush
+ fseek
+ ftell
getcwd
gethostname
getopt-gnu
***************
*** 51,56 ****
--- 56,62 ----
sleep
stat
stdint
+ stdio
strftime
strptime
symlink
***************
*** 59,64 ****
--- 65,71 ----
sys_times
time
times
+ tmpfile
trunc
truncf
unistd
diff -cNr octave-3.4.2/build-aux/c++defs.h octave-3.4.3/build-aux/c++defs.h
*** octave-3.4.2/build-aux/c++defs.h 2011-04-19 21:36:56.000000000 -0400
--- octave-3.4.3/build-aux/c++defs.h 1969-12-31 19:00:00.000000000 -0500
***************
*** 1,273 ****
- /* -*- buffer-read-only: t -*- vi: set ro: */
- /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
- /* C++ compatible function declaration macros.
- Copyright (C) 2010-2011 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 . */
-
- #ifndef _GL_CXXDEFS_H
- #define _GL_CXXDEFS_H
-
- /* The three most frequent use cases of these macros are:
-
- * For providing a substitute for a function that is missing on some
- platforms, but is declared and works fine on the platforms on which
- it exists:
-
- #if @GNULIB_FOO@
- # if !@HAVE_FOO@
- _GL_FUNCDECL_SYS (foo, ...);
- # endif
- _GL_CXXALIAS_SYS (foo, ...);
- _GL_CXXALIASWARN (foo);
- #elif defined GNULIB_POSIXCHECK
- ...
- #endif
-
- * For providing a replacement for a function that exists on all platforms,
- but is broken/insufficient and needs to be replaced on some platforms:
-
- #if @GNULIB_FOO@
- # if @REPLACE_FOO@
- # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
- # undef foo
- # define foo rpl_foo
- # endif
- _GL_FUNCDECL_RPL (foo, ...);
- _GL_CXXALIAS_RPL (foo, ...);
- # else
- _GL_CXXALIAS_SYS (foo, ...);
- # endif
- _GL_CXXALIASWARN (foo);
- #elif defined GNULIB_POSIXCHECK
- ...
- #endif
-
- * For providing a replacement for a function that exists on some platforms
- but is broken/insufficient and needs to be replaced on some of them and
- is additionally either missing or undeclared on some other platforms:
-
- #if @GNULIB_FOO@
- # if @REPLACE_FOO@
- # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
- # undef foo
- # define foo rpl_foo
- # endif
- _GL_FUNCDECL_RPL (foo, ...);
- _GL_CXXALIAS_RPL (foo, ...);
- # else
- # if !@HAVE_FOO@ or if !@HAVE_DECL_FOO@
- _GL_FUNCDECL_SYS (foo, ...);
- # endif
- _GL_CXXALIAS_SYS (foo, ...);
- # endif
- _GL_CXXALIASWARN (foo);
- #elif defined GNULIB_POSIXCHECK
- ...
- #endif
- */
-
- /* _GL_EXTERN_C declaration;
- performs the declaration with C linkage. */
- #if defined __cplusplus
- # define _GL_EXTERN_C extern "C"
- #else
- # define _GL_EXTERN_C extern
- #endif
-
- /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes);
- declares a replacement function, named rpl_func, with the given prototype,
- consisting of return type, parameters, and attributes.
- Example:
- _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...)
- _GL_ARG_NONNULL ((1)));
- */
- #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
- _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
- #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \
- _GL_EXTERN_C rettype rpl_func parameters_and_attributes
-
- /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes);
- declares the system function, named func, with the given prototype,
- consisting of return type, parameters, and attributes.
- Example:
- _GL_FUNCDECL_SYS (open, int, (const char *filename, int flags, ...)
- _GL_ARG_NONNULL ((1)));
- */
- #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
- _GL_EXTERN_C rettype func parameters_and_attributes
-
- /* _GL_CXXALIAS_RPL (func, rettype, parameters);
- declares a C++ alias called GNULIB_NAMESPACE::func
- that redirects to rpl_func, if GNULIB_NAMESPACE is defined.
- Example:
- _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...));
- */
- #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
- _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
- #if defined __cplusplus && defined GNULIB_NAMESPACE
- # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
- namespace GNULIB_NAMESPACE \
- { \
- rettype (*const func) parameters = ::rpl_func; \
- } \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #else
- # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #endif
-
- /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
- is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
- except that the C function rpl_func may have a slightly different
- declaration. A cast is used to silence the "invalid conversion" error
- that would otherwise occur. */
- #if defined __cplusplus && defined GNULIB_NAMESPACE
- # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
- namespace GNULIB_NAMESPACE \
- { \
- rettype (*const func) parameters = \
- reinterpret_cast(::rpl_func); \
- } \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #else
- # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #endif
-
- /* _GL_CXXALIAS_SYS (func, rettype, parameters);
- declares a C++ alias called GNULIB_NAMESPACE::func
- that redirects to the system provided function func, if GNULIB_NAMESPACE
- is defined.
- Example:
- _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...));
- */
- #if defined __cplusplus && defined GNULIB_NAMESPACE
- /* If we were to write
- rettype (*const func) parameters = ::func;
- like above in _GL_CXXALIAS_RPL_1, the compiler could optimize calls
- better (remove an indirection through a 'static' pointer variable),
- but then the _GL_CXXALIASWARN macro below would cause a warning not only
- for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */
- # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
- namespace GNULIB_NAMESPACE \
- { \
- static rettype (*func) parameters = ::func; \
- } \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #else
- # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #endif
-
- /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters);
- is like _GL_CXXALIAS_SYS (func, rettype, parameters);
- except that the C function func may have a slightly different declaration.
- A cast is used to silence the "invalid conversion" error that would
- otherwise occur. */
- #if defined __cplusplus && defined GNULIB_NAMESPACE
- # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
- namespace GNULIB_NAMESPACE \
- { \
- static rettype (*func) parameters = \
- reinterpret_cast(::func); \
- } \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #else
- # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #endif
-
- /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2);
- is like _GL_CXXALIAS_SYS (func, rettype, parameters);
- except that the C function is picked among a set of overloaded functions,
- namely the one with rettype2 and parameters2. Two consecutive casts
- are used to silence the "cannot find a match" and "invalid conversion"
- errors that would otherwise occur. */
- #if defined __cplusplus && defined GNULIB_NAMESPACE
- /* The outer cast must be a reinterpret_cast.
- The inner cast: When the function is defined as a set of overloaded
- functions, it works as a static_cast<>, choosing the designated variant.
- When the function is defined as a single variant, it works as a
- reinterpret_cast<>. The parenthesized cast syntax works both ways. */
- # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
- namespace GNULIB_NAMESPACE \
- { \
- static rettype (*func) parameters = \
- reinterpret_cast( \
- (rettype2(*)parameters2)(::func)); \
- } \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #else
- # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #endif
-
- /* _GL_CXXALIASWARN (func);
- causes a warning to be emitted when ::func is used but not when
- GNULIB_NAMESPACE::func is used. func must be defined without overloaded
- variants. */
- #if defined __cplusplus && defined GNULIB_NAMESPACE
- # define _GL_CXXALIASWARN(func) \
- _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
- # define _GL_CXXALIASWARN_1(func,namespace) \
- _GL_CXXALIASWARN_2 (func, namespace)
- /* To work around GCC bug ,
- we enable the warning only when not optimizing. */
- # if !__OPTIMIZE__
- # define _GL_CXXALIASWARN_2(func,namespace) \
- _GL_WARN_ON_USE (func, \
- "The symbol ::" #func " refers to the system function. " \
- "Use " #namespace "::" #func " instead.")
- # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
- # define _GL_CXXALIASWARN_2(func,namespace) \
- extern __typeof__ (func) func
- # else
- # define _GL_CXXALIASWARN_2(func,namespace) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- # endif
- #else
- # define _GL_CXXALIASWARN(func) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #endif
-
- /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes);
- causes a warning to be emitted when the given overloaded variant of ::func
- is used but not when GNULIB_NAMESPACE::func is used. */
- #if defined __cplusplus && defined GNULIB_NAMESPACE
- # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
- _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
- GNULIB_NAMESPACE)
- # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
- _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
- /* To work around GCC bug ,
- we enable the warning only when not optimizing. */
- # if !__OPTIMIZE__
- # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
- _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
- "The symbol ::" #func " refers to the system function. " \
- "Use " #namespace "::" #func " instead.")
- # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
- # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
- extern __typeof__ (func) func
- # else
- # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- # endif
- #else
- # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
- _GL_EXTERN_C int _gl_cxxalias_dummy
- #endif
-
- #endif /* _GL_CXXDEFS_H */
--- 0 ----
diff -cNr octave-3.4.2/build-aux/config.guess octave-3.4.3/build-aux/config.guess
*** octave-3.4.2/build-aux/config.guess 2011-06-10 13:59:38.000000000 -0400
--- octave-3.4.3/build-aux/config.guess 2011-09-29 13:22:08.000000000 -0400
***************
*** 4,10 ****
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011 Free Software Foundation, Inc.
! timestamp='2011-06-03'
# 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
--- 4,10 ----
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011 Free Software Foundation, Inc.
! timestamp='2011-08-20'
# 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
***************
*** 792,804 ****
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
! case ${UNAME_MACHINE} in
! pc98)
! echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
amd64)
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
*)
! echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
esac
exit ;;
i*:CYGWIN*:*)
--- 792,803 ----
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
! UNAME_PROCESSOR=`/usr/bin/uname -p`
! case ${UNAME_PROCESSOR} in
amd64)
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
*)
! echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
esac
exit ;;
i*:CYGWIN*:*)
diff -cNr octave-3.4.2/build-aux/config.sub octave-3.4.3/build-aux/config.sub
*** octave-3.4.2/build-aux/config.sub 2011-06-10 13:59:38.000000000 -0400
--- octave-3.4.3/build-aux/config.sub 2011-09-29 13:22:08.000000000 -0400
***************
*** 4,10 ****
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011 Free Software Foundation, Inc.
! timestamp='2011-06-03'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
--- 4,10 ----
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011 Free Software Foundation, Inc.
! timestamp='2011-09-09'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
***************
*** 251,263 ****
--- 251,266 ----
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | be32 | be64 \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
| fido | fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | hexagon \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
+ | le32 | le64 \
| lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
| maxq | mb | microblaze | mcore | mep | metag \
***************
*** 357,362 ****
--- 360,366 ----
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \
+ | be32-* | be64-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \
| clipper-* | craynv-* | cydra-* \
***************
*** 365,372 ****
--- 369,378 ----
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | hexagon-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* | iq2000-* \
+ | le32-* | le64-* \
| lm32-* \
| m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
***************
*** 813,818 ****
--- 819,828 ----
basic_machine=i370-ibm
os=-mvs
;;
+ nacl)
+ basic_machine=le32-unknown
+ os=-nacl
+ ;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
diff -cNr octave-3.4.2/build-aux/ltmain.sh octave-3.4.3/build-aux/ltmain.sh
*** octave-3.4.2/build-aux/ltmain.sh 2011-06-24 10:38:19.000000000 -0400
--- octave-3.4.3/build-aux/ltmain.sh 2011-09-29 13:25:47.000000000 -0400
***************
*** 69,75 ****
# compiler: $LTCC
# compiler flags: $LTCFLAGS
# linker: $LD (gnu? $with_gnu_ld)
! # $progname: (GNU libtool) 2.4 Debian-2.4-2
# automake: $automake_version
# autoconf: $autoconf_version
#
--- 69,75 ----
# compiler: $LTCC
# compiler flags: $LTCFLAGS
# linker: $LD (gnu? $with_gnu_ld)
! # $progname: (GNU libtool) 2.4 Debian-2.4-4
# automake: $automake_version
# autoconf: $autoconf_version
#
***************
*** 79,85 ****
PROGRAM=libtool
PACKAGE=libtool
! VERSION="2.4 Debian-2.4-2"
TIMESTAMP=""
package_revision=1.3293
--- 79,85 ----
PROGRAM=libtool
PACKAGE=libtool
! VERSION="2.4 Debian-2.4-4"
TIMESTAMP=""
package_revision=1.3293
diff -cNr octave-3.4.2/build-aux/snippet/arg-nonnull.h octave-3.4.3/build-aux/snippet/arg-nonnull.h
*** octave-3.4.2/build-aux/snippet/arg-nonnull.h 1969-12-31 19:00:00.000000000 -0500
--- octave-3.4.3/build-aux/snippet/arg-nonnull.h 2011-08-03 23:59:50.000000000 -0400
***************
*** 0 ****
--- 1,28 ----
+ /* -*- buffer-read-only: t -*- vi: set ro: */
+ /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
+ /* A C macro for declaring that specific arguments must not be NULL.
+ Copyright (C) 2009-2011 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 . */
+
+ /* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
+ that the values passed as arguments n, ..., m must be non-NULL pointers.
+ n = 1 stands for the first argument, n = 2 for the second argument etc. */
+ #ifndef _GL_ARG_NONNULL
+ # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
+ # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
+ # else
+ # define _GL_ARG_NONNULL(params)
+ # endif
+ #endif
diff -cNr octave-3.4.2/build-aux/snippet/c++defs.h octave-3.4.3/build-aux/snippet/c++defs.h
*** octave-3.4.2/build-aux/snippet/c++defs.h 1969-12-31 19:00:00.000000000 -0500
--- octave-3.4.3/build-aux/snippet/c++defs.h 2011-08-03 23:59:50.000000000 -0400
***************
*** 0 ****
--- 1,273 ----
+ /* -*- buffer-read-only: t -*- vi: set ro: */
+ /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
+ /* C++ compatible function declaration macros.
+ Copyright (C) 2010-2011 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 . */
+
+ #ifndef _GL_CXXDEFS_H
+ #define _GL_CXXDEFS_H
+
+ /* The three most frequent use cases of these macros are:
+
+ * For providing a substitute for a function that is missing on some
+ platforms, but is declared and works fine on the platforms on which
+ it exists:
+
+ #if @GNULIB_FOO@
+ # if !@HAVE_FOO@
+ _GL_FUNCDECL_SYS (foo, ...);
+ # endif
+ _GL_CXXALIAS_SYS (foo, ...);
+ _GL_CXXALIASWARN (foo);
+ #elif defined GNULIB_POSIXCHECK
+ ...
+ #endif
+
+ * For providing a replacement for a function that exists on all platforms,
+ but is broken/insufficient and needs to be replaced on some platforms:
+
+ #if @GNULIB_FOO@
+ # if @REPLACE_FOO@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+ # undef foo
+ # define foo rpl_foo
+ # endif
+ _GL_FUNCDECL_RPL (foo, ...);
+ _GL_CXXALIAS_RPL (foo, ...);
+ # else
+ _GL_CXXALIAS_SYS (foo, ...);
+ # endif
+ _GL_CXXALIASWARN (foo);
+ #elif defined GNULIB_POSIXCHECK
+ ...
+ #endif
+
+ * For providing a replacement for a function that exists on some platforms
+ but is broken/insufficient and needs to be replaced on some of them and
+ is additionally either missing or undeclared on some other platforms:
+
+ #if @GNULIB_FOO@
+ # if @REPLACE_FOO@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+ # undef foo
+ # define foo rpl_foo
+ # endif
+ _GL_FUNCDECL_RPL (foo, ...);
+ _GL_CXXALIAS_RPL (foo, ...);
+ # else
+ # if !@HAVE_FOO@ or if !@HAVE_DECL_FOO@
+ _GL_FUNCDECL_SYS (foo, ...);
+ # endif
+ _GL_CXXALIAS_SYS (foo, ...);
+ # endif
+ _GL_CXXALIASWARN (foo);
+ #elif defined GNULIB_POSIXCHECK
+ ...
+ #endif
+ */
+
+ /* _GL_EXTERN_C declaration;
+ performs the declaration with C linkage. */
+ #if defined __cplusplus
+ # define _GL_EXTERN_C extern "C"
+ #else
+ # define _GL_EXTERN_C extern
+ #endif
+
+ /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes);
+ declares a replacement function, named rpl_func, with the given prototype,
+ consisting of return type, parameters, and attributes.
+ Example:
+ _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...)
+ _GL_ARG_NONNULL ((1)));
+ */
+ #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
+ _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
+ #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \
+ _GL_EXTERN_C rettype rpl_func parameters_and_attributes
+
+ /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes);
+ declares the system function, named func, with the given prototype,
+ consisting of return type, parameters, and attributes.
+ Example:
+ _GL_FUNCDECL_SYS (open, int, (const char *filename, int flags, ...)
+ _GL_ARG_NONNULL ((1)));
+ */
+ #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
+ _GL_EXTERN_C rettype func parameters_and_attributes
+
+ /* _GL_CXXALIAS_RPL (func, rettype, parameters);
+ declares a C++ alias called GNULIB_NAMESPACE::func
+ that redirects to rpl_func, if GNULIB_NAMESPACE is defined.
+ Example:
+ _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...));
+ */
+ #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
+ _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
+ #if defined __cplusplus && defined GNULIB_NAMESPACE
+ # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
+ namespace GNULIB_NAMESPACE \
+ { \
+ rettype (*const func) parameters = ::rpl_func; \
+ } \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #else
+ # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #endif
+
+ /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
+ is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
+ except that the C function rpl_func may have a slightly different
+ declaration. A cast is used to silence the "invalid conversion" error
+ that would otherwise occur. */
+ #if defined __cplusplus && defined GNULIB_NAMESPACE
+ # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
+ namespace GNULIB_NAMESPACE \
+ { \
+ rettype (*const func) parameters = \
+ reinterpret_cast(::rpl_func); \
+ } \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #else
+ # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #endif
+
+ /* _GL_CXXALIAS_SYS (func, rettype, parameters);
+ declares a C++ alias called GNULIB_NAMESPACE::func
+ that redirects to the system provided function func, if GNULIB_NAMESPACE
+ is defined.
+ Example:
+ _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...));
+ */
+ #if defined __cplusplus && defined GNULIB_NAMESPACE
+ /* If we were to write
+ rettype (*const func) parameters = ::func;
+ like above in _GL_CXXALIAS_RPL_1, the compiler could optimize calls
+ better (remove an indirection through a 'static' pointer variable),
+ but then the _GL_CXXALIASWARN macro below would cause a warning not only
+ for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */
+ # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
+ namespace GNULIB_NAMESPACE \
+ { \
+ static rettype (*func) parameters = ::func; \
+ } \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #else
+ # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #endif
+
+ /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters);
+ is like _GL_CXXALIAS_SYS (func, rettype, parameters);
+ except that the C function func may have a slightly different declaration.
+ A cast is used to silence the "invalid conversion" error that would
+ otherwise occur. */
+ #if defined __cplusplus && defined GNULIB_NAMESPACE
+ # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
+ namespace GNULIB_NAMESPACE \
+ { \
+ static rettype (*func) parameters = \
+ reinterpret_cast(::func); \
+ } \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #else
+ # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #endif
+
+ /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2);
+ is like _GL_CXXALIAS_SYS (func, rettype, parameters);
+ except that the C function is picked among a set of overloaded functions,
+ namely the one with rettype2 and parameters2. Two consecutive casts
+ are used to silence the "cannot find a match" and "invalid conversion"
+ errors that would otherwise occur. */
+ #if defined __cplusplus && defined GNULIB_NAMESPACE
+ /* The outer cast must be a reinterpret_cast.
+ The inner cast: When the function is defined as a set of overloaded
+ functions, it works as a static_cast<>, choosing the designated variant.
+ When the function is defined as a single variant, it works as a
+ reinterpret_cast<>. The parenthesized cast syntax works both ways. */
+ # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
+ namespace GNULIB_NAMESPACE \
+ { \
+ static rettype (*func) parameters = \
+ reinterpret_cast( \
+ (rettype2(*)parameters2)(::func)); \
+ } \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #else
+ # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #endif
+
+ /* _GL_CXXALIASWARN (func);
+ causes a warning to be emitted when ::func is used but not when
+ GNULIB_NAMESPACE::func is used. func must be defined without overloaded
+ variants. */
+ #if defined __cplusplus && defined GNULIB_NAMESPACE
+ # define _GL_CXXALIASWARN(func) \
+ _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
+ # define _GL_CXXALIASWARN_1(func,namespace) \
+ _GL_CXXALIASWARN_2 (func, namespace)
+ /* To work around GCC bug ,
+ we enable the warning only when not optimizing. */
+ # if !__OPTIMIZE__
+ # define _GL_CXXALIASWARN_2(func,namespace) \
+ _GL_WARN_ON_USE (func, \
+ "The symbol ::" #func " refers to the system function. " \
+ "Use " #namespace "::" #func " instead.")
+ # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
+ # define _GL_CXXALIASWARN_2(func,namespace) \
+ extern __typeof__ (func) func
+ # else
+ # define _GL_CXXALIASWARN_2(func,namespace) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ # endif
+ #else
+ # define _GL_CXXALIASWARN(func) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #endif
+
+ /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes);
+ causes a warning to be emitted when the given overloaded variant of ::func
+ is used but not when GNULIB_NAMESPACE::func is used. */
+ #if defined __cplusplus && defined GNULIB_NAMESPACE
+ # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
+ _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
+ GNULIB_NAMESPACE)
+ # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
+ _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
+ /* To work around GCC bug ,
+ we enable the warning only when not optimizing. */
+ # if !__OPTIMIZE__
+ # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
+ _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
+ "The symbol ::" #func " refers to the system function. " \
+ "Use " #namespace "::" #func " instead.")
+ # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
+ # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
+ extern __typeof__ (func) func
+ # else
+ # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ # endif
+ #else
+ # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
+ _GL_EXTERN_C int _gl_cxxalias_dummy
+ #endif
+
+ #endif /* _GL_CXXDEFS_H */
diff -cNr octave-3.4.2/build-aux/snippet/_Noreturn.h octave-3.4.3/build-aux/snippet/_Noreturn.h
*** octave-3.4.2/build-aux/snippet/_Noreturn.h 1969-12-31 19:00:00.000000000 -0500
--- octave-3.4.3/build-aux/snippet/_Noreturn.h 2011-08-03 23:54:53.000000000 -0400
***************
*** 0 ****
--- 1,10 ----
+ #ifndef _Noreturn
+ # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
+ || 0x5110 <= __SUNPRO_C)
+ # define _Noreturn __attribute__ ((__noreturn__))
+ # elif 1200 <= _MSC_VER
+ # define _Noreturn __declspec (noreturn)
+ # else
+ # define _Noreturn
+ # endif
+ #endif
diff -cNr octave-3.4.2/build-aux/snippet/warn-on-use.h octave-3.4.3/build-aux/snippet/warn-on-use.h
*** octave-3.4.2/build-aux/snippet/warn-on-use.h 1969-12-31 19:00:00.000000000 -0500
--- octave-3.4.3/build-aux/snippet/warn-on-use.h 2011-08-03 23:59:50.000000000 -0400
***************
*** 0 ****
--- 1,111 ----
+ /* -*- buffer-read-only: t -*- vi: set ro: */
+ /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
+ /* A C macro for emitting warnings if a function is used.
+ Copyright (C) 2010-2011 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 . */
+
+ /* _GL_WARN_ON_USE (function, "literal string") issues a declaration
+ for FUNCTION which will then trigger a compiler warning containing
+ the text of "literal string" anywhere that function is called, if
+ supported by the compiler. If the compiler does not support this
+ feature, the macro expands to an unused extern declaration.
+
+ This macro is useful for marking a function as a potential
+ portability trap, with the intent that "literal string" include
+ instructions on the replacement function that should be used
+ instead. However, one of the reasons that a function is a
+ portability trap is if it has the wrong signature. Declaring
+ FUNCTION with a different signature in C is a compilation error, so
+ this macro must use the same type as any existing declaration so
+ that programs that avoid the problematic FUNCTION do not fail to
+ compile merely because they included a header that poisoned the
+ function. But this implies that _GL_WARN_ON_USE is only safe to
+ use if FUNCTION is known to already have a declaration. Use of
+ this macro implies that there must not be any other macro hiding
+ the declaration of FUNCTION; but undefining FUNCTION first is part
+ of the poisoning process anyway (although for symbols that are
+ provided only via a macro, the result is a compilation error rather
+ than a warning containing "literal string"). Also note that in
+ C++, it is only safe to use if FUNCTION has no overloads.
+
+ For an example, it is possible to poison 'getline' by:
+ - adding a call to gl_WARN_ON_USE_PREPARE([[#include ]],
+ [getline]) in configure.ac, which potentially defines
+ HAVE_RAW_DECL_GETLINE
+ - adding this code to a header that wraps the system :
+ #undef getline
+ #if HAVE_RAW_DECL_GETLINE
+ _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but"
+ "not universally present; use the gnulib module getline");
+ #endif
+
+ It is not possible to directly poison global variables. But it is
+ possible to write a wrapper accessor function, and poison that
+ (less common usage, like &environ, will cause a compilation error
+ rather than issue the nice warning, but the end result of informing
+ the developer about their portability problem is still achieved):
+ #if HAVE_RAW_DECL_ENVIRON
+ static inline char ***rpl_environ (void) { return &environ; }
+ _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared");
+ # undef environ
+ # define environ (*rpl_environ ())
+ #endif
+ */
+ #ifndef _GL_WARN_ON_USE
+
+ # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
+ /* A compiler attribute is available in gcc versions 4.3.0 and later. */
+ # define _GL_WARN_ON_USE(function, message) \
+ extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
+ # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
+ /* Verify the existence of the function. */
+ # define _GL_WARN_ON_USE(function, message) \
+ extern __typeof__ (function) function
+ # else /* Unsupported. */
+ # define _GL_WARN_ON_USE(function, message) \
+ _GL_WARN_EXTERN_C int _gl_warn_on_use
+ # endif
+ #endif
+
+ /* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string")
+ is like _GL_WARN_ON_USE (function, "string"), except that the function is
+ declared with the given prototype, consisting of return type, parameters,
+ and attributes.
+ This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does
+ not work in this case. */
+ #ifndef _GL_WARN_ON_USE_CXX
+ # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
+ # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
+ extern rettype function parameters_and_attributes \
+ __attribute__ ((__warning__ (msg)))
+ # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
+ /* Verify the existence of the function. */
+ # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
+ extern rettype function parameters_and_attributes
+ # else /* Unsupported. */
+ # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
+ _GL_WARN_EXTERN_C int _gl_warn_on_use
+ # endif
+ #endif
+
+ /* _GL_WARN_EXTERN_C declaration;
+ performs the declaration with C linkage. */
+ #ifndef _GL_WARN_EXTERN_C
+ # if defined __cplusplus
+ # define _GL_WARN_EXTERN_C extern "C"
+ # else
+ # define _GL_WARN_EXTERN_C extern
+ # endif
+ #endif
diff -cNr octave-3.4.2/build-aux/texinfo.tex octave-3.4.3/build-aux/texinfo.tex
*** octave-3.4.2/build-aux/texinfo.tex 2011-06-10 13:59:38.000000000 -0400
--- octave-3.4.3/build-aux/texinfo.tex 2011-09-29 13:22:08.000000000 -0400
***************
*** 3,9 ****
% Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
%
! \def\texinfoversion{2011-05-23.16}
%
% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
--- 3,9 ----
% Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
%
! \def\texinfoversion{2011-09-23.09}
%
% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
***************
*** 3955,3967 ****
% If so, set to same dimension as multitablelinespace.
\ifdim\multitableparskip>\multitablelinespace
\global\multitableparskip=\multitablelinespace
! \global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller
! %% than skip between lines in the table.
\fi%
\ifdim\multitableparskip=0pt
\global\multitableparskip=\multitablelinespace
! \global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller
! %% than skip between lines in the table.
\fi}
--- 3955,3967 ----
% If so, set to same dimension as multitablelinespace.
\ifdim\multitableparskip>\multitablelinespace
\global\multitableparskip=\multitablelinespace
! \global\advance\multitableparskip-7pt % to keep parskip somewhat smaller
! % than skip between lines in the table.
\fi%
\ifdim\multitableparskip=0pt
\global\multitableparskip=\multitablelinespace
! \global\advance\multitableparskip-7pt % to keep parskip somewhat smaller
! % than skip between lines in the table.
\fi}
***************
*** 5855,5861 ****
% This is purely so the last item on the list is a known \penalty >
% 10000. This is so \startdefun can avoid allowing breakpoints after
% section headings. Otherwise, it would insert a valid breakpoint between:
- %
% @section sec-whatever
% @deffn def-whatever
\penalty 10001
--- 5855,5860 ----
***************
*** 6273,6278 ****
--- 6272,6283 ----
\normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip
% Flag to tell @lisp, etc., not to narrow margin.
\let\nonarrowing = t%
+ %
+ % If this cartouche directly follows a sectioning command, we need the
+ % \parskip glue (backspaced over by default) or the cartouche can
+ % collide with the section heading.
+ \ifnum\lastpenalty>10000 \vskip\parskip \fi
+ %
\vbox\bgroup
\baselineskip=0pt\parskip=0pt\lineskip=0pt
\carttop
***************
*** 6286,6292 ****
\lineskip=\normlskip
\parskip=\normpskip
\vskip -\parskip
! \comment % For explanation, see the end of \def\group.
}
\def\Ecartouche{%
\ifhmode\par\fi
--- 6291,6297 ----
\lineskip=\normlskip
\parskip=\normpskip
\vskip -\parskip
! \comment % For explanation, see the end of def\group.
}
\def\Ecartouche{%
\ifhmode\par\fi
***************
*** 7242,7250 ****
\def\macroxxx#1{%
\getargs{#1}% now \macname is the macname and \argl the arglist
\ifx\argl\empty % no arguments
! \paramno=0
\else
\expandafter\parsemargdef \argl;%
\fi
\if1\csname ismacro.\the\macname\endcsname
\message{Warning: redefining \the\macname}%
--- 7247,7261 ----
\def\macroxxx#1{%
\getargs{#1}% now \macname is the macname and \argl the arglist
\ifx\argl\empty % no arguments
! \paramno=0\relax
\else
\expandafter\parsemargdef \argl;%
+ \if\paramno>256\relax
+ \ifx\eTeXversion\thisisundefined
+ \errhelp = \EMsimple
+ \errmessage{You need eTeX to compile a file with macros with more than 256 arguments}
+ \fi
+ \fi
\fi
\if1\csname ismacro.\the\macname\endcsname
\message{Warning: redefining \the\macname}%
***************
*** 7294,7302 ****
\def\getmacname#1 #2\relax{\macname={#1}}
\def\getmacargs#1{\def\argl{#1}}
% Parse the optional {params} list. Set up \paramno and \paramlist
! % so \defmacro knows what to do. Define \macarg.blah for each blah
! % in the params list to be ##N where N is the position in that list.
% That gets used by \mbodybackslash (above).
%
% We need to get `macro parameter char #' into several definitions.
--- 7305,7321 ----
\def\getmacname#1 #2\relax{\macname={#1}}
\def\getmacargs#1{\def\argl{#1}}
+ % For macro processing make @ a letter so that we can make Texinfo private macro names.
+ \edef\texiatcatcode{\the\catcode`\@}
+ \catcode `@=11\relax
+
% Parse the optional {params} list. Set up \paramno and \paramlist
! % so \defmacro knows what to do. Define \macarg.BLAH for each BLAH
! % in the params list to some hook where the argument si to be expanded. If
! % there are less than 10 arguments that hook is to be replaced by ##N where N
! % is the position in that list, that is to say the macro arguments are to be
! % defined `a la TeX in the macro body.
! %
% That gets used by \mbodybackslash (above).
%
% We need to get `macro parameter char #' into several definitions.
***************
*** 7306,7317 ****
%
% The same technique is used to protect \eatspaces till just before
% the macro is used.
!
\def\parsemargdef#1;{%
\paramno=0\def\paramlist{}%
\let\hash\relax
\let\xeatspaces\relax
\parsemargdefxxx#1,;,%
}
\def\parsemargdefxxx#1,{%
\if#1;\let\next=\relax
--- 7325,7357 ----
%
% The same technique is used to protect \eatspaces till just before
% the macro is used.
! %
! % If there are 10 or more arguments, a different technique is used, where the
! % hook remains in the body, and when macro is to be expanded the body is
! % processed again to replace the arguments.
! %
! % In that case, the hook is \the\toks N-1, and we simply set \toks N-1 to the
! % argument N value and then \edef the body (nothing else will expand because of
! % the catcode regime underwhich the body was input).
! %
! % If you compile with TeX (not eTeX), and you have macros with 10 or more
! % arguments, you need that no macro has more than 256 arguments, otherwise an
! % error is produced.
\def\parsemargdef#1;{%
\paramno=0\def\paramlist{}%
\let\hash\relax
\let\xeatspaces\relax
\parsemargdefxxx#1,;,%
+ % In case that there are 10 or more arguments we parse again the arguments
+ % list to set new definitions for the \macarg.BLAH macros corresponding to
+ % each BLAH argument. It was anyhow needed to parse already once this list
+ % in order to count the arguments, and as macros with at most 9 arguments
+ % are by far more frequent than macro with 10 or more arguments, defining
+ % twice the \macarg.BLAH macros does not cost too much processing power.
+ \ifnum\paramno<10\relax\else
+ \paramno0\relax
+ \parsemmanyargdef@@#1,;,% 10 or more arguments
+ \fi
}
\def\parsemargdefxxx#1,{%
\if#1;\let\next=\relax
***************
*** 7322,7337 ****
\edef\paramlist{\paramlist\hash\the\paramno,}%
\fi\next}
% These two commands read recursive and nonrecursive macro bodies.
% (They're different since rec and nonrec macros end differently.)
%
\long\def\parsemacbody#1@end macro%
{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}%
\long\def\parsermacbody#1@end rmacro%
{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}%
! % This defines the macro itself. There are six cases: recursive and
! % nonrecursive macros of zero, one, and many arguments.
% Much magic with \expandafter here.
% \xdef is used so that macro definitions will survive the file
% they're defined in; @include reads the file inside a group.
--- 7362,7566 ----
\edef\paramlist{\paramlist\hash\the\paramno,}%
\fi\next}
+ \def\parsemmanyargdef@@#1,{%
+ \if#1;\let\next=\relax
+ \else
+ \let\next=\parsemmanyargdef@@
+ \edef\tempb{\eatspaces{#1}}%
+ \expandafter\def\expandafter\tempa
+ \expandafter{\csname macarg.\tempb\endcsname}%
+ % Note that we need some extra \noexpand\noexpand, this is because we
+ % don't want \the to be expanded in the \parsermacbody as it uses an
+ % \xdef .
+ \expandafter\edef\tempa
+ {\noexpand\noexpand\noexpand\the\toks\the\paramno}%
+ \advance\paramno by 1\relax
+ \fi\next}
+
% These two commands read recursive and nonrecursive macro bodies.
% (They're different since rec and nonrec macros end differently.)
%
+
+ \catcode `\@\texiatcatcode
\long\def\parsemacbody#1@end macro%
{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}%
\long\def\parsermacbody#1@end rmacro%
{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}%
+ \catcode `\@=11\relax
+
+ \let\endargs@\relax
+ \let\nil@\relax
+ \def\nilm@{\nil@}%
+ \long\def\nillm@{\nil@}%
+
+ % This macro is expanded during the Texinfo macro expansion, not during its
+ % definition. It gets all the arguments values and assigns them to macros
+ % macarg.ARGNAME
+ %
+ % #1 is the macro name
+ % #2 is the list of argument names
+ % #3 is the list of argument values
+ \def\getargvals@#1#2#3{%
+ \def\macargdeflist@{}%
+ \def\saveparamlist@{#2}% Need to keep a copy for parameter expansion.
+ \def\paramlist{#2,\nil@}%
+ \def\macroname{#1}%
+ \begingroup
+ \macroargctxt
+ \def\argvaluelist{#3,\nil@}%
+ \def\@tempa{#3}%
+ \ifx\@tempa\empty
+ \setemptyargvalues@
+ \else
+ \getargvals@@
+ \fi
+ }
+
+ %
+ \def\getargvals@@{%
+ \ifx\paramlist\nilm@
+ % Some sanity check needed here that \argvaluelist is also empty.
+ \ifx\argvaluelist\nillm@
+ \else
+ \errhelp = \EMsimple
+ \errmessage{Too many arguments in macro `\macroname'!}%
+ \fi
+ \let\next\macargexpandinbody@
+ \else
+ \ifx\argvaluelist\nillm@
+ % No more arguments values passed to macro. Set remaining named-arg
+ % macros to empty.
+ \let\next\setemptyargvalues@
+ \else
+ % pop current arg name into \@tempb
+ \def\@tempa##1{\pop@{\@tempb}{\paramlist}##1\endargs@}%
+ \expandafter\@tempa\expandafter{\paramlist}%
+ % pop current argument value into \@tempc
+ \def\@tempa##1{\longpop@{\@tempc}{\argvaluelist}##1\endargs@}%
+ \expandafter\@tempa\expandafter{\argvaluelist}%
+ % Here \@tempb is the current arg name and \@tempc is the current arg value.
+ % First place the new argument macro definition into \@tempd
+ \expandafter\macname\expandafter{\@tempc}%
+ \expandafter\let\csname macarg.\@tempb\endcsname\relax
+ \expandafter\def\expandafter\@tempe\expandafter{%
+ \csname macarg.\@tempb\endcsname}%
+ \edef\@tempd{\long\def\@tempe{\the\macname}}%
+ \push@\@tempd\macargdeflist@
+ \let\next\getargvals@@
+ \fi
+ \fi
+ \next
+ }
+
+ \def\push@#1#2{%
+ \expandafter\expandafter\expandafter\def
+ \expandafter\expandafter\expandafter#2%
+ \expandafter\expandafter\expandafter{%
+ \expandafter#1#2}%
+ }
+
+ % Replace arguments by their values in the macro body, and place the result
+ % in macro \@tempa
+ \def\macvalstoargs@{%
+ % To do this we use the property that token registers that are \the'ed
+ % within an \edef expand only once. So we are going to place all argument
+ % values into respective token registers.
+ %
+ % First we save the token context, and initialize argument numbering.
+ \begingroup
+ \paramno0\relax
+ % Then, for each argument number #N, we place the corresponding argument
+ % value into a new token list register \toks#N
+ \expandafter\putargsintokens@\saveparamlist@,;,%
+ % Then, we expand the body so that argument are replaced by their
+ % values. The trick for values not to be expanded themselves is that they
+ % are within tokens and that tokens expand only once in an \edef .
+ \edef\@tempc{\csname mac.\macroname .body\endcsname}%
+ % Now we restore the token stack pointer to free the token list registers
+ % which we have used, but we make sure that expanded body is saved after
+ % group.
+ \expandafter
+ \endgroup
+ \expandafter\def\expandafter\@tempa\expandafter{\@tempc}%
+ }
+
+ \def\macargexpandinbody@{%
+ %% Define the named-macro outside of this group and then close this group.
+ \expandafter
+ \endgroup
+ \macargdeflist@
+ % First the replace in body the macro arguments by their values, the result
+ % is in \@tempa .
+ \macvalstoargs@
+ % Then we point at the \norecurse or \gobble (for recursive) macro value
+ % with \@tempb .
+ \expandafter\let\expandafter\@tempb\csname mac.\macroname .recurse\endcsname
+ % Depending on whether it is recursive or not, we need some tailing
+ % \egroup .
+ \ifx\@tempb\gobble
+ \let\@tempc\relax
+ \else
+ \let\@tempc\egroup
+ \fi
+ % And now we do the real job:
+ \edef\@tempd{\noexpand\@tempb{\macroname}\noexpand\scanmacro{\@tempa}\@tempc}%
+ \@tempd
+ }
+
+ \def\putargsintokens@#1,{%
+ \if#1;\let\next\relax
+ \else
+ \let\next\putargsintokens@
+ % First we allocate the new token list register, and give it a temporary
+ % alias \@tempb .
+ \toksdef\@tempb\the\paramno
+ % Then we place the argument value into that token list register.
+ \expandafter\let\expandafter\@tempa\csname macarg.#1\endcsname
+ \expandafter\@tempb\expandafter{\@tempa}%
+ \advance\paramno by 1\relax
+ \fi
+ \next
+ }
+
+ % Save the token stack pointer into macro #1
+ \def\texisavetoksstackpoint#1{\edef#1{\the\@cclvi}}
+ % Restore the token stack pointer from number in macro #1
+ \def\texirestoretoksstackpoint#1{\expandafter\mathchardef\expandafter\@cclvi#1\relax}
+ % newtoks that can be used non \outer .
+ \def\texinonouternewtoks{\alloc@ 5\toks \toksdef \@cclvi}
+
+ % Tailing missing arguments are set to empty
+ \def\setemptyargvalues@{%
+ \ifx\paramlist\nilm@
+ \let\next\macargexpandinbody@
+ \else
+ \expandafter\setemptyargvaluesparser@\paramlist\endargs@
+ \let\next\setemptyargvalues@
+ \fi
+ \next
+ }
+
+ \def\setemptyargvaluesparser@#1,#2\endargs@{%
+ \expandafter\def\expandafter\@tempa\expandafter{%
+ \expandafter\def\csname macarg.#1\endcsname{}}%
+ \push@\@tempa\macargdeflist@
+ \def\paramlist{#2}%
+ }
+
+ % #1 is the element target macro
+ % #2 is the list macro
+ % #3,#4\endargs@ is the list value
+ \def\pop@#1#2#3,#4\endargs@{%
+ \def#1{#3}%
+ \def#2{#4}%
+ }
+ \long\def\longpop@#1#2#3,#4\endargs@{%
+ \long\def#1{#3}%
+ \long\def#2{#4}%
+ }
! % This defines a Texinfo @macro. There are eight cases: recursive and
! % nonrecursive macros of zero, one, up to nine, and many arguments.
% Much magic with \expandafter here.
% \xdef is used so that macro definitions will survive the file
% they're defined in; @include reads the file inside a group.
***************
*** 7350,7366 ****
\expandafter\noexpand\csname\the\macname xxx\endcsname}%
\expandafter\xdef\csname\the\macname xxx\endcsname##1{%
\egroup\noexpand\scanmacro{\temp}}%
! \else % many
! \expandafter\xdef\csname\the\macname\endcsname{%
! \bgroup\noexpand\macroargctxt
! \noexpand\csname\the\macname xx\endcsname}%
! \expandafter\xdef\csname\the\macname xx\endcsname##1{%
! \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}%
! \expandafter\expandafter
! \expandafter\xdef
! \expandafter\expandafter
! \csname\the\macname xxx\endcsname
! \paramlist{\egroup\noexpand\scanmacro{\temp}}%
\fi
\else
\ifcase\paramno
--- 7579,7603 ----
\expandafter\noexpand\csname\the\macname xxx\endcsname}%
\expandafter\xdef\csname\the\macname xxx\endcsname##1{%
\egroup\noexpand\scanmacro{\temp}}%
! \else
! \ifnum\paramno<10\relax % at most 9
! \expandafter\xdef\csname\the\macname\endcsname{%
! \bgroup\noexpand\macroargctxt
! \noexpand\csname\the\macname xx\endcsname}%
! \expandafter\xdef\csname\the\macname xx\endcsname##1{%
! \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}%
! \expandafter\expandafter
! \expandafter\xdef
! \expandafter\expandafter
! \csname\the\macname xxx\endcsname
! \paramlist{\egroup\noexpand\scanmacro{\temp}}%
! \else % 10 or more
! \expandafter\xdef\csname\the\macname\endcsname{%
! \noexpand\getargvals@{\the\macname}{\argl}%
! }%
! \global\expandafter\let\csname mac.\the\macname .body\endcsname\temp
! \global\expandafter\let\csname mac.\the\macname .recurse\endcsname\gobble
! \fi
\fi
\else
\ifcase\paramno
***************
*** 7377,7399 ****
\egroup
\noexpand\norecurse{\the\macname}%
\noexpand\scanmacro{\temp}\egroup}%
! \else % many
! \expandafter\xdef\csname\the\macname\endcsname{%
! \bgroup\noexpand\macroargctxt
! \expandafter\noexpand\csname\the\macname xx\endcsname}%
! \expandafter\xdef\csname\the\macname xx\endcsname##1{%
! \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}%
! \expandafter\expandafter
! \expandafter\xdef
! \expandafter\expandafter
! \csname\the\macname xxx\endcsname
! \paramlist{%
! \egroup
! \noexpand\norecurse{\the\macname}%
! \noexpand\scanmacro{\temp}\egroup}%
\fi
\fi}
\def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}}
% \braceorline decides whether the next nonwhitespace character is a
--- 7614,7646 ----
\egroup
\noexpand\norecurse{\the\macname}%
\noexpand\scanmacro{\temp}\egroup}%
! \else % at most 9
! \ifnum\paramno<10\relax
! \expandafter\xdef\csname\the\macname\endcsname{%
! \bgroup\noexpand\macroargctxt
! \expandafter\noexpand\csname\the\macname xx\endcsname}%
! \expandafter\xdef\csname\the\macname xx\endcsname##1{%
! \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}%
! \expandafter\expandafter
! \expandafter\xdef
! \expandafter\expandafter
! \csname\the\macname xxx\endcsname
! \paramlist{%
! \egroup
! \noexpand\norecurse{\the\macname}%
! \noexpand\scanmacro{\temp}\egroup}%
! \else % 10 or more:
! \expandafter\xdef\csname\the\macname\endcsname{%
! \noexpand\getargvals@{\the\macname}{\argl}%
! }%
! \global\expandafter\let\csname mac.\the\macname .body\endcsname\temp
! \global\expandafter\let\csname mac.\the\macname .recurse\endcsname\norecurse
! \fi
\fi
\fi}
+ \catcode `\@\texiatcatcode\relax
+
\def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}}
% \braceorline decides whether the next nonwhitespace character is a
diff -cNr octave-3.4.2/build-aux/warn-on-use.h octave-3.4.3/build-aux/warn-on-use.h
*** octave-3.4.2/build-aux/warn-on-use.h 2011-04-19 21:36:56.000000000 -0400
--- octave-3.4.3/build-aux/warn-on-use.h 1969-12-31 19:00:00.000000000 -0500
***************
*** 1,111 ****
- /* -*- buffer-read-only: t -*- vi: set ro: */
- /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
- /* A C macro for emitting warnings if a function is used.
- Copyright (C) 2010-2011 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 . */
-
- /* _GL_WARN_ON_USE (function, "literal string") issues a declaration
- for FUNCTION which will then trigger a compiler warning containing
- the text of "literal string" anywhere that function is called, if
- supported by the compiler. If the compiler does not support this
- feature, the macro expands to an unused extern declaration.
-
- This macro is useful for marking a function as a potential
- portability trap, with the intent that "literal string" include
- instructions on the replacement function that should be used
- instead. However, one of the reasons that a function is a
- portability trap is if it has the wrong signature. Declaring
- FUNCTION with a different signature in C is a compilation error, so
- this macro must use the same type as any existing declaration so
- that programs that avoid the problematic FUNCTION do not fail to
- compile merely because they included a header that poisoned the
- function. But this implies that _GL_WARN_ON_USE is only safe to
- use if FUNCTION is known to already have a declaration. Use of
- this macro implies that there must not be any other macro hiding
- the declaration of FUNCTION; but undefining FUNCTION first is part
- of the poisoning process anyway (although for symbols that are
- provided only via a macro, the result is a compilation error rather
- than a warning containing "literal string"). Also note that in
- C++, it is only safe to use if FUNCTION has no overloads.
-
- For an example, it is possible to poison 'getline' by:
- - adding a call to gl_WARN_ON_USE_PREPARE([[#include ]],
- [getline]) in configure.ac, which potentially defines
- HAVE_RAW_DECL_GETLINE
- - adding this code to a header that wraps the system :
- #undef getline
- #if HAVE_RAW_DECL_GETLINE
- _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but"
- "not universally present; use the gnulib module getline");
- #endif
-
- It is not possible to directly poison global variables. But it is
- possible to write a wrapper accessor function, and poison that
- (less common usage, like &environ, will cause a compilation error
- rather than issue the nice warning, but the end result of informing
- the developer about their portability problem is still achieved):
- #if HAVE_RAW_DECL_ENVIRON
- static inline char ***rpl_environ (void) { return &environ; }
- _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared");
- # undef environ
- # define environ (*rpl_environ ())
- #endif
- */
- #ifndef _GL_WARN_ON_USE
-
- # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
- /* A compiler attribute is available in gcc versions 4.3.0 and later. */
- # define _GL_WARN_ON_USE(function, message) \
- extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
- # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
- /* Verify the existence of the function. */
- # define _GL_WARN_ON_USE(function, message) \
- extern __typeof__ (function) function
- # else /* Unsupported. */
- # define _GL_WARN_ON_USE(function, message) \
- _GL_WARN_EXTERN_C int _gl_warn_on_use
- # endif
- #endif
-
- /* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string")
- is like _GL_WARN_ON_USE (function, "string"), except that the function is
- declared with the given prototype, consisting of return type, parameters,
- and attributes.
- This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does
- not work in this case. */
- #ifndef _GL_WARN_ON_USE_CXX
- # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
- # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
- extern rettype function parameters_and_attributes \
- __attribute__ ((__warning__ (msg)))
- # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
- /* Verify the existence of the function. */
- # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
- extern rettype function parameters_and_attributes
- # else /* Unsupported. */
- # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
- _GL_WARN_EXTERN_C int _gl_warn_on_use
- # endif
- #endif
-
- /* _GL_WARN_EXTERN_C declaration;
- performs the declaration with C linkage. */
- #ifndef _GL_WARN_EXTERN_C
- # if defined __cplusplus
- # define _GL_WARN_EXTERN_C extern "C"
- # else
- # define _GL_WARN_EXTERN_C extern
- # endif
- #endif
--- 0 ----
diff -cNr octave-3.4.2/ChangeLog octave-3.4.3/ChangeLog
*** octave-3.4.2/ChangeLog 2011-06-24 10:50:20.000000000 -0400
--- octave-3.4.3/ChangeLog 2011-10-10 10:59:48.000000000 -0400
***************
*** 1,5 ****
--- 1,645 ----
+ 2011-10-10 John W. Eaton
+
+ Version 3.4.3 released.
+
+ * configure.ac (AC_INIT): Version number is now 3.4.3.
+ (OCTAVE_RELEASE_DATE): Update to 2011-10-10.
+
+ Files: configure.ac
+
+ 2011-09-29 Jordi Gutiérrez Hermoso
+
+ Fix version numbers in NEWS
+
+ Files: NEWS
+
+ 2011-09-29 John W. Eaton
+
+ 3.4.3 release candidate 0
+
+ * configure.ac (AC_INIT): Set version to 3.4.3-rc0.
+ (OCTAVE_RELEASE_DATE): Update.
+ * NEWS: Update for release.
+
+ Files: NEWS configure.ac
+
+ 2011-09-29 Rik
+
+ Validate inputs to line() to prevent corrupting graphic toolkit (Bug #32345)
+
+ * __line__.m: Validate number of X, Y, and Z points are equal before passing
+ to plotting toolkit.
+
+ Files: scripts/plot/private/__line__.m
+
+ 2011-09-28 Jordi Gutiérrez Hermoso
+
+ Explain a bit more the src/ directory in HACKING file
+
+ Files: etc/HACKING
+
+ 2011-09-26 Rik
+
+ fftshift.m: Better explain operation in docstring (Bug #33581).
+
+ * fftshift.m: Improve docstring. Validate dimension input is truly a positive integer.
+
+ Files: scripts/signal/fftshift.m
+
+ __getlegenddata__.m: Fix bad subscript index error (Bug #33774).
+
+ * __getlegenddata__.m: Switch to for loop to avoid difficult indexing scheme
+ which occasionally underindexes to 0.
+
+ Files: scripts/plot/private/__getlegenddata__.m
+
+ 2011-09-25 Rik
+
+ Add support for additional argument "real" to schur() (Bug #34012).
+
+ * schur.cc: Adjust input validation to accept "real" argument.
+ Improve docstring.
+
+ Files: src/DLD-FUNCTIONS/schur.cc
+
+ errorbar plots can now accept a legend key (Bug #33580).
+
+ __errplot__.m: Borrow code from __plt__ for putting legend on plot
+ when it is included in linespec.
+
+ Files: scripts/plot/private/__errplot__.m
+
+ 2011-09-24 Jordi Gutiérrez Hermoso
+
+ Reword sqp's docstring
+
+ Files: scripts/optimization/sqp.m
+
+ 2011-09-20 John W. Eaton
+
+ maint: use specific endif, endfor tokens instead of simple end
+
+ * gmres.m, getappdata.m, setappdata.m, axis.m:
+ Use specific endif, endfor tokens instead of simple end.
+
+ Files: scripts/linear-algebra/gmres.m scripts/miscellaneous/getappdata.m
+ scripts/miscellaneous/setappdata.m scripts/plot/axis.m
+
+ 2011-09-20 Rik
+
+ doc: Quiet Texinfo warning in accumarray.m
+
+ * accumarray.m: Use @pxref for cross-reference inside parentheses
+
+ Files: scripts/general/accumarray.m
+
+ 2011-09-20 Jordi Gutiérrez Hermoso
+
+ Fix incorrect newline in weekday.m (bug #34347)
+
+ Files: scripts/time/weekday.m
+
+ 2011-09-20 John W. Eaton
+
+ doc: tweak log guidelines in contrib.txi
+
+ Files: doc/interpreter/contrib.txi
+
+ 2011-09-19 Jordi Gutiérrez Hermoso
+
+ Update guidelines on how to write commit messages and changelogs
+
+ Files: doc/interpreter/contrib.txi
+
+ 2011-09-19 Ben Abbott
+
+ Fix bug #34015. Allow for sequential images.
+
+ * scripts/plot/__go_draw_axes__.m: Fix for sequential images.
+ * scripts/plot/image.m: Add demos.
+
+ Files: scripts/image/image.m scripts/plot/__go_draw_axes__.m
+
+ scripts/general/interpn.m: fix(m)==m is faster than round(m)==m
+
+ Files: scripts/general/interpn.m
+
+ 2011-09-19 Jordi Gutiérrez Hermoso
+
+ Define missing real double -> float complex assignment operators
+
+ * op-fcm-fcm.cc: Define new dbl_assign matrix operator, rename old to
+ dbl_clx_assign. (install_fcm_fcm_ops): Install it.
+ * op-m-s.cc: Define new clx_sgl_assign scalar operator.
+ (install_m_s_ops): Install it.
+
+ Files: src/OPERATORS/op-fcm-fcm.cc src/OPERATORS/op-m-s.cc
+
+ 2011-09-18 Ben Abbott
+
+ Fix bug #34282. Fill holes in contours with the background colour
+
+ * scripts/plot/private/__contour__.m: Properly fill holes in contours.
+ * scripts/plot/contour.m: Add demo.
+
+ Files: scripts/plot/contour.m scripts/plot/private/__contour__.m
+
+ Fix bug #33204. Use latex markeup for log tick labels.
+
+ * scripts/plot/__go_draw_axes__.m: Modify do_tics & do_tics_1 to use latex
+ markup for log-scale tick labels for gnuplot terminals supporting latex.
+
+ Files: scripts/plot/__go_draw_axes__.m
+
+ 2011-09-18 Marco Caliari
+
+ Fix bug #33606.
+
+ * scripts/plot/axis.m: tight axis limits for log plots.
+ Start all demos with clf() for repeatable results.
+
+ Files: scripts/plot/axis.m
+
+ 2011-09-17 Jordi Gutiérrez Hermoso
+
+ Improve accumarray's docstring: one more example, mention vals can be scalar
+
+ Files: scripts/general/accumarray.m
+
+ 2011-09-17 Ben Abbott
+
+ Fix bug #30295.
+
+ * scripts/general/interp3.m: Improve input checks, and add tests.
+ * scripts/general/interpn.m: Ditto. Grid the implicit inputs.
+
+ Files: scripts/general/interp3.m scripts/general/interpn.m
+
+ scripts/general/interp3.m: Fix bug #30295.
+ Trivial fix to properly pass input args to interpn().
+
+ Files: scripts/general/interp3.m
+
+ scripts/general/interp2.m: Fix bug #30295.
+ Add default for interleaved interpolation.
+ Apply meshgrid to inputs when it is implied to do so.
+ Use bicubic and remove FIXME. Add tests.
+
+ Files: scripts/general/interp2.m
+
+ 2011-09-14 Jordi Gutiérrez Hermoso
+
+ Mention roundb in round's docstring
+
+ Files: src/mappers.cc
+
+ 2011-09-11 Jordi Gutiérrez Hermoso
+
+ Add test f for bug #34266
+
+ Files: scripts/polynomial/residue.m
+
+ Update residue.m's docstring to more modern form, all calling forms on top
+
+ Files: scripts/polynomial/residue.m
+
+ 2011-09-06 Ben Abbott
+
+ src/graphics.cc: Fix mistake in changeset c7512d0d52e8.
+
+ Files: src/graphics.cc
+
+ src/graphics.cc: Ensure tick separation is in factors of 10 for log plots.
+ Bug #34207.
+
+ Files: src/graphics.cc
+
+ 2011-09-04 Rik
+
+ logm.m: Return real matrix when all eigenvalues are real (Bug #32121).
+
+ * logm.m: Remove complex numbers of order eps() which may have entered
+ return value through numeric roundoff.
+
+ Files: scripts/linear-algebra/logm.m
+
+ 2011-09-02 Michael Goffioul
+
+ Make more symbols for export.
+
+ * liboctave/randgamma.h: Add OCTAVE_API modifier to oct_randg and
+ oct_fill_randg
+ * liboctave/randmtzig.h: Add OCTAVE_API modifier to oct_init_by_int,
+ oct_init_by_array, oct_init_by_entropy, oct_get_state, oct_set_state,
+ oct_randu, oct_randn, oct_rande, oct_fill_randu, oct_fill_randn and
+ oct_fill_rande.
+ * liboctave/randpoisson.h: Add OCTAVE_API modifier to oct_randp and
+ oct_fill_randp.
+ * src/xpow.h: Add OCTINTERP_API modifier to xpow and elem_xpow (all variants).
+
+ Files: liboctave/randgamma.h liboctave/randmtzig.h liboctave/randpoisson.h
+ src/xpow.h
+
+ Add LAPACK_LIBS to link command.
+
+ * src/mkoctfile.cc.in: Add $LAPACK_LIBS to link command.
+
+ Files: src/mkoctfile.cc.in
+
+ 2011-09-02 Matthias Jüschke
+
+ plot/private/__axis_limits__.m: Check lower axis limit come first.
+ Bug #34158.
+
+ Files: scripts/plot/private/__axes_limits__.m
+
+ 2011-09-01 Rik
+
+ doc: Improve strnum() docstring
+
+ str2num.m: Correctly refer to output X, not N. More emphatically recommend
+ using str2double a replacement. Adjust example to use Octave coding standards
+ for spacing.
+
+ Files: scripts/strings/str2num.m
+
+ 2011-09-01 Ben Abbott
+
+ doc/interpreter/stmt.txi: Correct typo. Bug #34187.
+
+ Files: doc/interpreter/stmt.txi
+
+ plotyy.m: Always restore current axes when done.
+
+ Files: scripts/plot/plotyy.m
+
+ 2011-08-31 Ben Abbott
+
+ Fix for bug #34158.
+
+ * plot/axis.m: Check that lower axis limits are less han upper limits.
+
+ Files: scripts/plot/axis.m
+
+ 2011-08-30 John W. Eaton
+
+ doc: fix typo in ndims doc string
+
+ * data.cc (Fndims): Fix typo in doc string.
+
+ Files: src/data.cc
+
+ 2011-08-29 Carlo de Falco
+
+ Fix ambigous call to int pow (int, unsigned int&)
+
+ * __magick_read__.cc: Use bitshift rather than pow
+ to compute integer powers of two.
+
+ Files: src/DLD-FUNCTIONS/__magick_read__.cc
+
+ 2011-08-28 Rik
+
+ doc: Fix warnings and errors in Texinfo required for building docs on stable branch.
+
+ oct-parse.yy: Fix warning by shifting @xref to @pxref.
+
+ matrix.txi, numbers.txi: Correct capitalization of @ref so that it
+ refers to a known Texinfo node.
+
+ Files: doc/interpreter/matrix.txi doc/interpreter/numbers.txi src/oct-
+ parse.yy
+
+ 2011-08-28 Ben Abbott
+
+ __print_parse_opts__.m: Properly convert from cm to pts (bug #34152).
+
+ Files: scripts/plot/__print_parse_opts__.m
+
+ 2011-08-27 Jordi Gutiérrez Hermoso
+
+ doc: Add cross references to "status of variables" in sections for predicates
+
+ * matrix.txi: Cross reference to Status of Variables
+ * numbers.txi: Ditto.
+
+ Files: doc/interpreter/matrix.txi doc/interpreter/numbers.txi
+
+ 2011-08-25 Ben Abbott
+
+ dMatrix.cc: Increase tolerance for another test which fails on MinGW.
+ Tests were introduced by changeset f217edac2c71.
+
+ Files: liboctave/dMatrix.cc
+
+ 2011-08-24 Ben Abbott
+
+ dMatrix.cc: Increase tolerance for tests which fail on MinGW.
+ Tests were introduced by changeset f217edac2c71.
+
+ Files: liboctave/dMatrix.cc
+
+ 2011-08-23 Marco atzeri
+
+ dMatrix.cc: Fix tests introduced by changeset f217edac2c71. Declare variables
+ Mt and rvt as shared, and increase tolerance for tests which fail on cygwin.
+
+ Files: liboctave/dMatrix.cc
+
+ 2011-08-24 John W. Eaton
+
+ sscanf: correctly set output position when reading stops at end of string
+
+ * file-io.cc (Fsscanf): Set POS output to string length if reading
+ stops at end of string.
+
+ Files: src/file-io.cc
+
+ 2011-08-24 Pascal Dupuis
+
+ fix scanf problem with reading I (bug #33722)
+
+ * oct-stream.cc (octave_scan<> (std::istream&, const
+ scanf_format_elt&, double*)): Put characters back on input stream when
+ Inf is not found.
+
+ Files: src/oct-stream.cc
+
+ 2011-08-24 John W. Eaton
+
+ doc: update sscanf doc string to match current behavior
+
+ * file-io.cc (Fsscanf): Document POS output.
+
+ Files: src/file-io.cc
+
+ 2011-08-22 John W. Eaton
+
+ fix dimension check for A'\B (bug #33997)
+
+ * xdiv.cc (mx_leftdiv_conform): New arg, blas_trans.
+ Change all callers.
+ * dMatrix.cc: New tests.
+
+ Files: liboctave/dMatrix.cc src/xdiv.cc
+
+ correctly resize scanf output for %c formats (bug #34037)
+
+ * oct-stream.cc (BEGIN_C_CONVERSION): Resize tmp buffer to number of
+ characters read.
+
+ Files: src/oct-stream.cc test/test_io.m
+
+ 2011-07-13 Rik
+
+ urlwrite.cc: Remove obsolete #include curl/types.h (Bug #33697).
+
+ * urlwrite.cc: Remove obsolete #include curl/types.h statement.
+
+ Files: src/DLD-FUNCTIONS/urlwrite.cc
+
+ 2011-08-15 John W. Eaton
+
+ undo previous unintended change to oct-stream.cc
+
+ Files: src/oct-stream.cc
+
+ 2011-08-12 John W. Eaton
+
+ maint: fix missing line continuation in src/Makefile.am
+
+ * src/Makefile.am (OCTAVE_LIBS): Fix missing line continuation
+ for !AMCOND_ENABLE_DYNAMIC_LINKING case.
+
+ Files: src/Makefile.am src/oct-stream.cc
+
+ 2011-08-11 Orion Poplawski
+
+ __xzip__: Fix regression about moving compressed files (bug #33993)
+
+ Files: scripts/miscellaneous/private/__xzip__.m
+
+ 2011-08-11 Jordi Gutiérrez Hermoso
+
+ oop.txi: Fix incorrect names for power and mpower operators
+
+ Files: doc/interpreter/oop.txi
+
+ tar.m: Fix validation of inputs (bug #33988)
+
+ Files: scripts/miscellaneous/tar.m
+
+ octave-parse.yy (feval): Update docstring to refer to function handles.
+
+ Files: src/oct-parse.yy
+
+ 2011-08-10 Ben Abbott
+
+ str2num.m: Add second output indicating state of the conversion.
+
+ Files: scripts/strings/str2num.m
+
+ 2011-08-09 John W. Eaton
+
+ use gnulib::fseek and gnulib::fopen
+
+ * file-io.cc (do_stream_open): Use gnulib::fopen instead of fopen.
+ * input.cc (get_input_from_file): Likewise.
+ * c-file-ptr-stream.h (c_file_ptr_buf::seek):
+ Use gnulib::fseek instead of fseek.
+ * bootstrap.conf (gnulib_modules):
+ Include fopen, fflush, fseek, and ftell in the list.
+
+ Files: build-aux/bootstrap.conf src/c-file-ptr-stream.cc src/file-io.cc
+ src/input.cc
+
+ 2011-08-08 Rik
+
+ svds.m: Revert cset 12934:5d79384e3a1d. Use 42 for random number initialization.
+
+ * svds.m: Use 42 for rand and randn initialization for tests.
+
+ Files: scripts/sparse/svds.m
+
+ 2011-08-07 Rik
+
+ svds.m: Use initialization seed of 43 to have working tests on Cygwin platform.
+
+ * svds.m: Use initialization seed of 43 for tests.
+
+ Files: scripts/sparse/svds.m
+
+ 2011-08-05 John W. Eaton
+
+ maint: undo part of previous gnulib changes
+
+ * c-file-ptr-stream.cc (c_file_ptr_buf::seek):
+ Move here from c-file-ptr-stream.h. Don't call gnulib::fseek.
+ * c-file-ptr-stream.cc (c_file_ptr_buf::tell):
+ Move here from c-file-ptr-stream.h.
+
+ Files: src/c-file-ptr-stream.cc src/c-file-ptr-stream.h
+
+ 2011-08-05 Jordi Gutiérrez Hermoso
+
+ Clarify what indices can be for numel
+
+ Files: src/data.cc
+
+ Fix incorrect example output for concatenating cs-lists from cells
+
+ Files: doc/interpreter/container.txi
+
+ 2011-08-04 John W. Eaton
+
+ use gnulib:: qualifiers for more stdio functions
+
+ * oct-parse.yy (text_getc): Use gnulib::getc instead of getc.
+ (looking_at_classdef_keyword, looking_at_funciton_keyword):
+ Use gnulib::ftell, gnulib::fseek, and gnulib::fgets instead of
+ ftell, fseek, and fgets.
+ * file-io.cc (Fmkstemp): Use gnulib::mkstemp instead of mkstemp.
+ * lo-utils.cc (octave_fgets): Use gnulib::fgets instead of fgets.
+ * c-file-ptr-stream.h (c_file_ptr_buf::seek):
+ Use gnulib::fseek instead of fseek.
+ (c_file_ptr_buf::tell): Use gnulib::ftell instead of ftell.
+
+ Files: liboctave/lo-utils.cc src/c-file-ptr-stream.h src/file-io.cc src
+ /oct-parse.yy
+
+ 2011-08-03 John W. Eaton
+
+ use gnulib:: qualifiers for more stdio functions
+
+ * input.cc (gnu_readline): Use gnulib::fflush instead of fflush.
+ * sparse-util.cc (SparseCholPrint): Likewise.
+ * kpse.cc (DEBUGF_END, hash_lookup, kpse_element_dirs): Likewise.
+ * cmd-edit.cc (default_command_editor::do_readline): Likewise.
+ * c-file-ptr-stream.cc (c_file_ptr_buf::flush): Likewise.
+ (c_file_ptr_buf::xsgetn): Use gnulib::fread instead of fread.
+ (c_file_ptr_buf::underflow_common): Use gnulib::fgetc instead of
+ fgetc.
+
+ Files: liboctave/cmd-edit.cc liboctave/kpse.cc liboctave/sparse-util.cc
+ src/c-file-ptr-stream.cc src/input.cc
+
+ 2011-07-28 John W. Eaton
+
+ maint: include fclose and stdio in bootstrap.conf module list
+
+ * bootstrap.conf (gnulib_modules): Include fclose and stdio
+ in the list.
+
+ Files: build-aux/bootstrap.conf
+
+ 2011-07-27 Rik
+
+ Correctly allow single string input form of fopen() (Bug #33535).
+
+ * file-io.cc (fopen): Correct nargout check when distinguishing between
+ input filename and special input keyword "all".
+
+ Files: src/file-io.cc
+
+ maint: Rollback changeset 67bf9b30f3f9.
+ Do not error when numeric input given to toupper.
+
+ * mappers.cc (toupper, tolower, toascii): Do not emit an error when
+ given numeric input.
+
+ Files: src/mappers.cc
+
+ 2011-07-27 Marco Caliari
+
+ legendre.m: Allow ND-array inputs (Bug #33526).
+
+ * legendre.m: Allow ND-array inputs (Bug #33526).
+
+ Files: scripts/specfun/legendre.m
+
+ 2011-07-27 Rik
+
+ Error when given non-string input to tolower, toupper, toascii (Bug #33537).
+
+ * mappers.cc (tolower, toupper, toascii): Raise error when given
+ non-string input.
+
+ Files: src/mappers.cc
+
+ 2011-07-26 Jordi Gutiérrez Hermoso
+
+ Fix incorrect loop (bug #32683)
+
+ Files: liboctave/Array.cc
+
+ 2011-07-25 Rik
+
+ assert.m: Correctly compare empty structures.
+
+ * assert.m: Correctly compare empty structures. Add tests for behavior.
+
+ Files: scripts/testfun/assert.m
+
+ 2011-07-23 Rik
+
+ strtrim.m: Make behavior same for cell arrays as for char arrays.
+ Add new tests and clarify documentation about whitespace.
+
+ strtrim.m: Add vertical tab (\v) and nuls (\0) to regexprep
+ expression for cell arrays. Add more tests. Mention whitespace,
+ not just blanks, in documentation.
+
+ Files: scripts/strings/strtrim.m
+
+ 2011-07-22 Rik
+
+ strtrim.m: Replace cellfun with regexprep call for 15X speedup
+
+ * strtrim.m: Replace cellfun with regexprep call for 15X speedup.
+
+ Files: scripts/strings/strtrim.m
+
+ 2011-07-16 Kai Habel
+
+ codesprint: add demo for surf.m and surfc.m
+
+ Files: scripts/plot/surf.m scripts/plot/surfc.m
+
+ 2011-07-14 Rik
+
+ strfind.cc: Fix infinite loop when pattern contains 255 (Bug #33670).
+
+ strfind.cc: Increase match table size by 1 to account for possible
+ UCHAR_MAX of 255.
+
+ Files: src/DLD-FUNCTIONS/strfind.cc
+
+ 2011-06-29 Rik
+
+ doc: small documentation fixes for strftime, betainc
+
+ betainc.cc: Place variable x inside @var macro
+ strftime.cc: Place '%' escape character before '%','n','t' commands.
+
+ Files: src/DLD-FUNCTIONS/betainc.cc src/DLD-FUNCTIONS/time.cc
+
+ 2011-06-28 John W. Eaton
+
+ use gnulib tmpfile module
+
+ * bootstrap.conf (gnulib_modules): Include tmpfile in the list.
+ * file-io.cc (Ftmpfile): Call gnulib::tmpfile here.
+
+ Files: build-aux/bootstrap.conf src/file-io.cc
+
2011-06-24 John W. Eaton
+ maint: update etc/CHECKLIST file
+
+ * etc/CHECKLIST: Update for current release procedure.
+
+ Files: etc/CHECKLIST
+
Added tag release-3-4-2 for changeset 3666e8e6f96e
Files: .hgtags
***************
*** 698,704 ****
Files: scripts/io/textread.m scripts/io/textscan.m
! 2011-05-15 David
Fix integer overflow when using text() with large x,y values (bug #33059)
--- 1338,1344 ----
Files: scripts/io/textread.m scripts/io/textscan.m
! 2011-05-15 David Finkel david finkel
Fix integer overflow when using text() with large x,y values (bug #33059)
***************
*** 824,830 ****
Files: doc/interpreter/contributors.in
! 2011-05-04 Marco
Fix unfilled contourf when lvl = [0,0] (bug #33177).
--- 1464,1470 ----
Files: doc/interpreter/contributors.in
! 2011-05-04 Marco Caliari marco caliari
Fix unfilled contourf when lvl = [0,0] (bug #33177).
diff -cNr octave-3.4.2/config.h.in octave-3.4.3/config.h.in
*** octave-3.4.2/config.h.in 2011-06-24 10:38:36.000000000 -0400
--- octave-3.4.3/config.h.in 2011-10-10 10:25:59.000000000 -0400
***************
*** 104,109 ****
--- 104,115 ----
/* Define to volatile if you need truncating intermediate FP results */
#undef FLOAT_TRUNCATE
+ /* Define to 1 if fopen() fails to recognize a trailing slash. */
+ #undef FOPEN_TRAILING_SLASH_BUG
+
+ /* Define to 1 if fstatat (..., 0) does not work, as in AIX 7.1. */
+ #undef FSTATAT_ZERO_FLAG_BROKEN
+
/* Define to 1 if the system's ftello function has the Solaris bug. */
#undef FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE
***************
*** 139,144 ****
--- 145,154 ----
#undef GNULIB_GETCWD
/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
+ whether the gnulib module openat shall be considered present. */
+ #undef GNULIB_OPENAT
+
+ /* Define to a C preprocessor expression that evaluates to 1 or 0, depending
whether the gnulib module strerror shall be considered present. */
#undef GNULIB_STRERROR
***************
*** 146,151 ****
--- 156,164 ----
*/
#undef GNULIB_TEST_CANONICALIZE_FILE_NAME
+ /* Define to 1 when the gnulib module chdir should be tested. */
+ #undef GNULIB_TEST_CHDIR
+
/* Define to 1 when the gnulib module chown should be tested. */
#undef GNULIB_TEST_CHOWN
***************
*** 155,163 ****
--- 168,182 ----
/* Define to 1 when the gnulib module close should be tested. */
#undef GNULIB_TEST_CLOSE
+ /* Define to 1 when the gnulib module closedir should be tested. */
+ #undef GNULIB_TEST_CLOSEDIR
+
/* Define to 1 when the gnulib module dirfd should be tested. */
#undef GNULIB_TEST_DIRFD
+ /* Define to 1 when the gnulib module dup should be tested. */
+ #undef GNULIB_TEST_DUP
+
/* Define to 1 when the gnulib module dup2 should be tested. */
#undef GNULIB_TEST_DUP2
***************
*** 179,184 ****
--- 198,206 ----
/* Define to 1 when the gnulib module floor should be tested. */
#undef GNULIB_TEST_FLOOR
+ /* Define to 1 when the gnulib module fopen should be tested. */
+ #undef GNULIB_TEST_FOPEN
+
/* Define to 1 when the gnulib module fpurge should be tested. */
#undef GNULIB_TEST_FPURGE
***************
*** 188,193 ****
--- 210,218 ----
/* Define to 1 when the gnulib module fseeko should be tested. */
#undef GNULIB_TEST_FSEEKO
+ /* Define to 1 when the gnulib module fstat should be tested. */
+ #undef GNULIB_TEST_FSTAT
+
/* Define to 1 when the gnulib module ftell should be tested. */
#undef GNULIB_TEST_FTELL
***************
*** 260,265 ****
--- 285,299 ----
/* Define to 1 when the gnulib module open should be tested. */
#undef GNULIB_TEST_OPEN
+ /* Define to 1 when the gnulib module opendir should be tested. */
+ #undef GNULIB_TEST_OPENDIR
+
+ /* Define to 1 when the gnulib module raise should be tested. */
+ #undef GNULIB_TEST_RAISE
+
+ /* Define to 1 when the gnulib module readdir should be tested. */
+ #undef GNULIB_TEST_READDIR
+
/* Define to 1 when the gnulib module readlink should be tested. */
#undef GNULIB_TEST_READLINK
***************
*** 311,316 ****
--- 345,353 ----
/* Define to 1 when the gnulib module time_r should be tested. */
#undef GNULIB_TEST_TIME_R
+ /* Define to 1 when the gnulib module tmpfile should be tested. */
+ #undef GNULIB_TEST_TMPFILE
+
/* Define to 1 when the gnulib module trunc should be tested. */
#undef GNULIB_TEST_TRUNC
***************
*** 423,428 ****
--- 460,468 ----
/* Define to 1 if you have the `chown' function. */
#undef HAVE_CHOWN
+ /* Define to 1 if you have the `closedir' function. */
+ #undef HAVE_CLOSEDIR
+
/* Define if provides isfinite */
#undef HAVE_CMATH_ISFINITE
***************
*** 536,541 ****
--- 576,593 ----
don't. */
#undef HAVE_DECL_LOCALTIME_R
+ /* Define to 1 if you have the declaration of `mbrtowc', and to 0 if you
+ don't. */
+ #undef HAVE_DECL_MBRTOWC
+
+ /* Define to 1 if you have the declaration of `mbsinit', and to 0 if you
+ don't. */
+ #undef HAVE_DECL_MBSINIT
+
+ /* Define to 1 if you have the declaration of `mbsrtowcs', and to 0 if you
+ don't. */
+ #undef HAVE_DECL_MBSRTOWCS
+
/* Define to 1 if you have the declaration of `memrchr', and to 0 if you
don't. */
#undef HAVE_DECL_MEMRCHR
***************
*** 576,581 ****
--- 628,637 ----
don't. */
#undef HAVE_DECL_STRMODE
+ /* Define to 1 if you have the declaration of `strncasecmp', and to 0 if you
+ don't. */
+ #undef HAVE_DECL_STRNCASECMP
+
/* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you
don't. */
#undef HAVE_DECL_SYS_SIGLIST
***************
*** 584,589 ****
--- 640,649 ----
*/
#undef HAVE_DECL_TGAMMA
+ /* Define to 1 if you have the declaration of `towlower', and to 0 if you
+ don't. */
+ #undef HAVE_DECL_TOWLOWER
+
/* Define to 1 if you have the declaration of `trunc', and to 0 if you don't.
*/
#undef HAVE_DECL_TRUNC
***************
*** 992,997 ****
--- 1052,1061 ----
/* Define to 1 if you have the `mprotect' function. */
#undef HAVE_MPROTECT
+ /* Define to 1 on MSVC platforms that have the "invalid parameter handler"
+ concept. */
+ #undef HAVE_MSVC_INVALID_PARAMETER_HANDLER
+
/* Define to 1 if you have the header file. */
#undef HAVE_NCURSES_H
***************
*** 1004,1009 ****
--- 1068,1076 ----
/* Define to 1 if you have the `openat' function. */
#undef HAVE_OPENAT
+ /* Define to 1 if you have the `opendir' function. */
+ #undef HAVE_OPENDIR
+
/* Define if OpenGL is available */
#undef HAVE_OPENGL
***************
*** 1020,1028 ****
setting errno to ERANGE, ENAMETOOLONG, or ENOENT. */
#undef HAVE_PARTLY_WORKING_GETCWD
- /* Define to 1 if you have the `pathconf' function. */
- #undef HAVE_PATHCONF
-
/* Define to 1 if you have the `pcre_compile' function. */
#undef HAVE_PCRE_COMPILE
--- 1087,1092 ----
***************
*** 1062,1067 ****
--- 1126,1134 ----
/* Define if qrupdate supports LU updates */
#undef HAVE_QRUPDATE_LUU
+ /* Define to 1 if you have the `raise' function. */
+ #undef HAVE_RAISE
+
/* Define to 1 if accept is declared even after undefining macros. */
#undef HAVE_RAW_DECL_ACCEPT
***************
*** 1099,1107 ****
--- 1166,1180 ----
/* Define to 1 if ceill is declared even after undefining macros. */
#undef HAVE_RAW_DECL_CEILL
+ /* Define to 1 if chdir is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_CHDIR
+
/* Define to 1 if chown is declared even after undefining macros. */
#undef HAVE_RAW_DECL_CHOWN
+ /* Define to 1 if closedir is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_CLOSEDIR
+
/* Define to 1 if connect is declared even after undefining macros. */
#undef HAVE_RAW_DECL_CONNECT
***************
*** 1114,1119 ****
--- 1187,1195 ----
/* Define to 1 if dprintf is declared even after undefining macros. */
#undef HAVE_RAW_DECL_DPRINTF
+ /* Define to 1 if dup is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_DUP
+
/* Define to 1 if dup2 is declared even after undefining macros. */
#undef HAVE_RAW_DECL_DUP2
***************
*** 1147,1155 ****
--- 1223,1243 ----
/* Define to 1 if fcntl is declared even after undefining macros. */
#undef HAVE_RAW_DECL_FCNTL
+ /* Define to 1 if fdatasync is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_FDATASYNC
+
/* Define to 1 if fdopendir is declared even after undefining macros. */
#undef HAVE_RAW_DECL_FDOPENDIR
+ /* Define to 1 if ffs is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_FFS
+
+ /* Define to 1 if ffsl is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_FFSL
+
+ /* Define to 1 if ffsll is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_FFSLL
+
/* Define to 1 if floorf is declared even after undefining macros. */
#undef HAVE_RAW_DECL_FLOORF
***************
*** 1165,1170 ****
--- 1253,1261 ----
/* Define to 1 if fseeko is declared even after undefining macros. */
#undef HAVE_RAW_DECL_FSEEKO
+ /* Define to 1 if fstat is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_FSTAT
+
/* Define to 1 if fstatat is declared even after undefining macros. */
#undef HAVE_RAW_DECL_FSTATAT
***************
*** 1330,1335 ****
--- 1421,1432 ----
/* Define to 1 if openat is declared even after undefining macros. */
#undef HAVE_RAW_DECL_OPENAT
+ /* Define to 1 if opendir is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_OPENDIR
+
+ /* Define to 1 if pclose is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_PCLOSE
+
/* Define to 1 if pipe is declared even after undefining macros. */
#undef HAVE_RAW_DECL_PIPE
***************
*** 1342,1347 ****
--- 1439,1450 ----
/* Define to 1 if pread is declared even after undefining macros. */
#undef HAVE_RAW_DECL_PREAD
+ /* Define to 1 if pselect is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_PSELECT
+
+ /* Define to 1 if pthread_sigmask is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_PTHREAD_SIGMASK
+
/* Define to 1 if ptsname is declared even after undefining macros. */
#undef HAVE_RAW_DECL_PTSNAME
***************
*** 1354,1359 ****
--- 1457,1465 ----
/* Define to 1 if rawmemchr is declared even after undefining macros. */
#undef HAVE_RAW_DECL_RAWMEMCHR
+ /* Define to 1 if readdir is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_READDIR
+
/* Define to 1 if readlink is declared even after undefining macros. */
#undef HAVE_RAW_DECL_READLINK
***************
*** 1372,1377 ****
--- 1478,1486 ----
/* Define to 1 if renameat is declared even after undefining macros. */
#undef HAVE_RAW_DECL_RENAMEAT
+ /* Define to 1 if rewinddir is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_REWINDDIR
+
/* Define to 1 if rmdir is declared even after undefining macros. */
#undef HAVE_RAW_DECL_RMDIR
***************
*** 1465,1470 ****
--- 1574,1582 ----
/* Define to 1 if stpncpy is declared even after undefining macros. */
#undef HAVE_RAW_DECL_STPNCPY
+ /* Define to 1 if strcasecmp is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_STRCASECMP
+
/* Define to 1 if strcasestr is declared even after undefining macros. */
#undef HAVE_RAW_DECL_STRCASESTR
***************
*** 1477,1482 ****
--- 1589,1597 ----
/* Define to 1 if strerror_r is declared even after undefining macros. */
#undef HAVE_RAW_DECL_STRERROR_R
+ /* Define to 1 if strncasecmp is declared even after undefining macros. */
+ #undef HAVE_RAW_DECL_STRNCASECMP
+
/* Define to 1 if strncat is declared even after undefining macros. */
#undef HAVE_RAW_DECL_STRNCAT
***************
*** 1672,1677 ****
--- 1787,1795 ----
/* Define to 1 if _Exit is declared even after undefining macros. */
#undef HAVE_RAW_DECL__EXIT
+ /* Define to 1 if you have the `readdir' function. */
+ #undef HAVE_READDIR
+
/* Define to 1 if you have the `readlink' function. */
#undef HAVE_READLINK
***************
*** 1783,1788 ****
--- 1901,1909 ----
/* Define to 1 if you have the header file. */
#undef HAVE_STDLIB_H
+ /* Define to 1 if you have the `strcasecmp' function. */
+ #undef HAVE_STRCASECMP
+
/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP
***************
*** 1795,1800 ****
--- 1916,1924 ----
/* Define to 1 if you have the header file. */
#undef HAVE_STRING_H
+ /* Define to 1 if you have the `strncasecmp' function. */
+ #undef HAVE_STRNCASECMP
+
/* Define to 1 if you have the `strnlen' function. */
#undef HAVE_STRNLEN
***************
*** 1970,1975 ****
--- 2094,2102 ----
`HAVE_STRUCT_TM_TM_ZONE' instead. */
#undef HAVE_TM_ZONE
+ /* Define to 1 if you have the `towlower' function. */
+ #undef HAVE_TOWLOWER
+
/* Define to 1 if you don't have `tm_zone' but do have the external array
`tzname'. */
#undef HAVE_TZNAME
***************
*** 2112,2117 ****
--- 2239,2247 ----
/* Define to 1 if you have the `_kbhit' function. */
#undef HAVE__KBHIT
+ /* Define to 1 if you have the `_set_invalid_parameter_handler' function. */
+ #undef HAVE__SET_INVALID_PARAMETER_HANDLER
+
/* Define to 1 if you have the `_utime32' function. */
#undef HAVE__UTIME32
***************
*** 2121,2126 ****
--- 2251,2259 ----
/* Define to 1 if you have the `__freading' function. */
#undef HAVE___FREADING
+ /* Define to 1 if you have the `__secure_getenv' function. */
+ #undef HAVE___SECURE_GETENV
+
/* Define HOST_NAME_MAX when does not define it. */
#undef HOST_NAME_MAX
***************
*** 2241,2246 ****
--- 2374,2382 ----
*/
#undef REPLACE_OPEN_DIRECTORY
+ /* Define to 1 if strerror(0) does not return a message implying success. */
+ #undef REPLACE_STRERROR_0
+
/* Define if vasnprintf exists but is overridden by gnulib. */
#undef REPLACE_VASNPRINTF
***************
*** 2292,2300 ****
/* 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 */
#undef STACK_DIRECTION
/* Define to 1 if the `S_IS*' macros in do not work properly. */
--- 2428,2436 ----
/* 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 */
#undef STACK_DIRECTION
/* Define to 1 if the `S_IS*' macros in do not work properly. */
***************
*** 2374,2379 ****
--- 2510,2520 ----
#endif
+ /* Enable large inode numbers on Mac OS X. */
+ #ifndef _DARWIN_USE_64_BIT_INODE
+ # define _DARWIN_USE_64_BIT_INODE 1
+ #endif
+
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
***************
*** 2389,2394 ****
--- 2530,2548 ----
/* Define to 1 if on MINIX. */
#undef _MINIX
+ /* The _Noreturn keyword of draft C1X. */
+ #ifndef _Noreturn
+ # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
+ || 0x5110 <= __SUNPRO_C)
+ # define _Noreturn __attribute__ ((__noreturn__))
+ # elif 1200 <= _MSC_VER
+ # define _Noreturn __declspec (noreturn)
+ # else
+ # define _Noreturn
+ # endif
+ #endif
+
+
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#undef _POSIX_1_SOURCE
***************
*** 2413,2418 ****
--- 2567,2576 ----
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
+ /* Enable general extensions on MacOS X. */
+ #ifndef _DARWIN_C_SOURCE
+ # undef _DARWIN_C_SOURCE
+ #endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
***************
*** 2512,2517 ****
--- 2670,2678 ----
/* type to use in place of socklen_t if not defined */
#undef socklen_t
+ /* Define as a signed type of the same size as size_t. */
+ #undef ssize_t
+
/* Define to `int' if doesn't define. */
#undef uid_t
diff -cNr octave-3.4.2/configure octave-3.4.3/configure
*** octave-3.4.2/configure 2011-06-24 10:38:35.000000000 -0400
--- octave-3.4.3/configure 2011-10-10 10:24:17.000000000 -0400
***************
*** 1,7 ****
#! /bin/sh
# From configure.ac Revision: 1.603 .
# Guess values for system-dependent variables and create Makefiles.
! # Generated by GNU Autoconf 2.68 for GNU Octave 3.4.2.
#
# Report bugs to .
#
--- 1,7 ----
#! /bin/sh
# From configure.ac Revision: 1.603 .
# Guess values for system-dependent variables and create Makefiles.
! # Generated by GNU Autoconf 2.68 for GNU Octave 3.4.3.
#
# Report bugs to .
#
***************
*** 571,578 ****
# Identity of this package.
PACKAGE_NAME='GNU Octave'
PACKAGE_TARNAME='octave'
! PACKAGE_VERSION='3.4.2'
! PACKAGE_STRING='GNU Octave 3.4.2'
PACKAGE_BUGREPORT='http://octave.org/bugs.html'
PACKAGE_URL='http://www.gnu.org/software/octave/'
--- 571,578 ----
# Identity of this package.
PACKAGE_NAME='GNU Octave'
PACKAGE_TARNAME='octave'
! PACKAGE_VERSION='3.4.3'
! PACKAGE_STRING='GNU Octave 3.4.3'
PACKAGE_BUGREPORT='http://octave.org/bugs.html'
PACKAGE_URL='http://www.gnu.org/software/octave/'
***************
*** 749,756 ****
OBJDUMP
DLLTOOL
AS
- ARFLAGS
- AR
GRAPHICS_LIBS
GRAPHICS_CFLAGS
FLTK_CONFIG
--- 749,754 ----
***************
*** 828,833 ****
--- 826,832 ----
INCLUDE_DEPS
CC_VERSION
gltests_WITNESS
+ REPLACE_TOWLOWER
REPLACE_ISWCNTRL
HAVE_WCTYPE_H
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
***************
*** 859,864 ****
--- 858,865 ----
HAVE_SYS_UIO_H
NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
NEXT_SYS_UIO_H
+ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
+ NEXT_SYS_TYPES_H
HAVE_SYS_TIMES_H
NEXT_AS_FIRST_DIRECTIVE_SYS_TIMES_H
NEXT_SYS_TIMES_H
***************
*** 867,874 ****
--- 868,905 ----
GNULIB_TIMES
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
NEXT_SYS_STAT_H
+ HAVE_WS2TCPIP_H
+ HAVE_SYS_SOCKET_H
+ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
+ NEXT_SYS_SOCKET_H
+ HAVE_ACCEPT4
+ HAVE_SA_FAMILY_T
+ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
+ HAVE_STRUCT_SOCKADDR_STORAGE
+ GNULIB_ACCEPT4
+ GNULIB_SHUTDOWN
+ GNULIB_SETSOCKOPT
+ GNULIB_SENDTO
+ GNULIB_RECVFROM
+ GNULIB_SEND
+ GNULIB_RECV
+ GNULIB_LISTEN
+ GNULIB_GETSOCKOPT
+ GNULIB_GETSOCKNAME
+ GNULIB_GETPEERNAME
+ GNULIB_BIND
+ GNULIB_ACCEPT
+ GNULIB_CONNECT
+ GNULIB_SOCKET
+ HAVE_STRINGS_H
+ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
+ NEXT_STRINGS_H
NEXT_AS_FIRST_DIRECTIVE_STRING_H
NEXT_STRING_H
+ HAVE_DECL_STRNCASECMP
+ HAVE_STRCASECMP
+ HAVE_FFS
+ GNULIB_FFS
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
NEXT_STDLIB_H
NEXT_AS_FIRST_DIRECTIVE_STDIO_H
***************
*** 912,959 ****
STDBOOL_H
NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
NEXT_SIGNAL_H
HAVE_SIGHANDLER_T
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
HAVE_STRUCT_SIGACTION_SA_SIGACTION
HAVE_SIGACTION
HAVE_SIGINFO_T
HAVE_SIGSET_T
HAVE_POSIX_SIGNALBLOCKING
GNULIB_SIGACTION
GNULIB_SIGPROCMASK
GNULIB_SIGNAL_H_SIGPIPE
! ROUNDF_LIBM
! ROUND_LIBM
LIB_NANOSLEEP
LIBSOCKET
HAVE_SYS_SELECT_H
NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
NEXT_SYS_SELECT_H
REPLACE_SELECT
GNULIB_SELECT
! HAVE_WS2TCPIP_H
! HAVE_SYS_SOCKET_H
! NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
! NEXT_SYS_SOCKET_H
! HAVE_ACCEPT4
! HAVE_SA_FAMILY_T
! HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
! HAVE_STRUCT_SOCKADDR_STORAGE
! GNULIB_ACCEPT4
! GNULIB_SHUTDOWN
! GNULIB_SETSOCKOPT
! GNULIB_SENDTO
! GNULIB_RECVFROM
! GNULIB_SEND
! GNULIB_RECV
! GNULIB_LISTEN
! GNULIB_GETSOCKOPT
! GNULIB_GETSOCKNAME
! GNULIB_GETPEERNAME
! GNULIB_BIND
! GNULIB_ACCEPT
! GNULIB_CONNECT
! GNULIB_SOCKET
APPLE_UNIVERSAL_BUILD
REPLACE_TIMEGM
REPLACE_NANOSLEEP
--- 943,977 ----
STDBOOL_H
NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
NEXT_SIGNAL_H
+ ROUNDF_LIBM
+ ROUND_LIBM
+ REPLACE_RAISE
+ REPLACE_PTHREAD_SIGMASK
HAVE_SIGHANDLER_T
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
HAVE_STRUCT_SIGACTION_SA_SIGACTION
HAVE_SIGACTION
HAVE_SIGINFO_T
HAVE_SIGSET_T
+ HAVE_RAISE
+ HAVE_PTHREAD_SIGMASK
HAVE_POSIX_SIGNALBLOCKING
GNULIB_SIGACTION
GNULIB_SIGPROCMASK
GNULIB_SIGNAL_H_SIGPIPE
! GNULIB_RAISE
! GNULIB_PTHREAD_SIGMASK
LIB_NANOSLEEP
+ LIB_SELECT
LIBSOCKET
HAVE_SYS_SELECT_H
NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
NEXT_SYS_SELECT_H
REPLACE_SELECT
+ REPLACE_PSELECT
+ HAVE_PSELECT
GNULIB_SELECT
! GNULIB_PSELECT
APPLE_UNIVERSAL_BUILD
REPLACE_TIMEGM
REPLACE_NANOSLEEP
***************
*** 1001,1006 ****
--- 1019,1026 ----
HAVE_MEMPCPY
HAVE_DECL_MEMMEM
HAVE_MEMCHR
+ HAVE_FFSLL
+ HAVE_FFSL
HAVE_MBSLEN
GNULIB_STRVERSCMP
GNULIB_STRSIGNAL
***************
*** 1037,1042 ****
--- 1057,1064 ----
GNULIB_MEMPCPY
GNULIB_MEMMEM
GNULIB_MEMCHR
+ GNULIB_FFSLL
+ GNULIB_FFSL
LOCALE_FR
LOCALE_FR_UTF8
LOCALE_ZH_CN
***************
*** 1154,1159 ****
--- 1176,1214 ----
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
NEXT_GETOPT_H
GETHOSTNAME_LIB
+ REPLACE_UTIMENSAT
+ REPLACE_STAT
+ REPLACE_MKNOD
+ REPLACE_MKFIFO
+ REPLACE_MKDIR
+ REPLACE_LSTAT
+ REPLACE_FUTIMENS
+ REPLACE_FSTATAT
+ REPLACE_FSTAT
+ HAVE_UTIMENSAT
+ HAVE_MKNODAT
+ HAVE_MKNOD
+ HAVE_MKFIFOAT
+ HAVE_MKFIFO
+ HAVE_MKDIRAT
+ HAVE_LSTAT
+ HAVE_LCHMOD
+ HAVE_FUTIMENS
+ HAVE_FSTATAT
+ HAVE_FCHMODAT
+ GNULIB_UTIMENSAT
+ GNULIB_STAT
+ GNULIB_MKNODAT
+ GNULIB_MKNOD
+ GNULIB_MKFIFOAT
+ GNULIB_MKFIFO
+ GNULIB_MKDIRAT
+ GNULIB_LSTAT
+ GNULIB_LCHMOD
+ GNULIB_FUTIMENS
+ GNULIB_FSTATAT
+ GNULIB_FSTAT
+ GNULIB_FCHMODAT
GL_GENERATE_FNMATCH_H_FALSE
GL_GENERATE_FNMATCH_H_TRUE
FNMATCH_H
***************
*** 1262,1332 ****
GNULIB_OPEN
GNULIB_NONBLOCKING
GNULIB_FCNTL
- REPLACE_UTIMENSAT
- REPLACE_STAT
- REPLACE_MKNOD
- REPLACE_MKFIFO
- REPLACE_MKDIR
- REPLACE_LSTAT
- REPLACE_FUTIMENS
- REPLACE_FSTATAT
- REPLACE_FSTAT
- HAVE_UTIMENSAT
- HAVE_MKNODAT
- HAVE_MKNOD
- HAVE_MKFIFOAT
- HAVE_MKFIFO
- HAVE_MKDIRAT
- HAVE_LSTAT
- HAVE_LCHMOD
- HAVE_FUTIMENS
- HAVE_FSTATAT
- HAVE_FCHMODAT
- GNULIB_UTIMENSAT
- GNULIB_STAT
- GNULIB_MKNODAT
- GNULIB_MKNOD
- GNULIB_MKFIFOAT
- GNULIB_MKFIFO
- GNULIB_MKDIRAT
- GNULIB_LSTAT
- GNULIB_LCHMOD
- GNULIB_FUTIMENS
- GNULIB_FSTATAT
- GNULIB_FCHMODAT
- EOVERFLOW_VALUE
- EOVERFLOW_HIDDEN
- ENOLINK_VALUE
- ENOLINK_HIDDEN
- EMULTIHOP_VALUE
- EMULTIHOP_HIDDEN
- GL_GENERATE_ERRNO_H_FALSE
- GL_GENERATE_ERRNO_H_TRUE
- ERRNO_H
- NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
- NEXT_ERRNO_H
- NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
- NEXT_DIRENT_H
- PRAGMA_COLUMNS
- PRAGMA_SYSTEM_HEADER
- INCLUDE_NEXT_AS_FIRST_DIRECTIVE
- INCLUDE_NEXT
- REPLACE_OPENDIR
- REPLACE_FDOPENDIR
- REPLACE_DIRFD
- REPLACE_CLOSEDIR
- HAVE_ALPHASORT
- HAVE_SCANDIR
- HAVE_FDOPENDIR
- HAVE_DECL_FDOPENDIR
- HAVE_DECL_DIRFD
- GNULIB_ALPHASORT
- GNULIB_SCANDIR
- GNULIB_FDOPENDIR
- GNULIB_DIRFD
- COPYSIGN_LIBM
- pkglibexecdir
- lispdir
REPLACE_VSPRINTF
REPLACE_VSNPRINTF
REPLACE_VPRINTF
--- 1317,1322 ----
***************
*** 1356,1366 ****
--- 1346,1359 ----
REPLACE_FPRINTF
REPLACE_FOPEN
REPLACE_FFLUSH
+ REPLACE_FDOPEN
REPLACE_FCLOSE
REPLACE_DPRINTF
HAVE_VDPRINTF
HAVE_VASPRINTF
HAVE_RENAMEAT
+ HAVE_POPEN
+ HAVE_PCLOSE
HAVE_FTELLO
HAVE_FSEEKO
HAVE_DPRINTF
***************
*** 1398,1403 ****
--- 1391,1397 ----
GNULIB_PRINTF
GNULIB_POPEN
GNULIB_PERROR
+ GNULIB_PCLOSE
GNULIB_OBSTACK_PRINTF_POSIX
GNULIB_OBSTACK_PRINTF
GNULIB_GETS
***************
*** 1422,1430 ****
--- 1416,1468 ----
GNULIB_FGETS
GNULIB_FGETC
GNULIB_FFLUSH
+ GNULIB_FDOPEN
GNULIB_FCLOSE
GNULIB_DPRINTF
+ EOVERFLOW_VALUE
+ EOVERFLOW_HIDDEN
+ ENOLINK_VALUE
+ ENOLINK_HIDDEN
+ EMULTIHOP_VALUE
+ EMULTIHOP_HIDDEN
+ GL_GENERATE_ERRNO_H_FALSE
+ GL_GENERATE_ERRNO_H_TRUE
+ ERRNO_H
+ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
+ NEXT_ERRNO_H
+ HAVE_DIRENT_H
+ NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
+ NEXT_DIRENT_H
+ PRAGMA_COLUMNS
+ PRAGMA_SYSTEM_HEADER
+ INCLUDE_NEXT_AS_FIRST_DIRECTIVE
+ INCLUDE_NEXT
+ COPYSIGN_LIBM
+ pkglibexecdir
+ lispdir
+ REPLACE_FDOPENDIR
+ REPLACE_DIRFD
+ REPLACE_CLOSEDIR
+ REPLACE_OPENDIR
+ HAVE_ALPHASORT
+ HAVE_SCANDIR
+ HAVE_FDOPENDIR
+ HAVE_DECL_FDOPENDIR
+ HAVE_DECL_DIRFD
+ HAVE_CLOSEDIR
+ HAVE_REWINDDIR
+ HAVE_READDIR
+ HAVE_OPENDIR
+ GNULIB_ALPHASORT
+ GNULIB_SCANDIR
+ GNULIB_FDOPENDIR
+ GNULIB_DIRFD
+ GNULIB_CLOSEDIR
+ GNULIB_REWINDDIR
+ GNULIB_READDIR
+ GNULIB_OPENDIR
HAVE_WINSOCK2_H
+ HAVE_MSVC_INVALID_PARAMETER_HANDLER
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
UNISTD_H_HAVE_WINSOCK2_H
REPLACE_WRITE
***************
*** 1460,1465 ****
--- 1498,1504 ----
HAVE_DECL_GETPAGESIZE
HAVE_DECL_GETLOGIN_R
HAVE_DECL_GETDOMAINNAME
+ HAVE_DECL_FDATASYNC
HAVE_DECL_FCHDIR
HAVE_DECL_ENVIRON
HAVE_USLEEP
***************
*** 1484,1489 ****
--- 1523,1529 ----
HAVE_GETDTABLESIZE
HAVE_FTRUNCATE
HAVE_FSYNC
+ HAVE_FDATASYNC
HAVE_FCHOWNAT
HAVE_FCHDIR
HAVE_FACCESSAT
***************
*** 1526,1531 ****
--- 1566,1572 ----
GNULIB_GETCWD
GNULIB_FTRUNCATE
GNULIB_FSYNC
+ GNULIB_FDATASYNC
GNULIB_FCHOWNAT
GNULIB_FCHDIR
GNULIB_FACCESSAT
***************
*** 1533,1540 ****
--- 1574,1583 ----
GNULIB_ENVIRON
GNULIB_DUP3
GNULIB_DUP2
+ GNULIB_DUP
GNULIB_CLOSE
GNULIB_CHOWN
+ GNULIB_CHDIR
REPLACE_WCTOMB
REPLACE_UNSETENV
REPLACE_STRTOD
***************
*** 1608,1613 ****
--- 1651,1658 ----
GL_COND_LIBTOOL_FALSE
GL_COND_LIBTOOL_TRUE
RANLIB
+ ARFLAGS
+ AR
CXX_VERSION
CXXCPP
am__fastdepCXX_FALSE
***************
*** 2388,2394 ****
# 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 GNU Octave 3.4.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
--- 2433,2439 ----
# 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 GNU Octave 3.4.3 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
***************
*** 2462,2468 ****
if test -n "$ac_init_help"; then
case $ac_init_help in
! short | recursive ) echo "Configuration of GNU Octave 3.4.2:";;
esac
cat <<\_ACEOF
--- 2507,2513 ----
if test -n "$ac_init_help"; then
case $ac_init_help in
! short | recursive ) echo "Configuration of GNU Octave 3.4.3:";;
esac
cat <<\_ACEOF
***************
*** 2706,2712 ****
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
! GNU Octave configure 3.4.2
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
--- 2751,2757 ----
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
! GNU Octave configure 3.4.3
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
***************
*** 3919,3925 ****
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
! It was created by GNU Octave $as_me 3.4.2, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
--- 3964,3970 ----
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
! It was created by GNU Octave $as_me 3.4.3, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
***************
*** 4204,4216 ****
as_fn_append ac_func_list " readlink"
as_fn_append ac_func_list " realpath"
as_fn_append ac_header_list " sys/param.h"
as_fn_append ac_func_list " chown"
as_fn_append ac_func_list " fchown"
as_fn_append ac_header_list " sys/socket.h"
as_fn_append ac_header_list " dirent.h"
as_fn_append ac_func_list " fcntl"
! as_fn_append ac_func_list " dup2"
! as_fn_append ac_func_list " fchdir"
as_fn_append ac_func_list " fdopendir"
as_fn_append ac_func_list " mempcpy"
as_fn_append ac_func_list " btowc"
--- 4249,4263 ----
as_fn_append ac_func_list " readlink"
as_fn_append ac_func_list " realpath"
as_fn_append ac_header_list " sys/param.h"
+ as_fn_append ac_header_list " unistd.h"
as_fn_append ac_func_list " chown"
as_fn_append ac_func_list " fchown"
+ as_fn_append ac_func_list " _set_invalid_parameter_handler"
as_fn_append ac_header_list " sys/socket.h"
+ as_fn_append ac_func_list " fchdir"
as_fn_append ac_header_list " dirent.h"
as_fn_append ac_func_list " fcntl"
! as_fn_append ac_func_list " symlink"
as_fn_append ac_func_list " fdopendir"
as_fn_append ac_func_list " mempcpy"
as_fn_append ac_func_list " btowc"
***************
*** 4232,4238 ****
as_fn_append ac_header_list " sys/time.h"
as_fn_append ac_func_list " gettimeofday"
as_fn_append ac_header_list " sys/cdefs.h"
- as_fn_append ac_header_list " unistd.h"
as_fn_append ac_func_list " fstatat"
as_fn_append ac_func_list " getpwnam_r"
as_fn_append ac_func_list " lchmod"
--- 4279,4284 ----
***************
*** 4247,4253 ****
as_fn_append ac_func_list " mkstemp"
as_fn_append ac_func_list " alarm"
as_fn_append ac_header_list " sys/select.h"
! as_fn_append ac_func_list " pathconf"
as_fn_append ac_func_list " sigaction"
as_fn_append ac_func_list " sigaltstack"
as_fn_append ac_func_list " siginterrupt"
--- 4293,4302 ----
as_fn_append ac_func_list " mkstemp"
as_fn_append ac_func_list " alarm"
as_fn_append ac_header_list " sys/select.h"
! as_fn_append ac_func_list " fchmodat"
! as_fn_append ac_func_list " mkdirat"
! as_fn_append ac_func_list " openat"
! as_fn_append ac_func_list " unlinkat"
as_fn_append ac_func_list " sigaction"
as_fn_append ac_func_list " sigaltstack"
as_fn_append ac_func_list " siginterrupt"
***************
*** 4256,4263 ****
as_fn_append ac_header_list " stdint.h"
as_fn_append ac_func_list " strdup"
as_fn_append ac_func_list " tzset"
as_fn_append ac_func_list " strptime"
- as_fn_append ac_func_list " symlink"
as_fn_append ac_header_list " sys/stat.h"
as_fn_append ac_header_list " sys/times.h"
as_fn_append ac_header_list " sys/uio.h"
--- 4305,4312 ----
as_fn_append ac_header_list " stdint.h"
as_fn_append ac_func_list " strdup"
as_fn_append ac_func_list " tzset"
+ as_fn_append ac_header_list " strings.h"
as_fn_append ac_func_list " strptime"
as_fn_append ac_header_list " sys/stat.h"
as_fn_append ac_header_list " sys/times.h"
as_fn_append ac_header_list " sys/uio.h"
***************
*** 4266,4271 ****
--- 4315,4321 ----
as_fn_append ac_func_list " pipe"
as_fn_append ac_func_list " vasnprintf"
as_fn_append ac_header_list " features.h"
+ as_fn_append ac_func_list " snprintf"
as_fn_append ac_func_list " iswcntrl"
# Check that the precious variables saved in the cache have kept the same
# value.
***************
*** 4339,4345 ****
OCTAVE_VERSION="$PACKAGE_VERSION"
OCTAVE_API_VERSION_NUMBER="45"
OCTAVE_API_VERSION="api-v$OCTAVE_API_VERSION_NUMBER+"
! OCTAVE_RELEASE_DATE="2011-06-24"
OCTAVE_COPYRIGHT="Copyright (C) 2011 John W. Eaton and others."
--- 4389,4395 ----
OCTAVE_VERSION="$PACKAGE_VERSION"
OCTAVE_API_VERSION_NUMBER="45"
OCTAVE_API_VERSION="api-v$OCTAVE_API_VERSION_NUMBER+"
! OCTAVE_RELEASE_DATE="2011-10-10"
OCTAVE_COPYRIGHT="Copyright (C) 2011 John W. Eaton and others."
***************
*** 4822,4828 ****
# Define the identity of the package.
PACKAGE='octave'
! VERSION='3.4.2'
cat >>confdefs.h <<_ACEOF
--- 4872,4878 ----
# Define the identity of the package.
PACKAGE='octave'
! VERSION='3.4.3'
cat >>confdefs.h <<_ACEOF
***************
*** 6489,6494 ****
--- 6539,6546 ----
$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 _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
***************
*** 8526,8532 ****
### gnulib
! 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
--- 8578,8726 ----
### gnulib
!
!
! { $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
!
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
!
! #ifdef __ACK__
! Amsterdam
! #endif
!
! _ACEOF
! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! $EGREP "Amsterdam" >/dev/null 2>&1; then :
! gl_cv_c_amsterdam_compiler=yes
! else
! gl_cv_c_amsterdam_compiler=no
! fi
! rm -f conftest*
!
!
! fi
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
! $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
! if test -z "$AR"; then
! if test $gl_cv_c_amsterdam_compiler = yes; then
! AR='cc -c.a'
! if test -z "$ARFLAGS"; then
! ARFLAGS='-o'
! fi
! else
! 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
! if test -n "$AR"; then
! ac_cv_prog_AR="$AR" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
! IFS=$as_save_IFS
! test -z "$as_dir" && as_dir=.
! for ac_exec_ext in '' $ac_executable_extensions; do
! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
! break 2
! fi
! done
! done
! IFS=$as_save_IFS
!
! 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; }
! else
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! $as_echo "no" >&6; }
! fi
!
!
! fi
! 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
! if test -n "$ac_ct_AR"; then
! ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
! IFS=$as_save_IFS
! test -z "$as_dir" && as_dir=.
! for ac_exec_ext in '' $ac_executable_extensions; do
! if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
! break 2
! fi
! done
! done
! IFS=$as_save_IFS
!
! 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; }
! else
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! $as_echo "no" >&6; }
! fi
!
! if test "x$ac_ct_AR" = x; then
! AR="ar"
! 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;}
! ac_tool_warned=yes ;;
! esac
! AR=$ac_ct_AR
! fi
! else
! AR="$ac_cv_prog_AR"
! fi
!
! if test -z "$ARFLAGS"; then
! ARFLAGS='cru'
! fi
! fi
! else
! if test -z "$ARFLAGS"; then
! ARFLAGS='cru'
! fi
! fi
!
!
! if test -z "$RANLIB"; then
! if test $gl_cv_c_amsterdam_compiler = yes; then
! RANLIB=':'
! else
! 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
***************
*** 8618,8623 ****
--- 8812,8821 ----
RANLIB="$ac_cv_prog_RANLIB"
fi
+ fi
+ fi
+
+
***************
*** 8692,8711 ****
fi
# Code from module alignof:
# Code from module alloca:
# Code from module alloca-opt:
- # Code from module arg-nonnull:
- # Code from module c++defs:
# Code from module c-ctype:
# Code from module c-strcase:
# Code from module canonicalize-lgpl:
# Code from module chdir-long:
# Code from module chown:
# Code from module cloexec:
# Code from module close:
# Code from module configmake:
# Code from module copysign:
# Code from module crypto/md5:
--- 8890,9109 ----
fi
+ # Check whether --enable-largefile was given.
+ if test "${enable_largefile+set}" = set; then :
+ enableval=$enable_largefile;
+ fi
+
+ if test "$enable_largefile" != no; then
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
+ $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
+ if ${ac_cv_sys_largefile_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+ ac_cv_sys_largefile_CC=no
+ if test "$GCC" != yes; then
+ ac_save_CC=$CC
+ while :; do
+ # IRIX 6.2 and later do not support large files by default,
+ # so use the C compiler's -n32 option if that helps.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+ int
+ main ()
+ {
+
+ ;
+ return 0;
+ }
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+ break
+ fi
+ rm -f core conftest.err conftest.$ac_objext
+ CC="$CC -n32"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_largefile_CC=' -n32'; break
+ fi
+ rm -f core conftest.err conftest.$ac_objext
+ break
+ done
+ CC=$ac_save_CC
+ rm -f conftest.$ac_ext
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
+ $as_echo "$ac_cv_sys_largefile_CC" >&6; }
+ if test "$ac_cv_sys_largefile_CC" != no; then
+ CC=$CC$ac_cv_sys_largefile_CC
+ fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
+ $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
+ if ${ac_cv_sys_file_offset_bits+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+ int
+ main ()
+ {
+
+ ;
+ return 0;
+ }
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_file_offset_bits=no; break
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #define _FILE_OFFSET_BITS 64
+ #include
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+ int
+ main ()
+ {
+
+ ;
+ return 0;
+ }
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_file_offset_bits=64; break
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cv_sys_file_offset_bits=unknown
+ break
+ done
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
+ $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
+ case $ac_cv_sys_file_offset_bits in #(
+ no | unknown) ;;
+ *)
+ cat >>confdefs.h <<_ACEOF
+ #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
+ _ACEOF
+ ;;
+ esac
+ rm -rf conftest*
+ if test $ac_cv_sys_file_offset_bits = unknown; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
+ $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
+ if ${ac_cv_sys_large_files+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+ int
+ main ()
+ {
+
+ ;
+ return 0;
+ }
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_large_files=no; break
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #define _LARGE_FILES 1
+ #include
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+ int
+ main ()
+ {
+
+ ;
+ return 0;
+ }
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_sys_large_files=1; break
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cv_sys_large_files=unknown
+ break
+ done
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
+ $as_echo "$ac_cv_sys_large_files" >&6; }
+ case $ac_cv_sys_large_files in #(
+ no | unknown) ;;
+ *)
+ cat >>confdefs.h <<_ACEOF
+ #define _LARGE_FILES $ac_cv_sys_large_files
+ _ACEOF
+ ;;
+ esac
+ rm -rf conftest*
+ fi
+
+
+ fi
+
# Code from module alignof:
# Code from module alloca:
# Code from module alloca-opt:
# Code from module c-ctype:
# Code from module c-strcase:
# Code from module canonicalize-lgpl:
+ # Code from module chdir:
# Code from module chdir-long:
# Code from module chown:
# Code from module cloexec:
# Code from module close:
+ # Code from module closedir:
# Code from module configmake:
# Code from module copysign:
# Code from module crypto/md5:
***************
*** 8716,8721 ****
--- 9114,9120 ----
# Code from module dirname-lgpl:
# Code from module dosname:
# Code from module double-slash-root:
+ # Code from module dup:
# Code from module dup2:
# Code from module errno:
# Code from module error:
***************
*** 8731,8745 ****
--- 9130,9147 ----
# Code from module fflush:
# Code from module filemode:
+ # Code from module filename:
# Code from module filenamecat-lgpl:
# Code from module float:
# Code from module floor:
# Code from module fnmatch:
+ # Code from module fopen:
# Code from module fpurge:
# Code from module freading:
# Code from module fseek:
# Code from module fseeko:
+ # Code from module fstat:
# Code from module ftell:
# Code from module ftello:
***************
*** 8755,8760 ****
--- 9157,9164 ----
# Code from module glob:
# Code from module include_next:
# Code from module intprops:
+ # Code from module largefile:
+
# Code from module lchown:
# Code from module link:
# Code from module localcharset:
***************
*** 8773,8778 ****
--- 9177,9184 ----
# Code from module mkfifo:
# Code from module mkstemp:
# Code from module mktime:
+ # Code from module msvc-inval:
+ # Code from module msvc-nothrow:
# Code from module multiarch:
# Code from module nanosleep:
# Code from module nocrash:
***************
*** 8780,8787 ****
--- 9186,9196 ----
# Code from module open:
# Code from module openat:
# Code from module openat-die:
+ # Code from module opendir:
# Code from module pathmax:
# Code from module progname:
+ # Code from module raise:
+ # Code from module readdir:
# Code from module readlink:
# Code from module realloc-posix:
# Code from module rename:
***************
*** 8793,8816 ****
--- 9202,9233 ----
# Code from module select:
# Code from module sigaction:
# Code from module signal:
+ # Code from module signal-h:
# Code from module sigprocmask:
# Code from module size_max:
# Code from module sleep:
+ # Code from module snippet/_Noreturn:
+ # Code from module snippet/arg-nonnull:
+ # Code from module snippet/c++defs:
+ # Code from module snippet/warn-on-use:
# Code from module socketlib:
# Code from module sockets:
# Code from module socklen:
+ # Code from module ssize_t:
# Code from module stat:
# Code from module stdbool:
# Code from module stddef:
# Code from module stdint:
# Code from module stdio:
# Code from module stdlib:
+ # Code from module strcase:
# Code from module strdup-posix:
# Code from module streq:
# Code from module strerror:
# Code from module strerror-override:
# Code from module strftime:
# Code from module string:
+ # Code from module strings:
# Code from module strnlen1:
# Code from module strptime:
# Code from module symlink:
***************
*** 8819,8829 ****
--- 9236,9249 ----
# Code from module sys_stat:
# Code from module sys_time:
# Code from module sys_times:
+ # Code from module sys_types:
# Code from module sys_uio:
# Code from module tempname:
# Code from module time:
# Code from module time_r:
# Code from module times:
+ # Code from module tmpdir:
+ # Code from module tmpfile:
# Code from module trunc:
# Code from module truncf:
# Code from module unistd:
***************
*** 8832,8838 ****
# Code from module vasnprintf:
# Code from module verify:
# Code from module vsnprintf:
- # Code from module warn-on-use:
# Code from module wchar:
# Code from module wctype-h:
# Code from module xsize:
--- 9252,9257 ----
***************
*** 8841,8846 ****
--- 9260,9266 ----
+
LIBC_FATAL_STDERR_=1
export LIBC_FATAL_STDERR_
***************
*** 9255,9260 ****
--- 9675,9708 ----
}
}
}
+ #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+ /* Avoid a crash on native Windows. */
+ #define WIN32_LEAN_AND_MEAN
+ #include
+ #include
+ static LONG WINAPI
+ exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
+ {
+ switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
+ {
+ case EXCEPTION_ACCESS_VIOLATION:
+ case EXCEPTION_IN_PAGE_ERROR:
+ case EXCEPTION_STACK_OVERFLOW:
+ case EXCEPTION_GUARD_PAGE:
+ case EXCEPTION_PRIV_INSTRUCTION:
+ case EXCEPTION_ILLEGAL_INSTRUCTION:
+ case EXCEPTION_DATATYPE_MISALIGNMENT:
+ case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
+ case EXCEPTION_NONCONTINUABLE_EXCEPTION:
+ exit (1);
+ }
+ return EXCEPTION_CONTINUE_SEARCH;
+ }
+ static void
+ nocrash_init (void)
+ {
+ SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
+ }
#else
/* Avoid a crash on POSIX systems. */
#include
***************
*** 9358,9408 ****
- { $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
- 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; }
- #endif
-
- _ACEOF
- 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
- 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; }
-
- case $ac_cv_c_inline in
- inline | yes) ;;
- *)
- case $ac_cv_c_inline in
- no) ac_val=;;
- *) ac_val=$ac_cv_c_inline;;
- esac
- cat >>confdefs.h <<_ACEOF
- #ifndef __cplusplus
- #define inline $ac_val
- #endif
- _ACEOF
- ;;
- esac
-
GNULIB_CHOWN=0;
GNULIB_CLOSE=0;
GNULIB_DUP2=0;
GNULIB_DUP3=0;
GNULIB_ENVIRON=0;
--- 9806,9816 ----
+ GNULIB_CHDIR=0;
GNULIB_CHOWN=0;
GNULIB_CLOSE=0;
+ GNULIB_DUP=0;
GNULIB_DUP2=0;
GNULIB_DUP3=0;
GNULIB_ENVIRON=0;
***************
*** 9410,9415 ****
--- 9818,9824 ----
GNULIB_FACCESSAT=0;
GNULIB_FCHDIR=0;
GNULIB_FCHOWNAT=0;
+ GNULIB_FDATASYNC=0;
GNULIB_FSYNC=0;
GNULIB_FTRUNCATE=0;
GNULIB_GETCWD=0;
***************
*** 9452,9457 ****
--- 9861,9867 ----
HAVE_FACCESSAT=1;
HAVE_FCHDIR=1;
HAVE_FCHOWNAT=1;
+ HAVE_FDATASYNC=1;
HAVE_FSYNC=1;
HAVE_FTRUNCATE=1;
HAVE_GETDTABLESIZE=1;
***************
*** 9476,9481 ****
--- 9886,9892 ----
HAVE_USLEEP=1;
HAVE_DECL_ENVIRON=1;
HAVE_DECL_FCHDIR=1;
+ HAVE_DECL_FDATASYNC=1;
HAVE_DECL_GETDOMAINNAME=1;
HAVE_DECL_GETLOGIN_R=1;
HAVE_DECL_GETPAGESIZE=1;
***************
*** 9513,9518 ****
--- 9924,9976 ----
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
+
+
+
+
+
+ { $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
+ 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; }
+ #endif
+
+ _ACEOF
+ 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
+ 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; }
+
+ case $ac_cv_c_inline in
+ inline | yes) ;;
+ *)
+ case $ac_cv_c_inline in
+ no) ac_val=;;
+ *) ac_val=$ac_cv_c_inline;;
+ esac
+ cat >>confdefs.h <<_ACEOF
+ #ifndef __cplusplus
+ #define inline $ac_val
+ #endif
+ _ACEOF
+ ;;
+ esac
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
***************
*** 9794,9896 ****
! GNULIB_DPRINTF=0;
! GNULIB_FCLOSE=0;
! GNULIB_FFLUSH=0;
! GNULIB_FGETC=0;
! GNULIB_FGETS=0;
! GNULIB_FOPEN=0;
! GNULIB_FPRINTF=0;
! GNULIB_FPRINTF_POSIX=0;
! GNULIB_FPURGE=0;
! GNULIB_FPUTC=0;
! GNULIB_FPUTS=0;
! GNULIB_FREAD=0;
! GNULIB_FREOPEN=0;
! GNULIB_FSCANF=0;
! GNULIB_FSEEK=0;
! GNULIB_FSEEKO=0;
! GNULIB_FTELL=0;
! GNULIB_FTELLO=0;
! GNULIB_FWRITE=0;
! GNULIB_GETC=0;
! GNULIB_GETCHAR=0;
! GNULIB_GETDELIM=0;
! GNULIB_GETLINE=0;
! GNULIB_GETS=0;
! GNULIB_OBSTACK_PRINTF=0;
! GNULIB_OBSTACK_PRINTF_POSIX=0;
! GNULIB_PERROR=0;
! GNULIB_POPEN=0;
! GNULIB_PRINTF=0;
! GNULIB_PRINTF_POSIX=0;
! GNULIB_PUTC=0;
! GNULIB_PUTCHAR=0;
! GNULIB_PUTS=0;
! GNULIB_REMOVE=0;
! GNULIB_RENAME=0;
! GNULIB_RENAMEAT=0;
! GNULIB_SCANF=0;
! GNULIB_SNPRINTF=0;
! GNULIB_SPRINTF_POSIX=0;
! GNULIB_STDIO_H_NONBLOCKING=0;
! GNULIB_STDIO_H_SIGPIPE=0;
! GNULIB_TMPFILE=0;
! GNULIB_VASPRINTF=0;
! GNULIB_VFSCANF=0;
! GNULIB_VSCANF=0;
! GNULIB_VDPRINTF=0;
! GNULIB_VFPRINTF=0;
! GNULIB_VFPRINTF_POSIX=0;
! GNULIB_VPRINTF=0;
! GNULIB_VPRINTF_POSIX=0;
! GNULIB_VSNPRINTF=0;
! GNULIB_VSPRINTF_POSIX=0;
! HAVE_DECL_FPURGE=1;
! HAVE_DECL_FSEEKO=1;
! HAVE_DECL_FTELLO=1;
! HAVE_DECL_GETDELIM=1;
! HAVE_DECL_GETLINE=1;
! HAVE_DECL_OBSTACK_PRINTF=1;
! HAVE_DECL_SNPRINTF=1;
! HAVE_DECL_VSNPRINTF=1;
! HAVE_DPRINTF=1;
! HAVE_FSEEKO=1;
! HAVE_FTELLO=1;
! HAVE_RENAMEAT=1;
! HAVE_VASPRINTF=1;
! HAVE_VDPRINTF=1;
! REPLACE_DPRINTF=0;
! REPLACE_FCLOSE=0;
! REPLACE_FFLUSH=0;
! REPLACE_FOPEN=0;
! REPLACE_FPRINTF=0;
! REPLACE_FPURGE=0;
! REPLACE_FREOPEN=0;
! REPLACE_FSEEK=0;
! REPLACE_FSEEKO=0;
! REPLACE_FTELL=0;
! REPLACE_FTELLO=0;
! REPLACE_GETDELIM=0;
! REPLACE_GETLINE=0;
! REPLACE_OBSTACK_PRINTF=0;
! REPLACE_PERROR=0;
! REPLACE_POPEN=0;
! REPLACE_PRINTF=0;
! REPLACE_REMOVE=0;
! REPLACE_RENAME=0;
! REPLACE_RENAMEAT=0;
! REPLACE_SNPRINTF=0;
! REPLACE_SPRINTF=0;
! REPLACE_STDIO_READ_FUNCS=0;
! REPLACE_STDIO_WRITE_FUNCS=0;
! REPLACE_TMPFILE=0;
! REPLACE_VASPRINTF=0;
! REPLACE_VDPRINTF=0;
! REPLACE_VFPRINTF=0;
! REPLACE_VPRINTF=0;
! REPLACE_VSNPRINTF=0;
! REPLACE_VSPRINTF=0;
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
--- 10252,10294 ----
!
! 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
!
! else
! HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
! fi
!
!
!
!
!
!
!
! GNULIB_OPENDIR=0;
! GNULIB_READDIR=0;
! GNULIB_REWINDDIR=0;
! GNULIB_CLOSEDIR=0;
! GNULIB_DIRFD=0;
! GNULIB_FDOPENDIR=0;
! GNULIB_SCANDIR=0;
! GNULIB_ALPHASORT=0;
! HAVE_OPENDIR=1;
! HAVE_READDIR=1;
! HAVE_REWINDDIR=1;
! HAVE_CLOSEDIR=1;
! HAVE_DECL_DIRFD=1;
! HAVE_DECL_FDOPENDIR=1;
! HAVE_FDOPENDIR=1;
! HAVE_SCANDIR=1;
! HAVE_ALPHASORT=1;
! REPLACE_OPENDIR=0;
! REPLACE_CLOSEDIR=0;
! REPLACE_DIRFD=0;
! REPLACE_FDOPENDIR=0;
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
***************
*** 10119,10139 ****
- GNULIB_DIRFD=0;
- GNULIB_FDOPENDIR=0;
- GNULIB_SCANDIR=0;
- GNULIB_ALPHASORT=0;
- HAVE_DECL_DIRFD=1;
- HAVE_DECL_FDOPENDIR=1;
- HAVE_FDOPENDIR=1;
- HAVE_SCANDIR=1;
- HAVE_ALPHASORT=1;
- REPLACE_CLOSEDIR=0;
- REPLACE_DIRFD=0;
- REPLACE_FDOPENDIR=0;
- REPLACE_OPENDIR=0;
-
-
{ $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; }
--- 10517,10522 ----
***************
*** 10251,10260 ****
-
-
-
-
{ $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 :
--- 10634,10639 ----
***************
*** 10289,10294 ****
--- 10668,10679 ----
#if !defined ENOTSUP
booboo
#endif
+ #if !defined ENETRESET
+ booboo
+ #endif
+ #if !defined ECONNABORTED
+ booboo
+ #endif
#if !defined ESTALE
booboo
#endif
***************
*** 10341,10353 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/errno.h#{
! s#.*"\(.*/errno.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
fi
--- 10726,10749 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'errno.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'errno.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
fi
***************
*** 10688,10727 ****
XGETTEXT_EXTRA_OPTIONS=
-
- GNULIB_FCHMODAT=0;
- GNULIB_FSTATAT=0;
- GNULIB_FUTIMENS=0;
- GNULIB_LCHMOD=0;
- GNULIB_LSTAT=0;
- GNULIB_MKDIRAT=0;
- GNULIB_MKFIFO=0;
- GNULIB_MKFIFOAT=0;
- GNULIB_MKNOD=0;
- GNULIB_MKNODAT=0;
- GNULIB_STAT=0;
- GNULIB_UTIMENSAT=0;
- HAVE_FCHMODAT=1;
- HAVE_FSTATAT=1;
- HAVE_FUTIMENS=1;
- HAVE_LCHMOD=1;
- HAVE_LSTAT=1;
- HAVE_MKDIRAT=1;
- HAVE_MKFIFO=1;
- HAVE_MKFIFOAT=1;
- HAVE_MKNOD=1;
- HAVE_MKNODAT=1;
- HAVE_UTIMENSAT=1;
- REPLACE_FSTAT=0;
- REPLACE_FSTATAT=0;
- REPLACE_FUTIMENS=0;
- REPLACE_LSTAT=0;
- REPLACE_MKDIR=0;
- REPLACE_MKFIFO=0;
- REPLACE_MKNOD=0;
- REPLACE_STAT=0;
- REPLACE_UTIMENSAT=0;
-
ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
if test "x$ac_cv_have_decl_fchdir" = xyes; then :
ac_have_decl=1
--- 11084,11089 ----
***************
*** 10734,10739 ****
--- 11096,11203 ----
_ACEOF
+ GNULIB_DPRINTF=0;
+ GNULIB_FCLOSE=0;
+ GNULIB_FDOPEN=0;
+ GNULIB_FFLUSH=0;
+ GNULIB_FGETC=0;
+ GNULIB_FGETS=0;
+ GNULIB_FOPEN=0;
+ GNULIB_FPRINTF=0;
+ GNULIB_FPRINTF_POSIX=0;
+ GNULIB_FPURGE=0;
+ GNULIB_FPUTC=0;
+ GNULIB_FPUTS=0;
+ GNULIB_FREAD=0;
+ GNULIB_FREOPEN=0;
+ GNULIB_FSCANF=0;
+ GNULIB_FSEEK=0;
+ GNULIB_FSEEKO=0;
+ GNULIB_FTELL=0;
+ GNULIB_FTELLO=0;
+ GNULIB_FWRITE=0;
+ GNULIB_GETC=0;
+ GNULIB_GETCHAR=0;
+ GNULIB_GETDELIM=0;
+ GNULIB_GETLINE=0;
+ GNULIB_GETS=0;
+ GNULIB_OBSTACK_PRINTF=0;
+ GNULIB_OBSTACK_PRINTF_POSIX=0;
+ GNULIB_PCLOSE=0;
+ GNULIB_PERROR=0;
+ GNULIB_POPEN=0;
+ GNULIB_PRINTF=0;
+ GNULIB_PRINTF_POSIX=0;
+ GNULIB_PUTC=0;
+ GNULIB_PUTCHAR=0;
+ GNULIB_PUTS=0;
+ GNULIB_REMOVE=0;
+ GNULIB_RENAME=0;
+ GNULIB_RENAMEAT=0;
+ GNULIB_SCANF=0;
+ GNULIB_SNPRINTF=0;
+ GNULIB_SPRINTF_POSIX=0;
+ GNULIB_STDIO_H_NONBLOCKING=0;
+ GNULIB_STDIO_H_SIGPIPE=0;
+ GNULIB_TMPFILE=0;
+ GNULIB_VASPRINTF=0;
+ GNULIB_VFSCANF=0;
+ GNULIB_VSCANF=0;
+ GNULIB_VDPRINTF=0;
+ GNULIB_VFPRINTF=0;
+ GNULIB_VFPRINTF_POSIX=0;
+ GNULIB_VPRINTF=0;
+ GNULIB_VPRINTF_POSIX=0;
+ GNULIB_VSNPRINTF=0;
+ GNULIB_VSPRINTF_POSIX=0;
+ HAVE_DECL_FPURGE=1;
+ HAVE_DECL_FSEEKO=1;
+ HAVE_DECL_FTELLO=1;
+ HAVE_DECL_GETDELIM=1;
+ HAVE_DECL_GETLINE=1;
+ HAVE_DECL_OBSTACK_PRINTF=1;
+ HAVE_DECL_SNPRINTF=1;
+ HAVE_DECL_VSNPRINTF=1;
+ HAVE_DPRINTF=1;
+ HAVE_FSEEKO=1;
+ HAVE_FTELLO=1;
+ HAVE_PCLOSE=1;
+ HAVE_POPEN=1;
+ HAVE_RENAMEAT=1;
+ HAVE_VASPRINTF=1;
+ HAVE_VDPRINTF=1;
+ REPLACE_DPRINTF=0;
+ REPLACE_FCLOSE=0;
+ REPLACE_FDOPEN=0;
+ REPLACE_FFLUSH=0;
+ REPLACE_FOPEN=0;
+ REPLACE_FPRINTF=0;
+ REPLACE_FPURGE=0;
+ REPLACE_FREOPEN=0;
+ REPLACE_FSEEK=0;
+ REPLACE_FSEEKO=0;
+ REPLACE_FTELL=0;
+ REPLACE_FTELLO=0;
+ REPLACE_GETDELIM=0;
+ REPLACE_GETLINE=0;
+ REPLACE_OBSTACK_PRINTF=0;
+ REPLACE_PERROR=0;
+ REPLACE_POPEN=0;
+ REPLACE_PRINTF=0;
+ REPLACE_REMOVE=0;
+ REPLACE_RENAME=0;
+ REPLACE_RENAMEAT=0;
+ REPLACE_SNPRINTF=0;
+ REPLACE_SPRINTF=0;
+ REPLACE_STDIO_READ_FUNCS=0;
+ REPLACE_STDIO_WRITE_FUNCS=0;
+ REPLACE_TMPFILE=0;
+ REPLACE_VASPRINTF=0;
+ REPLACE_VDPRINTF=0;
+ REPLACE_VFPRINTF=0;
+ REPLACE_VPRINTF=0;
+ REPLACE_VSNPRINTF=0;
+ REPLACE_VSPRINTF=0;
GNULIB_FCNTL=0;
***************
*** 10746,10795 ****
REPLACE_OPEN=0;
REPLACE_OPENAT=0;
- 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 :
-
- else
-
- cat >>confdefs.h <<_ACEOF
- #define mode_t int
- _ACEOF
-
- fi
-
- { $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
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include
- int
- main ()
- {
- typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- gl_cv_promoted_mode_t='int'
- else
- gl_cv_promoted_mode_t='mode_t'
- fi
- rm -f core conftest.err conftest.$ac_objext 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; }
- cat >>confdefs.h <<_ACEOF
- #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
- _ACEOF
--- 11210,11220 ----
***************
*** 10806,10812 ****
/* end confdefs.h. */
#include
#include
! #include
#include
#ifndef O_NOATIME
#define O_NOATIME 0
--- 11231,11243 ----
/* end confdefs.h. */
#include
#include
! #if HAVE_UNISTD_H
! # include
! #else /* on Windows with MSVC */
! # include
! # include
! # defined sleep(n) _sleep ((n) * 1000)
! #endif
#include
#ifndef O_NOATIME
#define O_NOATIME 0
***************
*** 10825,10830 ****
--- 11256,11262 ----
{
int result = !constants;
+ #if HAVE_SYMLINK
{
static char const sym[] = "conftest.sym";
if (symlink (".", sym) != 0)
***************
*** 10840,10845 ****
--- 11272,11278 ----
}
unlink (sym);
}
+ #endif
{
static char const file[] = "confdefs.h";
int fd = open (file, O_RDONLY | O_NOATIME);
***************
*** 10916,10921 ****
--- 11349,11376 ----
_ACEOF
+ 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 :
+
+ else
+
+ cat >>confdefs.h <<_ACEOF
+ #define pid_t int
+ _ACEOF
+
+ fi
+
+ 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 :
+
+ else
+
+ cat >>confdefs.h <<_ACEOF
+ #define mode_t int
+ _ACEOF
+
+ fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
***************
*** 11220,11225 ****
--- 11675,11681 ----
fi
+
{ $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 :
***************
*** 11233,11239 ****
/* end confdefs.h. */
#include
! #include
int
main ()
--- 11689,11699 ----
/* end confdefs.h. */
#include
! #if HAVE_UNISTD_H
! # include
! #else /* on Windows with MSVC */
! # include
! #endif
int
main ()
***************
*** 11299,11304 ****
--- 11759,11799 ----
fi
+
+ GNULIB_FCHMODAT=0;
+ GNULIB_FSTAT=0;
+ GNULIB_FSTATAT=0;
+ GNULIB_FUTIMENS=0;
+ GNULIB_LCHMOD=0;
+ GNULIB_LSTAT=0;
+ GNULIB_MKDIRAT=0;
+ GNULIB_MKFIFO=0;
+ GNULIB_MKFIFOAT=0;
+ GNULIB_MKNOD=0;
+ GNULIB_MKNODAT=0;
+ GNULIB_STAT=0;
+ GNULIB_UTIMENSAT=0;
+ HAVE_FCHMODAT=1;
+ HAVE_FSTATAT=1;
+ HAVE_FUTIMENS=1;
+ HAVE_LCHMOD=1;
+ HAVE_LSTAT=1;
+ HAVE_MKDIRAT=1;
+ HAVE_MKFIFO=1;
+ HAVE_MKFIFOAT=1;
+ HAVE_MKNOD=1;
+ HAVE_MKNODAT=1;
+ HAVE_UTIMENSAT=1;
+ REPLACE_FSTAT=0;
+ REPLACE_FSTATAT=0;
+ REPLACE_FUTIMENS=0;
+ REPLACE_LSTAT=0;
+ REPLACE_MKDIR=0;
+ REPLACE_MKFIFO=0;
+ REPLACE_MKNOD=0;
+ REPLACE_STAT=0;
+ REPLACE_UTIMENSAT=0;
+
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_have_decl=1
***************
*** 11459,11465 ****
fi
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
$as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
if ${gl_cv_func_getcwd_null+:} false; then :
$as_echo_n "(cached) " >&6
--- 11954,11961 ----
fi
!
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
$as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
if ${gl_cv_func_getcwd_null+:} false; then :
$as_echo_n "(cached) " >&6
***************
*** 11479,11485 ****
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
! # include
# ifndef getcwd
char *getcwd ();
# endif
--- 11975,11985 ----
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
! # if HAVE_UNISTD_H
! # include
! # else /* on Windows with MSVC */
! # include
! # endif
# ifndef getcwd
char *getcwd ();
# endif
***************
*** 11506,11514 ****
return 0;
}
#endif
- /* If size is non-zero, allocation must fail if size is too small */
- if (getcwd (NULL, 1))
- return 5;
;
return 0;
--- 12006,12011 ----
***************
*** 11527,11532 ****
--- 12024,12063 ----
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
$as_echo "$gl_cv_func_getcwd_null" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
+ $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
+ if ${gl_cv_func_getcwd_posix_signature+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include
+ int
+ main ()
+ {
+ extern
+ #ifdef __cplusplus
+ "C"
+ #endif
+ char *getcwd (char *, size_t);
+
+ ;
+ return 0;
+ }
+
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+ gl_cv_func_getcwd_posix_signature=yes
+ else
+ gl_cv_func_getcwd_posix_signature=no
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
+ $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
+
ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
if test "x$ac_cv_have_decl_getcwd" = xyes; then :
ac_have_decl=1
***************
*** 11602,11614 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/getopt.h#{
! s#.*"\(.*/getopt.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
else
gl_cv_next_getopt_h='<'getopt.h'>'
fi
--- 12133,12156 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_getopt_h='<'getopt.h'>'
fi
***************
*** 11692,11698 ****
return 0;
}
_ACEOF
! if ac_fn_c_try_compile "$LINENO"; then :
gl_optind_min=1
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--- 12234,12240 ----
return 0;
}
_ACEOF
! if ac_fn_c_try_link "$LINENO"; then :
gl_optind_min=1
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
***************
*** 11713,11719 ****
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
gl_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
--- 12255,12262 ----
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
! rm -f core conftest.err conftest.$ac_objext \
! conftest$ac_exeext conftest.$ac_ext
gl_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
***************
*** 11736,11757 ****
main ()
{
{
! int argc = 0;
! char *argv[10];
int c;
- argv[argc++] = "program";
- argv[argc++] = "-a";
- argv[argc++] = "foo";
- argv[argc++] = "bar";
- argv[argc] = NULL;
optind = OPTIND_MIN;
opterr = 0;
! c = getopt (argc, argv, "ab");
if (!(c == 'a'))
return 1;
! c = getopt (argc, argv, "ab");
if (!(c == -1))
return 2;
if (!(optind == 2))
--- 12279,12298 ----
main ()
{
{
! static char program[] = "program";
! static char a[] = "-a";
! static char foo[] = "foo";
! static char bar[] = "bar";
! char *argv[] = { program, a, foo, bar, NULL };
int c;
optind = OPTIND_MIN;
opterr = 0;
! c = getopt (4, argv, "ab");
if (!(c == 'a'))
return 1;
! c = getopt (4, argv, "ab");
if (!(c == -1))
return 2;
if (!(optind == 2))
***************
*** 11759,11780 ****
}
/* Some internal state exists at this point. */
{
! int argc = 0;
! char *argv[10];
int c;
- argv[argc++] = "program";
- argv[argc++] = "donald";
- argv[argc++] = "-p";
- argv[argc++] = "billy";
- argv[argc++] = "duck";
- argv[argc++] = "-a";
- argv[argc++] = "bar";
- argv[argc] = NULL;
optind = OPTIND_MIN;
opterr = 0;
! c = getopt (argc, argv, "+abp:q:");
if (!(c == -1))
return 4;
if (!(strcmp (argv[0], "program") == 0))
--- 12300,12319 ----
}
/* Some internal state exists at this point. */
{
! static char program[] = "program";
! static char donald[] = "donald";
! static char p[] = "-p";
! static char billy[] = "billy";
! static char duck[] = "duck";
! static char a[] = "-a";
! static char bar[] = "bar";
! char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
int c;
optind = OPTIND_MIN;
opterr = 0;
! c = getopt (7, argv, "+abp:q:");
if (!(c == -1))
return 4;
if (!(strcmp (argv[0], "program") == 0))
***************
*** 11796,11802 ****
}
/* Detect MacOS 10.5, AIX 7.1 bug. */
{
! char *argv[3] = { "program", "-ab", NULL };
optind = OPTIND_MIN;
opterr = 0;
if (getopt (2, argv, "ab:") != 'a')
--- 12335,12343 ----
}
/* Detect MacOS 10.5, AIX 7.1 bug. */
{
! static char program[] = "program";
! static char ab[] = "-ab";
! char *argv[3] = { program, ab, NULL };
optind = OPTIND_MIN;
opterr = 0;
if (getopt (2, argv, "ab:") != 'a')
***************
*** 11866,11893 ****
#include
#include
! int
! main ()
{
!
! int result = 0;
! /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
! and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
! OSF/1 5.1, Solaris 10. */
{
! char *myargv[3];
! myargv[0] = "conftest";
! myargv[1] = "-+";
! myargv[2] = 0;
opterr = 0;
! if (getopt (2, myargv, "+a") != '?')
result |= 1;
}
/* This code succeeds on glibc 2.8, mingw,
and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
{
! char *argv[] = { "program", "-p", "foo", "bar", NULL };
optind = 1;
if (getopt (4, argv, "p::") != 'p')
--- 12407,12553 ----
#include
#include
! #include
! #if defined __MACH__ && defined __APPLE__
! /* Avoid a crash on MacOS X. */
! #include
! #include
! #include
! #include
! #include
! #include
! /* The exception port on which our thread listens. */
! static mach_port_t our_exception_port;
! /* The main function of the thread listening for exceptions of type
! EXC_BAD_ACCESS. */
! static void *
! mach_exception_thread (void *arg)
{
! /* Buffer for a message to be received. */
! struct {
! mach_msg_header_t head;
! mach_msg_body_t msgh_body;
! char data[1024];
! } msg;
! mach_msg_return_t retval;
! /* Wait for a message on the exception port. */
! retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
! our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
! if (retval != MACH_MSG_SUCCESS)
! abort ();
! exit (1);
! }
! static void
! nocrash_init (void)
! {
! mach_port_t self = mach_task_self ();
! /* Allocate a port on which the thread shall listen for exceptions. */
! if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
! == KERN_SUCCESS) {
! /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
! if (mach_port_insert_right (self, our_exception_port, our_exception_port,
! MACH_MSG_TYPE_MAKE_SEND)
! == KERN_SUCCESS) {
! /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
! for us. */
! exception_mask_t mask = EXC_MASK_BAD_ACCESS;
! /* Create the thread listening on the exception port. */
! pthread_attr_t attr;
! pthread_t thread;
! if (pthread_attr_init (&attr) == 0
! && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
! && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
! pthread_attr_destroy (&attr);
! /* Replace the exception port info for these exceptions with our own.
! Note that we replace the exception port for the entire task, not only
! for a particular thread. This has the effect that when our exception
! port gets the message, the thread specific exception port has already
! been asked, and we don't need to bother about it.
! See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
! task_set_exception_ports (self, mask, our_exception_port,
! EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
! }
! }
! }
! }
! #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
! /* Avoid a crash on native Windows. */
! #define WIN32_LEAN_AND_MEAN
! #include
! #include
! static LONG WINAPI
! exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
! {
! switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
! {
! case EXCEPTION_ACCESS_VIOLATION:
! case EXCEPTION_IN_PAGE_ERROR:
! case EXCEPTION_STACK_OVERFLOW:
! case EXCEPTION_GUARD_PAGE:
! case EXCEPTION_PRIV_INSTRUCTION:
! case EXCEPTION_ILLEGAL_INSTRUCTION:
! case EXCEPTION_DATATYPE_MISALIGNMENT:
! case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
! case EXCEPTION_NONCONTINUABLE_EXCEPTION:
! exit (1);
! }
! return EXCEPTION_CONTINUE_SEARCH;
! }
! static void
! nocrash_init (void)
! {
! SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
! }
! #else
! /* Avoid a crash on POSIX systems. */
! #include
! /* A POSIX signal handler. */
! static void
! exception_handler (int sig)
! {
! exit (1);
! }
! static void
! nocrash_init (void)
! {
! #ifdef SIGSEGV
! signal (SIGSEGV, exception_handler);
! #endif
! #ifdef SIGBUS
! signal (SIGBUS, exception_handler);
! #endif
! }
! #endif
!
!
! int
! main ()
! {
!
! int result = 0;
!
! nocrash_init();
!
! /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
! and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
! OSF/1 5.1, Solaris 10. */
{
! static char conftest[] = "conftest";
! static char plus[] = "-+";
! char *argv[3] = { conftest, plus, NULL };
opterr = 0;
! if (getopt (2, argv, "+a") != '?')
result |= 1;
}
/* This code succeeds on glibc 2.8, mingw,
and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
{
! static char program[] = "program";
! static char p[] = "-p";
! static char foo[] = "foo";
! static char bar[] = "bar";
! char *argv[] = { program, p, foo, bar, NULL };
optind = 1;
if (getopt (4, argv, "p::") != 'p')
***************
*** 11901,11907 ****
}
/* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
{
! char *argv[] = { "program", "foo", "-p", NULL };
optind = 0;
if (getopt (3, argv, "-p") != 1)
result |= 16;
--- 12561,12570 ----
}
/* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
{
! static char program[] = "program";
! static char foo[] = "foo";
! static char p[] = "-p";
! char *argv[] = { program, foo, p, NULL };
optind = 0;
if (getopt (3, argv, "-p") != 1)
result |= 16;
***************
*** 11910,11922 ****
}
/* This code fails on glibc 2.11. */
{
! char *argv[] = { "program", "-b", "-a", NULL };
optind = opterr = 0;
if (getopt (3, argv, "+:a:b") != 'b')
result |= 64;
else if (getopt (3, argv, "+:a:b") != ':')
result |= 64;
}
return result;
;
--- 12573,12598 ----
}
/* This code fails on glibc 2.11. */
{
! static char program[] = "program";
! static char b[] = "-b";
! static char a[] = "-a";
! char *argv[] = { program, b, a, NULL };
optind = opterr = 0;
if (getopt (3, argv, "+:a:b") != 'b')
result |= 64;
else if (getopt (3, argv, "+:a:b") != ':')
result |= 64;
}
+ /* This code dumps core on glibc 2.14. */
+ {
+ static char program[] = "program";
+ static char w[] = "-W";
+ static char dummy[] = "dummy";
+ char *argv[] = { program, w, dummy, NULL };
+ optind = opterr = 1;
+ if (getopt (3, argv, "W;") != 'W')
+ result |= 128;
+ }
return result;
;
***************
*** 12071,12083 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/sys/time.h#{
! s#.*"\(.*/sys/time.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
else
gl_cv_next_sys_time_h='<'sys/time.h'>'
fi
--- 12747,12770 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/time.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/time.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_time_h='<'sys/time.h'>'
fi
***************
*** 12106,12111 ****
--- 12793,12825 ----
HAVE_SYS_TIME_H=0
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
+
+ fi
+
+ done
+
+ fi
+ if test "$ac_cv_header_winsock2_h" = yes; then
+ HAVE_WINSOCK2_H=1
+ UNISTD_H_HAVE_WINSOCK2_H=1
+ SYS_IOCTL_H_HAVE_WINSOCK2_H=1
+ else
+ HAVE_WINSOCK2_H=0
+ fi
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
$as_echo_n "checking for struct timeval... " >&6; }
if ${gl_cv_sys_struct_timeval+:} false; then :
***************
*** 12117,12122 ****
--- 12831,12839 ----
#include
#endif
#include
+ #if HAVE_WINSOCK2_H
+ # include
+ #endif
int
main ()
***************
*** 12174,12180 ****
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
--- 12891,12897 ----
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
***************
*** 12200,12207 ****
-
-
{ $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 :
--- 12917,12922 ----
***************
*** 13187,13192 ****
--- 13902,13909 ----
+ GNULIB_FFSL=0;
+ GNULIB_FFSLL=0;
GNULIB_MEMCHR=0;
GNULIB_MEMMEM=0;
GNULIB_MEMPCPY=0;
***************
*** 13223,13229 ****
GNULIB_STRSIGNAL=0;
GNULIB_STRVERSCMP=0;
HAVE_MBSLEN=0;
! HAVE_MEMCHR=1;
HAVE_DECL_MEMMEM=1;
HAVE_MEMPCPY=1;
HAVE_DECL_MEMRCHR=1;
--- 13940,13948 ----
GNULIB_STRSIGNAL=0;
GNULIB_STRVERSCMP=0;
HAVE_MBSLEN=0;
! HAVE_FFSL=1;
! HAVE_FFSLL=1;
! HAVE_MEMCHR=1;
HAVE_DECL_MEMMEM=1;
HAVE_MEMPCPY=1;
HAVE_DECL_MEMRCHR=1;
***************
*** 13282,13293 ****
#include
#ifdef MAP_ANONYMOUS
! I cant identify this map.
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! $EGREP "I cant identify this map." >/dev/null 2>&1; then :
gl_have_mmap_anonymous=yes
fi
rm -f conftest*
--- 14001,14012 ----
#include
#ifdef MAP_ANONYMOUS
! I cant identify this map
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! $EGREP "I cant identify this map" >/dev/null 2>&1; then :
gl_have_mmap_anonymous=yes
fi
rm -f conftest*
***************
*** 13298,13309 ****
#include
#ifdef MAP_ANON
! I cant identify this map.
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! $EGREP "I cant identify this map." >/dev/null 2>&1; then :
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
--- 14017,14028 ----
#include
#ifdef MAP_ANON
! I cant identify this map
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! $EGREP "I cant identify this map" >/dev/null 2>&1; then :
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
***************
*** 13427,13630 ****
- # Check whether --enable-largefile was given.
- if test "${enable_largefile+set}" = set; then :
- enableval=$enable_largefile;
- fi
-
- if test "$enable_largefile" != no; then
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
- $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
- if ${ac_cv_sys_largefile_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_sys_largefile_CC=no
- if test "$GCC" != yes; then
- ac_save_CC=$CC
- while :; do
- # IRIX 6.2 and later do not support large files by default,
- # so use the C compiler's -n32 option if that helps.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
-
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- break
- fi
- rm -f core conftest.err conftest.$ac_objext
- CC="$CC -n32"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_largefile_CC=' -n32'; break
- fi
- rm -f core conftest.err conftest.$ac_objext
- break
- done
- CC=$ac_save_CC
- rm -f conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
- $as_echo "$ac_cv_sys_largefile_CC" >&6; }
- if test "$ac_cv_sys_largefile_CC" != no; then
- CC=$CC$ac_cv_sys_largefile_CC
- fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
- $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
- if ${ac_cv_sys_file_offset_bits+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
-
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_file_offset_bits=no; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _FILE_OFFSET_BITS 64
- #include
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
-
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_file_offset_bits=64; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_sys_file_offset_bits=unknown
- break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
- $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
- case $ac_cv_sys_file_offset_bits in #(
- no | unknown) ;;
- *)
- cat >>confdefs.h <<_ACEOF
- #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
- _ACEOF
- ;;
- esac
- rm -rf conftest*
- if test $ac_cv_sys_file_offset_bits = unknown; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
- $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
- if ${ac_cv_sys_large_files+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
-
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_large_files=no; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _LARGE_FILES 1
- #include
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
-
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_large_files=1; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_sys_large_files=unknown
- break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
- $as_echo "$ac_cv_sys_large_files" >&6; }
- case $ac_cv_sys_large_files in #(
- no | unknown) ;;
- *)
- cat >>confdefs.h <<_ACEOF
- #define _LARGE_FILES $ac_cv_sys_large_files
- _ACEOF
- ;;
- esac
- rm -rf conftest*
- fi
- fi
-
--- 14146,14151 ----
***************
*** 13687,14041 ****
! GNULIB_SOCKET=0;
! GNULIB_CONNECT=0;
! GNULIB_ACCEPT=0;
! GNULIB_BIND=0;
! GNULIB_GETPEERNAME=0;
! GNULIB_GETSOCKNAME=0;
! GNULIB_GETSOCKOPT=0;
! GNULIB_LISTEN=0;
! GNULIB_RECV=0;
! GNULIB_SEND=0;
! GNULIB_RECVFROM=0;
! GNULIB_SENDTO=0;
! GNULIB_SETSOCKOPT=0;
! GNULIB_SHUTDOWN=0;
! GNULIB_ACCEPT4=0;
! HAVE_STRUCT_SOCKADDR_STORAGE=1;
! HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
!
! HAVE_SA_FAMILY_T=1;
! HAVE_ACCEPT4=1;
!
!
! 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
!
! fi
!
! done
!
! fi
!
!
!
!
!
!
! case "$host_os" in
! osf*)
!
! $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
!
! ;;
! esac
!
! { $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
!
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
! #include
! int
! main ()
! {
!
! ;
! return 0;
! }
! _ACEOF
! if ac_fn_c_try_compile "$LINENO"; then :
! gl_cv_header_sys_socket_h_selfcontained=yes
! else
! gl_cv_header_sys_socket_h_selfcontained=no
! fi
! rm -f core conftest.err conftest.$ac_objext 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; }
! 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
!
! 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
!
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
! #include
! int
! main ()
! {
! int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
! ;
! return 0;
! }
! _ACEOF
! if ac_fn_c_try_compile "$LINENO"; then :
! gl_cv_header_sys_socket_h_shut=yes
! else
! gl_cv_header_sys_socket_h_shut=no
! fi
! rm -f core conftest.err conftest.$ac_objext 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; }
! if test $gl_cv_header_sys_socket_h_shut = no; then
! SYS_SOCKET_H='sys/socket.h'
! fi
! fi
! fi
! # We need to check for ws2tcpip.h now.
!
!
!
!
!
!
!
!
!
!
!
! 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
!
! if test $ac_cv_header_sys_socket_h = yes; then
!
!
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
! #include
!
! _ACEOF
! case "$host_os" in
! aix*) gl_absname_cpp="$ac_cpp -C" ;;
! *) gl_absname_cpp="$ac_cpp" ;;
! esac
! gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/sys/socket.h#{
! s#.*"\(.*/sys/socket.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
! else
! gl_cv_next_sys_socket_h='<'sys/socket.h'>'
! fi
!
!
! 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; }
! fi
! NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
!
! if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
! # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
! gl_next_as_first_directive='<'sys/socket.h'>'
! else
! # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
! gl_next_as_first_directive=$gl_cv_next_sys_socket_h
! fi
! NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
!
!
!
!
! if test $ac_cv_header_sys_socket_h = yes; then
! HAVE_SYS_SOCKET_H=1
! HAVE_WS2TCPIP_H=0
! else
! HAVE_SYS_SOCKET_H=0
! if test $ac_cv_header_ws2tcpip_h = yes; then
! HAVE_WS2TCPIP_H=1
! else
! HAVE_WS2TCPIP_H=0
! fi
! fi
!
!
!
! ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
! /* 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. */
! #include
! #ifdef HAVE_SYS_SOCKET_H
! #include
! #endif
! #ifdef HAVE_WS2TCPIP_H
! #include
! #endif
!
! "
! if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
!
! cat >>confdefs.h <<_ACEOF
! #define HAVE_STRUCT_SOCKADDR_STORAGE 1
! _ACEOF
!
!
! fi
! ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
! /* 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. */
! #include
! #ifdef HAVE_SYS_SOCKET_H
! #include
! #endif
! #ifdef HAVE_WS2TCPIP_H
! #include
! #endif
!
! "
! if test "x$ac_cv_type_sa_family_t" = xyes; then :
!
! cat >>confdefs.h <<_ACEOF
! #define HAVE_SA_FAMILY_T 1
! _ACEOF
!
!
! fi
!
! if test $ac_cv_type_struct_sockaddr_storage = no; then
! HAVE_STRUCT_SOCKADDR_STORAGE=0
! fi
! if test $ac_cv_type_sa_family_t = no; then
! HAVE_SA_FAMILY_T=0
! fi
! if test $ac_cv_type_struct_sockaddr_storage != no; then
! ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include
! #ifdef HAVE_SYS_SOCKET_H
! #include
! #endif
! #ifdef HAVE_WS2TCPIP_H
! #include
! #endif
!
! "
! 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
!
!
! else
! HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
! fi
!
! fi
! if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
! || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
! SYS_SOCKET_H='sys/socket.h'
! 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
!
! fi
!
! done
!
! fi
! if test "$ac_cv_header_winsock2_h" = yes; then
! HAVE_WINSOCK2_H=1
! UNISTD_H_HAVE_WINSOCK2_H=1
! SYS_IOCTL_H_HAVE_WINSOCK2_H=1
! else
! HAVE_WINSOCK2_H=0
! fi
!
!
!
!
! for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
! as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
! $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
! if eval \${$as_gl_Symbol+:} false; then :
! $as_echo_n "(cached) " >&6
! else
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
!
! /* Some systems require prerequisite headers. */
! #include
! #include
!
! int
! main ()
! {
! #undef $gl_func
! (void) $gl_func;
! ;
! return 0;
! }
! _ACEOF
! if ac_fn_c_try_compile "$LINENO"; then :
! eval "$as_gl_Symbol=yes"
! else
! eval "$as_gl_Symbol=no"
! fi
! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! fi
! eval ac_res=\$$as_gl_Symbol
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! $as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
! cat >>confdefs.h <<_ACEOF
! #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
! _ACEOF
!
! eval ac_cv_have_decl_$gl_func=yes
! fi
! done
!
!
!
GNULIB_SELECT=0;
! REPLACE_SELECT=0;
--- 14208,14218 ----
! GNULIB_PSELECT=0;
GNULIB_SELECT=0;
! HAVE_PSELECT=1;
! REPLACE_PSELECT=0;
! REPLACE_SELECT=0;
***************
*** 14088,14097 ****
#undef memset
#define memset nonexistent_memset
! extern void *memset (void *, int, unsigned long);
#undef bzero
#define bzero nonexistent_bzero
! extern void bzero (void *, unsigned long);
fd_set fds;
FD_ZERO (&fds);
--- 14265,14282 ----
#undef memset
#define memset nonexistent_memset
! extern
! #ifdef __cplusplus
! "C"
! #endif
! void *memset (void *, int, unsigned long);
#undef bzero
#define bzero nonexistent_bzero
! extern
! #ifdef __cplusplus
! "C"
! #endif
! void bzero (void *, unsigned long);
fd_set fds;
FD_ZERO (&fds);
***************
*** 14145,14157 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/sys/select.h#{
! s#.*"\(.*/sys/select.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
else
gl_cv_next_sys_select_h='<'sys/select.h'>'
fi
--- 14330,14353 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/select.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/select.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_select_h='<'sys/select.h'>'
fi
***************
*** 14210,14216 ****
! for gl_func in select; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
--- 14406,14412 ----
! for gl_func in pselect select; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
***************
*** 14246,14252 ****
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
--- 14442,14448 ----
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
***************
*** 14471,14510 ****
esac
else
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
#include
! #include
! #if HAVE_SYS_SELECT_H
! #include
! #endif
! int main ()
{
! struct timeval timeout;
! timeout.tv_sec = 0;
! timeout.tv_usec = 5;
! return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
}
_ACEOF
! if ac_fn_c_try_run "$LINENO"; then :
! gl_cv_func_select_supports0=yes
else
! gl_cv_func_select_supports0=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
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
- $as_echo "$gl_cv_func_select_supports0" >&6; }
- case "$gl_cv_func_select_supports0" in
- *yes) ;;
- *) REPLACE_SELECT=1 ;;
- esac
- fi
--- 14667,14778 ----
esac
else
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
!
! #include
! #include
! #if HAVE_SYS_SELECT_H
! #include
! #endif
! int main ()
! {
! struct timeval timeout;
! timeout.tv_sec = 0;
! timeout.tv_usec = 5;
! return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
! }
! _ACEOF
! if ac_fn_c_try_run "$LINENO"; then :
! gl_cv_func_select_supports0=yes
! else
! gl_cv_func_select_supports0=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
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
! $as_echo "$gl_cv_func_select_supports0" >&6; }
! case "$gl_cv_func_select_supports0" in
! *yes) ;;
! *) REPLACE_SELECT=1 ;;
! esac
! fi
!
! LIB_SELECT="$LIBSOCKET"
! if test $REPLACE_SELECT = 1; then
! case "$host_os" in
! mingw*)
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
!
! #define WIN32_LEAN_AND_MEAN
! #include
! int
! main ()
! {
! MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
! return 0;
! }
! _ACEOF
! if ac_fn_c_try_link "$LINENO"; then :
!
! else
! LIB_SELECT="$LIB_SELECT -luser32"
! fi
! rm -f core conftest.err conftest.$ac_objext \
! conftest$ac_exeext conftest.$ac_ext
! ;;
! esac
! fi
!
!
!
!
! { $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
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
#include
! int
! main ()
{
! typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
! ;
! return 0;
}
_ACEOF
! if ac_fn_c_try_compile "$LINENO"; then :
! gl_cv_promoted_mode_t='int'
else
! gl_cv_promoted_mode_t='mode_t'
fi
! rm -f core conftest.err conftest.$ac_objext 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; }
+
+ cat >>confdefs.h <<_ACEOF
+ #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
+ _ACEOF
+
+
+
+
+
+
+
+
***************
*** 14524,14530 ****
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
! #include
#include
int
--- 14792,14802 ----
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
! #if HAVE_UNISTD_H
! # include
! #else /* on Windows with MSVC */
! # include
! #endif
#include
int
***************
*** 14592,14598 ****
/* end confdefs.h. */
#include
! #include
int main ()
{
int result = 0;
--- 14864,14875 ----
/* end confdefs.h. */
#include
! #if HAVE_UNISTD_H
! # include
! #else /* on Windows with MSVC */
! # include
! # include
! #endif
int main ()
{
int result = 0;
***************
*** 14644,14655 ****
fi
!
!
GNULIB_SIGNAL_H_SIGPIPE=0;
GNULIB_SIGPROCMASK=0;
GNULIB_SIGACTION=0;
HAVE_POSIX_SIGNALBLOCKING=1;
HAVE_SIGSET_T=1;
HAVE_SIGINFO_T=1;
HAVE_SIGACTION=1;
--- 14921,14934 ----
fi
! GNULIB_PTHREAD_SIGMASK=0;
! GNULIB_RAISE=0;
GNULIB_SIGNAL_H_SIGPIPE=0;
GNULIB_SIGPROCMASK=0;
GNULIB_SIGACTION=0;
HAVE_POSIX_SIGNALBLOCKING=1;
+ HAVE_PTHREAD_SIGMASK=1;
+ HAVE_RAISE=1;
HAVE_SIGSET_T=1;
HAVE_SIGINFO_T=1;
HAVE_SIGACTION=1;
***************
*** 14658,14664 ****
--- 14937,14966 ----
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
HAVE_SIGHANDLER_T=1;
+ REPLACE_PTHREAD_SIGMASK=0;
+ REPLACE_RAISE=0;
+
+ ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
+ #include
+ /* Mingw defines sigset_t not in , but in . */
+ #include
+
+ "
+ if test "x$ac_cv_type_sigset_t" = xyes; then :
+
+ cat >>confdefs.h <<_ACEOF
+ #define HAVE_SIGSET_T 1
+ _ACEOF
+
+ gl_cv_type_sigset_t=yes
+ else
+ gl_cv_type_sigset_t=no
+ fi
+
+ if test $gl_cv_type_sigset_t != yes; then
+ HAVE_SIGSET_T=0
+ fi
***************
*** 14667,14672 ****
--- 14969,14991 ----
+
+
+ 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
+
+ fi
+
+ done
+
+ fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
if ${ac_cv_header_stdbool_h+:} false; then :
***************
*** 14864,14876 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/stdint.h#{
! s#.*"\(.*/stdint.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
else
gl_cv_next_stdint_h='<'stdint.h'>'
fi
--- 15183,15206 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_stdint_h='<'stdint.h'>'
fi
***************
*** 15494,15499 ****
--- 15824,15833 ----
+ if test $BITSIZEOF_WINT_T -lt 32; then
+ BITSIZEOF_WINT_T=32
+ fi
+
STDINT_H=stdint.h
fi
***************
*** 15507,15512 ****
--- 15841,15852 ----
+ GNULIB_FFS=0;
+ HAVE_FFS=1;
+ HAVE_STRCASECMP=1;
+ HAVE_DECL_STRNCASECMP=1;
+
+
ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
if test "x$ac_cv_have_decl_strdup" = xyes; then :
***************
*** 15519,15524 ****
--- 15859,15915 ----
#define HAVE_DECL_STRDUP $ac_have_decl
_ACEOF
+
+ 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 :
+ gl_cv_func_strerror_0_works="guessing no"
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include
+ #include
+
+ int
+ main ()
+ {
+ int result = 0;
+ char *str;
+ errno = 0;
+ str = strerror (0);
+ if (!*str) result |= 1;
+ if (errno) result |= 2;
+ if (strstr (str, "nknown") || strstr (str, "ndefined"))
+ result |= 4;
+ return result;
+ ;
+ return 0;
+ }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_func_strerror_0_works=yes
+ else
+ gl_cv_func_strerror_0_works=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
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
+ $as_echo "$gl_cv_func_strerror_0_works" >&6; }
+ if test "$gl_cv_func_strerror_0_works" != yes; then
+ REPLACE_STRERROR_0=1
+
+ $as_echo "#define REPLACE_STRERROR_0 1" >>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 :
***************
*** 15662,15674 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/string.h#{
! s#.*"\(.*/string.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
fi
--- 16053,16076 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'string.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'string.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
fi
***************
*** 15691,15697 ****
! for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
--- 16093,16099 ----
! for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
***************
*** 15721,15727 ****
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
--- 16123,16257 ----
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
! cat >>confdefs.h <<_ACEOF
! #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
! _ACEOF
!
! eval ac_cv_have_decl_$gl_func=yes
! fi
! done
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
! 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
!
! if test $ac_cv_header_strings_h = yes; then
!
!
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
! #include
!
! _ACEOF
! case "$host_os" in
! aix*) gl_absname_cpp="$ac_cpp -C" ;;
! *) gl_absname_cpp="$ac_cpp" ;;
! esac
!
! case "$host_os" in
! mingw*)
! gl_dirsep_regex='[/\\]'
! ;;
! *)
! gl_dirsep_regex='/'
! ;;
! esac
!
! gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'strings.h|{
! s|.*"\(.*'"${gl_dirsep_regex}"'strings.h\)".*|\1|
! s|^/[^/]|//&|
! p
! q
! }'
! gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
! else
! gl_cv_next_strings_h='<'strings.h'>'
! fi
!
!
! fi
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
! $as_echo "$gl_cv_next_strings_h" >&6; }
! fi
! NEXT_STRINGS_H=$gl_cv_next_strings_h
!
! if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
! # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
! gl_next_as_first_directive='<'strings.h'>'
! else
! # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
! gl_next_as_first_directive=$gl_cv_next_strings_h
! fi
! NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
!
!
!
!
! if test $ac_cv_header_strings_h = yes; then
! HAVE_STRINGS_H=1
! else
! HAVE_STRINGS_H=0
! fi
!
!
!
! for gl_func in ffs strcasecmp strncasecmp; do
! as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
! $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
! if eval \${$as_gl_Symbol+:} false; then :
! $as_echo_n "(cached) " >&6
! else
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
!
! /* Minix 3.1.8 has a bug: must be included before
! . */
! #include
! #include
!
! int
! main ()
! {
! #undef $gl_func
! (void) $gl_func;
! ;
! return 0;
! }
! _ACEOF
! if ac_fn_c_try_compile "$LINENO"; then :
! eval "$as_gl_Symbol=yes"
! else
! eval "$as_gl_Symbol=no"
! fi
! rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! fi
! eval ac_res=\$$as_gl_Symbol
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! $as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
***************
*** 15734,15739 ****
--- 16264,16289 ----
+ GNULIB_SOCKET=0;
+ GNULIB_CONNECT=0;
+ GNULIB_ACCEPT=0;
+ GNULIB_BIND=0;
+ GNULIB_GETPEERNAME=0;
+ GNULIB_GETSOCKNAME=0;
+ GNULIB_GETSOCKOPT=0;
+ GNULIB_LISTEN=0;
+ GNULIB_RECV=0;
+ GNULIB_SEND=0;
+ GNULIB_RECVFROM=0;
+ GNULIB_SENDTO=0;
+ GNULIB_SETSOCKOPT=0;
+ GNULIB_SHUTDOWN=0;
+ GNULIB_ACCEPT4=0;
+ HAVE_STRUCT_SOCKADDR_STORAGE=1;
+ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
+
+ HAVE_SA_FAMILY_T=1;
+ HAVE_ACCEPT4=1;
{ $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; }
***************
*** 15792,15797 ****
--- 16342,16349 ----
+
+
{ $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 :
***************
*** 15918,15930 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/time.h#{
! s#.*"\(.*/time.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
fi
--- 16470,16493 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
fi
***************
*** 16145,16151 ****
! { $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
--- 16708,16720 ----
!
!
!
!
!
!
! { $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
***************
*** 16188,16202 ****
#include
#include
static char buf[100];
int main ()
{
strcpy (buf, "ABCDEF");
! if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
return 1;
! if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
return 2;
! if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
return 3;
return 0;
}
--- 16757,16785 ----
#include
#include
+ #if HAVE_SNPRINTF
+ # define my_snprintf snprintf
+ #else
+ # include
+ static int my_snprintf (char *buf, int size, const char *format, ...)
+ {
+ va_list args;
+ int ret;
+ va_start (args, format);
+ ret = vsnprintf (buf, size, format, args);
+ va_end (args);
+ return ret;
+ }
+ #endif
static char buf[100];
int main ()
{
strcpy (buf, "ABCDEF");
! if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
return 1;
! if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
return 2;
! if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
return 3;
return 0;
}
***************
*** 16495,16500 ****
--- 17078,17099 ----
+
+
+
+
+ GNULIB_CHDIR=1
+
+
+
+
+
+ $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
$as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
if ${gl_cv_have_arbitrary_file_name_length_limit+:} false; then :
***************
*** 16502,16510 ****
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
! #include
#include
! #if defined PATH_MAX || defined MAXPATHLEN
have_arbitrary_file_name_length_limit
#endif
_ACEOF
--- 17101,17128 ----
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
!
! /* Arrange to define PATH_MAX, like "pathmax.h" does. */
! #if HAVE_UNISTD_H
! # include
! #endif
#include
! #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
! # include
! #endif
! #if !defined PATH_MAX && defined MAXPATHLEN
! # define PATH_MAX MAXPATHLEN
! #endif
! #ifdef __hpux
! # undef PATH_MAX
! # define PATH_MAX 1024
! #endif
! #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
! # undef PATH_MAX
! # define PATH_MAX 260
! #endif
!
! #ifdef PATH_MAX
have_arbitrary_file_name_length_limit
#endif
_ACEOF
***************
*** 16584,16589 ****
--- 17202,17212 ----
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_CLOSE=1
+ fi
+
+
***************
*** 16611,16619 ****
if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
! REPLACE_CLOSE=1
--- 17234,17258 ----
if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
+ REPLACE_CLOSE=1
+ fi
+
+
+ if test $REPLACE_CLOSE = 0; then
+
+
+
+ if test $ac_cv_func_fchdir = no; then
+ HAVE_FCHDIR=0
+ fi
+ if test $HAVE_FCHDIR = 0; then
+ REPLACE_CLOSE=1
+ fi
+ fi
!
! if test $REPLACE_CLOSE = 1; then
***************
*** 16624,16659 ****
gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
- REPLACE_FCLOSE=1
- gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
fi
- GNULIB_CLOSE=1
! $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
--- 17263,17338 ----
gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
+ fi
+
+ GNULIB_CLOSE=1
+ $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
+
+
+ for ac_func in closedir
+ do :
+ ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
+ if test "x$ac_cv_func_closedir" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+ #define HAVE_CLOSEDIR 1
+ _ACEOF
+
+ fi
+ done
+
+ if test $ac_cv_func_closedir = no; then
+ HAVE_CLOSEDIR=0
+ fi
+
+
+
+
+ if test $ac_cv_func_fchdir = no; then
+ HAVE_FCHDIR=0
+ fi
+
+ if test $HAVE_FCHDIR = 0; then
+ REPLACE_CLOSEDIR=1
fi
+ if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
+
+ gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
+
+ fi
+
!
! GNULIB_CLOSEDIR=1
!
!
!
!
!
! $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
***************
*** 16910,16922 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/dirent.h#{
! s#.*"\(.*/dirent.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
else
gl_cv_next_dirent_h='<'dirent.h'>'
fi
--- 17589,17612 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'dirent.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'dirent.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_dirent_h='<'dirent.h'>'
fi
***************
*** 16940,16948 ****
! for gl_func in alphasort dirfd fdopendir scandir; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
--- 17630,17644 ----
+ if test $ac_cv_header_dirent_h = yes; then
+ HAVE_DIRENT_H=1
+ else
+ HAVE_DIRENT_H=0
+ fi
+
! for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
***************
*** 16972,16978 ****
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
--- 17668,17674 ----
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
***************
*** 16999,17005 ****
done
ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include
! #include
"
if test "x$ac_cv_have_decl_dirfd" = xyes; then :
ac_have_decl=1
--- 17695,17701 ----
done
ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include
! #include
"
if test "x$ac_cv_have_decl_dirfd" = xyes; then :
ac_have_decl=1
***************
*** 17171,17182 ****
! $as_echo "#define HAVE_DUP2 1" >>confdefs.h
if test $HAVE_DUP2 = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
$as_echo_n "checking whether dup2 works... " >&6; }
--- 17867,17926 ----
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_DUP=1
+ fi
!
!
! if test $ac_cv_func_fchdir = no; then
! HAVE_FCHDIR=0
! fi
!
! if test $HAVE_FCHDIR = 0; then
! REPLACE_DUP=1
! fi
!
!
! if test $REPLACE_DUP = 1; then
!
!
!
!
!
!
!
!
! gl_LIBOBJS="$gl_LIBOBJS dup.$ac_objext"
!
!
!
!
! fi
!
!
!
!
!
! GNULIB_DUP=1
!
!
!
!
!
! $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
!
+
+
+
+
+ $as_echo "#define HAVE_DUP2 1" >>confdefs.h
+
+
if test $HAVE_DUP2 = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
$as_echo_n "checking whether dup2 works... " >&6; }
***************
*** 17209,17221 ****
main ()
{
int result = 0;
! #if HAVE_FCNTL
if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
result |= 1;
! #endif HAVE_FCNTL
if (dup2 (1, 1) == 0)
result |= 2;
! #if HAVE_FCNTL
if (fcntl (1, F_GETFD) != FD_CLOEXEC)
result |= 4;
#endif
--- 17953,17965 ----
main ()
{
int result = 0;
! #ifdef FD_CLOEXEC
if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
result |= 1;
! #endif
if (dup2 (1, 1) == 0)
result |= 2;
! #ifdef FD_CLOEXEC
if (fcntl (1, F_GETFD) != FD_CLOEXEC)
result |= 4;
#endif
***************
*** 17231,17374 ****
return 0;
}
! _ACEOF
! if ac_fn_c_try_run "$LINENO"; then :
! gl_cv_func_dup2_works=yes
! else
! gl_cv_func_dup2_works=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
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
! $as_echo "$gl_cv_func_dup2_works" >&6; }
! if test "$gl_cv_func_dup2_works" = no; then
!
!
!
! if test $ac_cv_func_dup2 = yes; then
! REPLACE_DUP2=1
! fi
!
!
!
!
!
!
!
!
! gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
!
!
! fi
! fi
!
!
!
!
!
!
! GNULIB_DUP2=1
!
!
!
!
!
! $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
!
!
!
!
!
! { $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
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! /* end confdefs.h. */
! #include
! int
! main ()
! {
! error_at_line (0, 0, "", 0, "an error occurred");
! ;
! return 0;
! }
! _ACEOF
! if ac_fn_c_try_link "$LINENO"; then :
! ac_cv_lib_error_at_line=yes
! else
! ac_cv_lib_error_at_line=no
! fi
! rm -f core conftest.err conftest.$ac_objext \
! 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; }
!
! if test $ac_cv_lib_error_at_line = no; then
!
!
!
!
!
!
!
!
! gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
!
!
!
!
! :
!
! fi
!
!
! XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
!
!
!
! XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
!
!
!
!
!
!
!
! if test $ac_cv_have_decl_fchdir = no; then
! HAVE_DECL_FCHDIR=0
! fi
!
!
! if test $ac_cv_func_fchdir = no; then
! HAVE_FCHDIR=0
!
!
!
!
!
- gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
- :
- $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
! REPLACE_OPENDIR=1
! REPLACE_CLOSEDIR=1
! REPLACE_DUP=1
- REPLACE_OPEN=1
--- 17975,18012 ----
return 0;
}
! _ACEOF
! if ac_fn_c_try_run "$LINENO"; then :
! gl_cv_func_dup2_works=yes
! else
! gl_cv_func_dup2_works=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
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
+ $as_echo "$gl_cv_func_dup2_works" >&6; }
+ if test "$gl_cv_func_dup2_works" = no; then
+ REPLACE_DUP2=1
+ fi
+ fi
! if test $ac_cv_func_fchdir = no; then
! HAVE_FCHDIR=0
! fi
+ if test $HAVE_FCHDIR = 0; then
+ REPLACE_DUP2=1
+ fi
+ if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
***************
*** 17376,17405 ****
- gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
- :
! REPLACE_CLOSE=1
- gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
! REPLACE_FCLOSE=1
--- 18014,18069 ----
+ gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
+ fi
! GNULIB_DUP2=1
+ $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
+ { $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
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include
+ int
+ main ()
+ {
+ error_at_line (0, 0, "", 0, "an error occurred");
+ ;
+ return 0;
+ }
+ _ACEOF
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_error_at_line=yes
+ else
+ ac_cv_lib_error_at_line=no
+ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ 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; }
! if test $ac_cv_lib_error_at_line = no; then
***************
*** 17408,17442 ****
! gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
- if test $ac_cv_func_dup2 = yes; then
- REPLACE_DUP2=1
- fi
- gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
- if test $ac_cv_func_fcntl = no; then
- HAVE_FCNTL=0
- else
- REPLACE_FCNTL=1
- fi
--- 18072,18105 ----
! gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
+ :
+ fi
+ XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
+ XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
+ if test $ac_cv_have_decl_fchdir = no; then
+ HAVE_DECL_FCHDIR=0
+ fi
+ if test $HAVE_FCHDIR = 0; then
***************
*** 17444,17454 ****
! gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
$as_echo_n "checking whether open can visit directories... " >&6; }
if ${gl_cv_func_open_directory_works+:} false; then :
$as_echo_n "(cached) " >&6
--- 18107,18119 ----
+ gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
! :
+ $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
$as_echo_n "checking whether open can visit directories... " >&6; }
if ${gl_cv_func_open_directory_works+:} false; then :
$as_echo_n "(cached) " >&6
***************
*** 17484,17490 ****
$as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
- REPLACE_FSTAT=1
fi
fi
--- 18149,18154 ----
***************
*** 17505,17510 ****
--- 18169,18177 ----
+
+
+
{ $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 :
***************
*** 17518,17524 ****
/* end confdefs.h. */
#include
! #include
int
main ()
--- 18185,18195 ----
/* end confdefs.h. */
#include
! #if HAVE_UNISTD_H
! # include
! #else /* on Windows with MSVC */
! # include
! #endif
int
main ()
***************
*** 17579,17600 ****
$as_echo "$gl_cv_func_fflush_stdin" >&6; }
if test $gl_cv_func_fflush_stdin = no; then
! REPLACE_FCLOSE=1
!
- gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
! fi
--- 18250,18275 ----
$as_echo "$gl_cv_func_fflush_stdin" >&6; }
if test $gl_cv_func_fflush_stdin = no; then
+ REPLACE_FCLOSE=1
+ fi
! if test $REPLACE_CLOSE = 1; then
! REPLACE_FCLOSE=1
! fi
+ if test $REPLACE_FCLOSE = 1; then
! gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
+ fi
***************
*** 17625,17640 ****
REPLACE_FCNTL=1
fi
-
-
-
-
-
-
-
- gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
-
-
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; }
--- 18300,18305 ----
***************
*** 17690,17705 ****
fi
-
-
-
-
-
-
- gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
-
-
-
$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
;;
esac
--- 18355,18360 ----
***************
*** 17766,17784 ****
REPLACE_FCNTL=1
fi
- gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
-
! fi
fi
--- 18421,18461 ----
REPLACE_FCNTL=1
fi
+ fi
+ fi
+ if test $ac_cv_func_fchdir = no; then
+ HAVE_FCHDIR=0
+ fi
+ if test $HAVE_FCHDIR = 0; then
! if test $ac_cv_func_fcntl = no; then
! HAVE_FCNTL=0
! else
! REPLACE_FCNTL=1
fi
+ fi
+
+
+ if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
+
+ fi
***************
*** 17823,17835 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/fcntl.h#{
! s#.*"\(.*/fcntl.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
fi
--- 18500,18523 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'fcntl.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'fcntl.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
fi
***************
*** 17852,17857 ****
--- 18540,18549 ----
+
+
+
+
for gl_func in fcntl openat; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
***************
*** 17882,17888 ****
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
--- 18574,18580 ----
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
! if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
***************
*** 17932,17938 ****
#include
#include
#if !HAVE_DECL_FDOPENDIR
! extern DIR *fdopendir (int);
#endif
int
--- 18624,18634 ----
#include
#include
#if !HAVE_DECL_FDOPENDIR
! extern
! # ifdef __cplusplus
! "C"
! # endif
! DIR *fdopendir (int);
#endif
int
***************
*** 18014,18019 ****
--- 18710,18716 ----
+
{ $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 :
***************
*** 18027,18033 ****
/* end confdefs.h. */
#include
! #include
int
main ()
--- 18724,18734 ----
/* end confdefs.h. */
#include
! #if HAVE_UNISTD_H
! # include
! #else /* on Windows with MSVC */
! # include
! #endif
int
main ()
***************
*** 18205,18217 ****
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n '\#/float.h#{
! s#.*"\(.*/float.h\)".*#\1#
! s#^/[^/]#//
! p
! q
! }'`'"'
fi
--- 18906,18929 ----
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'float.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'float.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
! sed -n "$gl_absolute_header_sed"`'"'
fi
***************
*** 18533,18538 ****
--- 19245,19340 ----
+ case "$host_os" in
+ mingw* | pw*)
+ REPLACE_FOPEN=1
+ 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
+
+ if test "$cross_compiling" = yes; then :
+
+ case "$host_os" in
+ aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
+ gl_cv_func_fopen_slash="guessing no" ;;
+ *)
+ gl_cv_func_fopen_slash="guessing yes" ;;
+ esac
+
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+ #include
+ #include
+ int main ()
+ {
+ return fopen ("conftest.sl/", "w") != NULL;
+ }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_func_fopen_slash=yes
+ else
+ gl_cv_func_fopen_slash=no
+ 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 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; }
+ ;;
+ esac
+ case "$gl_cv_func_fopen_slash" in
+ *no)
+
+ $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
+
+ REPLACE_FOPEN=1
+ ;;
+ esac
+
+ if test $REPLACE_FOPEN = 1; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
+
+
+
+
+ fi
+
+
+
+
+
+ GNULIB_FOPEN=1
+
+
+
+
+
+ $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
+
+
+
+
+
+
ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include
"
***************
*** 18720,18725 ****
--- 19522,19528 ----
fi
+
{ $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 :
***************
*** 18733,18739 ****
/* end confdefs.h. */
#include
! #include
int
main ()
--- 19536,19546 ----
/* end confdefs.h. */
#include
! #if HAVE_UNISTD_H
! # include
! #else /* on Windows with MSVC */
! # include
! #endif
int
main ()
***************
*** 18829,18834 ****
--- 19636,19691 ----
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_FSTAT=1
+ fi
+
+
+
+
+ if test $ac_cv_func_fchdir = no; then
+ HAVE_FCHDIR=0
+ fi
+
+ if test $HAVE_FCHDIR = 0 \
+ && test "$gl_cv_func_open_directory_works" != yes; then
+ REPLACE_FSTAT=1
+ fi
+
+
+ if test $REPLACE_FSTAT = 1; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
+
+
+
+
+ fi
+
+
+
+
+
+ GNULIB_FSTAT=1
+
+
+
+
+
+ $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
+
+
+
+
+
+
if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
REPLACE_FTELL=1
fi
***************
*** 19039,19044 ****
--- 19896,19902 ----
+
gl_abort_bug=no
case $gl_cv_func_getcwd_null,$host_os in
*,mingw*)
***************
*** 19047,19052 ****
--- 19905,19912 ----
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
$as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
if ${gl_cv_func_getcwd_path_max+:} false; then :
***************
*** 19062,19074 ****
#include
#include
! #include
#include
#include
#include
#include
#include
#ifndef AT_FDCWD
# define AT_FDCWD 0
#endif
--- 19922,19960 ----
#include
#include
! #if HAVE_UNISTD_H
! # include
! #else
! # include
! #endif
#include
#include
#include