mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Minor fix for checking thread support in configuration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4980 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9f06142556
commit
636ef08486
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 8 12:05:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* configure.in: Correct path to include file for checking thread support
|
||||
(bug reported by kai@cats.ms).
|
||||
|
||||
Tue Sep 5 11:21:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSUserDefaults.m: Fix for crash when reading corrupt file.
|
||||
|
|
6
configure
vendored
6
configure
vendored
|
@ -1291,7 +1291,7 @@ else
|
|||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1293 "configure"
|
||||
#include "confdefs.h"
|
||||
#include "config_thread.m"
|
||||
#include "config/config_thread.m"
|
||||
EOF
|
||||
if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
|
@ -1314,7 +1314,7 @@ else
|
|||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1316 "configure"
|
||||
#include "confdefs.h"
|
||||
#include "config_thread.m"
|
||||
#include "config/config_thread.m"
|
||||
EOF
|
||||
if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
|
@ -1336,7 +1336,7 @@ else
|
|||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1338 "configure"
|
||||
#include "confdefs.h"
|
||||
#include "config_thread.m"
|
||||
#include "config/config_thread.m"
|
||||
EOF
|
||||
if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
|
|
|
@ -198,16 +198,16 @@ if test $host_os = linux-gnu; then
|
|||
objc_threaded="", objc_threaded="-lpthread")
|
||||
if test x"$objc_threaded" = x""; then
|
||||
LIBS="-lobjc -lpcthread"
|
||||
AC_TRY_RUN([#include "config_thread.m"], objc_threaded="-lpcthread",
|
||||
AC_TRY_RUN([#include "config/config_thread.m"], objc_threaded="-lpcthread",
|
||||
objc_threaded="", objc_threaded="-lpcthread")
|
||||
fi
|
||||
elif test "`echo $host_os|sed 's/[[0-9]].*//'|sed s/elf//`" = freebsd; then
|
||||
LIBS="-pthread -lobjc"
|
||||
AC_TRY_RUN([#include "config_thread.m"], objc_threaded="-pthread",
|
||||
AC_TRY_RUN([#include "config/config_thread.m"], objc_threaded="-pthread",
|
||||
objc_threaded="", objc_threaded="-pthread")
|
||||
else
|
||||
LIBS="-lobjc $LIBS $extra_LIBS"
|
||||
AC_TRY_RUN([#include "config_thread.m"], objc_threaded="-lthread",
|
||||
AC_TRY_RUN([#include "config/config_thread.m"], objc_threaded="-lthread",
|
||||
objc_threaded="", objc_threaded="-lthread")
|
||||
fi
|
||||
LIBS="$saved_LIBS"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue