Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AAI
Shibboleth Debian packaging
log4shib
Commits
384a1d4c
Commit
384a1d4c
authored
Jun 25, 2018
by
Ferenc Wágner
Browse files
Shorten pthreads detection logic
parent
b585bcf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
384a1d4c
...
...
@@ -97,19 +97,14 @@ AC_CHECK_FUNCS([syslog gettimeofday ftime localtime_r gmtime_r])
AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([cannot find socket() function])])
AC_SEARCH_LIBS([gethostbyname],[nsl],,[AC_MSG_ERROR([cannot find gethostbyname() function])])
# checks for pthreads
AX_PTHREAD([enable_threads="pthread"],[enable_threads="no"])
if test $enable_threads != "pthread"; then
AC_MSG_ERROR([unable to find pthreads, currently this is required])
else
AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.])
AC_DEFINE(HAVE_THREADING,1,[define if threading is enabled])
AX_PTHREAD(
[AC_DEFINE(HAVE_THREADING,1,[define if threading is enabled])
AC_DEFINE(USE_PTHREADS,1,[define if pthread library is available])
AC_DEFINE(_PTHREADS,1,[define for STL if pthread library is used])
AM_CFLAGS="$PTHREAD_CFLAGS $AM_CFLAGS"
AM_CXXFLAGS="$PTHREAD_CFLAGS $AM_CXXFLAGS"
CC="$PTHREAD_CC"
fi
CC="$PTHREAD_CC"
],
[AC_MSG_ERROR([unable to find pthreads, currently this is required])])
AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_CXXFLAGS])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment