3 --- configure.orig 2011-01-12 16:52:31.000000000 +0000
5 @@ -22973,6 +22973,146 @@ fi
9 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
10 + { echo "$as_me:$LINENO: checking for sys/atomic.h" >&5
11 +echo $ECHO_N "checking for sys/atomic.h... $ECHO_C" >&6; }
12 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
13 + echo $ECHO_N "(cached) $ECHO_C" >&6
15 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_atomic_h" >&5
16 +echo "${ECHO_T}$ac_cv_header_sys_atomic_h" >&6; }
18 + # Is the header compilable?
19 +{ echo "$as_me:$LINENO: checking sys/atomic.h usability" >&5
20 +echo $ECHO_N "checking sys/atomic.h usability... $ECHO_C" >&6; }
21 +cat >conftest.$ac_ext <<_ACEOF
24 +cat confdefs.h >>conftest.$ac_ext
25 +cat >>conftest.$ac_ext <<_ACEOF
26 +/* end confdefs.h. */
28 +#include <sys/atomic.h>
30 +rm -f conftest.$ac_objext
31 +if { (ac_try="$ac_compile"
33 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34 + *) ac_try_echo=$ac_try;;
36 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37 + (eval "$ac_compile") 2>conftest.er1
39 + grep -v '^ *+' conftest.er1 >conftest.err
41 + cat conftest.err >&5
42 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43 + (exit $ac_status); } && {
44 + test -z "$ac_c_werror_flag" ||
45 + test ! -s conftest.err
46 + } && test -s conftest.$ac_objext; then
47 + ac_header_compiler=yes
49 + echo "$as_me: failed program was:" >&5
50 +sed 's/^/| /' conftest.$ac_ext >&5
52 + ac_header_compiler=no
55 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57 +echo "${ECHO_T}$ac_header_compiler" >&6; }
59 +# Is the header present?
60 +{ echo "$as_me:$LINENO: checking sys/atomic.h presence" >&5
61 +echo $ECHO_N "checking sys/atomic.h presence... $ECHO_C" >&6; }
62 +cat >conftest.$ac_ext <<_ACEOF
65 +cat confdefs.h >>conftest.$ac_ext
66 +cat >>conftest.$ac_ext <<_ACEOF
67 +/* end confdefs.h. */
68 +#include <sys/atomic.h>
70 +if { (ac_try="$ac_cpp conftest.$ac_ext"
72 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73 + *) ac_try_echo=$ac_try;;
75 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
78 + grep -v '^ *+' conftest.er1 >conftest.err
80 + cat conftest.err >&5
81 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
82 + (exit $ac_status); } >/dev/null && {
83 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
84 + test ! -s conftest.err
86 + ac_header_preproc=yes
88 + echo "$as_me: failed program was:" >&5
89 +sed 's/^/| /' conftest.$ac_ext >&5
91 + ac_header_preproc=no
94 +rm -f conftest.err conftest.$ac_ext
95 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
96 +echo "${ECHO_T}$ac_header_preproc" >&6; }
98 +# So? What about this header?
99 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
101 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
102 +echo "$as_me: WARNING: sys/atomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
103 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: proceeding with the compiler's result" >&5
104 +echo "$as_me: WARNING: sys/atomic.h: proceeding with the compiler's result" >&2;}
105 + ac_header_preproc=yes
108 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: present but cannot be compiled" >&5
109 +echo "$as_me: WARNING: sys/atomic.h: present but cannot be compiled" >&2;}
110 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: check for missing prerequisite headers?" >&5
111 +echo "$as_me: WARNING: sys/atomic.h: check for missing prerequisite headers?" >&2;}
112 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: see the Autoconf documentation" >&5
113 +echo "$as_me: WARNING: sys/atomic.h: see the Autoconf documentation" >&2;}
114 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: section \"Present But Cannot Be Compiled\"" >&5
115 +echo "$as_me: WARNING: sys/atomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
116 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: proceeding with the preprocessor's result" >&5
117 +echo "$as_me: WARNING: sys/atomic.h: proceeding with the preprocessor's result" >&2;}
118 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: in the future, the compiler will take precedence" >&5
119 +echo "$as_me: WARNING: sys/atomic.h: in the future, the compiler will take precedence" >&2;}
121 +## ------------------------------------------ ##
122 +## Report this to https://issues.asterisk.org ##
123 +## ------------------------------------------ ##
125 + ) | sed "s/^/$as_me: WARNING: /" >&2
128 +{ echo "$as_me:$LINENO: checking for sys/atomic.h" >&5
129 +echo $ECHO_N "checking for sys/atomic.h... $ECHO_C" >&6; }
130 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
131 + echo $ECHO_N "(cached) $ECHO_C" >&6
133 + ac_cv_header_sys_atomic_h=$ac_header_preproc
135 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_atomic_h" >&5
136 +echo "${ECHO_T}$ac_cv_header_sys_atomic_h" >&6; }
139 +if test $ac_cv_header_sys_atomic_h = yes; then
141 +cat >>confdefs.h <<_ACEOF
142 +#define HAVE_OS_ATOMIC_H 1
149 { echo "$as_me:$LINENO: checking for int" >&5
150 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
151 if test "${ac_cv_type_int+set}" = set; then
152 @@ -27494,6 +27634,8 @@ _ACEOF
153 cat confdefs.h >>conftest.$ac_ext
154 cat >>conftest.$ac_ext <<_ACEOF
155 /* end confdefs.h. */
156 +#include <sys/types.h>
157 +#include <sys/socket.h>