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