2007-09-19 00:15:07 +02:00
|
|
|
$NetBSD: patch-ai,v 1.10 2007/09/18 22:15:08 adrianp Exp $
|
2004-11-16 14:51:45 +01:00
|
|
|
|
2007-09-19 00:15:07 +02:00
|
|
|
--- configure.orig 2007-07-21 15:01:34.000000000 +0100
|
2005-02-18 17:59:57 +01:00
|
|
|
+++ configure
|
2007-09-19 00:15:07 +02:00
|
|
|
@@ -20022,13 +20022,13 @@ fi
|
2007-02-17 19:36:23 +01:00
|
|
|
done
|
2006-03-22 21:53:41 +01:00
|
|
|
|
2007-09-19 00:15:07 +02:00
|
|
|
|
2007-02-17 19:36:23 +01:00
|
|
|
- { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
|
|
|
|
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
|
|
|
|
+ { echo "$as_me:$LINENO: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
|
|
|
|
+echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6; }
|
2006-09-11 00:35:22 +02:00
|
|
|
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2006-03-22 21:53:41 +01:00
|
|
|
else
|
2006-09-11 00:35:22 +02:00
|
|
|
ac_check_lib_save_LIBS=$LIBS
|
2006-03-22 21:53:41 +01:00
|
|
|
-LIBS="-lpthread $LIBS"
|
2007-02-17 19:36:23 +01:00
|
|
|
+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
|
2006-09-11 00:35:22 +02:00
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
/* confdefs.h. */
|
|
|
|
_ACEOF
|
2007-09-19 00:15:07 +02:00
|
|
|
@@ -20085,7 +20085,7 @@ fi
|
2007-02-17 19:36:23 +01:00
|
|
|
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
|
2006-09-11 00:35:22 +02:00
|
|
|
if test $ac_cv_lib_pthread_pthread_create = yes; then
|
2006-03-22 21:53:41 +01:00
|
|
|
CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
|
2006-09-11 00:35:22 +02:00
|
|
|
- LIBS="$LIBS -lpthread"
|
|
|
|
+ LIBS="$LIBS ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
|
2006-03-22 21:53:41 +01:00
|
|
|
else
|
2007-02-17 19:36:23 +01:00
|
|
|
{ echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
|
|
|
|
echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
|
2007-09-19 00:15:07 +02:00
|
|
|
@@ -20194,7 +20194,7 @@ return sem_init ();
|
2007-02-17 19:36:23 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
|
|
|
-for ac_lib in '' pthread sem posix4 rt; do
|
|
|
|
+for ac_lib in '' pthread sem posix4 rt semaphore; do
|
|
|
|
if test -z "$ac_lib"; then
|
|
|
|
ac_res="none required"
|
|
|
|
else
|
2007-09-19 00:15:07 +02:00
|
|
|
@@ -20552,7 +20552,7 @@ if test "${ac_cv_lib_ssl_SSL_new+set}" =
|
2006-09-11 00:35:22 +02:00
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2006-03-22 21:53:41 +01:00
|
|
|
else
|
2006-09-11 00:35:22 +02:00
|
|
|
ac_check_lib_save_LIBS=$LIBS
|
2006-03-22 21:53:41 +01:00
|
|
|
-LIBS="-lssl $LIBS"
|
2007-09-19 00:15:07 +02:00
|
|
|
+LIBS="-lssl -lcrypto $LIBS"
|
2006-09-11 00:35:22 +02:00
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
/* confdefs.h. */
|
|
|
|
_ACEOF
|
2007-09-19 00:15:07 +02:00
|
|
|
@@ -23623,7 +23623,7 @@ gethostbyaddrrstyle=""
|
2007-02-17 19:36:23 +01:00
|
|
|
{ echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
|
|
|
|
echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
|
2006-03-22 21:53:41 +01:00
|
|
|
case "$host" in
|
|
|
|
-*-freebsd*)
|
|
|
|
+*-freebsd* | *-dragonfly*)
|
2007-09-19 00:15:07 +02:00
|
|
|
{ echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
|
|
|
|
echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
|
|
|
|
if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
|