diff options
author | npmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56> | 2007-12-21 22:32:56 +0000 |
---|---|---|
committer | npmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56> | 2007-12-21 22:32:56 +0000 |
commit | 92e3f3a5ee6d78239f382099058f6334c1cefb09 (patch) | |
tree | 3905eb7a313b9c8a561b90ddf4be484695bf1591 | |
parent | 1fd20a346d1b8d4c4f889cd75c79685798136952 (diff) | |
download | libproxy-git-92e3f3a5ee6d78239f382099058f6334c1cefb09.tar.gz |
make configure check for pthread, actually link against it
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | src/lib/Makefile.am | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a722b2c..04b71a4 100644 --- a/configure.ac +++ b/configure.ac @@ -11,6 +11,10 @@ AC_PROG_LIBTOOL AC_PROG_LN_S AC_PROG_MAKE_SET +### Check for pthread +AC_CHECK_HEADERS(pthread.h) +AC_CHECK_FUNCS(pthread_mutex_init) + ### Checks for libraries for plugins. PKG_CHECK_MODULES(x11, x11, have_x11=yes, have_x11=no) PKG_CHECK_MODULES(xmu, xmu, have_xmu=yes, have_xmu=no) diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index f320af6..f6d5485 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -2,7 +2,7 @@ lib_LTLIBRARIES = libproxy.la libproxy_la_SOURCES = misc.c url.c pac.c dhcp.c dns.c slp.c wpad.c proxy_factory.c config_file.c \ misc.h url.h pac.h dhcp.h dns.h slp.h wpad.h proxy_factory.h proxy.h config_file.h libproxy_la_CFLAGS = -Wall -libproxy_la_LDFLAGS = -lm +libproxy_la_LDFLAGS = -lpthread include_HEADERS = proxy.h |