Tweak configure.ac to support $subject again. Also tweak
debuginfod-find.c to not unconditionally include json-c.h, since it
may just be compiled in "dummy" mode, sans such prerequisites. It
turns out debuginfod-find fails at run time very early in such a
configuration, long before it gets to jsonic activities.
Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
# pronounce judgement on ability to build client, overridden by =yes/=no
if test "x$enable_libdebuginfod" = "xno"; then
true
+elif test "x$enable_libdebuginfod" = "xdummy"; then
+ true
elif test "x$have_jsonc$have_libcurl" = "xyesyes"; then
enable_libdebuginfod=yes
elif test "x$enable_libdebuginfod" = "xyes" -o "x$enable_libdebuginfod" = "xdummy"; then
#include <fcntl.h>
#include <gelf.h>
#include <libdwelf.h>
+#ifndef DUMMY_LIBDEBUGINFOD
#include <json-c/json.h>
+#endif
/* Name and version of program. */
ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
rc = debuginfod_find_metadata (client, argv[remaining+1], argv[remaining+2],
&cache_name);
+#ifndef DUMMY_LIBDEBUGINFOD
if (rc >= 0)
{
/* We output a pprinted JSON object, not the regular debuginfod-find cached file path */
return 1;
}
}
+#endif
}
else
{