9f7a862d3553d84a58177476ecc055b7c7a5c5cf
[asterisk/asterisk.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for asterisk trunk.
5 #
6 # Report bugs to <https://issues.asterisk.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 #
15 # "Asterisk"
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in #(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
93
94 # Find who we are.  Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 # Use a proper internal environment variable to ensure we don't fall
141   # into an infinite loop, continuously re-executing ourselves.
142   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
143     _as_can_reexec=no; export _as_can_reexec;
144     # We cannot yet assume a decent shell, so we have to provide a
145 # neutralization value for shells without unset; and this also
146 # works around shells that cannot unset nonexistent variables.
147 # Preserve -v and -x to the replacement shell.
148 BASH_ENV=/dev/null
149 ENV=/dev/null
150 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 case $- in # ((((
152   *v*x* | *x*v* ) as_opts=-vx ;;
153   *v* ) as_opts=-v ;;
154   *x* ) as_opts=-x ;;
155   * ) as_opts= ;;
156 esac
157 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
158 # Admittedly, this is quite paranoid, since all the known shells bail
159 # out after a failed `exec'.
160 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 as_fn_exit 255
162   fi
163   # We don't want this to propagate to other subprocesses.
164           { _as_can_reexec=; unset _as_can_reexec;}
165 if test "x$CONFIG_SHELL" = x; then
166   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167   emulate sh
168   NULLCMD=:
169   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
170   # is contrary to our usage.  Disable this feature.
171   alias -g '\${1+\"\$@\"}'='\"\$@\"'
172   setopt NO_GLOB_SUBST
173 else
174   case \`(set -o) 2>/dev/null\` in #(
175   *posix*) :
176     set -o posix ;; #(
177   *) :
178      ;;
179 esac
180 fi
181 "
182   as_required="as_fn_return () { (exit \$1); }
183 as_fn_success () { as_fn_return 0; }
184 as_fn_failure () { as_fn_return 1; }
185 as_fn_ret_success () { return 0; }
186 as_fn_ret_failure () { return 1; }
187
188 exitcode=0
189 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
190 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
191 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
192 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
193 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194
195 else
196   exitcode=1; echo positional parameters were not saved.
197 fi
198 test x\$exitcode = x0 || exit 1
199 test -x / || exit 1"
200   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
201   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
202   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
203   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
204 test \$(( 1 + 1 )) = 2 || exit 1"
205   if (eval "$as_required") 2>/dev/null; then :
206   as_have_required=yes
207 else
208   as_have_required=no
209 fi
210   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
211
212 else
213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
214 as_found=false
215 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
216 do
217   IFS=$as_save_IFS
218   test -z "$as_dir" && as_dir=.
219   as_found=:
220   case $as_dir in #(
221          /*)
222            for as_base in sh bash ksh sh5; do
223              # Try only shells that exist, to save several forks.
224              as_shell=$as_dir/$as_base
225              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
226                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
227   CONFIG_SHELL=$as_shell as_have_required=yes
228                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
229   break 2
230 fi
231 fi
232            done;;
233        esac
234   as_found=false
235 done
236 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
238   CONFIG_SHELL=$SHELL as_have_required=yes
239 fi; }
240 IFS=$as_save_IFS
241
242
243       if test "x$CONFIG_SHELL" != x; then :
244   export CONFIG_SHELL
245              # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253   *v*x* | *x*v* ) as_opts=-vx ;;
254   *v* ) as_opts=-v ;;
255   *x* ) as_opts=-x ;;
256   * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed `exec'.
261 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265     if test x$as_have_required = xno; then :
266   $as_echo "$0: This script requires a shell more modern than all"
267   $as_echo "$0: the shells that I found on your system."
268   if test x${ZSH_VERSION+set} = xset ; then
269     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271   else
272     $as_echo "$0: Please tell bug-autoconf@gnu.org and
273 $0: https://issues.asterisk.org about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
277   fi
278   exit 1
279 fi
280 fi
281 fi
282 SHELL=${CONFIG_SHELL-/bin/sh}
283 export SHELL
284 # Unset more variables known to interfere with behavior of common tools.
285 CLICOLOR_FORCE= GREP_OPTIONS=
286 unset CLICOLOR_FORCE GREP_OPTIONS
287
288 ## --------------------- ##
289 ## M4sh Shell Functions. ##
290 ## --------------------- ##
291 # as_fn_unset VAR
292 # ---------------
293 # Portably unset VAR.
294 as_fn_unset ()
295 {
296   { eval $1=; unset $1;}
297 }
298 as_unset=as_fn_unset
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305   return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313   set +e
314   as_fn_set_status $1
315   exit $1
316 } # as_fn_exit
317
318 # as_fn_mkdir_p
319 # -------------
320 # Create "$as_dir" as a directory, including parents if necessary.
321 as_fn_mkdir_p ()
322 {
323
324   case $as_dir in #(
325   -*) as_dir=./$as_dir;;
326   esac
327   test -d "$as_dir" || eval $as_mkdir_p || {
328     as_dirs=
329     while :; do
330       case $as_dir in #(
331       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332       *) as_qdir=$as_dir;;
333       esac
334       as_dirs="'$as_qdir' $as_dirs"
335       as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337          X"$as_dir" : 'X\(//\)[^/]' \| \
338          X"$as_dir" : 'X\(//\)$' \| \
339          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 $as_echo X"$as_dir" |
341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342             s//\1/
343             q
344           }
345           /^X\(\/\/\)[^/].*/{
346             s//\1/
347             q
348           }
349           /^X\(\/\/\)$/{
350             s//\1/
351             q
352           }
353           /^X\(\/\).*/{
354             s//\1/
355             q
356           }
357           s/.*/./; q'`
358       test -d "$as_dir" && break
359     done
360     test -z "$as_dirs" || eval "mkdir $as_dirs"
361   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364 } # as_fn_mkdir_p
365
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
370 {
371   test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
378 # implementations.
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
380   eval 'as_fn_append ()
381   {
382     eval $1+=\$2
383   }'
384 else
385   as_fn_append ()
386   {
387     eval $1=\$$1\$2
388   }
389 fi # as_fn_append
390
391 # as_fn_arith ARG...
392 # ------------------
393 # Perform arithmetic evaluation on the ARGs, and store the result in the
394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
395 # must be portable across $(()) and expr.
396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
397   eval 'as_fn_arith ()
398   {
399     as_val=$(( $* ))
400   }'
401 else
402   as_fn_arith ()
403   {
404     as_val=`expr "$@" || test $? -eq 1`
405   }
406 fi # as_fn_arith
407
408
409 # as_fn_error STATUS ERROR [LINENO LOG_FD]
410 # ----------------------------------------
411 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
412 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
413 # script with STATUS, using 1 if that was 0.
414 as_fn_error ()
415 {
416   as_status=$1; test $as_status -eq 0 && as_status=1
417   if test "$4"; then
418     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
419     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420   fi
421   $as_echo "$as_me: error: $2" >&2
422   as_fn_exit $as_status
423 } # as_fn_error
424
425 if expr a : '\(a\)' >/dev/null 2>&1 &&
426    test "X`expr 00001 : '.*\(...\)'`" = X001; then
427   as_expr=expr
428 else
429   as_expr=false
430 fi
431
432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
433   as_basename=basename
434 else
435   as_basename=false
436 fi
437
438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
439   as_dirname=dirname
440 else
441   as_dirname=false
442 fi
443
444 as_me=`$as_basename -- "$0" ||
445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
446          X"$0" : 'X\(//\)$' \| \
447          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 $as_echo X/"$0" |
449     sed '/^.*\/\([^/][^/]*\)\/*$/{
450             s//\1/
451             q
452           }
453           /^X\/\(\/\/\)$/{
454             s//\1/
455             q
456           }
457           /^X\/\(\/\).*/{
458             s//\1/
459             q
460           }
461           s/.*/./; q'`
462
463 # Avoid depending upon Character Ranges.
464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
467 as_cr_digits='0123456789'
468 as_cr_alnum=$as_cr_Letters$as_cr_digits
469
470
471   as_lineno_1=$LINENO as_lineno_1a=$LINENO
472   as_lineno_2=$LINENO as_lineno_2a=$LINENO
473   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
474   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
475   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
476   sed -n '
477     p
478     /[$]LINENO/=
479   ' <$as_myself |
480     sed '
481       s/[$]LINENO.*/&-/
482       t lineno
483       b
484       :lineno
485       N
486       :loop
487       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488       t loop
489       s/-\n.*//
490     ' >$as_me.lineno &&
491   chmod +x "$as_me.lineno" ||
492     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493
494   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
495   # already done that, so ensure we don't try to do so again and fall
496   # in an infinite loop.  This has already happened in practice.
497   _as_can_reexec=no; export _as_can_reexec
498   # Don't try to exec as it changes $[0], causing all sort of problems
499   # (the dirname of $[0] is not the place where we might find the
500   # original and so on.  Autoconf is especially sensitive to this).
501   . "./$as_me.lineno"
502   # Exit status is that of the last command.
503   exit
504 }
505
506 ECHO_C= ECHO_N= ECHO_T=
507 case `echo -n x` in #(((((
508 -n*)
509   case `echo 'xy\c'` in
510   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
511   xy)  ECHO_C='\c';;
512   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
513        ECHO_T=' ';;
514   esac;;
515 *)
516   ECHO_N='-n';;
517 esac
518
519 rm -f conf$$ conf$$.exe conf$$.file
520 if test -d conf$$.dir; then
521   rm -f conf$$.dir/conf$$.file
522 else
523   rm -f conf$$.dir
524   mkdir conf$$.dir 2>/dev/null
525 fi
526 if (echo >conf$$.file) 2>/dev/null; then
527   if ln -s conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s='ln -s'
529     # ... but there are two gotchas:
530     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
531     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
532     # In both cases, we have to default to `cp -pR'.
533     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534       as_ln_s='cp -pR'
535   elif ln conf$$.file conf$$ 2>/dev/null; then
536     as_ln_s=ln
537   else
538     as_ln_s='cp -pR'
539   fi
540 else
541   as_ln_s='cp -pR'
542 fi
543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
544 rmdir conf$$.dir 2>/dev/null
545
546 if mkdir -p . 2>/dev/null; then
547   as_mkdir_p='mkdir -p "$as_dir"'
548 else
549   test -d ./-p && rmdir ./-p
550   as_mkdir_p=false
551 fi
552
553 as_test_x='test -x'
554 as_executable_p=as_fn_executable_p
555
556 # Sed expression to map a string onto a valid CPP name.
557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558
559 # Sed expression to map a string onto a valid variable name.
560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561
562
563 test -n "$DJDIR" || exec 7<&0 </dev/null
564 exec 6>&1
565
566 # Name of the host.
567 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
568 # so uname gets run too.
569 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
570
571 #
572 # Initializations.
573 #
574 ac_default_prefix=/usr/local
575 ac_clean_files=
576 ac_config_libobj_dir=.
577 LIBOBJS=
578 cross_compiling=no
579 subdirs=
580 MFLAGS=
581 MAKEFLAGS=
582
583 # Identity of this package.
584 PACKAGE_NAME='asterisk'
585 PACKAGE_TARNAME='asterisk'
586 PACKAGE_VERSION='trunk'
587 PACKAGE_STRING='asterisk trunk'
588 PACKAGE_BUGREPORT='https://issues.asterisk.org'
589 PACKAGE_URL=''
590
591 ac_unique_file="main/asterisk.c"
592 # Factoring default headers for most tests.
593 ac_includes_default="\
594 #include <stdio.h>
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
597 #endif
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
600 #endif
601 #ifdef STDC_HEADERS
602 # include <stdlib.h>
603 # include <stddef.h>
604 #else
605 # ifdef HAVE_STDLIB_H
606 #  include <stdlib.h>
607 # endif
608 #endif
609 #ifdef HAVE_STRING_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #  include <memory.h>
612 # endif
613 # include <string.h>
614 #endif
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
617 #endif
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
620 #endif
621 #ifdef HAVE_STDINT_H
622 # include <stdint.h>
623 #endif
624 #ifdef HAVE_UNISTD_H
625 # include <unistd.h>
626 #endif"
627
628 ac_header_list=
629 ac_subst_vars='LTLIBOBJS
630 PBX_SYSLOG
631 PBX_SYSLOG_FACILITY_LOG_UUCP
632 PBX_SYSLOG_FACILITY_LOG_SYSLOG
633 PBX_SYSLOG_FACILITY_LOG_NEWS
634 PBX_SYSLOG_FACILITY_LOG_MAIL
635 PBX_SYSLOG_FACILITY_LOG_LPR
636 PBX_SYSLOG_FACILITY_LOG_KERN
637 PBX_SYSLOG_FACILITY_LOG_FTP
638 PBX_SYSLOG_FACILITY_LOG_DAEMON
639 PBX_SYSLOG_FACILITY_LOG_CRON
640 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
641 PBX_SYSLOG_FACILITY_LOG_AUTH
642 PBX_GENERIC_ODBC
643 GENERIC_ODBC_INCLUDE
644 GENERIC_ODBC_LIB
645 GTK2_LIBS
646 GTK2_CFLAGS
647 PBX_LAUNCHD
648 CONFIG_SDL
649 PBX_SO_NOSIGPIPE
650 PBX_MSG_NOSIGNAL
651 PBX_IXJUSER
652 GMIME_LIBS
653 GMIME_CFLAGS
654 OPENH323_BUILD
655 OPENH323_SUFFIX
656 OPENH323_LIBDIR
657 OPENH323_INCDIR
658 OPENH323DIR
659 PWLIB_PLATFORM
660 PWLIB_LIBDIR
661 PWLIB_INCDIR
662 PWLIBDIR
663 PTLIB_CONFIG
664 PJPROJECT_LIBS
665 PJPROJECT_CFLAGS
666 PG_CONFIG
667 CONFIG_NETSNMP
668 CONFIG_NEON29
669 CONFIG_NEON
670 CONFIG_MYSQLCLIENT
671 PBX_MISDN_FAC_ERROR
672 PBX_MISDN_FAC_RESULT
673 LIBEDIT_LIBS
674 LIBEDIT_CFLAGS
675 LIBEDIT_INTERNAL
676 ILBC_LIBS
677 ILBC_CFLAGS
678 ILBC_INTERNAL
679 GSM_INTERNAL
680 PBX_DAHDI_HALF_FULL
681 PKG_CONFIG_LIBDIR
682 PKG_CONFIG_PATH
683 PKG_CONFIG
684 PBX_DLADDR
685 PBX_IP_MTU_DISCOVER
686 PBX_RTLD_NOLOAD
687 PBX_GLOB_BRACE
688 PBX_GLOB_NOMAGIC
689 AST_RPATH
690 AST_NATIVE_ARCH
691 AST_SHADOW_WARNINGS
692 AST_NO_STRICT_OVERFLOW
693 AST_FORTIFY_SOURCE
694 AST_TRAMPOLINES
695 AST_DECLARATION_AFTER_STATEMENT
696 GC_LDFLAGS
697 GC_CFLAGS
698 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
699 PBX_PTHREAD_RWLOCK_INITIALIZER
700 AST_ASTERISKSSL
701 HAS_POLL
702 PBX_DYNAMIC_LIST
703 POW_LIB
704 PBX_WORKING_FORK
705 LIBOBJS
706 CONFIG_LIBXML2
707 UUID_LIB
708 UUID_INCLUDE
709 EDITLINE_LIB
710 ALLOCA
711 PBX_ZLIB
712 ZLIB_DIR
713 ZLIB_INCLUDE
714 ZLIB_LIB
715 PBX_X11
716 X11_DIR
717 X11_INCLUDE
718 X11_LIB
719 PBX_VPB
720 VPB_DIR
721 VPB_INCLUDE
722 VPB_LIB
723 PBX_VORBIS
724 VORBIS_DIR
725 VORBIS_INCLUDE
726 VORBIS_LIB
727 PBX_UNIXODBC
728 UNIXODBC_DIR
729 UNIXODBC_INCLUDE
730 UNIXODBC_LIB
731 PBX_UNBOUND
732 UNBOUND_DIR
733 UNBOUND_INCLUDE
734 UNBOUND_LIB
735 PBX_TONEZONE
736 TONEZONE_DIR
737 TONEZONE_INCLUDE
738 TONEZONE_LIB
739 PBX_TINFO
740 TINFO_DIR
741 TINFO_INCLUDE
742 TINFO_LIB
743 PBX_TIMERFD
744 TIMERFD_DIR
745 TIMERFD_INCLUDE
746 TIMERFD_LIB
747 PBX_TERMCAP
748 TERMCAP_DIR
749 TERMCAP_INCLUDE
750 TERMCAP_LIB
751 PBX_FREETDS
752 FREETDS_DIR
753 FREETDS_INCLUDE
754 FREETDS_LIB
755 PBX_SUPPSERV
756 SUPPSERV_DIR
757 SUPPSERV_INCLUDE
758 SUPPSERV_LIB
759 PBX_OPENSSL
760 OPENSSL_DIR
761 OPENSSL_INCLUDE
762 OPENSSL_LIB
763 PBX_SRTP_SHUTDOWN
764 SRTP_SHUTDOWN_DIR
765 SRTP_SHUTDOWN_INCLUDE
766 SRTP_SHUTDOWN_LIB
767 PBX_SRTP
768 SRTP_DIR
769 SRTP_INCLUDE
770 SRTP_LIB
771 PBX_SQLITE3
772 SQLITE3_DIR
773 SQLITE3_INCLUDE
774 SQLITE3_LIB
775 PBX_SQLITE
776 SQLITE_DIR
777 SQLITE_INCLUDE
778 SQLITE_LIB
779 PBX_SPEEXDSP
780 SPEEXDSP_DIR
781 SPEEXDSP_INCLUDE
782 SPEEXDSP_LIB
783 PBX_SPEEX_PREPROCESS
784 SPEEX_PREPROCESS_DIR
785 SPEEX_PREPROCESS_INCLUDE
786 SPEEX_PREPROCESS_LIB
787 PBX_SPEEX
788 SPEEX_DIR
789 SPEEX_INCLUDE
790 SPEEX_LIB
791 PBX_SS7
792 SS7_DIR
793 SS7_INCLUDE
794 SS7_LIB
795 PBX_SPANDSP
796 SPANDSP_DIR
797 SPANDSP_INCLUDE
798 SPANDSP_LIB
799 SOUNDS_CACHE_DIR
800 PBX_SDL_IMAGE
801 SDL_IMAGE_DIR
802 SDL_IMAGE_INCLUDE
803 SDL_IMAGE_LIB
804 PBX_SDL
805 SDL_DIR
806 SDL_INCLUDE
807 SDL_LIB
808 PBX_RESAMPLE
809 RESAMPLE_DIR
810 RESAMPLE_INCLUDE
811 RESAMPLE_LIB
812 PBX_RADIUS
813 RADIUS_DIR
814 RADIUS_INCLUDE
815 RADIUS_LIB
816 PBX_PWLIB
817 PWLIB_DIR
818 PWLIB_INCLUDE
819 PWLIB_LIB
820 PBX_PRI_REVERSE_CHARGE
821 PRI_REVERSE_CHARGE_DIR
822 PRI_REVERSE_CHARGE_INCLUDE
823 PRI_REVERSE_CHARGE_LIB
824 PBX_PRI_SERVICE_MESSAGES
825 PRI_SERVICE_MESSAGES_DIR
826 PRI_SERVICE_MESSAGES_INCLUDE
827 PRI_SERVICE_MESSAGES_LIB
828 PBX_PRI_PROG_W_CAUSE
829 PRI_PROG_W_CAUSE_DIR
830 PRI_PROG_W_CAUSE_INCLUDE
831 PRI_PROG_W_CAUSE_LIB
832 PBX_PRI_INBANDDISCONNECT
833 PRI_INBANDDISCONNECT_DIR
834 PRI_INBANDDISCONNECT_INCLUDE
835 PRI_INBANDDISCONNECT_LIB
836 PBX_PRI_SETUP_KEYPAD
837 PRI_SETUP_KEYPAD_DIR
838 PRI_SETUP_KEYPAD_INCLUDE
839 PRI_SETUP_KEYPAD_LIB
840 PBX_PRI_CALL_REROUTING
841 PRI_CALL_REROUTING_DIR
842 PRI_CALL_REROUTING_INCLUDE
843 PRI_CALL_REROUTING_LIB
844 PBX_PRI_CALL_HOLD
845 PRI_CALL_HOLD_DIR
846 PRI_CALL_HOLD_INCLUDE
847 PRI_CALL_HOLD_LIB
848 PBX_PRI_SUBADDR
849 PRI_SUBADDR_DIR
850 PRI_SUBADDR_INCLUDE
851 PRI_SUBADDR_LIB
852 PBX_PRI_HANGUP_FIX
853 PRI_HANGUP_FIX_DIR
854 PRI_HANGUP_FIX_INCLUDE
855 PRI_HANGUP_FIX_LIB
856 PBX_PRI_CCSS
857 PRI_CCSS_DIR
858 PRI_CCSS_INCLUDE
859 PRI_CCSS_LIB
860 PBX_PRI_TRANSFER
861 PRI_TRANSFER_DIR
862 PRI_TRANSFER_INCLUDE
863 PRI_TRANSFER_LIB
864 PBX_PRI_AOC_EVENTS
865 PRI_AOC_EVENTS_DIR
866 PRI_AOC_EVENTS_INCLUDE
867 PRI_AOC_EVENTS_LIB
868 PBX_PRI_CALL_WAITING
869 PRI_CALL_WAITING_DIR
870 PRI_CALL_WAITING_INCLUDE
871 PRI_CALL_WAITING_LIB
872 PBX_PRI_MCID
873 PRI_MCID_DIR
874 PRI_MCID_INCLUDE
875 PRI_MCID_LIB
876 PBX_PRI_MWI
877 PRI_MWI_DIR
878 PRI_MWI_INCLUDE
879 PRI_MWI_LIB
880 PBX_PRI_DISPLAY_TEXT
881 PRI_DISPLAY_TEXT_DIR
882 PRI_DISPLAY_TEXT_INCLUDE
883 PRI_DISPLAY_TEXT_LIB
884 PBX_PRI_MWI_V2
885 PRI_MWI_V2_DIR
886 PRI_MWI_V2_INCLUDE
887 PRI_MWI_V2_LIB
888 PBX_PRI_DATETIME_SEND
889 PRI_DATETIME_SEND_DIR
890 PRI_DATETIME_SEND_INCLUDE
891 PRI_DATETIME_SEND_LIB
892 PBX_PRI_L2_PERSISTENCE
893 PRI_L2_PERSISTENCE_DIR
894 PRI_L2_PERSISTENCE_INCLUDE
895 PRI_L2_PERSISTENCE_LIB
896 PBX_PRI_SETUP_ACK_INBAND
897 PRI_SETUP_ACK_INBAND_DIR
898 PRI_SETUP_ACK_INBAND_INCLUDE
899 PRI_SETUP_ACK_INBAND_LIB
900 PBX_PRI
901 PRI_DIR
902 PRI_INCLUDE
903 PRI_LIB
904 PBX_PORTAUDIO
905 PORTAUDIO_DIR
906 PORTAUDIO_INCLUDE
907 PORTAUDIO_LIB
908 PBX_PJSIP_EXTERNAL_RESOLVER
909 PJSIP_EXTERNAL_RESOLVER_DIR
910 PJSIP_EXTERNAL_RESOLVER_INCLUDE
911 PJSIP_EXTERNAL_RESOLVER_LIB
912 PBX_PJ_SSL_CERT_LOAD_FROM_FILES2
913 PJ_SSL_CERT_LOAD_FROM_FILES2_DIR
914 PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE
915 PJ_SSL_CERT_LOAD_FROM_FILES2_LIB
916 PBX_PJSIP_GET_DEST_INFO
917 PJSIP_GET_DEST_INFO_DIR
918 PJSIP_GET_DEST_INFO_INCLUDE
919 PJSIP_GET_DEST_INFO_LIB
920 PBX_PJSIP_REPLACE_MEDIA_STREAM
921 PJSIP_REPLACE_MEDIA_STREAM_DIR
922 PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
923 PJSIP_REPLACE_MEDIA_STREAM_LIB
924 PBX_PJ_TRANSACTION_GRP_LOCK
925 PJ_TRANSACTION_GRP_LOCK_DIR
926 PJ_TRANSACTION_GRP_LOCK_INCLUDE
927 PJ_TRANSACTION_GRP_LOCK_LIB
928 PBX_POPT
929 POPT_DIR
930 POPT_INCLUDE
931 POPT_LIB
932 PBX_PJPROJECT
933 PJPROJECT_DIR
934 PJPROJECT_INCLUDE
935 PJPROJECT_LIB
936 PBX_PGSQL
937 PGSQL_DIR
938 PGSQL_INCLUDE
939 PGSQL_LIB
940 PBX_OSS
941 OSS_DIR
942 OSS_INCLUDE
943 OSS_LIB
944 PBX_OSPTK
945 OSPTK_DIR
946 OSPTK_INCLUDE
947 OSPTK_LIB
948 PBX_OPUS
949 OPUS_DIR
950 OPUS_INCLUDE
951 OPUS_LIB
952 PBX_OPENR2
953 OPENR2_DIR
954 OPENR2_INCLUDE
955 OPENR2_LIB
956 PBX_OGG
957 OGG_DIR
958 OGG_INCLUDE
959 OGG_LIB
960 PBX_NEWT
961 NEWT_DIR
962 NEWT_INCLUDE
963 NEWT_LIB
964 PBX_NETSNMP
965 NETSNMP_DIR
966 NETSNMP_INCLUDE
967 NETSNMP_LIB
968 PBX_NEON29
969 NEON29_DIR
970 NEON29_INCLUDE
971 NEON29_LIB
972 PBX_NEON
973 NEON_DIR
974 NEON_INCLUDE
975 NEON_LIB
976 PBX_NCURSES
977 NCURSES_DIR
978 NCURSES_INCLUDE
979 NCURSES_LIB
980 PBX_NBS
981 NBS_DIR
982 NBS_INCLUDE
983 NBS_LIB
984 PBX_MYSQLCLIENT
985 MYSQLCLIENT_DIR
986 MYSQLCLIENT_INCLUDE
987 MYSQLCLIENT_LIB
988 PBX_MISDN
989 MISDN_DIR
990 MISDN_INCLUDE
991 MISDN_LIB
992 PBX_LUA
993 LUA_DIR
994 LUA_INCLUDE
995 LUA_LIB
996 PBX_LTDL
997 LTDL_DIR
998 LTDL_INCLUDE
999 LTDL_LIB
1000 PBX_LIBXSLT_CLEANUP
1001 LIBXSLT_CLEANUP_DIR
1002 LIBXSLT_CLEANUP_INCLUDE
1003 LIBXSLT_CLEANUP_LIB
1004 PBX_LIBXSLT
1005 LIBXSLT_DIR
1006 LIBXSLT_INCLUDE
1007 LIBXSLT_LIB
1008 PBX_LIBXML2
1009 LIBXML2_DIR
1010 LIBXML2_INCLUDE
1011 LIBXML2_LIB
1012 PBX_LIBEDIT
1013 LIBEDIT_DIR
1014 LIBEDIT_INCLUDE
1015 LIBEDIT_LIB
1016 CURL_LIB
1017 CURL_INCLUDE
1018 _libcurl_config
1019 PBX_CURL
1020 PBX_LDAP
1021 LDAP_DIR
1022 LDAP_INCLUDE
1023 LDAP_LIB
1024 PBX_KQUEUE
1025 KQUEUE_DIR
1026 KQUEUE_INCLUDE
1027 KQUEUE_LIB
1028 PBX_URIPARSER
1029 URIPARSER_DIR
1030 URIPARSER_INCLUDE
1031 URIPARSER_LIB
1032 PBX_JANSSON
1033 JANSSON_DIR
1034 JANSSON_INCLUDE
1035 JANSSON_LIB
1036 PBX_JACK
1037 JACK_DIR
1038 JACK_INCLUDE
1039 JACK_LIB
1040 PBX_ISDNNET
1041 ISDNNET_DIR
1042 ISDNNET_INCLUDE
1043 ISDNNET_LIB
1044 PBX_IODBC
1045 IODBC_DIR
1046 IODBC_INCLUDE
1047 IODBC_LIB
1048 PBX_INOTIFY
1049 INOTIFY_DIR
1050 INOTIFY_INCLUDE
1051 INOTIFY_LIB
1052 PBX_IMAP_TK
1053 IMAP_TK_DIR
1054 IMAP_TK_INCLUDE
1055 IMAP_TK_LIB
1056 PBX_IKSEMEL
1057 IKSEMEL_DIR
1058 IKSEMEL_INCLUDE
1059 IKSEMEL_LIB
1060 PBX_ICONV
1061 ICONV_DIR
1062 ICONV_INCLUDE
1063 ICONV_LIB
1064 PBX_ICAL
1065 ICAL_DIR
1066 ICAL_INCLUDE
1067 ICAL_LIB
1068 PBX_HOARD
1069 HOARD_DIR
1070 HOARD_INCLUDE
1071 HOARD_LIB
1072 PBX_OPENH323
1073 OPENH323_DIR
1074 OPENH323_INCLUDE
1075 OPENH323_LIB
1076 PBX_GMIME
1077 GMIME_DIR
1078 GMIME_INCLUDE
1079 GMIME_LIB
1080 PBX_GTK2
1081 GTK2_DIR
1082 GTK2_INCLUDE
1083 GTK2_LIB
1084 PBX_ILBC
1085 ILBC_DIR
1086 ILBC_INCLUDE
1087 ILBC_LIB
1088 PBX_GSM
1089 GSM_DIR
1090 GSM_INCLUDE
1091 GSM_LIB
1092 PBX_FFMPEG
1093 FFMPEG_DIR
1094 FFMPEG_INCLUDE
1095 FFMPEG_LIB
1096 PBX_DAHDI
1097 DAHDI_DIR
1098 DAHDI_INCLUDE
1099 DAHDI_LIB
1100 PBX_OPENSSL_EC
1101 OPENSSL_EC_DIR
1102 OPENSSL_EC_INCLUDE
1103 OPENSSL_EC_LIB
1104 PBX_OPENSSL_SRTP
1105 OPENSSL_SRTP_DIR
1106 OPENSSL_SRTP_INCLUDE
1107 OPENSSL_SRTP_LIB
1108 PBX_CRYPTO
1109 CRYPTO_DIR
1110 CRYPTO_INCLUDE
1111 CRYPTO_LIB
1112 PBX_CRYPT
1113 CRYPT_DIR
1114 CRYPT_INCLUDE
1115 CRYPT_LIB
1116 PBX_CURSES
1117 CURSES_DIR
1118 CURSES_INCLUDE
1119 CURSES_LIB
1120 PBX_COROSYNC_CFG_STATE_TRACK
1121 COROSYNC_CFG_STATE_TRACK_DIR
1122 COROSYNC_CFG_STATE_TRACK_INCLUDE
1123 COROSYNC_CFG_STATE_TRACK_LIB
1124 PBX_COROSYNC
1125 COROSYNC_DIR
1126 COROSYNC_INCLUDE
1127 COROSYNC_LIB
1128 PBX_CAP
1129 CAP_DIR
1130 CAP_INCLUDE
1131 CAP_LIB
1132 PBX_BLUETOOTH
1133 BLUETOOTH_DIR
1134 BLUETOOTH_INCLUDE
1135 BLUETOOTH_LIB
1136 PBX_BKTR
1137 BKTR_DIR
1138 BKTR_INCLUDE
1139 BKTR_LIB
1140 PBX_BFD
1141 BFD_DIR
1142 BFD_INCLUDE
1143 BFD_LIB
1144 PBX_ALSA
1145 ALSA_DIR
1146 ALSA_INCLUDE
1147 ALSA_LIB
1148 AST_C_COMPILER_FAMILY
1149 AST_CLANG_BLOCKS
1150 AST_CLANG_BLOCKS_LIBS
1151 AST_NESTED_FUNCTIONS
1152 AST_CODE_COVERAGE
1153 AST_DEVMODE_STRICT
1154 AST_DEVMODE
1155 NOISY_BUILD
1156 PTHREAD_CFLAGS
1157 PTHREAD_LIBS
1158 PTHREAD_CC
1159 acx_pthread_config
1160 MD5
1161 SOXMIX
1162 PBX_FLEX
1163 PBX_BISON
1164 OPENSSL
1165 SHA1SUM
1166 LDCONFIG
1167 DOWNLOAD
1168 FETCH
1169 GIT
1170 XMLSTARLET
1171 XMLLINT
1172 KPATHSEA
1173 CATDVI
1174 RUBBER
1175 CURL
1176 WGET
1177 DOT
1178 DOXYGEN
1179 LN
1180 DIRNAME
1181 BASENAME
1182 COMPRESS
1183 FIND
1184 PYTHON
1185 FLEX
1186 CMP
1187 BISON
1188 GNU_LD
1189 ac_ct_AR
1190 AR
1191 ac_ct_STRIP
1192 STRIP
1193 GNU_MAKE
1194 LN_S
1195 INSTALL_DATA
1196 INSTALL_SCRIPT
1197 INSTALL_PROGRAM
1198 AWK
1199 SED
1200 CXXCPP
1201 ac_ct_CXX
1202 CXXFLAGS
1203 RANLIB
1204 LD
1205 CXX
1206 PBX_OSREV
1207 UNAME
1208 CONFIG_SIGNED_CHAR
1209 PBX_WINARCH
1210 OSARCH
1211 HOST_OS
1212 HOST_VENDOR
1213 HOST_CPU
1214 HOST_PLATFORM
1215 BUILD_OS
1216 BUILD_VENDOR
1217 BUILD_CPU
1218 BUILD_PLATFORM
1219 astvarrundir
1220 astlogdir
1221 astspooldir
1222 astkeydir
1223 astdbdir
1224 astdatadir
1225 astvarlibdir
1226 astmandir
1227 astmoddir
1228 astlibdir
1229 astheaderdir
1230 astetcdir
1231 astsbindir
1232 EGREP
1233 GREP
1234 CPP
1235 OBJEXT
1236 EXEEXT
1237 ac_ct_CC
1238 CPPFLAGS
1239 LDFLAGS
1240 CFLAGS
1241 CC
1242 CONFIG_LDFLAGS
1243 CONFIG_CFLAGS
1244 host_os
1245 host_vendor
1246 host_cpu
1247 host
1248 build_os
1249 build_vendor
1250 build_cpu
1251 build
1252 target_alias
1253 host_alias
1254 build_alias
1255 LIBS
1256 ECHO_T
1257 ECHO_N
1258 ECHO_C
1259 DEFS
1260 mandir
1261 localedir
1262 libdir
1263 psdir
1264 pdfdir
1265 dvidir
1266 htmldir
1267 infodir
1268 docdir
1269 oldincludedir
1270 includedir
1271 localstatedir
1272 sharedstatedir
1273 sysconfdir
1274 datadir
1275 datarootdir
1276 libexecdir
1277 sbindir
1278 bindir
1279 program_transform_name
1280 prefix
1281 exec_prefix
1282 PACKAGE_URL
1283 PACKAGE_BUGREPORT
1284 PACKAGE_STRING
1285 PACKAGE_VERSION
1286 PACKAGE_TARNAME
1287 PACKAGE_NAME
1288 PATH_SEPARATOR
1289 SHELL'
1290 ac_subst_files=''
1291 ac_user_opts='
1292 enable_option_checking
1293 with_gnu_ld
1294 enable_dev_mode
1295 enable_coverage
1296 with_asound
1297 with_bfd
1298 with_execinfo
1299 with_bluetooth
1300 with_cap
1301 with_cpg
1302 with_curses
1303 with_crypt
1304 with_crypto
1305 with_dahdi
1306 with_avcodec
1307 with_gsm
1308 with_ilbc
1309 with_gtk2
1310 with_gmime
1311 with_h323
1312 with_hoard
1313 with_ical
1314 with_iconv
1315 with_iksemel
1316 with_imap
1317 with_inotify
1318 with_iodbc
1319 with_isdnnet
1320 with_jack
1321 with_jansson
1322 with_uriparser
1323 with_kqueue
1324 with_ldap
1325 with_libcurl
1326 with_libedit
1327 with_libxml2
1328 with_libxslt
1329 with_ltdl
1330 with_lua
1331 with_misdn
1332 with_mysqlclient
1333 with_nbs
1334 with_ncurses
1335 with_neon
1336 with_neon29
1337 with_netsnmp
1338 with_newt
1339 with_ogg
1340 with_openr2
1341 with_opus
1342 with_osptk
1343 with_oss
1344 with_postgres
1345 with_pjproject
1346 with_popt
1347 with_portaudio
1348 with_pri
1349 with_pwlib
1350 with_radius
1351 with_resample
1352 with_sdl
1353 with_SDL_image
1354 with_sounds_cache
1355 with_spandsp
1356 with_ss7
1357 with_speex
1358 with_speexdsp
1359 with_sqlite
1360 with_sqlite3
1361 with_srtp
1362 with_ssl
1363 with_suppserv
1364 with_tds
1365 with_termcap
1366 with_timerfd
1367 with_tinfo
1368 with_tonezone
1369 with_unbound
1370 with_unixodbc
1371 with_vorbis
1372 with_vpb
1373 with_x11
1374 with_z
1375 enable_xmldoc
1376 enable_largefile
1377 enable_internal_poll
1378 enable_asteriskssl
1379 enable_rpath
1380 '
1381       ac_precious_vars='build_alias
1382 host_alias
1383 target_alias
1384 CC
1385 CFLAGS
1386 LDFLAGS
1387 LIBS
1388 CPPFLAGS
1389 CPP
1390 CXX
1391 CXXFLAGS
1392 CCC
1393 CXXCPP
1394 PKG_CONFIG
1395 PKG_CONFIG_PATH
1396 PKG_CONFIG_LIBDIR
1397 ILBC_CFLAGS
1398 ILBC_LIBS
1399 LIBEDIT_CFLAGS
1400 LIBEDIT_LIBS
1401 PJPROJECT_CFLAGS
1402 PJPROJECT_LIBS
1403 GMIME_CFLAGS
1404 GMIME_LIBS
1405 GTK2_CFLAGS
1406 GTK2_LIBS'
1407
1408
1409 # Initialize some variables set by options.
1410 ac_init_help=
1411 ac_init_version=false
1412 ac_unrecognized_opts=
1413 ac_unrecognized_sep=
1414 # The variables have the same names as the options, with
1415 # dashes changed to underlines.
1416 cache_file=/dev/null
1417 exec_prefix=NONE
1418 no_create=
1419 no_recursion=
1420 prefix=NONE
1421 program_prefix=NONE
1422 program_suffix=NONE
1423 program_transform_name=s,x,x,
1424 silent=
1425 site=
1426 srcdir=
1427 verbose=
1428 x_includes=NONE
1429 x_libraries=NONE
1430
1431 # Installation directory options.
1432 # These are left unexpanded so users can "make install exec_prefix=/foo"
1433 # and all the variables that are supposed to be based on exec_prefix
1434 # by default will actually change.
1435 # Use braces instead of parens because sh, perl, etc. also accept them.
1436 # (The list follows the same order as the GNU Coding Standards.)
1437 bindir='${exec_prefix}/bin'
1438 sbindir='${exec_prefix}/sbin'
1439 libexecdir='${exec_prefix}/libexec'
1440 datarootdir='${prefix}/share'
1441 datadir='${datarootdir}'
1442 sysconfdir='${prefix}/etc'
1443 sharedstatedir='${prefix}/com'
1444 localstatedir='${prefix}/var'
1445 includedir='${prefix}/include'
1446 oldincludedir='/usr/include'
1447 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1448 infodir='${datarootdir}/info'
1449 htmldir='${docdir}'
1450 dvidir='${docdir}'
1451 pdfdir='${docdir}'
1452 psdir='${docdir}'
1453 libdir='${exec_prefix}/lib'
1454 localedir='${datarootdir}/locale'
1455 mandir='${datarootdir}/man'
1456
1457 ac_prev=
1458 ac_dashdash=
1459 for ac_option
1460 do
1461   # If the previous option needs an argument, assign it.
1462   if test -n "$ac_prev"; then
1463     eval $ac_prev=\$ac_option
1464     ac_prev=
1465     continue
1466   fi
1467
1468   case $ac_option in
1469   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1470   *=)   ac_optarg= ;;
1471   *)    ac_optarg=yes ;;
1472   esac
1473
1474   # Accept the important Cygnus configure options, so we can diagnose typos.
1475
1476   case $ac_dashdash$ac_option in
1477   --)
1478     ac_dashdash=yes ;;
1479
1480   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1481     ac_prev=bindir ;;
1482   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1483     bindir=$ac_optarg ;;
1484
1485   -build | --build | --buil | --bui | --bu)
1486     ac_prev=build_alias ;;
1487   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1488     build_alias=$ac_optarg ;;
1489
1490   -cache-file | --cache-file | --cache-fil | --cache-fi \
1491   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1492     ac_prev=cache_file ;;
1493   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1494   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1495     cache_file=$ac_optarg ;;
1496
1497   --config-cache | -C)
1498     cache_file=config.cache ;;
1499
1500   -datadir | --datadir | --datadi | --datad)
1501     ac_prev=datadir ;;
1502   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1503     datadir=$ac_optarg ;;
1504
1505   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1506   | --dataroo | --dataro | --datar)
1507     ac_prev=datarootdir ;;
1508   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1509   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1510     datarootdir=$ac_optarg ;;
1511
1512   -disable-* | --disable-*)
1513     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1514     # Reject names that are not valid shell variable names.
1515     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1516       as_fn_error $? "invalid feature name: $ac_useropt"
1517     ac_useropt_orig=$ac_useropt
1518     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519     case $ac_user_opts in
1520       *"
1521 "enable_$ac_useropt"
1522 "*) ;;
1523       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1524          ac_unrecognized_sep=', ';;
1525     esac
1526     eval enable_$ac_useropt=no ;;
1527
1528   -docdir | --docdir | --docdi | --doc | --do)
1529     ac_prev=docdir ;;
1530   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1531     docdir=$ac_optarg ;;
1532
1533   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1534     ac_prev=dvidir ;;
1535   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1536     dvidir=$ac_optarg ;;
1537
1538   -enable-* | --enable-*)
1539     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1540     # Reject names that are not valid shell variable names.
1541     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1542       as_fn_error $? "invalid feature name: $ac_useropt"
1543     ac_useropt_orig=$ac_useropt
1544     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1545     case $ac_user_opts in
1546       *"
1547 "enable_$ac_useropt"
1548 "*) ;;
1549       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1550          ac_unrecognized_sep=', ';;
1551     esac
1552     eval enable_$ac_useropt=\$ac_optarg ;;
1553
1554   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1555   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1556   | --exec | --exe | --ex)
1557     ac_prev=exec_prefix ;;
1558   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1559   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1560   | --exec=* | --exe=* | --ex=*)
1561     exec_prefix=$ac_optarg ;;
1562
1563   -gas | --gas | --ga | --g)
1564     # Obsolete; use --with-gas.
1565     with_gas=yes ;;
1566
1567   -help | --help | --hel | --he | -h)
1568     ac_init_help=long ;;
1569   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1570     ac_init_help=recursive ;;
1571   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1572     ac_init_help=short ;;
1573
1574   -host | --host | --hos | --ho)
1575     ac_prev=host_alias ;;
1576   -host=* | --host=* | --hos=* | --ho=*)
1577     host_alias=$ac_optarg ;;
1578
1579   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1580     ac_prev=htmldir ;;
1581   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1582   | --ht=*)
1583     htmldir=$ac_optarg ;;
1584
1585   -includedir | --includedir | --includedi | --included | --include \
1586   | --includ | --inclu | --incl | --inc)
1587     ac_prev=includedir ;;
1588   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1589   | --includ=* | --inclu=* | --incl=* | --inc=*)
1590     includedir=$ac_optarg ;;
1591
1592   -infodir | --infodir | --infodi | --infod | --info | --inf)
1593     ac_prev=infodir ;;
1594   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1595     infodir=$ac_optarg ;;
1596
1597   -libdir | --libdir | --libdi | --libd)
1598     ac_prev=libdir ;;
1599   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1600     libdir=$ac_optarg ;;
1601
1602   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1603   | --libexe | --libex | --libe)
1604     ac_prev=libexecdir ;;
1605   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1606   | --libexe=* | --libex=* | --libe=*)
1607     libexecdir=$ac_optarg ;;
1608
1609   -localedir | --localedir | --localedi | --localed | --locale)
1610     ac_prev=localedir ;;
1611   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1612     localedir=$ac_optarg ;;
1613
1614   -localstatedir | --localstatedir | --localstatedi | --localstated \
1615   | --localstate | --localstat | --localsta | --localst | --locals)
1616     ac_prev=localstatedir ;;
1617   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1618   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1619     localstatedir=$ac_optarg ;;
1620
1621   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1622     ac_prev=mandir ;;
1623   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1624     mandir=$ac_optarg ;;
1625
1626   -nfp | --nfp | --nf)
1627     # Obsolete; use --without-fp.
1628     with_fp=no ;;
1629
1630   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1631   | --no-cr | --no-c | -n)
1632     no_create=yes ;;
1633
1634   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1635   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1636     no_recursion=yes ;;
1637
1638   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1639   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1640   | --oldin | --oldi | --old | --ol | --o)
1641     ac_prev=oldincludedir ;;
1642   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1643   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1644   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1645     oldincludedir=$ac_optarg ;;
1646
1647   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1648     ac_prev=prefix ;;
1649   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1650     prefix=$ac_optarg ;;
1651
1652   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1653   | --program-pre | --program-pr | --program-p)
1654     ac_prev=program_prefix ;;
1655   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1656   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1657     program_prefix=$ac_optarg ;;
1658
1659   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1660   | --program-suf | --program-su | --program-s)
1661     ac_prev=program_suffix ;;
1662   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1663   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1664     program_suffix=$ac_optarg ;;
1665
1666   -program-transform-name | --program-transform-name \
1667   | --program-transform-nam | --program-transform-na \
1668   | --program-transform-n | --program-transform- \
1669   | --program-transform | --program-transfor \
1670   | --program-transfo | --program-transf \
1671   | --program-trans | --program-tran \
1672   | --progr-tra | --program-tr | --program-t)
1673     ac_prev=program_transform_name ;;
1674   -program-transform-name=* | --program-transform-name=* \
1675   | --program-transform-nam=* | --program-transform-na=* \
1676   | --program-transform-n=* | --program-transform-=* \
1677   | --program-transform=* | --program-transfor=* \
1678   | --program-transfo=* | --program-transf=* \
1679   | --program-trans=* | --program-tran=* \
1680   | --progr-tra=* | --program-tr=* | --program-t=*)
1681     program_transform_name=$ac_optarg ;;
1682
1683   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1684     ac_prev=pdfdir ;;
1685   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1686     pdfdir=$ac_optarg ;;
1687
1688   -psdir | --psdir | --psdi | --psd | --ps)
1689     ac_prev=psdir ;;
1690   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1691     psdir=$ac_optarg ;;
1692
1693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1694   | -silent | --silent | --silen | --sile | --sil)
1695     silent=yes ;;
1696
1697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1698     ac_prev=sbindir ;;
1699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1700   | --sbi=* | --sb=*)
1701     sbindir=$ac_optarg ;;
1702
1703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1705   | --sharedst | --shareds | --shared | --share | --shar \
1706   | --sha | --sh)
1707     ac_prev=sharedstatedir ;;
1708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1711   | --sha=* | --sh=*)
1712     sharedstatedir=$ac_optarg ;;
1713
1714   -site | --site | --sit)
1715     ac_prev=site ;;
1716   -site=* | --site=* | --sit=*)
1717     site=$ac_optarg ;;
1718
1719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1720     ac_prev=srcdir ;;
1721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1722     srcdir=$ac_optarg ;;
1723
1724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1725   | --syscon | --sysco | --sysc | --sys | --sy)
1726     ac_prev=sysconfdir ;;
1727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1729     sysconfdir=$ac_optarg ;;
1730
1731   -target | --target | --targe | --targ | --tar | --ta | --t)
1732     ac_prev=target_alias ;;
1733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1734     target_alias=$ac_optarg ;;
1735
1736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1737     verbose=yes ;;
1738
1739   -version | --version | --versio | --versi | --vers | -V)
1740     ac_init_version=: ;;
1741
1742   -with-* | --with-*)
1743     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1744     # Reject names that are not valid shell variable names.
1745     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1746       as_fn_error $? "invalid package name: $ac_useropt"
1747     ac_useropt_orig=$ac_useropt
1748     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1749     case $ac_user_opts in
1750       *"
1751 "with_$ac_useropt"
1752 "*) ;;
1753       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1754          ac_unrecognized_sep=', ';;
1755     esac
1756     eval with_$ac_useropt=\$ac_optarg ;;
1757
1758   -without-* | --without-*)
1759     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1760     # Reject names that are not valid shell variable names.
1761     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1762       as_fn_error $? "invalid package name: $ac_useropt"
1763     ac_useropt_orig=$ac_useropt
1764     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1765     case $ac_user_opts in
1766       *"
1767 "with_$ac_useropt"
1768 "*) ;;
1769       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1770          ac_unrecognized_sep=', ';;
1771     esac
1772     eval with_$ac_useropt=no ;;
1773
1774   --x)
1775     # Obsolete; use --with-x.
1776     with_x=yes ;;
1777
1778   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1779   | --x-incl | --x-inc | --x-in | --x-i)
1780     ac_prev=x_includes ;;
1781   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1782   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1783     x_includes=$ac_optarg ;;
1784
1785   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1786   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1787     ac_prev=x_libraries ;;
1788   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1789   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1790     x_libraries=$ac_optarg ;;
1791
1792   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1793 Try \`$0 --help' for more information"
1794     ;;
1795
1796   *=*)
1797     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1798     # Reject names that are not valid shell variable names.
1799     case $ac_envvar in #(
1800       '' | [0-9]* | *[!_$as_cr_alnum]* )
1801       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1802     esac
1803     eval $ac_envvar=\$ac_optarg
1804     export $ac_envvar ;;
1805
1806   *)
1807     # FIXME: should be removed in autoconf 3.0.
1808     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1809     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1810       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1811     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1812     ;;
1813
1814   esac
1815 done
1816
1817 if test -n "$ac_prev"; then
1818   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1819   as_fn_error $? "missing argument to $ac_option"
1820 fi
1821
1822 if test -n "$ac_unrecognized_opts"; then
1823   case $enable_option_checking in
1824     no) ;;
1825     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1826     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1827   esac
1828 fi
1829
1830 # Check all directory arguments for consistency.
1831 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1832                 datadir sysconfdir sharedstatedir localstatedir includedir \
1833                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1834                 libdir localedir mandir
1835 do
1836   eval ac_val=\$$ac_var
1837   # Remove trailing slashes.
1838   case $ac_val in
1839     */ )
1840       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1841       eval $ac_var=\$ac_val;;
1842   esac
1843   # Be sure to have absolute directory names.
1844   case $ac_val in
1845     [\\/$]* | ?:[\\/]* )  continue;;
1846     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1847   esac
1848   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1849 done
1850
1851 # There might be people who depend on the old broken behavior: `$host'
1852 # used to hold the argument of --host etc.
1853 # FIXME: To remove some day.
1854 build=$build_alias
1855 host=$host_alias
1856 target=$target_alias
1857
1858 # FIXME: To remove some day.
1859 if test "x$host_alias" != x; then
1860   if test "x$build_alias" = x; then
1861     cross_compiling=maybe
1862   elif test "x$build_alias" != "x$host_alias"; then
1863     cross_compiling=yes
1864   fi
1865 fi
1866
1867 ac_tool_prefix=
1868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1869
1870 test "$silent" = yes && exec 6>/dev/null
1871
1872
1873 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1874 ac_ls_di=`ls -di .` &&
1875 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1876   as_fn_error $? "working directory cannot be determined"
1877 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1878   as_fn_error $? "pwd does not report name of working directory"
1879
1880
1881 # Find the source files, if location was not specified.
1882 if test -z "$srcdir"; then
1883   ac_srcdir_defaulted=yes
1884   # Try the directory containing this script, then the parent directory.
1885   ac_confdir=`$as_dirname -- "$as_myself" ||
1886 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1887          X"$as_myself" : 'X\(//\)[^/]' \| \
1888          X"$as_myself" : 'X\(//\)$' \| \
1889          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1890 $as_echo X"$as_myself" |
1891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1892             s//\1/
1893             q
1894           }
1895           /^X\(\/\/\)[^/].*/{
1896             s//\1/
1897             q
1898           }
1899           /^X\(\/\/\)$/{
1900             s//\1/
1901             q
1902           }
1903           /^X\(\/\).*/{
1904             s//\1/
1905             q
1906           }
1907           s/.*/./; q'`
1908   srcdir=$ac_confdir
1909   if test ! -r "$srcdir/$ac_unique_file"; then
1910     srcdir=..
1911   fi
1912 else
1913   ac_srcdir_defaulted=no
1914 fi
1915 if test ! -r "$srcdir/$ac_unique_file"; then
1916   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1917   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1918 fi
1919 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1920 ac_abs_confdir=`(
1921         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1922         pwd)`
1923 # When building in place, set srcdir=.
1924 if test "$ac_abs_confdir" = "$ac_pwd"; then
1925   srcdir=.
1926 fi
1927 # Remove unnecessary trailing slashes from srcdir.
1928 # Double slashes in file names in object file debugging info
1929 # mess up M-x gdb in Emacs.
1930 case $srcdir in
1931 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1932 esac
1933 for ac_var in $ac_precious_vars; do
1934   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1935   eval ac_env_${ac_var}_value=\$${ac_var}
1936   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1937   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1938 done
1939
1940 #
1941 # Report the --help message.
1942 #
1943 if test "$ac_init_help" = "long"; then
1944   # Omit some internal or obsolete options to make the list less imposing.
1945   # This message is too long to be a string in the A/UX 3.1 sh.
1946   cat <<_ACEOF
1947 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1948
1949 Usage: $0 [OPTION]... [VAR=VALUE]...
1950
1951 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1952 VAR=VALUE.  See below for descriptions of some of the useful variables.
1953
1954 Defaults for the options are specified in brackets.
1955
1956 Configuration:
1957   -h, --help              display this help and exit
1958       --help=short        display options specific to this package
1959       --help=recursive    display the short help of all the included packages
1960   -V, --version           display version information and exit
1961   -q, --quiet, --silent   do not print \`checking ...' messages
1962       --cache-file=FILE   cache test results in FILE [disabled]
1963   -C, --config-cache      alias for \`--cache-file=config.cache'
1964   -n, --no-create         do not create output files
1965       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1966
1967 Installation directories:
1968   --prefix=PREFIX         install architecture-independent files in PREFIX
1969                           [$ac_default_prefix]
1970   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1971                           [PREFIX]
1972
1973 By default, \`make install' will install all the files in
1974 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1975 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1976 for instance \`--prefix=\$HOME'.
1977
1978 For better control, use the options below.
1979
1980 Fine tuning of the installation directories:
1981   --bindir=DIR            user executables [EPREFIX/bin]
1982   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1983   --libexecdir=DIR        program executables [EPREFIX/libexec]
1984   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1985   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1986   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1987   --libdir=DIR            object code libraries [EPREFIX/lib]
1988   --includedir=DIR        C header files [PREFIX/include]
1989   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1990   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1991   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1992   --infodir=DIR           info documentation [DATAROOTDIR/info]
1993   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1994   --mandir=DIR            man documentation [DATAROOTDIR/man]
1995   --docdir=DIR            documentation root [DATAROOTDIR/doc/asterisk]
1996   --htmldir=DIR           html documentation [DOCDIR]
1997   --dvidir=DIR            dvi documentation [DOCDIR]
1998   --pdfdir=DIR            pdf documentation [DOCDIR]
1999   --psdir=DIR             ps documentation [DOCDIR]
2000 _ACEOF
2001
2002   cat <<\_ACEOF
2003
2004 System types:
2005   --build=BUILD     configure for building on BUILD [guessed]
2006   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2007 _ACEOF
2008 fi
2009
2010 if test -n "$ac_init_help"; then
2011   case $ac_init_help in
2012      short | recursive ) echo "Configuration of asterisk trunk:";;
2013    esac
2014   cat <<\_ACEOF
2015
2016 Optional Features:
2017   --disable-option-checking  ignore unrecognized --enable/--with options
2018   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2019   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2020   --enable-dev-mode       Turn on developer mode
2021   --enable-coverage       Turn on code coverage tracking (for gcov)
2022   --disable-xmldoc        Explicitly disable XML documentation
2023   --disable-largefile     omit support for large files
2024   --enable-internal-poll  Use Asterisk's poll implementation
2025   --disable-asteriskssl   Disable Asterisk's SSL wrapper library
2026   --disable-rpath         Disables rpath linker option checking
2027
2028 Optional Packages:
2029   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2030   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2031   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2032   --with-asound=PATH      use Advanced Linux Sound Architecture files in PATH
2033   --with-bfd=PATH         use Debug symbol decoding files in PATH
2034   --with-execinfo=PATH    use Stack Backtrace files in PATH
2035   --with-bluetooth=PATH   use Bluetooth files in PATH
2036   --with-cap=PATH         use POSIX 1.e capabilities files in PATH
2037   --with-cpg=PATH         use Corosync files in PATH
2038   --with-curses=PATH      use curses files in PATH
2039   --with-crypt=PATH       use password and data encryption files in PATH
2040   --with-crypto=PATH      use OpenSSL Cryptography files in PATH
2041   --with-dahdi=PATH       use DAHDI files in PATH
2042   --with-avcodec=PATH     use Ffmpeg and avcodec files in PATH
2043   --with-gsm=PATH         use External GSM files in PATH, use 'internal' GSM
2044                           otherwise
2045   --with-ilbc=PATH        use System iLBC files in PATH, use 'internal' iLBC
2046                           otherwise
2047   --with-gtk2=PATH        use gtk2 files in PATH
2048   --with-gmime=PATH       use GMime files in PATH
2049   --with-h323=PATH        use OpenH323 files in PATH
2050   --with-hoard=PATH       use Hoard Memory Allocator files in PATH
2051   --with-ical=PATH        use iCal files in PATH
2052   --with-iconv=PATH       use Iconv files in PATH
2053   --with-iksemel=PATH     use Iksemel Jabber files in PATH
2054   --with-imap=PATH        use UW IMAP Toolkit files in PATH
2055   --with-inotify=PATH     use inotify support files in PATH
2056   --with-iodbc=PATH       use iODBC files in PATH
2057   --with-isdnnet=PATH     use ISDN4Linux files in PATH
2058   --with-jack=PATH        use Jack Audio Connection Kit files in PATH
2059   --with-jansson=PATH     use Jansson JSON library files in PATH
2060   --with-uriparser=PATH   use uriparser library files in PATH
2061   --with-kqueue=PATH      use kqueue support files in PATH
2062   --with-ldap=PATH        use OpenLDAP files in PATH
2063   --with-libcurl=DIR      look for the curl library in DIR
2064   --with-libedit=PATH     use NetBSD Editline library files in PATH, use
2065                           'internal' Editline otherwise
2066   --with-libxml2=PATH     use LibXML2 files in PATH
2067   --with-libxslt=PATH     use LibXSLT files in PATH
2068   --with-ltdl=PATH        use libtool files in PATH
2069   --with-lua=PATH         use Lua files in PATH
2070   --with-misdn=PATH       use mISDN user files in PATH
2071   --with-mysqlclient=PATH use MySQL client files in PATH
2072   --with-nbs=PATH         use Network Broadcast Sound files in PATH
2073   --with-ncurses=PATH     use ncurses files in PATH
2074   --with-neon=PATH        use neon files in PATH
2075   --with-neon29=PATH      use neon29 files in PATH
2076   --with-netsnmp=PATH     use Net-SNMP files in PATH
2077   --with-newt=PATH        use newt files in PATH
2078   --with-ogg=PATH         use OGG files in PATH
2079   --with-openr2=PATH      use MFR2 files in PATH
2080   --with-opus=PATH        use Opus files in PATH
2081   --with-osptk=PATH       use OSP Toolkit files in PATH
2082   --with-oss=PATH         use Open Sound System files in PATH
2083   --with-postgres=PATH    use PostgreSQL files in PATH
2084   --with-pjproject=PATH   use PJPROJECT files in PATH
2085   --with-popt=PATH        use popt files in PATH
2086   --with-portaudio=PATH   use PortAudio files in PATH
2087   --with-pri=PATH         use ISDN PRI files in PATH
2088   --with-pwlib=PATH       use PWlib files in PATH
2089   --with-radius=PATH      use Radius Client files in PATH
2090   --with-resample=PATH    use LIBRESAMPLE files in PATH
2091   --with-sdl=PATH         use Sdl files in PATH
2092   --with-SDL_image=PATH   use Sdl Image files in PATH
2093   --with-sounds-cache=PATH
2094                           use cached sound tarfiles in PATH
2095   --with-spandsp=PATH     use SPANDSP files in PATH
2096   --with-ss7=PATH         use ISDN SS7 files in PATH
2097   --with-speex=PATH       use Speex files in PATH
2098   --with-speex=PATH       use Speex preprocess routines files in PATH
2099   --with-speexdsp=PATH    use SpeexDSP files in PATH
2100   --with-sqlite=PATH      use SQLite files in PATH
2101   --with-sqlite3=PATH     use SQLite files in PATH
2102   --with-srtp=PATH        use Secure RTP files in PATH
2103   --with-ssl=PATH         use OpenSSL Secure Sockets Layer files in PATH
2104   --with-suppserv=PATH    use mISDN Supplemental Services files in PATH
2105   --with-tds=PATH         use FreeTDS files in PATH
2106   --with-termcap=PATH     use Termcap files in PATH
2107   --with-timerfd=PATH     use timerfd files in PATH
2108   --with-tinfo=PATH       use Term Info files in PATH
2109   --with-tonezone=PATH    use tonezone files in PATH
2110   --with-unbound=PATH     use unbound files in PATH
2111   --with-unixodbc=PATH    use unixODBC files in PATH
2112   --with-vorbis=PATH      use Vorbis files in PATH
2113   --with-vpb=PATH         use Voicetronix API files in PATH
2114   --with-x11=PATH         use X11 files in PATH
2115   --with-z=PATH           use zlib compression files in PATH
2116
2117 Some influential environment variables:
2118   CC          C compiler command
2119   CFLAGS      C compiler flags
2120   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2121               nonstandard directory <lib dir>
2122   LIBS        libraries to pass to the linker, e.g. -l<library>
2123   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2124               you have headers in a nonstandard directory <include dir>
2125   CPP         C preprocessor
2126   CXX         C++ compiler command
2127   CXXFLAGS    C++ compiler flags
2128   CXXCPP      C++ preprocessor
2129   PKG_CONFIG  path to pkg-config utility
2130   PKG_CONFIG_PATH
2131               directories to add to pkg-config's search path
2132   PKG_CONFIG_LIBDIR
2133               path overriding pkg-config's built-in search path
2134   ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2135   ILBC_LIBS   linker flags for ILBC, overriding pkg-config
2136   LIBEDIT_CFLAGS
2137               C compiler flags for LIBEDIT, overriding pkg-config
2138   LIBEDIT_LIBS
2139               linker flags for LIBEDIT, overriding pkg-config
2140   PJPROJECT_CFLAGS
2141               C compiler flags for PJPROJECT, overriding pkg-config
2142   PJPROJECT_LIBS
2143               linker flags for PJPROJECT, overriding pkg-config
2144   GMIME_CFLAGS
2145               C compiler flags for GMIME, overriding pkg-config
2146   GMIME_LIBS  linker flags for GMIME, overriding pkg-config
2147   GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2148   GTK2_LIBS   linker flags for GTK2, overriding pkg-config
2149
2150 Use these variables to override the choices made by `configure' or to help
2151 it to find libraries and programs with nonstandard names/locations.
2152
2153 Report bugs to <https://issues.asterisk.org>.
2154 _ACEOF
2155 ac_status=$?
2156 fi
2157
2158 if test "$ac_init_help" = "recursive"; then
2159   # If there are subdirs, report their specific --help.
2160   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2161     test -d "$ac_dir" ||
2162       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2163       continue
2164     ac_builddir=.
2165
2166 case "$ac_dir" in
2167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2168 *)
2169   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2170   # A ".." for each directory in $ac_dir_suffix.
2171   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2172   case $ac_top_builddir_sub in
2173   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2174   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2175   esac ;;
2176 esac
2177 ac_abs_top_builddir=$ac_pwd
2178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2179 # for backward compatibility:
2180 ac_top_builddir=$ac_top_build_prefix
2181
2182 case $srcdir in
2183   .)  # We are building in place.
2184     ac_srcdir=.
2185     ac_top_srcdir=$ac_top_builddir_sub
2186     ac_abs_top_srcdir=$ac_pwd ;;
2187   [\\/]* | ?:[\\/]* )  # Absolute name.
2188     ac_srcdir=$srcdir$ac_dir_suffix;
2189     ac_top_srcdir=$srcdir
2190     ac_abs_top_srcdir=$srcdir ;;
2191   *) # Relative name.
2192     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2193     ac_top_srcdir=$ac_top_build_prefix$srcdir
2194     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2195 esac
2196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2197
2198     cd "$ac_dir" || { ac_status=$?; continue; }
2199     # Check for guested configure.
2200     if test -f "$ac_srcdir/configure.gnu"; then
2201       echo &&
2202       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2203     elif test -f "$ac_srcdir/configure"; then
2204       echo &&
2205       $SHELL "$ac_srcdir/configure" --help=recursive
2206     else
2207       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2208     fi || ac_status=$?
2209     cd "$ac_pwd" || { ac_status=$?; break; }
2210   done
2211 fi
2212
2213 test -n "$ac_init_help" && exit $ac_status
2214 if $ac_init_version; then
2215   cat <<\_ACEOF
2216 asterisk configure trunk
2217 generated by GNU Autoconf 2.69
2218
2219 Copyright (C) 2012 Free Software Foundation, Inc.
2220 This configure script is free software; the Free Software Foundation
2221 gives unlimited permission to copy, distribute and modify it.
2222
2223 "Asterisk"
2224 _ACEOF
2225   exit
2226 fi
2227
2228 ## ------------------------ ##
2229 ## Autoconf initialization. ##
2230 ## ------------------------ ##
2231
2232 # ac_fn_c_try_compile LINENO
2233 # --------------------------
2234 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2235 ac_fn_c_try_compile ()
2236 {
2237   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238   rm -f conftest.$ac_objext
2239   if { { ac_try="$ac_compile"
2240 case "(($ac_try" in
2241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242   *) ac_try_echo=$ac_try;;
2243 esac
2244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245 $as_echo "$ac_try_echo"; } >&5
2246   (eval "$ac_compile") 2>conftest.err
2247   ac_status=$?
2248   if test -s conftest.err; then
2249     grep -v '^ *+' conftest.err >conftest.er1
2250     cat conftest.er1 >&5
2251     mv -f conftest.er1 conftest.err
2252   fi
2253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254   test $ac_status = 0; } && {
2255          test -z "$ac_c_werror_flag" ||
2256          test ! -s conftest.err
2257        } && test -s conftest.$ac_objext; then :
2258   ac_retval=0
2259 else
2260   $as_echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2262
2263         ac_retval=1
2264 fi
2265   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266   as_fn_set_status $ac_retval
2267
2268 } # ac_fn_c_try_compile
2269
2270 # ac_fn_c_try_cpp LINENO
2271 # ----------------------
2272 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2273 ac_fn_c_try_cpp ()
2274 {
2275   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276   if { { ac_try="$ac_cpp conftest.$ac_ext"
2277 case "(($ac_try" in
2278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279   *) ac_try_echo=$ac_try;;
2280 esac
2281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2282 $as_echo "$ac_try_echo"; } >&5
2283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2284   ac_status=$?
2285   if test -s conftest.err; then
2286     grep -v '^ *+' conftest.err >conftest.er1
2287     cat conftest.er1 >&5
2288     mv -f conftest.er1 conftest.err
2289   fi
2290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2291   test $ac_status = 0; } > conftest.i && {
2292          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2293          test ! -s conftest.err
2294        }; then :
2295   ac_retval=0
2296 else
2297   $as_echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300     ac_retval=1
2301 fi
2302   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303   as_fn_set_status $ac_retval
2304
2305 } # ac_fn_c_try_cpp
2306
2307 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2308 # -------------------------------------------------------
2309 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2310 # the include files in INCLUDES and setting the cache variable VAR
2311 # accordingly.
2312 ac_fn_c_check_header_mongrel ()
2313 {
2314   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315   if eval \${$3+:} false; then :
2316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if eval \${$3+:} false; then :
2319   $as_echo_n "(cached) " >&6
2320 fi
2321 eval ac_res=\$$3
2322                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324 else
2325   # Is the header compilable?
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2327 $as_echo_n "checking $2 usability... " >&6; }
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h.  */
2330 $4
2331 #include <$2>
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334   ac_header_compiler=yes
2335 else
2336   ac_header_compiler=no
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2340 $as_echo "$ac_header_compiler" >&6; }
2341
2342 # Is the header present?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2344 $as_echo_n "checking $2 presence... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 #include <$2>
2348 _ACEOF
2349 if ac_fn_c_try_cpp "$LINENO"; then :
2350   ac_header_preproc=yes
2351 else
2352   ac_header_preproc=no
2353 fi
2354 rm -f conftest.err conftest.i conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2356 $as_echo "$ac_header_preproc" >&6; }
2357
2358 # So?  What about this header?
2359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2360   yes:no: )
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2362 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2363     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2365     ;;
2366   no:yes:* )
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2368 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2370 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2372 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2374 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2376 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2377 ( $as_echo "## ------------------------------------------ ##
2378 ## Report this to https://issues.asterisk.org ##
2379 ## ------------------------------------------ ##"
2380      ) | sed "s/^/$as_me: WARNING:     /" >&2
2381     ;;
2382 esac
2383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2384 $as_echo_n "checking for $2... " >&6; }
2385 if eval \${$3+:} false; then :
2386   $as_echo_n "(cached) " >&6
2387 else
2388   eval "$3=\$ac_header_compiler"
2389 fi
2390 eval ac_res=\$$3
2391                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2392 $as_echo "$ac_res" >&6; }
2393 fi
2394   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395
2396 } # ac_fn_c_check_header_mongrel
2397
2398 # ac_fn_c_try_run LINENO
2399 # ----------------------
2400 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2401 # that executables *can* be run.
2402 ac_fn_c_try_run ()
2403 {
2404   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405   if { { ac_try="$ac_link"
2406 case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411 $as_echo "$ac_try_echo"; } >&5
2412   (eval "$ac_link") 2>&5
2413   ac_status=$?
2414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2416   { { case "(($ac_try" in
2417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418   *) ac_try_echo=$ac_try;;
2419 esac
2420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421 $as_echo "$ac_try_echo"; } >&5
2422   (eval "$ac_try") 2>&5
2423   ac_status=$?
2424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425   test $ac_status = 0; }; }; then :
2426   ac_retval=0
2427 else
2428   $as_echo "$as_me: program exited with status $ac_status" >&5
2429        $as_echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432        ac_retval=$ac_status
2433 fi
2434   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2435   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436   as_fn_set_status $ac_retval
2437
2438 } # ac_fn_c_try_run
2439
2440 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2441 # -------------------------------------------------------
2442 # Tests whether HEADER exists and can be compiled using the include files in
2443 # INCLUDES, setting the cache variable VAR accordingly.
2444 ac_fn_c_check_header_compile ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 $as_echo_n "checking for $2... " >&6; }
2449 if eval \${$3+:} false; then :
2450   $as_echo_n "(cached) " >&6
2451 else
2452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h.  */
2454 $4
2455 #include <$2>
2456 _ACEOF
2457 if ac_fn_c_try_compile "$LINENO"; then :
2458   eval "$3=yes"
2459 else
2460   eval "$3=no"
2461 fi
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 fi
2464 eval ac_res=\$$3
2465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468
2469 } # ac_fn_c_check_header_compile
2470
2471 # ac_fn_cxx_try_compile LINENO
2472 # ----------------------------
2473 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2474 ac_fn_cxx_try_compile ()
2475 {
2476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477   rm -f conftest.$ac_objext
2478   if { { ac_try="$ac_compile"
2479 case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484 $as_echo "$ac_try_echo"; } >&5
2485   (eval "$ac_compile") 2>conftest.err
2486   ac_status=$?
2487   if test -s conftest.err; then
2488     grep -v '^ *+' conftest.err >conftest.er1
2489     cat conftest.er1 >&5
2490     mv -f conftest.er1 conftest.err
2491   fi
2492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493   test $ac_status = 0; } && {
2494          test -z "$ac_cxx_werror_flag" ||
2495          test ! -s conftest.err
2496        } && test -s conftest.$ac_objext; then :
2497   ac_retval=0
2498 else
2499   $as_echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502         ac_retval=1
2503 fi
2504   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2505   as_fn_set_status $ac_retval
2506
2507 } # ac_fn_cxx_try_compile
2508
2509 # ac_fn_cxx_try_cpp LINENO
2510 # ------------------------
2511 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2512 ac_fn_cxx_try_cpp ()
2513 {
2514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2515   if { { ac_try="$ac_cpp conftest.$ac_ext"
2516 case "(($ac_try" in
2517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518   *) ac_try_echo=$ac_try;;
2519 esac
2520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2521 $as_echo "$ac_try_echo"; } >&5
2522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2523   ac_status=$?
2524   if test -s conftest.err; then
2525     grep -v '^ *+' conftest.err >conftest.er1
2526     cat conftest.er1 >&5
2527     mv -f conftest.er1 conftest.err
2528   fi
2529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530   test $ac_status = 0; } > conftest.i && {
2531          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2532          test ! -s conftest.err
2533        }; then :
2534   ac_retval=0
2535 else
2536   $as_echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539     ac_retval=1
2540 fi
2541   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542   as_fn_set_status $ac_retval
2543
2544 } # ac_fn_cxx_try_cpp
2545
2546 # ac_fn_c_try_link LINENO
2547 # -----------------------
2548 # Try to link conftest.$ac_ext, and return whether this succeeded.
2549 ac_fn_c_try_link ()
2550 {
2551   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552   rm -f conftest.$ac_objext conftest$ac_exeext
2553   if { { ac_try="$ac_link"
2554 case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2559 $as_echo "$ac_try_echo"; } >&5
2560   (eval "$ac_link") 2>conftest.err
2561   ac_status=$?
2562   if test -s conftest.err; then
2563     grep -v '^ *+' conftest.err >conftest.er1
2564     cat conftest.er1 >&5
2565     mv -f conftest.er1 conftest.err
2566   fi
2567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2568   test $ac_status = 0; } && {
2569          test -z "$ac_c_werror_flag" ||
2570          test ! -s conftest.err
2571        } && test -s conftest$ac_exeext && {
2572          test "$cross_compiling" = yes ||
2573          test -x conftest$ac_exeext
2574        }; then :
2575   ac_retval=0
2576 else
2577   $as_echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580         ac_retval=1
2581 fi
2582   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2583   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2584   # interfere with the next link command; also delete a directory that is
2585   # left behind by Apple's compiler.  We do this before executing the actions.
2586   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2587   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2588   as_fn_set_status $ac_retval
2589
2590 } # ac_fn_c_try_link
2591
2592 # ac_fn_c_check_func LINENO FUNC VAR
2593 # ----------------------------------
2594 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2595 ac_fn_c_check_func ()
2596 {
2597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2599 $as_echo_n "checking for $2... " >&6; }
2600 if eval \${$3+:} false; then :
2601   $as_echo_n "(cached) " >&6
2602 else
2603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2607 #define $2 innocuous_$2
2608
2609 /* System header to define __stub macros and hopefully few prototypes,
2610     which can conflict with char $2 (); below.
2611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2612     <limits.h> exists even on freestanding compilers.  */
2613
2614 #ifdef __STDC__
2615 # include <limits.h>
2616 #else
2617 # include <assert.h>
2618 #endif
2619
2620 #undef $2
2621
2622 /* Override any GCC internal prototype to avoid an error.
2623    Use char because int might match the return type of a GCC
2624    builtin and then its argument prototype would still apply.  */
2625 #ifdef __cplusplus
2626 extern "C"
2627 #endif
2628 char $2 ();
2629 /* The GNU C library defines this for functions which it implements
2630     to always fail with ENOSYS.  Some functions are actually named
2631     something starting with __ and the normal name is an alias.  */
2632 #if defined __stub_$2 || defined __stub___$2
2633 choke me
2634 #endif
2635
2636 int
2637 main ()
2638 {
2639 return $2 ();
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 if ac_fn_c_try_link "$LINENO"; then :
2645   eval "$3=yes"
2646 else
2647   eval "$3=no"
2648 fi
2649 rm -f core conftest.err conftest.$ac_objext \
2650     conftest$ac_exeext conftest.$ac_ext
2651 fi
2652 eval ac_res=\$$3
2653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654 $as_echo "$ac_res" >&6; }
2655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656
2657 } # ac_fn_c_check_func
2658
2659 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2660 # -------------------------------------------
2661 # Tests whether TYPE exists after having included INCLUDES, setting cache
2662 # variable VAR accordingly.
2663 ac_fn_c_check_type ()
2664 {
2665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if eval \${$3+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   eval "$3=no"
2672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h.  */
2674 $4
2675 int
2676 main ()
2677 {
2678 if (sizeof ($2))
2679          return 0;
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 if ac_fn_c_try_compile "$LINENO"; then :
2685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686 /* end confdefs.h.  */
2687 $4
2688 int
2689 main ()
2690 {
2691 if (sizeof (($2)))
2692             return 0;
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 if ac_fn_c_try_compile "$LINENO"; then :
2698
2699 else
2700   eval "$3=yes"
2701 fi
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 fi
2706 eval ac_res=\$$3
2707                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708 $as_echo "$ac_res" >&6; }
2709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710
2711 } # ac_fn_c_check_type
2712
2713 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2714 # ----------------------------------------------------
2715 # Tries to find if the field MEMBER exists in type AGGR, after including
2716 # INCLUDES, setting cache variable VAR accordingly.
2717 ac_fn_c_check_member ()
2718 {
2719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2721 $as_echo_n "checking for $2.$3... " >&6; }
2722 if eval \${$4+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h.  */
2727 $5
2728 int
2729 main ()
2730 {
2731 static $2 ac_aggr;
2732 if (ac_aggr.$3)
2733 return 0;
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 if ac_fn_c_try_compile "$LINENO"; then :
2739   eval "$4=yes"
2740 else
2741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h.  */
2743 $5
2744 int
2745 main ()
2746 {
2747 static $2 ac_aggr;
2748 if (sizeof ac_aggr.$3)
2749 return 0;
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 if ac_fn_c_try_compile "$LINENO"; then :
2755   eval "$4=yes"
2756 else
2757   eval "$4=no"
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 fi
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 fi
2763 eval ac_res=\$$4
2764                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2765 $as_echo "$ac_res" >&6; }
2766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767
2768 } # ac_fn_c_check_member
2769
2770 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2771 # --------------------------------------------
2772 # Tries to find the compile-time value of EXPR in a program that includes
2773 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2774 # computed
2775 ac_fn_c_compute_int ()
2776 {
2777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2778   if test "$cross_compiling" = yes; then
2779     # Depending upon the size, compute the lo and hi bounds.
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h.  */
2782 $4
2783 int
2784 main ()
2785 {
2786 static int test_array [1 - 2 * !(($2) >= 0)];
2787 test_array [0] = 0;
2788 return test_array [0];
2789
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_c_try_compile "$LINENO"; then :
2795   ac_lo=0 ac_mid=0
2796   while :; do
2797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h.  */
2799 $4
2800 int
2801 main ()
2802 {
2803 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2804 test_array [0] = 0;
2805 return test_array [0];
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 if ac_fn_c_try_compile "$LINENO"; then :
2812   ac_hi=$ac_mid; break
2813 else
2814   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2815                         if test $ac_lo -le $ac_mid; then
2816                           ac_lo= ac_hi=
2817                           break
2818                         fi
2819                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2820 fi
2821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822   done
2823 else
2824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h.  */
2826 $4
2827 int
2828 main ()
2829 {
2830 static int test_array [1 - 2 * !(($2) < 0)];
2831 test_array [0] = 0;
2832 return test_array [0];
2833
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 if ac_fn_c_try_compile "$LINENO"; then :
2839   ac_hi=-1 ac_mid=-1
2840   while :; do
2841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h.  */
2843 $4
2844 int
2845 main ()
2846 {
2847 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2848 test_array [0] = 0;
2849 return test_array [0];
2850
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_c_try_compile "$LINENO"; then :
2856   ac_lo=$ac_mid; break
2857 else
2858   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2859                         if test $ac_mid -le $ac_hi; then
2860                           ac_lo= ac_hi=
2861                           break
2862                         fi
2863                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866   done
2867 else
2868   ac_lo= ac_hi=
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 # Binary search between lo and hi bounds.
2874 while test "x$ac_lo" != "x$ac_hi"; do
2875   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h.  */
2878 $4
2879 int
2880 main ()
2881 {
2882 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2883 test_array [0] = 0;
2884 return test_array [0];
2885
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 if ac_fn_c_try_compile "$LINENO"; then :
2891   ac_hi=$ac_mid
2892 else
2893   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 done
2897 case $ac_lo in #((
2898 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2899 '') ac_retval=1 ;;
2900 esac
2901   else
2902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h.  */
2904 $4
2905 static long int longval () { return $2; }
2906 static unsigned long int ulongval () { return $2; }
2907 #include <stdio.h>
2908 #include <stdlib.h>
2909 int
2910 main ()
2911 {
2912
2913   FILE *f = fopen ("conftest.val", "w");
2914   if (! f)
2915     return 1;
2916   if (($2) < 0)
2917     {
2918       long int i = longval ();
2919       if (i != ($2))
2920         return 1;
2921       fprintf (f, "%ld", i);
2922     }
2923   else
2924     {
2925       unsigned long int i = ulongval ();
2926       if (i != ($2))
2927         return 1;
2928       fprintf (f, "%lu", i);
2929     }
2930   /* Do not output a trailing newline, as this causes \r\n confusion
2931      on some platforms.  */
2932   return ferror (f) || fclose (f) != 0;
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 if ac_fn_c_try_run "$LINENO"; then :
2939   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2940 else
2941   ac_retval=1
2942 fi
2943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944   conftest.$ac_objext conftest.beam conftest.$ac_ext
2945 rm -f conftest.val
2946
2947   fi
2948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2949   as_fn_set_status $ac_retval
2950
2951 } # ac_fn_c_compute_int
2952
2953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2954 # ---------------------------------------------------------
2955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2956 # the include files in INCLUDES and setting the cache variable VAR
2957 # accordingly.
2958 ac_fn_cxx_check_header_mongrel ()
2959 {
2960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2961   if eval \${$3+:} false; then :
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2963 $as_echo_n "checking for $2... " >&6; }
2964 if eval \${$3+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 fi
2967 eval ac_res=\$$3
2968                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969 $as_echo "$ac_res" >&6; }
2970 else
2971   # Is the header compilable?
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2973 $as_echo_n "checking $2 usability... " >&6; }
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h.  */
2976 $4
2977 #include <$2>
2978 _ACEOF
2979 if ac_fn_cxx_try_compile "$LINENO"; then :
2980   ac_header_compiler=yes
2981 else
2982   ac_header_compiler=no
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2986 $as_echo "$ac_header_compiler" >&6; }
2987
2988 # Is the header present?
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2990 $as_echo_n "checking $2 presence... " >&6; }
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h.  */
2993 #include <$2>
2994 _ACEOF
2995 if ac_fn_cxx_try_cpp "$LINENO"; then :
2996   ac_header_preproc=yes
2997 else
2998   ac_header_preproc=no
2999 fi
3000 rm -f conftest.err conftest.i conftest.$ac_ext
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3002 $as_echo "$ac_header_preproc" >&6; }
3003
3004 # So?  What about this header?
3005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3006   yes:no: )
3007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3011     ;;
3012   no:yes:* )
3013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3016 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3020 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3021     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3023 ( $as_echo "## ------------------------------------------ ##
3024 ## Report this to https://issues.asterisk.org ##
3025 ## ------------------------------------------ ##"
3026      ) | sed "s/^/$as_me: WARNING:     /" >&2
3027     ;;
3028 esac
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3030 $as_echo_n "checking for $2... " >&6; }
3031 if eval \${$3+:} false; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   eval "$3=\$ac_header_compiler"
3035 fi
3036 eval ac_res=\$$3
3037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038 $as_echo "$ac_res" >&6; }
3039 fi
3040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3041
3042 } # ac_fn_cxx_check_header_mongrel
3043
3044 # ac_fn_cxx_try_link LINENO
3045 # -------------------------
3046 # Try to link conftest.$ac_ext, and return whether this succeeded.
3047 ac_fn_cxx_try_link ()
3048 {
3049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3050   rm -f conftest.$ac_objext conftest$ac_exeext
3051   if { { ac_try="$ac_link"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058   (eval "$ac_link") 2>conftest.err
3059   ac_status=$?
3060   if test -s conftest.err; then
3061     grep -v '^ *+' conftest.err >conftest.er1
3062     cat conftest.er1 >&5
3063     mv -f conftest.er1 conftest.err
3064   fi
3065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066   test $ac_status = 0; } && {
3067          test -z "$ac_cxx_werror_flag" ||
3068          test ! -s conftest.err
3069        } && test -s conftest$ac_exeext && {
3070          test "$cross_compiling" = yes ||
3071          test -x conftest$ac_exeext
3072        }; then :
3073   ac_retval=0
3074 else
3075   $as_echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078         ac_retval=1
3079 fi
3080   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3081   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3082   # interfere with the next link command; also delete a directory that is
3083   # left behind by Apple's compiler.  We do this before executing the actions.
3084   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3086   as_fn_set_status $ac_retval
3087
3088 } # ac_fn_cxx_try_link
3089
3090 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3091 # ---------------------------------------------------------
3092 # Tests whether HEADER exists and can be compiled using the include files in
3093 # INCLUDES, setting the cache variable VAR accordingly.
3094 ac_fn_cxx_check_header_compile ()
3095 {
3096   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3098 $as_echo_n "checking for $2... " >&6; }
3099 if eval \${$3+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h.  */
3104 $4
3105 #include <$2>
3106 _ACEOF
3107 if ac_fn_cxx_try_compile "$LINENO"; then :
3108   eval "$3=yes"
3109 else
3110   eval "$3=no"
3111 fi
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 fi
3114 eval ac_res=\$$3
3115                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3116 $as_echo "$ac_res" >&6; }
3117   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3118
3119 } # ac_fn_cxx_check_header_compile
3120 cat >config.log <<_ACEOF
3121 This file contains any messages produced by compilers while
3122 running configure, to aid debugging if configure makes a mistake.
3123
3124 It was created by asterisk $as_me trunk, which was
3125 generated by GNU Autoconf 2.69.  Invocation command line was
3126
3127   $ $0 $@
3128
3129 _ACEOF
3130 exec 5>>config.log
3131 {
3132 cat <<_ASUNAME
3133 ## --------- ##
3134 ## Platform. ##
3135 ## --------- ##
3136
3137 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3138 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3139 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3140 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3141 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3142
3143 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3144 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3145
3146 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3147 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3148 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3149 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3150 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3151 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3152 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3153
3154 _ASUNAME
3155
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161     $as_echo "PATH: $as_dir"
3162   done
3163 IFS=$as_save_IFS
3164
3165 } >&5
3166
3167 cat >&5 <<_ACEOF
3168
3169
3170 ## ----------- ##
3171 ## Core tests. ##
3172 ## ----------- ##
3173
3174 _ACEOF
3175
3176
3177 # Keep a trace of the command line.
3178 # Strip out --no-create and --no-recursion so they do not pile up.
3179 # Strip out --silent because we don't want to record it for future runs.
3180 # Also quote any args containing shell meta-characters.
3181 # Make two passes to allow for proper duplicate-argument suppression.
3182 ac_configure_args=
3183 ac_configure_args0=
3184 ac_configure_args1=
3185 ac_must_keep_next=false
3186 for ac_pass in 1 2
3187 do
3188   for ac_arg
3189   do
3190     case $ac_arg in
3191     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3192     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3193     | -silent | --silent | --silen | --sile | --sil)
3194       continue ;;
3195     *\'*)
3196       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3197     esac
3198     case $ac_pass in
3199     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3200     2)
3201       as_fn_append ac_configure_args1 " '$ac_arg'"
3202       if test $ac_must_keep_next = true; then
3203         ac_must_keep_next=false # Got value, back to normal.
3204       else
3205         case $ac_arg in
3206           *=* | --config-cache | -C | -disable-* | --disable-* \
3207           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3208           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3209           | -with-* | --with-* | -without-* | --without-* | --x)
3210             case "$ac_configure_args0 " in
3211               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3212             esac
3213             ;;
3214           -* ) ac_must_keep_next=true ;;
3215         esac
3216       fi
3217       as_fn_append ac_configure_args " '$ac_arg'"
3218       ;;
3219     esac
3220   done
3221 done
3222 { ac_configure_args0=; unset ac_configure_args0;}
3223 { ac_configure_args1=; unset ac_configure_args1;}
3224
3225 # When interrupted or exit'd, cleanup temporary files, and complete
3226 # config.log.  We remove comments because anyway the quotes in there
3227 # would cause problems or look ugly.
3228 # WARNING: Use '\'' to represent an apostrophe within the trap.
3229 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3230 trap 'exit_status=$?
3231   # Save into config.log some information that might help in debugging.
3232   {
3233     echo
3234
3235     $as_echo "## ---------------- ##
3236 ## Cache variables. ##
3237 ## ---------------- ##"
3238     echo
3239     # The following way of writing the cache mishandles newlines in values,
3240 (
3241   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3242     eval ac_val=\$$ac_var
3243     case $ac_val in #(
3244     *${as_nl}*)
3245       case $ac_var in #(
3246       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3248       esac
3249       case $ac_var in #(
3250       _ | IFS | as_nl) ;; #(
3251       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3252       *) { eval $ac_var=; unset $ac_var;} ;;
3253       esac ;;
3254     esac
3255   done
3256   (set) 2>&1 |
3257     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3258     *${as_nl}ac_space=\ *)
3259       sed -n \
3260         "s/'\''/'\''\\\\'\'''\''/g;
3261           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3262       ;; #(
3263     *)
3264       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3265       ;;
3266     esac |
3267     sort
3268 )
3269     echo
3270
3271     $as_echo "## ----------------- ##
3272 ## Output variables. ##
3273 ## ----------------- ##"
3274     echo
3275     for ac_var in $ac_subst_vars
3276     do
3277       eval ac_val=\$$ac_var
3278       case $ac_val in
3279       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3280       esac
3281       $as_echo "$ac_var='\''$ac_val'\''"
3282     done | sort
3283     echo
3284
3285     if test -n "$ac_subst_files"; then
3286       $as_echo "## ------------------- ##
3287 ## File substitutions. ##
3288 ## ------------------- ##"
3289       echo
3290       for ac_var in $ac_subst_files
3291       do
3292         eval ac_val=\$$ac_var
3293         case $ac_val in
3294         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3295         esac
3296         $as_echo "$ac_var='\''$ac_val'\''"
3297       done | sort
3298       echo
3299     fi
3300
3301     if test -s confdefs.h; then
3302       $as_echo "## ----------- ##
3303 ## confdefs.h. ##
3304 ## ----------- ##"
3305       echo
3306       cat confdefs.h
3307       echo
3308     fi
3309     test "$ac_signal" != 0 &&
3310       $as_echo "$as_me: caught signal $ac_signal"
3311     $as_echo "$as_me: exit $exit_status"
3312   } >&5
3313   rm -f core *.core core.conftest.* &&
3314     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3315     exit $exit_status
3316 ' 0
3317 for ac_signal in 1 2 13 15; do
3318   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3319 done
3320 ac_signal=0
3321
3322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3323 rm -f -r conftest* confdefs.h
3324
3325 $as_echo "/* confdefs.h */" > confdefs.h
3326
3327 # Predefined preprocessor variables.
3328
3329 cat >>confdefs.h <<_ACEOF
3330 #define PACKAGE_NAME "$PACKAGE_NAME"
3331 _ACEOF
3332
3333 cat >>confdefs.h <<_ACEOF
3334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3335 _ACEOF
3336
3337 cat >>confdefs.h <<_ACEOF
3338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3339 _ACEOF
3340
3341 cat >>confdefs.h <<_ACEOF
3342 #define PACKAGE_STRING "$PACKAGE_STRING"
3343 _ACEOF
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3347 _ACEOF
3348
3349 cat >>confdefs.h <<_ACEOF
3350 #define PACKAGE_URL "$PACKAGE_URL"
3351 _ACEOF
3352
3353
3354 # Let the site file select an alternate cache file if it wants to.
3355 # Prefer an explicitly selected file to automatically selected ones.
3356 ac_site_file1=NONE
3357 ac_site_file2=NONE
3358 if test -n "$CONFIG_SITE"; then
3359   # We do not want a PATH search for config.site.
3360   case $CONFIG_SITE in #((
3361     -*)  ac_site_file1=./$CONFIG_SITE;;
3362     */*) ac_site_file1=$CONFIG_SITE;;
3363     *)   ac_site_file1=./$CONFIG_SITE;;
3364   esac
3365 elif test "x$prefix" != xNONE; then
3366   ac_site_file1=$prefix/share/config.site
3367   ac_site_file2=$prefix/etc/config.site
3368 else
3369   ac_site_file1=$ac_default_prefix/share/config.site
3370   ac_site_file2=$ac_default_prefix/etc/config.site
3371 fi
3372 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3373 do
3374   test "x$ac_site_file" = xNONE && continue
3375   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3376     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3377 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3378     sed 's/^/| /' "$ac_site_file" >&5
3379     . "$ac_site_file" \
3380       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error $? "failed to load site script $ac_site_file
3383 See \`config.log' for more details" "$LINENO" 5; }
3384   fi
3385 done
3386
3387 if test -r "$cache_file"; then
3388   # Some versions of bash will fail to source /dev/null (special files
3389   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3390   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3391     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3392 $as_echo "$as_me: loading cache $cache_file" >&6;}
3393     case $cache_file in
3394       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3395       *)                      . "./$cache_file";;
3396     esac
3397   fi
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3400 $as_echo "$as_me: creating cache $cache_file" >&6;}
3401   >$cache_file
3402 fi
3403
3404 as_fn_append ac_header_list " stdlib.h"
3405 as_fn_append ac_header_list " unistd.h"
3406 as_fn_append ac_header_list " sys/param.h"
3407 as_fn_append ac_header_list " utime.h"
3408 # Check that the precious variables saved in the cache have kept the same
3409 # value.
3410 ac_cache_corrupted=false
3411 for ac_var in $ac_precious_vars; do
3412   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3413   eval ac_new_set=\$ac_env_${ac_var}_set
3414   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3415   eval ac_new_val=\$ac_env_${ac_var}_value
3416   case $ac_old_set,$ac_new_set in
3417     set,)
3418       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3419 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3420       ac_cache_corrupted=: ;;
3421     ,set)
3422       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3423 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3424       ac_cache_corrupted=: ;;
3425     ,);;
3426     *)
3427       if test "x$ac_old_val" != "x$ac_new_val"; then
3428         # differences in whitespace do not lead to failure.
3429         ac_old_val_w=`echo x $ac_old_val`
3430         ac_new_val_w=`echo x $ac_new_val`
3431         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3432           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3433 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3434           ac_cache_corrupted=:
3435         else
3436           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3437 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3438           eval $ac_var=\$ac_old_val
3439         fi
3440         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3441 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3442         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3443 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3444       fi;;
3445   esac
3446   # Pass precious variables to config.status.
3447   if test "$ac_new_set" = set; then
3448     case $ac_new_val in
3449     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3450     *) ac_arg=$ac_var=$ac_new_val ;;
3451     esac
3452     case " $ac_configure_args " in
3453       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3454       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3455     esac
3456   fi
3457 done
3458 if $ac_cache_corrupted; then
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3462 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3463   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3464 fi
3465 ## -------------------- ##
3466 ## Main body of script. ##
3467 ## -------------------- ##
3468
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474
3475
3476
3477 # cross-compile macros
3478 ac_aux_dir=
3479 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3480   if test -f "$ac_dir/install-sh"; then
3481     ac_aux_dir=$ac_dir
3482     ac_install_sh="$ac_aux_dir/install-sh -c"
3483     break
3484   elif test -f "$ac_dir/install.sh"; then
3485     ac_aux_dir=$ac_dir
3486     ac_install_sh="$ac_aux_dir/install.sh -c"
3487     break
3488   elif test -f "$ac_dir/shtool"; then
3489     ac_aux_dir=$ac_dir
3490     ac_install_sh="$ac_aux_dir/shtool install -c"
3491     break
3492   fi
3493 done
3494 if test -z "$ac_aux_dir"; then
3495   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3496 fi
3497
3498 # These three variables are undocumented and unsupported,
3499 # and are intended to be withdrawn in a future Autoconf release.
3500 # They can cause serious problems if a builder's source tree is in a directory
3501 # whose full name contains unusual characters.
3502 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3503 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3504 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3505
3506
3507 # Make sure we can run config.sub.
3508 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3509   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3510
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3512 $as_echo_n "checking build system type... " >&6; }
3513 if ${ac_cv_build+:} false; then :
3514   $as_echo_n "(cached) " >&6
3515 else
3516   ac_build_alias=$build_alias
3517 test "x$ac_build_alias" = x &&
3518   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3519 test "x$ac_build_alias" = x &&
3520   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3521 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3522   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3523
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3526 $as_echo "$ac_cv_build" >&6; }
3527 case $ac_cv_build in
3528 *-*-*) ;;
3529 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3530 esac
3531 build=$ac_cv_build
3532 ac_save_IFS=$IFS; IFS='-'
3533 set x $ac_cv_build
3534 shift
3535 build_cpu=$1
3536 build_vendor=$2
3537 shift; shift
3538 # Remember, the first character of IFS is used to create $*,
3539 # except with old shells:
3540 build_os=$*
3541 IFS=$ac_save_IFS
3542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3543
3544
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3546 $as_echo_n "checking host system type... " >&6; }
3547 if ${ac_cv_host+:} false; then :
3548   $as_echo_n "(cached) " >&6
3549 else
3550   if test "x$host_alias" = x; then
3551   ac_cv_host=$ac_cv_build
3552 else
3553   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3555 fi
3556
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3559 $as_echo "$ac_cv_host" >&6; }
3560 case $ac_cv_host in
3561 *-*-*) ;;
3562 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3563 esac
3564 host=$ac_cv_host
3565 ac_save_IFS=$IFS; IFS='-'
3566 set x $ac_cv_host
3567 shift
3568 host_cpu=$1
3569 host_vendor=$2
3570 shift; shift
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3573 host_os=$*
3574 IFS=$ac_save_IFS
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576
3577
3578
3579 # check existence of the package
3580
3581
3582 ac_aux_dir=
3583 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3584   if test -f "$ac_dir/install-sh"; then
3585     ac_aux_dir=$ac_dir
3586     ac_install_sh="$ac_aux_dir/install-sh -c"
3587     break
3588   elif test -f "$ac_dir/install.sh"; then
3589     ac_aux_dir=$ac_dir
3590     ac_install_sh="$ac_aux_dir/install.sh -c"
3591     break
3592   elif test -f "$ac_dir/shtool"; then
3593     ac_aux_dir=$ac_dir
3594     ac_install_sh="$ac_aux_dir/shtool install -c"
3595     break
3596   fi
3597 done
3598 if test -z "$ac_aux_dir"; then
3599   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3600 fi
3601
3602 # These three variables are undocumented and unsupported,
3603 # and are intended to be withdrawn in a future Autoconf release.
3604 # They can cause serious problems if a builder's source tree is in a directory
3605 # whose full name contains unusual characters.
3606 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3607 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3608 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3609
3610
3611
3612
3613
3614
3615 # preserve any CFLAGS or LDFLAGS that may be set
3616 # NOTE: This must be done before calling any macros that end up
3617 # calling AC_PROG_CC or the like, since they will set a default
3618 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3619 # we don't want those default flags to be carried over into the
3620 # rest of the build system since we have other means of controlling
3621 # debugging symbol generation and optimization.
3622 CONFIG_CFLAGS="${CFLAGS}"
3623 CONFIG_LDFLAGS="${LDFLAGS}"
3624
3625
3626
3627 # specify output header file
3628 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3629
3630
3631 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3632 # other macro that uses the C compiler, or the default order will be used.
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 if test -n "$ac_tool_prefix"; then
3639   for ac_prog in gcc cc
3640   do
3641     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   if test -n "$CC"; then
3649   ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654   IFS=$as_save_IFS
3655   test -z "$as_dir" && as_dir=.
3656     for ac_exec_ext in '' $ac_executable_extensions; do
3657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660     break 2
3661   fi
3662 done
3663   done
3664 IFS=$as_save_IFS
3665
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678     test -n "$CC" && break
3679   done
3680 fi
3681 if test -z "$CC"; then
3682   ac_ct_CC=$CC
3683   for ac_prog in gcc cc
3684 do
3685   # Extract the first word of "$ac_prog", so it can be a program name with args.
3686 set dummy $ac_prog; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3690   $as_echo_n "(cached) " >&6
3691 else
3692   if test -n "$ac_ct_CC"; then
3693   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700     for ac_exec_ext in '' $ac_executable_extensions; do
3701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702     ac_cv_prog_ac_ct_CC="$ac_prog"
3703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704     break 2
3705   fi
3706 done
3707   done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3713 if test -n "$ac_ct_CC"; then
3714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3715 $as_echo "$ac_ct_CC" >&6; }
3716 else
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721
3722   test -n "$ac_ct_CC" && break
3723 done
3724
3725   if test "x$ac_ct_CC" = x; then
3726     CC=""
3727   else
3728     case $cross_compiling:$ac_tool_warned in
3729 yes:)
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3732 ac_tool_warned=yes ;;
3733 esac
3734     CC=$ac_ct_CC
3735   fi
3736 fi
3737
3738
3739 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741 as_fn_error $? "no acceptable C compiler found in \$PATH
3742 See \`config.log' for more details" "$LINENO" 5; }
3743
3744 # Provide some information about the compiler.
3745 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3746 set X $ac_compile
3747 ac_compiler=$2
3748 for ac_option in --version -v -V -qversion; do
3749   { { ac_try="$ac_compiler $ac_option >&5"
3750 case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3757   ac_status=$?
3758   if test -s conftest.err; then
3759     sed '10a\
3760 ... rest of stderr output deleted ...
3761          10q' conftest.err >conftest.er1
3762     cat conftest.er1 >&5
3763   fi
3764   rm -f conftest.er1 conftest.err
3765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766   test $ac_status = 0; }
3767 done
3768
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 ac_clean_files_save=$ac_clean_files
3781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3782 # Try to create an executable without -o first, disregard a.out.
3783 # It will help us diagnose broken compilers, and finding out an intuition
3784 # of exeext.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3786 $as_echo_n "checking whether the C compiler works... " >&6; }
3787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3788
3789 # The possible output files:
3790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3791
3792 ac_rmfiles=
3793 for ac_file in $ac_files
3794 do
3795   case $ac_file in
3796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3797     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3798   esac
3799 done
3800 rm -f $ac_rmfiles
3801
3802 if { { ac_try="$ac_link_default"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809   (eval "$ac_link_default") 2>&5
3810   ac_status=$?
3811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812   test $ac_status = 0; }; then :
3813   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3815 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3816 # so that the user can short-circuit this test for compilers unknown to
3817 # Autoconf.
3818 for ac_file in $ac_files ''
3819 do
3820   test -f "$ac_file" || continue
3821   case $ac_file in
3822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3823         ;;
3824     [ab].out )
3825         # We found the default executable, but exeext='' is most
3826         # certainly right.
3827         break;;
3828     *.* )
3829         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3830         then :; else
3831            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3832         fi
3833         # We set ac_cv_exeext here because the later test for it is not
3834         # safe: cross compilers may not add the suffix if given an `-o'
3835         # argument, so we may need to know it at that point already.
3836         # Even if this section looks crufty: it has the advantage of
3837         # actually working.
3838         break;;
3839     * )
3840         break;;
3841   esac
3842 done
3843 test "$ac_cv_exeext" = no && ac_cv_exeext=
3844
3845 else
3846   ac_file=''
3847 fi
3848 if test -z "$ac_file"; then :
3849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851 $as_echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3853
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error 77 "C compiler cannot create executables
3857 See \`config.log' for more details" "$LINENO" 5; }
3858 else
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3860 $as_echo "yes" >&6; }
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3863 $as_echo_n "checking for C compiler default output file name... " >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3865 $as_echo "$ac_file" >&6; }
3866 ac_exeext=$ac_cv_exeext
3867
3868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3869 ac_clean_files=$ac_clean_files_save
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3871 $as_echo_n "checking for suffix of executables... " >&6; }
3872 if { { ac_try="$ac_link"
3873 case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879   (eval "$ac_link") 2>&5
3880   ac_status=$?
3881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882   test $ac_status = 0; }; then :
3883   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3884 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3885 # work properly (i.e., refer to `conftest.exe'), while it won't with
3886 # `rm'.
3887 for ac_file in conftest.exe conftest conftest.*; do
3888   test -f "$ac_file" || continue
3889   case $ac_file in
3890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892           break;;
3893     * ) break;;
3894   esac
3895 done
3896 else
3897   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3900 See \`config.log' for more details" "$LINENO" 5; }
3901 fi
3902 rm -f conftest conftest$ac_cv_exeext
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3904 $as_echo "$ac_cv_exeext" >&6; }
3905
3906 rm -f conftest.$ac_ext
3907 EXEEXT=$ac_cv_exeext
3908 ac_exeext=$EXEEXT
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h.  */
3911 #include <stdio.h>
3912 int
3913 main ()
3914 {
3915 FILE *f = fopen ("conftest.out", "w");
3916  return ferror (f) || fclose (f) != 0;
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 ac_clean_files="$ac_clean_files conftest.out"
3923 # Check that the compiler produces executables we can run.  If not, either
3924 # the compiler is broken, or we cross compile.
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3926 $as_echo_n "checking whether we are cross compiling... " >&6; }
3927 if test "$cross_compiling" != yes; then
3928   { { ac_try="$ac_link"
3929 case "(($ac_try" in
3930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931   *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935   (eval "$ac_link") 2>&5
3936   ac_status=$?
3937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938   test $ac_status = 0; }
3939   if { ac_try='./conftest$ac_cv_exeext'
3940   { { case "(($ac_try" in
3941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942   *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946   (eval "$ac_try") 2>&5
3947   ac_status=$?
3948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949   test $ac_status = 0; }; }; then
3950     cross_compiling=no
3951   else
3952     if test "$cross_compiling" = maybe; then
3953         cross_compiling=yes
3954     else
3955         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error $? "cannot run C compiled programs.
3958 If you meant to cross compile, use \`--host'.
3959 See \`config.log' for more details" "$LINENO" 5; }
3960     fi
3961   fi
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3964 $as_echo "$cross_compiling" >&6; }
3965
3966 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3969 $as_echo_n "checking for suffix of object files... " >&6; }
3970 if ${ac_cv_objext+:} false; then :
3971   $as_echo_n "(cached) " >&6
3972 else
3973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h.  */
3975
3976 int
3977 main ()
3978 {
3979
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.o conftest.obj
3985 if { { ac_try="$ac_compile"
3986 case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 $as_echo "$ac_try_echo"; } >&5
3992   (eval "$ac_compile") 2>&5
3993   ac_status=$?
3994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995   test $ac_status = 0; }; then :
3996   for ac_file in conftest.o conftest.obj conftest.*; do
3997   test -f "$ac_file" || continue;
3998   case $ac_file in
3999     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4000     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4001        break;;
4002   esac
4003 done
4004 else
4005   $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error $? "cannot compute suffix of object files: cannot compile
4011 See \`config.log' for more details" "$LINENO" 5; }
4012 fi
4013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4016 $as_echo "$ac_cv_objext" >&6; }
4017 OBJEXT=$ac_cv_objext
4018 ac_objext=$OBJEXT
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4020 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4021 if ${ac_cv_c_compiler_gnu+:} false; then :
4022   $as_echo_n "(cached) " >&6
4023 else
4024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026
4027 int
4028 main ()
4029 {
4030 #ifndef __GNUC__
4031        choke me
4032 #endif
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039   ac_compiler_gnu=yes
4040 else
4041   ac_compiler_gnu=no
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4045
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4049 if test $ac_compiler_gnu = yes; then
4050   GCC=yes
4051 else
4052   GCC=
4053 fi
4054 ac_test_CFLAGS=${CFLAGS+set}
4055 ac_save_CFLAGS=$CFLAGS
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4058 if ${ac_cv_prog_cc_g+:} false; then :
4059   $as_echo_n "(cached) " >&6
4060 else
4061   ac_save_c_werror_flag=$ac_c_werror_flag
4062    ac_c_werror_flag=yes
4063    ac_cv_prog_cc_g=no
4064    CFLAGS="-g"
4065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077   ac_cv_prog_cc_g=yes
4078 else
4079   CFLAGS=""
4080       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 int
4084 main ()
4085 {
4086
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092
4093 else
4094   ac_c_werror_flag=$ac_save_c_werror_flag
4095          CFLAGS="-g"
4096          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108   ac_cv_prog_cc_g=yes
4109 fi
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 fi
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115    ac_c_werror_flag=$ac_save_c_werror_flag
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4118 $as_echo "$ac_cv_prog_cc_g" >&6; }
4119 if test "$ac_test_CFLAGS" = set; then
4120   CFLAGS=$ac_save_CFLAGS
4121 elif test $ac_cv_prog_cc_g = yes; then
4122   if test "$GCC" = yes; then
4123     CFLAGS="-g -O2"
4124   else
4125     CFLAGS="-g"
4126   fi
4127 else
4128   if test "$GCC" = yes; then
4129     CFLAGS="-O2"
4130   else
4131     CFLAGS=
4132   fi
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4136 if ${ac_cv_prog_cc_c89+:} false; then :
4137   $as_echo_n "(cached) " >&6
4138 else
4139   ac_cv_prog_cc_c89=no
4140 ac_save_CC=$CC
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h.  */
4143 #include <stdarg.h>
4144 #include <stdio.h>
4145 struct stat;
4146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4147 struct buf { int x; };
4148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4149 static char *e (p, i)
4150      char **p;
4151      int i;
4152 {
4153   return p[i];
4154 }
4155 static char *f (char * (*g) (char **, int), char **p, ...)
4156 {
4157   char *s;
4158   va_list v;
4159   va_start (v,p);
4160   s = g (p, va_arg (v,int));
4161   va_end (v);
4162   return s;
4163 }
4164
4165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4166    function prototypes and stuff, but not '\xHH' hex character constants.
4167    These don't provoke an error unfortunately, instead are silently treated
4168    as 'x'.  The following induces an error, until -std is added to get
4169    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4170    array size at least.  It's necessary to write '\x00'==0 to get something
4171    that's true only with -std.  */
4172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4173
4174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4175    inside strings and character constants.  */
4176 #define FOO(x) 'x'
4177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4178
4179 int test (int i, double x);
4180 struct s1 {int (*f) (int a);};
4181 struct s2 {int (*f) (double a);};
4182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4183 int argc;
4184 char **argv;
4185 int
4186 main ()
4187 {
4188 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4194         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4195 do
4196   CC="$ac_save_CC $ac_arg"
4197   if ac_fn_c_try_compile "$LINENO"; then :
4198   ac_cv_prog_cc_c89=$ac_arg
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext
4201   test "x$ac_cv_prog_cc_c89" != "xno" && break
4202 done
4203 rm -f conftest.$ac_ext
4204 CC=$ac_save_CC
4205
4206 fi
4207 # AC_CACHE_VAL
4208 case "x$ac_cv_prog_cc_c89" in
4209   x)
4210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4211 $as_echo "none needed" >&6; } ;;
4212   xno)
4213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214 $as_echo "unsupported" >&6; } ;;
4215   *)
4216     CC="$CC $ac_cv_prog_cc_c89"
4217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4219 esac
4220 if test "x$ac_cv_prog_cc_c89" != xno; then :
4221
4222 fi
4223
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230
4231
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4238 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4239 # On Suns, sometimes $CPP names a directory.
4240 if test -n "$CPP" && test -d "$CPP"; then
4241   CPP=
4242 fi
4243 if test -z "$CPP"; then
4244   if ${ac_cv_prog_CPP+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247       # Double quotes because CPP needs to be expanded
4248     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4249     do
4250       ac_preproc_ok=false
4251 for ac_c_preproc_warn_flag in '' yes
4252 do
4253   # Use a header file that comes with gcc, so configuring glibc
4254   # with a fresh cross-compiler works.
4255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256   # <limits.h> exists even on freestanding compilers.
4257   # On the NeXT, cc -E runs the code through the compiler's parser,
4258   # not just through cpp. "Syntax error" is here to catch this case.
4259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h.  */
4261 #ifdef __STDC__
4262 # include <limits.h>
4263 #else
4264 # include <assert.h>
4265 #endif
4266                      Syntax error
4267 _ACEOF
4268 if ac_fn_c_try_cpp "$LINENO"; then :
4269
4270 else
4271   # Broken: fails on valid input.
4272 continue
4273 fi
4274 rm -f conftest.err conftest.i conftest.$ac_ext
4275
4276   # OK, works on sane cases.  Now check whether nonexistent headers
4277   # can be detected and how.
4278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280 #include <ac_nonexistent.h>
4281 _ACEOF
4282 if ac_fn_c_try_cpp "$LINENO"; then :
4283   # Broken: success on invalid input.
4284 continue
4285 else
4286   # Passes both tests.
4287 ac_preproc_ok=:
4288 break
4289 fi
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4291
4292 done
4293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4294 rm -f conftest.i conftest.err conftest.$ac_ext
4295 if $ac_preproc_ok; then :
4296   break
4297 fi
4298
4299     done
4300     ac_cv_prog_CPP=$CPP
4301
4302 fi
4303   CPP=$ac_cv_prog_CPP
4304 else
4305   ac_cv_prog_CPP=$CPP
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4308 $as_echo "$CPP" >&6; }
4309 ac_preproc_ok=false
4310 for ac_c_preproc_warn_flag in '' yes
4311 do
4312   # Use a header file that comes with gcc, so configuring glibc
4313   # with a fresh cross-compiler works.
4314   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315   # <limits.h> exists even on freestanding compilers.
4316   # On the NeXT, cc -E runs the code through the compiler's parser,
4317   # not just through cpp. "Syntax error" is here to catch this case.
4318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h.  */
4320 #ifdef __STDC__
4321 # include <limits.h>
4322 #else
4323 # include <assert.h>
4324 #endif
4325                      Syntax error
4326 _ACEOF
4327 if ac_fn_c_try_cpp "$LINENO"; then :
4328
4329 else
4330   # Broken: fails on valid input.
4331 continue
4332 fi
4333 rm -f conftest.err conftest.i conftest.$ac_ext
4334
4335   # OK, works on sane cases.  Now check whether nonexistent headers
4336   # can be detected and how.
4337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h.  */
4339 #include <ac_nonexistent.h>
4340 _ACEOF
4341 if ac_fn_c_try_cpp "$LINENO"; then :
4342   # Broken: success on invalid input.
4343 continue
4344 else
4345   # Passes both tests.
4346 ac_preproc_ok=:
4347 break
4348 fi
4349 rm -f conftest.err conftest.i conftest.$ac_ext
4350
4351 done
4352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353 rm -f conftest.i conftest.err conftest.$ac_ext
4354 if $ac_preproc_ok; then :
4355
4356 else
4357   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4359 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4360 See \`config.log' for more details" "$LINENO" 5; }
4361 fi
4362
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
4369
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4371 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4372 if ${ac_cv_path_GREP+:} false; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375   if test -z "$GREP"; then
4376   ac_path_GREP_found=false
4377   # Loop through the user's path and test for each of PROGNAME-LIST
4378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383     for ac_prog in grep ggrep; do
4384     for ac_exec_ext in '' $ac_executable_extensions; do
4385       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4386       as_fn_executable_p "$ac_path_GREP" || continue
4387 # Check for GNU ac_path_GREP and select it if it is found.
4388   # Check for GNU $ac_path_GREP
4389 case `"$ac_path_GREP" --version 2>&1` in
4390 *GNU*)
4391   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4392 *)
4393   ac_count=0
4394   $as_echo_n 0123456789 >"conftest.in"
4395   while :
4396   do
4397     cat "conftest.in" "conftest.in" >"conftest.tmp"
4398     mv "conftest.tmp" "conftest.in"
4399     cp "conftest.in" "conftest.nl"
4400     $as_echo 'GREP' >> "conftest.nl"
4401     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403     as_fn_arith $ac_count + 1 && ac_count=$as_val
4404     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4405       # Best one so far, save it but keep looking for a better one
4406       ac_cv_path_GREP="$ac_path_GREP"
4407       ac_path_GREP_max=$ac_count
4408     fi
4409     # 10*(2^10) chars as input seems more than enough
4410     test $ac_count -gt 10 && break
4411   done
4412   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415       $ac_path_GREP_found && break 3
4416     done
4417   done
4418   done
4419 IFS=$as_save_IFS
4420   if test -z "$ac_cv_path_GREP"; then
4421     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422   fi
4423 else
4424   ac_cv_path_GREP=$GREP
4425 fi
4426
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4429 $as_echo "$ac_cv_path_GREP" >&6; }
4430  GREP="$ac_cv_path_GREP"
4431
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4434 $as_echo_n "checking for egrep... " >&6; }
4435 if ${ac_cv_path_EGREP+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4439    then ac_cv_path_EGREP="$GREP -E"
4440    else
4441      if test -z "$EGREP"; then
4442   ac_path_EGREP_found=false
4443   # Loop through the user's path and test for each of PROGNAME-LIST
4444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449     for ac_prog in egrep; do
4450     for ac_exec_ext in '' $ac_executable_extensions; do
4451       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4452       as_fn_executable_p "$ac_path_EGREP" || continue
4453 # Check for GNU ac_path_EGREP and select it if it is found.
4454   # Check for GNU $ac_path_EGREP
4455 case `"$ac_path_EGREP" --version 2>&1` in
4456 *GNU*)
4457   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4458 *)
4459   ac_count=0
4460   $as_echo_n 0123456789 >"conftest.in"
4461   while :
4462   do
4463     cat "conftest.in" "conftest.in" >"conftest.tmp"
4464     mv "conftest.tmp" "conftest.in"
4465     cp "conftest.in" "conftest.nl"
4466     $as_echo 'EGREP' >> "conftest.nl"
4467     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469     as_fn_arith $ac_count + 1 && ac_count=$as_val
4470     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4471       # Best one so far, save it but keep looking for a better one
4472       ac_cv_path_EGREP="$ac_path_EGREP"
4473       ac_path_EGREP_max=$ac_count
4474     fi
4475     # 10*(2^10) chars as input seems more than enough
4476     test $ac_count -gt 10 && break
4477   done
4478   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479 esac
4480
4481       $ac_path_EGREP_found && break 3
4482     done
4483   done
4484   done
4485 IFS=$as_save_IFS
4486   if test -z "$ac_cv_path_EGREP"; then
4487     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488   fi
4489 else
4490   ac_cv_path_EGREP=$EGREP
4491 fi
4492
4493    fi
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4496 $as_echo "$ac_cv_path_EGREP" >&6; }
4497  EGREP="$ac_cv_path_EGREP"
4498
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4501 $as_echo_n "checking for ANSI C header files... " >&6; }
4502 if ${ac_cv_header_stdc+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507 #include <stdlib.h>
4508 #include <stdarg.h>
4509 #include <string.h>
4510 #include <float.h>
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521   ac_cv_header_stdc=yes
4522 else
4523   ac_cv_header_stdc=no
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526
4527 if test $ac_cv_header_stdc = yes; then
4528   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531 #include <string.h>
4532
4533 _ACEOF
4534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535   $EGREP "memchr" >/dev/null 2>&1; then :
4536
4537 else
4538   ac_cv_header_stdc=no
4539 fi
4540 rm -f conftest*
4541
4542 fi
4543
4544 if test $ac_cv_header_stdc = yes; then
4545   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548 #include <stdlib.h>
4549
4550 _ACEOF
4551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552   $EGREP "free" >/dev/null 2>&1; then :
4553
4554 else
4555   ac_cv_header_stdc=no
4556 fi
4557 rm -f conftest*
4558
4559 fi
4560
4561 if test $ac_cv_header_stdc = yes; then
4562   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4563   if test "$cross_compiling" = yes; then :
4564   :
4565 else
4566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h.  */
4568 #include <ctype.h>
4569 #include <stdlib.h>
4570 #if ((' ' & 0x0FF) == 0x020)
4571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4573 #else
4574 # define ISLOWER(c) \
4575                    (('a' <= (c) && (c) <= 'i') \
4576                      || ('j' <= (c) && (c) <= 'r') \
4577                      || ('s' <= (c) && (c) <= 'z'))
4578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4579 #endif
4580
4581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4582 int
4583 main ()
4584 {
4585   int i;
4586   for (i = 0; i < 256; i++)
4587     if (XOR (islower (i), ISLOWER (i))
4588         || toupper (i) != TOUPPER (i))
4589       return 2;
4590   return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_run "$LINENO"; then :
4594
4595 else
4596   ac_cv_header_stdc=no
4597 fi
4598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4599   conftest.$ac_objext conftest.beam conftest.$ac_ext
4600 fi
4601
4602 fi
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4605 $as_echo "$ac_cv_header_stdc" >&6; }
4606 if test $ac_cv_header_stdc = yes; then
4607
4608 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4609
4610 fi
4611
4612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4613 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4614                   inttypes.h stdint.h unistd.h
4615 do :
4616   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4617 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4618 "
4619 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4620   cat >>confdefs.h <<_ACEOF
4621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4622 _ACEOF
4623
4624 fi
4625
4626 done
4627
4628
4629
4630   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4631 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4632   MINIX=yes
4633 else
4634   MINIX=
4635 fi
4636
4637
4638   if test "$MINIX" = yes; then
4639
4640 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4641
4642
4643 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4644
4645
4646 $as_echo "#define _MINIX 1" >>confdefs.h
4647
4648   fi
4649
4650
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4652 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4653 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658
4659 #         define __EXTENSIONS__ 1
4660           $ac_includes_default
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670   ac_cv_safe_to_define___extensions__=yes
4671 else
4672   ac_cv_safe_to_define___extensions__=no
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4677 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4678   test $ac_cv_safe_to_define___extensions__ = yes &&
4679     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4680
4681   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4682
4683   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4684
4685   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4686
4687   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4688
4689
4690 # System default paths
4691 astsbindir='${sbindir}'
4692 astetcdir='${sysconfdir}/asterisk'
4693 astheaderdir='${includedir}/asterisk'
4694 astlibdir='${libdir}'
4695 astmoddir='${libdir}/asterisk/modules'
4696 astmandir='${mandir}'
4697 astvarlibdir='${localstatedir}/lib/asterisk'
4698 astdatadir='${astvarlibdir}'
4699 astdbdir='${astvarlibdir}'
4700 astkeydir='${astvarlibdir}'
4701 astspooldir='${localstatedir}/spool/asterisk'
4702 astlogdir='${localstatedir}/log/asterisk'
4703 astvarrundir='${localstatedir}/run/asterisk'
4704
4705 case "${host_os}" in
4706      *bsd*)
4707      if test ${prefix} = 'NONE'; then
4708         astvarlibdir='${prefix}/share/asterisk'
4709         astdbdir='${localstatedir}/db/asterisk'
4710      fi
4711      ;;
4712      darwin*)
4713      if test ${prefix} = 'NONE'; then
4714         astvarrundir='/Library/Application Support/Asterisk/Run'
4715      fi
4716      ;;
4717 esac
4718
4719 case "${host_os}" in
4720      freebsd*)
4721      ac_default_prefix=/usr/local
4722      CPPFLAGS=-I/usr/local/include
4723      LDFLAGS=-L/usr/local/lib
4724      ;;
4725      openbsd*)
4726      ac_default_prefix=/usr/local
4727      if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4728         if test ${sysconfdir} = '${prefix}/etc'; then
4729            astetcdir=/etc/asterisk
4730         fi
4731         if test ${mandir} = '${prefix}/man'; then
4732            astmandir=/usr/share/man
4733         fi
4734      fi
4735      CPPFLAGS=-I/usr/local/include