From 2799ff695d1b9967d2e09dd75c200614805145aa Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 20 Aug 2002 22:42:48 +0000 Subject: [PATCH] 2002-08-21 Marcus Brinkmann * Makefile.am (SUBDIRS): Remove jnlib. * configure.ac: Don't check for unsigned short or unsigned long. Don't check for memicmp, strlwr, strtoul, memmove, stricmp. Make stpcpy a replaced function. Don't define HAVE_JNLIB_LOGGING. Don't generate jnlib/Makefile. gpgme/ 2002-08-21 Marcus Brinkmann * stpcpy.c: New file from gnulib. * Makefile.am (assuan_libobjs): Remove jnlib. --- trunk/ChangeLog | 9 ++++++++ trunk/Makefile.am | 2 +- trunk/configure.ac | 14 +++--------- trunk/gpgme/ChangeLog | 5 +++++ trunk/gpgme/Makefile.am | 2 +- trunk/gpgme/stpcpy.c | 50 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 69 insertions(+), 13 deletions(-) create mode 100644 trunk/gpgme/stpcpy.c diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 2d918f5..87ac1e6 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,12 @@ +2002-08-21 Marcus Brinkmann + + * Makefile.am (SUBDIRS): Remove jnlib. + * configure.ac: Don't check for unsigned short or unsigned long. + Don't check for memicmp, strlwr, strtoul, memmove, stricmp. + Make stpcpy a replaced function. + Don't define HAVE_JNLIB_LOGGING. + Don't generate jnlib/Makefile. + 2002-07-02 Werner Koch * configure.ac: Bumbed version number to 0.3.9; add a comment on diff --git a/trunk/Makefile.am b/trunk/Makefile.am index 0bf354d..ab82211 100644 --- a/trunk/Makefile.am +++ b/trunk/Makefile.am @@ -51,7 +51,7 @@ else gpgmeplug = endif -SUBDIRS = ${assuan} jnlib gpgme ${tests} doc ${bonobo} ${complus} ${gpgmeplug} +SUBDIRS = ${assuan} gpgme ${tests} doc ${bonobo} ${complus} ${gpgmeplug} # Fix the version of the spec file and create a file named VERSION # to be used for patch's Prereq: feature. diff --git a/trunk/configure.ac b/trunk/configure.ac index aa0b21d..8f11433 100644 --- a/trunk/configure.ac +++ b/trunk/configure.ac @@ -138,11 +138,7 @@ GNUPG_CHECK_TYPEDEF(ulong, HAVE_ULONG_TYPEDEF) GNUPG_CHECK_TYPEDEF(u16, HAVE_U16_TYPEDEF) GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF) -dnl We should not use them in this software; -dnl However jnlib/types.h needs them - so we take the easy way. -AC_CHECK_SIZEOF(unsigned short) AC_CHECK_SIZEOF(unsigned int) -AC_CHECK_SIZEOF(unsigned long) dnl dnl Checks for compiler features. @@ -155,8 +151,8 @@ fi dnl dnl Checks for library functions. dnl -dnl These are needed by libjnlib -AC_CHECK_FUNCS(memicmp stpcpy strlwr strtoul memmove stricmp) + +AC_REPLACE_FUNCS(stpcpy) # asprintf() is at least used in assuan AC_REPLACE_FUNCS(vasprintf) @@ -165,10 +161,6 @@ AC_REPLACE_FUNCS(vasprintf) AC_REPLACE_FUNCS(fopencookie) -dnl We use jnlib, so tell other modules about it -AC_DEFINE(HAVE_JNLIB_LOGGING, 1, - [Defined if jnlib style logging fucntions are available.]) - dnl dnl Checks for system services dnl @@ -258,7 +250,7 @@ dnl dnl Create config files dnl -AC_CONFIG_FILES(Makefile assuan/Makefile jnlib/Makefile gpgme/Makefile +AC_CONFIG_FILES(Makefile assuan/Makefile gpgme/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile doc/Makefile bonobo/Makefile complus/Makefile gpgmeplug/Makefile) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 9576c01..43dd2af 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2002-08-21 Marcus Brinkmann + + * stpcpy.c: New file from gnulib. + * Makefile.am (assuan_libobjs): Remove jnlib. + 2002-08-20 Marcus Brinkmann * gpgme.h: Add prototype for gpgme_op_import_ext. diff --git a/trunk/gpgme/Makefile.am b/trunk/gpgme/Makefile.am index 4f28440..a2db61b 100644 --- a/trunk/gpgme/Makefile.am +++ b/trunk/gpgme/Makefile.am @@ -32,7 +32,7 @@ libgpgme_la_LDFLAGS = -version-info \ @LIBGPGME_LT_CURRENT@:@LIBGPGME_LT_REVISION@:@LIBGPGME_LT_AGE@ if BUILD_ASSUAN AM_CPPFLAGS = -I$(top_srcdir)/assuan -assuan_libobjs = ../assuan/libassuan.la ../jnlib/libjnlib.la @LIBOBJS@ +assuan_libobjs = ../assuan/libassuan.la @LIBOBJS@ else assuan_libobjs = endif diff --git a/trunk/gpgme/stpcpy.c b/trunk/gpgme/stpcpy.c new file mode 100644 index 0000000..a01636c --- /dev/null +++ b/trunk/gpgme/stpcpy.c @@ -0,0 +1,50 @@ +/* stpcpy.c -- copy a string and return pointer to end of new string + Copyright (C) 1992, 1995, 1997, 1998 Free Software Foundation, Inc. + + NOTE: The canonical source of this file is maintained with the GNU C Library. + Bugs can be reported to bug-glibc@prep.ai.mit.edu. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + +#undef __stpcpy +#undef stpcpy + +#ifndef weak_alias +# define __stpcpy stpcpy +#endif + +/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */ +char * +__stpcpy (char *dest, const char *src) +{ + register char *d = dest; + register const char *s = src; + + do + *d++ = *s; + while (*s++ != '\0'); + + return d - 1; +} +#ifdef weak_alias +weak_alias (__stpcpy, stpcpy) +#endif -- 2.26.2