From: Adam Dickmeiss Date: Thu, 19 May 2011 13:27:47 +0000 (+0200) Subject: configure produces config.h X-Git-Tag: v2.0.47~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=ac13dceecd5f75669820819575daf88e0add5c8d;p=idzebra-moved-to-github.git configure produces config.h --- diff --git a/bfile/bfile.c b/bfile/bfile.c index da118be..07af217 100644 --- a/bfile/bfile.c +++ b/bfile/bfile.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/bfile/cfile.c b/bfile/cfile.c index ef41c9f..d9e901e 100644 --- a/bfile/cfile.c +++ b/bfile/cfile.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/bfile/commit.c b/bfile/commit.c index a57e626..486372e 100644 --- a/bfile/commit.c +++ b/bfile/commit.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/bfile/mfile.c b/bfile/mfile.c index 73c55de..674687a 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #ifdef WIN32 diff --git a/bfile/tstbfile1.c b/bfile/tstbfile1.c index 567541e..3f972a5 100644 --- a/bfile/tstbfile1.c +++ b/bfile/tstbfile1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/bfile/tstbfile2.c b/bfile/tstbfile2.c index 44251fd..48609f3 100644 --- a/bfile/tstbfile2.c +++ b/bfile/tstbfile2.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/bfile/tstmfile1.c b/bfile/tstmfile1.c index f4b8d3f..6167804 100644 --- a/bfile/tstmfile1.c +++ b/bfile/tstmfile1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/configure.ac b/configure.ac index ff2efeb..f729981 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,7 @@ dnl Copyright (C) 1994-2011 Index Data dnl AC_PREREQ(2.60) AC_INIT([idzebra],[2.0.46],[zebra-help@indexdata.dk]) +AC_CONFIG_HEADERS(include/config.h) AC_CONFIG_SRCDIR(configure.ac) AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE([1.9]) @@ -23,7 +24,6 @@ dnl ------ Checking programs AC_PROG_CC AC_PROG_CPP AM_PROG_LIBTOOL -AC_DEFINE_UNQUOTED(HOST_TRIPLET,"${host}") dnl dnl ------ headers AC_CHECK_HEADERS([sys/resource.h sys/time.h sys/wait.h sys/utsname.h unistd.h]) @@ -102,33 +102,6 @@ dnl dnl ------ various functions AC_CHECK_FUNCS(mkstemp atoll) dnl -dnl ------ GNU Readline -READLINE_SHARED_LIBADD="" -AC_CHECK_LIB(ncurses, tgetent, [READLINE_SHARED_LIBADD="-lncurses"], - AC_CHECK_LIB(termcap, tgetent, [READLINE_SHARED_LIBADD="-ltermcap"]) -) -READLINE_LIBS="" -AC_CHECK_LIB(readline, readline, [READLINE_LIBS="$READLINE_LIBS -lreadline $READLINE_SHARED_LIBADD"],,$READLINE_SHARED_LIBADD) -AC_CHECK_LIB(history, add_history, [READLINE_LIBS="$READLINE_LIBS -lhistory"]) -if test "$ac_cv_lib_readline_readline" = "yes"; then - AC_CHECK_HEADERS(readline/readline.h readline/history.h) - xLIBS=$LIBS - LIBS="$LIBS $READLINE_LIBS" - AC_TRY_LINK([ - #include - #include - ],[ - rl_attempted_completion_over = 0; - ],AC_DEFINE(HAVE_READLINE_COMPLETION_OVER)) - AC_TRY_LINK([ - #include - #include - ],[ - rl_completion_matches (0, 0); - ],AC_DEFINE(HAVE_READLINE_RL_COMPLETION_MATCHES)) - LIBS=$xLIBS -fi -dnl dnl ------ iconv AC_ARG_WITH(iconv, [ --with-iconv[=DIR] iconv library in DIR]) if test "$with_iconv" != "no"; then @@ -144,7 +117,7 @@ if test "$with_iconv" != "no"; then ],[ iconv_t t = iconv_open("", ""); ],[ - AC_DEFINE(HAVE_ICONV_H) + AC_DEFINE([HAVE_ICONV_H],[1],[Whether iconv.h is defined]) AC_MSG_RESULT(yes) ],[ LIBS="$LIBS -liconv" @@ -153,7 +126,7 @@ if test "$with_iconv" != "no"; then ],[ iconv_t t = iconv_open("", ""); ],[ - AC_DEFINE(HAVE_ICONV_H) + AC_DEFINE([HAVE_ICONV_H],[1]) AC_MSG_RESULT(yes) ],[ LIBS="$oldLIBS" @@ -214,7 +187,7 @@ else ZINT_VALUE=0 fi ZEBRA_CFLAGS="-DZEBRA_ZINT=${ZINT_VALUE}" -AC_DEFINE_UNQUOTED(ZEBRA_ZINT,${ZINT_VALUE}) +AC_DEFINE_UNQUOTED([ZEBRA_ZINT],${ZINT_VALUE},[Whehter zint is long long]) dnl ------ Modules AC_SUBST(SHARED_MODULE_LA) SHARED_MODULE_LA="" @@ -254,15 +227,19 @@ AC_DEFUN([ZEBRA_MODULE],[ fi ]) -AC_DEFINE(IDZEBRA_STATIC_GRS_SGML) +AC_DEFINE([IDZEBRA_STATIC_GRS_SGML],[1],[Whether module grs.sgml is static]) +AC_DEFINE([IDZEBRA_STATIC_TEXT],[0],[Whether module text is static]) ZEBRA_MODULE(text,shared, [ --enable-mod-text Text filter]) +AC_DEFINE([IDZEBRA_STATIC_GRS_REGX],[0],[Whether module grs.regx is static]) ZEBRA_MODULE(grs-regx,shared,[ --enable-mod-grs-regx REGX/TCL filter]) +AC_DEFINE([IDZEBRA_STATIC_GRS_MARC],[0],[Whether module grs.marc is static]) ZEBRA_MODULE(grs-marc,shared,[ --enable-mod-grs-marc MARC filter]) if test "$ac_cv_header_expat_h" = "yes"; then def="shared" else def="disabled" fi +AC_DEFINE([IDZEBRA_STATIC_GRS_XML],[0],[Whether module grs.xml is static]) ZEBRA_MODULE(grs-xml,[$def], [ --enable-mod-grs-xml XML filter (Expat based)]) oldCPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $YAZINC" @@ -286,8 +263,11 @@ AC_PREPROC_IFELSE( [def="shared"], [def="disabled"]) CPPFLAGS=$oldCPPFLAGS +AC_DEFINE([IDZEBRA_STATIC_DOM],[0],[Whether module dom is static]) ZEBRA_MODULE(dom,[$def], [ --enable-mod-dom XML/XSLT filter (Requires libxslt)]) +AC_DEFINE([IDZEBRA_STATIC_ALVIS],[0],[Whether module alvis is static]) ZEBRA_MODULE(alvis,[$def], [ --enable-mod-alvis ALVIS filter (Requires libxslt)]) +AC_DEFINE([IDZEBRA_STATIC_SAFARI],[0],[Whether module safari is static]) ZEBRA_MODULE(safari,shared,[ --enable-mod-safari Safari filter (DBC)]) dnl ------ ANSI C Header files diff --git a/data1/d1_absyn.c b/data1/d1_absyn.c index d9100fb..d737d35 100644 --- a/data1/d1_absyn.c +++ b/data1/d1_absyn.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_attset.c b/data1/d1_attset.c index dc2abff..e745292 100644 --- a/data1/d1_attset.c +++ b/data1/d1_attset.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_doespec.c b/data1/d1_doespec.c index 14a0340..c6dc0c6 100644 --- a/data1/d1_doespec.c +++ b/data1/d1_doespec.c @@ -22,6 +22,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * See http://www.loc.gov/z3950/agency/defns/variant1.html */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/data1/d1_espec.c b/data1/d1_espec.c index f3829be..ea73ee4 100644 --- a/data1/d1_espec.c +++ b/data1/d1_espec.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_expout.c b/data1/d1_expout.c index 5aed61e..9b82aa7 100644 --- a/data1/d1_expout.c +++ b/data1/d1_expout.c @@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * This module converts data1 tree to Z39.50 Explain records */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_grs.c b/data1/d1_grs.c index 1b9ea1d..fe816b4 100644 --- a/data1/d1_grs.c +++ b/data1/d1_grs.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* converts data1 tree to GRS-1 record */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/data1/d1_handle.c b/data1/d1_handle.c index cdb0caf..43b7ba8 100644 --- a/data1/d1_handle.c +++ b/data1/d1_handle.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/data1/d1_if.c b/data1/d1_if.c index 25a0d9a..2ec128c 100644 --- a/data1/d1_if.c +++ b/data1/d1_if.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_map.c b/data1/d1_map.c index bc0de05..3f766e4 100644 --- a/data1/d1_map.c +++ b/data1/d1_map.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_marc.c b/data1/d1_marc.c index d41ae9b..a332b2a 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* converts data1 tree to ISO2709/MARC record */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_prtree.c b/data1/d1_prtree.c index 1e5405c..b677017 100644 --- a/data1/d1_prtree.c +++ b/data1/d1_prtree.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/data1/d1_read.c b/data1/d1_read.c index c1f18d7..54f7525 100644 --- a/data1/d1_read.c +++ b/data1/d1_read.c @@ -22,6 +22,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * This module reads "loose" SGML and converts it to data1 tree */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_soif.c b/data1/d1_soif.c index 26da8e2..94abb62 100644 --- a/data1/d1_soif.c +++ b/data1/d1_soif.c @@ -24,6 +24,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * concatenating the tag names at each level. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/data1/d1_sumout.c b/data1/d1_sumout.c index fb4094f..8d30cca 100644 --- a/data1/d1_sumout.c +++ b/data1/d1_sumout.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_sutrs.c b/data1/d1_sutrs.c index 4b5570f..4180b10 100644 --- a/data1/d1_sutrs.c +++ b/data1/d1_sutrs.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* converts data1 tree to SUTRS record */ +#if HAVE_CONFIG_H +#include +#endif #include #define NTOBUF_INDENT 2 diff --git a/data1/d1_tagset.c b/data1/d1_tagset.c index d653f8d..d970101 100644 --- a/data1/d1_tagset.c +++ b/data1/d1_tagset.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_utils.c b/data1/d1_utils.c index 3212a52..b714d87 100644 --- a/data1/d1_utils.c +++ b/data1/d1_utils.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/data1/d1_varset.c b/data1/d1_varset.c index bbae245..843b271 100644 --- a/data1/d1_varset.c +++ b/data1/d1_varset.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/data1/d1_write.c b/data1/d1_write.c index 97b1b14..003bc15 100644 --- a/data1/d1_write.c +++ b/data1/d1_write.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* converts data1 tree to XML record */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/dfa/agrep.c b/dfa/agrep.c index 2e762b6..0d671ef 100644 --- a/dfa/agrep.c +++ b/dfa/agrep.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dfa/bset.c b/dfa/bset.c index aebf79b..065526d 100644 --- a/dfa/bset.c +++ b/dfa/bset.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/dfa/dfa.c b/dfa/dfa.c index b19ba1f..b20650f 100644 --- a/dfa/dfa.c +++ b/dfa/dfa.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/dfa/grepper.c b/dfa/grepper.c index 84bda4c..8524fd1 100644 --- a/dfa/grepper.c +++ b/dfa/grepper.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dfa/imalloc.c b/dfa/imalloc.c index 917f867..df29d0c 100644 --- a/dfa/imalloc.c +++ b/dfa/imalloc.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dfa/lexer.c b/dfa/lexer.c index f4a56af..578081d 100644 --- a/dfa/lexer.c +++ b/dfa/lexer.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/dfa/readfile.c b/dfa/readfile.c index e667954..458ea25 100644 --- a/dfa/readfile.c +++ b/dfa/readfile.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/dfa/set.c b/dfa/set.c index 272c0bf..92faf51 100644 --- a/dfa/set.c +++ b/dfa/set.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/dfa/states.c b/dfa/states.c index 66c78b6..76b3e76 100644 --- a/dfa/states.c +++ b/dfa/states.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/dfa/test_dfa.c b/dfa/test_dfa.c index 15844a0..7caef43 100644 --- a/dfa/test_dfa.c +++ b/dfa/test_dfa.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/dict/close.c b/dict/close.c index 781a63f..971c2de 100644 --- a/dict/close.c +++ b/dict/close.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/dclose.c b/dict/dclose.c index f424681..4dcdb10 100644 --- a/dict/dclose.c +++ b/dict/dclose.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/dcompact.c b/dict/dcompact.c index fccfbee..1c792b3 100644 --- a/dict/dcompact.c +++ b/dict/dcompact.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/delete.c b/dict/delete.c index b8ac9da..d81c384 100644 --- a/dict/delete.c +++ b/dict/delete.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/dictext.c b/dict/dictext.c index c4b7dfd..11dce88 100644 --- a/dict/dictext.c +++ b/dict/dictext.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/dicttest.c b/dict/dicttest.c index 8b9d088..a5e12d6 100644 --- a/dict/dicttest.c +++ b/dict/dicttest.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/dopen.c b/dict/dopen.c index 513b98e..e95c59a 100644 --- a/dict/dopen.c +++ b/dict/dopen.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #if HAVE_UNISTD_H diff --git a/dict/drdwr.c b/dict/drdwr.c index f66f8df..670ed45 100644 --- a/dict/drdwr.c +++ b/dict/drdwr.c @@ -19,6 +19,9 @@ +#if HAVE_CONFIG_H +#include +#endif #include #include #if HAVE_UNISTD_H diff --git a/dict/insert.c b/dict/insert.c index f6c5df8..ff9aca1 100644 --- a/dict/insert.c +++ b/dict/insert.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/lookgrep.c b/dict/lookgrep.c index fba076f..ebd54b7 100644 --- a/dict/lookgrep.c +++ b/dict/lookgrep.c @@ -19,6 +19,9 @@ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/lookup.c b/dict/lookup.c index 99138f7..6a45359 100644 --- a/dict/lookup.c +++ b/dict/lookup.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/lookupec.c b/dict/lookupec.c index 77042a3..237cab0 100644 --- a/dict/lookupec.c +++ b/dict/lookupec.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/open.c b/dict/open.c index 66f7ff3..d31252f 100644 --- a/dict/open.c +++ b/dict/open.c @@ -19,6 +19,9 @@ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/scan.c b/dict/scan.c index 3591a55..bbf1374 100644 --- a/dict/scan.c +++ b/dict/scan.c @@ -18,6 +18,9 @@ */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/dict/scantest.c b/dict/scantest.c index 0fad9c6..5da634b 100644 --- a/dict/scantest.c +++ b/dict/scantest.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/attribute.c b/index/attribute.c index bf69af2..785ff8a 100644 --- a/index/attribute.c +++ b/index/attribute.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/index/check_res.c b/index/check_res.c index 45c1bdf..f5315a0 100644 --- a/index/check_res.c +++ b/index/check_res.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/compact.c b/index/compact.c index d0660cc..dbdd560 100644 --- a/index/compact.c +++ b/index/compact.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/dir.c b/index/dir.c index 0a59edb..c3c0f62 100644 --- a/index/dir.c +++ b/index/dir.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/dirs.c b/index/dirs.c index b106bf6..674fb91 100644 --- a/index/dirs.c +++ b/index/dirs.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/extract.c b/index/extract.c index f70d824..4f75f77 100644 --- a/index/extract.c +++ b/index/extract.c @@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \brief indexes records and extract tokens for indexing and sorting */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/inline.c b/index/inline.c index 2e00ee7..ace801b 100644 --- a/index/inline.c +++ b/index/inline.c @@ -16,6 +16,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/invstat.c b/index/invstat.c index 756346c..dede37f 100644 --- a/index/invstat.c +++ b/index/invstat.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/isam_methods.c b/index/isam_methods.c index b5cd961..468fc37 100644 --- a/index/isam_methods.c +++ b/index/isam_methods.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/kcontrol.c b/index/kcontrol.c index eaccd30..58309a0 100644 --- a/index/kcontrol.c +++ b/index/kcontrol.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "index.h" diff --git a/index/kdump.c b/index/kdump.c index 2fdfbd6..beb91ce 100644 --- a/index/kdump.c +++ b/index/kdump.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/key_block.c b/index/key_block.c index 3473a02..d127d55 100644 --- a/index/key_block.c +++ b/index/key_block.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/kinput.c b/index/kinput.c index 4525b49..ddc58ae 100644 --- a/index/kinput.c +++ b/index/kinput.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #ifdef WIN32 #include diff --git a/index/limit.c b/index/limit.c index 7d31a6f..1647600 100644 --- a/index/limit.c +++ b/index/limit.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/index/marcomp.c b/index/marcomp.c index 2c66359..3c6ef15 100644 --- a/index/marcomp.c +++ b/index/marcomp.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/mod_alvis.c b/index/mod_alvis.c index a91df02..15212e2 100644 --- a/index/mod_alvis.c +++ b/index/mod_alvis.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -709,7 +712,7 @@ static struct recType filter_type = { }; RecType -#ifdef IDZEBRA_STATIC_ALVIS +#if IDZEBRA_STATIC_ALVIS idzebra_filter_alvis #else idzebra_filter diff --git a/index/mod_dom.c b/index/mod_dom.c index e3bdb47..de2a872 100644 --- a/index/mod_dom.c +++ b/index/mod_dom.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -1561,7 +1564,7 @@ static struct recType filter_type = { }; RecType -#ifdef IDZEBRA_STATIC_DOM +#if IDZEBRA_STATIC_DOM idzebra_filter_dom #else idzebra_filter diff --git a/index/mod_grs_marc.c b/index/mod_grs_marc.c index aec9559..06fe9f5 100644 --- a/index/mod_grs_marc.c +++ b/index/mod_grs_marc.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -892,7 +895,7 @@ static struct recType marcxml_type = { }; RecType -#ifdef IDZEBRA_STATIC_GRS_MARC +#if IDZEBRA_STATIC_GRS_MARC idzebra_filter_grs_marc #else idzebra_filter diff --git a/index/mod_grs_regx.c b/index/mod_grs_regx.c index 8be3ba0..7c6e28e 100644 --- a/index/mod_grs_regx.c +++ b/index/mod_grs_regx.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -2014,7 +2017,7 @@ static struct recType tcl_type = { #endif RecType -#ifdef IDZEBRA_STATIC_GRS_REGX +#if IDZEBRA_STATIC_GRS_REGX idzebra_filter_grs_regx #else idzebra_filter diff --git a/index/mod_grs_sgml.c b/index/mod_grs_sgml.c index d9570e6..82d719d 100644 --- a/index/mod_grs_sgml.c +++ b/index/mod_grs_sgml.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -123,7 +126,7 @@ static struct recType grs_type_sgml = }; RecType -#ifdef IDZEBRA_STATIC_GRS_SGML +#if IDZEBRA_STATIC_GRS_SGML idzebra_filter_grs_sgml #else idzebra_filter diff --git a/index/mod_grs_xml.c b/index/mod_grs_xml.c index c587e87..7df0f32 100644 --- a/index/mod_grs_xml.c +++ b/index/mod_grs_xml.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #if HAVE_EXPAT_H #include @@ -525,7 +528,7 @@ static struct recType filter_type = { }; RecType -#ifdef IDZEBRA_STATIC_GRS_XML +#if IDZEBRA_STATIC_GRS_XML idzebra_filter_grs_xml #else idzebra_filter diff --git a/index/mod_safari.c b/index/mod_safari.c index 92e9336..d36c450 100644 --- a/index/mod_safari.c +++ b/index/mod_safari.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -299,7 +302,7 @@ static struct recType filter_type2 = { }; RecType -#ifdef IDZEBRA_STATIC_SAFARI +#if IDZEBRA_STATIC_SAFARI idzebra_filter_safari #else idzebra_filter diff --git a/index/mod_text.c b/index/mod_text.c index 7454ed7..3ff6c3b 100644 --- a/index/mod_text.c +++ b/index/mod_text.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -244,7 +247,7 @@ static struct recType filter_type = { }; RecType -#ifdef IDZEBRA_STATIC_TEXT +#if IDZEBRA_STATIC_TEXT idzebra_filter_text #else idzebra_filter diff --git a/index/orddict.c b/index/orddict.c index 5c9b5a7..20ce0e4 100644 --- a/index/orddict.c +++ b/index/orddict.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include "index.h" diff --git a/index/rank1.c b/index/rank1.c index 1fbf67e..a9da489 100644 --- a/index/rank1.c +++ b/index/rank1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #ifdef WIN32 diff --git a/index/ranksimilarity.c b/index/ranksimilarity.c index c38bc35..883c9ce 100644 --- a/index/ranksimilarity.c +++ b/index/ranksimilarity.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/rankstatic.c b/index/rankstatic.c index 508081e..09f593e 100644 --- a/index/rankstatic.c +++ b/index/rankstatic.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/recctrl.c b/index/recctrl.c index 2e2621d..f24395e 100644 --- a/index/recctrl.c +++ b/index/recctrl.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -55,7 +58,7 @@ RecTypeClass recTypeClass_create (Res res, NMEM nmem) { struct recTypeClass *rts = 0; -#ifdef IDZEBRA_STATIC_GRS_SGML +#if IDZEBRA_STATIC_GRS_SGML if (1) { extern RecType idzebra_filter_grs_sgml[]; @@ -63,7 +66,7 @@ RecTypeClass recTypeClass_create (Res res, NMEM nmem) } #endif -#ifdef IDZEBRA_STATIC_TEXT +#if IDZEBRA_STATIC_TEXT if (1) { extern RecType idzebra_filter_text[]; @@ -71,7 +74,7 @@ RecTypeClass recTypeClass_create (Res res, NMEM nmem) } #endif -#ifdef IDZEBRA_STATIC_GRS_XML +#if IDZEBRA_STATIC_GRS_XML #if HAVE_EXPAT_H if (1) { @@ -81,7 +84,7 @@ RecTypeClass recTypeClass_create (Res res, NMEM nmem) #endif #endif -#ifdef IDZEBRA_STATIC_GRS_REGX +#if IDZEBRA_STATIC_GRS_REGX if (1) { extern RecType idzebra_filter_grs_regx[]; @@ -89,7 +92,7 @@ RecTypeClass recTypeClass_create (Res res, NMEM nmem) } #endif -#ifdef IDZEBRA_STATIC_GRS_MARC +#if IDZEBRA_STATIC_GRS_MARC if (1) { extern RecType idzebra_filter_grs_marc[]; @@ -97,7 +100,7 @@ RecTypeClass recTypeClass_create (Res res, NMEM nmem) } #endif -#ifdef IDZEBRA_STATIC_SAFARI +#if IDZEBRA_STATIC_SAFARI if (1) { extern RecType idzebra_filter_safari[]; @@ -105,7 +108,7 @@ RecTypeClass recTypeClass_create (Res res, NMEM nmem) } #endif -#ifdef IDZEBRA_STATIC_ALVIS +#if IDZEBRA_STATIC_ALVIS if (1) { extern RecType idzebra_filter_alvis[]; @@ -113,7 +116,7 @@ RecTypeClass recTypeClass_create (Res res, NMEM nmem) } #endif -#ifdef IDZEBRA_STATIC_DOM +#if IDZEBRA_STATIC_DOM if (1) { extern RecType idzebra_filter_dom[]; diff --git a/index/recgrs.c b/index/recgrs.c index 1457112..7e755a1 100644 --- a/index/recgrs.c +++ b/index/recgrs.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/recindex.c b/index/recindex.c index b040170..8aa0c85 100644 --- a/index/recindex.c +++ b/index/recindex.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/reckeys.c b/index/reckeys.c index d9b56d3..39a3f4a 100644 --- a/index/reckeys.c +++ b/index/reckeys.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/records.c b/index/records.c index ad0a19f..490c358 100644 --- a/index/records.c +++ b/index/records.c @@ -32,6 +32,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * (length, data) - pairs * length = 0 if same as previous */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/retrieve.c b/index/retrieve.c index 0e7be09..c9c8184 100644 --- a/index/retrieve.c +++ b/index/retrieve.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/index/rpnscan.c b/index/rpnscan.c index 005bc1c..f638f83 100644 --- a/index/rpnscan.c +++ b/index/rpnscan.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #ifdef WIN32 diff --git a/index/rpnsearch.c b/index/rpnsearch.c index 6eb12e6..3fbaa83 100644 --- a/index/rpnsearch.c +++ b/index/rpnsearch.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #ifdef WIN32 diff --git a/index/rset_isam.c b/index/rset_isam.c index f475faa..9142dd2 100644 --- a/index/rset_isam.c +++ b/index/rset_isam.c @@ -20,6 +20,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /** \file \brief factory function for RSET from ISAM */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/index/sortidx.c b/index/sortidx.c index 6b52ee9..dc27758 100644 --- a/index/sortidx.c +++ b/index/sortidx.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/index/stream.c b/index/stream.c index b10e621..d1b0141 100644 --- a/index/stream.c +++ b/index/stream.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/index/trunc.c b/index/trunc.c index 4887738..b8feeea 100644 --- a/index/trunc.c +++ b/index/trunc.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/index/untrans.c b/index/untrans.c index 288e504..8143342 100644 --- a/index/untrans.c +++ b/index/untrans.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/update_file.c b/index/update_file.c index 375935e..072444a 100644 --- a/index/update_file.c +++ b/index/update_file.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/update_path.c b/index/update_path.c index d34b602..6e4585c 100644 --- a/index/update_path.c +++ b/index/update_path.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/zaptterm.c b/index/zaptterm.c index bbe08fe..7c83e2f 100644 --- a/index/zaptterm.c +++ b/index/zaptterm.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/zebraapi.c b/index/zebraapi.c index 4388e63..b696907 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/zebraidx.c b/index/zebraidx.c index 0ec053c..1baaedd 100644 --- a/index/zebraidx.c +++ b/index/zebraidx.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/zebrash.c b/index/zebrash.c index 116add4..7c176d8 100644 --- a/index/zebrash.c +++ b/index/zebrash.c @@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA zebrash.c - command-line interface to zebra API */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/zinfo.c b/index/zinfo.c index a354e79..cfede29 100644 --- a/index/zinfo.c +++ b/index/zinfo.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/index/zsets.c b/index/zsets.c index 4a8c74c..a168730 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #ifdef WIN32 diff --git a/isamb/benchindex1.c b/isamb/benchindex1.c index 804e08c..ead7127 100644 --- a/isamb/benchindex1.c +++ b/isamb/benchindex1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/isamb/benchisamb.c b/isamb/benchisamb.c index d56bd74..a726e62 100644 --- a/isamb/benchisamb.c +++ b/isamb/benchisamb.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #if HAVE_SYS_TIMES_H #include diff --git a/isamb/isamb.c b/isamb/isamb.c index 933f389..4c1c803 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/isamb/tstisamb.c b/isamb/tstisamb.c index 3c77ac9..72de84a 100644 --- a/isamb/tstisamb.c +++ b/isamb/tstisamb.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #if HAVE_SYS_TIMES_H #include #endif diff --git a/isamc/isamc.c b/isamc/isamc.c index 8a2b0f0..80f8199 100644 --- a/isamc/isamc.c +++ b/isamc/isamc.c @@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * TODO: * Reduction to lower categories in isamc_merge */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/isamc/merge.c b/isamc/merge.c index 030b17e..35f19c0 100644 --- a/isamc/merge.c +++ b/isamc/merge.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/isams/isams.c b/isams/isams.c index 69b2bd0..52e1be5 100644 --- a/isams/isams.c +++ b/isams/isams.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rsbetween.c b/rset/rsbetween.c index 48ea0c5..4c51534 100644 --- a/rset/rsbetween.c +++ b/rset/rsbetween.c @@ -28,6 +28,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rsbool.c b/rset/rsbool.c index 8903ca5..2335771 100644 --- a/rset/rsbool.c +++ b/rset/rsbool.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rset.c b/rset/rset.c index 3be3552..3da4bd6 100644 --- a/rset/rset.c +++ b/rset/rset.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rsisamb.c b/rset/rsisamb.c index 712b505..b860a68 100644 --- a/rset/rsisamb.c +++ b/rset/rsisamb.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rsisamc.c b/rset/rsisamc.c index 731e6d6..39af63a 100644 --- a/rset/rsisamc.c +++ b/rset/rsisamc.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rsisams.c b/rset/rsisams.c index 1cea33a..7236fc2 100644 --- a/rset/rsisams.c +++ b/rset/rsisams.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rsmultiandor.c b/rset/rsmultiandor.c index 9beb87b..fd7ed2b 100644 --- a/rset/rsmultiandor.c +++ b/rset/rsmultiandor.c @@ -32,6 +32,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rsnull.c b/rset/rsnull.c index 8553b77..3731eaa 100644 --- a/rset/rsnull.c +++ b/rset/rsnull.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rsprox.c b/rset/rsprox.c index 22a8702..9a9951a 100644 --- a/rset/rsprox.c +++ b/rset/rsprox.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/rset/rstemp.c b/rset/rstemp.c index b260c49..f92eaa4 100644 --- a/rset/rstemp.c +++ b/rset/rstemp.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/test/api/test_create_databases.c b/test/api/test_create_databases.c index 16f1988..77f76a9 100644 --- a/test/api/test_create_databases.c +++ b/test/api/test_create_databases.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /** Create many databases */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void tst(int argc, char **argv) diff --git a/test/api/test_icu_indexing.c b/test/api/test_icu_indexing.c index d6658ac..b584451 100644 --- a/test/api/test_icu_indexing.c +++ b/test/api/test_icu_indexing.c @@ -20,6 +20,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /** \file \brief tests ICU enabled maps */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/api/test_insert_fetch.c b/test/api/test_insert_fetch.c index 4bab5e1..32c34ee 100644 --- a/test/api/test_insert_fetch.c +++ b/test/api/test_insert_fetch.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* insert a small pile of records, search and fetch them */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *myrec[] = { diff --git a/test/api/test_private_attset.c b/test/api/test_private_attset.c index 3d17644..35b7e0a 100644 --- a/test/api/test_private_attset.c +++ b/test/api/test_private_attset.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *myrec[] ={ diff --git a/test/api/test_rank.c b/test/api/test_rank.c index 212c0f5..8bf17f4 100644 --- a/test/api/test_rank.c +++ b/test/api/test_rank.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *recs[] = { diff --git a/test/api/test_resources.c b/test/api/test_resources.c index 77dfde4..bf0eb88 100644 --- a/test/api/test_resources.c +++ b/test/api/test_resources.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** test resources */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include "testlib.h" diff --git a/test/api/test_result_sets.c b/test/api/test_result_sets.c index 1fd3adc..7f35f47 100644 --- a/test/api/test_result_sets.c +++ b/test/api/test_result_sets.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* Creates a few result sets */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *myrec[] ={ diff --git a/test/api/test_safari.c b/test/api/test_safari.c index 590305b..2834b2f 100644 --- a/test/api/test_safari.c +++ b/test/api/test_safari.c @@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \brief test safari filter */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *myrec[] = diff --git a/test/api/test_scan.c b/test/api/test_scan.c index abb6a68..a30c833 100644 --- a/test/api/test_scan.c +++ b/test/api/test_scan.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** testing of scan */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *myrec[] = { diff --git a/test/api/test_search.c b/test/api/test_search.c index 9933f19..423f76c 100644 --- a/test/api/test_search.c +++ b/test/api/test_search.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /** \file \brief test various search attributes */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/api/test_sort1.c b/test/api/test_sort1.c index ec1e3e3..1fecf13 100644 --- a/test/api/test_sort1.c +++ b/test/api/test_sort1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *myrec[] = { diff --git a/test/api/test_sort2.c b/test/api/test_sort2.c index 15afa75..8cb712d 100644 --- a/test/api/test_sort2.c +++ b/test/api/test_sort2.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *myrec[] = { diff --git a/test/api/test_sort3.c b/test/api/test_sort3.c index 8e7b982..88e8062 100644 --- a/test/api/test_sort3.c +++ b/test/api/test_sort3.c @@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \brief sort using various sortindex types */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/api/test_sort_set.c b/test/api/test_sort_set.c index 8bcde66..525a794 100644 --- a/test/api/test_sort_set.c +++ b/test/api/test_sort_set.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" #include diff --git a/test/api/test_sortidx.c b/test/api/test_sortidx.c index 9862afa..76580f8 100644 --- a/test/api/test_sortidx.c +++ b/test/api/test_sortidx.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include "testlib.h" diff --git a/test/api/test_special_elements.c b/test/api/test_special_elements.c index 7c47ffb..d4ab1bd 100644 --- a/test/api/test_special_elements.c +++ b/test/api/test_special_elements.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /** \brief test special element set names zebra:: and friends */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" const char *myrec[] = { diff --git a/test/api/test_start_stop.c b/test/api/test_start_stop.c index 8ab500c..2e46030 100644 --- a/test/api/test_start_stop.c +++ b/test/api/test_start_stop.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/api/test_trunc.c b/test/api/test_trunc.c index 841c58c..002d5a3 100644 --- a/test/api/test_trunc.c +++ b/test/api/test_trunc.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* Insert a number of randomly generated words and truncate */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void tst(int argc, char **argv) diff --git a/test/api/test_update_record.c b/test/api/test_update_record.c index f073883..7aefb78 100644 --- a/test/api/test_update_record.c +++ b/test/api/test_update_record.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void create_search_drop(ZebraHandle zh) diff --git a/test/api/test_zebra_fork.c b/test/api/test_zebra_fork.c index c1e13db..281ff1d 100644 --- a/test/api/test_zebra_fork.c +++ b/test/api/test_zebra_fork.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #if HAVE_SYS_STAT_H #include #endif diff --git a/test/api/testclient.c b/test/api/testclient.c index 2418dfc..377f838 100644 --- a/test/api/testclient.c +++ b/test/api/testclient.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #ifdef WIN32 diff --git a/test/api/testlib.c b/test/api/testlib.c index 8a11239..82aa14d 100644 --- a/test/api/testlib.c +++ b/test/api/testlib.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /** testlib - utilities for the api tests */ +#if HAVE_CONFIG_H +#include +#endif #if HAVE_SYS_TIME_H #include #endif diff --git a/test/charmap/charmap1.c b/test/charmap/charmap1.c index a0833cb..92d2bb5 100644 --- a/test/charmap/charmap1.c +++ b/test/charmap/charmap1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" static void tst(int argc, char **argv) diff --git a/test/codec/tstcodec.c b/test/codec/tstcodec.c index a266322..cd9bee6 100644 --- a/test/codec/tstcodec.c +++ b/test/codec/tstcodec.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "../../index/index.h" diff --git a/test/espec/t1.c b/test/espec/t1.c index 010ec38..89263d2 100644 --- a/test/espec/t1.c +++ b/test/espec/t1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" static void tst(int argc, char **argv) diff --git a/test/filters/grs.marc.c b/test/filters/grs.marc.c index 81c8e08..824f074 100644 --- a/test/filters/grs.marc.c +++ b/test/filters/grs.marc.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" static void tst(int argc, char **argv) diff --git a/test/filters/grs.xml.c b/test/filters/grs.xml.c index 104ed95..5884edf 100644 --- a/test/filters/grs.xml.c +++ b/test/filters/grs.xml.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "../api/testlib.h" diff --git a/test/filters/grs.xml.idzebra.c b/test/filters/grs.xml.idzebra.c index d43acfc..0816551 100644 --- a/test/filters/grs.xml.idzebra.c +++ b/test/filters/grs.xml.idzebra.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "../api/testlib.h" diff --git a/test/filters/text.c b/test/filters/text.c index 1674a74..2eb18f9 100644 --- a/test/filters/text.c +++ b/test/filters/text.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" void tst(int argc, char **argv) diff --git a/test/marcxml/t1.c b/test/marcxml/t1.c index 216e5bb..458ea73 100644 --- a/test/marcxml/t1.c +++ b/test/marcxml/t1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void tst(int argc, char **argv) diff --git a/test/marcxml/t2.c b/test/marcxml/t2.c index dcc2bf7..7bb40dd 100644 --- a/test/marcxml/t2.c +++ b/test/marcxml/t2.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void tst(int argc, char **argv) diff --git a/test/mbox/mbox1.c b/test/mbox/mbox1.c index 8c2d900..578896f 100644 --- a/test/mbox/mbox1.c +++ b/test/mbox/mbox1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void tst(int argc, char **argv) diff --git a/test/rusmarc/t1.c b/test/rusmarc/t1.c index 503e57a..cd15f6a 100644 --- a/test/rusmarc/t1.c +++ b/test/rusmarc/t1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "../api/testlib.h" diff --git a/test/xpath/xpath1.c b/test/xpath/xpath1.c index cd60379..b582e74 100644 --- a/test/xpath/xpath1.c +++ b/test/xpath/xpath1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" /** xpath1.c - index a simple sgml record and search in it */ diff --git a/test/xpath/xpath2.c b/test/xpath/xpath2.c index 139f3b2..c1a327a 100644 --- a/test/xpath/xpath2.c +++ b/test/xpath/xpath2.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" /** xpath2.c - index a a bit more complex sgml record and search in it */ diff --git a/test/xpath/xpath3.c b/test/xpath/xpath3.c index 57ed208..c37343a 100644 --- a/test/xpath/xpath3.c +++ b/test/xpath/xpath3.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" /** xpath3.c - attributes, with Danish characters */ @@ -27,7 +30,7 @@ const char *myrec[] = { " content \n" " content \n" " \n" - " content \n" + " content \n" " \n", 0}; diff --git a/test/xpath/xpath4.c b/test/xpath/xpath4.c index e8b04cc..1e6f3d4 100644 --- a/test/xpath/xpath4.c +++ b/test/xpath/xpath4.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" /** xpath4.c - Attributes */ diff --git a/test/xpath/xpath5.c b/test/xpath/xpath5.c index 0ee5a7f..f2c63ed 100644 --- a/test/xpath/xpath5.c +++ b/test/xpath/xpath5.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" /** xpath5.c - Ranking in xpath */ diff --git a/test/xpath/xpath6.c b/test/xpath/xpath6.c index b7004fb..f22e714 100644 --- a/test/xpath/xpath6.c +++ b/test/xpath/xpath6.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "../api/testlib.h" static void tst(int argc, char **argv) diff --git a/test/xslt/dom1.c b/test/xslt/dom1.c index 095aa64..3a5d015 100644 --- a/test/xslt/dom1.c +++ b/test/xslt/dom1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/xslt/xslt1.c b/test/xslt/xslt1.c index 5d8c02f..52ce29d 100644 --- a/test/xslt/xslt1.c +++ b/test/xslt/xslt1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/xslt/xslt2.c b/test/xslt/xslt2.c index 7793d78..2d32aff 100644 --- a/test/xslt/xslt2.c +++ b/test/xslt/xslt2.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/xslt/xslt3.c b/test/xslt/xslt3.c index 8d761b0..4a0fada 100644 --- a/test/xslt/xslt3.c +++ b/test/xslt/xslt3.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/xslt/xslt4.c b/test/xslt/xslt4.c index f1c3255..99337e6 100644 --- a/test/xslt/xslt4.c +++ b/test/xslt/xslt4.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/test/xslt/xslt5.c b/test/xslt/xslt5.c index 0c5ad74..83d51e3 100644 --- a/test/xslt/xslt5.c +++ b/test/xslt/xslt5.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" diff --git a/util/atoi_zn.c b/util/atoi_zn.c index b16c680..40c4837 100644 --- a/util/atoi_zn.c +++ b/util/atoi_zn.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/attrfind.c b/util/attrfind.c index ce4f3eb..79ed7a6 100644 --- a/util/attrfind.c +++ b/util/attrfind.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/util/charmap.c b/util/charmap.c index 782f475..f5be7f1 100644 --- a/util/charmap.c +++ b/util/charmap.c @@ -26,6 +26,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Zebra dictionary. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/dirent.c b/util/dirent.c index 2897e84..add845b 100644 --- a/util/dirent.c +++ b/util/dirent.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #ifdef WIN32 diff --git a/util/exit.c b/util/exit.c index e13eb7b..d520a63 100644 --- a/util/exit.c +++ b/util/exit.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/util/flock.c b/util/flock.c index ee85b20..3157f36 100644 --- a/util/flock.c +++ b/util/flock.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/it_key.c b/util/it_key.c index 3f65af8..2be5886 100644 --- a/util/it_key.c +++ b/util/it_key.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/passwddb.c b/util/passwddb.c index 63375a0..f3113be 100644 --- a/util/passwddb.c +++ b/util/passwddb.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #if HAVE_UNISTD_H #include #endif diff --git a/util/res-test.c b/util/res-test.c index c2812b6..9099937 100644 --- a/util/res-test.c +++ b/util/res-test.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/util/res.c b/util/res.c index f88520a..efb6473 100644 --- a/util/res.c +++ b/util/res.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/snippet.c b/util/snippet.c index 92f5313..98f1206 100644 --- a/util/snippet.c +++ b/util/snippet.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/strmap.c b/util/strmap.c index d6e8531..cb51d81 100644 --- a/util/strmap.c +++ b/util/strmap.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/su_codec.c b/util/su_codec.c index 56d8736..892fc2b 100644 --- a/util/su_codec.c +++ b/util/su_codec.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/test_strmap.c b/util/test_strmap.c index fb40c0d..5826b92 100644 --- a/util/test_strmap.c +++ b/util/test_strmap.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/tstcharmap.c b/util/tstcharmap.c index 3e2be66..65a4fb5 100644 --- a/util/tstcharmap.c +++ b/util/tstcharmap.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/tstflock.c b/util/tstflock.c index 8bd23aa..2bea667 100644 --- a/util/tstflock.c +++ b/util/tstflock.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/tstlockscope.c b/util/tstlockscope.c index 32e9ce8..a541cfa 100644 --- a/util/tstlockscope.c +++ b/util/tstlockscope.c @@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \brief tests scope of fcntl locks.. Either "process" or "thread" */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/tstpass.c b/util/tstpass.c index afd2e44..e15146d 100644 --- a/util/tstpass.c +++ b/util/tstpass.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/tstres.c b/util/tstres.c index e392411..61f5dab 100644 --- a/util/tstres.c +++ b/util/tstres.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/xpath.c b/util/xpath.c index ef363b9..1a9f0d4 100644 --- a/util/xpath.c +++ b/util/xpath.c @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/zebra-lock.c b/util/zebra-lock.c index 23cb8bc..3332eda 100644 --- a/util/zebra-lock.c +++ b/util/zebra-lock.c @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/util/zebramap.c b/util/zebramap.c index 105c5e1..8165026 100644 --- a/util/zebramap.c +++ b/util/zebramap.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/util/zint.c b/util/zint.c index 26866dd..cd340fa 100644 --- a/util/zint.c +++ b/util/zint.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include