Skip to content

Commit

Permalink
Check for pthreads. Link to pthreads.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreer committed Aug 29, 2012
1 parent 69c1ea8 commit f18f53c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Expand Up @@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}

bin_PROGRAMS = ag
ag_SOURCES = src/ignore.c src/log.c src/options.c src/print.c src/scandir.c src/search.c src/util.c src/main.c
ag_LDADD = ${PCRE_LIBS}
ag_LDADD = ${PCRE_LIBS} -lpthread

man_MANS = doc/ag.1

Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -16,6 +16,8 @@ PKG_CHECK_MODULES([PCRE], [libpcre])
CFLAGS="$CFLAGS $PCRE_CFLAGS -Wall -Wextra -std=c89 -D_GNU_SOURCE"
LDFLAGS="$LDFLAGS"

AC_CHECK_HEADERS([pthread.h])

AC_CHECK_DECL([PCRE_CONFIG_JIT], [AC_DEFINE([USE_PCRE_JIT], [], [Use PCRE JIT])], [], [#include <pcre.h>])

AC_CHECK_FUNCS(getline strlcpy strlcat strndup)
Expand Down

0 comments on commit f18f53c

Please sign in to comment.