3 --- configure.orig 2013-02-27 14:11:39.000000000 +0000
5 @@ -14751,7 +14751,7 @@ fi
9 -for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob htonll ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap ntohll newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv utime vasprintf getpeereid sysctl swapctl
10 +for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob htonll ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap ntohll newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strptime_l strftime_l strtod strtol strtold strtoq unsetenv utime vasprintf getpeereid sysctl swapctl
12 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14 @@ -16717,7 +16717,7 @@ $as_echo "user CFLAGS present" >&6; }
16 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23 @@ -17177,6 +17177,146 @@ fi
27 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
28 + { echo "$as_me:$LINENO: checking for sys/atomic.h" >&5
29 +echo $ECHO_N "checking for sys/atomic.h... $ECHO_C" >&6; }
30 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
31 + echo $ECHO_N "(cached) $ECHO_C" >&6
33 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_atomic_h" >&5
34 +echo "${ECHO_T}$ac_cv_header_sys_atomic_h" >&6; }
36 + # Is the header compilable?
37 +{ echo "$as_me:$LINENO: checking sys/atomic.h usability" >&5
38 +echo $ECHO_N "checking sys/atomic.h usability... $ECHO_C" >&6; }
39 +cat >conftest.$ac_ext <<_ACEOF
42 +cat confdefs.h >>conftest.$ac_ext
43 +cat >>conftest.$ac_ext <<_ACEOF
44 +/* end confdefs.h. */
46 +#include <sys/atomic.h>
48 +rm -f conftest.$ac_objext
49 +if { (ac_try="$ac_compile"
51 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52 + *) ac_try_echo=$ac_try;;
54 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55 + (eval "$ac_compile") 2>conftest.er1
57 + grep -v '^ *+' conftest.er1 >conftest.err
59 + cat conftest.err >&5
60 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
61 + (exit $ac_status); } && {
62 + test -z "$ac_c_werror_flag" ||
63 + test ! -s conftest.err
64 + } && test -s conftest.$ac_objext; then
65 + ac_header_compiler=yes
67 + echo "$as_me: failed program was:" >&5
68 +sed 's/^/| /' conftest.$ac_ext >&5
70 + ac_header_compiler=no
73 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
75 +echo "${ECHO_T}$ac_header_compiler" >&6; }
77 +# Is the header present?
78 +{ echo "$as_me:$LINENO: checking sys/atomic.h presence" >&5
79 +echo $ECHO_N "checking sys/atomic.h presence... $ECHO_C" >&6; }
80 +cat >conftest.$ac_ext <<_ACEOF
83 +cat confdefs.h >>conftest.$ac_ext
84 +cat >>conftest.$ac_ext <<_ACEOF
85 +/* end confdefs.h. */
86 +#include <sys/atomic.h>
88 +if { (ac_try="$ac_cpp conftest.$ac_ext"
90 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91 + *) ac_try_echo=$ac_try;;
93 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
96 + grep -v '^ *+' conftest.er1 >conftest.err
98 + cat conftest.err >&5
99 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
100 + (exit $ac_status); } >/dev/null && {
101 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
102 + test ! -s conftest.err
104 + ac_header_preproc=yes
106 + echo "$as_me: failed program was:" >&5
107 +sed 's/^/| /' conftest.$ac_ext >&5
109 + ac_header_preproc=no
112 +rm -f conftest.err conftest.$ac_ext
113 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
114 +echo "${ECHO_T}$ac_header_preproc" >&6; }
116 +# So? What about this header?
117 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
119 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
120 +echo "$as_me: WARNING: sys/atomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
121 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: proceeding with the compiler's result" >&5
122 +echo "$as_me: WARNING: sys/atomic.h: proceeding with the compiler's result" >&2;}
123 + ac_header_preproc=yes
126 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: present but cannot be compiled" >&5
127 +echo "$as_me: WARNING: sys/atomic.h: present but cannot be compiled" >&2;}
128 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: check for missing prerequisite headers?" >&5
129 +echo "$as_me: WARNING: sys/atomic.h: check for missing prerequisite headers?" >&2;}
130 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: see the Autoconf documentation" >&5
131 +echo "$as_me: WARNING: sys/atomic.h: see the Autoconf documentation" >&2;}
132 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: section \"Present But Cannot Be Compiled\"" >&5
133 +echo "$as_me: WARNING: sys/atomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
134 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: proceeding with the preprocessor's result" >&5
135 +echo "$as_me: WARNING: sys/atomic.h: proceeding with the preprocessor's result" >&2;}
136 + { echo "$as_me:$LINENO: WARNING: sys/atomic.h: in the future, the compiler will take precedence" >&5
137 +echo "$as_me: WARNING: sys/atomic.h: in the future, the compiler will take precedence" >&2;}
139 +## ------------------------------------------ ##
140 +## Report this to https://issues.asterisk.org ##
141 +## ------------------------------------------ ##
143 + ) | sed "s/^/$as_me: WARNING: /" >&2
146 +{ echo "$as_me:$LINENO: checking for sys/atomic.h" >&5
147 +echo $ECHO_N "checking for sys/atomic.h... $ECHO_C" >&6; }
148 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
149 + echo $ECHO_N "(cached) $ECHO_C" >&6
151 + ac_cv_header_sys_atomic_h=$ac_header_preproc
153 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_atomic_h" >&5
154 +echo "${ECHO_T}$ac_cv_header_sys_atomic_h" >&6; }
157 +if test $ac_cv_header_sys_atomic_h = yes; then
159 +cat >>confdefs.h <<_ACEOF
160 +#define HAVE_SYS_ATOMIC_H 1
167 # The cast to long int works around a bug in the HP C Compiler
168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
170 @@ -18291,6 +18431,8 @@ $as_echo_n "checking if \"struct ifaddrs
172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
173 /* end confdefs.h. */
174 + #include <sys/types.h>
175 + #include <sys/socket.h>