Description: Fix autotools build

---
Origin: upstream, https://github.com/traildb/traildb/pull/133
Bug: https://github.com/traildb/traildb/issues/132
Last-Update: 2017-05-18

--- traildb-0.6.orig/Makefile.am
+++ traildb-0.6/Makefile.am
@@ -50,9 +50,12 @@ util_traildb_bench_CFLAGS  = ${libtraild
 util_traildb_bench_LDADD   = libtraildb.la
 
 tdbcli_tdb_CFLAGS = -Isrc/ \
-                    -DJUDYERROR=judyerror_macro_missing_fix_this \
                     -O3 \
                     -g \
                     -Wall
-tdbcli_tdb_SOURCES = tdbcli/main.c tdbcli/op_dump.c tdbcli/op_make.c tdbcli/jsmn/jsmn.c
+tdbcli_tdb_LDFLAGS = -pthread
+tdbcli_tdb_SOURCES = tdbcli/main.c tdbcli/tdb_index.c tdbcli/op_dump.c \
+		     tdbcli/op_make.c tdbcli/op_merge.c tdbcli/jsmn/jsmn.c \
+		     tdbcli/thread_util.c tdbcli/filter.c src/xxhash/xxhash.c \
+		     tdbcli/op_index.c
 tdbcli_tdb_LDADD = libtraildb.la
