]> git.sur5r.net Git - openocd/commitdiff
- added search for libdl
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 5 Jul 2008 09:57:19 +0000 (09:57 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 5 Jul 2008 09:57:19 +0000 (09:57 +0000)
- Thanks Charles Hardin

git-svn-id: svn://svn.berlios.de/openocd/trunk@754 b42882b7-edfa-0310-969c-e2dbd0fdcd60

configure.in
src/helper/command.c

index eebbc37643c85d4a36a10cdf294e02289a4e091b..343b52c624790ad9859b316ac95ba3805ea35706 100644 (file)
@@ -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)
index 8a736686a61d46a498b8b347055623f6b198831f..ed0a82e6218946c51a6b683a1604f4be20136a42 100644 (file)
@@ -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;