mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
release 0.2.3
This commit is contained in:
parent
b18d1107ec
commit
d6fa02add6
41 changed files with 464 additions and 110 deletions
|
@ -1,6 +1,7 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
INCLUDES = -I.. -I$(top_srcdir)/include
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
needed_libs = ../cipher/libcipher.a ../util/libutil.a ../mpi/libmpi.a ../util/libutil.a
|
||||
|
||||
noinst_PROGRAMS = mpicalc bftest
|
||||
|
||||
|
@ -9,8 +10,7 @@ mpicalc_SOURCES = mpicalc.c
|
|||
bftest_SOURCES = bftest.c
|
||||
|
||||
|
||||
LDADD = -L ../cipher -L ../mpi -L ../util -L ../cipher \
|
||||
-lmpi -lutil -lmpi -lutil -lcipher
|
||||
LDADD = @INTLLIBS@ $(needed_libs)
|
||||
|
||||
$(PROGRAMS): ../mpi/libmpi.a ../cipher/libcipher.a
|
||||
$(PROGRAMS): $(needed_libs)
|
||||
|
||||
|
|
|
@ -86,7 +86,8 @@ POSUB = @POSUB@
|
|||
RANLIB = @RANLIB@
|
||||
VERSION = @VERSION@
|
||||
|
||||
INCLUDES = -I.. -I$(top_srcdir)/include
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
needed_libs = ../cipher/libcipher.a ../util/libutil.a ../mpi/libmpi.a ../util/libutil.a
|
||||
|
||||
noinst_PROGRAMS = mpicalc bftest
|
||||
|
||||
|
@ -94,8 +95,7 @@ mpicalc_SOURCES = mpicalc.c
|
|||
|
||||
bftest_SOURCES = bftest.c
|
||||
|
||||
LDADD = -L ../cipher -L ../mpi -L ../util -L ../cipher \
|
||||
-lmpi -lutil -lmpi -lutil -lcipher
|
||||
LDADD = @INTLLIBS@ $(needed_libs)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
|
@ -108,11 +108,13 @@ LDFLAGS = @LDFLAGS@
|
|||
LIBS = @LIBS@
|
||||
mpicalc_OBJECTS = mpicalc.o
|
||||
mpicalc_LDADD = $(LDADD)
|
||||
mpicalc_DEPENDENCIES = ../cipher ../mpi ../util ../cipher
|
||||
mpicalc_DEPENDENCIES = ../cipher/libcipher.a ../util/libutil.a \
|
||||
../mpi/libmpi.a ../util/libutil.a
|
||||
mpicalc_LDFLAGS =
|
||||
bftest_OBJECTS = bftest.o
|
||||
bftest_LDADD = $(LDADD)
|
||||
bftest_DEPENDENCIES = ../cipher ../mpi ../util ../cipher
|
||||
bftest_DEPENDENCIES = ../cipher/libcipher.a ../util/libutil.a \
|
||||
../mpi/libmpi.a ../util/libutil.a
|
||||
bftest_LDFLAGS =
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
||||
|
@ -304,7 +306,7 @@ installdirs mostlyclean-generic distclean-generic clean-generic \
|
|||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
$(PROGRAMS): ../mpi/libmpi.a ../cipher/libcipher.a
|
||||
$(PROGRAMS): $(needed_libs)
|
||||
|
||||
# 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.
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include "util.h"
|
||||
#include "cipher.h"
|
||||
#include "i18n.h"
|
||||
|
||||
static void
|
||||
my_usage(void)
|
||||
|
@ -43,6 +44,20 @@ strusage( int level )
|
|||
return default_strusage(level);
|
||||
}
|
||||
|
||||
static void
|
||||
i18n_init(void)
|
||||
{
|
||||
#ifdef HAVE_LIBINTL
|
||||
#ifdef HAVE_LC_MESSAGES
|
||||
setlocale( LC_MESSAGES, "" );
|
||||
#else
|
||||
setlocale( LC_ALL, "" );
|
||||
#endif
|
||||
bindtextdomain( PACKAGE, G10_LOCALEDIR );
|
||||
textdomain( PACKAGE );
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
|
@ -57,6 +72,7 @@ main(int argc, char **argv)
|
|||
setmode( fileno(stdout), O_BINARY );
|
||||
#endif
|
||||
|
||||
i18n_init();
|
||||
if( argc > 1 && !strcmp(argv[1], "-e") ) {
|
||||
encode++;
|
||||
argc--; argv++;
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include "util.h"
|
||||
#include "mpi.h"
|
||||
#include "i18n.h"
|
||||
|
||||
#define STACKSIZE 100
|
||||
static MPI stack[STACKSIZE];
|
||||
|
@ -61,6 +62,21 @@ strusage( int level )
|
|||
}
|
||||
|
||||
|
||||
static void
|
||||
i18n_init(void)
|
||||
{
|
||||
#ifdef HAVE_LIBINTL
|
||||
#ifdef HAVE_LC_MESSAGES
|
||||
setlocale( LC_MESSAGES, "" );
|
||||
#else
|
||||
setlocale( LC_ALL, "" );
|
||||
#endif
|
||||
bindtextdomain( PACKAGE, G10_LOCALEDIR );
|
||||
textdomain( PACKAGE );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
do_add(void)
|
||||
{
|
||||
|
@ -201,6 +217,7 @@ main(int argc, char **argv)
|
|||
char strbuf[1000];
|
||||
int stridx=0;
|
||||
|
||||
i18n_init();
|
||||
while( arg_parse( &pargs, opts) ) {
|
||||
switch( pargs.r_opt ) {
|
||||
default : pargs.err = 2; break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue