groff-commit
[Top][All Lists]
Advanced

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

[Groff-commit] groff ./ChangeLog ./Makefile.in ./configure ./c...


From: Werner LEMBERG
Subject: [Groff-commit] groff ./ChangeLog ./Makefile.in ./configure ./c...
Date: Wed, 11 Jan 2006 00:37:42 +0000

CVSROOT:        /cvsroot/groff
Module name:    groff
Branch:         
Changes by:     Werner LEMBERG <address@hidden> 06/01/11 00:37:42

Modified files:
        .              : ChangeLog Makefile.in configure configure.ac 
        src/include    : config.hin 
        src/libs/libgroff: Makefile.sub localcharset.c 
Added files:
        src/libs/libgroff: relocatable.h 

Log message:
        * configure.ac: Test for getc_unlocked (needed for localcharset).
        * configure, src/include/config.hin: Regenerated.
        
        * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
        ENABLE_RELOCATABLE.
        
        * src/libs/libgroff/relocatable.h: New dummy header file for
        localcharset.c.
        
        * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
        gnulib version.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/groff/ChangeLog.diff?tr1=1.882&tr2=1.883&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/Makefile.in.diff?tr1=1.92&tr2=1.93&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/configure.diff?tr1=1.75&tr2=1.76&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/configure.ac.diff?tr1=1.39&tr2=1.40&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/src/include/config.hin.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/src/libs/libgroff/Makefile.sub.diff?tr1=1.25&tr2=1.26&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/src/libs/libgroff/localcharset.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/src/libs/libgroff/relocatable.h?rev=1.1

Patches:
Index: groff/ChangeLog
diff -u groff/ChangeLog:1.882 groff/ChangeLog:1.883
--- groff/ChangeLog:1.882       Tue Jan 10 09:43:43 2006
+++ groff/ChangeLog     Wed Jan 11 00:37:42 2006
@@ -1,3 +1,17 @@
+2006-01-11  Werner LEMBERG  <address@hidden>
+
+       * configure.ac: Test for getc_unlocked (needed for localcharset).
+       * configure, src/include/config.hin: Regenerated.
+
+       * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
+       ENABLE_RELOCATABLE.
+
+       * src/libs/libgroff/relocatable.h: New dummy header file for
+       localcharset.c.
+
+       * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
+       gnulib version.
+
 2006-01-10  Bruno Haible  <address@hidden>
 
        Work around unportability of nl_langinfo(CODESET).
Index: groff/Makefile.in
diff -u groff/Makefile.in:1.92 groff/Makefile.in:1.93
--- groff/Makefile.in:1.92      Tue Jan 10 09:43:43 2006
+++ groff/Makefile.in   Wed Jan 11 00:37:42 2006
@@ -1,4 +1,4 @@
-# Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005
+# Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005, 2006
 #   Free Software Foundation, Inc.
 #      Written by James Clark (address@hidden)
 # 
@@ -265,12 +265,6 @@
 # -DWORDS_BIGENDIAN            if your target platform is big-endian
 # -DIS_EBCDIC_HOST             if the host's encoding is EBCDIC
 #
-# -DHAVE_DECL_SYS_SIGLIST      if you have sys_siglist[]
-# -DWCOREFLAG=0200             if the 0200 bit of the status returned by
-#                              wait() indicates whether a core image was
-#                              produced for a process that was terminated
-#                              by a signal
-#
 # -DHAVE_DIRECT_H              if you have <direct.h>
 # -DHAVE_DIRENT_H              if you have <dirent.h>
 # -DHAVE_CC_INTTYPES_H         if you have a C++ <inttypes.h>
@@ -331,6 +325,9 @@
 # -DNEED_DECLARATION_VSNPRINTF if your C++ <stdio.h> doesn't declare
 #                              vsnprintf()
 #
+# -DHAVE_DECL_GETC_UNLOCKED    if you have getc_unlocked()
+# -DHAVE_DECL_SYS_SIGLIST      if you have sys_siglist[]
+#
 # -DHAVE_STRUCT_EXCEPTION      if <math.h> defines struct exception
 # -DHAVE_SYS_NERR              if you have sysnerr in <errno.h> or <stdio.h>
 # -DHAVE_SYS_ERRLIST           if you have sys_errlist in <errno.h> or
@@ -340,6 +337,11 @@
 # -DRETSIGTYPE=int             if signal handlers return int not void  
 # -DRET_TYPE_SRAND_IS_VOID     if srand() returns void not int
 #
+# -DWCOREFLAG=0200             if the 0200 bit of the status returned by
+#                              wait() indicates whether a core image was
+#                              produced for a process that was terminated
+#                              by a signal
+#
 # -Duintmax_t=<value>          define to `unsigned long' or `unsigned long
 #                              long' if <inttypes.h> does not exist
 #
Index: groff/configure
diff -u groff/configure:1.75 groff/configure:1.76
--- groff/configure:1.75        Tue Jan 10 09:43:43 2006
+++ groff/configure     Wed Jan 11 00:37:42 2006
@@ -10703,6 +10703,76 @@
 
 
 fi
+echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
+echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
+if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+#ifndef getc_unlocked
+  char *p = (char *) getc_unlocked;
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+        { ac_try='test -z "$ac_c_werror_flag"
+                        || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_have_decl_getc_unlocked=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_have_decl_getc_unlocked=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
+echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
+if test $ac_cv_have_decl_getc_unlocked = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_GETC_UNLOCKED 1
+_ACEOF
+
+
+else
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_GETC_UNLOCKED 0
+_ACEOF
+
+
+fi
 
 
 
Index: groff/configure.ac
diff -u groff/configure.ac:1.39 groff/configure.ac:1.40
--- groff/configure.ac:1.39     Tue Jan 10 09:43:43 2006
+++ groff/configure.ac  Wed Jan 11 00:37:42 2006
@@ -102,7 +102,7 @@
 LIBS="$saved_libs"
 AC_CHECK_FUNCS([gettimeofday isatty kill rename setlocale strsep])
 GROFF_MKSTEMP
-AC_CHECK_DECLS([sys_siglist])
+AC_CHECK_DECLS([sys_siglist, getc_unlocked])
 AM_LANGINFO_CODESET
 
 # checks for compiler characteristics
Index: groff/src/include/config.hin
diff -u groff/src/include/config.hin:1.15 groff/src/include/config.hin:1.16
--- groff/src/include/config.hin:1.15   Tue Jan 10 09:43:43 2006
+++ groff/src/include/config.hin        Wed Jan 11 00:37:42 2006
@@ -12,6 +12,10 @@
 /* Define if you have a C++ <osfcn.h>. */
 #undef HAVE_CC_OSFCN_H
 
+/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
+   don't. */
+#undef HAVE_DECL_GETC_UNLOCKED
+
 /* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you
    don't. */
 #undef HAVE_DECL_SYS_SIGLIST
Index: groff/src/libs/libgroff/Makefile.sub
diff -u groff/src/libs/libgroff/Makefile.sub:1.25 
groff/src/libs/libgroff/Makefile.sub:1.26
--- groff/src/libs/libgroff/Makefile.sub:1.25   Tue Jan 10 09:43:43 2006
+++ groff/src/libs/libgroff/Makefile.sub        Wed Jan 11 00:37:42 2006
@@ -1,5 +1,7 @@
 LIB=groff
-EXTRA_CFLAGS=-D__GETOPT_PREFIX=groff_ -DLIBDIR=\"$(libdir)\"
+EXTRA_CFLAGS=-D__GETOPT_PREFIX=groff_ \
+             -DENABLE_RELOCATABLE=1 \
+             -DLIBDIR=\"$(libdir)\"
 OBJS=\
   assert.$(OBJEXT) \
   change_lf.$(OBJEXT) \
Index: groff/src/libs/libgroff/localcharset.c
diff -u groff/src/libs/libgroff/localcharset.c:1.1 
groff/src/libs/libgroff/localcharset.c:1.2
--- groff/src/libs/libgroff/localcharset.c:1.1  Tue Jan 10 09:43:43 2006
+++ groff/src/libs/libgroff/localcharset.c      Wed Jan 11 00:37:42 2006
@@ -1,21 +1,20 @@
 /* Determine a canonical name for the current locale's character encoding.
 
-   Copyright (C) 2000-2005 Free Software Foundation, Inc.
+   Copyright (C) 2000-2006 Free Software Foundation, Inc.
 
-   This program is free software; you can redistribute it and/or modify it
-   under the terms of the GNU Library General Public License as published
-   by the Free Software Foundation; either version 2, or (at your option)
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
    any later version.
 
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Library General Public License for more details.
+   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 Library General Public
-   License along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
-   USA.  */
+   You should have received a copy of the GNU General Public License along
+   with this program; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 /* Written by Bruno Haible <address@hidden>.  */
 
@@ -67,10 +66,11 @@
 # include <os2.h>
 #endif
 
-/* BEGIN GROFF-LOCAL SECTION */
-#include "relocate.h"
-#define relocate(path) relocatep(path)
-/* END GROFF-LOCAL SECTION */
+#if ENABLE_RELOCATABLE
+# include "relocatable.h"
+#else
+# define relocate(pathname) (pathname)
+#endif
 
 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined 
__EMX__ || defined __DJGPP__
   /* Win32, Cygwin, OS/2, DOS */
@@ -106,7 +106,7 @@
 
 /* Return a pointer to the contents of the charset.alias file.  */
 static const char *
-get_charset_aliases ()
+get_charset_aliases (void)
 {
   const char *cp;
 
@@ -286,7 +286,7 @@
 STATIC
 #endif
 const char *
-locale_charset ()
+locale_charset (void)
 {
   const char *codeset;
   const char *aliases;




reply via email to

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