gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, feature/gnulib-pcc, updated. gawk-4.1.0-5071-g743fb01


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/gnulib-pcc, updated. gawk-4.1.0-5071-g743fb01b
Date: Wed, 14 Jun 2023 14:24:13 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, feature/gnulib-pcc has been updated
       via  743fb01b967ff4052d867d1bcd99945bd465b17b (commit)
      from  7a52edda0d6863aa080ed6922e27cccd7859b219 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=743fb01b967ff4052d867d1bcd99945bd465b17b

commit 743fb01b967ff4052d867d1bcd99945bd465b17b
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Wed Jun 14 14:23:53 2023 -0400

    Undo some of Paul's changes.

diff --git a/configh.in b/configh.in
index 194773d4..5eae3d94 100644
--- a/configh.in
+++ b/configh.in
@@ -39,9 +39,6 @@
 /* Define to 1 if you have the <arpa/inet.h> header file. */
 #undef HAVE_ARPA_INET_H
 
-/* Define to 1 if you have the `atexit' function. */
-#undef HAVE_ATEXIT
-
 /* Define to 1 if you have the `btowc' function. */
 #undef HAVE_BTOWC
 
diff --git a/configure b/configure
index 6d22ce97..9d0f1248 100755
--- a/configure
+++ b/configure
@@ -10399,15 +10399,6 @@ fi
 
 
 
-
-
-
-
-
-
-
-
-
 
 
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, 
false" >&5
@@ -11676,12 +11667,6 @@ then :
       fi
     fi
 
-fi
-ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
-if test "x$ac_cv_func_reallocarray" = xyes
-then :
-  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
-
 fi
 
   if test "X$additional_libdir2" = "X$additional_libdir"; then
@@ -12210,12 +12195,6 @@ if test "x$ac_cv_func___etoa_l" = xyes
 then :
   printf "%s\n" "#define HAVE___ETOA_L 1" >>confdefs.h
 
-fi
-ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
-if test "x$ac_cv_func_atexit" = xyes
-then :
-  printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
-
 fi
 ac_fn_c_check_func "$LINENO" "btowc" "ac_cv_func_btowc"
 if test "x$ac_cv_func_btowc" = xyes
@@ -13057,663 +13036,139 @@ printf "%s\n" "#define GNULIB_XALLOC_DIE 1" 
>>confdefs.h
 
 
 
-
-# The following is taken from gnulib/modules/assert-h:
-
-
-  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the 
preprocessor supports include_next" >&5
-printf %s "checking whether the preprocessor supports include_next... " >&6; }
-if test ${gl_cv_have_include_next+y}
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler 
accepts " >&5
+printf %s "checking whether C compiler accepts ... " >&6; }
+if test ${ax_cv_check_cflags__+y}
 then :
   printf %s "(cached) " >&6
 else $as_nop
-  rm -rf conftestd1a conftestd1b conftestd2
-     mkdir conftestd1a conftestd1b conftestd2
-                                                  cat <<EOF > 
conftestd1a/conftest.h
-#define DEFINED_IN_CONFTESTD1
-#include_next <conftest.h>
-#ifdef DEFINED_IN_CONFTESTD2
-int foo;
-#else
-#error "include_next doesn't work"
-#endif
-EOF
-     cat <<EOF > conftestd1b/conftest.h
-#define DEFINED_IN_CONFTESTD1
-#include <stdio.h>
-#include_next <conftest.h>
-#ifdef DEFINED_IN_CONFTESTD2
-int foo;
-#else
-#error "include_next doesn't work"
-#endif
-EOF
-     cat <<EOF > conftestd2/conftest.h
-#ifndef DEFINED_IN_CONFTESTD1
-#error "include_next test doesn't work"
-#endif
-#define DEFINED_IN_CONFTESTD2
-EOF
-     gl_save_CPPFLAGS="$CPPFLAGS"
-     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
-     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <conftest.h>
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
-  gl_cv_have_include_next=yes
-else $as_nop
-  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
-        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+
+  ax_check_save_flags=$CFLAGS
+  CFLAGS="$CFLAGS  "
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#include <conftest.h>
+
+int
+main (void)
+{
+
+  ;
+  return 0;
+}
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"
 then :
-  gl_cv_have_include_next=buggy
+  ax_cv_check_cflags__=yes
 else $as_nop
-  gl_cv_have_include_next=no
+  ax_cv_check_cflags__=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-
+  CFLAGS=$ax_check_save_flags
 fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-     CPPFLAGS="$gl_save_CPPFLAGS"
-     rm -rf conftestd1a conftestd1b conftestd2
-
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" 
>&5
+printf "%s\n" "$ax_cv_check_cflags__" >&6; }
+if test "x$ax_cv_check_cflags__" = xyes
+then :
+  :
+else $as_nop
+  :
 fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 
$gl_cv_have_include_next" >&5
-printf "%s\n" "$gl_cv_have_include_next" >&6; }
-  PRAGMA_SYSTEM_HEADER=
-  if test $gl_cv_have_include_next = yes; then
-    INCLUDE_NEXT=include_next
-    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
-    if test -n "$GCC"; then
-      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
-    fi
-  else
-    if test $gl_cv_have_include_next = buggy; then
-      INCLUDE_NEXT=include
-      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
-    else
-      INCLUDE_NEXT=include
-      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
-    fi
-  fi
-
 
 
 
-      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source 
code line length is unlimited" >&5
-printf %s "checking whether source code line length is unlimited... " >&6; }
-if test ${gl_cv_source_line_length_unlimited+y}
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
+printf %s "checking size of void *... " >&6; }
+if test ${ac_cv_sizeof_void_p+y}
 then :
   printf %s "(cached) " >&6
 else $as_nop
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-#ifdef __TANDEM
-choke me
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "choke me" >/dev/null 2>&1
+  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" 
"ac_cv_sizeof_void_p"        "$ac_includes_default"
 then :
-  gl_cv_source_line_length_unlimited=no
+
 else $as_nop
-  gl_cv_source_line_length_unlimited=yes
+  if test "$ac_cv_type_void_p" = yes; then
+     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute sizeof (void *)
+See \`config.log' for more details" "$LINENO" 5; }
+   else
+     ac_cv_sizeof_void_p=0
+   fi
 fi
-rm -rf conftest*
-
 
 fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 
$gl_cv_source_line_length_unlimited" >&5
-printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
-  if test $gl_cv_source_line_length_unlimited = no; then
-    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
-  else
-    PRAGMA_COLUMNS=
-  fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
+printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
 
 
 
-  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5
-printf %s "checking for static_assert... " >&6; }
-if test ${gl_cv_static_assert+y}
+printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
+
+
+use_persistent_malloc=no
+if test "$SKIP_PERSIST_MALLOC" = no && test $ac_cv_sizeof_void_p -eq 8
+then
+       ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
+if test "x$ac_cv_func_mmap" = xyes
+then :
+  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
+if test "x$ac_cv_func_munmap" = xyes
+then :
+  printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
+
+fi
+
+       if test $ac_cv_func_mmap = yes &&
+          test $ac_cv_func_munmap = yes
+       then
+               use_persistent_malloc=yes
+               case $host_os in
+               linux-*)
+                       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 
whether C compiler accepts -no-pie" >&5
+printf %s "checking whether C compiler accepts -no-pie... " >&6; }
+if test ${ax_cv_check_cflags___no_pie+y}
 then :
   printf %s "(cached) " >&6
 else $as_nop
-  gl_save_CFLAGS=$CFLAGS
-     for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
-      case $gl_working in #(
-  *assert.h*) :
-    CFLAGS="$gl_save_CFLAGS -DINCLUDE_ASSERT_H" ;; #(
-  *) :
-     ;;
-esac
 
-      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+  ax_check_save_flags=$CFLAGS
+  CFLAGS="$CFLAGS  -no-pie"
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#if defined __clang__ && __STDC_VERSION__ < 202311
-             #pragma clang diagnostic error "-Wc2x-extensions"
-             #pragma clang diagnostic error "-Wc++1z-extensions"
-            #endif
-            #ifdef INCLUDE_ASSERT_H
-             #include <assert.h>
-            #endif
-            static_assert (2 + 2 == 4, "arithmetic does not work");
-            static_assert (2 + 2 == 4);
 
 int
 main (void)
 {
 
-            static_assert (sizeof (char) == 1, "sizeof does not work");
-            static_assert (sizeof (char) == 1);
-
   ;
   return 0;
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"
 then :
-  gl_cv_static_assert=$gl_working
+  ax_cv_check_cflags___no_pie=yes
 else $as_nop
-  gl_cv_static_assert=no
+  ax_cv_check_cflags___no_pie=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-      CFLAGS=$gl_save_CFLAGS
-      test "$gl_cv_static_assert" != no && break
-     done
+  CFLAGS=$ax_check_save_flags
 fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5
-printf "%s\n" "$gl_cv_static_assert" >&6; }
-
-  GL_GENERATE_ASSERT_H=false
-  case $gl_cv_static_assert in #(
-  yes*keyword*) :
-
-printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h
- ;; #(
-  no) :
-    GL_GENERATE_ASSERT_H=true
-
-
-
-
-
-
-
-
-     if test $gl_cv_have_include_next = yes; then
-       gl_cv_next_assert_h='<'assert.h'>'
-     else
-       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of 
<assert.h>" >&5
-printf %s "checking absolute name of <assert.h>... " >&6; }
-if test ${gl_cv_next_assert_h+y}
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 
$ax_cv_check_cflags___no_pie" >&5
+printf "%s\n" "$ax_cv_check_cflags___no_pie" >&6; }
+if test "x$ax_cv_check_cflags___no_pie" = xyes
 then :
-  printf %s "(cached) " >&6
+  LDFLAGS="${LDFLAGS} -no-pie"
+                               export LDFLAGS
 else $as_nop
-
-
-
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <assert.h>
-_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_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
-  gl_header_literal_regex=`echo 'assert.h' \
-                           | sed -e "$gl_make_literal_regex_sed"`
-  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
-      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
-      s|^/[^/]|//&|
-      p
-      q
-    }'
-
-        gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 
2>&5 |
-  sed -n "$gl_absolute_header_sed"`
-
-          gl_header=$gl_cv_absolute_assert_h
-          gl_cv_next_assert_h='"'$gl_header'"'
-
-
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5
-printf "%s\n" "$gl_cv_next_assert_h" >&6; }
-     fi
-     NEXT_ASSERT_H=$gl_cv_next_assert_h
-
-     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='<'assert.h'>'
-     else
-       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
-       gl_next_as_first_directive=$gl_cv_next_assert_h
-     fi
-     NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive
-
-
-
- ;; #(
-  *) :
-     ;;
-esac
-
-
-
-
-
-
-
-  case "$GL_GENERATE_ASSERT_H" in
-    false) ASSERT_H='' ;;
-    true)
-                  if test -z "$ASSERT_H"; then
-        ASSERT_H="${gl_source_base_prefix}assert.h"
-      fi
-      ;;
-    *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;;
-  esac
-
-
-     if $GL_GENERATE_ASSERT_H; then
-  GL_GENERATE_ASSERT_H_TRUE=
-  GL_GENERATE_ASSERT_H_FALSE='#'
-else
-  GL_GENERATE_ASSERT_H_TRUE='#'
-  GL_GENERATE_ASSERT_H_FALSE=
-fi
-:
-    if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z 
"${GL_GENERATE_ASSERT_H_FALSE}"; then
-    GL_GENERATE_ASSERT_H_TRUE='#'
-    GL_GENERATE_ASSERT_H_FALSE='#'
-  fi
-
-
-
-
-
-
-
-
-# The following is taken from gnulib/modules/limits-h:
-
-
-
-
-
-
-
-
-
-
-
-     if test $gl_cv_have_include_next = yes; then
-       gl_cv_next_limits_h='<'limits.h'>'
-     else
-       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of 
<limits.h>" >&5
-printf %s "checking absolute name of <limits.h>... " >&6; }
-if test ${gl_cv_next_limits_h+y}
-then :
-  printf %s "(cached) " >&6
-else $as_nop
-
-             if test $ac_cv_header_limits_h = yes; then
-
-
-
-
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <limits.h>
-_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_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
-  gl_header_literal_regex=`echo 'limits.h' \
-                           | sed -e "$gl_make_literal_regex_sed"`
-  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
-      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
-      s|^/[^/]|//&|
-      p
-      q
-    }'
-
-        gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 
2>&5 |
-  sed -n "$gl_absolute_header_sed"`
-
-          gl_header=$gl_cv_absolute_limits_h
-          gl_cv_next_limits_h='"'$gl_header'"'
-          else
-               gl_cv_next_limits_h='<'limits.h'>'
-             fi
-
-
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
-printf "%s\n" "$gl_cv_next_limits_h" >&6; }
-     fi
-     NEXT_LIMITS_H=$gl_cv_next_limits_h
-
-     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='<'limits.h'>'
-     else
-       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
-       gl_next_as_first_directive=$gl_cv_next_limits_h
-     fi
-     NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
-
-
-
-
-
-  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has 
WORD_BIT, BOOL_WIDTH etc." >&5
-printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
-if test ${gl_cv_header_limits_width+y}
-then :
-  printf %s "(cached) " >&6
-else $as_nop
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
-             #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
-            #endif
-            #include <limits.h>
-            long long llm = LLONG_MAX;
-            int wb = WORD_BIT;
-            int ullw = ULLONG_WIDTH;
-            int bw = BOOL_WIDTH;
-            int bm = BOOL_MAX;
-            int mblm = MB_LEN_MAX;
-
-int
-main (void)
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
-  gl_cv_header_limits_width=yes
-else $as_nop
-  gl_cv_header_limits_width=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 
$gl_cv_header_limits_width" >&5
-printf "%s\n" "$gl_cv_header_limits_width" >&6; }
-  if test "$gl_cv_header_limits_width" = yes; then
-    GL_GENERATE_LIMITS_H=false
-  else
-    GL_GENERATE_LIMITS_H=true
-  fi
-
-
-
-
-
-  case "$GL_GENERATE_LIMITS_H" in
-    false) LIMITS_H='' ;;
-    true)
-                  if test -z "$LIMITS_H"; then
-        LIMITS_H="${gl_source_base_prefix}limits.h"
-      fi
-      ;;
-    *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
-  esac
-
-
-     if $GL_GENERATE_LIMITS_H; then
-  GL_GENERATE_LIMITS_H_TRUE=
-  GL_GENERATE_LIMITS_H_FALSE='#'
-else
-  GL_GENERATE_LIMITS_H_TRUE='#'
-  GL_GENERATE_LIMITS_H_FALSE=
-fi
-:
-    if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z 
"${GL_GENERATE_LIMITS_H_FALSE}"; then
-    GL_GENERATE_LIMITS_H_TRUE='#'
-    GL_GENERATE_LIMITS_H_FALSE='#'
-  fi
-
-
-
-
-
-
-
-
-# The following is taken from gnulib/modules/stdckdint:
-
-
-if test $ac_cv_header_stdckdint_h = yes; then
-  GL_GENERATE_STDCKDINT_H=false
-else
-  GL_GENERATE_STDCKDINT_H=true
-fi
-
-
-
-
-  case "$GL_GENERATE_STDCKDINT_H" in
-    false) STDCKDINT_H='' ;;
-    true)
-                  if test -z "$STDCKDINT_H"; then
-        STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
-      fi
-      ;;
-    *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
-  esac
-
-
-     if $GL_GENERATE_STDCKDINT_H; then
-  GL_GENERATE_STDCKDINT_H_TRUE=
-  GL_GENERATE_STDCKDINT_H_FALSE='#'
-else
-  GL_GENERATE_STDCKDINT_H_TRUE='#'
-  GL_GENERATE_STDCKDINT_H_FALSE=
-fi
-:
-    if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z 
"${GL_GENERATE_STDCKDINT_H_FALSE}"; then
-    GL_GENERATE_STDCKDINT_H_TRUE='#'
-    GL_GENERATE_STDCKDINT_H_FALSE='#'
-  fi
-
-
-
-
-
-
-
-
-# The following is taken from gnulib/modules/xalloc:
-:
-
-
-printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h
-
-
-
-
-# The following is taken from gnulib/modules/xalloc-die:
-
-
-printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
-
-
-
-
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler 
accepts " >&5
-printf %s "checking whether C compiler accepts ... " >&6; }
-if test ${ax_cv_check_cflags__+y}
-then :
-  printf %s "(cached) " >&6
-else $as_nop
-
-  ax_check_save_flags=$CFLAGS
-  CFLAGS="$CFLAGS  "
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main (void)
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
-  ax_cv_check_cflags__=yes
-else $as_nop
-  ax_cv_check_cflags__=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-  CFLAGS=$ax_check_save_flags
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" 
>&5
-printf "%s\n" "$ax_cv_check_cflags__" >&6; }
-if test "x$ax_cv_check_cflags__" = xyes
-then :
-  :
-else $as_nop
-  :
-fi
-
-
-
-# The cast to long int works around a bug in the HP C Compiler
-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
-# This bug is HP SR number 8606223364.
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
-printf %s "checking size of void *... " >&6; }
-if test ${ac_cv_sizeof_void_p+y}
-then :
-  printf %s "(cached) " >&6
-else $as_nop
-  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" 
"ac_cv_sizeof_void_p"        "$ac_includes_default"
-then :
-
-else $as_nop
-  if test "$ac_cv_type_void_p" = yes; then
-     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error 77 "cannot compute sizeof (void *)
-See \`config.log' for more details" "$LINENO" 5; }
-   else
-     ac_cv_sizeof_void_p=0
-   fi
-fi
-
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
-printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
-
-
-
-printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
-
-
-use_persistent_malloc=no
-if test "$SKIP_PERSIST_MALLOC" = no && test $ac_cv_sizeof_void_p -eq 8
-then
-       ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
-if test "x$ac_cv_func_mmap" = xyes
-then :
-  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
-
-fi
-ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
-if test "x$ac_cv_func_munmap" = xyes
-then :
-  printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
-
-fi
-ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
-if test "x$ac_cv_func_atexit" = xyes
-then :
-  printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
-
-fi
-
-       if test $ac_cv_func_mmap = yes &&
-          test $ac_cv_func_munmap = yes &&
-          test $ac_cv_func_atexit = yes
-       then
-               use_persistent_malloc=yes
-               case $host_os in
-               linux-*)
-                       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 
whether C compiler accepts -no-pie" >&5
-printf %s "checking whether C compiler accepts -no-pie... " >&6; }
-if test ${ax_cv_check_cflags___no_pie+y}
-then :
-  printf %s "(cached) " >&6
-else $as_nop
-
-  ax_check_save_flags=$CFLAGS
-  CFLAGS="$CFLAGS  -no-pie"
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main (void)
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
-  ax_cv_check_cflags___no_pie=yes
-else $as_nop
-  ax_cv_check_cflags___no_pie=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-  CFLAGS=$ax_check_save_flags
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 
$ax_cv_check_cflags___no_pie" >&5
-printf "%s\n" "$ax_cv_check_cflags___no_pie" >&6; }
-if test "x$ax_cv_check_cflags___no_pie" = xyes
-then :
-  LDFLAGS="${LDFLAGS} -no-pie"
-                               export LDFLAGS
-else $as_nop
-  :
-fi
+  :
+fi
 
                        ;;
                *darwin*)
@@ -14842,55 +14297,6 @@ printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" 
>>confdefs.h
 
   fi
 
-
-  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array 
member" >&5
-printf %s "checking for flexible array member... " >&6; }
-if test ${ac_cv_c_flexmember+y}
-then :
-  printf %s "(cached) " >&6
-else $as_nop
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-            #include <stdio.h>
-            #include <stddef.h>
-            struct m { struct m *next, **list; char name[]; };
-            struct s { struct s *p; struct m *m; int n; double d[]; };
-int
-main (void)
-{
-int m = getchar ();
-            size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
-            nbytes += sizeof (struct s) - 1;
-            nbytes -= nbytes % sizeof (struct s);
-            struct s *p = malloc (nbytes);
-            p->p = p;
-            p->m = NULL;
-            p->d[0] = 0.0;
-            return p->d != (double *) NULL;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
-  ac_cv_c_flexmember=yes
-else $as_nop
-  ac_cv_c_flexmember=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
-printf "%s\n" "$ac_cv_c_flexmember" >&6; }
-  if test $ac_cv_c_flexmember = yes; then
-
-printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
-
-  else
-    printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
-
-  fi
-
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict 
keyword" >&5
 printf %s "checking for C/C++ restrict keyword... " >&6; }
 if test ${ac_cv_c_restrict+y}
@@ -15049,39 +14455,6 @@ printf "%s\n" "#define HAVE___HEADER_INLINE 1" 
>>confdefs.h
 
 
 
-  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h 
defines __header_inline" >&5
-printf %s "checking whether ctype.h defines __header_inline... " >&6; }
-if test ${gl_cv_have___header_inline+y}
-then :
-  printf %s "(cached) " >&6
-else $as_nop
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ctype.h>
-                         #ifndef __header_inline
-                          #error "<ctype.h> does not define __header_inline"
-                         #endif
-
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"
-then :
-  gl_cv_have___header_inline=yes
-else $as_nop
-  gl_cv_have___header_inline=no
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 
$gl_cv_have___header_inline" >&5
-printf "%s\n" "$gl_cv_have___header_inline" >&6; }
-  if test "$gl_cv_have___header_inline" = yes; then
-
-printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
-
-  fi
-
-
-
-
 ac_config_headers="$ac_config_headers config.h:configh.in"
 
 
diff --git a/configure.ac b/configure.ac
index 514ede83..8a073a11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -315,7 +315,7 @@ osf1)       : ;;
 esac
 
 # Need the check for mkstemp and tmpfile for missing_d/snprintf.c.
-AC_CHECK_FUNCS(__etoa_l atexit btowc fmod fwrite_unlocked gai_strerror \
+AC_CHECK_FUNCS(__etoa_l btowc fmod fwrite_unlocked gai_strerror \
        getgrent getgroups grantpt isascii isblank iswctype iswlower iswupper \
        lstat \
        mbrlen memcmp memcpy memmove memset \
diff --git a/extension/configh.in b/extension/configh.in
index e3f85585..535621a3 100644
--- a/extension/configh.in
+++ b/extension/configh.in
@@ -25,9 +25,6 @@
    the size in bytes of such a struct containing an N-element array. */
 #undef FLEXIBLE_ARRAY_MEMBER
 
-/* Define to 1 if you have the `atexit' function. */
-#undef HAVE_ATEXIT
-
 /* Define to 1 if you have the Mac OS X function
    CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */
 #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES
diff --git a/extension/configure b/extension/configure
index 5faed810..2e41ede7 100755
--- a/extension/configure
+++ b/extension/configure
@@ -8786,17 +8786,10 @@ if test "x$ac_cv_func_munmap" = xyes
 then :
   printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
 
-fi
-ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
-if test "x$ac_cv_func_atexit" = xyes
-then :
-  printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
-
 fi
 
        if test $ac_cv_func_mmap = yes &&
-          test $ac_cv_func_munmap = yes &&
-          test $ac_cv_func_atexit = yes
+          test $ac_cv_func_munmap = yes
        then
                use_persistent_malloc=yes
                case $host_os in
diff --git a/m4/pma.m4 b/m4/pma.m4
index 4558fdaa..b07b89fa 100644
--- a/m4/pma.m4
+++ b/m4/pma.m4
@@ -12,10 +12,9 @@ AC_CHECK_SIZEOF([void *])
 use_persistent_malloc=no
 if test "$SKIP_PERSIST_MALLOC" = no && test $ac_cv_sizeof_void_p -eq 8
 then
-       AC_CHECK_FUNCS([mmap munmap atexit])
+       AC_CHECK_FUNCS([mmap munmap])
        if test $ac_cv_func_mmap = yes &&
-          test $ac_cv_func_munmap = yes &&
-          test $ac_cv_func_atexit = yes
+          test $ac_cv_func_munmap = yes
        then
                use_persistent_malloc=yes
                case $host_os in
diff --git a/main.c b/main.c
index 14d46c0e..e660da17 100644
--- a/main.c
+++ b/main.c
@@ -467,10 +467,8 @@ main(int argc, char **argv)
        if (os_isatty(fileno(stdout)))
                output_is_tty = true;
 
-#ifdef HAVE_ATEXIT
        /* arrange to save free lists if using PMA */
        atexit(pma_save_free_lists);
-#endif
 
        /* initialize API before loading extension libraries */
        init_ext_api();
diff --git a/re.c b/re.c
index eb008afb..9c1905a6 100644
--- a/re.c
+++ b/re.c
@@ -623,7 +623,7 @@ again:
        if (sp == NULL)
                goto done;
 
-       for (count++, sp++; *sp; sp++) {
+       for (count++, sp++; *sp != '\0'; sp++) {
                if (*sp == '[')
                        count++;
                /*
diff --git a/support/Makefile.in b/support/Makefile.in
index 599c06a7..b32db544 100644
--- a/support/Makefile.in
+++ b/support/Makefile.in
@@ -845,51 +845,6 @@ distclean-local:
 @GL_GENERATE_STDCKDINT_H_FALSE@stdckdint.h: $(top_builddir)/config.status
 @GL_GENERATE_STDCKDINT_H_FALSE@        rm -f $@
 
-# We need the following in order to create <assert.h> when the system
-# doesn't have one that works with the given compiler.
-@GL_GENERATE_ASSERT_H_TRUE@assert.h: assert.in.h verify.h 
$(top_builddir)/config.status
-@GL_GENERATE_ASSERT_H_TRUE@    $(AM_V_GEN)$(MKDIR_P) '.'
-@GL_GENERATE_ASSERT_H_TRUE@    $(gl_V_at){ $(SED_HEADER_STDOUT) \
-@GL_GENERATE_ASSERT_H_TRUE@          -e 
's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-@GL_GENERATE_ASSERT_H_TRUE@          -e 
's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-@GL_GENERATE_ASSERT_H_TRUE@          -e 
's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-@GL_GENERATE_ASSERT_H_TRUE@          -e 
's|@''NEXT_ASSERT_H''@|$(NEXT_ASSERT_H)|g' \
-@GL_GENERATE_ASSERT_H_TRUE@          < $(srcdir)/assert.in.h && \
-@GL_GENERATE_ASSERT_H_TRUE@      sed -e '/@assert.h omit start@/,/@assert.h 
omit end@/d' \
-@GL_GENERATE_ASSERT_H_TRUE@          -e 's|_gl_verify|_gl_static_assert|g' \
-@GL_GENERATE_ASSERT_H_TRUE@          -e 's|_GL_VERIFY|_GL_STATIC_ASSERT|g' \
-@GL_GENERATE_ASSERT_H_TRUE@          -e 
's|_GL\(_STATIC_ASSERT_H\)|_${gl_include_guard_prefix}\1|g' \
-@GL_GENERATE_ASSERT_H_TRUE@          < $(srcdir)/verify.h; \
-@GL_GENERATE_ASSERT_H_TRUE@    } > $@-t
-@GL_GENERATE_ASSERT_H_TRUE@    $(AM_V_at)mv $@-t $@
-@GL_GENERATE_ASSERT_H_FALSE@assert.h: $(top_builddir)/config.status
-@GL_GENERATE_ASSERT_H_FALSE@   rm -f $@
-
-# We need the following in order to create <limits.h> when the system
-# doesn't have one that is compatible with GNU.
-@GL_GENERATE_LIMITS_H_TRUE@limits.h: limits.in.h $(top_builddir)/config.status
-@GL_GENERATE_LIMITS_H_TRUE@    $(AM_V_GEN)$(MKDIR_P) '.'
-@GL_GENERATE_LIMITS_H_TRUE@    $(gl_V_at)$(SED_HEADER_STDOUT) \
-@GL_GENERATE_LIMITS_H_TRUE@          -e 
's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-@GL_GENERATE_LIMITS_H_TRUE@          -e 
's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-@GL_GENERATE_LIMITS_H_TRUE@          -e 
's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-@GL_GENERATE_LIMITS_H_TRUE@          -e 
's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-@GL_GENERATE_LIMITS_H_TRUE@          -e 
's|@''NEXT_LIMITS_H''@|$(NEXT_LIMITS_H)|g' \
-@GL_GENERATE_LIMITS_H_TRUE@          $(srcdir)/limits.in.h > $@-t
-@GL_GENERATE_LIMITS_H_TRUE@    $(AM_V_at)mv $@-t $@
-@GL_GENERATE_LIMITS_H_FALSE@limits.h: $(top_builddir)/config.status
-@GL_GENERATE_LIMITS_H_FALSE@   rm -f $@
-
-# We need the following in order to create <stdckdint.h> when the system
-# doesn't have one that works with the given compiler.
-@GL_GENERATE_STDCKDINT_H_TRUE@stdckdint.h: stdckdint.in.h 
$(top_builddir)/config.status
-@GL_GENERATE_STDCKDINT_H_TRUE@ $(AM_V_GEN)$(MKDIR_P) '.'
-@GL_GENERATE_STDCKDINT_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
-@GL_GENERATE_STDCKDINT_H_TRUE@   $(srcdir)/stdckdint.in.h > $@-t
-@GL_GENERATE_STDCKDINT_H_TRUE@ $(AM_V_at)mv $@-t $@
-@GL_GENERATE_STDCKDINT_H_FALSE@stdckdint.h: $(top_builddir)/config.status
-@GL_GENERATE_STDCKDINT_H_FALSE@        rm -f $@
-
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:

-----------------------------------------------------------------------

Summary of changes:
 configh.in           |   3 -
 configure            | 797 ++++++---------------------------------------------
 configure.ac         |   2 +-
 extension/configh.in |   3 -
 extension/configure  |   9 +-
 m4/pma.m4            |   5 +-
 main.c               |   2 -
 re.c                 |   2 +-
 support/Makefile.in  |  45 ---
 9 files changed, 90 insertions(+), 778 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]