gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-606


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-606-gd8fd572
Date: Fri, 27 Feb 2015 11:59:04 +0000

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, gawk-4.1-stable has been updated
       via  d8fd5725c32a6aa76eb8438adc0c912e6ad2696b (commit)
       via  2d70e84851f48e1e4091583ea98f7437d4e080ed (commit)
       via  73fe58f8ed3ba97f703d3e516d0f502a6aa5b907 (commit)
       via  64854e87c6b07ddc8d7a687decefaf5ae3a5c9fb (commit)
      from  dde4cb3f47a675095230fa849995b74e4a38b966 (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=d8fd5725c32a6aa76eb8438adc0c912e6ad2696b

commit d8fd5725c32a6aa76eb8438adc0c912e6ad2696b
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Feb 27 13:58:29 2015 +0200

    Small configuration fix.

diff --git a/ChangeLog b/ChangeLog
index 88a9687..a23f031 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 2015-02-27         Arnold D. Robbins     <address@hidden>
 
        * symbol.c (check_param_names): Fix argument order in memset() call.
+       * configure.ac: Use AC_SEARCH_LIBS instead of AC_CHECK_LIB. This fixes
+       a long-standing problem where `-lm' was used twice in the final
+       compilation line.
 
 2015-02-24         Arnold D. Robbins     <address@hidden>
 
diff --git a/configh.in b/configh.in
index 7ef6678..f7ec5c9 100644
--- a/configh.in
+++ b/configh.in
@@ -96,9 +96,6 @@
 /* Define to 1 if you have the <libintl.h> header file. */
 #undef HAVE_LIBINTL_H
 
-/* Define to 1 if you have the `m' library (-lm). */
-#undef HAVE_LIBM
-
 /* Define to 1 if you have a fully functional readline library. */
 #undef HAVE_LIBREADLINE
 
diff --git a/configure b/configure
index b51250a..2595fe3 100755
--- a/configure
+++ b/configure
@@ -9600,13 +9600,12 @@ fi
 fi
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
-$as_echo_n "checking for fmod in -lm... " >&6; }
-if ${ac_cv_lib_m_fmod+:} false; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" 
>&5
+$as_echo_n "checking for library containing fmod... " >&6; }
+if ${ac_cv_search_fmod+:} false; then :
   $as_echo_n "(cached) " >&6
 else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm  $LIBS"
+  ac_func_search_save_LIBS=$LIBS
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -9625,33 +9624,44 @@ return fmod ();
   return 0;
 }
 _ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_fmod=yes
-else
-  ac_cv_lib_m_fmod=no
+for ac_lib in '' m; do
+  if test -z "$ac_lib"; then
+    ac_res="none required"
+  else
+    ac_res=-l$ac_lib
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+  fi
+  if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_search_fmod=$ac_res
 fi
 rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
+    conftest$ac_exeext
+  if ${ac_cv_search_fmod+:} false; then :
+  break
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
-$as_echo "$ac_cv_lib_m_fmod" >&6; }
-if test "x$ac_cv_lib_m_fmod" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBM 1
-_ACEOF
+done
+if ${ac_cv_search_fmod+:} false; then :
 
-  LIBS="-lm $LIBS"
+else
+  ac_cv_search_fmod=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
+$as_echo "$ac_cv_search_fmod" >&6; }
+ac_res=$ac_cv_search_fmod
+if test "$ac_res" != no; then :
+  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
-$as_echo_n "checking for isinf in -lm... " >&6; }
-if ${ac_cv_lib_m_isinf+:} false; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing 
isinf" >&5
+$as_echo_n "checking for library containing isinf... " >&6; }
+if ${ac_cv_search_isinf+:} false; then :
   $as_echo_n "(cached) " >&6
 else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm  $LIBS"
+  ac_func_search_save_LIBS=$LIBS
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -9670,33 +9680,44 @@ return isinf ();
   return 0;
 }
 _ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_isinf=yes
-else
-  ac_cv_lib_m_isinf=no
+for ac_lib in '' m; do
+  if test -z "$ac_lib"; then
+    ac_res="none required"
+  else
+    ac_res=-l$ac_lib
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+  fi
+  if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_search_isinf=$ac_res
 fi
 rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
+    conftest$ac_exeext
+  if ${ac_cv_search_isinf+:} false; then :
+  break
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
-$as_echo "$ac_cv_lib_m_isinf" >&6; }
-if test "x$ac_cv_lib_m_isinf" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBM 1
-_ACEOF
+done
+if ${ac_cv_search_isinf+:} false; then :
 
-  LIBS="-lm $LIBS"
+else
+  ac_cv_search_isinf=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_isinf" >&5
+$as_echo "$ac_cv_search_isinf" >&6; }
+ac_res=$ac_cv_search_isinf
+if test "$ac_res" != no; then :
+  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ismod in -lm" >&5
-$as_echo_n "checking for ismod in -lm... " >&6; }
-if ${ac_cv_lib_m_ismod+:} false; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing 
ismod" >&5
+$as_echo_n "checking for library containing ismod... " >&6; }
+if ${ac_cv_search_ismod+:} false; then :
   $as_echo_n "(cached) " >&6
 else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm  $LIBS"
+  ac_func_search_save_LIBS=$LIBS
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -9715,23 +9736,35 @@ return ismod ();
   return 0;
 }
 _ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ismod=yes
-else
-  ac_cv_lib_m_ismod=no
+for ac_lib in '' m; do
+  if test -z "$ac_lib"; then
+    ac_res="none required"
+  else
+    ac_res=-l$ac_lib
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+  fi
+  if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_search_ismod=$ac_res
 fi
 rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
+    conftest$ac_exeext
+  if ${ac_cv_search_ismod+:} false; then :
+  break
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ismod" >&5
-$as_echo "$ac_cv_lib_m_ismod" >&6; }
-if test "x$ac_cv_lib_m_ismod" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBM 1
-_ACEOF
+done
+if ${ac_cv_search_ismod+:} false; then :
 
-  LIBS="-lm $LIBS"
+else
+  ac_cv_search_ismod=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ismod" >&5
+$as_echo "$ac_cv_search_ismod" >&6; }
+ac_res=$ac_cv_search_ismod
+if test "$ac_res" != no; then :
+  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
 fi
 
diff --git a/configure.ac b/configure.ac
index 8dd79aa..7633e2e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -261,9 +261,9 @@ AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE(HAVE_GETADDRINFO, 1, 
[have getaddrinfo])],
                            [AC_DEFINE(HAVE_GETADDRINFO, 1,
                                       [have getaddrinfo])])])
 
-AC_CHECK_LIB(m, fmod)
-AC_CHECK_LIB(m, isinf)
-AC_CHECK_LIB(m, ismod)
+AC_SEARCH_LIBS(fmod, m)
+AC_SEARCH_LIBS(isinf, m)
+AC_SEARCH_LIBS(ismod, m)
 dnl Don't look for libsigsegv on OSF/1, gives us severe headaches
 case $host_os in
 osf1)  : ;;

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=2d70e84851f48e1e4091583ea98f7437d4e080ed

commit 2d70e84851f48e1e4091583ea98f7437d4e080ed
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Feb 27 13:57:03 2015 +0200

    Small bug fix.

diff --git a/ChangeLog b/ChangeLog
index 610cc4f..88a9687 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-27         Arnold D. Robbins     <address@hidden>
+
+       * symbol.c (check_param_names): Fix argument order in memset() call.
+
 2015-02-24         Arnold D. Robbins     <address@hidden>
 
        * POSIX.STD: Update copyright year.
diff --git a/symbol.c b/symbol.c
index d698299..845d379 100644
--- a/symbol.c
+++ b/symbol.c
@@ -642,7 +642,7 @@ check_param_names(void)
 
        max = func_table->table_size * 2;
 
-       memset(& n, sizeof n, 0);
+       memset(& n, 0, sizeof n);
        n.type = Node_val;
        n.flags = STRING|STRCUR;
        n.stfmt = -1;

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=73fe58f8ed3ba97f703d3e516d0f502a6aa5b907

commit 73fe58f8ed3ba97f703d3e516d0f502a6aa5b907
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Feb 27 13:56:04 2015 +0200

    Minor doc update.

diff --git a/doc/ChangeLog b/doc/ChangeLog
index 1172c28..d967914 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,6 +1,9 @@
 2015-02-27         Arnold D. Robbins     <address@hidden>
 
        * gawktexi.in: Update UPDATE-MONTH and copyright year.
+       Note that "the guide is definitive" quote is really
+       from "The Restaurant at the End of the Universe". Thanks
+       to Antonio Colombo for pointing this out.
 
 2015-02-24         Arnold D. Robbins     <address@hidden>
 
diff --git a/doc/gawk.texi b/doc/gawk.texi
index e963992..8a2de8b 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -12003,6 +12003,9 @@ the string constant @code{"0"} is actually true, 
because it is non-null.
 @i{The Guide is definitive. Reality is frequently inaccurate.}
 @author Douglas Adams, @cite{The Hitchhiker's Guide to the Galaxy}
 @end quotation
address@hidden 2/2015: Antonio Colombo points out that this is really from
address@hidden The Restaurant at the End of the Universe. But I'm going to
address@hidden leave it alone.
 
 @cindex comparison expressions
 @cindex expressions, comparison
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index f7e3ee2..aecf8e5 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -11331,6 +11331,9 @@ the string constant @code{"0"} is actually true, 
because it is non-null.
 @i{The Guide is definitive. Reality is frequently inaccurate.}
 @author Douglas Adams, @cite{The Hitchhiker's Guide to the Galaxy}
 @end quotation
address@hidden 2/2015: Antonio Colombo points out that this is really from
address@hidden The Restaurant at the End of the Universe. But I'm going to
address@hidden leave it alone.
 
 @cindex comparison expressions
 @cindex expressions, comparison

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

Summary of changes:
 ChangeLog       |    7 +++
 configh.in      |    3 -
 configure       |  141 ++++++++++++++++++++++++++++++++++---------------------
 configure.ac    |    6 +-
 doc/ChangeLog   |    7 +++
 doc/gawk.texi   |    7 ++-
 doc/gawktexi.in |    7 ++-
 symbol.c        |    2 +-
 8 files changed, 115 insertions(+), 65 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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