Skip to content

Commit

Permalink
Support custom include path for detection of libplist typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Bingner committed Sep 16, 2023
1 parent 8788204 commit 94fef8a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ PKG_CHECK_MODULES(libplist, libplist >= 2.2.0,
)

if test "x$LIBPLIST" != "x"; then
CFLAGS_save="${CFLAGS}"
CFLAGS="${CFLAGS} ${libplist_CFLAGS}"
AC_CHECK_DECLS([plist_format_typedef], [], [], [
#include <plist/plist.h>
plist_format_t plist_format_typedef;
])
#include <plist/plist.h>
plist_format_t plist_format_typedef;
])
CFLAGS="${CFLAGS_save}"
fi

AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build usbfluxd])])
Expand Down

0 comments on commit 94fef8a

Please sign in to comment.