Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
f41beb9e
Commit
f41beb9e
authored
Sep 19, 1998
by
Kurt Zeilenga
Browse files
-pthread test should have mangled LIBS not CPPFLAGS
parent
f3eddc76
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure
View file @
f41beb9e
...
...
@@ -1751,8 +1751,8 @@ if eval "test \"`echo '$''{'cf_cv_pthread_flag'+set}'`\" = set"; then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
save_
CPPFLAGS
=
$CPPFLAGS
CPPFLAG
S
=
"-pthread
$
CPPFLAG
S
"
save_
LIBS
=
"
$LIBS
"
LIB
S
=
"-pthread
$
LIB
S
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 1758 "configure"
#include "confdefs.h"
...
...
@@ -1774,7 +1774,7 @@ else
cf_cv_pthread_flag
=
no
fi
rm
-f
conftest
*
CPPFLAG
S
=
$save_
CPPFLAGS
LIB
S
=
"
$save_
LIBS
"
fi
...
...
configure.in
View file @
f41beb9e
...
...
@@ -263,14 +263,14 @@ dnl AC_DEFINE(HAVE_LINUX_THREADS,1)
AC_CACHE_CHECK([for pthread_create with -pthread],
cf_cv_pthread_flag, [
dnl save the CPPFLAGS
save_
CPPFLAGS=$CPPFLAGS
CPPFLAG
S="-pthread $
CPPFLAG
S"
save_
LIBS="$LIBS"
LIB
S="-pthread $
LIB
S"
AC_TRY_LINK([#include <pthread.h>],[
if(0) pthread_create((pthread_t*) 0,
(pthread_attr_t*) 0, 0, 0);
], cf_cv_pthread_flag=yes, cf_cv_pthread_flag=no)
dnl restore the
CPPFLAG
S
CPPFLAG
S=$save_
CPPFLAGS
dnl restore the
LIB
S
LIB
S=
"
$save_
LIBS"
])
if test $cf_cv_pthread_flag = yes ; then
...
...
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