Skip to content

Commit 7e666ee

Browse files
authored
Remove outdated with_threads checks in configure.ac (GH-4294)
1 parent a5293b4 commit 7e666ee

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

configure

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9512,9 +9512,7 @@ _ACEOF
95129512
fi
95139513
# Dynamic linking for HP-UX
95149514

9515-
# only check for sem_init if thread support is requested
9516-
if test "$with_threads" = "yes" -o -z "$with_threads"; then
9517-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
9515+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
95189516
$as_echo_n "checking for library containing sem_init... " >&6; }
95199517
if ${ac_cv_search_sem_init+:} false; then :
95209518
$as_echo_n "(cached) " >&6
@@ -9572,7 +9570,6 @@ fi
95729570
# 'Real Time' functions on Solaris
95739571
# posix4 on Solaris 2.6
95749572
# pthread (first!) on Linux
9575-
fi
95769573

95779574
# check if we need libintl for locale functions
95789575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
@@ -10150,9 +10147,6 @@ then
1015010147
fi
1015110148
posix_threads=yes
1015210149
else
10153-
if test ! -z "$with_threads" -a -d "$with_threads"
10154-
then LDFLAGS="$LDFLAGS -L$with_threads"
10155-
fi
1015610150
if test ! -z "$withval" -a -d "$withval"
1015710151
then LDFLAGS="$LDFLAGS -L$withval"
1015810152
fi

configure.ac

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,12 +2677,9 @@ AC_CHECK_LIB(sendfile, sendfile)
26772677
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
26782678
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
26792679

2680-
# only check for sem_init if thread support is requested
2681-
if test "$with_threads" = "yes" -o -z "$with_threads"; then
2682-
AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
2680+
AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
26832681
# posix4 on Solaris 2.6
26842682
# pthread (first!) on Linux
2685-
fi
26862683

26872684
# check if we need libintl for locale functions
26882685
AC_CHECK_LIB(intl, textdomain,
@@ -2926,9 +2923,6 @@ then
29262923
fi
29272924
posix_threads=yes
29282925
else
2929-
if test ! -z "$with_threads" -a -d "$with_threads"
2930-
then LDFLAGS="$LDFLAGS -L$with_threads"
2931-
fi
29322926
if test ! -z "$withval" -a -d "$withval"
29332927
then LDFLAGS="$LDFLAGS -L$withval"
29342928
fi

0 commit comments

Comments
 (0)