Removed ast_log again for testing. Seems that it also causes dead-locks when it is...
[lcr.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for lcr 1.7.
4 #
5 # Report bugs to <andreas@eversberg.eu>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
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 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: andreas@eversberg.eu about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='lcr'
554 PACKAGE_TARNAME='lcr'
555 PACKAGE_VERSION='1.7'
556 PACKAGE_STRING='lcr 1.7'
557 PACKAGE_BUGREPORT='andreas@eversberg.eu'
558 PACKAGE_URL=''
559
560 ac_unique_file="main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='am__EXEEXT_FALSE
598 am__EXEEXT_TRUE
599 LTLIBOBJS
600 POW_LIB
601 LIBOBJS
602 ENABLE_SS5_FALSE
603 ENABLE_SS5_TRUE
604 ENABLE_GSM_FALSE
605 ENABLE_GSM_TRUE
606 ENABLE_GSM_MS_FALSE
607 ENABLE_GSM_MS_TRUE
608 ENABLE_GSM_BS_FALSE
609 ENABLE_GSM_BS_TRUE
610 LIBCRYPTO
611 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
612 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
613 AST_CFLAGS
614 am__fastdepCXX_FALSE
615 am__fastdepCXX_TRUE
616 CXXDEPMODE
617 ac_ct_CXX
618 CXXFLAGS
619 CXX
620 am__fastdepCC_FALSE
621 am__fastdepCC_TRUE
622 CCDEPMODE
623 AMDEPBACKSLASH
624 AMDEP_FALSE
625 AMDEP_TRUE
626 am__quote
627 am__include
628 DEPDIR
629 am__untar
630 am__tar
631 AMTAR
632 am__leading_dot
633 SET_MAKE
634 AWK
635 mkdir_p
636 MKDIR_P
637 INSTALL_STRIP_PROGRAM
638 STRIP
639 install_sh
640 MAKEINFO
641 AUTOHEADER
642 AUTOMAKE
643 AUTOCONF
644 ACLOCAL
645 VERSION
646 PACKAGE
647 CYGPATH_W
648 am__isrc
649 INSTALL_DATA
650 INSTALL_SCRIPT
651 INSTALL_PROGRAM
652 EGREP
653 GREP
654 CPP
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
661 CC
662 target_alias
663 host_alias
664 build_alias
665 LIBS
666 ECHO_T
667 ECHO_N
668 ECHO_C
669 DEFS
670 mandir
671 localedir
672 libdir
673 psdir
674 pdfdir
675 dvidir
676 htmldir
677 infodir
678 docdir
679 oldincludedir
680 includedir
681 localstatedir
682 sharedstatedir
683 sysconfdir
684 datadir
685 datarootdir
686 libexecdir
687 sbindir
688 bindir
689 program_transform_name
690 prefix
691 exec_prefix
692 PACKAGE_URL
693 PACKAGE_BUGREPORT
694 PACKAGE_STRING
695 PACKAGE_VERSION
696 PACKAGE_TARNAME
697 PACKAGE_NAME
698 PATH_SEPARATOR
699 SHELL'
700 ac_subst_files=''
701 ac_user_opts='
702 enable_option_checking
703 enable_dependency_tracking
704 with_asterisk
705 with_ssl
706 with_gsm_bs
707 with_gsm_ms
708 with_ss5
709 '
710       ac_precious_vars='build_alias
711 host_alias
712 target_alias
713 CC
714 CFLAGS
715 LDFLAGS
716 LIBS
717 CPPFLAGS
718 CPP
719 CXX
720 CXXFLAGS
721 CCC'
722
723
724 # Initialize some variables set by options.
725 ac_init_help=
726 ac_init_version=false
727 ac_unrecognized_opts=
728 ac_unrecognized_sep=
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
745
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763 infodir='${datarootdir}/info'
764 htmldir='${docdir}'
765 dvidir='${docdir}'
766 pdfdir='${docdir}'
767 psdir='${docdir}'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
771
772 ac_prev=
773 ac_dashdash=
774 for ac_option
775 do
776   # If the previous option needs an argument, assign it.
777   if test -n "$ac_prev"; then
778     eval $ac_prev=\$ac_option
779     ac_prev=
780     continue
781   fi
782
783   case $ac_option in
784   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785   *)    ac_optarg=yes ;;
786   esac
787
788   # Accept the important Cygnus configure options, so we can diagnose typos.
789
790   case $ac_dashdash$ac_option in
791   --)
792     ac_dashdash=yes ;;
793
794   -bindir | --bindir | --bindi | --bind | --bin | --bi)
795     ac_prev=bindir ;;
796   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797     bindir=$ac_optarg ;;
798
799   -build | --build | --buil | --bui | --bu)
800     ac_prev=build_alias ;;
801   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802     build_alias=$ac_optarg ;;
803
804   -cache-file | --cache-file | --cache-fil | --cache-fi \
805   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806     ac_prev=cache_file ;;
807   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809     cache_file=$ac_optarg ;;
810
811   --config-cache | -C)
812     cache_file=config.cache ;;
813
814   -datadir | --datadir | --datadi | --datad)
815     ac_prev=datadir ;;
816   -datadir=* | --datadir=* | --datadi=* | --datad=*)
817     datadir=$ac_optarg ;;
818
819   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820   | --dataroo | --dataro | --datar)
821     ac_prev=datarootdir ;;
822   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824     datarootdir=$ac_optarg ;;
825
826   -disable-* | --disable-*)
827     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828     # Reject names that are not valid shell variable names.
829     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830       as_fn_error "invalid feature name: $ac_useropt"
831     ac_useropt_orig=$ac_useropt
832     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833     case $ac_user_opts in
834       *"
835 "enable_$ac_useropt"
836 "*) ;;
837       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838          ac_unrecognized_sep=', ';;
839     esac
840     eval enable_$ac_useropt=no ;;
841
842   -docdir | --docdir | --docdi | --doc | --do)
843     ac_prev=docdir ;;
844   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845     docdir=$ac_optarg ;;
846
847   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848     ac_prev=dvidir ;;
849   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850     dvidir=$ac_optarg ;;
851
852   -enable-* | --enable-*)
853     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856       as_fn_error "invalid feature name: $ac_useropt"
857     ac_useropt_orig=$ac_useropt
858     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859     case $ac_user_opts in
860       *"
861 "enable_$ac_useropt"
862 "*) ;;
863       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864          ac_unrecognized_sep=', ';;
865     esac
866     eval enable_$ac_useropt=\$ac_optarg ;;
867
868   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870   | --exec | --exe | --ex)
871     ac_prev=exec_prefix ;;
872   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874   | --exec=* | --exe=* | --ex=*)
875     exec_prefix=$ac_optarg ;;
876
877   -gas | --gas | --ga | --g)
878     # Obsolete; use --with-gas.
879     with_gas=yes ;;
880
881   -help | --help | --hel | --he | -h)
882     ac_init_help=long ;;
883   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884     ac_init_help=recursive ;;
885   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886     ac_init_help=short ;;
887
888   -host | --host | --hos | --ho)
889     ac_prev=host_alias ;;
890   -host=* | --host=* | --hos=* | --ho=*)
891     host_alias=$ac_optarg ;;
892
893   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
894     ac_prev=htmldir ;;
895   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
896   | --ht=*)
897     htmldir=$ac_optarg ;;
898
899   -includedir | --includedir | --includedi | --included | --include \
900   | --includ | --inclu | --incl | --inc)
901     ac_prev=includedir ;;
902   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903   | --includ=* | --inclu=* | --incl=* | --inc=*)
904     includedir=$ac_optarg ;;
905
906   -infodir | --infodir | --infodi | --infod | --info | --inf)
907     ac_prev=infodir ;;
908   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909     infodir=$ac_optarg ;;
910
911   -libdir | --libdir | --libdi | --libd)
912     ac_prev=libdir ;;
913   -libdir=* | --libdir=* | --libdi=* | --libd=*)
914     libdir=$ac_optarg ;;
915
916   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917   | --libexe | --libex | --libe)
918     ac_prev=libexecdir ;;
919   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920   | --libexe=* | --libex=* | --libe=*)
921     libexecdir=$ac_optarg ;;
922
923   -localedir | --localedir | --localedi | --localed | --locale)
924     ac_prev=localedir ;;
925   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926     localedir=$ac_optarg ;;
927
928   -localstatedir | --localstatedir | --localstatedi | --localstated \
929   | --localstate | --localstat | --localsta | --localst | --locals)
930     ac_prev=localstatedir ;;
931   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933     localstatedir=$ac_optarg ;;
934
935   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
936     ac_prev=mandir ;;
937   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
938     mandir=$ac_optarg ;;
939
940   -nfp | --nfp | --nf)
941     # Obsolete; use --without-fp.
942     with_fp=no ;;
943
944   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945   | --no-cr | --no-c | -n)
946     no_create=yes ;;
947
948   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
950     no_recursion=yes ;;
951
952   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954   | --oldin | --oldi | --old | --ol | --o)
955     ac_prev=oldincludedir ;;
956   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959     oldincludedir=$ac_optarg ;;
960
961   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
962     ac_prev=prefix ;;
963   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
964     prefix=$ac_optarg ;;
965
966   -program-prefix | --program-prefix | --program-prefi | --program-pref \
967   | --program-pre | --program-pr | --program-p)
968     ac_prev=program_prefix ;;
969   -program-prefix=* | --program-prefix=* | --program-prefi=* \
970   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971     program_prefix=$ac_optarg ;;
972
973   -program-suffix | --program-suffix | --program-suffi | --program-suff \
974   | --program-suf | --program-su | --program-s)
975     ac_prev=program_suffix ;;
976   -program-suffix=* | --program-suffix=* | --program-suffi=* \
977   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978     program_suffix=$ac_optarg ;;
979
980   -program-transform-name | --program-transform-name \
981   | --program-transform-nam | --program-transform-na \
982   | --program-transform-n | --program-transform- \
983   | --program-transform | --program-transfor \
984   | --program-transfo | --program-transf \
985   | --program-trans | --program-tran \
986   | --progr-tra | --program-tr | --program-t)
987     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
996
997   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
998     ac_prev=pdfdir ;;
999   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000     pdfdir=$ac_optarg ;;
1001
1002   -psdir | --psdir | --psdi | --psd | --ps)
1003     ac_prev=psdir ;;
1004   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1005     psdir=$ac_optarg ;;
1006
1007   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008   | -silent | --silent | --silen | --sile | --sil)
1009     silent=yes ;;
1010
1011   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012     ac_prev=sbindir ;;
1013   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014   | --sbi=* | --sb=*)
1015     sbindir=$ac_optarg ;;
1016
1017   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019   | --sharedst | --shareds | --shared | --share | --shar \
1020   | --sha | --sh)
1021     ac_prev=sharedstatedir ;;
1022   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025   | --sha=* | --sh=*)
1026     sharedstatedir=$ac_optarg ;;
1027
1028   -site | --site | --sit)
1029     ac_prev=site ;;
1030   -site=* | --site=* | --sit=*)
1031     site=$ac_optarg ;;
1032
1033   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034     ac_prev=srcdir ;;
1035   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036     srcdir=$ac_optarg ;;
1037
1038   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039   | --syscon | --sysco | --sysc | --sys | --sy)
1040     ac_prev=sysconfdir ;;
1041   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043     sysconfdir=$ac_optarg ;;
1044
1045   -target | --target | --targe | --targ | --tar | --ta | --t)
1046     ac_prev=target_alias ;;
1047   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048     target_alias=$ac_optarg ;;
1049
1050   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051     verbose=yes ;;
1052
1053   -version | --version | --versio | --versi | --vers | -V)
1054     ac_init_version=: ;;
1055
1056   -with-* | --with-*)
1057     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060       as_fn_error "invalid package name: $ac_useropt"
1061     ac_useropt_orig=$ac_useropt
1062     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063     case $ac_user_opts in
1064       *"
1065 "with_$ac_useropt"
1066 "*) ;;
1067       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068          ac_unrecognized_sep=', ';;
1069     esac
1070     eval with_$ac_useropt=\$ac_optarg ;;
1071
1072   -without-* | --without-*)
1073     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076       as_fn_error "invalid package name: $ac_useropt"
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "with_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval with_$ac_useropt=no ;;
1087
1088   --x)
1089     # Obsolete; use --with-x.
1090     with_x=yes ;;
1091
1092   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093   | --x-incl | --x-inc | --x-in | --x-i)
1094     ac_prev=x_includes ;;
1095   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097     x_includes=$ac_optarg ;;
1098
1099   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101     ac_prev=x_libraries ;;
1102   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104     x_libraries=$ac_optarg ;;
1105
1106   -*) as_fn_error "unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information."
1108     ;;
1109
1110   *=*)
1111     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112     # Reject names that are not valid shell variable names.
1113     case $ac_envvar in #(
1114       '' | [0-9]* | *[!_$as_cr_alnum]* )
1115       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1116     esac
1117     eval $ac_envvar=\$ac_optarg
1118     export $ac_envvar ;;
1119
1120   *)
1121     # FIXME: should be removed in autoconf 3.0.
1122     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126     ;;
1127
1128   esac
1129 done
1130
1131 if test -n "$ac_prev"; then
1132   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133   as_fn_error "missing argument to $ac_option"
1134 fi
1135
1136 if test -n "$ac_unrecognized_opts"; then
1137   case $enable_option_checking in
1138     no) ;;
1139     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1140     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1141   esac
1142 fi
1143
1144 # Check all directory arguments for consistency.
1145 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146                 datadir sysconfdir sharedstatedir localstatedir includedir \
1147                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148                 libdir localedir mandir
1149 do
1150   eval ac_val=\$$ac_var
1151   # Remove trailing slashes.
1152   case $ac_val in
1153     */ )
1154       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155       eval $ac_var=\$ac_val;;
1156   esac
1157   # Be sure to have absolute directory names.
1158   case $ac_val in
1159     [\\/$]* | ?:[\\/]* )  continue;;
1160     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1161   esac
1162   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1163 done
1164
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1168 build=$build_alias
1169 host=$host_alias
1170 target=$target_alias
1171
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x; then
1174   if test "x$build_alias" = x; then
1175     cross_compiling=maybe
1176     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1177     If a cross compiler is detected then cross compile mode will be used." >&2
1178   elif test "x$build_alias" != "x$host_alias"; then
1179     cross_compiling=yes
1180   fi
1181 fi
1182
1183 ac_tool_prefix=
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1185
1186 test "$silent" = yes && exec 6>/dev/null
1187
1188
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192   as_fn_error "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194   as_fn_error "pwd does not report name of working directory"
1195
1196
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199   ac_srcdir_defaulted=yes
1200   # Try the directory containing this script, then the parent directory.
1201   ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203          X"$as_myself" : 'X\(//\)[^/]' \| \
1204          X"$as_myself" : 'X\(//\)$' \| \
1205          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208             s//\1/
1209             q
1210           }
1211           /^X\(\/\/\)[^/].*/{
1212             s//\1/
1213             q
1214           }
1215           /^X\(\/\/\)$/{
1216             s//\1/
1217             q
1218           }
1219           /^X\(\/\).*/{
1220             s//\1/
1221             q
1222           }
1223           s/.*/./; q'`
1224   srcdir=$ac_confdir
1225   if test ! -r "$srcdir/$ac_unique_file"; then
1226     srcdir=..
1227   fi
1228 else
1229   ac_srcdir_defaulted=no
1230 fi
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1234 fi
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1238         pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241   srcdir=.
1242 fi
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251   eval ac_env_${ac_var}_value=\$${ac_var}
1252   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1255
1256 #
1257 # Report the --help message.
1258 #
1259 if test "$ac_init_help" = "long"; then
1260   # Omit some internal or obsolete options to make the list less imposing.
1261   # This message is too long to be a string in the A/UX 3.1 sh.
1262   cat <<_ACEOF
1263 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1264
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE.  See below for descriptions of some of the useful variables.
1269
1270 Defaults for the options are specified in brackets.
1271
1272 Configuration:
1273   -h, --help              display this help and exit
1274       --help=short        display options specific to this package
1275       --help=recursive    display the short help of all the included packages
1276   -V, --version           display version information and exit
1277   -q, --quiet, --silent   do not print \`checking...' messages
1278       --cache-file=FILE   cache test results in FILE [disabled]
1279   -C, --config-cache      alias for \`--cache-file=config.cache'
1280   -n, --no-create         do not create output files
1281       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1282
1283 Installation directories:
1284   --prefix=PREFIX         install architecture-independent files in PREFIX
1285                           [$ac_default_prefix]
1286   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1287                           [PREFIX]
1288
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1293
1294 For better control, use the options below.
1295
1296 Fine tuning of the installation directories:
1297   --bindir=DIR            user executables [EPREFIX/bin]
1298   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1299   --libexecdir=DIR        program executables [EPREFIX/libexec]
1300   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1301   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1302   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1303   --libdir=DIR            object code libraries [EPREFIX/lib]
1304   --includedir=DIR        C header files [PREFIX/include]
1305   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1306   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1307   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1308   --infodir=DIR           info documentation [DATAROOTDIR/info]
1309   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1310   --mandir=DIR            man documentation [DATAROOTDIR/man]
1311   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcr]
1312   --htmldir=DIR           html documentation [DOCDIR]
1313   --dvidir=DIR            dvi documentation [DOCDIR]
1314   --pdfdir=DIR            pdf documentation [DOCDIR]
1315   --psdir=DIR             ps documentation [DOCDIR]
1316 _ACEOF
1317
1318   cat <<\_ACEOF
1319
1320 Program names:
1321   --program-prefix=PREFIX            prepend PREFIX to installed program names
1322   --program-suffix=SUFFIX            append SUFFIX to installed program names
1323   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1324 _ACEOF
1325 fi
1326
1327 if test -n "$ac_init_help"; then
1328   case $ac_init_help in
1329      short | recursive ) echo "Configuration of lcr 1.7:";;
1330    esac
1331   cat <<\_ACEOF
1332
1333 Optional Features:
1334   --disable-option-checking  ignore unrecognized --enable/--with options
1335   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1336   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1337   --disable-dependency-tracking  speeds up one-time build
1338   --enable-dependency-tracking   do not reject slow dependency extractors
1339
1340 Optional Packages:
1341   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1342   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1343   --with-asterisk         compile with built-in Asterisk channel driver
1344                           [default=check]
1345
1346   --with-ssl              compile with ssl support (libcrypto) [default=check]
1347
1348   --with-gsm-bs           compile with OpenBSC support [default=check]
1349
1350   --with-gsm-ms           compile with Osmocom-bb support [default=check]
1351
1352   --with-ss5              compile with CCITT No. 5 support [default=no]
1353
1354
1355 Some influential environment variables:
1356   CC          C compiler command
1357   CFLAGS      C compiler flags
1358   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1359               nonstandard directory <lib dir>
1360   LIBS        libraries to pass to the linker, e.g. -l<library>
1361   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1362               you have headers in a nonstandard directory <include dir>
1363   CPP         C preprocessor
1364   CXX         C++ compiler command
1365   CXXFLAGS    C++ compiler flags
1366
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1369
1370 Report bugs to <andreas@eversberg.eu>.
1371 _ACEOF
1372 ac_status=$?
1373 fi
1374
1375 if test "$ac_init_help" = "recursive"; then
1376   # If there are subdirs, report their specific --help.
1377   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378     test -d "$ac_dir" ||
1379       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1380       continue
1381     ac_builddir=.
1382
1383 case "$ac_dir" in
1384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *)
1386   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1387   # A ".." for each directory in $ac_dir_suffix.
1388   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1389   case $ac_top_builddir_sub in
1390   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392   esac ;;
1393 esac
1394 ac_abs_top_builddir=$ac_pwd
1395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir=$ac_top_build_prefix
1398
1399 case $srcdir in
1400   .)  # We are building in place.
1401     ac_srcdir=.
1402     ac_top_srcdir=$ac_top_builddir_sub
1403     ac_abs_top_srcdir=$ac_pwd ;;
1404   [\\/]* | ?:[\\/]* )  # Absolute name.
1405     ac_srcdir=$srcdir$ac_dir_suffix;
1406     ac_top_srcdir=$srcdir
1407     ac_abs_top_srcdir=$srcdir ;;
1408   *) # Relative name.
1409     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410     ac_top_srcdir=$ac_top_build_prefix$srcdir
1411     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 esac
1413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414
1415     cd "$ac_dir" || { ac_status=$?; continue; }
1416     # Check for guested configure.
1417     if test -f "$ac_srcdir/configure.gnu"; then
1418       echo &&
1419       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420     elif test -f "$ac_srcdir/configure"; then
1421       echo &&
1422       $SHELL "$ac_srcdir/configure" --help=recursive
1423     else
1424       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425     fi || ac_status=$?
1426     cd "$ac_pwd" || { ac_status=$?; break; }
1427   done
1428 fi
1429
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1432   cat <<\_ACEOF
1433 lcr configure 1.7
1434 generated by GNU Autoconf 2.65
1435
1436 Copyright (C) 2009 Free Software Foundation, Inc.
1437 This configure script is free software; the Free Software Foundation
1438 gives unlimited permission to copy, distribute and modify it.
1439 _ACEOF
1440   exit
1441 fi
1442
1443 ## ------------------------ ##
1444 ## Autoconf initialization. ##
1445 ## ------------------------ ##
1446
1447 # ac_fn_c_try_compile LINENO
1448 # --------------------------
1449 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1450 ac_fn_c_try_compile ()
1451 {
1452   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453   rm -f conftest.$ac_objext
1454   if { { ac_try="$ac_compile"
1455 case "(($ac_try" in
1456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457   *) ac_try_echo=$ac_try;;
1458 esac
1459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460 $as_echo "$ac_try_echo"; } >&5
1461   (eval "$ac_compile") 2>conftest.err
1462   ac_status=$?
1463   if test -s conftest.err; then
1464     grep -v '^ *+' conftest.err >conftest.er1
1465     cat conftest.er1 >&5
1466     mv -f conftest.er1 conftest.err
1467   fi
1468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469   test $ac_status = 0; } && {
1470          test -z "$ac_c_werror_flag" ||
1471          test ! -s conftest.err
1472        } && test -s conftest.$ac_objext; then :
1473   ac_retval=0
1474 else
1475   $as_echo "$as_me: failed program was:" >&5
1476 sed 's/^/| /' conftest.$ac_ext >&5
1477
1478         ac_retval=1
1479 fi
1480   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1481   as_fn_set_status $ac_retval
1482
1483 } # ac_fn_c_try_compile
1484
1485 # ac_fn_c_try_cpp LINENO
1486 # ----------------------
1487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_cpp ()
1489 {
1490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491   if { { ac_try="$ac_cpp conftest.$ac_ext"
1492 case "(($ac_try" in
1493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494   *) ac_try_echo=$ac_try;;
1495 esac
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1499   ac_status=$?
1500   if test -s conftest.err; then
1501     grep -v '^ *+' conftest.err >conftest.er1
1502     cat conftest.er1 >&5
1503     mv -f conftest.er1 conftest.err
1504   fi
1505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506   test $ac_status = 0; } >/dev/null && {
1507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1508          test ! -s conftest.err
1509        }; then :
1510   ac_retval=0
1511 else
1512   $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1514
1515     ac_retval=1
1516 fi
1517   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1518   as_fn_set_status $ac_retval
1519
1520 } # ac_fn_c_try_cpp
1521
1522 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1523 # -------------------------------------------------------
1524 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1525 # the include files in INCLUDES and setting the cache variable VAR
1526 # accordingly.
1527 ac_fn_c_check_header_mongrel ()
1528 {
1529   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1532 $as_echo_n "checking for $2... " >&6; }
1533 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1534   $as_echo_n "(cached) " >&6
1535 fi
1536 eval ac_res=\$$3
1537                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1538 $as_echo "$ac_res" >&6; }
1539 else
1540   # Is the header compilable?
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1542 $as_echo_n "checking $2 usability... " >&6; }
1543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1544 /* end confdefs.h.  */
1545 $4
1546 #include <$2>
1547 _ACEOF
1548 if ac_fn_c_try_compile "$LINENO"; then :
1549   ac_header_compiler=yes
1550 else
1551   ac_header_compiler=no
1552 fi
1553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1555 $as_echo "$ac_header_compiler" >&6; }
1556
1557 # Is the header present?
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1559 $as_echo_n "checking $2 presence... " >&6; }
1560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1561 /* end confdefs.h.  */
1562 #include <$2>
1563 _ACEOF
1564 if ac_fn_c_try_cpp "$LINENO"; then :
1565   ac_header_preproc=yes
1566 else
1567   ac_header_preproc=no
1568 fi
1569 rm -f conftest.err conftest.$ac_ext
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1571 $as_echo "$ac_header_preproc" >&6; }
1572
1573 # So?  What about this header?
1574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1575   yes:no: )
1576     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1577 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1578     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1579 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1580     ;;
1581   no:yes:* )
1582     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1583 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1585 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1586     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1587 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1588     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1589 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1590     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1591 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1592 ( cat <<\_ASBOX
1593 ## ----------------------------------- ##
1594 ## Report this to andreas@eversberg.eu ##
1595 ## ----------------------------------- ##
1596 _ASBOX
1597      ) | sed "s/^/$as_me: WARNING:     /" >&2
1598     ;;
1599 esac
1600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1603   $as_echo_n "(cached) " >&6
1604 else
1605   eval "$3=\$ac_header_compiler"
1606 fi
1607 eval ac_res=\$$3
1608                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610 fi
1611   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612
1613 } # ac_fn_c_check_header_mongrel
1614
1615 # ac_fn_c_try_run LINENO
1616 # ----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1618 # that executables *can* be run.
1619 ac_fn_c_try_run ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   if { { ac_try="$ac_link"
1623 case "(($ac_try" in
1624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625   *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629   (eval "$ac_link") 2>&5
1630   ac_status=$?
1631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1633   { { case "(($ac_try" in
1634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635   *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639   (eval "$ac_try") 2>&5
1640   ac_status=$?
1641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642   test $ac_status = 0; }; }; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: program exited with status $ac_status" >&5
1646        $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649        ac_retval=$ac_status
1650 fi
1651   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653   as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_run
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667   $as_echo_n "(cached) " >&6
1668 else
1669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h.  */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675   eval "$3=yes"
1676 else
1677   eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685
1686 } # ac_fn_c_check_header_compile
1687
1688 # ac_fn_cxx_try_compile LINENO
1689 # ----------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_cxx_try_compile ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext
1695   if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_compile") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_cxx_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest.$ac_objext; then :
1714   ac_retval=0
1715 else
1716   $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719         ac_retval=1
1720 fi
1721   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_cxx_try_compile
1725
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_link ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   rm -f conftest.$ac_objext conftest$ac_exeext
1733   if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_link") 2>conftest.err
1741   ac_status=$?
1742   if test -s conftest.err; then
1743     grep -v '^ *+' conftest.err >conftest.er1
1744     cat conftest.er1 >&5
1745     mv -f conftest.er1 conftest.err
1746   fi
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } && {
1749          test -z "$ac_c_werror_flag" ||
1750          test ! -s conftest.err
1751        } && test -s conftest$ac_exeext && {
1752          test "$cross_compiling" = yes ||
1753          $as_test_x conftest$ac_exeext
1754        }; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760         ac_retval=1
1761 fi
1762   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764   # interfere with the next link command; also delete a directory that is
1765   # left behind by Apple's compiler.  We do this before executing the actions.
1766   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768   as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_link
1771
1772 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1773 # -------------------------------------------
1774 # Tests whether TYPE exists after having included INCLUDES, setting cache
1775 # variable VAR accordingly.
1776 ac_fn_c_check_type ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782   $as_echo_n "(cached) " >&6
1783 else
1784   eval "$3=no"
1785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h.  */
1787 $4
1788 int
1789 main ()
1790 {
1791 if (sizeof ($2))
1792          return 0;
1793   ;
1794   return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h.  */
1800 $4
1801 int
1802 main ()
1803 {
1804 if (sizeof (($2)))
1805             return 0;
1806   ;
1807   return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811
1812 else
1813   eval "$3=yes"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823
1824 } # ac_fn_c_check_type
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835   $as_echo_n "(cached) " >&6
1836 else
1837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h.  */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844     which can conflict with char $2 (); below.
1845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846     <limits.h> exists even on freestanding compilers.  */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857    Use char because int might match the return type of a GCC
1858    builtin and then its argument prototype would still apply.  */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864     to always fail with ENOSYS.  Some functions are actually named
1865     something starting with __ and the normal name is an alias.  */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874   ;
1875   return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879   eval "$3=yes"
1880 else
1881   eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884     conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890
1891 } # ac_fn_c_check_func
1892 cat >config.log <<_ACEOF
1893 This file contains any messages produced by compilers while
1894 running configure, to aid debugging if configure makes a mistake.
1895
1896 It was created by lcr $as_me 1.7, which was
1897 generated by GNU Autoconf 2.65.  Invocation command line was
1898
1899   $ $0 $@
1900
1901 _ACEOF
1902 exec 5>>config.log
1903 {
1904 cat <<_ASUNAME
1905 ## --------- ##
1906 ## Platform. ##
1907 ## --------- ##
1908
1909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914
1915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1917
1918 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1919 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1922 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1923 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1924 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1925
1926 _ASUNAME
1927
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931   IFS=$as_save_IFS
1932   test -z "$as_dir" && as_dir=.
1933     $as_echo "PATH: $as_dir"
1934   done
1935 IFS=$as_save_IFS
1936
1937 } >&5
1938
1939 cat >&5 <<_ACEOF
1940
1941
1942 ## ----------- ##
1943 ## Core tests. ##
1944 ## ----------- ##
1945
1946 _ACEOF
1947
1948
1949 # Keep a trace of the command line.
1950 # Strip out --no-create and --no-recursion so they do not pile up.
1951 # Strip out --silent because we don't want to record it for future runs.
1952 # Also quote any args containing shell meta-characters.
1953 # Make two passes to allow for proper duplicate-argument suppression.
1954 ac_configure_args=
1955 ac_configure_args0=
1956 ac_configure_args1=
1957 ac_must_keep_next=false
1958 for ac_pass in 1 2
1959 do
1960   for ac_arg
1961   do
1962     case $ac_arg in
1963     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965     | -silent | --silent | --silen | --sile | --sil)
1966       continue ;;
1967     *\'*)
1968       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969     esac
1970     case $ac_pass in
1971     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972     2)
1973       as_fn_append ac_configure_args1 " '$ac_arg'"
1974       if test $ac_must_keep_next = true; then
1975         ac_must_keep_next=false # Got value, back to normal.
1976       else
1977         case $ac_arg in
1978           *=* | --config-cache | -C | -disable-* | --disable-* \
1979           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981           | -with-* | --with-* | -without-* | --without-* | --x)
1982             case "$ac_configure_args0 " in
1983               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984             esac
1985             ;;
1986           -* ) ac_must_keep_next=true ;;
1987         esac
1988       fi
1989       as_fn_append ac_configure_args " '$ac_arg'"
1990       ;;
1991     esac
1992   done
1993 done
1994 { ac_configure_args0=; unset ac_configure_args0;}
1995 { ac_configure_args1=; unset ac_configure_args1;}
1996
1997 # When interrupted or exit'd, cleanup temporary files, and complete
1998 # config.log.  We remove comments because anyway the quotes in there
1999 # would cause problems or look ugly.
2000 # WARNING: Use '\'' to represent an apostrophe within the trap.
2001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002 trap 'exit_status=$?
2003   # Save into config.log some information that might help in debugging.
2004   {
2005     echo
2006
2007     cat <<\_ASBOX
2008 ## ---------------- ##
2009 ## Cache variables. ##
2010 ## ---------------- ##
2011 _ASBOX
2012     echo
2013     # The following way of writing the cache mishandles newlines in values,
2014 (
2015   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2016     eval ac_val=\$$ac_var
2017     case $ac_val in #(
2018     *${as_nl}*)
2019       case $ac_var in #(
2020       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2022       esac
2023       case $ac_var in #(
2024       _ | IFS | as_nl) ;; #(
2025       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2026       *) { eval $ac_var=; unset $ac_var;} ;;
2027       esac ;;
2028     esac
2029   done
2030   (set) 2>&1 |
2031     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2032     *${as_nl}ac_space=\ *)
2033       sed -n \
2034         "s/'\''/'\''\\\\'\'''\''/g;
2035           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2036       ;; #(
2037     *)
2038       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039       ;;
2040     esac |
2041     sort
2042 )
2043     echo
2044
2045     cat <<\_ASBOX
2046 ## ----------------- ##
2047 ## Output variables. ##
2048 ## ----------------- ##
2049 _ASBOX
2050     echo
2051     for ac_var in $ac_subst_vars
2052     do
2053       eval ac_val=\$$ac_var
2054       case $ac_val in
2055       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056       esac
2057       $as_echo "$ac_var='\''$ac_val'\''"
2058     done | sort
2059     echo
2060
2061     if test -n "$ac_subst_files"; then
2062       cat <<\_ASBOX
2063 ## ------------------- ##
2064 ## File substitutions. ##
2065 ## ------------------- ##
2066 _ASBOX
2067       echo
2068       for ac_var in $ac_subst_files
2069       do
2070         eval ac_val=\$$ac_var
2071         case $ac_val in
2072         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2073         esac
2074         $as_echo "$ac_var='\''$ac_val'\''"
2075       done | sort
2076       echo
2077     fi
2078
2079     if test -s confdefs.h; then
2080       cat <<\_ASBOX
2081 ## ----------- ##
2082 ## confdefs.h. ##
2083 ## ----------- ##
2084 _ASBOX
2085       echo
2086       cat confdefs.h
2087       echo
2088     fi
2089     test "$ac_signal" != 0 &&
2090       $as_echo "$as_me: caught signal $ac_signal"
2091     $as_echo "$as_me: exit $exit_status"
2092   } >&5
2093   rm -f core *.core core.conftest.* &&
2094     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2095     exit $exit_status
2096 ' 0
2097 for ac_signal in 1 2 13 15; do
2098   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2099 done
2100 ac_signal=0
2101
2102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2103 rm -f -r conftest* confdefs.h
2104
2105 $as_echo "/* confdefs.h */" > confdefs.h
2106
2107 # Predefined preprocessor variables.
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_NAME "$PACKAGE_NAME"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_STRING "$PACKAGE_STRING"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_URL "$PACKAGE_URL"
2131 _ACEOF
2132
2133
2134 # Let the site file select an alternate cache file if it wants to.
2135 # Prefer an explicitly selected file to automatically selected ones.
2136 ac_site_file1=NONE
2137 ac_site_file2=NONE
2138 if test -n "$CONFIG_SITE"; then
2139   ac_site_file1=$CONFIG_SITE
2140 elif test "x$prefix" != xNONE; then
2141   ac_site_file1=$prefix/share/config.site
2142   ac_site_file2=$prefix/etc/config.site
2143 else
2144   ac_site_file1=$ac_default_prefix/share/config.site
2145   ac_site_file2=$ac_default_prefix/etc/config.site
2146 fi
2147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2148 do
2149   test "x$ac_site_file" = xNONE && continue
2150   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2153     sed 's/^/| /' "$ac_site_file" >&5
2154     . "$ac_site_file"
2155   fi
2156 done
2157
2158 if test -r "$cache_file"; then
2159   # Some versions of bash will fail to source /dev/null (special files
2160   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2161   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2162     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2163 $as_echo "$as_me: loading cache $cache_file" >&6;}
2164     case $cache_file in
2165       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2166       *)                      . "./$cache_file";;
2167     esac
2168   fi
2169 else
2170   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2171 $as_echo "$as_me: creating cache $cache_file" >&6;}
2172   >$cache_file
2173 fi
2174
2175 # Check that the precious variables saved in the cache have kept the same
2176 # value.
2177 ac_cache_corrupted=false
2178 for ac_var in $ac_precious_vars; do
2179   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2180   eval ac_new_set=\$ac_env_${ac_var}_set
2181   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2182   eval ac_new_val=\$ac_env_${ac_var}_value
2183   case $ac_old_set,$ac_new_set in
2184     set,)
2185       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2187       ac_cache_corrupted=: ;;
2188     ,set)
2189       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2190 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2191       ac_cache_corrupted=: ;;
2192     ,);;
2193     *)
2194       if test "x$ac_old_val" != "x$ac_new_val"; then
2195         # differences in whitespace do not lead to failure.
2196         ac_old_val_w=`echo x $ac_old_val`
2197         ac_new_val_w=`echo x $ac_new_val`
2198         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2199           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2200 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2201           ac_cache_corrupted=:
2202         else
2203           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2204 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2205           eval $ac_var=\$ac_old_val
2206         fi
2207         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2208 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2209         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2210 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2211       fi;;
2212   esac
2213   # Pass precious variables to config.status.
2214   if test "$ac_new_set" = set; then
2215     case $ac_new_val in
2216     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2217     *) ac_arg=$ac_var=$ac_new_val ;;
2218     esac
2219     case " $ac_configure_args " in
2220       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2221       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2222     esac
2223   fi
2224 done
2225 if $ac_cache_corrupted; then
2226   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2229 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2230   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2231 fi
2232 ## -------------------- ##
2233 ## Main body of script. ##
2234 ## -------------------- ##
2235
2236 ac_ext=c
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241
2242
2243
2244
2245 ac_config_headers="$ac_config_headers config.h"
2246
2247
2248 # fix warnings from autoconf + automake
2249 ac_ext=c
2250 ac_cpp='$CPP $CPPFLAGS'
2251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254 if test -n "$ac_tool_prefix"; then
2255   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2258 $as_echo_n "checking for $ac_word... " >&6; }
2259 if test "${ac_cv_prog_CC+set}" = set; then :
2260   $as_echo_n "(cached) " >&6
2261 else
2262   if test -n "$CC"; then
2263   ac_cv_prog_CC="$CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270     for ac_exec_ext in '' $ac_executable_extensions; do
2271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2272     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2274     break 2
2275   fi
2276 done
2277   done
2278 IFS=$as_save_IFS
2279
2280 fi
2281 fi
2282 CC=$ac_cv_prog_CC
2283 if test -n "$CC"; then
2284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2285 $as_echo "$CC" >&6; }
2286 else
2287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2288 $as_echo "no" >&6; }
2289 fi
2290
2291
2292 fi
2293 if test -z "$ac_cv_prog_CC"; then
2294   ac_ct_CC=$CC
2295   # Extract the first word of "gcc", so it can be a program name with args.
2296 set dummy gcc; ac_word=$2
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2298 $as_echo_n "checking for $ac_word... " >&6; }
2299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2300   $as_echo_n "(cached) " >&6
2301 else
2302   if test -n "$ac_ct_CC"; then
2303   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304 else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310     for ac_exec_ext in '' $ac_executable_extensions; do
2311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312     ac_cv_prog_ac_ct_CC="gcc"
2313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317   done
2318 IFS=$as_save_IFS
2319
2320 fi
2321 fi
2322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323 if test -n "$ac_ct_CC"; then
2324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2325 $as_echo "$ac_ct_CC" >&6; }
2326 else
2327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2328 $as_echo "no" >&6; }
2329 fi
2330
2331   if test "x$ac_ct_CC" = x; then
2332     CC=""
2333   else
2334     case $cross_compiling:$ac_tool_warned in
2335 yes:)
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2338 ac_tool_warned=yes ;;
2339 esac
2340     CC=$ac_ct_CC
2341   fi
2342 else
2343   CC="$ac_cv_prog_CC"
2344 fi
2345
2346 if test -z "$CC"; then
2347           if test -n "$ac_tool_prefix"; then
2348     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}cc; ac_word=$2
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if test "${ac_cv_prog_CC+set}" = set; then :
2353   $as_echo_n "(cached) " >&6
2354 else
2355   if test -n "$CC"; then
2356   ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363     for ac_exec_ext in '' $ac_executable_extensions; do
2364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365     ac_cv_prog_CC="${ac_tool_prefix}cc"
2366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370   done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 CC=$ac_cv_prog_CC
2376 if test -n "$CC"; then
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2378 $as_echo "$CC" >&6; }
2379 else
2380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381 $as_echo "no" >&6; }
2382 fi
2383
2384
2385   fi
2386 fi
2387 if test -z "$CC"; then
2388   # Extract the first word of "cc", so it can be a program name with args.
2389 set dummy cc; ac_word=$2
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391 $as_echo_n "checking for $ac_word... " >&6; }
2392 if test "${ac_cv_prog_CC+set}" = set; then :
2393   $as_echo_n "(cached) " >&6
2394 else
2395   if test -n "$CC"; then
2396   ac_cv_prog_CC="$CC" # Let the user override the test.
2397 else
2398   ac_prog_rejected=no
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402   IFS=$as_save_IFS
2403   test -z "$as_dir" && as_dir=.
2404     for ac_exec_ext in '' $ac_executable_extensions; do
2405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2407        ac_prog_rejected=yes
2408        continue
2409      fi
2410     ac_cv_prog_CC="cc"
2411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415   done
2416 IFS=$as_save_IFS
2417
2418 if test $ac_prog_rejected = yes; then
2419   # We found a bogon in the path, so make sure we never use it.
2420   set dummy $ac_cv_prog_CC
2421   shift
2422   if test $# != 0; then
2423     # We chose a different compiler from the bogus one.
2424     # However, it has the same basename, so the bogon will be chosen
2425     # first if we set CC to just the basename; use the full file name.
2426     shift
2427     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2428   fi
2429 fi
2430 fi
2431 fi
2432 CC=$ac_cv_prog_CC
2433 if test -n "$CC"; then
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2436 else
2437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2439 fi
2440
2441
2442 fi
2443 if test -z "$CC"; then
2444   if test -n "$ac_tool_prefix"; then
2445   for ac_prog in cl.exe
2446   do
2447     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if test "${ac_cv_prog_CC+set}" = set; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   if test -n "$CC"; then
2455   ac_cv_prog_CC="$CC" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460   IFS=$as_save_IFS
2461   test -z "$as_dir" && as_dir=.
2462     for ac_exec_ext in '' $ac_executable_extensions; do
2463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466     break 2
2467   fi
2468 done
2469   done
2470 IFS=$as_save_IFS
2471
2472 fi
2473 fi
2474 CC=$ac_cv_prog_CC
2475 if test -n "$CC"; then
2476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2477 $as_echo "$CC" >&6; }
2478 else
2479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480 $as_echo "no" >&6; }
2481 fi
2482
2483
2484     test -n "$CC" && break
2485   done
2486 fi
2487 if test -z "$CC"; then
2488   ac_ct_CC=$CC
2489   for ac_prog in cl.exe
2490 do
2491   # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy $ac_prog; ac_word=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2496   $as_echo_n "(cached) " >&6
2497 else
2498   if test -n "$ac_ct_CC"; then
2499   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506     for ac_exec_ext in '' $ac_executable_extensions; do
2507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508     ac_cv_prog_ac_ct_CC="$ac_prog"
2509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513   done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521 $as_echo "$ac_ct_CC" >&6; }
2522 else
2523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2525 fi
2526
2527
2528   test -n "$ac_ct_CC" && break
2529 done
2530
2531   if test "x$ac_ct_CC" = x; then
2532     CC=""
2533   else
2534     case $cross_compiling:$ac_tool_warned in
2535 yes:)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2538 ac_tool_warned=yes ;;
2539 esac
2540     CC=$ac_ct_CC
2541   fi
2542 fi
2543
2544 fi
2545
2546
2547 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 as_fn_error "no acceptable C compiler found in \$PATH
2550 See \`config.log' for more details." "$LINENO" 5; }
2551
2552 # Provide some information about the compiler.
2553 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2554 set X $ac_compile
2555 ac_compiler=$2
2556 for ac_option in --version -v -V -qversion; do
2557   { { ac_try="$ac_compiler $ac_option >&5"
2558 case "(($ac_try" in
2559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560   *) ac_try_echo=$ac_try;;
2561 esac
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2565   ac_status=$?
2566   if test -s conftest.err; then
2567     sed '10a\
2568 ... rest of stderr output deleted ...
2569          10q' conftest.err >conftest.er1
2570     cat conftest.er1 >&5
2571   fi
2572   rm -f conftest.er1 conftest.err
2573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574   test $ac_status = 0; }
2575 done
2576
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h.  */
2579
2580 int
2581 main ()
2582 {
2583
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 ac_clean_files_save=$ac_clean_files
2589 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2590 # Try to create an executable without -o first, disregard a.out.
2591 # It will help us diagnose broken compilers, and finding out an intuition
2592 # of exeext.
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2594 $as_echo_n "checking whether the C compiler works... " >&6; }
2595 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2596
2597 # The possible output files:
2598 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2599
2600 ac_rmfiles=
2601 for ac_file in $ac_files
2602 do
2603   case $ac_file in
2604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2606   esac
2607 done
2608 rm -f $ac_rmfiles
2609
2610 if { { ac_try="$ac_link_default"
2611 case "(($ac_try" in
2612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613   *) ac_try_echo=$ac_try;;
2614 esac
2615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617   (eval "$ac_link_default") 2>&5
2618   ac_status=$?
2619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620   test $ac_status = 0; }; then :
2621   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2622 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2623 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2624 # so that the user can short-circuit this test for compilers unknown to
2625 # Autoconf.
2626 for ac_file in $ac_files ''
2627 do
2628   test -f "$ac_file" || continue
2629   case $ac_file in
2630     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2631         ;;
2632     [ab].out )
2633         # We found the default executable, but exeext='' is most
2634         # certainly right.
2635         break;;
2636     *.* )
2637         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2638         then :; else
2639            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640         fi
2641         # We set ac_cv_exeext here because the later test for it is not
2642         # safe: cross compilers may not add the suffix if given an `-o'
2643         # argument, so we may need to know it at that point already.
2644         # Even if this section looks crufty: it has the advantage of
2645         # actually working.
2646         break;;
2647     * )
2648         break;;
2649   esac
2650 done
2651 test "$ac_cv_exeext" = no && ac_cv_exeext=
2652
2653 else
2654   ac_file=''
2655 fi
2656 if test -z "$ac_file"; then :
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 $as_echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 { as_fn_set_status 77
2665 as_fn_error "C compiler cannot create executables
2666 See \`config.log' for more details." "$LINENO" 5; }; }
2667 else
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2672 $as_echo_n "checking for C compiler default output file name... " >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2674 $as_echo "$ac_file" >&6; }
2675 ac_exeext=$ac_cv_exeext
2676
2677 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2678 ac_clean_files=$ac_clean_files_save
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2680 $as_echo_n "checking for suffix of executables... " >&6; }
2681 if { { ac_try="$ac_link"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688   (eval "$ac_link") 2>&5
2689   ac_status=$?
2690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691   test $ac_status = 0; }; then :
2692   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2693 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2694 # work properly (i.e., refer to `conftest.exe'), while it won't with
2695 # `rm'.
2696 for ac_file in conftest.exe conftest conftest.*; do
2697   test -f "$ac_file" || continue
2698   case $ac_file in
2699     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2700     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701           break;;
2702     * ) break;;
2703   esac
2704 done
2705 else
2706   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error "cannot compute suffix of executables: cannot compile and link
2709 See \`config.log' for more details." "$LINENO" 5; }
2710 fi
2711 rm -f conftest conftest$ac_cv_exeext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2713 $as_echo "$ac_cv_exeext" >&6; }
2714
2715 rm -f conftest.$ac_ext
2716 EXEEXT=$ac_cv_exeext
2717 ac_exeext=$EXEEXT
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h.  */
2720 #include <stdio.h>
2721 int
2722 main ()
2723 {
2724 FILE *f = fopen ("conftest.out", "w");
2725  return ferror (f) || fclose (f) != 0;
2726
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 ac_clean_files="$ac_clean_files conftest.out"
2732 # Check that the compiler produces executables we can run.  If not, either
2733 # the compiler is broken, or we cross compile.
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2735 $as_echo_n "checking whether we are cross compiling... " >&6; }
2736 if test "$cross_compiling" != yes; then
2737   { { ac_try="$ac_link"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 $as_echo "$ac_try_echo"; } >&5
2744   (eval "$ac_link") 2>&5
2745   ac_status=$?
2746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747   test $ac_status = 0; }
2748   if { ac_try='./conftest$ac_cv_exeext'
2749   { { case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755   (eval "$ac_try") 2>&5
2756   ac_status=$?
2757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758   test $ac_status = 0; }; }; then
2759     cross_compiling=no
2760   else
2761     if test "$cross_compiling" = maybe; then
2762         cross_compiling=yes
2763     else
2764         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error "cannot run C compiled programs.
2767 If you meant to cross compile, use \`--host'.
2768 See \`config.log' for more details." "$LINENO" 5; }
2769     fi
2770   fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2773 $as_echo "$cross_compiling" >&6; }
2774
2775 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2776 ac_clean_files=$ac_clean_files_save
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2778 $as_echo_n "checking for suffix of object files... " >&6; }
2779 if test "${ac_cv_objext+set}" = set; then :
2780   $as_echo_n "(cached) " >&6
2781 else
2782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h.  */
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.o conftest.obj
2794 if { { ac_try="$ac_compile"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801   (eval "$ac_compile") 2>&5
2802   ac_status=$?
2803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804   test $ac_status = 0; }; then :
2805   for ac_file in conftest.o conftest.obj conftest.*; do
2806   test -f "$ac_file" || continue;
2807   case $ac_file in
2808     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2809     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2810        break;;
2811   esac
2812 done
2813 else
2814   $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error "cannot compute suffix of object files: cannot compile
2820 See \`config.log' for more details." "$LINENO" 5; }
2821 fi
2822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2825 $as_echo "$ac_cv_objext" >&6; }
2826 OBJEXT=$ac_cv_objext
2827 ac_objext=$OBJEXT
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2830 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2831   $as_echo_n "(cached) " >&6
2832 else
2833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h.  */
2835
2836 int
2837 main ()
2838 {
2839 #ifndef __GNUC__
2840        choke me
2841 #endif
2842
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 if ac_fn_c_try_compile "$LINENO"; then :
2848   ac_compiler_gnu=yes
2849 else
2850   ac_compiler_gnu=no
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2854
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2858 if test $ac_compiler_gnu = yes; then
2859   GCC=yes
2860 else
2861   GCC=
2862 fi
2863 ac_test_CFLAGS=${CFLAGS+set}
2864 ac_save_CFLAGS=$CFLAGS
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2867 if test "${ac_cv_prog_cc_g+set}" = set; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   ac_save_c_werror_flag=$ac_c_werror_flag
2871    ac_c_werror_flag=yes
2872    ac_cv_prog_cc_g=no
2873    CFLAGS="-g"
2874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h.  */
2876
2877 int
2878 main ()
2879 {
2880
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 if ac_fn_c_try_compile "$LINENO"; then :
2886   ac_cv_prog_cc_g=yes
2887 else
2888   CFLAGS=""
2889       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h.  */
2891
2892 int
2893 main ()
2894 {
2895
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 if ac_fn_c_try_compile "$LINENO"; then :
2901
2902 else
2903   ac_c_werror_flag=$ac_save_c_werror_flag
2904          CFLAGS="-g"
2905          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h.  */
2907
2908 int
2909 main ()
2910 {
2911
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 if ac_fn_c_try_compile "$LINENO"; then :
2917   ac_cv_prog_cc_g=yes
2918 fi
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 fi
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 fi
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924    ac_c_werror_flag=$ac_save_c_werror_flag
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2927 $as_echo "$ac_cv_prog_cc_g" >&6; }
2928 if test "$ac_test_CFLAGS" = set; then
2929   CFLAGS=$ac_save_CFLAGS
2930 elif test $ac_cv_prog_cc_g = yes; then
2931   if test "$GCC" = yes; then
2932     CFLAGS="-g -O2"
2933   else
2934     CFLAGS="-g"
2935   fi
2936 else
2937   if test "$GCC" = yes; then
2938     CFLAGS="-O2"
2939   else
2940     CFLAGS=
2941   fi
2942 fi
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2945 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2946   $as_echo_n "(cached) " >&6
2947 else
2948   ac_cv_prog_cc_c89=no
2949 ac_save_CC=$CC
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h.  */
2952 #include <stdarg.h>
2953 #include <stdio.h>
2954 #include <sys/types.h>
2955 #include <sys/stat.h>
2956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2957 struct buf { int x; };
2958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2959 static char *e (p, i)
2960      char **p;
2961      int i;
2962 {
2963   return p[i];
2964 }
2965 static char *f (char * (*g) (char **, int), char **p, ...)
2966 {
2967   char *s;
2968   va_list v;
2969   va_start (v,p);
2970   s = g (p, va_arg (v,int));
2971   va_end (v);
2972   return s;
2973 }
2974
2975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2976    function prototypes and stuff, but not '\xHH' hex character constants.
2977    These don't provoke an error unfortunately, instead are silently treated
2978    as 'x'.  The following induces an error, until -std is added to get
2979    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2980    array size at least.  It's necessary to write '\x00'==0 to get something
2981    that's true only with -std.  */
2982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983
2984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2985    inside strings and character constants.  */
2986 #define FOO(x) 'x'
2987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988
2989 int test (int i, double x);
2990 struct s1 {int (*f) (int a);};
2991 struct s2 {int (*f) (double a);};
2992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2993 int argc;
2994 char **argv;
2995 int
2996 main ()
2997 {
2998 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2999   ;
3000   return 0;
3001 }
3002 _ACEOF
3003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3004         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 do
3006   CC="$ac_save_CC $ac_arg"
3007   if ac_fn_c_try_compile "$LINENO"; then :
3008   ac_cv_prog_cc_c89=$ac_arg
3009 fi
3010 rm -f core conftest.err conftest.$ac_objext
3011   test "x$ac_cv_prog_cc_c89" != "xno" && break
3012 done
3013 rm -f conftest.$ac_ext
3014 CC=$ac_save_CC
3015
3016 fi
3017 # AC_CACHE_VAL
3018 case "x$ac_cv_prog_cc_c89" in
3019   x)
3020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3021 $as_echo "none needed" >&6; } ;;
3022   xno)
3023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3024 $as_echo "unsupported" >&6; } ;;
3025   *)
3026     CC="$CC $ac_cv_prog_cc_c89"
3027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3029 esac
3030 if test "x$ac_cv_prog_cc_c89" != xno; then :
3031
3032 fi
3033
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040
3041 ac_ext=c
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3047 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3048 # On Suns, sometimes $CPP names a directory.
3049 if test -n "$CPP" && test -d "$CPP"; then
3050   CPP=
3051 fi
3052 if test -z "$CPP"; then
3053   if test "${ac_cv_prog_CPP+set}" = set; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056       # Double quotes because CPP needs to be expanded
3057     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3058     do
3059       ac_preproc_ok=false
3060 for ac_c_preproc_warn_flag in '' yes
3061 do
3062   # Use a header file that comes with gcc, so configuring glibc
3063   # with a fresh cross-compiler works.
3064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065   # <limits.h> exists even on freestanding compilers.
3066   # On the NeXT, cc -E runs the code through the compiler's parser,
3067   # not just through cpp. "Syntax error" is here to catch this case.
3068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h.  */
3070 #ifdef __STDC__
3071 # include <limits.h>
3072 #else
3073 # include <assert.h>
3074 #endif
3075                      Syntax error
3076 _ACEOF
3077 if ac_fn_c_try_cpp "$LINENO"; then :
3078
3079 else
3080   # Broken: fails on valid input.
3081 continue
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085   # OK, works on sane cases.  Now check whether nonexistent headers
3086   # can be detected and how.
3087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h.  */
3089 #include <ac_nonexistent.h>
3090 _ACEOF
3091 if ac_fn_c_try_cpp "$LINENO"; then :
3092   # Broken: success on invalid input.
3093 continue
3094 else
3095   # Passes both tests.
3096 ac_preproc_ok=:
3097 break
3098 fi
3099 rm -f conftest.err conftest.$ac_ext
3100
3101 done
3102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3103 rm -f conftest.err conftest.$ac_ext
3104 if $ac_preproc_ok; then :
3105   break
3106 fi
3107
3108     done
3109     ac_cv_prog_CPP=$CPP
3110
3111 fi
3112   CPP=$ac_cv_prog_CPP
3113 else
3114   ac_cv_prog_CPP=$CPP
3115 fi
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3117 $as_echo "$CPP" >&6; }
3118 ac_preproc_ok=false
3119 for ac_c_preproc_warn_flag in '' yes
3120 do
3121   # Use a header file that comes with gcc, so configuring glibc
3122   # with a fresh cross-compiler works.
3123   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3124   # <limits.h> exists even on freestanding compilers.
3125   # On the NeXT, cc -E runs the code through the compiler's parser,
3126   # not just through cpp. "Syntax error" is here to catch this case.
3127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h.  */
3129 #ifdef __STDC__
3130 # include <limits.h>
3131 #else
3132 # include <assert.h>
3133 #endif
3134                      Syntax error
3135 _ACEOF
3136 if ac_fn_c_try_cpp "$LINENO"; then :
3137
3138 else
3139   # Broken: fails on valid input.
3140 continue
3141 fi
3142 rm -f conftest.err conftest.$ac_ext
3143
3144   # OK, works on sane cases.  Now check whether nonexistent headers
3145   # can be detected and how.
3146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h.  */
3148 #include <ac_nonexistent.h>
3149 _ACEOF
3150 if ac_fn_c_try_cpp "$LINENO"; then :
3151   # Broken: success on invalid input.
3152 continue
3153 else
3154   # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then :
3164
3165 else
3166   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." "$LINENO" 5; }
3170 fi
3171
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3180 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3181 if test "${ac_cv_path_GREP+set}" = set; then :
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -z "$GREP"; then
3185   ac_path_GREP_found=false
3186   # Loop through the user's path and test for each of PROGNAME-LIST
3187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192     for ac_prog in grep ggrep; do
3193     for ac_exec_ext in '' $ac_executable_extensions; do
3194       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3195       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3196 # Check for GNU ac_path_GREP and select it if it is found.
3197   # Check for GNU $ac_path_GREP
3198 case `"$ac_path_GREP" --version 2>&1` in
3199 *GNU*)
3200   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3201 *)
3202   ac_count=0
3203   $as_echo_n 0123456789 >"conftest.in"
3204   while :
3205   do
3206     cat "conftest.in" "conftest.in" >"conftest.tmp"
3207     mv "conftest.tmp" "conftest.in"
3208     cp "conftest.in" "conftest.nl"
3209     $as_echo 'GREP' >> "conftest.nl"
3210     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3211     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3212     as_fn_arith $ac_count + 1 && ac_count=$as_val
3213     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3214       # Best one so far, save it but keep looking for a better one
3215       ac_cv_path_GREP="$ac_path_GREP"
3216       ac_path_GREP_max=$ac_count
3217     fi
3218     # 10*(2^10) chars as input seems more than enough
3219     test $ac_count -gt 10 && break
3220   done
3221   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3222 esac
3223
3224       $ac_path_GREP_found && break 3
3225     done
3226   done
3227   done
3228 IFS=$as_save_IFS
3229   if test -z "$ac_cv_path_GREP"; then
3230     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3231   fi
3232 else
3233   ac_cv_path_GREP=$GREP
3234 fi
3235
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3238 $as_echo "$ac_cv_path_GREP" >&6; }
3239  GREP="$ac_cv_path_GREP"
3240
3241
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3243 $as_echo_n "checking for egrep... " >&6; }
3244 if test "${ac_cv_path_EGREP+set}" = set; then :
3245   $as_echo_n "(cached) " >&6
3246 else
3247   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3248    then ac_cv_path_EGREP="$GREP -E"
3249    else
3250      if test -z "$EGREP"; then
3251   ac_path_EGREP_found=false
3252   # Loop through the user's path and test for each of PROGNAME-LIST
3253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258     for ac_prog in egrep; do
3259     for ac_exec_ext in '' $ac_executable_extensions; do
3260       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3261       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3262 # Check for GNU ac_path_EGREP and select it if it is found.
3263   # Check for GNU $ac_path_EGREP
3264 case `"$ac_path_EGREP" --version 2>&1` in
3265 *GNU*)
3266   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3267 *)
3268   ac_count=0
3269   $as_echo_n 0123456789 >"conftest.in"
3270   while :
3271   do
3272     cat "conftest.in" "conftest.in" >"conftest.tmp"
3273     mv "conftest.tmp" "conftest.in"
3274     cp "conftest.in" "conftest.nl"
3275     $as_echo 'EGREP' >> "conftest.nl"
3276     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3277     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3278     as_fn_arith $ac_count + 1 && ac_count=$as_val
3279     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3280       # Best one so far, save it but keep looking for a better one
3281       ac_cv_path_EGREP="$ac_path_EGREP"
3282       ac_path_EGREP_max=$ac_count
3283     fi
3284     # 10*(2^10) chars as input seems more than enough
3285     test $ac_count -gt 10 && break
3286   done
3287   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3288 esac
3289
3290       $ac_path_EGREP_found && break 3
3291     done
3292   done
3293   done
3294 IFS=$as_save_IFS
3295   if test -z "$ac_cv_path_EGREP"; then
3296     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3297   fi
3298 else
3299   ac_cv_path_EGREP=$EGREP
3300 fi
3301
3302    fi
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3305 $as_echo "$ac_cv_path_EGREP" >&6; }
3306  EGREP="$ac_cv_path_EGREP"
3307
3308
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3310 $as_echo_n "checking for ANSI C header files... " >&6; }
3311 if test "${ac_cv_header_stdc+set}" = set; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h.  */
3316 #include <stdlib.h>
3317 #include <stdarg.h>
3318 #include <string.h>
3319 #include <float.h>
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330   ac_cv_header_stdc=yes
3331 else
3332   ac_cv_header_stdc=no
3333 fi
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335
3336 if test $ac_cv_header_stdc = yes; then
3337   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h.  */
3340 #include <string.h>
3341
3342 _ACEOF
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344   $EGREP "memchr" >/dev/null 2>&1; then :
3345
3346 else
3347   ac_cv_header_stdc=no
3348 fi
3349 rm -f conftest*
3350
3351 fi
3352
3353 if test $ac_cv_header_stdc = yes; then
3354   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h.  */
3357 #include <stdlib.h>
3358
3359 _ACEOF
3360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3361   $EGREP "free" >/dev/null 2>&1; then :
3362
3363 else
3364   ac_cv_header_stdc=no
3365 fi
3366 rm -f conftest*
3367
3368 fi
3369
3370 if test $ac_cv_header_stdc = yes; then
3371   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3372   if test "$cross_compiling" = yes; then :
3373   :
3374 else
3375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h.  */
3377 #include <ctype.h>
3378 #include <stdlib.h>
3379 #if ((' ' & 0x0FF) == 0x020)
3380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3382 #else
3383 # define ISLOWER(c) \
3384                    (('a' <= (c) && (c) <= 'i') \
3385                      || ('j' <= (c) && (c) <= 'r') \
3386                      || ('s' <= (c) && (c) <= 'z'))
3387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3388 #endif
3389
3390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3391 int
3392 main ()
3393 {
3394   int i;
3395   for (i = 0; i < 256; i++)
3396     if (XOR (islower (i), ISLOWER (i))
3397         || toupper (i) != TOUPPER (i))
3398       return 2;
3399   return 0;
3400 }
3401 _ACEOF
3402 if ac_fn_c_try_run "$LINENO"; then :
3403
3404 else
3405   ac_cv_header_stdc=no
3406 fi
3407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3408   conftest.$ac_objext conftest.beam conftest.$ac_ext
3409 fi
3410
3411 fi
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3414 $as_echo "$ac_cv_header_stdc" >&6; }
3415 if test $ac_cv_header_stdc = yes; then
3416
3417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3418
3419 fi
3420
3421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3423                   inttypes.h stdint.h unistd.h
3424 do :
3425   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3427 "
3428 eval as_val=\$$as_ac_Header
3429    if test "x$as_val" = x""yes; then :
3430   cat >>confdefs.h <<_ACEOF
3431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3432 _ACEOF
3433
3434 fi
3435
3436 done
3437
3438
3439
3440   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3441 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3442   MINIX=yes
3443 else
3444   MINIX=
3445 fi
3446
3447
3448   if test "$MINIX" = yes; then
3449
3450 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3451
3452
3453 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3454
3455
3456 $as_echo "#define _MINIX 1" >>confdefs.h
3457
3458   fi
3459
3460
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3462 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3463 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 #         define __EXTENSIONS__ 1
3470           $ac_includes_default
3471 int
3472 main ()
3473 {
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480   ac_cv_safe_to_define___extensions__=yes
3481 else
3482   ac_cv_safe_to_define___extensions__=no
3483 fi
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3487 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3488   test $ac_cv_safe_to_define___extensions__ = yes &&
3489     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3490
3491   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3492
3493   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3494
3495   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3496
3497   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3498
3499
3500
3501 # AC_USE_SYSTEM_EXTENSIONS
3502 am__api_version='1.11'
3503
3504 ac_aux_dir=
3505 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3506   for ac_t in install-sh install.sh shtool; do
3507     if test -f "$ac_dir/$ac_t"; then
3508       ac_aux_dir=$ac_dir
3509       ac_install_sh="$ac_aux_dir/$ac_t -c"
3510       break 2
3511     fi
3512   done
3513 done
3514 if test -z "$ac_aux_dir"; then
3515   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3516 fi
3517
3518 # These three variables are undocumented and unsupported,
3519 # and are intended to be withdrawn in a future Autoconf release.
3520 # They can cause serious problems if a builder's source tree is in a directory
3521 # whose full name contains unusual characters.
3522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3524 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3525
3526
3527 # Find a good install program.  We prefer a C program (faster),
3528 # so one script is as good as another.  But avoid the broken or
3529 # incompatible versions:
3530 # SysV /etc/install, /usr/sbin/install
3531 # SunOS /usr/etc/install
3532 # IRIX /sbin/install
3533 # AIX /bin/install
3534 # AmigaOS /C/install, which installs bootblocks on floppy discs
3535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3538 # OS/2's system install, which has a completely different semantic
3539 # ./install, which can be erroneously created by make from ./install.sh.
3540 # Reject install programs that cannot install multiple files.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3542 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3543 if test -z "$INSTALL"; then
3544 if test "${ac_cv_path_install+set}" = set; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552     # Account for people who put trailing slashes in PATH elements.
3553 case $as_dir/ in #((
3554   ./ | .// | /[cC]/* | \
3555   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3556   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3557   /usr/ucb/* ) ;;
3558   *)
3559     # OSF1 and SCO ODT 3.0 have their own names for install.
3560     # Don't use installbsd from OSF since it installs stuff as root
3561     # by default.
3562     for ac_prog in ginstall scoinst install; do
3563       for ac_exec_ext in '' $ac_executable_extensions; do
3564         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3565           if test $ac_prog = install &&
3566             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567             # AIX install.  It has an incompatible calling convention.
3568             :
3569           elif test $ac_prog = install &&
3570             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571             # program-specific install script used by HP pwplus--don't use.
3572             :
3573           else
3574             rm -rf conftest.one conftest.two conftest.dir
3575             echo one > conftest.one
3576             echo two > conftest.two
3577             mkdir conftest.dir
3578             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3579               test -s conftest.one && test -s conftest.two &&
3580               test -s conftest.dir/conftest.one &&
3581               test -s conftest.dir/conftest.two
3582             then
3583               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3584               break 3
3585             fi
3586           fi
3587         fi
3588       done
3589     done
3590     ;;
3591 esac
3592
3593   done
3594 IFS=$as_save_IFS
3595
3596 rm -rf conftest.one conftest.two conftest.dir
3597
3598 fi
3599   if test "${ac_cv_path_install+set}" = set; then
3600     INSTALL=$ac_cv_path_install
3601   else
3602     # As a last resort, use the slow shell script.  Don't cache a
3603     # value for INSTALL within a source directory, because that will
3604     # break other packages using the cache if that directory is
3605     # removed, or if the value is a relative name.
3606     INSTALL=$ac_install_sh
3607   fi
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3610 $as_echo "$INSTALL" >&6; }
3611
3612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3613 # It thinks the first close brace ends the variable substitution.
3614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3615
3616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3617
3618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3621 $as_echo_n "checking whether build environment is sane... " >&6; }
3622 # Just in case
3623 sleep 1
3624 echo timestamp > conftest.file
3625 # Reject unsafe characters in $srcdir or the absolute working directory
3626 # name.  Accept space and tab only in the latter.
3627 am_lf='
3628 '
3629 case `pwd` in
3630   *[\\\"\#\$\&\'\`$am_lf]*)
3631     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3632 esac
3633 case $srcdir in
3634   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3635     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3636 esac
3637
3638 # Do `set' in a subshell so we don't clobber the current shell's
3639 # arguments.  Must try -L first in case configure is actually a
3640 # symlink; some systems play weird games with the mod time of symlinks
3641 # (eg FreeBSD returns the mod time of the symlink's containing
3642 # directory).
3643 if (
3644    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3645    if test "$*" = "X"; then
3646       # -L didn't work.
3647       set X `ls -t "$srcdir/configure" conftest.file`
3648    fi
3649    rm -f conftest.file
3650    if test "$*" != "X $srcdir/configure conftest.file" \
3651       && test "$*" != "X conftest.file $srcdir/configure"; then
3652
3653       # If neither matched, then we have a broken ls.  This can happen
3654       # if, for instance, CONFIG_SHELL is bash and it inherits a
3655       # broken ls alias from the environment.  This has actually
3656       # happened.  Such a system could not be considered "sane".
3657       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3658 alias in your environment" "$LINENO" 5
3659    fi
3660
3661    test "$2" = conftest.file
3662    )
3663 then
3664    # Ok.
3665    :
3666 else
3667    as_fn_error "newly created file is older than distributed files!
3668 Check your system clock" "$LINENO" 5
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3671 $as_echo "yes" >&6; }
3672 test "$program_prefix" != NONE &&
3673   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3674 # Use a double $ so make ignores it.
3675 test "$program_suffix" != NONE &&
3676   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3677 # Double any \ or $.
3678 # By default was `s,x,x', remove it if useless.
3679 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3680 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3681
3682 # expand $ac_aux_dir to an absolute path
3683 am_aux_dir=`cd $ac_aux_dir && pwd`
3684
3685 if test x"${MISSING+set}" != xset; then
3686   case $am_aux_dir in
3687   *\ * | *\     *)
3688     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3689   *)
3690     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3691   esac
3692 fi
3693 # Use eval to expand $SHELL
3694 if eval "$MISSING --run true"; then
3695   am_missing_run="$MISSING --run "
3696 else
3697   am_missing_run=
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3699 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3700 fi
3701
3702 if test x"${install_sh}" != xset; then
3703   case $am_aux_dir in
3704   *\ * | *\     *)
3705     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3706   *)
3707     install_sh="\${SHELL} $am_aux_dir/install-sh"
3708   esac
3709 fi
3710
3711 # Installed binaries are usually stripped using `strip' when the user
3712 # run `make install-strip'.  However `strip' might not be the right
3713 # tool to use in cross-compilation environments, therefore Automake
3714 # will honor the `STRIP' environment variable to overrule this program.
3715 if test "$cross_compiling" != no; then
3716   if test -n "$ac_tool_prefix"; then
3717   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}strip; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if test "${ac_cv_prog_STRIP+set}" = set; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -n "$STRIP"; then
3725   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739   done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 STRIP=$ac_cv_prog_STRIP
3745 if test -n "$STRIP"; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3747 $as_echo "$STRIP" >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754 fi
3755 if test -z "$ac_cv_prog_STRIP"; then
3756   ac_ct_STRIP=$STRIP
3757   # Extract the first word of "strip", so it can be a program name with args.
3758 set dummy strip; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   if test -n "$ac_ct_STRIP"; then
3765   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772     for ac_exec_ext in '' $ac_executable_extensions; do
3773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774     ac_cv_prog_ac_ct_STRIP="strip"
3775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779   done
3780 IFS=$as_save_IFS
3781
3782 fi
3783 fi
3784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3785 if test -n "$ac_ct_STRIP"; then
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3787 $as_echo "$ac_ct_STRIP" >&6; }
3788 else
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3791 fi
3792
3793   if test "x$ac_ct_STRIP" = x; then
3794     STRIP=":"
3795   else
3796     case $cross_compiling:$ac_tool_warned in
3797 yes:)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800 ac_tool_warned=yes ;;
3801 esac
3802     STRIP=$ac_ct_STRIP
3803   fi
3804 else
3805   STRIP="$ac_cv_prog_STRIP"
3806 fi
3807
3808 fi
3809 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3812 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3813 if test -z "$MKDIR_P"; then
3814   if test "${ac_cv_path_mkdir+set}" = set; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822     for ac_prog in mkdir gmkdir; do
3823          for ac_exec_ext in '' $ac_executable_extensions; do
3824            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3825            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3826              'mkdir (GNU coreutils) '* | \
3827              'mkdir (coreutils) '* | \
3828              'mkdir (fileutils) '4.1*)
3829                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3830                break 3;;
3831            esac
3832          done
3833        done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838
3839   test -d ./--version && rmdir ./--version
3840   if test "${ac_cv_path_mkdir+set}" = set; then
3841     MKDIR_P="$ac_cv_path_mkdir -p"
3842   else
3843     # As a last resort, use the slow shell script.  Don't cache a
3844     # value for MKDIR_P within a source directory, because that will
3845     # break other packages using the cache if that directory is
3846     # removed, or if the value is a relative name.
3847     MKDIR_P="$ac_install_sh -d"
3848   fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3851 $as_echo "$MKDIR_P" >&6; }
3852
3853 mkdir_p="$MKDIR_P"
3854 case $mkdir_p in
3855   [\\/$]* | ?:[\\/]*) ;;
3856   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3857 esac
3858
3859 for ac_prog in gawk mawk nawk awk
3860 do
3861   # Extract the first word of "$ac_prog", so it can be a program name with args.
3862 set dummy $ac_prog; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if test "${ac_cv_prog_AWK+set}" = set; then :
3866   $as_echo_n "(cached) " >&6
3867 else
3868   if test -n "$AWK"; then
3869   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876     for ac_exec_ext in '' $ac_executable_extensions; do
3877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3878     ac_cv_prog_AWK="$ac_prog"
3879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880     break 2
3881   fi
3882 done
3883   done
3884 IFS=$as_save_IFS
3885
3886 fi
3887 fi
3888 AWK=$ac_cv_prog_AWK
3889 if test -n "$AWK"; then
3890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3891 $as_echo "$AWK" >&6; }
3892 else
3893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3895 fi
3896
3897
3898   test -n "$AWK" && break
3899 done
3900
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3903 set x ${MAKE-make}
3904 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3905 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   cat >conftest.make <<\_ACEOF
3909 SHELL = /bin/sh
3910 all:
3911         @echo '@@@%%%=$(MAKE)=@@@%%%'
3912 _ACEOF
3913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3915   *@@@%%%=?*=@@@%%%*)
3916     eval ac_cv_prog_make_${ac_make}_set=yes;;
3917   *)
3918     eval ac_cv_prog_make_${ac_make}_set=no;;
3919 esac
3920 rm -f conftest.make
3921 fi
3922 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 $as_echo "yes" >&6; }
3925   SET_MAKE=
3926 else
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929   SET_MAKE="MAKE=${MAKE-make}"
3930 fi
3931
3932 rm -rf .tst 2>/dev/null
3933 mkdir .tst 2>/dev/null
3934 if test -d .tst; then
3935   am__leading_dot=.
3936 else
3937   am__leading_dot=_
3938 fi
3939 rmdir .tst 2>/dev/null
3940
3941 DEPDIR="${am__leading_dot}deps"
3942
3943 ac_config_commands="$ac_config_commands depfiles"
3944
3945
3946 am_make=${MAKE-make}
3947 cat > confinc << 'END'
3948 am__doit:
3949         @echo this is the am__doit target
3950 .PHONY: am__doit
3951 END
3952 # If we don't find an include directive, just comment out the code.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3954 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3955 am__include="#"
3956 am__quote=
3957 _am_result=none
3958 # First try GNU make style include.
3959 echo "include confinc" > confmf
3960 # Ignore all kinds of additional output from `make'.
3961 case `$am_make -s -f confmf 2> /dev/null` in #(
3962 *the\ am__doit\ target*)
3963   am__include=include
3964   am__quote=
3965   _am_result=GNU
3966   ;;
3967 esac
3968 # Now try BSD make style include.
3969 if test "$am__include" = "#"; then
3970    echo '.include "confinc"' > confmf
3971    case `$am_make -s -f confmf 2> /dev/null` in #(
3972    *the\ am__doit\ target*)
3973      am__include=.include
3974      am__quote="\""
3975      _am_result=BSD
3976      ;;
3977    esac
3978 fi
3979
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3982 $as_echo "$_am_result" >&6; }
3983 rm -f confinc confmf
3984
3985 # Check whether --enable-dependency-tracking was given.
3986 if test "${enable_dependency_tracking+set}" = set; then :
3987   enableval=$enable_dependency_tracking;
3988 fi
3989
3990 if test "x$enable_dependency_tracking" != xno; then
3991   am_depcomp="$ac_aux_dir/depcomp"
3992   AMDEPBACKSLASH='\'
3993 fi
3994  if test "x$enable_dependency_tracking" != xno; then
3995   AMDEP_TRUE=
3996   AMDEP_FALSE='#'
3997 else
3998   AMDEP_TRUE='#'
3999   AMDEP_FALSE=
4000 fi
4001
4002
4003 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4004   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4005   # is not polluted with repeated "-I."
4006   am__isrc=' -I$(srcdir)'
4007   # test to see if srcdir already configured
4008   if test -f $srcdir/config.status; then
4009     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4010   fi
4011 fi
4012
4013 # test whether we have cygpath
4014 if test -z "$CYGPATH_W"; then
4015   if (cygpath --version) >/dev/null 2>/dev/null; then
4016     CYGPATH_W='cygpath -w'
4017   else
4018     CYGPATH_W=echo
4019   fi
4020 fi
4021
4022
4023 # Define the identity of the package.
4024  PACKAGE=lcr
4025  VERSION=1.7
4026
4027
4028 cat >>confdefs.h <<_ACEOF
4029 #define PACKAGE "$PACKAGE"
4030 _ACEOF
4031
4032
4033 cat >>confdefs.h <<_ACEOF
4034 #define VERSION "$VERSION"
4035 _ACEOF
4036
4037 # Some tools Automake needs.
4038
4039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4040
4041
4042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4043
4044
4045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4046
4047
4048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4049
4050
4051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4052
4053 # We need awk for the "check" target.  The system "awk" is bad on
4054 # some platforms.
4055 # Always define AMTAR for backward compatibility.
4056
4057 AMTAR=${AMTAR-"${am_missing_run}tar"}
4058
4059 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4060
4061
4062
4063
4064 depcc="$CC"   am_compiler_list=
4065
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4067 $as_echo_n "checking dependency style of $depcc... " >&6; }
4068 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4072   # We make a subdir and do the tests there.  Otherwise we can end up
4073   # making bogus files that we don't know about and never remove.  For
4074   # instance it was reported that on HP-UX the gcc test will end up
4075   # making a dummy file named `D' -- because `-MD' means `put the output
4076   # in D'.
4077   mkdir conftest.dir
4078   # Copy depcomp to subdir because otherwise we won't find it if we're
4079   # using a relative directory.
4080   cp "$am_depcomp" conftest.dir
4081   cd conftest.dir
4082   # We will build objects and dependencies in a subdirectory because
4083   # it helps to detect inapplicable dependency modes.  For instance
4084   # both Tru64's cc and ICC support -MD to output dependencies as a
4085   # side effect of compilation, but ICC will put the dependencies in
4086   # the current directory while Tru64 will put them in the object
4087   # directory.
4088   mkdir sub
4089
4090   am_cv_CC_dependencies_compiler_type=none
4091   if test "$am_compiler_list" = ""; then
4092      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4093   fi
4094   am__universal=false
4095   case " $depcc " in #(
4096      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4097      esac
4098
4099   for depmode in $am_compiler_list; do
4100     # Setup a source with many dependencies, because some compilers
4101     # like to wrap large dependency lists on column 80 (with \), and
4102     # we should not choose a depcomp mode which is confused by this.
4103     #
4104     # We need to recreate these files for each test, as the compiler may
4105     # overwrite some of them when testing with obscure command lines.
4106     # This happens at least with the AIX C compiler.
4107     : > sub/conftest.c
4108     for i in 1 2 3 4 5 6; do
4109       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4110       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4111       # Solaris 8's {/usr,}/bin/sh.
4112       touch sub/conftst$i.h
4113     done
4114     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4115
4116     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4117     # mode.  It turns out that the SunPro C++ compiler does not properly
4118     # handle `-M -o', and we need to detect this.  Also, some Intel
4119     # versions had trouble with output in subdirs
4120     am__obj=sub/conftest.${OBJEXT-o}
4121     am__minus_obj="-o $am__obj"
4122     case $depmode in
4123     gcc)
4124       # This depmode causes a compiler race in universal mode.
4125       test "$am__universal" = false || continue
4126       ;;
4127     nosideeffect)
4128       # after this tag, mechanisms are not by side-effect, so they'll
4129       # only be used when explicitly requested
4130       if test "x$enable_dependency_tracking" = xyes; then
4131         continue
4132       else
4133         break
4134       fi
4135       ;;
4136     msvisualcpp | msvcmsys)
4137       # This compiler won't grok `-c -o', but also, the minuso test has
4138       # not run yet.  These depmodes are late enough in the game, and
4139       # so weak that their functioning should not be impacted.
4140       am__obj=conftest.${OBJEXT-o}
4141       am__minus_obj=
4142       ;;
4143     none) break ;;
4144     esac
4145     if depmode=$depmode \
4146        source=sub/conftest.c object=$am__obj \
4147        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4148        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4149          >/dev/null 2>conftest.err &&
4150        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4151        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4152        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4153        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4154       # icc doesn't choke on unknown options, it will just issue warnings
4155       # or remarks (even with -Werror).  So we grep stderr for any message
4156       # that says an option was ignored or not supported.
4157       # When given -MP, icc 7.0 and 7.1 complain thusly:
4158       #   icc: Command line warning: ignoring option '-M'; no argument required
4159       # The diagnosis changed in icc 8.0:
4160       #   icc: Command line remark: option '-MP' not supported
4161       if (grep 'ignoring option' conftest.err ||
4162           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4163         am_cv_CC_dependencies_compiler_type=$depmode
4164         break
4165       fi
4166     fi
4167   done
4168
4169   cd ..
4170   rm -rf conftest.dir
4171 else
4172   am_cv_CC_dependencies_compiler_type=none
4173 fi
4174
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4177 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4179
4180  if
4181   test "x$enable_dependency_tracking" != xno \
4182   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4183   am__fastdepCC_TRUE=
4184   am__fastdepCC_FALSE='#'
4185 else
4186   am__fastdepCC_TRUE='#'
4187   am__fastdepCC_FALSE=
4188 fi
4189
4190
4191
4192
4193
4194
4195 # Checks for programs.
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4202 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4203 # On Suns, sometimes $CPP names a directory.
4204 if test -n "$CPP" && test -d "$CPP"; then
4205   CPP=
4206 fi
4207 if test -z "$CPP"; then
4208   if test "${ac_cv_prog_CPP+set}" = set; then :
4209   $as_echo_n "(cached) " >&6
4210 else
4211       # Double quotes because CPP needs to be expanded
4212     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213     do
4214       ac_preproc_ok=false
4215 for ac_c_preproc_warn_flag in '' yes
4216 do
4217   # Use a header file that comes with gcc, so configuring glibc
4218   # with a fresh cross-compiler works.
4219   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220   # <limits.h> exists even on freestanding compilers.
4221   # On the NeXT, cc -E runs the code through the compiler's parser,
4222   # not just through cpp. "Syntax error" is here to catch this case.
4223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225 #ifdef __STDC__
4226 # include <limits.h>
4227 #else
4228 # include <assert.h>
4229 #endif
4230                      Syntax error
4231 _ACEOF
4232 if ac_fn_c_try_cpp "$LINENO"; then :
4233
4234 else
4235   # Broken: fails on valid input.
4236 continue
4237 fi
4238 rm -f conftest.err conftest.$ac_ext
4239
4240   # OK, works on sane cases.  Now check whether nonexistent headers
4241   # can be detected and how.
4242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h.  */
4244 #include <ac_nonexistent.h>
4245 _ACEOF
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4247   # Broken: success on invalid input.
4248 continue
4249 else
4250   # Passes both tests.
4251 ac_preproc_ok=:
4252 break
4253 fi
4254 rm -f conftest.err conftest.$ac_ext
4255
4256 done
4257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258 rm -f conftest.err conftest.$ac_ext
4259 if $ac_preproc_ok; then :
4260   break
4261 fi
4262
4263     done
4264     ac_cv_prog_CPP=$CPP
4265
4266 fi
4267   CPP=$ac_cv_prog_CPP
4268 else
4269   ac_cv_prog_CPP=$CPP
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4272 $as_echo "$CPP" >&6; }
4273 ac_preproc_ok=false
4274 for ac_c_preproc_warn_flag in '' yes
4275 do
4276   # Use a header file that comes with gcc, so configuring glibc
4277   # with a fresh cross-compiler works.
4278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279   # <limits.h> exists even on freestanding compilers.
4280   # On the NeXT, cc -E runs the code through the compiler's parser,
4281   # not just through cpp. "Syntax error" is here to catch this case.
4282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h.  */
4284 #ifdef __STDC__
4285 # include <limits.h>
4286 #else
4287 # include <assert.h>
4288 #endif
4289                      Syntax error
4290 _ACEOF
4291 if ac_fn_c_try_cpp "$LINENO"; then :
4292
4293 else
4294   # Broken: fails on valid input.
4295 continue
4296 fi
4297 rm -f conftest.err conftest.$ac_ext
4298
4299   # OK, works on sane cases.  Now check whether nonexistent headers
4300   # can be detected and how.
4301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h.  */
4303 #include <ac_nonexistent.h>
4304 _ACEOF
4305 if ac_fn_c_try_cpp "$LINENO"; then :
4306   # Broken: success on invalid input.
4307 continue
4308 else
4309   # Passes both tests.
4310 ac_preproc_ok=:
4311 break
4312 fi
4313 rm -f conftest.err conftest.$ac_ext
4314
4315 done
4316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4317 rm -f conftest.err conftest.$ac_ext
4318 if $ac_preproc_ok; then :
4319
4320 else
4321   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4324 See \`config.log' for more details." "$LINENO" 5; }
4325 fi
4326
4327 ac_ext=c
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332
4333 ac_ext=cpp
4334 ac_cpp='$CXXCPP $CPPFLAGS'
4335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4338 if test -z "$CXX"; then
4339   if test -n "$CCC"; then
4340     CXX=$CCC
4341   else
4342     if test -n "$ac_tool_prefix"; then
4343   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4344   do
4345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_CXX+set}" = set; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   if test -n "$CXX"; then
4353   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360     for ac_exec_ext in '' $ac_executable_extensions; do
4361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367   done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 CXX=$ac_cv_prog_CXX
4373 if test -n "$CXX"; then
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4375 $as_echo "$CXX" >&6; }
4376 else
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382     test -n "$CXX" && break
4383   done
4384 fi
4385 if test -z "$CXX"; then
4386   ac_ct_CXX=$CXX
4387   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4388 do
4389   # Extract the first word of "$ac_prog", so it can be a program name with args.
4390 set dummy $ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   if test -n "$ac_ct_CXX"; then
4397   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404     for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_ac_ct_CXX="$ac_prog"
4407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411   done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4417 if test -n "$ac_ct_CXX"; then
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4419 $as_echo "$ac_ct_CXX" >&6; }
4420 else
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426   test -n "$ac_ct_CXX" && break
4427 done
4428
4429   if test "x$ac_ct_CXX" = x; then
4430     CXX="g++"
4431   else
4432     case $cross_compiling:$ac_tool_warned in
4433 yes:)
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436 ac_tool_warned=yes ;;
4437 esac
4438     CXX=$ac_ct_CXX
4439   fi
4440 fi
4441
4442   fi
4443 fi
4444 # Provide some information about the compiler.
4445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4446 set X $ac_compile
4447 ac_compiler=$2
4448 for ac_option in --version -v -V -qversion; do
4449   { { ac_try="$ac_compiler $ac_option >&5"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4457   ac_status=$?
4458   if test -s conftest.err; then
4459     sed '10a\
4460 ... rest of stderr output deleted ...
4461          10q' conftest.err >conftest.er1
4462     cat conftest.er1 >&5
4463   fi
4464   rm -f conftest.er1 conftest.err
4465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466   test $ac_status = 0; }
4467 done
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4470 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476
4477 int
4478 main ()
4479 {
4480 #ifndef __GNUC__
4481        choke me
4482 #endif
4483
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 if ac_fn_cxx_try_compile "$LINENO"; then :
4489   ac_compiler_gnu=yes
4490 else
4491   ac_compiler_gnu=no
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4495
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4498 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4499 if test $ac_compiler_gnu = yes; then
4500   GXX=yes
4501 else
4502   GXX=
4503 fi
4504 ac_test_CXXFLAGS=${CXXFLAGS+set}
4505 ac_save_CXXFLAGS=$CXXFLAGS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4507 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4508 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4512    ac_cxx_werror_flag=yes
4513    ac_cv_prog_cxx_g=no
4514    CXXFLAGS="-g"
4515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h.  */
4517
4518 int
4519 main ()
4520 {
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527   ac_cv_prog_cxx_g=yes
4528 else
4529   CXXFLAGS=""
4530       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h.  */
4532
4533 int
4534 main ()
4535 {
4536
4537   ;
4538   return 0;
4539 }
4540 _ACEOF
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4542
4543 else
4544   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4545          CXXFLAGS="-g"
4546          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548
4549 int
4550 main ()
4551 {
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4558   ac_cv_prog_cxx_g=yes
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4568 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4569 if test "$ac_test_CXXFLAGS" = set; then
4570   CXXFLAGS=$ac_save_CXXFLAGS
4571 elif test $ac_cv_prog_cxx_g = yes; then
4572   if test "$GXX" = yes; then
4573     CXXFLAGS="-g -O2"
4574   else
4575     CXXFLAGS="-g"
4576   fi
4577 else
4578   if test "$GXX" = yes; then
4579     CXXFLAGS="-O2"
4580   else
4581     CXXFLAGS=
4582   fi
4583 fi
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590 depcc="$CXX"  am_compiler_list=
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4593 $as_echo_n "checking dependency style of $depcc... " >&6; }
4594 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4598   # We make a subdir and do the tests there.  Otherwise we can end up
4599   # making bogus files that we don't know about and never remove.  For
4600   # instance it was reported that on HP-UX the gcc test will end up
4601   # making a dummy file named `D' -- because `-MD' means `put the output
4602   # in D'.
4603   mkdir conftest.dir
4604   # Copy depcomp to subdir because otherwise we won't find it if we're
4605   # using a relative directory.
4606   cp "$am_depcomp" conftest.dir
4607   cd conftest.dir
4608   # We will build objects and dependencies in a subdirectory because
4609   # it helps to detect inapplicable dependency modes.  For instance
4610   # both Tru64's cc and ICC support -MD to output dependencies as a
4611   # side effect of compilation, but ICC will put the dependencies in
4612   # the current directory while Tru64 will put them in the object
4613   # directory.
4614   mkdir sub
4615
4616   am_cv_CXX_dependencies_compiler_type=none
4617   if test "$am_compiler_list" = ""; then
4618      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4619   fi
4620   am__universal=false
4621   case " $depcc " in #(
4622      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4623      esac
4624
4625   for depmode in $am_compiler_list; do
4626     # Setup a source with many dependencies, because some compilers
4627     # like to wrap large dependency lists on column 80 (with \), and
4628     # we should not choose a depcomp mode which is confused by this.
4629     #
4630     # We need to recreate these files for each test, as the compiler may
4631     # overwrite some of them when testing with obscure command lines.
4632     # This happens at least with the AIX C compiler.
4633     : > sub/conftest.c
4634     for i in 1 2 3 4 5 6; do
4635       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4636       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4637       # Solaris 8's {/usr,}/bin/sh.
4638       touch sub/conftst$i.h
4639     done
4640     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4641
4642     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4643     # mode.  It turns out that the SunPro C++ compiler does not properly
4644     # handle `-M -o', and we need to detect this.  Also, some Intel
4645     # versions had trouble with output in subdirs
4646     am__obj=sub/conftest.${OBJEXT-o}
4647     am__minus_obj="-o $am__obj"
4648     case $depmode in
4649     gcc)
4650       # This depmode causes a compiler race in universal mode.
4651       test "$am__universal" = false || continue
4652       ;;
4653     nosideeffect)
4654       # after this tag, mechanisms are not by side-effect, so they'll
4655       # only be used when explicitly requested
4656       if test "x$enable_dependency_tracking" = xyes; then
4657         continue
4658       else
4659         break
4660       fi
4661       ;;
4662     msvisualcpp | msvcmsys)
4663       # This compiler won't grok `-c -o', but also, the minuso test has
4664       # not run yet.  These depmodes are late enough in the game, and
4665       # so weak that their functioning should not be impacted.
4666       am__obj=conftest.${OBJEXT-o}
4667       am__minus_obj=
4668       ;;
4669     none) break ;;
4670     esac
4671     if depmode=$depmode \
4672        source=sub/conftest.c object=$am__obj \
4673        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4674        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4675          >/dev/null 2>conftest.err &&
4676        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4677        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4678        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4679        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4680       # icc doesn't choke on unknown options, it will just issue warnings
4681       # or remarks (even with -Werror).  So we grep stderr for any message
4682       # that says an option was ignored or not supported.
4683       # When given -MP, icc 7.0 and 7.1 complain thusly:
4684       #   icc: Command line warning: ignoring option '-M'; no argument required
4685       # The diagnosis changed in icc 8.0:
4686       #   icc: Command line remark: option '-MP' not supported
4687       if (grep 'ignoring option' conftest.err ||
4688           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4689         am_cv_CXX_dependencies_compiler_type=$depmode
4690         break
4691       fi
4692     fi
4693   done
4694
4695   cd ..
4696   rm -rf conftest.dir
4697 else
4698   am_cv_CXX_dependencies_compiler_type=none
4699 fi
4700
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4703 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4704 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4705
4706  if
4707   test "x$enable_dependency_tracking" != xno \
4708   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4709   am__fastdepCXX_TRUE=
4710   am__fastdepCXX_FALSE='#'
4711 else
4712   am__fastdepCXX_TRUE='#'
4713   am__fastdepCXX_FALSE=
4714 fi
4715
4716
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 if test -n "$ac_tool_prefix"; then
4723   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   if test -n "$CC"; then
4731   ac_cv_prog_CC="$CC" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738     for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742     break 2
4743   fi
4744 done
4745   done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 CC=$ac_cv_prog_CC
4751 if test -n "$CC"; then
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753 $as_echo "$CC" >&6; }
4754 else
4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 fi
4758
4759
4760 fi
4761 if test -z "$ac_cv_prog_CC"; then
4762   ac_ct_CC=$CC
4763   # Extract the first word of "gcc", so it can be a program name with args.
4764 set dummy gcc; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4768   $as_echo_n "(cached) " >&6
4769 else
4770   if test -n "$ac_ct_CC"; then
4771   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776   IFS=$as_save_IFS
4777   test -z "$as_dir" && as_dir=.
4778     for ac_exec_ext in '' $ac_executable_extensions; do
4779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780     ac_cv_prog_ac_ct_CC="gcc"
4781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782     break 2
4783   fi
4784 done
4785   done
4786 IFS=$as_save_IFS
4787
4788 fi
4789 fi
4790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4791 if test -n "$ac_ct_CC"; then
4792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793 $as_echo "$ac_ct_CC" >&6; }
4794 else
4795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4797 fi
4798
4799   if test "x$ac_ct_CC" = x; then
4800     CC=""
4801   else
4802     case $cross_compiling:$ac_tool_warned in
4803 yes:)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806 ac_tool_warned=yes ;;
4807 esac
4808     CC=$ac_ct_CC
4809   fi
4810 else
4811   CC="$ac_cv_prog_CC"
4812 fi
4813
4814 if test -z "$CC"; then
4815           if test -n "$ac_tool_prefix"; then
4816     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}cc; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if test -n "$CC"; then
4824   ac_cv_prog_CC="$CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831     for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_CC="${ac_tool_prefix}cc"
4834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838   done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 CC=$ac_cv_prog_CC
4844 if test -n "$CC"; then
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4846 $as_echo "$CC" >&6; }
4847 else
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852
4853   fi
4854 fi
4855 if test -z "$CC"; then
4856   # Extract the first word of "cc", so it can be a program name with args.
4857 set dummy cc; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_CC+set}" = set; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   if test -n "$CC"; then
4864   ac_cv_prog_CC="$CC" # Let the user override the test.
4865 else
4866   ac_prog_rejected=no
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872     for ac_exec_ext in '' $ac_executable_extensions; do
4873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4875        ac_prog_rejected=yes
4876        continue
4877      fi
4878     ac_cv_prog_CC="cc"
4879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880     break 2
4881   fi
4882 done
4883   done
4884 IFS=$as_save_IFS
4885
4886 if test $ac_prog_rejected = yes; then
4887   # We found a bogon in the path, so make sure we never use it.
4888   set dummy $ac_cv_prog_CC
4889   shift
4890   if test $# != 0; then
4891     # We chose a different compiler from the bogus one.
4892     # However, it has the same basename, so the bogon will be chosen
4893     # first if we set CC to just the basename; use the full file name.
4894     shift
4895     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4896   fi
4897 fi
4898 fi
4899 fi
4900 CC=$ac_cv_prog_CC
4901 if test -n "$CC"; then
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4903 $as_echo "$CC" >&6; }
4904 else
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4907 fi
4908
4909
4910 fi
4911 if test -z "$CC"; then
4912   if test -n "$ac_tool_prefix"; then
4913   for ac_prog in cl.exe
4914   do
4915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   if test -n "$CC"; then
4923   ac_cv_prog_CC="$CC" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928   IFS=$as_save_IFS
4929   test -z "$as_dir" && as_dir=.
4930     for ac_exec_ext in '' $ac_executable_extensions; do
4931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934     break 2
4935   fi
4936 done
4937   done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 CC=$ac_cv_prog_CC
4943 if test -n "$CC"; then
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4945 $as_echo "$CC" >&6; }
4946 else
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951
4952     test -n "$CC" && break
4953   done
4954 fi
4955 if test -z "$CC"; then
4956   ac_ct_CC=$CC
4957   for ac_prog in cl.exe
4958 do
4959   # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4964   $as_echo_n "(cached) " >&6
4965 else
4966   if test -n "$ac_ct_CC"; then
4967   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974     for ac_exec_ext in '' $ac_executable_extensions; do
4975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976     ac_cv_prog_ac_ct_CC="$ac_prog"
4977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981   done
4982 IFS=$as_save_IFS
4983
4984 fi
4985 fi
4986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4987 if test -n "$ac_ct_CC"; then
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4989 $as_echo "$ac_ct_CC" >&6; }
4990 else
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4993 fi
4994
4995
4996   test -n "$ac_ct_CC" && break
4997 done
4998
4999   if test "x$ac_ct_CC" = x; then
5000     CC=""
5001   else
5002     case $cross_compiling:$ac_tool_warned in
5003 yes:)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned=yes ;;
5007 esac
5008     CC=$ac_ct_CC
5009   fi
5010 fi
5011
5012 fi
5013
5014
5015 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5017 as_fn_error "no acceptable C compiler found in \$PATH
5018 See \`config.log' for more details." "$LINENO" 5; }
5019
5020 # Provide some information about the compiler.
5021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5022 set X $ac_compile
5023 ac_compiler=$2
5024 for ac_option in --version -v -V -qversion; do
5025   { { ac_try="$ac_compiler $ac_option >&5"
5026 case "(($ac_try" in
5027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028   *) ac_try_echo=$ac_try;;
5029 esac
5030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5031 $as_echo "$ac_try_echo"; } >&5
5032   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5033   ac_status=$?
5034   if test -s conftest.err; then
5035     sed '10a\
5036 ... rest of stderr output deleted ...
5037          10q' conftest.err >conftest.er1
5038     cat conftest.er1 >&5
5039   fi
5040   rm -f conftest.er1 conftest.err
5041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042   test $ac_status = 0; }
5043 done
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052
5053 int
5054 main ()
5055 {
5056 #ifndef __GNUC__
5057        choke me
5058 #endif
5059
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065   ac_compiler_gnu=yes
5066 else
5067   ac_compiler_gnu=no
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5075 if test $ac_compiler_gnu = yes; then
5076   GCC=yes
5077 else
5078   GCC=
5079 fi
5080 ac_test_CFLAGS=${CFLAGS+set}
5081 ac_save_CFLAGS=$CFLAGS
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5084 if test "${ac_cv_prog_cc_g+set}" = set; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   ac_save_c_werror_flag=$ac_c_werror_flag
5088    ac_c_werror_flag=yes
5089    ac_cv_prog_cc_g=no
5090    CFLAGS="-g"
5091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h.  */
5093
5094 int
5095 main ()
5096 {
5097
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 if ac_fn_c_try_compile "$LINENO"; then :
5103   ac_cv_prog_cc_g=yes
5104 else
5105   CFLAGS=""
5106       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h.  */
5108
5109 int
5110 main ()
5111 {
5112
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 if ac_fn_c_try_compile "$LINENO"; then :
5118
5119 else
5120   ac_c_werror_flag=$ac_save_c_werror_flag
5121          CFLAGS="-g"
5122          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124
5125 int
5126 main ()
5127 {
5128
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134   ac_cv_prog_cc_g=yes
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141    ac_c_werror_flag=$ac_save_c_werror_flag
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5144 $as_echo "$ac_cv_prog_cc_g" >&6; }
5145 if test "$ac_test_CFLAGS" = set; then
5146   CFLAGS=$ac_save_CFLAGS
5147 elif test $ac_cv_prog_cc_g = yes; then
5148   if test "$GCC" = yes; then
5149     CFLAGS="-g -O2"
5150   else
5151     CFLAGS="-g"
5152   fi
5153 else
5154   if test "$GCC" = yes; then
5155     CFLAGS="-O2"
5156   else
5157     CFLAGS=
5158   fi
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   ac_cv_prog_cc_c89=no
5166 ac_save_CC=$CC
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h.  */
5169 #include <stdarg.h>
5170 #include <stdio.h>
5171 #include <sys/types.h>
5172 #include <sys/stat.h>
5173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5174 struct buf { int x; };
5175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5176 static char *e (p, i)
5177      char **p;
5178      int i;
5179 {
5180   return p[i];
5181 }
5182 static char *f (char * (*g) (char **, int), char **p, ...)
5183 {
5184   char *s;
5185   va_list v;
5186   va_start (v,p);
5187   s = g (p, va_arg (v,int));
5188   va_end (v);
5189   return s;
5190 }
5191
5192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5193    function prototypes and stuff, but not '\xHH' hex character constants.
5194    These don't provoke an error unfortunately, instead are silently treated
5195    as 'x'.  The following induces an error, until -std is added to get
5196    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5197    array size at least.  It's necessary to write '\x00'==0 to get something
5198    that's true only with -std.  */
5199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5200
5201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5202    inside strings and character constants.  */
5203 #define FOO(x) 'x'
5204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5205
5206 int test (int i, double x);
5207 struct s1 {int (*f) (int a);};
5208 struct s2 {int (*f) (double a);};
5209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5210 int argc;
5211 char **argv;
5212 int
5213 main ()
5214 {
5215 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5216   ;
5217   return 0;
5218 }
5219 _ACEOF
5220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5221         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5222 do
5223   CC="$ac_save_CC $ac_arg"
5224   if ac_fn_c_try_compile "$LINENO"; then :
5225   ac_cv_prog_cc_c89=$ac_arg
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext
5228   test "x$ac_cv_prog_cc_c89" != "xno" && break
5229 done
5230 rm -f conftest.$ac_ext
5231 CC=$ac_save_CC
5232
5233 fi
5234 # AC_CACHE_VAL
5235 case "x$ac_cv_prog_cc_c89" in
5236   x)
5237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5238 $as_echo "none needed" >&6; } ;;
5239   xno)
5240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5241 $as_echo "unsupported" >&6; } ;;
5242   *)
5243     CC="$CC $ac_cv_prog_cc_c89"
5244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5246 esac
5247 if test "x$ac_cv_prog_cc_c89" != xno; then :
5248
5249 fi
5250
5251 ac_ext=c
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5259 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5260 set x ${MAKE-make}
5261 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5262 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   cat >conftest.make <<\_ACEOF
5266 SHELL = /bin/sh
5267 all:
5268         @echo '@@@%%%=$(MAKE)=@@@%%%'
5269 _ACEOF
5270 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5271 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5272   *@@@%%%=?*=@@@%%%*)
5273     eval ac_cv_prog_make_${ac_make}_set=yes;;
5274   *)
5275     eval ac_cv_prog_make_${ac_make}_set=no;;
5276 esac
5277 rm -f conftest.make
5278 fi
5279 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5281 $as_echo "yes" >&6; }
5282   SET_MAKE=
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286   SET_MAKE="MAKE=${MAKE-make}"
5287 fi
5288
5289
5290
5291 # site specific configs
5292
5293 # check for asterisk
5294
5295 # Check whether --with-asterisk was given.
5296 if test "${with_asterisk+set}" = set; then :
5297   withval=$with_asterisk;
5298 else
5299   with_asterisk="check"
5300 fi
5301
5302
5303 if test "x$with_asterisk" != xno; then :
5304   for ac_header in asterisk/compiler.h
5305 do :
5306   ac_fn_c_check_header_mongrel "$LINENO" "asterisk/compiler.h" "ac_cv_header_asterisk_compiler_h" "$ac_includes_default"
5307 if test "x$ac_cv_header_asterisk_compiler_h" = x""yes; then :
5308   cat >>confdefs.h <<_ACEOF
5309 #define HAVE_ASTERISK_COMPILER_H 1
5310 _ACEOF
5311  with_asterisk="yes"
5312 else
5313   if test "x$with_asterisk" != xcheck ; then
5314                       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5316 as_fn_error "--with-asterisk was given, but test for header-file asterisk/compiler.h failed
5317 See \`config.log' for more details." "$LINENO" 5; }
5318                      fi
5319
5320 fi
5321
5322 done
5323
5324
5325 fi
5326
5327 if test "x$with_asterisk" = "xyes"; then
5328         ast_tone_zone_sound=
5329
5330         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tone_zone_sound in asterisk/indications.h" >&5
5331 $as_echo_n "checking for struct tone_zone_sound in asterisk/indications.h... " >&6; }
5332         tzs_test_result=no
5333         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h.  */
5335
5336                 #include <asterisk.h>,
5337                         #include <asterisk/linkedlists.h>,
5338                         #include <asterisk/indications.h>
5339 int
5340 main ()
5341 {
5342 struct tone_zone_sound * ts = NULL; (void) ts->data;
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348   tzs_test_result=yes
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tzs_test_result" >&5
5352 $as_echo "$tzs_test_result" >&6; }
5353
5354         if test "x$tzs_test_result" = "xyes"; then
5355                 ast_tone_zone_sound=tone_zone_sound
5356         fi
5357
5358         if test "x$ast_tone_zone_sound" = "x"; then
5359                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ast_tone_zone_sound in asterisk/indications.h" >&5
5360 $as_echo_n "checking for struct ast_tone_zone_sound in asterisk/indications.h... " >&6; }
5361                 tzs_test_result=no
5362                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h.  */
5364
5365                         #include <asterisk.h>,
5366                                 #include <asterisk/linkedlists.h>,
5367                                 #include <asterisk/indications.h>
5368 int
5369 main ()
5370 {
5371 struct ast_tone_zone_sound * ts = NULL; (void) ts->name;
5372   ;
5373   return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377   tzs_test_result=yes
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tzs_test_result" >&5
5381 $as_echo "$tzs_test_result" >&6; }
5382
5383                 if test "x$tzs_test_result" = "xyes"; then
5384                         ast_tone_zone_sound=ast_tone_zone_sound
5385                 fi
5386         fi
5387
5388         if test "x$ast_tone_zone_sound" = "x"; then
5389                 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5391 as_fn_error "No ast_tone_zone_sound, confused...
5392 See \`config.log' for more details." "$LINENO" 5; }
5393         fi
5394
5395         AST_CFLAGS="-Dtone_zone_sound=$ast_tone_zone_sound"
5396
5397 fi
5398
5399  if test "x$with_asterisk" == "xyes" ; then
5400   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
5401   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
5402 else
5403   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
5404   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
5405 fi
5406
5407
5408 # check for crypto
5409
5410 # Check whether --with-ssl was given.
5411 if test "${with_ssl+set}" = set; then :
5412   withval=$with_ssl;
5413 else
5414   with_ssl=check
5415 fi
5416
5417 LIBCRYPTO=
5418 if test "x$with_ssl" != xno; then :
5419   for ac_header in openssl/rsa.h
5420 do :
5421   ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
5422 if test "x$ac_cv_header_openssl_rsa_h" = x""yes; then :
5423   cat >>confdefs.h <<_ACEOF
5424 #define HAVE_OPENSSL_RSA_H 1
5425 _ACEOF
5426
5427 fi
5428
5429 done
5430
5431        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
5432 $as_echo_n "checking for main in -lcrypto... " >&6; }
5433 if test "${ac_cv_lib_crypto_main+set}" = set; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   ac_check_lib_save_LIBS=$LIBS
5437 LIBS="-lcrypto -lcrypto
5438                     $LIBS"
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h.  */
5441
5442
5443 int
5444 main ()
5445 {
5446 return main ();
5447   ;
5448   return 0;
5449 }
5450 _ACEOF
5451 if ac_fn_c_try_link "$LINENO"; then :
5452   ac_cv_lib_crypto_main=yes
5453 else
5454   ac_cv_lib_crypto_main=no
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext \
5457     conftest$ac_exeext conftest.$ac_ext
5458 LIBS=$ac_check_lib_save_LIBS
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
5461 $as_echo "$ac_cv_lib_crypto_main" >&6; }
5462 if test "x$ac_cv_lib_crypto_main" = x""yes; then :
5463   LIBCRYPTO="-lcrypto"
5464
5465
5466 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5467
5468
5469 else
5470   if test "x$with_ssl" != xcheck ; then
5471                       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5473 as_fn_error "--with-ssl was given, but test for libcrypto failed
5474 See \`config.log' for more details." "$LINENO" 5; }
5475                      fi
5476
5477 fi
5478
5479
5480
5481 fi
5482
5483 # check for gsm-bs
5484
5485 # Check whether --with-gsm-bs was given.
5486 if test "${with_gsm_bs+set}" = set; then :
5487   withval=$with_gsm_bs;
5488 else
5489   with_gsm_bs="check"
5490 fi
5491
5492
5493 if test "x$with_gsm_bs" != xno; then :
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openbsc/include/openbsc/gsm_data.h" >&5
5495 $as_echo_n "checking openbsc/include/openbsc/gsm_data.h... " >&6; }
5496        if test -d openbsc/include/openbsc/gsm_data.h; then
5497                 with_gsm_bs="yes"
5498                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5499 $as_echo "yes" >&6; }
5500        elif test "x$with_gsm_bs" != xcheck ; then
5501                 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5503 as_fn_error "--with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Please link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
5504 See \`config.log' for more details." "$LINENO" 5; }
5505        fi
5506
5507 fi
5508
5509  if test "x$with_gsm_bs" == "xyes" ; then
5510   ENABLE_GSM_BS_TRUE=
5511   ENABLE_GSM_BS_FALSE='#'
5512 else
5513   ENABLE_GSM_BS_TRUE='#'
5514   ENABLE_GSM_BS_FALSE=
5515 fi
5516
5517
5518 # check for gsm-ms
5519
5520 # Check whether --with-gsm-ms was given.
5521 if test "${with_gsm_ms+set}" = set; then :
5522   withval=$with_gsm_ms;
5523 else
5524   with_gsm_ms="check"
5525 fi
5526
5527
5528 if test "x$with_gsm_ms" != xno; then :
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking layer23/include/osmocom/osmocom_data.h" >&5
5530 $as_echo_n "checking layer23/include/osmocom/osmocom_data.h... " >&6; }
5531        if test -d layer23/include/osmocom/osmocom_data.h; then
5532                 with_gsm_ms="yes"
5533                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5534 $as_echo "yes" >&6; }
5535        elif test "x$with_gsm_bs" != xcheck ; then
5536                 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5538 as_fn_error "--with-gsm-ms was given, but layer23/include/osmocom/osmocom_data.h was not found! Please link Osmocom-BB and libosmocore source directory to LCR source directory: ln -s path_to_osmocom-bb/src/host/layer23/ layer23 ; ln -s path_to_libosmocore libosmocore
5539 See \`config.log' for more details." "$LINENO" 5; }
5540        fi
5541
5542 fi
5543
5544  if test "x$with_gsm_ms" == "xyes" ; then
5545   ENABLE_GSM_MS_TRUE=
5546   ENABLE_GSM_MS_FALSE='#'
5547 else
5548   ENABLE_GSM_MS_TRUE='#'
5549   ENABLE_GSM_MS_FALSE=
5550 fi
5551
5552
5553  if test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes"; then
5554   ENABLE_GSM_TRUE=
5555   ENABLE_GSM_FALSE='#'
5556 else
5557   ENABLE_GSM_TRUE='#'
5558   ENABLE_GSM_FALSE=
5559 fi
5560
5561
5562 # check for ss5
5563
5564 # Check whether --with-ss5 was given.
5565 if test "${with_ss5+set}" = set; then :
5566   withval=$with_ss5;
5567 else
5568   with_ss5="check"
5569 fi
5570
5571
5572  if test "x$with_ss5" == "xyes" ; then
5573   ENABLE_SS5_TRUE=
5574   ENABLE_SS5_FALSE='#'
5575 else
5576   ENABLE_SS5_TRUE='#'
5577   ENABLE_SS5_FALSE=
5578 fi
5579
5580
5581 # Checks for libraries.
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5583 $as_echo_n "checking for main in -lm... " >&6; }
5584 if test "${ac_cv_lib_m_main+set}" = set; then :
5585   $as_echo_n "(cached) " >&6
5586 else
5587   ac_check_lib_save_LIBS=$LIBS
5588 LIBS="-lm  $LIBS"
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h.  */
5591
5592
5593 int
5594 main ()
5595 {
5596 return main ();
5597   ;
5598   return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_link "$LINENO"; then :
5602   ac_cv_lib_m_main=yes
5603 else
5604   ac_cv_lib_m_main=no
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext \
5607     conftest$ac_exeext conftest.$ac_ext
5608 LIBS=$ac_check_lib_save_LIBS
5609 fi
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5611 $as_echo "$ac_cv_lib_m_main" >&6; }
5612 if test "x$ac_cv_lib_m_main" = x""yes; then :
5613   cat >>confdefs.h <<_ACEOF
5614 #define HAVE_LIBM 1
5615 _ACEOF
5616
5617   LIBS="-lm $LIBS"
5618
5619 fi
5620
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5622 $as_echo_n "checking for main in -lncurses... " >&6; }
5623 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5624   $as_echo_n "(cached) " >&6
5625 else
5626   ac_check_lib_save_LIBS=$LIBS
5627 LIBS="-lncurses  $LIBS"
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h.  */
5630
5631
5632 int
5633 main ()
5634 {
5635 return main ();
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 if ac_fn_c_try_link "$LINENO"; then :
5641   ac_cv_lib_ncurses_main=yes
5642 else
5643   ac_cv_lib_ncurses_main=no
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext \
5646     conftest$ac_exeext conftest.$ac_ext
5647 LIBS=$ac_check_lib_save_LIBS
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5650 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5651 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5652   cat >>confdefs.h <<_ACEOF
5653 #define HAVE_LIBNCURSES 1
5654 _ACEOF
5655
5656   LIBS="-lncurses $LIBS"
5657
5658 fi
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5661 $as_echo_n "checking for main in -lpthread... " >&6; }
5662 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   ac_check_lib_save_LIBS=$LIBS
5666 LIBS="-lpthread  $LIBS"
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h.  */
5669
5670
5671 int
5672 main ()
5673 {
5674 return main ();
5675   ;
5676   return 0;
5677 }
5678 _ACEOF
5679 if ac_fn_c_try_link "$LINENO"; then :
5680   ac_cv_lib_pthread_main=yes
5681 else
5682   ac_cv_lib_pthread_main=no
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext \
5685     conftest$ac_exeext conftest.$ac_ext
5686 LIBS=$ac_check_lib_save_LIBS
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5689 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5690 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5691   cat >>confdefs.h <<_ACEOF
5692 #define HAVE_LIBPTHREAD 1
5693 _ACEOF
5694
5695   LIBS="-lpthread $LIBS"
5696
5697 fi
5698
5699
5700 # Checks for header files.
5701 ac_header_dirent=no
5702 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5703   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5705 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5707   $as_echo_n "(cached) " >&6
5708 else
5709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h.  */
5711 #include <sys/types.h>
5712 #include <$ac_hdr>
5713
5714 int
5715 main ()
5716 {
5717 if ((DIR *) 0)
5718 return 0;
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724   eval "$as_ac_Header=yes"
5725 else
5726   eval "$as_ac_Header=no"
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 fi
5730 eval ac_res=\$$as_ac_Header
5731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5732 $as_echo "$ac_res" >&6; }
5733 eval as_val=\$$as_ac_Header
5734    if test "x$as_val" = x""yes; then :
5735   cat >>confdefs.h <<_ACEOF
5736 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5737 _ACEOF
5738
5739 ac_header_dirent=$ac_hdr; break
5740 fi
5741
5742 done
5743 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5744 if test $ac_header_dirent = dirent.h; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5746 $as_echo_n "checking for library containing opendir... " >&6; }
5747 if test "${ac_cv_search_opendir+set}" = set; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   ac_func_search_save_LIBS=$LIBS
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h.  */
5753
5754 /* Override any GCC internal prototype to avoid an error.
5755    Use char because int might match the return type of a GCC
5756    builtin and then its argument prototype would still apply.  */
5757 #ifdef __cplusplus
5758 extern "C"
5759 #endif
5760 char opendir ();
5761 int
5762 main ()
5763 {
5764 return opendir ();
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 for ac_lib in '' dir; do
5770   if test -z "$ac_lib"; then
5771     ac_res="none required"
5772   else
5773     ac_res=-l$ac_lib
5774     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5775   fi
5776   if ac_fn_c_try_link "$LINENO"; then :
5777   ac_cv_search_opendir=$ac_res
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext \
5780     conftest$ac_exeext
5781   if test "${ac_cv_search_opendir+set}" = set; then :
5782   break
5783 fi
5784 done
5785 if test "${ac_cv_search_opendir+set}" = set; then :
5786
5787 else
5788   ac_cv_search_opendir=no
5789 fi
5790 rm conftest.$ac_ext
5791 LIBS=$ac_func_search_save_LIBS
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5794 $as_echo "$ac_cv_search_opendir" >&6; }
5795 ac_res=$ac_cv_search_opendir
5796 if test "$ac_res" != no; then :
5797   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5798
5799 fi
5800
5801 else
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5803 $as_echo_n "checking for library containing opendir... " >&6; }
5804 if test "${ac_cv_search_opendir+set}" = set; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   ac_func_search_save_LIBS=$LIBS
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h.  */
5810
5811 /* Override any GCC internal prototype to avoid an error.
5812    Use char because int might match the return type of a GCC
5813    builtin and then its argument prototype would still apply.  */
5814 #ifdef __cplusplus
5815 extern "C"
5816 #endif
5817 char opendir ();
5818 int
5819 main ()
5820 {
5821 return opendir ();
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 for ac_lib in '' x; do
5827   if test -z "$ac_lib"; then
5828     ac_res="none required"
5829   else
5830     ac_res=-l$ac_lib
5831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5832   fi
5833   if ac_fn_c_try_link "$LINENO"; then :
5834   ac_cv_search_opendir=$ac_res
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext \
5837     conftest$ac_exeext
5838   if test "${ac_cv_search_opendir+set}" = set; then :
5839   break
5840 fi
5841 done
5842 if test "${ac_cv_search_opendir+set}" = set; then :
5843
5844 else
5845   ac_cv_search_opendir=no
5846 fi
5847 rm conftest.$ac_ext
5848 LIBS=$ac_func_search_save_LIBS
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5851 $as_echo "$ac_cv_search_opendir" >&6; }
5852 ac_res=$ac_cv_search_opendir
5853 if test "$ac_res" != no; then :
5854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5855
5856 fi
5857
5858 fi
5859
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5861 $as_echo_n "checking for ANSI C header files... " >&6; }
5862 if test "${ac_cv_header_stdc+set}" = set; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h.  */
5867 #include <stdlib.h>
5868 #include <stdarg.h>
5869 #include <string.h>
5870 #include <float.h>
5871
5872 int
5873 main ()
5874 {
5875
5876   ;
5877   return 0;
5878 }
5879 _ACEOF
5880 if ac_fn_c_try_compile "$LINENO"; then :
5881   ac_cv_header_stdc=yes
5882 else
5883   ac_cv_header_stdc=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886
5887 if test $ac_cv_header_stdc = yes; then
5888   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891 #include <string.h>
5892
5893 _ACEOF
5894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5895   $EGREP "memchr" >/dev/null 2>&1; then :
5896
5897 else
5898   ac_cv_header_stdc=no
5899 fi
5900 rm -f conftest*
5901
5902 fi
5903
5904 if test $ac_cv_header_stdc = yes; then
5905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h.  */
5908 #include <stdlib.h>
5909
5910 _ACEOF
5911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5912   $EGREP "free" >/dev/null 2>&1; then :
5913
5914 else
5915   ac_cv_header_stdc=no
5916 fi
5917 rm -f conftest*
5918
5919 fi
5920
5921 if test $ac_cv_header_stdc = yes; then
5922   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5923   if test "$cross_compiling" = yes; then :
5924   :
5925 else
5926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h.  */
5928 #include <ctype.h>
5929 #include <stdlib.h>
5930 #if ((' ' & 0x0FF) == 0x020)
5931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5933 #else
5934 # define ISLOWER(c) \
5935                    (('a' <= (c) && (c) <= 'i') \
5936                      || ('j' <= (c) && (c) <= 'r') \
5937                      || ('s' <= (c) && (c) <= 'z'))
5938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5939 #endif
5940
5941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5942 int
5943 main ()
5944 {
5945   int i;
5946   for (i = 0; i < 256; i++)
5947     if (XOR (islower (i), ISLOWER (i))
5948         || toupper (i) != TOUPPER (i))
5949       return 2;
5950   return 0;
5951 }
5952 _ACEOF
5953 if ac_fn_c_try_run "$LINENO"; then :
5954
5955 else
5956   ac_cv_header_stdc=no
5957 fi
5958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5959   conftest.$ac_objext conftest.beam conftest.$ac_ext
5960 fi
5961
5962 fi
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5965 $as_echo "$ac_cv_header_stdc" >&6; }
5966 if test $ac_cv_header_stdc = yes; then
5967
5968 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5969
5970 fi
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5973 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5974 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h.  */
5979 #include <sys/types.h>
5980 #include <sys/wait.h>
5981 #ifndef WEXITSTATUS
5982 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5983 #endif
5984 #ifndef WIFEXITED
5985 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5986 #endif
5987
5988 int
5989 main ()
5990 {
5991   int s;
5992   wait (&s);
5993   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 if ac_fn_c_try_compile "$LINENO"; then :
5999   ac_cv_header_sys_wait_h=yes
6000 else
6001   ac_cv_header_sys_wait_h=no
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6006 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6007 if test $ac_cv_header_sys_wait_h = yes; then
6008
6009 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6010
6011 fi
6012
6013 for ac_header in fcntl.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h ctype.h assert.h mISDNuser/mbuffer.h assert.h
6014 do :
6015   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6016 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6017 eval as_val=\$$as_ac_Header
6018    if test "x$as_val" = x""yes; then :
6019   cat >>confdefs.h <<_ACEOF
6020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6021 _ACEOF
6022
6023 fi
6024
6025 done
6026
6027
6028 # Checks for typedefs, structures, and compiler characteristics.
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6030 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6031 if test "${ac_cv_header_stdbool_h+set}" = set; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h.  */
6036
6037 #include <stdbool.h>
6038 #ifndef bool
6039  "error: bool is not defined"
6040 #endif
6041 #ifndef false
6042  "error: false is not defined"
6043 #endif
6044 #if false
6045  "error: false is not 0"
6046 #endif
6047 #ifndef true
6048  "error: true is not defined"
6049 #endif
6050 #if true != 1
6051  "error: true is not 1"
6052 #endif
6053 #ifndef __bool_true_false_are_defined
6054  "error: __bool_true_false_are_defined is not defined"
6055 #endif
6056
6057         struct s { _Bool s: 1; _Bool t; } s;
6058
6059         char a[true == 1 ? 1 : -1];
6060         char b[false == 0 ? 1 : -1];
6061         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6062         char d[(bool) 0.5 == true ? 1 : -1];
6063         bool e = &s;
6064         char f[(_Bool) 0.0 == false ? 1 : -1];
6065         char g[true];
6066         char h[sizeof (_Bool)];
6067         char i[sizeof s.t];
6068         enum { j = false, k = true, l = false * true, m = true * 256 };
6069         /* The following fails for
6070            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6071         _Bool n[m];
6072         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6073         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6074 #       if defined __xlc__ || defined __GNUC__
6075          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6076             reported by James Lemley on 2005-10-05; see
6077             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6078             This test is not quite right, since xlc is allowed to
6079             reject this program, as the initializer for xlcbug is
6080             not one of the forms that C requires support for.
6081             However, doing the test right would require a runtime
6082             test, and that would make cross-compilation harder.
6083             Let us hope that IBM fixes the xlc bug, and also adds
6084             support for this kind of constant expression.  In the
6085             meantime, this test will reject xlc, which is OK, since
6086             our stdbool.h substitute should suffice.  We also test
6087             this with GCC, where it should work, to detect more
6088             quickly whether someone messes up the test in the
6089             future.  */
6090          char digs[] = "0123456789";
6091          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6092 #       endif
6093         /* Catch a bug in an HP-UX C compiler.  See
6094            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6095            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6096          */
6097         _Bool q = true;
6098         _Bool *pq = &q;
6099
6100 int
6101 main ()
6102 {
6103
6104         *pq |= q;
6105         *pq |= ! q;
6106         /* Refer to every declared value, to avoid compiler optimizations.  */
6107         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6108                 + !m + !n + !o + !p + !q + !pq);
6109
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 if ac_fn_c_try_compile "$LINENO"; then :
6115   ac_cv_header_stdbool_h=yes
6116 else
6117   ac_cv_header_stdbool_h=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6122 $as_echo "$ac_cv_header_stdbool_h" >&6; }
6123 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6124 if test "x$ac_cv_type__Bool" = x""yes; then :
6125
6126 cat >>confdefs.h <<_ACEOF
6127 #define HAVE__BOOL 1
6128 _ACEOF
6129
6130
6131 fi
6132
6133 if test $ac_cv_header_stdbool_h = yes; then
6134
6135 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6136
6137 fi
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6140 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6141 if test "${ac_cv_c_const+set}" = set; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h.  */
6146
6147 int
6148 main ()
6149 {
6150 /* FIXME: Include the comments suggested by Paul. */
6151 #ifndef __cplusplus
6152   /* Ultrix mips cc rejects this.  */
6153   typedef int charset[2];
6154   const charset cs;
6155   /* SunOS 4.1.1 cc rejects this.  */
6156   char const *const *pcpcc;
6157   char **ppc;
6158   /* NEC SVR4.0.2 mips cc rejects this.  */
6159   struct point {int x, y;};
6160   static struct point const zero = {0,0};
6161   /* AIX XL C 1.02.0.0 rejects this.
6162      It does not let you subtract one const X* pointer from another in
6163      an arm of an if-expression whose if-part is not a constant
6164      expression */
6165   const char *g = "string";
6166   pcpcc = &g + (g ? g-g : 0);
6167   /* HPUX 7.0 cc rejects these. */
6168   ++pcpcc;
6169   ppc = (char**) pcpcc;
6170   pcpcc = (char const *const *) ppc;
6171   { /* SCO 3.2v4 cc rejects this.  */
6172     char *t;
6173     char const *s = 0 ? (char *) 0 : (char const *) 0;
6174
6175     *t++ = 0;
6176     if (s) return 0;
6177   }
6178   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6179     int x[] = {25, 17};
6180     const int *foo = &x[0];
6181     ++foo;
6182   }
6183   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6184     typedef const int *iptr;
6185     iptr p = 0;
6186     ++p;
6187   }
6188   { /* AIX XL C 1.02.0.0 rejects this saying
6189        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6190     struct s { int j; const int *ap[3]; };
6191     struct s *b; b->j = 5;
6192   }
6193   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6194     const int foo = 10;
6195     if (!foo) return 0;
6196   }
6197   return !cs[0] && !zero.x;
6198 #endif
6199
6200   ;
6201   return 0;
6202 }
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"; then :
6205   ac_cv_c_const=yes
6206 else
6207   ac_cv_c_const=no
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6212 $as_echo "$ac_cv_c_const" >&6; }
6213 if test $ac_cv_c_const = no; then
6214
6215 $as_echo "#define const /**/" >>confdefs.h
6216
6217 fi
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6220 $as_echo_n "checking for inline... " >&6; }
6221 if test "${ac_cv_c_inline+set}" = set; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   ac_cv_c_inline=no
6225 for ac_kw in inline __inline__ __inline; do
6226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h.  */
6228 #ifndef __cplusplus
6229 typedef int foo_t;
6230 static $ac_kw foo_t static_foo () {return 0; }
6231 $ac_kw foo_t foo () {return 0; }
6232 #endif
6233
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236   ac_cv_c_inline=$ac_kw
6237 fi
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239   test "$ac_cv_c_inline" != no && break
6240 done
6241
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6244 $as_echo "$ac_cv_c_inline" >&6; }
6245
6246 case $ac_cv_c_inline in
6247   inline | yes) ;;
6248   *)
6249     case $ac_cv_c_inline in
6250       no) ac_val=;;
6251       *) ac_val=$ac_cv_c_inline;;
6252     esac
6253     cat >>confdefs.h <<_ACEOF
6254 #ifndef __cplusplus
6255 #define inline $ac_val
6256 #endif
6257 _ACEOF
6258     ;;
6259 esac
6260
6261 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6262 if test "x$ac_cv_type_pid_t" = x""yes; then :
6263
6264 else
6265
6266 cat >>confdefs.h <<_ACEOF
6267 #define pid_t int
6268 _ACEOF
6269
6270 fi
6271
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6273 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6274 if test "${ac_cv_header_time+set}" = set; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h.  */
6279 #include <sys/types.h>
6280 #include <sys/time.h>
6281 #include <time.h>
6282
6283 int
6284 main ()
6285 {
6286 if ((struct tm *) 0)
6287 return 0;
6288   ;
6289   return 0;
6290 }
6291 _ACEOF
6292 if ac_fn_c_try_compile "$LINENO"; then :
6293   ac_cv_header_time=yes
6294 else
6295   ac_cv_header_time=no
6296 fi
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 fi
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6300 $as_echo "$ac_cv_header_time" >&6; }
6301 if test $ac_cv_header_time = yes; then
6302
6303 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6304
6305 fi
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6308 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6309 if test "${ac_cv_struct_tm+set}" = set; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h.  */
6314 #include <sys/types.h>
6315 #include <time.h>
6316
6317 int
6318 main ()
6319 {
6320 struct tm tm;
6321                                      int *p = &tm.tm_sec;
6322                                      return !p;
6323   ;
6324   return 0;
6325 }
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328   ac_cv_struct_tm=time.h
6329 else
6330   ac_cv_struct_tm=sys/time.h
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6335 $as_echo "$ac_cv_struct_tm" >&6; }
6336 if test $ac_cv_struct_tm = sys/time.h; then
6337
6338 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6339
6340 fi
6341
6342
6343 # Checks for library functions.
6344 for ac_header in vfork.h
6345 do :
6346   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6347 if test "x$ac_cv_header_vfork_h" = x""yes; then :
6348   cat >>confdefs.h <<_ACEOF
6349 #define HAVE_VFORK_H 1
6350 _ACEOF
6351
6352 fi
6353
6354 done
6355
6356 for ac_func in fork vfork
6357 do :
6358   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6360 eval as_val=\$$as_ac_var
6361    if test "x$as_val" = x""yes; then :
6362   cat >>confdefs.h <<_ACEOF
6363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6364 _ACEOF
6365
6366 fi
6367 done
6368
6369 if test "x$ac_cv_func_fork" = xyes; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6371 $as_echo_n "checking for working fork... " >&6; }
6372 if test "${ac_cv_func_fork_works+set}" = set; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   if test "$cross_compiling" = yes; then :
6376   ac_cv_func_fork_works=cross
6377 else
6378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h.  */
6380 $ac_includes_default
6381 int
6382 main ()
6383 {
6384
6385           /* By Ruediger Kuhlmann. */
6386           return fork () < 0;
6387
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_run "$LINENO"; then :
6393   ac_cv_func_fork_works=yes
6394 else
6395   ac_cv_func_fork_works=no
6396 fi
6397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6398   conftest.$ac_objext conftest.beam conftest.$ac_ext
6399 fi
6400
6401 fi
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6403 $as_echo "$ac_cv_func_fork_works" >&6; }
6404
6405 else
6406   ac_cv_func_fork_works=$ac_cv_func_fork
6407 fi
6408 if test "x$ac_cv_func_fork_works" = xcross; then
6409   case $host in
6410     *-*-amigaos* | *-*-msdosdjgpp*)
6411       # Override, as these systems have only a dummy fork() stub
6412       ac_cv_func_fork_works=no
6413       ;;
6414     *)
6415       ac_cv_func_fork_works=yes
6416       ;;
6417   esac
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6419 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6420 fi
6421 ac_cv_func_vfork_works=$ac_cv_func_vfork
6422 if test "x$ac_cv_func_vfork" = xyes; then
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6424 $as_echo_n "checking for working vfork... " >&6; }
6425 if test "${ac_cv_func_vfork_works+set}" = set; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   if test "$cross_compiling" = yes; then :
6429   ac_cv_func_vfork_works=cross
6430 else
6431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h.  */
6433 /* Thanks to Paul Eggert for this test.  */
6434 $ac_includes_default
6435 #include <sys/wait.h>
6436 #ifdef HAVE_VFORK_H
6437 # include <vfork.h>
6438 #endif
6439 /* On some sparc systems, changes by the child to local and incoming
6440    argument registers are propagated back to the parent.  The compiler
6441    is told about this with #include <vfork.h>, but some compilers
6442    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
6443    static variable whose address is put into a register that is
6444    clobbered by the vfork.  */
6445 static void
6446 #ifdef __cplusplus
6447 sparc_address_test (int arg)
6448 # else
6449 sparc_address_test (arg) int arg;
6450 #endif
6451 {
6452   static pid_t child;
6453   if (!child) {
6454     child = vfork ();
6455     if (child < 0) {
6456       perror ("vfork");
6457       _exit(2);
6458     }
6459     if (!child) {
6460       arg = getpid();
6461       write(-1, "", 0);
6462       _exit (arg);
6463     }
6464   }
6465 }
6466
6467 int
6468 main ()
6469 {
6470   pid_t parent = getpid ();
6471   pid_t child;
6472
6473   sparc_address_test (0);
6474
6475   child = vfork ();
6476
6477   if (child == 0) {
6478     /* Here is another test for sparc vfork register problems.  This
6479        test uses lots of local variables, at least as many local
6480        variables as main has allocated so far including compiler
6481        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
6482        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
6483        reuse the register of parent for one of the local variables,
6484        since it will think that parent can't possibly be used any more
6485        in this routine.  Assigning to the local variable will thus
6486        munge parent in the parent process.  */
6487     pid_t
6488       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6489       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6490     /* Convince the compiler that p..p7 are live; otherwise, it might
6491        use the same hardware register for all 8 local variables.  */
6492     if (p != p1 || p != p2 || p != p3 || p != p4
6493         || p != p5 || p != p6 || p != p7)
6494       _exit(1);
6495
6496     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6497        from child file descriptors.  If the child closes a descriptor
6498        before it execs or exits, this munges the parent's descriptor
6499        as well.  Test for this by closing stdout in the child.  */
6500     _exit(close(fileno(stdout)) != 0);
6501   } else {
6502     int status;
6503     struct stat st;
6504
6505     while (wait(&status) != child)
6506       ;
6507     return (
6508          /* Was there some problem with vforking?  */
6509          child < 0
6510
6511          /* Did the child fail?  (This shouldn't happen.)  */
6512          || status
6513
6514          /* Did the vfork/compiler bug occur?  */
6515          || parent != getpid()
6516
6517          /* Did the file descriptor bug occur?  */
6518          || fstat(fileno(stdout), &st) != 0
6519          );
6520   }
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_run "$LINENO"; then :
6524   ac_cv_func_vfork_works=yes
6525 else
6526   ac_cv_func_vfork_works=no
6527 fi
6528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6529   conftest.$ac_objext conftest.beam conftest.$ac_ext
6530 fi
6531
6532 fi
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6534 $as_echo "$ac_cv_func_vfork_works" >&6; }
6535
6536 fi;
6537 if test "x$ac_cv_func_fork_works" = xcross; then
6538   ac_cv_func_vfork_works=$ac_cv_func_vfork
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6540 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6541 fi
6542
6543 if test "x$ac_cv_func_vfork_works" = xyes; then
6544
6545 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6546
6547 else
6548
6549 $as_echo "#define vfork fork" >>confdefs.h
6550
6551 fi
6552 if test "x$ac_cv_func_fork_works" = xyes; then
6553
6554 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6555
6556 fi
6557
6558 if test $ac_cv_c_compiler_gnu = yes; then
6559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6560 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6561 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
6562   $as_echo_n "(cached) " >&6
6563 else
6564     ac_pattern="Autoconf.*'x'"
6565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h.  */
6567 #include <sgtty.h>
6568 Autoconf TIOCGETP
6569 _ACEOF
6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6572   ac_cv_prog_gcc_traditional=yes
6573 else
6574   ac_cv_prog_gcc_traditional=no
6575 fi
6576 rm -f conftest*
6577
6578
6579   if test $ac_cv_prog_gcc_traditional = no; then
6580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h.  */
6582 #include <termio.h>
6583 Autoconf TCGETA
6584 _ACEOF
6585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6586   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6587   ac_cv_prog_gcc_traditional=yes
6588 fi
6589 rm -f conftest*
6590
6591   fi
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6594 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6595   if test $ac_cv_prog_gcc_traditional = yes; then
6596     CC="$CC -traditional"
6597   fi
6598 fi
6599
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6601 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
6602 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6603   $as_echo_n "(cached) " >&6
6604 else
6605   rm -f conftest.sym conftest.file
6606 echo >conftest.file
6607 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6608   if test "$cross_compiling" = yes; then :
6609   ac_cv_func_lstat_dereferences_slashed_symlink=no
6610 else
6611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h.  */
6613 $ac_includes_default
6614 int
6615 main ()
6616 {
6617 struct stat sbuf;
6618      /* Linux will dereference the symlink and fail, as required by POSIX.
6619         That is better in the sense that it means we will not
6620         have to compile and use the lstat wrapper.  */
6621      return lstat ("conftest.sym/", &sbuf) == 0;
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 if ac_fn_c_try_run "$LINENO"; then :
6627   ac_cv_func_lstat_dereferences_slashed_symlink=yes
6628 else
6629   ac_cv_func_lstat_dereferences_slashed_symlink=no
6630 fi
6631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6632   conftest.$ac_objext conftest.beam conftest.$ac_ext
6633 fi
6634
6635 else
6636   # If the `ln -s' command failed, then we probably don't even
6637   # have an lstat function.
6638   ac_cv_func_lstat_dereferences_slashed_symlink=no
6639 fi
6640 rm -f conftest.sym conftest.file
6641
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6644 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6645
6646 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6647
6648 cat >>confdefs.h <<_ACEOF
6649 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6650 _ACEOF
6651
6652
6653 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6654   case " $LIBOBJS " in
6655   *" lstat.$ac_objext "* ) ;;
6656   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6657  ;;
6658 esac
6659
6660 fi
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6663 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6664 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   if test "$cross_compiling" = yes; then :
6668   ac_cv_func_lstat_empty_string_bug=yes
6669 else
6670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h.  */
6672 $ac_includes_default
6673 int
6674 main ()
6675 {
6676 struct stat sbuf;
6677   return lstat ("", &sbuf) == 0;
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 if ac_fn_c_try_run "$LINENO"; then :
6683   ac_cv_func_lstat_empty_string_bug=no
6684 else
6685   ac_cv_func_lstat_empty_string_bug=yes
6686 fi
6687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6688   conftest.$ac_objext conftest.beam conftest.$ac_ext
6689 fi
6690
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6693 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6694 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6695   case " $LIBOBJS " in
6696   *" lstat.$ac_objext "* ) ;;
6697   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6698  ;;
6699 esac
6700
6701
6702 cat >>confdefs.h <<_ACEOF
6703 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6704 _ACEOF
6705
6706 fi
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6709 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
6710 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   rm -f conftest.sym conftest.file
6714 echo >conftest.file
6715 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6716   if test "$cross_compiling" = yes; then :
6717   ac_cv_func_lstat_dereferences_slashed_symlink=no
6718 else
6719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h.  */
6721 $ac_includes_default
6722 int
6723 main ()
6724 {
6725 struct stat sbuf;
6726      /* Linux will dereference the symlink and fail, as required by POSIX.
6727         That is better in the sense that it means we will not
6728         have to compile and use the lstat wrapper.  */
6729      return lstat ("conftest.sym/", &sbuf) == 0;
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 if ac_fn_c_try_run "$LINENO"; then :
6735   ac_cv_func_lstat_dereferences_slashed_symlink=yes
6736 else
6737   ac_cv_func_lstat_dereferences_slashed_symlink=no
6738 fi
6739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6740   conftest.$ac_objext conftest.beam conftest.$ac_ext
6741 fi
6742
6743 else
6744   # If the `ln -s' command failed, then we probably don't even
6745   # have an lstat function.
6746   ac_cv_func_lstat_dereferences_slashed_symlink=no
6747 fi
6748 rm -f conftest.sym conftest.file
6749
6750 fi
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6752 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6753
6754 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6755
6756 cat >>confdefs.h <<_ACEOF
6757 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6758 _ACEOF
6759
6760
6761 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6762   case " $LIBOBJS " in
6763   *" lstat.$ac_objext "* ) ;;
6764   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6765  ;;
6766 esac
6767
6768 fi
6769
6770 for ac_header in stdlib.h
6771 do :
6772   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6773 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6774   cat >>confdefs.h <<_ACEOF
6775 #define HAVE_STDLIB_H 1
6776 _ACEOF
6777
6778 fi
6779
6780 done
6781
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6783 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6784 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   if test "$cross_compiling" = yes; then :
6788   ac_cv_func_malloc_0_nonnull=no
6789 else
6790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h.  */
6792 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6793 # include <stdlib.h>
6794 #else
6795 char *malloc ();
6796 #endif
6797
6798 int
6799 main ()
6800 {
6801 return ! malloc (0);
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 if ac_fn_c_try_run "$LINENO"; then :
6807   ac_cv_func_malloc_0_nonnull=yes
6808 else
6809   ac_cv_func_malloc_0_nonnull=no
6810 fi
6811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6812   conftest.$ac_objext conftest.beam conftest.$ac_ext
6813 fi
6814
6815 fi
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6817 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6818 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6819
6820 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6821
6822 else
6823   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6824
6825    case " $LIBOBJS " in
6826   *" malloc.$ac_objext "* ) ;;
6827   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6828  ;;
6829 esac
6830
6831
6832 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6833
6834 fi
6835
6836
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6838 $as_echo_n "checking for working memcmp... " >&6; }
6839 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6840   $as_echo_n "(cached) " >&6
6841 else
6842   if test "$cross_compiling" = yes; then :
6843   ac_cv_func_memcmp_working=no
6844 else
6845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h.  */
6847 $ac_includes_default
6848 int
6849 main ()
6850 {
6851
6852   /* Some versions of memcmp are not 8-bit clean.  */
6853   char c0 = '\100', c1 = '\200', c2 = '\201';
6854   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6855     return 1;
6856
6857   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6858      or more and with at least one buffer not starting on a 4-byte boundary.
6859      William Lewis provided this test program.   */
6860   {
6861     char foo[21];
6862     char bar[21];
6863     int i;
6864     for (i = 0; i < 4; i++)
6865       {
6866         char *a = foo + i;
6867         char *b = bar + i;
6868         strcpy (a, "--------01111111");
6869         strcpy (b, "--------10000000");
6870         if (memcmp (a, b, 16) >= 0)
6871           return 1;
6872       }
6873     return 0;
6874   }
6875
6876   ;
6877   return 0;
6878 }
6879 _ACEOF
6880 if ac_fn_c_try_run "$LINENO"; then :
6881   ac_cv_func_memcmp_working=yes
6882 else
6883   ac_cv_func_memcmp_working=no
6884 fi
6885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6886   conftest.$ac_objext conftest.beam conftest.$ac_ext
6887 fi
6888
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6891 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6892 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6893   *" memcmp.$ac_objext "* ) ;;
6894   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6895  ;;
6896 esac
6897
6898
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6900 $as_echo_n "checking return type of signal handlers... " >&6; }
6901 if test "${ac_cv_type_signal+set}" = set; then :
6902   $as_echo_n "(cached) " >&6
6903 else
6904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h.  */
6906 #include <sys/types.h>
6907 #include <signal.h>
6908
6909 int
6910 main ()
6911 {
6912 return *(signal (0, 0)) (0) == 1;
6913   ;
6914   return 0;
6915 }
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918   ac_cv_type_signal=int
6919 else
6920   ac_cv_type_signal=void
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6925 $as_echo "$ac_cv_type_signal" >&6; }
6926
6927 cat >>confdefs.h <<_ACEOF
6928 #define RETSIGTYPE $ac_cv_type_signal
6929 _ACEOF
6930
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
6933 $as_echo_n "checking for working strnlen... " >&6; }
6934 if test "${ac_cv_func_strnlen_working+set}" = set; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   if test "$cross_compiling" = yes; then :
6938   ac_cv_func_strnlen_working=no
6939 else
6940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h.  */
6942 $ac_includes_default
6943 int
6944 main ()
6945 {
6946
6947 #define S "foobar"
6948 #define S_LEN (sizeof S - 1)
6949
6950   /* At least one implementation is buggy: that of AIX 4.3 would
6951      give strnlen (S, 1) == 3.  */
6952
6953   int i;
6954   for (i = 0; i < S_LEN + 1; ++i)
6955     {
6956       int expected = i <= S_LEN ? i : S_LEN;
6957       if (strnlen (S, i) != expected)
6958         return 1;
6959     }
6960   return 0;
6961
6962   ;
6963   return 0;
6964 }
6965 _ACEOF
6966 if ac_fn_c_try_run "$LINENO"; then :
6967   ac_cv_func_strnlen_working=yes
6968 else
6969   ac_cv_func_strnlen_working=no
6970 fi
6971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6972   conftest.$ac_objext conftest.beam conftest.$ac_ext
6973 fi
6974
6975 fi
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
6977 $as_echo "$ac_cv_func_strnlen_working" >&6; }
6978 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
6979   *" strnlen.$ac_objext "* ) ;;
6980   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
6981  ;;
6982 esac
6983
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6986 $as_echo_n "checking for working strtod... " >&6; }
6987 if test "${ac_cv_func_strtod+set}" = set; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   if test "$cross_compiling" = yes; then :
6991   ac_cv_func_strtod=no
6992 else
6993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h.  */
6995
6996 $ac_includes_default
6997 #ifndef strtod
6998 double strtod ();
6999 #endif
7000 int
7001 main()
7002 {
7003   {
7004     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
7005     char *string = " +69";
7006     char *term;
7007     double value;
7008     value = strtod (string, &term);
7009     if (value != 69 || term != (string + 4))
7010       return 1;
7011   }
7012
7013   {
7014     /* Under Solaris 2.4, strtod returns the wrong value for the
7015        terminating character under some conditions.  */
7016     char *string = "NaN";
7017     char *term;
7018     strtod (string, &term);
7019     if (term != string && *(term - 1) == 0)
7020       return 1;
7021   }
7022   return 0;
7023 }
7024
7025 _ACEOF
7026 if ac_fn_c_try_run "$LINENO"; then :
7027   ac_cv_func_strtod=yes
7028 else
7029   ac_cv_func_strtod=no
7030 fi
7031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7032   conftest.$ac_objext conftest.beam conftest.$ac_ext
7033 fi
7034
7035 fi
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
7037 $as_echo "$ac_cv_func_strtod" >&6; }
7038 if test $ac_cv_func_strtod = no; then
7039   case " $LIBOBJS " in
7040   *" strtod.$ac_objext "* ) ;;
7041   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7042  ;;
7043 esac
7044
7045 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
7046 if test "x$ac_cv_func_pow" = x""yes; then :
7047
7048 fi
7049
7050 if test $ac_cv_func_pow = no; then
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
7052 $as_echo_n "checking for pow in -lm... " >&6; }
7053 if test "${ac_cv_lib_m_pow+set}" = set; then :
7054   $as_echo_n "(cached) " >&6
7055 else
7056   ac_check_lib_save_LIBS=$LIBS
7057 LIBS="-lm  $LIBS"
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h.  */
7060
7061 /* Override any GCC internal prototype to avoid an error.
7062    Use char because int might match the return type of a GCC
7063    builtin and then its argument prototype would still apply.  */
7064 #ifdef __cplusplus
7065 extern "C"
7066 #endif
7067 char pow ();
7068 int
7069 main ()
7070 {
7071 return pow ();
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 if ac_fn_c_try_link "$LINENO"; then :
7077   ac_cv_lib_m_pow=yes
7078 else
7079   ac_cv_lib_m_pow=no
7080 fi
7081 rm -f core conftest.err conftest.$ac_objext \
7082     conftest$ac_exeext conftest.$ac_ext
7083 LIBS=$ac_check_lib_save_LIBS
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
7086 $as_echo "$ac_cv_lib_m_pow" >&6; }
7087 if test "x$ac_cv_lib_m_pow" = x""yes; then :
7088   POW_LIB=-lm
7089 else
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
7091 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7092 fi
7093
7094 fi
7095
7096 fi
7097
7098 for ac_func in vprintf
7099 do :
7100   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7101 if test "x$ac_cv_func_vprintf" = x""yes; then :
7102   cat >>confdefs.h <<_ACEOF
7103 #define HAVE_VPRINTF 1
7104 _ACEOF
7105
7106 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7107 if test "x$ac_cv_func__doprnt" = x""yes; then :
7108
7109 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7110
7111 fi
7112
7113 fi
7114 done
7115
7116
7117 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
7118 do :
7119   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7120 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7121 eval as_val=\$$as_ac_var
7122    if test "x$as_val" = x""yes; then :
7123   cat >>confdefs.h <<_ACEOF
7124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7125 _ACEOF
7126
7127 fi
7128 done
7129
7130
7131
7132 ac_config_files="$ac_config_files Makefile"
7133
7134 cat >confcache <<\_ACEOF
7135 # This file is a shell script that caches the results of configure
7136 # tests run on this system so they can be shared between configure
7137 # scripts and configure runs, see configure's option --config-cache.
7138 # It is not useful on other systems.  If it contains results you don't
7139 # want to keep, you may remove or edit it.
7140 #
7141 # config.status only pays attention to the cache file if you give it
7142 # the --recheck option to rerun configure.
7143 #
7144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7146 # following values.
7147
7148 _ACEOF
7149
7150 # The following way of writing the cache mishandles newlines in values,
7151 # but we know of no workaround that is simple, portable, and efficient.
7152 # So, we kill variables containing newlines.
7153 # Ultrix sh set writes to stderr and can't be redirected directly,
7154 # and sets the high bit in the cache file unless we assign to the vars.
7155 (
7156   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7157     eval ac_val=\$$ac_var
7158     case $ac_val in #(
7159     *${as_nl}*)
7160       case $ac_var in #(
7161       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7163       esac
7164       case $ac_var in #(
7165       _ | IFS | as_nl) ;; #(
7166       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7167       *) { eval $ac_var=; unset $ac_var;} ;;
7168       esac ;;
7169     esac
7170   done
7171
7172   (set) 2>&1 |
7173     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7174     *${as_nl}ac_space=\ *)
7175       # `set' does not quote correctly, so add quotes: double-quote
7176       # substitution turns \\\\ into \\, and sed turns \\ into \.
7177       sed -n \
7178         "s/'/'\\\\''/g;
7179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7180       ;; #(
7181     *)
7182       # `set' quotes correctly as required by POSIX, so do not add quotes.
7183       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7184       ;;
7185     esac |
7186     sort
7187 ) |
7188   sed '
7189      /^ac_cv_env_/b end
7190      t clear
7191      :clear
7192      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7193      t end
7194      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7195      :end' >>confcache
7196 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7197   if test -w "$cache_file"; then
7198     test "x$cache_file" != "x/dev/null" &&
7199       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7200 $as_echo "$as_me: updating cache $cache_file" >&6;}
7201     cat confcache >$cache_file
7202   else
7203     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7204 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7205   fi
7206 fi
7207 rm -f confcache
7208
7209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7210 # Let make expand exec_prefix.
7211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7212
7213 DEFS=-DHAVE_CONFIG_H
7214
7215 ac_libobjs=
7216 ac_ltlibobjs=
7217 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7218   # 1. Remove the extension, and $U if already installed.
7219   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7220   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7221   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7222   #    will be set to the directory where LIBOBJS objects are built.
7223   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7224   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7225 done
7226 LIBOBJS=$ac_libobjs
7227
7228 LTLIBOBJS=$ac_ltlibobjs
7229
7230
7231 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7232   as_fn_error "conditional \"AMDEP\" was never defined.
7233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7234 fi
7235 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7236   as_fn_error "conditional \"am__fastdepCC\" was never defined.
7237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7238 fi
7239  if test -n "$EXEEXT"; then
7240   am__EXEEXT_TRUE=
7241   am__EXEEXT_FALSE='#'
7242 else
7243   am__EXEEXT_TRUE='#'
7244   am__EXEEXT_FALSE=
7245 fi
7246
7247 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7248   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7250 fi
7251 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
7252   as_fn_error "conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
7253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7254 fi
7255 if test -z "${ENABLE_GSM_BS_TRUE}" && test -z "${ENABLE_GSM_BS_FALSE}"; then
7256   as_fn_error "conditional \"ENABLE_GSM_BS\" was never defined.
7257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7258 fi
7259 if test -z "${ENABLE_GSM_MS_TRUE}" && test -z "${ENABLE_GSM_MS_FALSE}"; then
7260   as_fn_error "conditional \"ENABLE_GSM_MS\" was never defined.
7261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7262 fi
7263 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
7264   as_fn_error "conditional \"ENABLE_GSM\" was never defined.
7265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7266 fi
7267 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
7268   as_fn_error "conditional \"ENABLE_SS5\" was never defined.
7269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7270 fi
7271
7272 : ${CONFIG_STATUS=./config.status}
7273 ac_write_fail=0
7274 ac_clean_files_save=$ac_clean_files
7275 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7277 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7278 as_write_fail=0
7279 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7280 #! $SHELL
7281 # Generated by $as_me.
7282 # Run this file to recreate the current configuration.
7283 # Compiler output produced by configure, useful for debugging
7284 # configure, is in config.log if it exists.
7285
7286 debug=false
7287 ac_cs_recheck=false
7288 ac_cs_silent=false
7289
7290 SHELL=\${CONFIG_SHELL-$SHELL}
7291 export SHELL
7292 _ASEOF
7293 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7294 ## -------------------- ##
7295 ## M4sh Initialization. ##
7296 ## -------------------- ##
7297
7298 # Be more Bourne compatible
7299 DUALCASE=1; export DUALCASE # for MKS sh
7300 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7301   emulate sh
7302   NULLCMD=:
7303   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7304   # is contrary to our usage.  Disable this feature.
7305   alias -g '${1+"$@"}'='"$@"'
7306   setopt NO_GLOB_SUBST
7307 else
7308   case `(set -o) 2>/dev/null` in #(
7309   *posix*) :
7310     set -o posix ;; #(
7311   *) :
7312      ;;
7313 esac
7314 fi
7315
7316
7317 as_nl='
7318 '
7319 export as_nl
7320 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7321 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7324 # Prefer a ksh shell builtin over an external printf program on Solaris,
7325 # but without wasting forks for bash or zsh.
7326 if test -z "$BASH_VERSION$ZSH_VERSION" \
7327     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7328   as_echo='print -r --'
7329   as_echo_n='print -rn --'
7330 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7331   as_echo='printf %s\n'
7332   as_echo_n='printf %s'
7333 else
7334   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7335     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7336     as_echo_n='/usr/ucb/echo -n'
7337   else
7338     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7339     as_echo_n_body='eval
7340       arg=$1;
7341       case $arg in #(
7342       *"$as_nl"*)
7343         expr "X$arg" : "X\\(.*\\)$as_nl";
7344         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7345       esac;
7346       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7347     '
7348     export as_echo_n_body
7349     as_echo_n='sh -c $as_echo_n_body as_echo'
7350   fi
7351   export as_echo_body
7352   as_echo='sh -c $as_echo_body as_echo'
7353 fi
7354
7355 # The user is always right.
7356 if test "${PATH_SEPARATOR+set}" != set; then
7357   PATH_SEPARATOR=:
7358   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7359     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7360       PATH_SEPARATOR=';'
7361   }
7362 fi
7363
7364
7365 # IFS
7366 # We need space, tab and new line, in precisely that order.  Quoting is
7367 # there to prevent editors from complaining about space-tab.
7368 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7369 # splitting by setting IFS to empty value.)
7370 IFS=" ""        $as_nl"
7371
7372 # Find who we are.  Look in the path if we contain no directory separator.
7373 case $0 in #((
7374   *[\\/]* ) as_myself=$0 ;;
7375   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7381   done
7382 IFS=$as_save_IFS
7383
7384      ;;
7385 esac
7386 # We did not find ourselves, most probably we were run as `sh COMMAND'
7387 # in which case we are not to be found in the path.
7388 if test "x$as_myself" = x; then
7389   as_myself=$0
7390 fi
7391 if test ! -f "$as_myself"; then
7392   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7393   exit 1
7394 fi
7395
7396 # Unset variables that we do not need and which cause bugs (e.g. in
7397 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7398 # suppresses any "Segmentation fault" message there.  '((' could
7399 # trigger a bug in pdksh 5.2.14.
7400 for as_var in BASH_ENV ENV MAIL MAILPATH
7401 do eval test x\${$as_var+set} = xset \
7402   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7403 done
7404 PS1='$ '
7405 PS2='> '
7406 PS4='+ '
7407
7408 # NLS nuisances.
7409 LC_ALL=C
7410 export LC_ALL
7411 LANGUAGE=C
7412 export LANGUAGE
7413
7414 # CDPATH.
7415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7416
7417
7418 # as_fn_error ERROR [LINENO LOG_FD]
7419 # ---------------------------------
7420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7422 # script with status $?, using 1 if that was 0.
7423 as_fn_error ()
7424 {
7425   as_status=$?; test $as_status -eq 0 && as_status=1
7426   if test "$3"; then
7427     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7428     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7429   fi
7430   $as_echo "$as_me: error: $1" >&2
7431   as_fn_exit $as_status
7432 } # as_fn_error
7433
7434
7435 # as_fn_set_status STATUS
7436 # -----------------------
7437 # Set $? to STATUS, without forking.
7438 as_fn_set_status ()
7439 {
7440   return $1
7441 } # as_fn_set_status
7442
7443 # as_fn_exit STATUS
7444 # -----------------
7445 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7446 as_fn_exit ()
7447 {
7448   set +e
7449   as_fn_set_status $1
7450   exit $1
7451 } # as_fn_exit
7452
7453 # as_fn_unset VAR
7454 # ---------------
7455 # Portably unset VAR.
7456 as_fn_unset ()
7457 {
7458   { eval $1=; unset $1;}
7459 }
7460 as_unset=as_fn_unset
7461 # as_fn_append VAR VALUE
7462 # ----------------------
7463 # Append the text in VALUE to the end of the definition contained in VAR. Take
7464 # advantage of any shell optimizations that allow amortized linear growth over
7465 # repeated appends, instead of the typical quadratic growth present in naive
7466 # implementations.
7467 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7468   eval 'as_fn_append ()
7469   {
7470     eval $1+=\$2
7471   }'
7472 else
7473   as_fn_append ()
7474   {
7475     eval $1=\$$1\$2
7476   }
7477 fi # as_fn_append
7478
7479 # as_fn_arith ARG...
7480 # ------------------
7481 # Perform arithmetic evaluation on the ARGs, and store the result in the
7482 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7483 # must be portable across $(()) and expr.
7484 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7485   eval 'as_fn_arith ()
7486   {
7487     as_val=$(( $* ))
7488   }'
7489 else
7490   as_fn_arith ()
7491   {
7492     as_val=`expr "$@" || test $? -eq 1`
7493   }
7494 fi # as_fn_arith
7495
7496
7497 if expr a : '\(a\)' >/dev/null 2>&1 &&
7498    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7499   as_expr=expr
7500 else
7501   as_expr=false
7502 fi
7503
7504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7505   as_basename=basename
7506 else
7507   as_basename=false
7508 fi
7509
7510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7511   as_dirname=dirname
7512 else
7513   as_dirname=false
7514 fi
7515
7516 as_me=`$as_basename -- "$0" ||
7517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7518          X"$0" : 'X\(//\)$' \| \
7519          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7520 $as_echo X/"$0" |
7521     sed '/^.*\/\([^/][^/]*\)\/*$/{
7522             s//\1/
7523             q
7524           }
7525           /^X\/\(\/\/\)$/{
7526             s//\1/
7527             q
7528           }
7529           /^X\/\(\/\).*/{
7530             s//\1/
7531             q
7532           }
7533           s/.*/./; q'`
7534
7535 # Avoid depending upon Character Ranges.
7536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7539 as_cr_digits='0123456789'
7540 as_cr_alnum=$as_cr_Letters$as_cr_digits
7541
7542 ECHO_C= ECHO_N= ECHO_T=
7543 case `echo -n x` in #(((((
7544 -n*)
7545   case `echo 'xy\c'` in
7546   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7547   xy)  ECHO_C='\c';;
7548   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7549        ECHO_T=' ';;
7550   esac;;
7551 *)
7552   ECHO_N='-n';;
7553 esac
7554
7555 rm -f conf$$ conf$$.exe conf$$.file
7556 if test -d conf$$.dir; then
7557   rm -f conf$$.dir/conf$$.file
7558 else
7559   rm -f conf$$.dir
7560   mkdir conf$$.dir 2>/dev/null
7561 fi
7562 if (echo >conf$$.file) 2>/dev/null; then
7563   if ln -s conf$$.file conf$$ 2>/dev/null; then
7564     as_ln_s='ln -s'
7565     # ... but there are two gotchas:
7566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7568     # In both cases, we have to default to `cp -p'.
7569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7570       as_ln_s='cp -p'
7571   elif ln conf$$.file conf$$ 2>/dev/null; then
7572     as_ln_s=ln
7573   else
7574     as_ln_s='cp -p'
7575   fi
7576 else
7577   as_ln_s='cp -p'
7578 fi
7579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7580 rmdir conf$$.dir 2>/dev/null
7581
7582
7583 # as_fn_mkdir_p
7584 # -------------
7585 # Create "$as_dir" as a directory, including parents if necessary.
7586 as_fn_mkdir_p ()
7587 {
7588
7589   case $as_dir in #(
7590   -*) as_dir=./$as_dir;;
7591   esac
7592   test -d "$as_dir" || eval $as_mkdir_p || {
7593     as_dirs=
7594     while :; do
7595       case $as_dir in #(
7596       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7597       *) as_qdir=$as_dir;;
7598       esac
7599       as_dirs="'$as_qdir' $as_dirs"
7600       as_dir=`$as_dirname -- "$as_dir" ||
7601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7602          X"$as_dir" : 'X\(//\)[^/]' \| \
7603          X"$as_dir" : 'X\(//\)$' \| \
7604          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7605 $as_echo X"$as_dir" |
7606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7607             s//\1/
7608             q
7609           }
7610           /^X\(\/\/\)[^/].*/{
7611             s//\1/
7612             q
7613           }
7614           /^X\(\/\/\)$/{
7615             s//\1/
7616             q
7617           }
7618           /^X\(\/\).*/{
7619             s//\1/
7620             q
7621           }
7622           s/.*/./; q'`
7623       test -d "$as_dir" && break
7624     done
7625     test -z "$as_dirs" || eval "mkdir $as_dirs"
7626   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7627
7628
7629 } # as_fn_mkdir_p
7630 if mkdir -p . 2>/dev/null; then
7631   as_mkdir_p='mkdir -p "$as_dir"'
7632 else
7633   test -d ./-p && rmdir ./-p
7634   as_mkdir_p=false
7635 fi
7636
7637 if test -x / >/dev/null 2>&1; then
7638   as_test_x='test -x'
7639 else
7640   if ls -dL / >/dev/null 2>&1; then
7641     as_ls_L_option=L
7642   else
7643     as_ls_L_option=
7644   fi
7645   as_test_x='
7646     eval sh -c '\''
7647       if test -d "$1"; then
7648         test -d "$1/.";
7649       else
7650         case $1 in #(
7651         -*)set "./$1";;
7652         esac;
7653         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7654         ???[sx]*):;;*)false;;esac;fi
7655     '\'' sh
7656   '
7657 fi
7658 as_executable_p=$as_test_x
7659
7660 # Sed expression to map a string onto a valid CPP name.
7661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7662
7663 # Sed expression to map a string onto a valid variable name.
7664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7665
7666
7667 exec 6>&1
7668 ## ----------------------------------- ##
7669 ## Main body of $CONFIG_STATUS script. ##
7670 ## ----------------------------------- ##
7671 _ASEOF
7672 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7673
7674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7675 # Save the log message, to keep $0 and so on meaningful, and to
7676 # report actual input values of CONFIG_FILES etc. instead of their
7677 # values after options handling.
7678 ac_log="
7679 This file was extended by lcr $as_me 1.7, which was
7680 generated by GNU Autoconf 2.65.  Invocation command line was
7681
7682   CONFIG_FILES    = $CONFIG_FILES
7683   CONFIG_HEADERS  = $CONFIG_HEADERS
7684   CONFIG_LINKS    = $CONFIG_LINKS
7685   CONFIG_COMMANDS = $CONFIG_COMMANDS
7686   $ $0 $@
7687
7688 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7689 "
7690
7691 _ACEOF
7692
7693 case $ac_config_files in *"
7694 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7695 esac
7696
7697 case $ac_config_headers in *"
7698 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7699 esac
7700
7701
7702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7703 # Files that config.status was made for.
7704 config_files="$ac_config_files"
7705 config_headers="$ac_config_headers"
7706 config_commands="$ac_config_commands"
7707
7708 _ACEOF
7709
7710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7711 ac_cs_usage="\
7712 \`$as_me' instantiates files and other configuration actions
7713 from templates according to the current configuration.  Unless the files
7714 and actions are specified as TAGs, all are instantiated by default.
7715
7716 Usage: $0 [OPTION]... [TAG]...
7717
7718   -h, --help       print this help, then exit
7719   -V, --version    print version number and configuration settings, then exit
7720       --config     print configuration, then exit
7721   -q, --quiet, --silent
7722                    do not print progress messages
7723   -d, --debug      don't remove temporary files
7724       --recheck    update $as_me by reconfiguring in the same conditions
7725       --file=FILE[:TEMPLATE]
7726                    instantiate the configuration file FILE
7727       --header=FILE[:TEMPLATE]
7728                    instantiate the configuration header FILE
7729
7730 Configuration files:
7731 $config_files
7732
7733 Configuration headers:
7734 $config_headers
7735
7736 Configuration commands:
7737 $config_commands
7738
7739 Report bugs to <andreas@eversberg.eu>."
7740
7741 _ACEOF
7742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7743 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7744 ac_cs_version="\\
7745 lcr config.status 1.7
7746 configured by $0, generated by GNU Autoconf 2.65,
7747   with options \\"\$ac_cs_config\\"
7748
7749 Copyright (C) 2009 Free Software Foundation, Inc.
7750 This config.status script is free software; the Free Software Foundation
7751 gives unlimited permission to copy, distribute and modify it."
7752
7753 ac_pwd='$ac_pwd'
7754 srcdir='$srcdir'
7755 INSTALL='$INSTALL'
7756 MKDIR_P='$MKDIR_P'
7757 AWK='$AWK'
7758 test -n "\$AWK" || AWK=awk
7759 _ACEOF
7760
7761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7762 # The default lists apply if the user does not specify any file.
7763 ac_need_defaults=:
7764 while test $# != 0
7765 do
7766   case $1 in
7767   --*=*)
7768     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7769     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7770     ac_shift=:
7771     ;;
7772   *)
7773     ac_option=$1
7774     ac_optarg=$2
7775     ac_shift=shift
7776     ;;
7777   esac
7778
7779   case $ac_option in
7780   # Handling of the options.
7781   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7782     ac_cs_recheck=: ;;
7783   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7784     $as_echo "$ac_cs_version"; exit ;;
7785   --config | --confi | --conf | --con | --co | --c )
7786     $as_echo "$ac_cs_config"; exit ;;
7787   --debug | --debu | --deb | --de | --d | -d )
7788     debug=: ;;
7789   --file | --fil | --fi | --f )
7790     $ac_shift
7791     case $ac_optarg in
7792     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7793     esac
7794     as_fn_append CONFIG_FILES " '$ac_optarg'"
7795     ac_need_defaults=false;;
7796   --header | --heade | --head | --hea )
7797     $ac_shift
7798     case $ac_optarg in
7799     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7800     esac
7801     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7802     ac_need_defaults=false;;
7803   --he | --h)
7804     # Conflict between --help and --header
7805     as_fn_error "ambiguous option: \`$1'
7806 Try \`$0 --help' for more information.";;
7807   --help | --hel | -h )
7808     $as_echo "$ac_cs_usage"; exit ;;
7809   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7810   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7811     ac_cs_silent=: ;;
7812
7813   # This is an error.
7814   -*) as_fn_error "unrecognized option: \`$1'
7815 Try \`$0 --help' for more information." ;;
7816
7817   *) as_fn_append ac_config_targets " $1"
7818      ac_need_defaults=false ;;
7819
7820   esac
7821   shift
7822 done
7823
7824 ac_configure_extra_args=
7825
7826 if $ac_cs_silent; then
7827   exec 6>/dev/null
7828   ac_configure_extra_args="$ac_configure_extra_args --silent"
7829 fi
7830
7831 _ACEOF
7832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7833 if \$ac_cs_recheck; then
7834   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7835   shift
7836   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7837   CONFIG_SHELL='$SHELL'
7838   export CONFIG_SHELL
7839   exec "\$@"
7840 fi
7841
7842 _ACEOF
7843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7844 exec 5>>config.log
7845 {
7846   echo
7847   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7848 ## Running $as_me. ##
7849 _ASBOX
7850   $as_echo "$ac_log"
7851 } >&5
7852
7853 _ACEOF
7854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7855 #
7856 # INIT-COMMANDS
7857 #
7858 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7859
7860 _ACEOF
7861
7862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7863
7864 # Handling of arguments.
7865 for ac_config_target in $ac_config_targets
7866 do
7867   case $ac_config_target in
7868     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7869     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7870     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7871
7872   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7873   esac
7874 done
7875
7876
7877 # If the user did not use the arguments to specify the items to instantiate,
7878 # then the envvar interface is used.  Set only those that are not.
7879 # We use the long form for the default assignment because of an extremely
7880 # bizarre bug on SunOS 4.1.3.
7881 if $ac_need_defaults; then
7882   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7883   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7884   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7885 fi
7886
7887 # Have a temporary directory for convenience.  Make it in the build tree
7888 # simply because there is no reason against having it here, and in addition,
7889 # creating and moving files from /tmp can sometimes cause problems.
7890 # Hook for its removal unless debugging.
7891 # Note that there is a small window in which the directory will not be cleaned:
7892 # after its creation but before its name has been assigned to `$tmp'.
7893 $debug ||
7894 {
7895   tmp=
7896   trap 'exit_status=$?
7897   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7898 ' 0
7899   trap 'as_fn_exit 1' 1 2 13 15
7900 }
7901 # Create a (secure) tmp directory for tmp files.
7902
7903 {
7904   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7905   test -n "$tmp" && test -d "$tmp"
7906 }  ||
7907 {
7908   tmp=./conf$$-$RANDOM
7909   (umask 077 && mkdir "$tmp")
7910 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7911
7912 # Set up the scripts for CONFIG_FILES section.
7913 # No need to generate them if there are no CONFIG_FILES.
7914 # This happens for instance with `./config.status config.h'.
7915 if test -n "$CONFIG_FILES"; then
7916
7917
7918 ac_cr=`echo X | tr X '\015'`
7919 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7920 # But we know of no other shell where ac_cr would be empty at this
7921 # point, so we can use a bashism as a fallback.
7922 if test "x$ac_cr" = x; then
7923   eval ac_cr=\$\'\\r\'
7924 fi
7925 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7926 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7927   ac_cs_awk_cr='\r'
7928 else
7929   ac_cs_awk_cr=$ac_cr
7930 fi
7931
7932 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7933 _ACEOF
7934
7935
7936 {
7937   echo "cat >conf$$subs.awk <<_ACEOF" &&
7938   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7939   echo "_ACEOF"
7940 } >conf$$subs.sh ||
7941   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7942 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7943 ac_delim='%!_!# '
7944 for ac_last_try in false false false false false :; do
7945   . ./conf$$subs.sh ||
7946     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7947
7948   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7949   if test $ac_delim_n = $ac_delim_num; then
7950     break
7951   elif $ac_last_try; then
7952     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7953   else
7954     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7955   fi
7956 done
7957 rm -f conf$$subs.sh
7958
7959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7960 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7961 _ACEOF
7962 sed -n '
7963 h
7964 s/^/S["/; s/!.*/"]=/
7965 p
7966 g
7967 s/^[^!]*!//
7968 :repl
7969 t repl
7970 s/'"$ac_delim"'$//
7971 t delim
7972 :nl
7973 h
7974 s/\(.\{148\}\)..*/\1/
7975 t more1
7976 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7977 p
7978 n
7979 b repl
7980 :more1
7981 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7982 p
7983 g
7984 s/.\{148\}//
7985 t nl
7986 :delim
7987 h
7988 s/\(.\{148\}\)..*/\1/
7989 t more2
7990 s/["\\]/\\&/g; s/^/"/; s/$/"/
7991 p
7992 b
7993 :more2
7994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7995 p
7996 g
7997 s/.\{148\}//
7998 t delim
7999 ' <conf$$subs.awk | sed '
8000 /^[^""]/{
8001   N
8002   s/\n//
8003 }
8004 ' >>$CONFIG_STATUS || ac_write_fail=1
8005 rm -f conf$$subs.awk
8006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8007 _ACAWK
8008 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8009   for (key in S) S_is_set[key] = 1
8010   FS = "\a"
8011
8012 }
8013 {
8014   line = $ 0
8015   nfields = split(line, field, "@")
8016   substed = 0
8017   len = length(field[1])
8018   for (i = 2; i < nfields; i++) {
8019     key = field[i]
8020     keylen = length(key)
8021     if (S_is_set[key]) {
8022       value = S[key]
8023       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8024       len += length(value) + length(field[++i])
8025       substed = 1
8026     } else
8027       len += 1 + keylen
8028   }
8029
8030   print line
8031 }
8032
8033 _ACAWK
8034 _ACEOF
8035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8036 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8037   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8038 else
8039   cat
8040 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8041   || as_fn_error "could not setup config files machinery" "$LINENO" 5
8042 _ACEOF
8043
8044 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8045 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8046 # trailing colons and then remove the whole line if VPATH becomes empty
8047 # (actually we leave an empty line to preserve line numbers).
8048 if test "x$srcdir" = x.; then
8049   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8050 s/:*\$(srcdir):*/:/
8051 s/:*\${srcdir}:*/:/
8052 s/:*@srcdir@:*/:/
8053 s/^\([^=]*=[     ]*\):*/\1/
8054 s/:*$//
8055 s/^[^=]*=[       ]*$//
8056 }'
8057 fi
8058
8059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8060 fi # test -n "$CONFIG_FILES"
8061
8062 # Set up the scripts for CONFIG_HEADERS section.
8063 # No need to generate them if there are no CONFIG_HEADERS.
8064 # This happens for instance with `./config.status Makefile'.
8065 if test -n "$CONFIG_HEADERS"; then
8066 cat >"$tmp/defines.awk" <<\_ACAWK ||
8067 BEGIN {
8068 _ACEOF
8069
8070 # Transform confdefs.h into an awk script `defines.awk', embedded as
8071 # here-document in config.status, that substitutes the proper values into
8072 # config.h.in to produce config.h.
8073
8074 # Create a delimiter string that does not exist in confdefs.h, to ease
8075 # handling of long lines.
8076 ac_delim='%!_!# '
8077 for ac_last_try in false false :; do
8078   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8079   if test -z "$ac_t"; then
8080     break
8081   elif $ac_last_try; then
8082     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8083   else
8084     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8085   fi
8086 done
8087
8088 # For the awk script, D is an array of macro values keyed by name,
8089 # likewise P contains macro parameters if any.  Preserve backslash
8090 # newline sequences.
8091
8092 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8093 sed -n '
8094 s/.\{148\}/&'"$ac_delim"'/g
8095 t rset
8096 :rset
8097 s/^[     ]*#[    ]*define[       ][      ]*/ /
8098 t def
8099 d
8100 :def
8101 s/\\$//
8102 t bsnl
8103 s/["\\]/\\&/g
8104 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8105 D["\1"]=" \3"/p
8106 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8107 d
8108 :bsnl
8109 s/["\\]/\\&/g
8110 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8111 D["\1"]=" \3\\\\\\n"\\/p
8112 t cont
8113 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8114 t cont
8115 d
8116 :cont
8117 n
8118 s/.\{148\}/&'"$ac_delim"'/g
8119 t clear
8120 :clear
8121 s/\\$//
8122 t bsnlc
8123 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8124 d
8125 :bsnlc
8126 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8127 b cont
8128 ' <confdefs.h | sed '
8129 s/'"$ac_delim"'/"\\\
8130 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8131
8132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8133   for (key in D) D_is_set[key] = 1
8134   FS = "\a"
8135 }
8136 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8137   line = \$ 0
8138   split(line, arg, " ")
8139   if (arg[1] == "#") {
8140     defundef = arg[2]
8141     mac1 = arg[3]
8142   } else {
8143     defundef = substr(arg[1], 2)
8144     mac1 = arg[2]
8145   }
8146   split(mac1, mac2, "(") #)
8147   macro = mac2[1]
8148   prefix = substr(line, 1, index(line, defundef) - 1)
8149   if (D_is_set[macro]) {
8150     # Preserve the white space surrounding the "#".
8151     print prefix "define", macro P[macro] D[macro]
8152     next
8153   } else {
8154     # Replace #undef with comments.  This is necessary, for example,
8155     # in the case of _POSIX_SOURCE, which is predefined and required
8156     # on some systems where configure will not decide to define it.
8157     if (defundef == "undef") {
8158       print "/*", prefix defundef, macro, "*/"
8159       next
8160     }
8161   }
8162 }
8163 { print }
8164 _ACAWK
8165 _ACEOF
8166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8167   as_fn_error "could not setup config headers machinery" "$LINENO" 5
8168 fi # test -n "$CONFIG_HEADERS"
8169
8170
8171 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8172 shift
8173 for ac_tag
8174 do
8175   case $ac_tag in
8176   :[FHLC]) ac_mode=$ac_tag; continue;;
8177   esac
8178   case $ac_mode$ac_tag in
8179   :[FHL]*:*);;
8180   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8181   :[FH]-) ac_tag=-:-;;
8182   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8183   esac
8184   ac_save_IFS=$IFS
8185   IFS=:
8186   set x $ac_tag
8187   IFS=$ac_save_IFS
8188   shift
8189   ac_file=$1
8190   shift
8191
8192   case $ac_mode in
8193   :L) ac_source=$1;;
8194   :[FH])
8195     ac_file_inputs=
8196     for ac_f
8197     do
8198       case $ac_f in
8199       -) ac_f="$tmp/stdin";;
8200       *) # Look for the file first in the build tree, then in the source tree
8201          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8202          # because $ac_f cannot contain `:'.
8203          test -f "$ac_f" ||
8204            case $ac_f in
8205            [\\/$]*) false;;
8206            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8207            esac ||
8208            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8209       esac
8210       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8211       as_fn_append ac_file_inputs " '$ac_f'"
8212     done
8213
8214     # Let's still pretend it is `configure' which instantiates (i.e., don't
8215     # use $as_me), people would be surprised to read:
8216     #    /* config.h.  Generated by config.status.  */
8217     configure_input='Generated from '`
8218           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8219         `' by configure.'
8220     if test x"$ac_file" != x-; then
8221       configure_input="$ac_file.  $configure_input"
8222       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8223 $as_echo "$as_me: creating $ac_file" >&6;}
8224     fi
8225     # Neutralize special characters interpreted by sed in replacement strings.
8226     case $configure_input in #(
8227     *\&* | *\|* | *\\* )
8228        ac_sed_conf_input=`$as_echo "$configure_input" |
8229        sed 's/[\\\\&|]/\\\\&/g'`;; #(
8230     *) ac_sed_conf_input=$configure_input;;
8231     esac
8232
8233     case $ac_tag in
8234     *:-:* | *:-) cat >"$tmp/stdin" \
8235       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8236     esac
8237     ;;
8238   esac
8239
8240   ac_dir=`$as_dirname -- "$ac_file" ||
8241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8242          X"$ac_file" : 'X\(//\)[^/]' \| \
8243          X"$ac_file" : 'X\(//\)$' \| \
8244          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8245 $as_echo X"$ac_file" |
8246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8247             s//\1/
8248             q
8249           }
8250           /^X\(\/\/\)[^/].*/{
8251             s//\1/
8252             q
8253           }
8254           /^X\(\/\/\)$/{
8255             s//\1/
8256             q
8257           }
8258           /^X\(\/\).*/{
8259             s//\1/
8260             q
8261           }
8262           s/.*/./; q'`
8263   as_dir="$ac_dir"; as_fn_mkdir_p
8264   ac_builddir=.
8265
8266 case "$ac_dir" in
8267 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8268 *)
8269   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8270   # A ".." for each directory in $ac_dir_suffix.
8271   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8272   case $ac_top_builddir_sub in
8273   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8274   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8275   esac ;;
8276 esac
8277 ac_abs_top_builddir=$ac_pwd
8278 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8279 # for backward compatibility:
8280 ac_top_builddir=$ac_top_build_prefix
8281
8282 case $srcdir in
8283   .)  # We are building in place.
8284     ac_srcdir=.
8285     ac_top_srcdir=$ac_top_builddir_sub
8286     ac_abs_top_srcdir=$ac_pwd ;;
8287   [\\/]* | ?:[\\/]* )  # Absolute name.
8288     ac_srcdir=$srcdir$ac_dir_suffix;
8289     ac_top_srcdir=$srcdir
8290     ac_abs_top_srcdir=$srcdir ;;
8291   *) # Relative name.
8292     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8293     ac_top_srcdir=$ac_top_build_prefix$srcdir
8294     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8295 esac
8296 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8297
8298
8299   case $ac_mode in
8300   :F)
8301   #
8302   # CONFIG_FILE
8303   #
8304
8305   case $INSTALL in
8306   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8307   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8308   esac
8309   ac_MKDIR_P=$MKDIR_P
8310   case $MKDIR_P in
8311   [\\/$]* | ?:[\\/]* ) ;;
8312   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8313   esac
8314 _ACEOF
8315
8316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8317 # If the template does not know about datarootdir, expand it.
8318 # FIXME: This hack should be removed a few years after 2.60.
8319 ac_datarootdir_hack=; ac_datarootdir_seen=
8320 ac_sed_dataroot='
8321 /datarootdir/ {
8322   p
8323   q
8324 }
8325 /@datadir@/p
8326 /@docdir@/p
8327 /@infodir@/p
8328 /@localedir@/p
8329 /@mandir@/p'
8330 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8331 *datarootdir*) ac_datarootdir_seen=yes;;
8332 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8334 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8335 _ACEOF
8336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8337   ac_datarootdir_hack='
8338   s&@datadir@&$datadir&g
8339   s&@docdir@&$docdir&g
8340   s&@infodir@&$infodir&g
8341   s&@localedir@&$localedir&g
8342   s&@mandir@&$mandir&g
8343   s&\\\${datarootdir}&$datarootdir&g' ;;
8344 esac
8345 _ACEOF
8346
8347 # Neutralize VPATH when `$srcdir' = `.'.
8348 # Shell code in configure.ac might set extrasub.
8349 # FIXME: do we really want to maintain this feature?
8350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8351 ac_sed_extra="$ac_vpsub
8352 $extrasub
8353 _ACEOF
8354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8355 :t
8356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8357 s|@configure_input@|$ac_sed_conf_input|;t t
8358 s&@top_builddir@&$ac_top_builddir_sub&;t t
8359 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8360 s&@srcdir@&$ac_srcdir&;t t
8361 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8362 s&@top_srcdir@&$ac_top_srcdir&;t t
8363 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8364 s&@builddir@&$ac_builddir&;t t
8365 s&@abs_builddir@&$ac_abs_builddir&;t t
8366 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8367 s&@INSTALL@&$ac_INSTALL&;t t
8368 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8369 $ac_datarootdir_hack
8370 "
8371 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8372   || as_fn_error "could not create $ac_file" "$LINENO" 5
8373
8374 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8375   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8376   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8378 which seems to be undefined.  Please make sure it is defined." >&5
8379 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8380 which seems to be undefined.  Please make sure it is defined." >&2;}
8381
8382   rm -f "$tmp/stdin"
8383   case $ac_file in
8384   -) cat "$tmp/out" && rm -f "$tmp/out";;
8385   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8386   esac \
8387   || as_fn_error "could not create $ac_file" "$LINENO" 5
8388  ;;
8389   :H)
8390   #
8391   # CONFIG_HEADER
8392   #
8393   if test x"$ac_file" != x-; then
8394     {
8395       $as_echo "/* $configure_input  */" \
8396       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8397     } >"$tmp/config.h" \
8398       || as_fn_error "could not create $ac_file" "$LINENO" 5
8399     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8400       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8401 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8402     else
8403       rm -f "$ac_file"
8404       mv "$tmp/config.h" "$ac_file" \
8405         || as_fn_error "could not create $ac_file" "$LINENO" 5
8406     fi
8407   else
8408     $as_echo "/* $configure_input  */" \
8409       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8410       || as_fn_error "could not create -" "$LINENO" 5
8411   fi
8412 # Compute "$ac_file"'s index in $config_headers.
8413 _am_arg="$ac_file"
8414 _am_stamp_count=1
8415 for _am_header in $config_headers :; do
8416   case $_am_header in
8417     $_am_arg | $_am_arg:* )
8418       break ;;
8419     * )
8420       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8421   esac
8422 done
8423 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8424 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8425          X"$_am_arg" : 'X\(//\)[^/]' \| \
8426          X"$_am_arg" : 'X\(//\)$' \| \
8427          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8428 $as_echo X"$_am_arg" |
8429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8430             s//\1/
8431             q
8432           }
8433           /^X\(\/\/\)[^/].*/{
8434             s//\1/
8435             q
8436           }
8437           /^X\(\/\/\)$/{
8438             s//\1/
8439             q
8440           }
8441           /^X\(\/\).*/{
8442             s//\1/
8443             q
8444           }
8445           s/.*/./; q'`/stamp-h$_am_stamp_count
8446  ;;
8447
8448   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8449 $as_echo "$as_me: executing $ac_file commands" >&6;}
8450  ;;
8451   esac
8452
8453
8454   case $ac_file$ac_mode in
8455     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8456   # Autoconf 2.62 quotes --file arguments for eval, but not when files
8457   # are listed without --file.  Let's play safe and only enable the eval
8458   # if we detect the quoting.
8459   case $CONFIG_FILES in
8460   *\'*) eval set x "$CONFIG_FILES" ;;
8461   *)   set x $CONFIG_FILES ;;
8462   esac
8463   shift
8464   for mf
8465   do
8466     # Strip MF so we end up with the name of the file.
8467     mf=`echo "$mf" | sed -e 's/:.*$//'`
8468     # Check whether this is an Automake generated Makefile or not.
8469     # We used to match only the files named `Makefile.in', but
8470     # some people rename them; so instead we look at the file content.
8471     # Grep'ing the first line is not enough: some people post-process
8472     # each Makefile.in and add a new line on top of each file to say so.
8473     # Grep'ing the whole file is not good either: AIX grep has a line
8474     # limit of 2048, but all sed's we know have understand at least 4000.
8475     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8476       dirpart=`$as_dirname -- "$mf" ||
8477 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8478          X"$mf" : 'X\(//\)[^/]' \| \
8479          X"$mf" : 'X\(//\)$' \| \
8480          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8481 $as_echo X"$mf" |
8482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8483             s//\1/
8484             q
8485           }
8486           /^X\(\/\/\)[^/].*/{
8487             s//\1/
8488             q
8489           }
8490           /^X\(\/\/\)$/{
8491             s//\1/
8492             q
8493           }
8494           /^X\(\/\).*/{
8495             s//\1/
8496             q
8497           }
8498           s/.*/./; q'`
8499     else
8500       continue
8501     fi
8502     # Extract the definition of DEPDIR, am__include, and am__quote
8503     # from the Makefile without running `make'.
8504     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8505     test -z "$DEPDIR" && continue
8506     am__include=`sed -n 's/^am__include = //p' < "$mf"`
8507     test -z "am__include" && continue
8508     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8509     # When using ansi2knr, U may be empty or an underscore; expand it
8510     U=`sed -n 's/^U = //p' < "$mf"`
8511     # Find all dependency output files, they are included files with
8512     # $(DEPDIR) in their names.  We invoke sed twice because it is the
8513     # simplest approach to changing $(DEPDIR) to its actual value in the
8514     # expansion.
8515     for file in `sed -n "
8516       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8517          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8518       # Make sure the directory exists.
8519       test -f "$dirpart/$file" && continue
8520       fdir=`$as_dirname -- "$file" ||
8521 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8522          X"$file" : 'X\(//\)[^/]' \| \
8523          X"$file" : 'X\(//\)$' \| \
8524          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8525 $as_echo X"$file" |
8526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8527             s//\1/
8528             q
8529           }
8530           /^X\(\/\/\)[^/].*/{
8531             s//\1/
8532             q
8533           }
8534           /^X\(\/\/\)$/{
8535             s//\1/
8536             q
8537           }
8538           /^X\(\/\).*/{
8539             s//\1/
8540             q
8541           }
8542           s/.*/./; q'`
8543       as_dir=$dirpart/$fdir; as_fn_mkdir_p
8544       # echo "creating $dirpart/$file"
8545       echo '# dummy' > "$dirpart/$file"
8546     done
8547   done
8548 }
8549  ;;
8550
8551   esac
8552 done # for ac_tag
8553
8554
8555 as_fn_exit 0
8556 _ACEOF
8557 ac_clean_files=$ac_clean_files_save
8558
8559 test $ac_write_fail = 0 ||
8560   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8561
8562
8563 # configure is writing to config.log, and then calls config.status.
8564 # config.status does its own redirection, appending to config.log.
8565 # Unfortunately, on DOS this fails, as config.log is still kept open
8566 # by configure, so config.status won't be able to write to it; its
8567 # output is simply discarded.  So we exec the FD to /dev/null,
8568 # effectively closing config.log, so it can be properly (re)opened and
8569 # appended to by config.status.  When coming back to configure, we
8570 # need to make the FD available again.
8571 if test "$no_create" != yes; then
8572   ac_cs_success=:
8573   ac_config_status_args=
8574   test "$silent" = yes &&
8575     ac_config_status_args="$ac_config_status_args --quiet"
8576   exec 5>/dev/null
8577   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8578   exec 5>>config.log
8579   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8580   # would make configure fail if this is the last instruction.
8581   $ac_cs_success || as_fn_exit $?
8582 fi
8583 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8585 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8586 fi
8587