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