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