From: ntfreak Date: Sat, 5 Jul 2008 09:57:19 +0000 (+0000) Subject: - added search for libdl X-Git-Tag: v0.1.0~543 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71460ba9a59503bdf7780962b93143021d423958;p=openocd - added search for libdl - Thanks Charles Hardin git-svn-id: svn://svn.berlios.de/openocd/trunk@754 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/configure.in b/configure.in index eebbc376..343b52c6 100644 --- a/configure.in +++ b/configure.in @@ -1,10 +1,11 @@ AC_PREREQ(2.59) AC_INIT(configure.in) -AC_SEARCH_LIBS([ioperm], [ioperm]) - AC_CANONICAL_HOST +AC_SEARCH_LIBS([ioperm], [ioperm]) +AC_SEARCH_LIBS([dlopen], [dl]) + AC_CHECK_HEADERS(jtag_minidriver.h) AC_CHECK_HEADERS(sys/param.h) AC_CHECK_HEADERS(sys/time.h) diff --git a/src/helper/command.c b/src/helper/command.c index 8a736686..ed0a82e6 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -46,6 +46,9 @@ int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **ar int handle_time_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); int handle_fast_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); +/* forward declaration of jim_command */ +extern int jim_command(command_context_t *context, char *line); + int build_unique_lengths(command_context_t *context, command_t *commands) { command_t *c, *p; @@ -464,7 +467,6 @@ int command_run_line_internal(command_context_t *context, char *line) int command_run_line(command_context_t *context, char *line) { - int retval; if ((!context) || (!line)) return ERROR_INVALID_ARGUMENTS;