dnl =============================================================
dnl Checks for libraries.
AM_GNU_GETTEXT([use-libtool],[need-ngettext])
-AM_WITH_DMALLOC
-
-dnl == Make statically linked test program for dmalloc tests
-if test "$with_dmalloc" = "yes"; then
- EXTRA_PROGS=gomtest_static
-fi
-AC_SUBST(EXTRA_PROGS)
dnl =============================================================
dnl Checks for typedefs, structures, and compiler characteristics.
#include <config.h>
#endif
#include <libintl.h>
-#ifdef WITH_DMALLOC
-#include <dmalloc.h>
-#endif
#define _(string) gettext(string)
#define N_(string) (string)
#include <libintl.h>
#include "gom.h"
#include "gedcom.h"
-#ifdef WITH_DMALLOC
-#include <dmalloc.h>
-#endif
#define _(string) gettext(string)
#define N_(string) (string)
SUBDIRS=src input output .
-DMALLOC_LOG = dmalloc.log
TESTS := $(wildcard $(srcdir)/*.test)
EXTRA_DIST=$(TESTS)
else \
echo "Test failed"; \
fi
-
-check-dmalloc-%: %.test all-local
- @if [ "@EXTRA_PROGS@" = "" ]; then \
- echo "Please run './configure --with-dmalloc' first"; \
- exit; \
- fi; \
- srcdir=$(srcdir); export srcdir; \
- GOM_DMALLOC_TEST=$(DMALLOC_LOG); export GOM_DMALLOC_TEST; \
- if $(TESTS_ENVIRONMENT) ./$<; then \
- echo "Test succeeded"; \
- else \
- echo "Test failed"; \
- fi
-
-I $(srcdir)/../../utf8
CFLAGS = -g -O2 @EXTRA_CFLAGS@
-noinst_PROGRAMS = testgedcom pathtest gomtest updatetest @EXTRA_PROGS@
-EXTRA_PROGRAMS = gomtest_static
+noinst_PROGRAMS = testgedcom pathtest gomtest updatetest testintl
noinst_HEADERS = output.h dump_gom.h portability.h
testgedcom_SOURCES = standalone.c output.c portability.c
gomtest_LDFLAGS = -L../../gedcom/.libs -L../../gom/.libs
gomtest_LDADD = -lgedcom_gom -lgedcom @INTLLIBS@
-gomtest_static_SOURCES = gomtest.c output.c dump_gom.c portability.c
-gomtest_static_LDADD = ../../gedcom/.libs/libgedcom.a \
- ../../gom/.libs/libgedcom_gom.a
-
updatetest_SOURCES = update.c output.c portability.c
updatetest_LDFLAGS = -L../../gedcom/.libs
updatetest_LDADD = -lgedcom @INTLLIBS@
-TEST_SCRIPT=test_script test_gom test_update
+testintl_SOURCES = testintl.c output.c
+testintl_LDFLAGS = -L../../gedcom/.libs
+testintl_LDADD = -lgedcom @INTLLIBS@
+
+TEST_SCRIPT=test_script test_gom test_update test_intl
EXTRA_DIST=$(TEST_SCRIPT)
rm -f core
echo "======================================================">> $logfile
echo "Performing test '$test_name'" >> $logfile
-if [ "$GOM_DMALLOC_TEST" = "" ]
-then
- $ltcmd $GEDCOM_TESTENV $builddir/src/gomtest $options $testfile
-else
- dmalloc=`which dmalloc`
- dmalloc_tmp=dmalloc.env
- $dmalloc -b -l $GOM_DMALLOC_TEST -i 100 low > $dmalloc_tmp
- . $dmalloc_tmp
- rm $dmalloc_tmp
- $ltcmd $GEDCOM_TESTENV $builddir/src/gomtest_static $options $testfile
-fi
+$ltcmd $GEDCOM_TESTENV $builddir/src/gomtest $options $testfile
result=$?
rm gedcom.enc
rm ANSI_Z39.47.so