Flag errors for missing libs, include from system dirs

This commit is contained in:
Michael Jumper
2010-09-21 23:39:41 +00:00
parent 3444d7b8e6
commit 672cd5d3f9
2 changed files with 5 additions and 4 deletions

View File

@@ -8,10 +8,11 @@ AM_INIT_AUTOMAKE(guacd, 0.0.1)
AC_PROG_CC AC_PROG_CC
# Checks for libraries. # Checks for libraries.
AC_CHECK_LIB([dl], [dlopen]) AC_CHECK_LIB([dl], [dlopen],, AC_MSG_ERROR("libdl is required for loading client plugins"))
AC_CHECK_LIB([guac], [guac_get_client]) AC_CHECK_LIB([guac], [guac_get_client],, AC_MSG_ERROR("libguac must be installed first"))
AC_CHECK_LIB([png], [png_write_png]) AC_CHECK_LIB([png], [png_write_png])
AC_CHECK_LIB([pthread], [pthread_create]) AC_CHECK_LIB([pthread], [pthread_create],, AC_MSG_ERROR("POSIX threads (libpthread) must be installed"))
# Checks for header files. # Checks for header files.
AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h]) AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h])

View File

@@ -30,7 +30,7 @@
#include <errno.h> #include <errno.h>
#include <syslog.h> #include <syslog.h>
#include "client.h" #include <client.h>
typedef struct client_thread_data { typedef struct client_thread_data {