1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
$NetBSD: patch-am,v 1.2 2007/07/20 00:09:23 gdt Exp $
regen from patched configure.in
--- configure.orig 2007-07-15 10:27:53.000000000 -0400
+++ configure
@@ -942,11 +942,11 @@ POSUB
ALLOCA
SCM_I_GSC_USE_PTHREAD_THREADS
SCM_I_GSC_USE_NULL_THREADS
-SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT
acx_pthread_config
PTHREAD_CC
PTHREAD_LIBS
PTHREAD_CFLAGS
+SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT
cross_compiling
CC_FOR_BUILD
CCLD_FOR_BUILD
@@ -41504,7 +41504,6 @@ fi
SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=0
-
case "$with_threads" in
"yes" | "pthread" | "pthreads" | "pthread-threads" | "")
@@ -42053,6 +42052,16 @@ done
# glibc (2.3.6 at least) works both with or without braces, so the
# test checks whether it works without.
#
+
+ # If we're using GCC, ask for aggressive warnings. Otherwise the test
+ # below for braces may pass but then fail during compilation due to
+ # stricter checks at compile time
+ case "$GCC" in
+ yes )
+ CFLAGS="${CFLAGS} -Wall -Werror"
+ ;;
+ esac
+
{ echo "$as_me:$LINENO: checking whether PTHREAD_ONCE_INIT needs braces" >&5
echo $ECHO_N "checking whether PTHREAD_ONCE_INIT needs braces... $ECHO_C" >&6; }
if test "${guile_cv_need_braces_on_pthread_once_init+set}" = set; then
@@ -42102,7 +42111,7 @@ rm -f core conftest.err conftest.$ac_obj
fi
{ echo "$as_me:$LINENO: result: $guile_cv_need_braces_on_pthread_once_init" >&5
echo "${ECHO_T}$guile_cv_need_braces_on_pthread_once_init" >&6; }
- if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then
+ if test "$guile_cv_need_braces_on_pthread_once_init" = "yes"; then
SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=1
fi
@@ -42195,6 +42204,8 @@ fi
;;
esac
+SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=$SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT
+
case "$with_threads" in
"pthreads")
@@ -43377,11 +43388,11 @@ POSUB!$POSUB$ac_delim
ALLOCA!$ALLOCA$ac_delim
SCM_I_GSC_USE_PTHREAD_THREADS!$SCM_I_GSC_USE_PTHREAD_THREADS$ac_delim
SCM_I_GSC_USE_NULL_THREADS!$SCM_I_GSC_USE_NULL_THREADS$ac_delim
-SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT!$SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT$ac_delim
acx_pthread_config!$acx_pthread_config$ac_delim
PTHREAD_CC!$PTHREAD_CC$ac_delim
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
+SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT!$SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT$ac_delim
cross_compiling!$cross_compiling$ac_delim
CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
CCLD_FOR_BUILD!$CCLD_FOR_BUILD$ac_delim
|