INCLUDES = -I$(srcdir)/../intl -I$(srcdir)/../include -I$(srcdir)/../utf8
CFLAGS = -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@
+EXTRA_DIST = gedcom-check.sh
+
bin_PROGRAMS = gedcom-check
gedcom_check_SOURCES = gedcom-check.c
gedcom_check_LDFLAGS = -L../gedcom/.libs -L../utf8/.libs @ICONV_LIBPATH@
--- /dev/null
+# $Id$
+# $Name$
+# Test script for gedcom-check (when not installed yet)
+
+ltcmd="../libtool --mode=execute"
+for lib in ../gedcom/libgedcom.la ../utf8/libutf8tools.la
+do
+ ltcmd="$ltcmd -dlopen $lib"
+done
+
+ln -s ../data/gedcom.enc .
+ln -s ../data/new.ged .
+ln -s ../iconv/glibc/.libs/ANSI_Z39.47.so .
+ln -s ../iconv/glibc/gconv-modules .
+$ltcmd ./gedcom-check $*
+result=$?
+rm gedcom.enc
+rm new.ged
+rm ANSI_Z39.47.so
+rm gconv-modules
+exit $result