OSDN Git Service

Regenerate tree using Autoconf 2.64 and Automake 1.11.
[pf3gnuchains/pf3gnuchains4x.git] / gdb / gdbserver / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="server.c"
555 ac_config_libobj_dir=../gnulib
556 # Factoring default headers for most tests.
557 ac_includes_default="\
558 #include <stdio.h>
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
564 #endif
565 #ifdef STDC_HEADERS
566 # include <stdlib.h>
567 # include <stddef.h>
568 #else
569 # ifdef HAVE_STDLIB_H
570 #  include <stdlib.h>
571 # endif
572 #endif
573 #ifdef HAVE_STRING_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575 #  include <memory.h>
576 # endif
577 # include <string.h>
578 #endif
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
581 #endif
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
584 #endif
585 #ifdef HAVE_STDINT_H
586 # include <stdint.h>
587 #endif
588 #ifdef HAVE_UNISTD_H
589 # include <unistd.h>
590 #endif"
591
592 ac_subst_vars='LTLIBOBJS
593 srv_xmlfiles
594 srv_xmlbuiltin
595 USE_THREAD_DB
596 GDBSERVER_LIBS
597 GDBSERVER_DEPFILES
598 RDYNAMIC
599 REPORT_BUGS_TEXI
600 REPORT_BUGS_TO
601 PKGVERSION
602 LIBOBJS
603 INSTALL_DATA
604 INSTALL_SCRIPT
605 INSTALL_PROGRAM
606 target_os
607 target_vendor
608 target_cpu
609 target
610 host_os
611 host_vendor
612 host_cpu
613 host
614 build_os
615 build_vendor
616 build_cpu
617 build
618 EGREP
619 GREP
620 CPP
621 OBJEXT
622 EXEEXT
623 ac_ct_CC
624 CPPFLAGS
625 LDFLAGS
626 CFLAGS
627 CC
628 target_alias
629 host_alias
630 build_alias
631 LIBS
632 ECHO_T
633 ECHO_N
634 ECHO_C
635 DEFS
636 mandir
637 localedir
638 libdir
639 psdir
640 pdfdir
641 dvidir
642 htmldir
643 infodir
644 docdir
645 oldincludedir
646 includedir
647 localstatedir
648 sharedstatedir
649 sysconfdir
650 datadir
651 datarootdir
652 libexecdir
653 sbindir
654 bindir
655 program_transform_name
656 prefix
657 exec_prefix
658 PACKAGE_URL
659 PACKAGE_BUGREPORT
660 PACKAGE_STRING
661 PACKAGE_VERSION
662 PACKAGE_TARNAME
663 PACKAGE_NAME
664 PATH_SEPARATOR
665 SHELL'
666 ac_subst_files=''
667 ac_user_opts='
668 enable_option_checking
669 with_pkgversion
670 with_bugurl
671 '
672       ac_precious_vars='build_alias
673 host_alias
674 target_alias
675 CC
676 CFLAGS
677 LDFLAGS
678 LIBS
679 CPPFLAGS
680 CPP'
681
682
683 # Initialize some variables set by options.
684 ac_init_help=
685 ac_init_version=false
686 ac_unrecognized_opts=
687 ac_unrecognized_sep=
688 # The variables have the same names as the options, with
689 # dashes changed to underlines.
690 cache_file=/dev/null
691 exec_prefix=NONE
692 no_create=
693 no_recursion=
694 prefix=NONE
695 program_prefix=NONE
696 program_suffix=NONE
697 program_transform_name=s,x,x,
698 silent=
699 site=
700 srcdir=
701 verbose=
702 x_includes=NONE
703 x_libraries=NONE
704
705 # Installation directory options.
706 # These are left unexpanded so users can "make install exec_prefix=/foo"
707 # and all the variables that are supposed to be based on exec_prefix
708 # by default will actually change.
709 # Use braces instead of parens because sh, perl, etc. also accept them.
710 # (The list follows the same order as the GNU Coding Standards.)
711 bindir='${exec_prefix}/bin'
712 sbindir='${exec_prefix}/sbin'
713 libexecdir='${exec_prefix}/libexec'
714 datarootdir='${prefix}/share'
715 datadir='${datarootdir}'
716 sysconfdir='${prefix}/etc'
717 sharedstatedir='${prefix}/com'
718 localstatedir='${prefix}/var'
719 includedir='${prefix}/include'
720 oldincludedir='/usr/include'
721 docdir='${datarootdir}/doc/${PACKAGE}'
722 infodir='${datarootdir}/info'
723 htmldir='${docdir}'
724 dvidir='${docdir}'
725 pdfdir='${docdir}'
726 psdir='${docdir}'
727 libdir='${exec_prefix}/lib'
728 localedir='${datarootdir}/locale'
729 mandir='${datarootdir}/man'
730
731 ac_prev=
732 ac_dashdash=
733 for ac_option
734 do
735   # If the previous option needs an argument, assign it.
736   if test -n "$ac_prev"; then
737     eval $ac_prev=\$ac_option
738     ac_prev=
739     continue
740   fi
741
742   case $ac_option in
743   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
744   *)    ac_optarg=yes ;;
745   esac
746
747   # Accept the important Cygnus configure options, so we can diagnose typos.
748
749   case $ac_dashdash$ac_option in
750   --)
751     ac_dashdash=yes ;;
752
753   -bindir | --bindir | --bindi | --bind | --bin | --bi)
754     ac_prev=bindir ;;
755   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
756     bindir=$ac_optarg ;;
757
758   -build | --build | --buil | --bui | --bu)
759     ac_prev=build_alias ;;
760   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
761     build_alias=$ac_optarg ;;
762
763   -cache-file | --cache-file | --cache-fil | --cache-fi \
764   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
765     ac_prev=cache_file ;;
766   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
767   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
768     cache_file=$ac_optarg ;;
769
770   --config-cache | -C)
771     cache_file=config.cache ;;
772
773   -datadir | --datadir | --datadi | --datad)
774     ac_prev=datadir ;;
775   -datadir=* | --datadir=* | --datadi=* | --datad=*)
776     datadir=$ac_optarg ;;
777
778   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
779   | --dataroo | --dataro | --datar)
780     ac_prev=datarootdir ;;
781   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
782   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
783     datarootdir=$ac_optarg ;;
784
785   -disable-* | --disable-*)
786     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
789       as_fn_error "invalid feature name: $ac_useropt"
790     ac_useropt_orig=$ac_useropt
791     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
792     case $ac_user_opts in
793       *"
794 "enable_$ac_useropt"
795 "*) ;;
796       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
797          ac_unrecognized_sep=', ';;
798     esac
799     eval enable_$ac_useropt=no ;;
800
801   -docdir | --docdir | --docdi | --doc | --do)
802     ac_prev=docdir ;;
803   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
804     docdir=$ac_optarg ;;
805
806   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
807     ac_prev=dvidir ;;
808   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
809     dvidir=$ac_optarg ;;
810
811   -enable-* | --enable-*)
812     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
813     # Reject names that are not valid shell variable names.
814     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
815       as_fn_error "invalid feature name: $ac_useropt"
816     ac_useropt_orig=$ac_useropt
817     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
818     case $ac_user_opts in
819       *"
820 "enable_$ac_useropt"
821 "*) ;;
822       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
823          ac_unrecognized_sep=', ';;
824     esac
825     eval enable_$ac_useropt=\$ac_optarg ;;
826
827   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
828   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
829   | --exec | --exe | --ex)
830     ac_prev=exec_prefix ;;
831   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
832   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
833   | --exec=* | --exe=* | --ex=*)
834     exec_prefix=$ac_optarg ;;
835
836   -gas | --gas | --ga | --g)
837     # Obsolete; use --with-gas.
838     with_gas=yes ;;
839
840   -help | --help | --hel | --he | -h)
841     ac_init_help=long ;;
842   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
843     ac_init_help=recursive ;;
844   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
845     ac_init_help=short ;;
846
847   -host | --host | --hos | --ho)
848     ac_prev=host_alias ;;
849   -host=* | --host=* | --hos=* | --ho=*)
850     host_alias=$ac_optarg ;;
851
852   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
853     ac_prev=htmldir ;;
854   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
855   | --ht=*)
856     htmldir=$ac_optarg ;;
857
858   -includedir | --includedir | --includedi | --included | --include \
859   | --includ | --inclu | --incl | --inc)
860     ac_prev=includedir ;;
861   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
862   | --includ=* | --inclu=* | --incl=* | --inc=*)
863     includedir=$ac_optarg ;;
864
865   -infodir | --infodir | --infodi | --infod | --info | --inf)
866     ac_prev=infodir ;;
867   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
868     infodir=$ac_optarg ;;
869
870   -libdir | --libdir | --libdi | --libd)
871     ac_prev=libdir ;;
872   -libdir=* | --libdir=* | --libdi=* | --libd=*)
873     libdir=$ac_optarg ;;
874
875   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
876   | --libexe | --libex | --libe)
877     ac_prev=libexecdir ;;
878   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
879   | --libexe=* | --libex=* | --libe=*)
880     libexecdir=$ac_optarg ;;
881
882   -localedir | --localedir | --localedi | --localed | --locale)
883     ac_prev=localedir ;;
884   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
885     localedir=$ac_optarg ;;
886
887   -localstatedir | --localstatedir | --localstatedi | --localstated \
888   | --localstate | --localstat | --localsta | --localst | --locals)
889     ac_prev=localstatedir ;;
890   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
891   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
892     localstatedir=$ac_optarg ;;
893
894   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
895     ac_prev=mandir ;;
896   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
897     mandir=$ac_optarg ;;
898
899   -nfp | --nfp | --nf)
900     # Obsolete; use --without-fp.
901     with_fp=no ;;
902
903   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
904   | --no-cr | --no-c | -n)
905     no_create=yes ;;
906
907   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
908   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
909     no_recursion=yes ;;
910
911   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
912   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
913   | --oldin | --oldi | --old | --ol | --o)
914     ac_prev=oldincludedir ;;
915   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
916   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
917   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
918     oldincludedir=$ac_optarg ;;
919
920   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
921     ac_prev=prefix ;;
922   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
923     prefix=$ac_optarg ;;
924
925   -program-prefix | --program-prefix | --program-prefi | --program-pref \
926   | --program-pre | --program-pr | --program-p)
927     ac_prev=program_prefix ;;
928   -program-prefix=* | --program-prefix=* | --program-prefi=* \
929   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
930     program_prefix=$ac_optarg ;;
931
932   -program-suffix | --program-suffix | --program-suffi | --program-suff \
933   | --program-suf | --program-su | --program-s)
934     ac_prev=program_suffix ;;
935   -program-suffix=* | --program-suffix=* | --program-suffi=* \
936   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
937     program_suffix=$ac_optarg ;;
938
939   -program-transform-name | --program-transform-name \
940   | --program-transform-nam | --program-transform-na \
941   | --program-transform-n | --program-transform- \
942   | --program-transform | --program-transfor \
943   | --program-transfo | --program-transf \
944   | --program-trans | --program-tran \
945   | --progr-tra | --program-tr | --program-t)
946     ac_prev=program_transform_name ;;
947   -program-transform-name=* | --program-transform-name=* \
948   | --program-transform-nam=* | --program-transform-na=* \
949   | --program-transform-n=* | --program-transform-=* \
950   | --program-transform=* | --program-transfor=* \
951   | --program-transfo=* | --program-transf=* \
952   | --program-trans=* | --program-tran=* \
953   | --progr-tra=* | --program-tr=* | --program-t=*)
954     program_transform_name=$ac_optarg ;;
955
956   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
957     ac_prev=pdfdir ;;
958   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
959     pdfdir=$ac_optarg ;;
960
961   -psdir | --psdir | --psdi | --psd | --ps)
962     ac_prev=psdir ;;
963   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
964     psdir=$ac_optarg ;;
965
966   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
967   | -silent | --silent | --silen | --sile | --sil)
968     silent=yes ;;
969
970   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
971     ac_prev=sbindir ;;
972   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
973   | --sbi=* | --sb=*)
974     sbindir=$ac_optarg ;;
975
976   -sharedstatedir | --sharedstatedir | --sharedstatedi \
977   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
978   | --sharedst | --shareds | --shared | --share | --shar \
979   | --sha | --sh)
980     ac_prev=sharedstatedir ;;
981   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
982   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
983   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
984   | --sha=* | --sh=*)
985     sharedstatedir=$ac_optarg ;;
986
987   -site | --site | --sit)
988     ac_prev=site ;;
989   -site=* | --site=* | --sit=*)
990     site=$ac_optarg ;;
991
992   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
993     ac_prev=srcdir ;;
994   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
995     srcdir=$ac_optarg ;;
996
997   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
998   | --syscon | --sysco | --sysc | --sys | --sy)
999     ac_prev=sysconfdir ;;
1000   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1001   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1002     sysconfdir=$ac_optarg ;;
1003
1004   -target | --target | --targe | --targ | --tar | --ta | --t)
1005     ac_prev=target_alias ;;
1006   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1007     target_alias=$ac_optarg ;;
1008
1009   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1010     verbose=yes ;;
1011
1012   -version | --version | --versio | --versi | --vers | -V)
1013     ac_init_version=: ;;
1014
1015   -with-* | --with-*)
1016     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019       as_fn_error "invalid package name: $ac_useropt"
1020     ac_useropt_orig=$ac_useropt
1021     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022     case $ac_user_opts in
1023       *"
1024 "with_$ac_useropt"
1025 "*) ;;
1026       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1027          ac_unrecognized_sep=', ';;
1028     esac
1029     eval with_$ac_useropt=\$ac_optarg ;;
1030
1031   -without-* | --without-*)
1032     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1033     # Reject names that are not valid shell variable names.
1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035       as_fn_error "invalid package name: $ac_useropt"
1036     ac_useropt_orig=$ac_useropt
1037     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038     case $ac_user_opts in
1039       *"
1040 "with_$ac_useropt"
1041 "*) ;;
1042       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1043          ac_unrecognized_sep=', ';;
1044     esac
1045     eval with_$ac_useropt=no ;;
1046
1047   --x)
1048     # Obsolete; use --with-x.
1049     with_x=yes ;;
1050
1051   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052   | --x-incl | --x-inc | --x-in | --x-i)
1053     ac_prev=x_includes ;;
1054   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056     x_includes=$ac_optarg ;;
1057
1058   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060     ac_prev=x_libraries ;;
1061   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063     x_libraries=$ac_optarg ;;
1064
1065   -*) as_fn_error "unrecognized option: \`$ac_option'
1066 Try \`$0 --help' for more information."
1067     ;;
1068
1069   *=*)
1070     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071     # Reject names that are not valid shell variable names.
1072     case $ac_envvar in #(
1073       '' | [0-9]* | *[!_$as_cr_alnum]* )
1074       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1075     esac
1076     eval $ac_envvar=\$ac_optarg
1077     export $ac_envvar ;;
1078
1079   *)
1080     # FIXME: should be removed in autoconf 3.0.
1081     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085     ;;
1086
1087   esac
1088 done
1089
1090 if test -n "$ac_prev"; then
1091   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092   as_fn_error "missing argument to $ac_option"
1093 fi
1094
1095 if test -n "$ac_unrecognized_opts"; then
1096   case $enable_option_checking in
1097     no) ;;
1098     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1099     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1100   esac
1101 fi
1102
1103 # Check all directory arguments for consistency.
1104 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105                 datadir sysconfdir sharedstatedir localstatedir includedir \
1106                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107                 libdir localedir mandir
1108 do
1109   eval ac_val=\$$ac_var
1110   # Remove trailing slashes.
1111   case $ac_val in
1112     */ )
1113       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1114       eval $ac_var=\$ac_val;;
1115   esac
1116   # Be sure to have absolute directory names.
1117   case $ac_val in
1118     [\\/$]* | ?:[\\/]* )  continue;;
1119     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120   esac
1121   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1122 done
1123
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1130
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133   if test "x$build_alias" = x; then
1134     cross_compiling=maybe
1135     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136     If a cross compiler is detected then cross compile mode will be used." >&2
1137   elif test "x$build_alias" != "x$host_alias"; then
1138     cross_compiling=yes
1139   fi
1140 fi
1141
1142 ac_tool_prefix=
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1144
1145 test "$silent" = yes && exec 6>/dev/null
1146
1147
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151   as_fn_error "working directory cannot be determined"
1152 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1153   as_fn_error "pwd does not report name of working directory"
1154
1155
1156 # Find the source files, if location was not specified.
1157 if test -z "$srcdir"; then
1158   ac_srcdir_defaulted=yes
1159   # Try the directory containing this script, then the parent directory.
1160   ac_confdir=`$as_dirname -- "$as_myself" ||
1161 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162          X"$as_myself" : 'X\(//\)[^/]' \| \
1163          X"$as_myself" : 'X\(//\)$' \| \
1164          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1165 $as_echo X"$as_myself" |
1166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1167             s//\1/
1168             q
1169           }
1170           /^X\(\/\/\)[^/].*/{
1171             s//\1/
1172             q
1173           }
1174           /^X\(\/\/\)$/{
1175             s//\1/
1176             q
1177           }
1178           /^X\(\/\).*/{
1179             s//\1/
1180             q
1181           }
1182           s/.*/./; q'`
1183   srcdir=$ac_confdir
1184   if test ! -r "$srcdir/$ac_unique_file"; then
1185     srcdir=..
1186   fi
1187 else
1188   ac_srcdir_defaulted=no
1189 fi
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1192   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1193 fi
1194 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1195 ac_abs_confdir=`(
1196         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1197         pwd)`
1198 # When building in place, set srcdir=.
1199 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200   srcdir=.
1201 fi
1202 # Remove unnecessary trailing slashes from srcdir.
1203 # Double slashes in file names in object file debugging info
1204 # mess up M-x gdb in Emacs.
1205 case $srcdir in
1206 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207 esac
1208 for ac_var in $ac_precious_vars; do
1209   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1210   eval ac_env_${ac_var}_value=\$${ac_var}
1211   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1212   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1213 done
1214
1215 #
1216 # Report the --help message.
1217 #
1218 if test "$ac_init_help" = "long"; then
1219   # Omit some internal or obsolete options to make the list less imposing.
1220   # This message is too long to be a string in the A/UX 3.1 sh.
1221   cat <<_ACEOF
1222 \`configure' configures this package to adapt to many kinds of systems.
1223
1224 Usage: $0 [OPTION]... [VAR=VALUE]...
1225
1226 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1227 VAR=VALUE.  See below for descriptions of some of the useful variables.
1228
1229 Defaults for the options are specified in brackets.
1230
1231 Configuration:
1232   -h, --help              display this help and exit
1233       --help=short        display options specific to this package
1234       --help=recursive    display the short help of all the included packages
1235   -V, --version           display version information and exit
1236   -q, --quiet, --silent   do not print \`checking...' messages
1237       --cache-file=FILE   cache test results in FILE [disabled]
1238   -C, --config-cache      alias for \`--cache-file=config.cache'
1239   -n, --no-create         do not create output files
1240       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1241
1242 Installation directories:
1243   --prefix=PREFIX         install architecture-independent files in PREFIX
1244                           [$ac_default_prefix]
1245   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1246                           [PREFIX]
1247
1248 By default, \`make install' will install all the files in
1249 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1250 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1251 for instance \`--prefix=\$HOME'.
1252
1253 For better control, use the options below.
1254
1255 Fine tuning of the installation directories:
1256   --bindir=DIR            user executables [EPREFIX/bin]
1257   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1258   --libexecdir=DIR        program executables [EPREFIX/libexec]
1259   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1260   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1261   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1262   --libdir=DIR            object code libraries [EPREFIX/lib]
1263   --includedir=DIR        C header files [PREFIX/include]
1264   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1265   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1266   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1267   --infodir=DIR           info documentation [DATAROOTDIR/info]
1268   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1269   --mandir=DIR            man documentation [DATAROOTDIR/man]
1270   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1271   --htmldir=DIR           html documentation [DOCDIR]
1272   --dvidir=DIR            dvi documentation [DOCDIR]
1273   --pdfdir=DIR            pdf documentation [DOCDIR]
1274   --psdir=DIR             ps documentation [DOCDIR]
1275 _ACEOF
1276
1277   cat <<\_ACEOF
1278
1279 Program names:
1280   --program-prefix=PREFIX            prepend PREFIX to installed program names
1281   --program-suffix=SUFFIX            append SUFFIX to installed program names
1282   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1283
1284 System types:
1285   --build=BUILD     configure for building on BUILD [guessed]
1286   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1287   --target=TARGET   configure for building compilers for TARGET [HOST]
1288 _ACEOF
1289 fi
1290
1291 if test -n "$ac_init_help"; then
1292
1293   cat <<\_ACEOF
1294
1295 Optional Packages:
1296   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1297   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1298   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1299   --with-bugurl=URL       Direct users to URL to report a bug
1300
1301 Some influential environment variables:
1302   CC          C compiler command
1303   CFLAGS      C compiler flags
1304   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1305               nonstandard directory <lib dir>
1306   LIBS        libraries to pass to the linker, e.g. -l<library>
1307   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1308               you have headers in a nonstandard directory <include dir>
1309   CPP         C preprocessor
1310
1311 Use these variables to override the choices made by `configure' or to help
1312 it to find libraries and programs with nonstandard names/locations.
1313
1314 Report bugs to the package provider.
1315 _ACEOF
1316 ac_status=$?
1317 fi
1318
1319 if test "$ac_init_help" = "recursive"; then
1320   # If there are subdirs, report their specific --help.
1321   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1322     test -d "$ac_dir" ||
1323       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1324       continue
1325     ac_builddir=.
1326
1327 case "$ac_dir" in
1328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *)
1330   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1331   # A ".." for each directory in $ac_dir_suffix.
1332   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1333   case $ac_top_builddir_sub in
1334   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1336   esac ;;
1337 esac
1338 ac_abs_top_builddir=$ac_pwd
1339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1340 # for backward compatibility:
1341 ac_top_builddir=$ac_top_build_prefix
1342
1343 case $srcdir in
1344   .)  # We are building in place.
1345     ac_srcdir=.
1346     ac_top_srcdir=$ac_top_builddir_sub
1347     ac_abs_top_srcdir=$ac_pwd ;;
1348   [\\/]* | ?:[\\/]* )  # Absolute name.
1349     ac_srcdir=$srcdir$ac_dir_suffix;
1350     ac_top_srcdir=$srcdir
1351     ac_abs_top_srcdir=$srcdir ;;
1352   *) # Relative name.
1353     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1354     ac_top_srcdir=$ac_top_build_prefix$srcdir
1355     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1356 esac
1357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358
1359     cd "$ac_dir" || { ac_status=$?; continue; }
1360     # Check for guested configure.
1361     if test -f "$ac_srcdir/configure.gnu"; then
1362       echo &&
1363       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1364     elif test -f "$ac_srcdir/configure"; then
1365       echo &&
1366       $SHELL "$ac_srcdir/configure" --help=recursive
1367     else
1368       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369     fi || ac_status=$?
1370     cd "$ac_pwd" || { ac_status=$?; break; }
1371   done
1372 fi
1373
1374 test -n "$ac_init_help" && exit $ac_status
1375 if $ac_init_version; then
1376   cat <<\_ACEOF
1377 configure
1378 generated by GNU Autoconf 2.64
1379
1380 Copyright (C) 2009 Free Software Foundation, Inc.
1381 This configure script is free software; the Free Software Foundation
1382 gives unlimited permission to copy, distribute and modify it.
1383 _ACEOF
1384   exit
1385 fi
1386
1387 ## ------------------------ ##
1388 ## Autoconf initialization. ##
1389 ## ------------------------ ##
1390
1391 # ac_fn_c_try_compile LINENO
1392 # --------------------------
1393 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1394 ac_fn_c_try_compile ()
1395 {
1396   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1397   rm -f conftest.$ac_objext
1398   if { { ac_try="$ac_compile"
1399 case "(($ac_try" in
1400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1401   *) ac_try_echo=$ac_try;;
1402 esac
1403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1404 $as_echo "$ac_try_echo"; } >&5
1405   (eval "$ac_compile") 2>conftest.err
1406   ac_status=$?
1407   if test -s conftest.err; then
1408     grep -v '^ *+' conftest.err >conftest.er1
1409     cat conftest.er1 >&5
1410     mv -f conftest.er1 conftest.err
1411   fi
1412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1413   test $ac_status = 0; } && {
1414          test -z "$ac_c_werror_flag" ||
1415          test ! -s conftest.err
1416        } && test -s conftest.$ac_objext; then :
1417   ac_retval=0
1418 else
1419   $as_echo "$as_me: failed program was:" >&5
1420 sed 's/^/| /' conftest.$ac_ext >&5
1421
1422         ac_retval=1
1423 fi
1424   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1425   return $ac_retval
1426
1427 } # ac_fn_c_try_compile
1428
1429 # ac_fn_c_try_cpp LINENO
1430 # ----------------------
1431 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1432 ac_fn_c_try_cpp ()
1433 {
1434   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435   if { { ac_try="$ac_cpp conftest.$ac_ext"
1436 case "(($ac_try" in
1437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438   *) ac_try_echo=$ac_try;;
1439 esac
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1443   ac_status=$?
1444   if test -s conftest.err; then
1445     grep -v '^ *+' conftest.err >conftest.er1
1446     cat conftest.er1 >&5
1447     mv -f conftest.er1 conftest.err
1448   fi
1449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450   test $ac_status = 0; } >/dev/null && {
1451          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1452          test ! -s conftest.err
1453        }; then :
1454   ac_retval=0
1455 else
1456   $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1458
1459     ac_retval=1
1460 fi
1461   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1462   return $ac_retval
1463
1464 } # ac_fn_c_try_cpp
1465
1466 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1467 # -------------------------------------------------------
1468 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1469 # the include files in INCLUDES and setting the cache variable VAR
1470 # accordingly.
1471 ac_fn_c_check_header_mongrel ()
1472 {
1473   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1476 $as_echo_n "checking for $2... " >&6; }
1477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1478   $as_echo_n "(cached) " >&6
1479 fi
1480 eval ac_res=\$$3
1481                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1482 $as_echo "$ac_res" >&6; }
1483 else
1484   # Is the header compilable?
1485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1486 $as_echo_n "checking $2 usability... " >&6; }
1487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1488 /* end confdefs.h.  */
1489 $4
1490 #include <$2>
1491 _ACEOF
1492 if ac_fn_c_try_compile "$LINENO"; then :
1493   ac_header_compiler=yes
1494 else
1495   ac_header_compiler=no
1496 fi
1497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1499 $as_echo "$ac_header_compiler" >&6; }
1500
1501 # Is the header present?
1502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1503 $as_echo_n "checking $2 presence... " >&6; }
1504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1505 /* end confdefs.h.  */
1506 #include <$2>
1507 _ACEOF
1508 if ac_fn_c_try_cpp "$LINENO"; then :
1509   ac_header_preproc=yes
1510 else
1511   ac_header_preproc=no
1512 fi
1513 rm -f conftest.err conftest.$ac_ext
1514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1515 $as_echo "$ac_header_preproc" >&6; }
1516
1517 # So?  What about this header?
1518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1519   yes:no: )
1520     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1521 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1523 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1524     ;;
1525   no:yes:* )
1526     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1527 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1528     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1529 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1531 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1533 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1534     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1535 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1536     ;;
1537 esac
1538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1539 $as_echo_n "checking for $2... " >&6; }
1540 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1541   $as_echo_n "(cached) " >&6
1542 else
1543   eval "$3=\$ac_header_compiler"
1544 fi
1545 eval ac_res=\$$3
1546                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547 $as_echo "$ac_res" >&6; }
1548 fi
1549   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1550
1551 } # ac_fn_c_check_header_mongrel
1552
1553 # ac_fn_c_try_run LINENO
1554 # ----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1556 # that executables *can* be run.
1557 ac_fn_c_try_run ()
1558 {
1559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560   if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563   *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567   (eval "$ac_link") 2>&5
1568   ac_status=$?
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1571   { { case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_try") 2>&5
1578   ac_status=$?
1579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580   test $ac_status = 0; }; }; then :
1581   ac_retval=0
1582 else
1583   $as_echo "$as_me: program exited with status $ac_status" >&5
1584        $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587        ac_retval=$ac_status
1588 fi
1589   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591   return $ac_retval
1592
1593 } # ac_fn_c_try_run
1594
1595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596 # -------------------------------------------------------
1597 # Tests whether HEADER exists and can be compiled using the include files in
1598 # INCLUDES, setting the cache variable VAR accordingly.
1599 ac_fn_c_check_header_compile ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605   $as_echo_n "(cached) " >&6
1606 else
1607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h.  */
1609 $4
1610 #include <$2>
1611 _ACEOF
1612 if ac_fn_c_try_compile "$LINENO"; then :
1613   eval "$3=yes"
1614 else
1615   eval "$3=no"
1616 fi
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618 fi
1619 eval ac_res=\$$3
1620                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1622   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623
1624 } # ac_fn_c_check_header_compile
1625
1626 # ac_fn_c_try_link LINENO
1627 # -----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_link ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   rm -f conftest.$ac_objext conftest$ac_exeext
1633   if { { ac_try="$ac_link"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_link") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && {
1649          test -z "$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        } && test -s conftest$ac_exeext && {
1652          test "$cross_compiling" = yes ||
1653          $as_test_x conftest$ac_exeext
1654        }; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660         ac_retval=1
1661 fi
1662   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664   # interfere with the next link command; also delete a directory that is
1665   # left behind by Apple's compiler.  We do this before executing the actions.
1666   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668   return $ac_retval
1669
1670 } # ac_fn_c_try_link
1671
1672 # ac_fn_c_check_func LINENO FUNC VAR
1673 # ----------------------------------
1674 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1675 ac_fn_c_check_func ()
1676 {
1677   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1681   $as_echo_n "(cached) " >&6
1682 else
1683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h.  */
1685 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1687 #define $2 innocuous_$2
1688
1689 /* System header to define __stub macros and hopefully few prototypes,
1690     which can conflict with char $2 (); below.
1691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1692     <limits.h> exists even on freestanding compilers.  */
1693
1694 #ifdef __STDC__
1695 # include <limits.h>
1696 #else
1697 # include <assert.h>
1698 #endif
1699
1700 #undef $2
1701
1702 /* Override any GCC internal prototype to avoid an error.
1703    Use char because int might match the return type of a GCC
1704    builtin and then its argument prototype would still apply.  */
1705 #ifdef __cplusplus
1706 extern "C"
1707 #endif
1708 char $2 ();
1709 /* The GNU C library defines this for functions which it implements
1710     to always fail with ENOSYS.  Some functions are actually named
1711     something starting with __ and the normal name is an alias.  */
1712 #if defined __stub_$2 || defined __stub___$2
1713 choke me
1714 #endif
1715
1716 int
1717 main ()
1718 {
1719 return $2 ();
1720   ;
1721   return 0;
1722 }
1723 _ACEOF
1724 if ac_fn_c_try_link "$LINENO"; then :
1725   eval "$3=yes"
1726 else
1727   eval "$3=no"
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext \
1730     conftest$ac_exeext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737 } # ac_fn_c_check_func
1738
1739 # ac_fn_c_check_decl LINENO SYMBOL VAR
1740 # ------------------------------------
1741 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1742 ac_fn_c_check_decl ()
1743 {
1744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1746 $as_echo_n "checking whether $2 is declared... " >&6; }
1747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748   $as_echo_n "(cached) " >&6
1749 else
1750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h.  */
1752 $4
1753 int
1754 main ()
1755 {
1756 #ifndef $2
1757   (void) $2;
1758 #endif
1759
1760   ;
1761   return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765   eval "$3=yes"
1766 else
1767   eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 fi
1771 eval ac_res=\$$3
1772                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775
1776 } # ac_fn_c_check_decl
1777
1778 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1779 # -------------------------------------------
1780 # Tests whether TYPE exists after having included INCLUDES, setting cache
1781 # variable VAR accordingly.
1782 ac_fn_c_check_type ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788   $as_echo_n "(cached) " >&6
1789 else
1790   eval "$3=no"
1791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 $4
1794 int
1795 main ()
1796 {
1797 if (sizeof ($2))
1798          return 0;
1799   ;
1800   return 0;
1801 }
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h.  */
1806 $4
1807 int
1808 main ()
1809 {
1810 if (sizeof (($2)))
1811             return 0;
1812   ;
1813   return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817
1818 else
1819   eval "$3=yes"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829
1830 } # ac_fn_c_check_type
1831 cat >config.log <<_ACEOF
1832 This file contains any messages produced by compilers while
1833 running configure, to aid debugging if configure makes a mistake.
1834
1835 It was created by $as_me, which was
1836 generated by GNU Autoconf 2.64.  Invocation command line was
1837
1838   $ $0 $@
1839
1840 _ACEOF
1841 exec 5>>config.log
1842 {
1843 cat <<_ASUNAME
1844 ## --------- ##
1845 ## Platform. ##
1846 ## --------- ##
1847
1848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853
1854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1856
1857 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1858 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1861 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1862 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1863 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1864
1865 _ASUNAME
1866
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870   IFS=$as_save_IFS
1871   test -z "$as_dir" && as_dir=.
1872     $as_echo "PATH: $as_dir"
1873   done
1874 IFS=$as_save_IFS
1875
1876 } >&5
1877
1878 cat >&5 <<_ACEOF
1879
1880
1881 ## ----------- ##
1882 ## Core tests. ##
1883 ## ----------- ##
1884
1885 _ACEOF
1886
1887
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1893 ac_configure_args=
1894 ac_configure_args0=
1895 ac_configure_args1=
1896 ac_must_keep_next=false
1897 for ac_pass in 1 2
1898 do
1899   for ac_arg
1900   do
1901     case $ac_arg in
1902     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904     | -silent | --silent | --silen | --sile | --sil)
1905       continue ;;
1906     *\'*)
1907       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908     esac
1909     case $ac_pass in
1910     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911     2)
1912       as_fn_append ac_configure_args1 " '$ac_arg'"
1913       if test $ac_must_keep_next = true; then
1914         ac_must_keep_next=false # Got value, back to normal.
1915       else
1916         case $ac_arg in
1917           *=* | --config-cache | -C | -disable-* | --disable-* \
1918           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920           | -with-* | --with-* | -without-* | --without-* | --x)
1921             case "$ac_configure_args0 " in
1922               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923             esac
1924             ;;
1925           -* ) ac_must_keep_next=true ;;
1926         esac
1927       fi
1928       as_fn_append ac_configure_args " '$ac_arg'"
1929       ;;
1930     esac
1931   done
1932 done
1933 { ac_configure_args0=; unset ac_configure_args0;}
1934 { ac_configure_args1=; unset ac_configure_args1;}
1935
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log.  We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1942   # Save into config.log some information that might help in debugging.
1943   {
1944     echo
1945
1946     cat <<\_ASBOX
1947 ## ---------------- ##
1948 ## Cache variables. ##
1949 ## ---------------- ##
1950 _ASBOX
1951     echo
1952     # The following way of writing the cache mishandles newlines in values,
1953 (
1954   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955     eval ac_val=\$$ac_var
1956     case $ac_val in #(
1957     *${as_nl}*)
1958       case $ac_var in #(
1959       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1961       esac
1962       case $ac_var in #(
1963       _ | IFS | as_nl) ;; #(
1964       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965       *) { eval $ac_var=; unset $ac_var;} ;;
1966       esac ;;
1967     esac
1968   done
1969   (set) 2>&1 |
1970     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971     *${as_nl}ac_space=\ *)
1972       sed -n \
1973         "s/'\''/'\''\\\\'\'''\''/g;
1974           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1975       ;; #(
1976     *)
1977       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1978       ;;
1979     esac |
1980     sort
1981 )
1982     echo
1983
1984     cat <<\_ASBOX
1985 ## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##
1988 _ASBOX
1989     echo
1990     for ac_var in $ac_subst_vars
1991     do
1992       eval ac_val=\$$ac_var
1993       case $ac_val in
1994       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995       esac
1996       $as_echo "$ac_var='\''$ac_val'\''"
1997     done | sort
1998     echo
1999
2000     if test -n "$ac_subst_files"; then
2001       cat <<\_ASBOX
2002 ## ------------------- ##
2003 ## File substitutions. ##
2004 ## ------------------- ##
2005 _ASBOX
2006       echo
2007       for ac_var in $ac_subst_files
2008       do
2009         eval ac_val=\$$ac_var
2010         case $ac_val in
2011         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012         esac
2013         $as_echo "$ac_var='\''$ac_val'\''"
2014       done | sort
2015       echo
2016     fi
2017
2018     if test -s confdefs.h; then
2019       cat <<\_ASBOX
2020 ## ----------- ##
2021 ## confdefs.h. ##
2022 ## ----------- ##
2023 _ASBOX
2024       echo
2025       cat confdefs.h
2026       echo
2027     fi
2028     test "$ac_signal" != 0 &&
2029       $as_echo "$as_me: caught signal $ac_signal"
2030     $as_echo "$as_me: exit $exit_status"
2031   } >&5
2032   rm -f core *.core core.conftest.* &&
2033     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2034     exit $exit_status
2035 ' 0
2036 for ac_signal in 1 2 13 15; do
2037   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2038 done
2039 ac_signal=0
2040
2041 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2042 rm -f -r conftest* confdefs.h
2043
2044 $as_echo "/* confdefs.h */" > confdefs.h
2045
2046 # Predefined preprocessor variables.
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_NAME "$PACKAGE_NAME"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_STRING "$PACKAGE_STRING"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2066 _ACEOF
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_URL "$PACKAGE_URL"
2070 _ACEOF
2071
2072
2073 # Let the site file select an alternate cache file if it wants to.
2074 # Prefer an explicitly selected file to automatically selected ones.
2075 ac_site_file1=NONE
2076 ac_site_file2=NONE
2077 if test -n "$CONFIG_SITE"; then
2078   ac_site_file1=$CONFIG_SITE
2079 elif test "x$prefix" != xNONE; then
2080   ac_site_file1=$prefix/share/config.site
2081   ac_site_file2=$prefix/etc/config.site
2082 else
2083   ac_site_file1=$ac_default_prefix/share/config.site
2084   ac_site_file2=$ac_default_prefix/etc/config.site
2085 fi
2086 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087 do
2088   test "x$ac_site_file" = xNONE && continue
2089   if test -r "$ac_site_file"; then
2090     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092     sed 's/^/| /' "$ac_site_file" >&5
2093     . "$ac_site_file"
2094   fi
2095 done
2096
2097 if test -r "$cache_file"; then
2098   # Some versions of bash will fail to source /dev/null (special
2099   # files actually), so we avoid doing that.
2100   if test -f "$cache_file"; then
2101     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102 $as_echo "$as_me: loading cache $cache_file" >&6;}
2103     case $cache_file in
2104       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105       *)                      . "./$cache_file";;
2106     esac
2107   fi
2108 else
2109   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110 $as_echo "$as_me: creating cache $cache_file" >&6;}
2111   >$cache_file
2112 fi
2113
2114 # Check that the precious variables saved in the cache have kept the same
2115 # value.
2116 ac_cache_corrupted=false
2117 for ac_var in $ac_precious_vars; do
2118   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2119   eval ac_new_set=\$ac_env_${ac_var}_set
2120   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2121   eval ac_new_val=\$ac_env_${ac_var}_value
2122   case $ac_old_set,$ac_new_set in
2123     set,)
2124       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2125 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2126       ac_cache_corrupted=: ;;
2127     ,set)
2128       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2130       ac_cache_corrupted=: ;;
2131     ,);;
2132     *)
2133       if test "x$ac_old_val" != "x$ac_new_val"; then
2134         # differences in whitespace do not lead to failure.
2135         ac_old_val_w=`echo x $ac_old_val`
2136         ac_new_val_w=`echo x $ac_new_val`
2137         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2138           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2139 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2140           ac_cache_corrupted=:
2141         else
2142           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2143 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2144           eval $ac_var=\$ac_old_val
2145         fi
2146         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2147 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2148         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2149 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2150       fi;;
2151   esac
2152   # Pass precious variables to config.status.
2153   if test "$ac_new_set" = set; then
2154     case $ac_new_val in
2155     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156     *) ac_arg=$ac_var=$ac_new_val ;;
2157     esac
2158     case " $ac_configure_args " in
2159       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2160       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2161     esac
2162   fi
2163 done
2164 if $ac_cache_corrupted; then
2165   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2168 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2169   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2170 fi
2171 ## -------------------- ##
2172 ## Main body of script. ##
2173 ## -------------------- ##
2174
2175 ac_ext=c
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180
2181
2182
2183
2184
2185 ac_config_headers="$ac_config_headers config.h:config.in"
2186
2187
2188
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194 if test -n "$ac_tool_prefix"; then
2195   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2198 $as_echo_n "checking for $ac_word... " >&6; }
2199 if test "${ac_cv_prog_CC+set}" = set; then :
2200   $as_echo_n "(cached) " >&6
2201 else
2202   if test -n "$CC"; then
2203   ac_cv_prog_CC="$CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210     for ac_exec_ext in '' $ac_executable_extensions; do
2211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217   done
2218 IFS=$as_save_IFS
2219
2220 fi
2221 fi
2222 CC=$ac_cv_prog_CC
2223 if test -n "$CC"; then
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2225 $as_echo "$CC" >&6; }
2226 else
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2228 $as_echo "no" >&6; }
2229 fi
2230
2231
2232 fi
2233 if test -z "$ac_cv_prog_CC"; then
2234   ac_ct_CC=$CC
2235   # Extract the first word of "gcc", so it can be a program name with args.
2236 set dummy gcc; ac_word=$2
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2238 $as_echo_n "checking for $ac_word... " >&6; }
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2240   $as_echo_n "(cached) " >&6
2241 else
2242   if test -n "$ac_ct_CC"; then
2243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250     for ac_exec_ext in '' $ac_executable_extensions; do
2251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252     ac_cv_prog_ac_ct_CC="gcc"
2253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257   done
2258 IFS=$as_save_IFS
2259
2260 fi
2261 fi
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2265 $as_echo "$ac_ct_CC" >&6; }
2266 else
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2268 $as_echo "no" >&6; }
2269 fi
2270
2271   if test "x$ac_ct_CC" = x; then
2272     CC=""
2273   else
2274     case $cross_compiling:$ac_tool_warned in
2275 yes:)
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2278 ac_tool_warned=yes ;;
2279 esac
2280     CC=$ac_ct_CC
2281   fi
2282 else
2283   CC="$ac_cv_prog_CC"
2284 fi
2285
2286 if test -z "$CC"; then
2287           if test -n "$ac_tool_prefix"; then
2288     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2289 set dummy ${ac_tool_prefix}cc; ac_word=$2
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2291 $as_echo_n "checking for $ac_word... " >&6; }
2292 if test "${ac_cv_prog_CC+set}" = set; then :
2293   $as_echo_n "(cached) " >&6
2294 else
2295   if test -n "$CC"; then
2296   ac_cv_prog_CC="$CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303     for ac_exec_ext in '' $ac_executable_extensions; do
2304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305     ac_cv_prog_CC="${ac_tool_prefix}cc"
2306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2307     break 2
2308   fi
2309 done
2310   done
2311 IFS=$as_save_IFS
2312
2313 fi
2314 fi
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2318 $as_echo "$CC" >&6; }
2319 else
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2321 $as_echo "no" >&6; }
2322 fi
2323
2324
2325   fi
2326 fi
2327 if test -z "$CC"; then
2328   # Extract the first word of "cc", so it can be a program name with args.
2329 set dummy cc; ac_word=$2
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2331 $as_echo_n "checking for $ac_word... " >&6; }
2332 if test "${ac_cv_prog_CC+set}" = set; then :
2333   $as_echo_n "(cached) " >&6
2334 else
2335   if test -n "$CC"; then
2336   ac_cv_prog_CC="$CC" # Let the user override the test.
2337 else
2338   ac_prog_rejected=no
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344     for ac_exec_ext in '' $ac_executable_extensions; do
2345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2347        ac_prog_rejected=yes
2348        continue
2349      fi
2350     ac_cv_prog_CC="cc"
2351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355   done
2356 IFS=$as_save_IFS
2357
2358 if test $ac_prog_rejected = yes; then
2359   # We found a bogon in the path, so make sure we never use it.
2360   set dummy $ac_cv_prog_CC
2361   shift
2362   if test $# != 0; then
2363     # We chose a different compiler from the bogus one.
2364     # However, it has the same basename, so the bogon will be chosen
2365     # first if we set CC to just the basename; use the full file name.
2366     shift
2367     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2368   fi
2369 fi
2370 fi
2371 fi
2372 CC=$ac_cv_prog_CC
2373 if test -n "$CC"; then
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2375 $as_echo "$CC" >&6; }
2376 else
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2378 $as_echo "no" >&6; }
2379 fi
2380
2381
2382 fi
2383 if test -z "$CC"; then
2384   if test -n "$ac_tool_prefix"; then
2385   for ac_prog in cl.exe
2386   do
2387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390 $as_echo_n "checking for $ac_word... " >&6; }
2391 if test "${ac_cv_prog_CC+set}" = set; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   if test -n "$CC"; then
2395   ac_cv_prog_CC="$CC" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402     for ac_exec_ext in '' $ac_executable_extensions; do
2403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409   done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 CC=$ac_cv_prog_CC
2415 if test -n "$CC"; then
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2417 $as_echo "$CC" >&6; }
2418 else
2419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420 $as_echo "no" >&6; }
2421 fi
2422
2423
2424     test -n "$CC" && break
2425   done
2426 fi
2427 if test -z "$CC"; then
2428   ac_ct_CC=$CC
2429   for ac_prog in cl.exe
2430 do
2431   # Extract the first word of "$ac_prog", so it can be a program name with args.
2432 set dummy $ac_prog; ac_word=$2
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2434 $as_echo_n "checking for $ac_word... " >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2436   $as_echo_n "(cached) " >&6
2437 else
2438   if test -n "$ac_ct_CC"; then
2439   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444   IFS=$as_save_IFS
2445   test -z "$as_dir" && as_dir=.
2446     for ac_exec_ext in '' $ac_executable_extensions; do
2447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448     ac_cv_prog_ac_ct_CC="$ac_prog"
2449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453   done
2454 IFS=$as_save_IFS
2455
2456 fi
2457 fi
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2461 $as_echo "$ac_ct_CC" >&6; }
2462 else
2463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2464 $as_echo "no" >&6; }
2465 fi
2466
2467
2468   test -n "$ac_ct_CC" && break
2469 done
2470
2471   if test "x$ac_ct_CC" = x; then
2472     CC=""
2473   else
2474     case $cross_compiling:$ac_tool_warned in
2475 yes:)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2478 ac_tool_warned=yes ;;
2479 esac
2480     CC=$ac_ct_CC
2481   fi
2482 fi
2483
2484 fi
2485
2486
2487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 as_fn_error "no acceptable C compiler found in \$PATH
2490 See \`config.log' for more details." "$LINENO" 5; }
2491
2492 # Provide some information about the compiler.
2493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2494 set X $ac_compile
2495 ac_compiler=$2
2496 for ac_option in --version -v -V -qversion; do
2497   { { ac_try="$ac_compiler $ac_option >&5"
2498 case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2503 $as_echo "$ac_try_echo"; } >&5
2504   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2505   ac_status=$?
2506   if test -s conftest.err; then
2507     sed '10a\
2508 ... rest of stderr output deleted ...
2509          10q' conftest.err >conftest.er1
2510     cat conftest.er1 >&5
2511     rm -f conftest.er1 conftest.err
2512   fi
2513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514   test $ac_status = 0; }
2515 done
2516
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h.  */
2519
2520 int
2521 main ()
2522 {
2523
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 ac_clean_files_save=$ac_clean_files
2529 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2530 # Try to create an executable without -o first, disregard a.out.
2531 # It will help us diagnose broken compilers, and finding out an intuition
2532 # of exeext.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2534 $as_echo_n "checking for C compiler default output file name... " >&6; }
2535 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2536
2537 # The possible output files:
2538 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2539
2540 ac_rmfiles=
2541 for ac_file in $ac_files
2542 do
2543   case $ac_file in
2544     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2545     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2546   esac
2547 done
2548 rm -f $ac_rmfiles
2549
2550 if { { ac_try="$ac_link_default"
2551 case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556 $as_echo "$ac_try_echo"; } >&5
2557   (eval "$ac_link_default") 2>&5
2558   ac_status=$?
2559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2560   test $ac_status = 0; }; then :
2561   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2562 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2563 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2564 # so that the user can short-circuit this test for compilers unknown to
2565 # Autoconf.
2566 for ac_file in $ac_files ''
2567 do
2568   test -f "$ac_file" || continue
2569   case $ac_file in
2570     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2571         ;;
2572     [ab].out )
2573         # We found the default executable, but exeext='' is most
2574         # certainly right.
2575         break;;
2576     *.* )
2577         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2578         then :; else
2579            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2580         fi
2581         # We set ac_cv_exeext here because the later test for it is not
2582         # safe: cross compilers may not add the suffix if given an `-o'
2583         # argument, so we may need to know it at that point already.
2584         # Even if this section looks crufty: it has the advantage of
2585         # actually working.
2586         break;;
2587     * )
2588         break;;
2589   esac
2590 done
2591 test "$ac_cv_exeext" = no && ac_cv_exeext=
2592
2593 else
2594   ac_file=''
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2597 $as_echo "$ac_file" >&6; }
2598 if test -z "$ac_file"; then :
2599   $as_echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604 { as_fn_set_status 77
2605 as_fn_error "C compiler cannot create executables
2606 See \`config.log' for more details." "$LINENO" 5; }; }
2607 fi
2608 ac_exeext=$ac_cv_exeext
2609
2610 # Check that the compiler produces executables we can run.  If not, either
2611 # the compiler is broken, or we cross compile.
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2613 $as_echo_n "checking whether the C compiler works... " >&6; }
2614 # If not cross compiling, check that we can run a simple program.
2615 if test "$cross_compiling" != yes; then
2616   if { ac_try='./$ac_file'
2617   { { case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623   (eval "$ac_try") 2>&5
2624   ac_status=$?
2625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2626   test $ac_status = 0; }; }; then
2627     cross_compiling=no
2628   else
2629     if test "$cross_compiling" = maybe; then
2630         cross_compiling=yes
2631     else
2632         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 as_fn_error "cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'.
2636 See \`config.log' for more details." "$LINENO" 5; }
2637     fi
2638   fi
2639 fi
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2642
2643 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2644 ac_clean_files=$ac_clean_files_save
2645 # Check that the compiler produces executables we can run.  If not, either
2646 # the compiler is broken, or we cross compile.
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2648 $as_echo_n "checking whether we are cross compiling... " >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2650 $as_echo "$cross_compiling" >&6; }
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2653 $as_echo_n "checking for suffix of executables... " >&6; }
2654 if { { ac_try="$ac_link"
2655 case "(($ac_try" in
2656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657   *) ac_try_echo=$ac_try;;
2658 esac
2659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2660 $as_echo "$ac_try_echo"; } >&5
2661   (eval "$ac_link") 2>&5
2662   ac_status=$?
2663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2664   test $ac_status = 0; }; then :
2665   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2666 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2667 # work properly (i.e., refer to `conftest.exe'), while it won't with
2668 # `rm'.
2669 for ac_file in conftest.exe conftest conftest.*; do
2670   test -f "$ac_file" || continue
2671   case $ac_file in
2672     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2673     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2674           break;;
2675     * ) break;;
2676   esac
2677 done
2678 else
2679   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681 as_fn_error "cannot compute suffix of executables: cannot compile and link
2682 See \`config.log' for more details." "$LINENO" 5; }
2683 fi
2684 rm -f conftest$ac_cv_exeext
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2686 $as_echo "$ac_cv_exeext" >&6; }
2687
2688 rm -f conftest.$ac_ext
2689 EXEEXT=$ac_cv_exeext
2690 ac_exeext=$EXEEXT
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2692 $as_echo_n "checking for suffix of object files... " >&6; }
2693 if test "${ac_cv_objext+set}" = set; then :
2694   $as_echo_n "(cached) " >&6
2695 else
2696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h.  */
2698
2699 int
2700 main ()
2701 {
2702
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.o conftest.obj
2708 if { { ac_try="$ac_compile"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714 $as_echo "$ac_try_echo"; } >&5
2715   (eval "$ac_compile") 2>&5
2716   ac_status=$?
2717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718   test $ac_status = 0; }; then :
2719   for ac_file in conftest.o conftest.obj conftest.*; do
2720   test -f "$ac_file" || continue;
2721   case $ac_file in
2722     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2723     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2724        break;;
2725   esac
2726 done
2727 else
2728   $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2733 as_fn_error "cannot compute suffix of object files: cannot compile
2734 See \`config.log' for more details." "$LINENO" 5; }
2735 fi
2736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2739 $as_echo "$ac_cv_objext" >&6; }
2740 OBJEXT=$ac_cv_objext
2741 ac_objext=$OBJEXT
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2743 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2744 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2745   $as_echo_n "(cached) " >&6
2746 else
2747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h.  */
2749
2750 int
2751 main ()
2752 {
2753 #ifndef __GNUC__
2754        choke me
2755 #endif
2756
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 if ac_fn_c_try_compile "$LINENO"; then :
2762   ac_compiler_gnu=yes
2763 else
2764   ac_compiler_gnu=no
2765 fi
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2768
2769 fi
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2771 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2772 if test $ac_compiler_gnu = yes; then
2773   GCC=yes
2774 else
2775   GCC=
2776 fi
2777 ac_test_CFLAGS=${CFLAGS+set}
2778 ac_save_CFLAGS=$CFLAGS
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2780 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2781 if test "${ac_cv_prog_cc_g+set}" = set; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   ac_save_c_werror_flag=$ac_c_werror_flag
2785    ac_c_werror_flag=yes
2786    ac_cv_prog_cc_g=no
2787    CFLAGS="-g"
2788    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 if ac_fn_c_try_compile "$LINENO"; then :
2800   ac_cv_prog_cc_g=yes
2801 else
2802   CFLAGS=""
2803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804 /* end confdefs.h.  */
2805
2806 int
2807 main ()
2808 {
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 if ac_fn_c_try_compile "$LINENO"; then :
2815
2816 else
2817   ac_c_werror_flag=$ac_save_c_werror_flag
2818          CFLAGS="-g"
2819          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h.  */
2821
2822 int
2823 main ()
2824 {
2825
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 if ac_fn_c_try_compile "$LINENO"; then :
2831   ac_cv_prog_cc_g=yes
2832 fi
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 fi
2835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 fi
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838    ac_c_werror_flag=$ac_save_c_werror_flag
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2841 $as_echo "$ac_cv_prog_cc_g" >&6; }
2842 if test "$ac_test_CFLAGS" = set; then
2843   CFLAGS=$ac_save_CFLAGS
2844 elif test $ac_cv_prog_cc_g = yes; then
2845   if test "$GCC" = yes; then
2846     CFLAGS="-g -O2"
2847   else
2848     CFLAGS="-g"
2849   fi
2850 else
2851   if test "$GCC" = yes; then
2852     CFLAGS="-O2"
2853   else
2854     CFLAGS=
2855   fi
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2859 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   ac_cv_prog_cc_c89=no
2863 ac_save_CC=$CC
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h.  */
2866 #include <stdarg.h>
2867 #include <stdio.h>
2868 #include <sys/types.h>
2869 #include <sys/stat.h>
2870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2871 struct buf { int x; };
2872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2873 static char *e (p, i)
2874      char **p;
2875      int i;
2876 {
2877   return p[i];
2878 }
2879 static char *f (char * (*g) (char **, int), char **p, ...)
2880 {
2881   char *s;
2882   va_list v;
2883   va_start (v,p);
2884   s = g (p, va_arg (v,int));
2885   va_end (v);
2886   return s;
2887 }
2888
2889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2890    function prototypes and stuff, but not '\xHH' hex character constants.
2891    These don't provoke an error unfortunately, instead are silently treated
2892    as 'x'.  The following induces an error, until -std is added to get
2893    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2894    array size at least.  It's necessary to write '\x00'==0 to get something
2895    that's true only with -std.  */
2896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2897
2898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2899    inside strings and character constants.  */
2900 #define FOO(x) 'x'
2901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2902
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2907 int argc;
2908 char **argv;
2909 int
2910 main ()
2911 {
2912 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2918         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2919 do
2920   CC="$ac_save_CC $ac_arg"
2921   if ac_fn_c_try_compile "$LINENO"; then :
2922   ac_cv_prog_cc_c89=$ac_arg
2923 fi
2924 rm -f core conftest.err conftest.$ac_objext
2925   test "x$ac_cv_prog_cc_c89" != "xno" && break
2926 done
2927 rm -f conftest.$ac_ext
2928 CC=$ac_save_CC
2929
2930 fi
2931 # AC_CACHE_VAL
2932 case "x$ac_cv_prog_cc_c89" in
2933   x)
2934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2935 $as_echo "none needed" >&6; } ;;
2936   xno)
2937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2938 $as_echo "unsupported" >&6; } ;;
2939   *)
2940     CC="$CC $ac_cv_prog_cc_c89"
2941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2942 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2943 esac
2944 if test "x$ac_cv_prog_cc_c89" != xno; then :
2945
2946 fi
2947
2948 ac_ext=c
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953
2954
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2961 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2962 # On Suns, sometimes $CPP names a directory.
2963 if test -n "$CPP" && test -d "$CPP"; then
2964   CPP=
2965 fi
2966 if test -z "$CPP"; then
2967   if test "${ac_cv_prog_CPP+set}" = set; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970       # Double quotes because CPP needs to be expanded
2971     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2972     do
2973       ac_preproc_ok=false
2974 for ac_c_preproc_warn_flag in '' yes
2975 do
2976   # Use a header file that comes with gcc, so configuring glibc
2977   # with a fresh cross-compiler works.
2978   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2979   # <limits.h> exists even on freestanding compilers.
2980   # On the NeXT, cc -E runs the code through the compiler's parser,
2981   # not just through cpp. "Syntax error" is here to catch this case.
2982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h.  */
2984 #ifdef __STDC__
2985 # include <limits.h>
2986 #else
2987 # include <assert.h>
2988 #endif
2989                      Syntax error
2990 _ACEOF
2991 if ac_fn_c_try_cpp "$LINENO"; then :
2992
2993 else
2994   # Broken: fails on valid input.
2995 continue
2996 fi
2997 rm -f conftest.err conftest.$ac_ext
2998
2999   # OK, works on sane cases.  Now check whether nonexistent headers
3000   # can be detected and how.
3001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h.  */
3003 #include <ac_nonexistent.h>
3004 _ACEOF
3005 if ac_fn_c_try_cpp "$LINENO"; then :
3006   # Broken: success on invalid input.
3007 continue
3008 else
3009   # Passes both tests.
3010 ac_preproc_ok=:
3011 break
3012 fi
3013 rm -f conftest.err conftest.$ac_ext
3014
3015 done
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then :
3019   break
3020 fi
3021
3022     done
3023     ac_cv_prog_CPP=$CPP
3024
3025 fi
3026   CPP=$ac_cv_prog_CPP
3027 else
3028   ac_cv_prog_CPP=$CPP
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3031 $as_echo "$CPP" >&6; }
3032 ac_preproc_ok=false
3033 for ac_c_preproc_warn_flag in '' yes
3034 do
3035   # Use a header file that comes with gcc, so configuring glibc
3036   # with a fresh cross-compiler works.
3037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038   # <limits.h> exists even on freestanding compilers.
3039   # On the NeXT, cc -E runs the code through the compiler's parser,
3040   # not just through cpp. "Syntax error" is here to catch this case.
3041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h.  */
3043 #ifdef __STDC__
3044 # include <limits.h>
3045 #else
3046 # include <assert.h>
3047 #endif
3048                      Syntax error
3049 _ACEOF
3050 if ac_fn_c_try_cpp "$LINENO"; then :
3051
3052 else
3053   # Broken: fails on valid input.
3054 continue
3055 fi
3056 rm -f conftest.err conftest.$ac_ext
3057
3058   # OK, works on sane cases.  Now check whether nonexistent headers
3059   # can be detected and how.
3060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h.  */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if ac_fn_c_try_cpp "$LINENO"; then :
3065   # Broken: success on invalid input.
3066 continue
3067 else
3068   # Passes both tests.
3069 ac_preproc_ok=:
3070 break
3071 fi
3072 rm -f conftest.err conftest.$ac_ext
3073
3074 done
3075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3076 rm -f conftest.err conftest.$ac_ext
3077 if $ac_preproc_ok; then :
3078
3079 else
3080   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3083 See \`config.log' for more details." "$LINENO" 5; }
3084 fi
3085
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3094 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3095 if test "${ac_cv_path_GREP+set}" = set; then :
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if test -z "$GREP"; then
3099   ac_path_GREP_found=false
3100   # Loop through the user's path and test for each of PROGNAME-LIST
3101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3103 do
3104   IFS=$as_save_IFS
3105   test -z "$as_dir" && as_dir=.
3106     for ac_prog in grep ggrep; do
3107     for ac_exec_ext in '' $ac_executable_extensions; do
3108       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3109       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3110 # Check for GNU ac_path_GREP and select it if it is found.
3111   # Check for GNU $ac_path_GREP
3112 case `"$ac_path_GREP" --version 2>&1` in
3113 *GNU*)
3114   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3115 *)
3116   ac_count=0
3117   $as_echo_n 0123456789 >"conftest.in"
3118   while :
3119   do
3120     cat "conftest.in" "conftest.in" >"conftest.tmp"
3121     mv "conftest.tmp" "conftest.in"
3122     cp "conftest.in" "conftest.nl"
3123     $as_echo 'GREP' >> "conftest.nl"
3124     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3125     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3126     as_fn_arith $ac_count + 1 && ac_count=$as_val
3127     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3128       # Best one so far, save it but keep looking for a better one
3129       ac_cv_path_GREP="$ac_path_GREP"
3130       ac_path_GREP_max=$ac_count
3131     fi
3132     # 10*(2^10) chars as input seems more than enough
3133     test $ac_count -gt 10 && break
3134   done
3135   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3136 esac
3137
3138       $ac_path_GREP_found && break 3
3139     done
3140   done
3141   done
3142 IFS=$as_save_IFS
3143   if test -z "$ac_cv_path_GREP"; then
3144     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3145   fi
3146 else
3147   ac_cv_path_GREP=$GREP
3148 fi
3149
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3152 $as_echo "$ac_cv_path_GREP" >&6; }
3153  GREP="$ac_cv_path_GREP"
3154
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3157 $as_echo_n "checking for egrep... " >&6; }
3158 if test "${ac_cv_path_EGREP+set}" = set; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3162    then ac_cv_path_EGREP="$GREP -E"
3163    else
3164      if test -z "$EGREP"; then
3165   ac_path_EGREP_found=false
3166   # Loop through the user's path and test for each of PROGNAME-LIST
3167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172     for ac_prog in egrep; do
3173     for ac_exec_ext in '' $ac_executable_extensions; do
3174       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3175       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3176 # Check for GNU ac_path_EGREP and select it if it is found.
3177   # Check for GNU $ac_path_EGREP
3178 case `"$ac_path_EGREP" --version 2>&1` in
3179 *GNU*)
3180   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3181 *)
3182   ac_count=0
3183   $as_echo_n 0123456789 >"conftest.in"
3184   while :
3185   do
3186     cat "conftest.in" "conftest.in" >"conftest.tmp"
3187     mv "conftest.tmp" "conftest.in"
3188     cp "conftest.in" "conftest.nl"
3189     $as_echo 'EGREP' >> "conftest.nl"
3190     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3191     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3192     as_fn_arith $ac_count + 1 && ac_count=$as_val
3193     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3194       # Best one so far, save it but keep looking for a better one
3195       ac_cv_path_EGREP="$ac_path_EGREP"
3196       ac_path_EGREP_max=$ac_count
3197     fi
3198     # 10*(2^10) chars as input seems more than enough
3199     test $ac_count -gt 10 && break
3200   done
3201   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3202 esac
3203
3204       $ac_path_EGREP_found && break 3
3205     done
3206   done
3207   done
3208 IFS=$as_save_IFS
3209   if test -z "$ac_cv_path_EGREP"; then
3210     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3211   fi
3212 else
3213   ac_cv_path_EGREP=$EGREP
3214 fi
3215
3216    fi
3217 fi
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3219 $as_echo "$ac_cv_path_EGREP" >&6; }
3220  EGREP="$ac_cv_path_EGREP"
3221
3222
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3224 $as_echo_n "checking for ANSI C header files... " >&6; }
3225 if test "${ac_cv_header_stdc+set}" = set; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h.  */
3230 #include <stdlib.h>
3231 #include <stdarg.h>
3232 #include <string.h>
3233 #include <float.h>
3234
3235 int
3236 main ()
3237 {
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244   ac_cv_header_stdc=yes
3245 else
3246   ac_cv_header_stdc=no
3247 fi
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249
3250 if test $ac_cv_header_stdc = yes; then
3251   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h.  */
3254 #include <string.h>
3255
3256 _ACEOF
3257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3258   $EGREP "memchr" >/dev/null 2>&1; then :
3259
3260 else
3261   ac_cv_header_stdc=no
3262 fi
3263 rm -f conftest*
3264
3265 fi
3266
3267 if test $ac_cv_header_stdc = yes; then
3268   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h.  */
3271 #include <stdlib.h>
3272
3273 _ACEOF
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275   $EGREP "free" >/dev/null 2>&1; then :
3276
3277 else
3278   ac_cv_header_stdc=no
3279 fi
3280 rm -f conftest*
3281
3282 fi
3283
3284 if test $ac_cv_header_stdc = yes; then
3285   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3286   if test "$cross_compiling" = yes; then :
3287   :
3288 else
3289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h.  */
3291 #include <ctype.h>
3292 #include <stdlib.h>
3293 #if ((' ' & 0x0FF) == 0x020)
3294 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3295 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3296 #else
3297 # define ISLOWER(c) \
3298                    (('a' <= (c) && (c) <= 'i') \
3299                      || ('j' <= (c) && (c) <= 'r') \
3300                      || ('s' <= (c) && (c) <= 'z'))
3301 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3302 #endif
3303
3304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3305 int
3306 main ()
3307 {
3308   int i;
3309   for (i = 0; i < 256; i++)
3310     if (XOR (islower (i), ISLOWER (i))
3311         || toupper (i) != TOUPPER (i))
3312       return 2;
3313   return 0;
3314 }
3315 _ACEOF
3316 if ac_fn_c_try_run "$LINENO"; then :
3317
3318 else
3319   ac_cv_header_stdc=no
3320 fi
3321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3322   conftest.$ac_objext conftest.beam conftest.$ac_ext
3323 fi
3324
3325 fi
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3328 $as_echo "$ac_cv_header_stdc" >&6; }
3329 if test $ac_cv_header_stdc = yes; then
3330
3331 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3332
3333 fi
3334
3335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3336 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3337                   inttypes.h stdint.h unistd.h
3338 do :
3339   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3340 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3341 "
3342 eval as_val=\$$as_ac_Header
3343    if test "x$as_val" = x""yes; then :
3344   cat >>confdefs.h <<_ACEOF
3345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3346 _ACEOF
3347
3348 fi
3349
3350 done
3351
3352
3353
3354   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3355 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3356   MINIX=yes
3357 else
3358   MINIX=
3359 fi
3360
3361
3362   if test "$MINIX" = yes; then
3363
3364 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3365
3366
3367 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3368
3369
3370 $as_echo "#define _MINIX 1" >>confdefs.h
3371
3372   fi
3373
3374
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3376 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3377 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h.  */
3382
3383 #         define __EXTENSIONS__ 1
3384           $ac_includes_default
3385 int
3386 main ()
3387 {
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394   ac_cv_safe_to_define___extensions__=yes
3395 else
3396   ac_cv_safe_to_define___extensions__=no
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3401 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3402   test $ac_cv_safe_to_define___extensions__ = yes &&
3403     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3404
3405   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3406
3407   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3408
3409   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3410
3411   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3412
3413
3414
3415
3416 ac_aux_dir=
3417 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3418   for ac_t in install-sh install.sh shtool; do
3419     if test -f "$ac_dir/$ac_t"; then
3420       ac_aux_dir=$ac_dir
3421       ac_install_sh="$ac_aux_dir/$ac_t -c"
3422       break 2
3423     fi
3424   done
3425 done
3426 if test -z "$ac_aux_dir"; then
3427   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3428 fi
3429
3430 # These three variables are undocumented and unsupported,
3431 # and are intended to be withdrawn in a future Autoconf release.
3432 # They can cause serious problems if a builder's source tree is in a directory
3433 # whose full name contains unusual characters.
3434 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3435 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3436 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3437
3438
3439 # Make sure we can run config.sub.
3440 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3441   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3442
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3444 $as_echo_n "checking build system type... " >&6; }
3445 if test "${ac_cv_build+set}" = set; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   ac_build_alias=$build_alias
3449 test "x$ac_build_alias" = x &&
3450   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3451 test "x$ac_build_alias" = x &&
3452   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3453 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3454   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3455
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3458 $as_echo "$ac_cv_build" >&6; }
3459 case $ac_cv_build in
3460 *-*-*) ;;
3461 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3462 esac
3463 build=$ac_cv_build
3464 ac_save_IFS=$IFS; IFS='-'
3465 set x $ac_cv_build
3466 shift
3467 build_cpu=$1
3468 build_vendor=$2
3469 shift; shift
3470 # Remember, the first character of IFS is used to create $*,
3471 # except with old shells:
3472 build_os=$*
3473 IFS=$ac_save_IFS
3474 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3475
3476
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3478 $as_echo_n "checking host system type... " >&6; }
3479 if test "${ac_cv_host+set}" = set; then :
3480   $as_echo_n "(cached) " >&6
3481 else
3482   if test "x$host_alias" = x; then
3483   ac_cv_host=$ac_cv_build
3484 else
3485   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3486     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3487 fi
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3491 $as_echo "$ac_cv_host" >&6; }
3492 case $ac_cv_host in
3493 *-*-*) ;;
3494 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3495 esac
3496 host=$ac_cv_host
3497 ac_save_IFS=$IFS; IFS='-'
3498 set x $ac_cv_host
3499 shift
3500 host_cpu=$1
3501 host_vendor=$2
3502 shift; shift
3503 # Remember, the first character of IFS is used to create $*,
3504 # except with old shells:
3505 host_os=$*
3506 IFS=$ac_save_IFS
3507 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3508
3509
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3511 $as_echo_n "checking target system type... " >&6; }
3512 if test "${ac_cv_target+set}" = set; then :
3513   $as_echo_n "(cached) " >&6
3514 else
3515   if test "x$target_alias" = x; then
3516   ac_cv_target=$ac_cv_host
3517 else
3518   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3519     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3520 fi
3521
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3524 $as_echo "$ac_cv_target" >&6; }
3525 case $ac_cv_target in
3526 *-*-*) ;;
3527 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3528 esac
3529 target=$ac_cv_target
3530 ac_save_IFS=$IFS; IFS='-'
3531 set x $ac_cv_target
3532 shift
3533 target_cpu=$1
3534 target_vendor=$2
3535 shift; shift
3536 # Remember, the first character of IFS is used to create $*,
3537 # except with old shells:
3538 target_os=$*
3539 IFS=$ac_save_IFS
3540 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3541
3542
3543 # The aliases save the names the user supplied, while $host etc.
3544 # will get canonicalized.
3545 test -n "$target_alias" &&
3546   test "$program_prefix$program_suffix$program_transform_name" = \
3547     NONENONEs,x,x, &&
3548   program_prefix=${target_alias}-
3549
3550
3551 # Find a good install program.  We prefer a C program (faster),
3552 # so one script is as good as another.  But avoid the broken or
3553 # incompatible versions:
3554 # SysV /etc/install, /usr/sbin/install
3555 # SunOS /usr/etc/install
3556 # IRIX /sbin/install
3557 # AIX /bin/install
3558 # AmigaOS /C/install, which installs bootblocks on floppy discs
3559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3562 # OS/2's system install, which has a completely different semantic
3563 # ./install, which can be erroneously created by make from ./install.sh.
3564 # Reject install programs that cannot install multiple files.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3566 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3567 if test -z "$INSTALL"; then
3568 if test "${ac_cv_path_install+set}" = set; then :
3569   $as_echo_n "(cached) " >&6
3570 else
3571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
3575   test -z "$as_dir" && as_dir=.
3576     # Account for people who put trailing slashes in PATH elements.
3577 case $as_dir/ in #((
3578   ./ | .// | /[cC]/* | \
3579   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3580   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3581   /usr/ucb/* ) ;;
3582   *)
3583     # OSF1 and SCO ODT 3.0 have their own names for install.
3584     # Don't use installbsd from OSF since it installs stuff as root
3585     # by default.
3586     for ac_prog in ginstall scoinst install; do
3587       for ac_exec_ext in '' $ac_executable_extensions; do
3588         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3589           if test $ac_prog = install &&
3590             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3591             # AIX install.  It has an incompatible calling convention.
3592             :
3593           elif test $ac_prog = install &&
3594             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3595             # program-specific install script used by HP pwplus--don't use.
3596             :
3597           else
3598             rm -rf conftest.one conftest.two conftest.dir
3599             echo one > conftest.one
3600             echo two > conftest.two
3601             mkdir conftest.dir
3602             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3603               test -s conftest.one && test -s conftest.two &&
3604               test -s conftest.dir/conftest.one &&
3605               test -s conftest.dir/conftest.two
3606             then
3607               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3608               break 3
3609             fi
3610           fi
3611         fi
3612       done
3613     done
3614     ;;
3615 esac
3616
3617   done
3618 IFS=$as_save_IFS
3619
3620 rm -rf conftest.one conftest.two conftest.dir
3621
3622 fi
3623   if test "${ac_cv_path_install+set}" = set; then
3624     INSTALL=$ac_cv_path_install
3625   else
3626     # As a last resort, use the slow shell script.  Don't cache a
3627     # value for INSTALL within a source directory, because that will
3628     # break other packages using the cache if that directory is
3629     # removed, or if the value is a relative name.
3630     INSTALL=$ac_install_sh
3631   fi
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3634 $as_echo "$INSTALL" >&6; }
3635
3636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3637 # It thinks the first close brace ends the variable substitution.
3638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3639
3640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3641
3642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3643
3644
3645 test "$program_prefix" != NONE &&
3646   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3647 # Use a double $ so make ignores it.
3648 test "$program_suffix" != NONE &&
3649   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3650 # Double any \ or $.
3651 # By default was `s,x,x', remove it if useless.
3652 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3653 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3654
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3657 $as_echo_n "checking for ANSI C header files... " >&6; }
3658 if test "${ac_cv_header_stdc+set}" = set; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h.  */
3663 #include <stdlib.h>
3664 #include <stdarg.h>
3665 #include <string.h>
3666 #include <float.h>
3667
3668 int
3669 main ()
3670 {
3671
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677   ac_cv_header_stdc=yes
3678 else
3679   ac_cv_header_stdc=no
3680 fi
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682
3683 if test $ac_cv_header_stdc = yes; then
3684   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h.  */
3687 #include <string.h>
3688
3689 _ACEOF
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691   $EGREP "memchr" >/dev/null 2>&1; then :
3692
3693 else
3694   ac_cv_header_stdc=no
3695 fi
3696 rm -f conftest*
3697
3698 fi
3699
3700 if test $ac_cv_header_stdc = yes; then
3701   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704 #include <stdlib.h>
3705
3706 _ACEOF
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708   $EGREP "free" >/dev/null 2>&1; then :
3709
3710 else
3711   ac_cv_header_stdc=no
3712 fi
3713 rm -f conftest*
3714
3715 fi
3716
3717 if test $ac_cv_header_stdc = yes; then
3718   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3719   if test "$cross_compiling" = yes; then :
3720   :
3721 else
3722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h.  */
3724 #include <ctype.h>
3725 #include <stdlib.h>
3726 #if ((' ' & 0x0FF) == 0x020)
3727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3729 #else
3730 # define ISLOWER(c) \
3731                    (('a' <= (c) && (c) <= 'i') \
3732                      || ('j' <= (c) && (c) <= 'r') \
3733                      || ('s' <= (c) && (c) <= 'z'))
3734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3735 #endif
3736
3737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3738 int
3739 main ()
3740 {
3741   int i;
3742   for (i = 0; i < 256; i++)
3743     if (XOR (islower (i), ISLOWER (i))
3744         || toupper (i) != TOUPPER (i))
3745       return 2;
3746   return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_run "$LINENO"; then :
3750
3751 else
3752   ac_cv_header_stdc=no
3753 fi
3754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3755   conftest.$ac_objext conftest.beam conftest.$ac_ext
3756 fi
3757
3758 fi
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3761 $as_echo "$ac_cv_header_stdc" >&6; }
3762 if test $ac_cv_header_stdc = yes; then
3763
3764 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3765
3766 fi
3767
3768
3769 for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h           proc_service.h sys/procfs.h thread_db.h linux/elf.h             stdlib.h unistd.h               errno.h fcntl.h signal.h sys/file.h malloc.h            sys/ioctl.h netinet/in.h sys/socket.h netdb.h           netinet/tcp.h arpa/inet.h sys/wait.h
3770 do :
3771   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3772 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3773 eval as_val=\$$as_ac_Header
3774    if test "x$as_val" = x""yes; then :
3775   cat >>confdefs.h <<_ACEOF
3776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3777 _ACEOF
3778
3779 fi
3780
3781 done
3782
3783 for ac_func in pread pwrite pread64
3784 do :
3785   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3787 eval as_val=\$$as_ac_var
3788    if test "x$as_val" = x""yes; then :
3789   cat >>confdefs.h <<_ACEOF
3790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3791 _ACEOF
3792
3793 fi
3794 done
3795
3796 for ac_func in memmem
3797 do :
3798   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
3799 if test "x$ac_cv_func_memmem" = x""yes; then :
3800   cat >>confdefs.h <<_ACEOF
3801 #define HAVE_MEMMEM 1
3802 _ACEOF
3803
3804 else
3805   case " $LIBOBJS " in
3806   *" $ac_func.$ac_objext "* ) ;;
3807   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
3808  ;;
3809 esac
3810
3811 fi
3812 done
3813
3814
3815
3816 have_errno=no
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
3818 $as_echo_n "checking for errno... " >&6; }
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h.  */
3821
3822 #if HAVE_ERRNO_H
3823 #include <errno.h>
3824 #endif
3825 int
3826 main ()
3827 {
3828 static int x; x = errno;
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 if ac_fn_c_try_link "$LINENO"; then :
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
3835 $as_echo "yes - in errno.h" >&6; };
3836 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
3837  have_errno=yes
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext \
3840     conftest$ac_exeext conftest.$ac_ext
3841 if test $have_errno = no; then
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h.  */
3844
3845 #if HAVE_ERRNO_H
3846 #include <errno.h>
3847 #endif
3848 int
3849 main ()
3850 {
3851 extern int errno; static int x; x = errno;
3852   ;
3853   return 0;
3854 }
3855 _ACEOF
3856 if ac_fn_c_try_link "$LINENO"; then :
3857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
3858 $as_echo "yes - must define" >&6; };
3859 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
3860
3861 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
3862
3863 else
3864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3866 fi
3867 rm -f core conftest.err conftest.$ac_objext \
3868     conftest$ac_exeext conftest.$ac_ext
3869 fi
3870
3871 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
3872 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
3873   ac_have_decl=1
3874 else
3875   ac_have_decl=0
3876 fi
3877
3878 cat >>confdefs.h <<_ACEOF
3879 #define HAVE_DECL_STRERROR $ac_have_decl
3880 _ACEOF
3881 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
3882 if test "x$ac_cv_have_decl_perror" = x""yes; then :
3883   ac_have_decl=1
3884 else
3885   ac_have_decl=0
3886 fi
3887
3888 cat >>confdefs.h <<_ACEOF
3889 #define HAVE_DECL_PERROR $ac_have_decl
3890 _ACEOF
3891 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
3892 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
3893   ac_have_decl=1
3894 else
3895   ac_have_decl=0
3896 fi
3897
3898 cat >>confdefs.h <<_ACEOF
3899 #define HAVE_DECL_MEMMEM $ac_have_decl
3900 _ACEOF
3901
3902
3903 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
3904 #include <sys/socket.h>
3905
3906 "
3907 if test "x$ac_cv_type_socklen_t" = x""yes; then :
3908
3909 cat >>confdefs.h <<_ACEOF
3910 #define HAVE_SOCKLEN_T 1
3911 _ACEOF
3912
3913
3914 fi
3915
3916
3917
3918
3919 # Check whether --with-pkgversion was given.
3920 if test "${with_pkgversion+set}" = set; then :
3921   withval=$with_pkgversion; case "$withval" in
3922       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
3923       no)  PKGVERSION= ;;
3924       *)   PKGVERSION="($withval) " ;;
3925      esac
3926 else
3927   PKGVERSION="(GDB) "
3928
3929 fi
3930
3931
3932
3933
3934
3935 # Check whether --with-bugurl was given.
3936 if test "${with_bugurl+set}" = set; then :
3937   withval=$with_bugurl; case "$withval" in
3938       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
3939       no)  BUGURL=
3940            ;;
3941       *)   BUGURL="$withval"
3942            ;;
3943      esac
3944 else
3945   BUGURL="http://www.gnu.org/software/gdb/bugs/"
3946
3947 fi
3948
3949   case ${BUGURL} in
3950   "")
3951     REPORT_BUGS_TO=
3952     REPORT_BUGS_TEXI=
3953     ;;
3954   *)
3955     REPORT_BUGS_TO="<$BUGURL>"
3956     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3957     ;;
3958   esac;
3959
3960
3961
3962
3963 cat >>confdefs.h <<_ACEOF
3964 #define PKGVERSION "$PKGVERSION"
3965 _ACEOF
3966
3967
3968 cat >>confdefs.h <<_ACEOF
3969 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3970 _ACEOF
3971
3972
3973 . ${srcdir}/configure.srv
3974
3975 if test "${srv_mingwce}" = "yes"; then
3976   LIBS="$LIBS -lws2"
3977 elif test "${srv_mingw}" = "yes"; then
3978   LIBS="$LIBS -lwsock32"
3979 elif test "${srv_qnx}" = "yes"; then
3980   LIBS="$LIBS -lsocket"
3981 fi
3982
3983 if test "${srv_mingw}" = "yes"; then
3984
3985 $as_echo "#define USE_WIN32API 1" >>confdefs.h
3986
3987 fi
3988
3989 if test "${srv_linux_usrregs}" = "yes"; then
3990
3991 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
3992
3993 fi
3994
3995 if test "${srv_linux_regsets}" = "yes"; then
3996
3997 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
3998
3999
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
4001 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
4002   if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007 #include <sys/ptrace.h>
4008 int
4009 main ()
4010 {
4011 PTRACE_GETREGS;
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017   gdbsrv_cv_have_ptrace_getregs=yes
4018 else
4019   gdbsrv_cv_have_ptrace_getregs=no
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 fi
4023
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
4025 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
4026   if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
4027
4028 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
4029
4030   fi
4031
4032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
4033 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
4034   if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039 #include <sys/ptrace.h>
4040 int
4041 main ()
4042 {
4043 PTRACE_GETFPXREGS;
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049   gdbsrv_cv_have_ptrace_getfpxregs=yes
4050 else
4051   gdbsrv_cv_have_ptrace_getfpxregs=no
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 fi
4055
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
4057 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
4058   if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
4059
4060 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
4061
4062   fi
4063 fi
4064
4065 if test "$ac_cv_header_sys_procfs_h" = yes; then
4066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
4067 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
4068  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h.  */
4073
4074 #define _SYSCALL32
4075 #include <sys/procfs.h>
4076 int
4077 main ()
4078 {
4079 lwpid_t avar
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085   bfd_cv_have_sys_procfs_type_lwpid_t=yes
4086 else
4087   bfd_cv_have_sys_procfs_type_lwpid_t=no
4088
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 fi
4092
4093  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4094
4095 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
4096
4097  fi
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4099 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
4100
4101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
4102 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
4103  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
4104   $as_echo_n "(cached) " >&6
4105 else
4106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h.  */
4108
4109 #define _SYSCALL32
4110 #include <sys/procfs.h>
4111 int
4112 main ()
4113 {
4114 psaddr_t avar
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120   bfd_cv_have_sys_procfs_type_psaddr_t=yes
4121 else
4122   bfd_cv_have_sys_procfs_type_psaddr_t=no
4123
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 fi
4127
4128  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4129
4130 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
4131
4132  fi
4133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4134 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
4135
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
4137 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
4138  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h.  */
4143
4144 #define _SYSCALL32
4145 #include <sys/procfs.h>
4146 int
4147 main ()
4148 {
4149 prgregset_t avar
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155   bfd_cv_have_sys_procfs_type_prgregset_t=yes
4156 else
4157   bfd_cv_have_sys_procfs_type_prgregset_t=no
4158
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 fi
4162
4163  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4164
4165 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
4166
4167  fi
4168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4169 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
4170
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
4172 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
4173  if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h.  */
4178
4179 #define _SYSCALL32
4180 #include <sys/procfs.h>
4181 int
4182 main ()
4183 {
4184 elf_fpregset_t avar
4185   ;
4186   return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190   bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4191 else
4192   bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
4193
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 fi
4197
4198  if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4199
4200 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
4201
4202  fi
4203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4204 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
4205
4206 fi
4207
4208 srv_thread_depfiles=
4209 srv_libs=
4210 USE_THREAD_DB=
4211
4212 if test "$srv_linux_thread_db" = "yes"; then
4213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libthread_db" >&5
4214 $as_echo_n "checking for libthread_db... " >&6; }
4215 if test "${srv_cv_thread_db+set}" = set; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   old_LIBS="$LIBS"
4219   LIBS="$LIBS -lthread_db"
4220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222 void ps_pglobal_lookup() {}
4223    void ps_pdread() {}
4224    void ps_pdwrite() {}
4225    void ps_lgetregs() {}
4226    void ps_lsetregs() {}
4227    void ps_lgetfpregs() {}
4228    void ps_lsetfpregs() {}
4229    void ps_get_thread_area() {}
4230    void ps_getpid() {}
4231 int
4232 main ()
4233 {
4234 td_ta_new();
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_c_try_link "$LINENO"; then :
4240   srv_cv_thread_db="-lthread_db"
4241 else
4242   srv_cv_thread_db=no
4243
4244  if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
4245   thread_db="/lib/libthread_db.so.1"
4246  else
4247   thread_db='$prefix/lib/libthread_db.so.1'
4248  fi
4249  LIBS="$old_LIBS `eval echo "$thread_db"`"
4250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h.  */
4252 void ps_pglobal_lookup() {}
4253    void ps_pdread() {}
4254    void ps_pdwrite() {}
4255    void ps_lgetregs() {}
4256    void ps_lsetregs() {}
4257    void ps_lgetfpregs() {}
4258    void ps_lsetfpregs() {}
4259    void ps_get_thread_area() {}
4260    void ps_getpid() {}
4261 int
4262 main ()
4263 {
4264 td_ta_new();
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_c_try_link "$LINENO"; then :
4270   srv_cv_thread_db="$thread_db"
4271 else
4272   srv_cv_thread_db=no
4273 fi
4274 rm -f core conftest.err conftest.$ac_objext \
4275     conftest$ac_exeext conftest.$ac_ext
4276
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext \
4279     conftest$ac_exeext conftest.$ac_ext
4280  LIBS="$old_LIBS"
4281
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srv_cv_thread_db" >&5
4284 $as_echo "$srv_cv_thread_db" >&6; }
4285   if test "$srv_cv_thread_db" = no; then
4286     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libthread_db." >&5
4287 $as_echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4288     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling thread support in gdbserver." >&5
4289 $as_echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
4290     srv_linux_thread_db=no
4291   else
4292     srv_libs="$srv_cv_thread_db"
4293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_db_tls_get_addr" >&5
4294 $as_echo_n "checking for thread_db_tls_get_addr... " >&6; }
4295 if test "${srv_cv_tls_get_addr+set}" = set; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298   old_LIBS="$LIBS"
4299   LIBS="$LIBS $srv_cv_thread_db"
4300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h.  */
4302 void ps_pglobal_lookup() {}
4303     void ps_pdread() {}
4304     void ps_pdwrite() {}
4305     void ps_lgetregs() {}
4306     void ps_lsetregs() {}
4307     void ps_lgetfpregs() {}
4308     void ps_lsetfpregs() {}
4309     void ps_get_thread_area() {}
4310     void ps_getpid() {}
4311 int
4312 main ()
4313 {
4314 td_thr_tls_get_addr();
4315   ;
4316   return 0;
4317 }
4318 _ACEOF
4319 if ac_fn_c_try_link "$LINENO"; then :
4320   srv_cv_tls_get_addr=yes
4321 else
4322   srv_cv_tls_get_addr=no
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext \
4325     conftest$ac_exeext conftest.$ac_ext
4326   LIBS="$old_LIBS"
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srv_cv_tls_get_addr" >&5
4330 $as_echo "$srv_cv_tls_get_addr" >&6; }
4331   fi
4332   old_LDFLAGS="$LDFLAGS"
4333   LDFLAGS="$LDFLAGS -rdynamic"
4334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336
4337 int
4338 main ()
4339 {
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_link "$LINENO"; then :
4346   RDYNAMIC=-rdynamic
4347 else
4348   RDYNAMIC=
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext \
4351     conftest$ac_exeext conftest.$ac_ext
4352
4353   LDFLAGS="$old_LDFLAGS"
4354 fi
4355
4356 if test "$srv_linux_thread_db" = "yes"; then
4357   srv_thread_depfiles="thread-db.o proc-service.o"
4358   USE_THREAD_DB="-DUSE_THREAD_DB"
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
4360 $as_echo_n "checking for TD_VERSION... " >&6; }
4361 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h.  */
4366 #include <thread_db.h>
4367 int
4368 main ()
4369 {
4370 TD_VERSION;
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376   gdbsrv_cv_have_td_version=yes
4377 else
4378   gdbsrv_cv_have_td_version=no
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
4383 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
4384   if test $gdbsrv_cv_have_td_version = yes; then
4385
4386 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
4387
4388   fi
4389
4390   if test "$srv_cv_tls_get_addr" = yes; then
4391
4392 $as_echo "#define HAVE_TD_THR_TLS_GET_ADDR 1" >>confdefs.h
4393
4394   fi
4395 fi
4396
4397 if test "$srv_xmlfiles" != ""; then
4398   srv_xmlbuiltin="xml-builtin.o"
4399
4400 $as_echo "#define USE_XML 1" >>confdefs.h
4401
4402
4403   tmp_xmlfiles=$srv_xmlfiles
4404   srv_xmlfiles=""
4405   for f in $tmp_xmlfiles; do
4406     srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
4407   done
4408 fi
4409
4410 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4411 GDBSERVER_LIBS="$srv_libs"
4412
4413
4414
4415
4416
4417
4418
4419 ac_config_files="$ac_config_files Makefile"
4420
4421 ac_config_commands="$ac_config_commands default"
4422
4423 cat >confcache <<\_ACEOF
4424 # This file is a shell script that caches the results of configure
4425 # tests run on this system so they can be shared between configure
4426 # scripts and configure runs, see configure's option --config-cache.
4427 # It is not useful on other systems.  If it contains results you don't
4428 # want to keep, you may remove or edit it.
4429 #
4430 # config.status only pays attention to the cache file if you give it
4431 # the --recheck option to rerun configure.
4432 #
4433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4435 # following values.
4436
4437 _ACEOF
4438
4439 # The following way of writing the cache mishandles newlines in values,
4440 # but we know of no workaround that is simple, portable, and efficient.
4441 # So, we kill variables containing newlines.
4442 # Ultrix sh set writes to stderr and can't be redirected directly,
4443 # and sets the high bit in the cache file unless we assign to the vars.
4444 (
4445   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4446     eval ac_val=\$$ac_var
4447     case $ac_val in #(
4448     *${as_nl}*)
4449       case $ac_var in #(
4450       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4452       esac
4453       case $ac_var in #(
4454       _ | IFS | as_nl) ;; #(
4455       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4456       *) { eval $ac_var=; unset $ac_var;} ;;
4457       esac ;;
4458     esac
4459   done
4460
4461   (set) 2>&1 |
4462     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4463     *${as_nl}ac_space=\ *)
4464       # `set' does not quote correctly, so add quotes: double-quote
4465       # substitution turns \\\\ into \\, and sed turns \\ into \.
4466       sed -n \
4467         "s/'/'\\\\''/g;
4468           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4469       ;; #(
4470     *)
4471       # `set' quotes correctly as required by POSIX, so do not add quotes.
4472       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4473       ;;
4474     esac |
4475     sort
4476 ) |
4477   sed '
4478      /^ac_cv_env_/b end
4479      t clear
4480      :clear
4481      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4482      t end
4483      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4484      :end' >>confcache
4485 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4486   if test -w "$cache_file"; then
4487     test "x$cache_file" != "x/dev/null" &&
4488       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4489 $as_echo "$as_me: updating cache $cache_file" >&6;}
4490     cat confcache >$cache_file
4491   else
4492     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4493 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4494   fi
4495 fi
4496 rm -f confcache
4497
4498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4499 # Let make expand exec_prefix.
4500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4501
4502 DEFS=-DHAVE_CONFIG_H
4503
4504 ac_libobjs=
4505 ac_ltlibobjs=
4506 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4507   # 1. Remove the extension, and $U if already installed.
4508   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4509   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4510   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4511   #    will be set to the directory where LIBOBJS objects are built.
4512   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4513   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4514 done
4515 LIBOBJS=$ac_libobjs
4516
4517 LTLIBOBJS=$ac_ltlibobjs
4518
4519
4520
4521 : ${CONFIG_STATUS=./config.status}
4522 ac_write_fail=0
4523 ac_clean_files_save=$ac_clean_files
4524 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4526 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4527 as_write_fail=0
4528 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4529 #! $SHELL
4530 # Generated by $as_me.
4531 # Run this file to recreate the current configuration.
4532 # Compiler output produced by configure, useful for debugging
4533 # configure, is in config.log if it exists.
4534
4535 debug=false
4536 ac_cs_recheck=false
4537 ac_cs_silent=false
4538
4539 SHELL=\${CONFIG_SHELL-$SHELL}
4540 export SHELL
4541 _ASEOF
4542 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4543 ## -------------------- ##
4544 ## M4sh Initialization. ##
4545 ## -------------------- ##
4546
4547 # Be more Bourne compatible
4548 DUALCASE=1; export DUALCASE # for MKS sh
4549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4550   emulate sh
4551   NULLCMD=:
4552   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4553   # is contrary to our usage.  Disable this feature.
4554   alias -g '${1+"$@"}'='"$@"'
4555   setopt NO_GLOB_SUBST
4556 else
4557   case `(set -o) 2>/dev/null` in #(
4558   *posix*) :
4559     set -o posix ;; #(
4560   *) :
4561      ;;
4562 esac
4563 fi
4564
4565
4566 as_nl='
4567 '
4568 export as_nl
4569 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4570 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4572 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4573 # Prefer a ksh shell builtin over an external printf program on Solaris,
4574 # but without wasting forks for bash or zsh.
4575 if test -z "$BASH_VERSION$ZSH_VERSION" \
4576     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4577   as_echo='print -r --'
4578   as_echo_n='print -rn --'
4579 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4580   as_echo='printf %s\n'
4581   as_echo_n='printf %s'
4582 else
4583   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4584     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4585     as_echo_n='/usr/ucb/echo -n'
4586   else
4587     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4588     as_echo_n_body='eval
4589       arg=$1;
4590       case $arg in #(
4591       *"$as_nl"*)
4592         expr "X$arg" : "X\\(.*\\)$as_nl";
4593         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4594       esac;
4595       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4596     '
4597     export as_echo_n_body
4598     as_echo_n='sh -c $as_echo_n_body as_echo'
4599   fi
4600   export as_echo_body
4601   as_echo='sh -c $as_echo_body as_echo'
4602 fi
4603
4604 # The user is always right.
4605 if test "${PATH_SEPARATOR+set}" != set; then
4606   PATH_SEPARATOR=:
4607   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4608     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4609       PATH_SEPARATOR=';'
4610   }
4611 fi
4612
4613
4614 # IFS
4615 # We need space, tab and new line, in precisely that order.  Quoting is
4616 # there to prevent editors from complaining about space-tab.
4617 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4618 # splitting by setting IFS to empty value.)
4619 IFS=" ""        $as_nl"
4620
4621 # Find who we are.  Look in the path if we contain no directory separator.
4622 case $0 in #((
4623   *[\\/]* ) as_myself=$0 ;;
4624   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4630   done
4631 IFS=$as_save_IFS
4632
4633      ;;
4634 esac
4635 # We did not find ourselves, most probably we were run as `sh COMMAND'
4636 # in which case we are not to be found in the path.
4637 if test "x$as_myself" = x; then
4638   as_myself=$0
4639 fi
4640 if test ! -f "$as_myself"; then
4641   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4642   exit 1
4643 fi
4644
4645 # Unset variables that we do not need and which cause bugs (e.g. in
4646 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4647 # suppresses any "Segmentation fault" message there.  '((' could
4648 # trigger a bug in pdksh 5.2.14.
4649 for as_var in BASH_ENV ENV MAIL MAILPATH
4650 do eval test x\${$as_var+set} = xset \
4651   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4652 done
4653 PS1='$ '
4654 PS2='> '
4655 PS4='+ '
4656
4657 # NLS nuisances.
4658 LC_ALL=C
4659 export LC_ALL
4660 LANGUAGE=C
4661 export LANGUAGE
4662
4663 # CDPATH.
4664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4665
4666
4667 # as_fn_error ERROR [LINENO LOG_FD]
4668 # ---------------------------------
4669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4671 # script with status $?, using 1 if that was 0.
4672 as_fn_error ()
4673 {
4674   as_status=$?; test $as_status -eq 0 && as_status=1
4675   if test "$3"; then
4676     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4677     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4678   fi
4679   $as_echo "$as_me: error: $1" >&2
4680   as_fn_exit $as_status
4681 } # as_fn_error
4682
4683
4684 # as_fn_set_status STATUS
4685 # -----------------------
4686 # Set $? to STATUS, without forking.
4687 as_fn_set_status ()
4688 {
4689   return $1
4690 } # as_fn_set_status
4691
4692 # as_fn_exit STATUS
4693 # -----------------
4694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4695 as_fn_exit ()
4696 {
4697   set +e
4698   as_fn_set_status $1
4699   exit $1
4700 } # as_fn_exit
4701
4702 # as_fn_unset VAR
4703 # ---------------
4704 # Portably unset VAR.
4705 as_fn_unset ()
4706 {
4707   { eval $1=; unset $1;}
4708 }
4709 as_unset=as_fn_unset
4710 # as_fn_append VAR VALUE
4711 # ----------------------
4712 # Append the text in VALUE to the end of the definition contained in VAR. Take
4713 # advantage of any shell optimizations that allow amortized linear growth over
4714 # repeated appends, instead of the typical quadratic growth present in naive
4715 # implementations.
4716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4717   eval 'as_fn_append ()
4718   {
4719     eval $1+=\$2
4720   }'
4721 else
4722   as_fn_append ()
4723   {
4724     eval $1=\$$1\$2
4725   }
4726 fi # as_fn_append
4727
4728 # as_fn_arith ARG...
4729 # ------------------
4730 # Perform arithmetic evaluation on the ARGs, and store the result in the
4731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4732 # must be portable across $(()) and expr.
4733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4734   eval 'as_fn_arith ()
4735   {
4736     as_val=$(( $* ))
4737   }'
4738 else
4739   as_fn_arith ()
4740   {
4741     as_val=`expr "$@" || test $? -eq 1`
4742   }
4743 fi # as_fn_arith
4744
4745
4746 if expr a : '\(a\)' >/dev/null 2>&1 &&
4747    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4748   as_expr=expr
4749 else
4750   as_expr=false
4751 fi
4752
4753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4754   as_basename=basename
4755 else
4756   as_basename=false
4757 fi
4758
4759 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4760   as_dirname=dirname
4761 else
4762   as_dirname=false
4763 fi
4764
4765 as_me=`$as_basename -- "$0" ||
4766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4767          X"$0" : 'X\(//\)$' \| \
4768          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4769 $as_echo X/"$0" |
4770     sed '/^.*\/\([^/][^/]*\)\/*$/{
4771             s//\1/
4772             q
4773           }
4774           /^X\/\(\/\/\)$/{
4775             s//\1/
4776             q
4777           }
4778           /^X\/\(\/\).*/{
4779             s//\1/
4780             q
4781           }
4782           s/.*/./; q'`
4783
4784 # Avoid depending upon Character Ranges.
4785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4788 as_cr_digits='0123456789'
4789 as_cr_alnum=$as_cr_Letters$as_cr_digits
4790
4791 ECHO_C= ECHO_N= ECHO_T=
4792 case `echo -n x` in #(((((
4793 -n*)
4794   case `echo 'xy\c'` in
4795   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
4796   xy)  ECHO_C='\c';;
4797   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4798        ECHO_T=' ';;
4799   esac;;
4800 *)
4801   ECHO_N='-n';;
4802 esac
4803
4804 rm -f conf$$ conf$$.exe conf$$.file
4805 if test -d conf$$.dir; then
4806   rm -f conf$$.dir/conf$$.file
4807 else
4808   rm -f conf$$.dir
4809   mkdir conf$$.dir 2>/dev/null
4810 fi
4811 if (echo >conf$$.file) 2>/dev/null; then
4812   if ln -s conf$$.file conf$$ 2>/dev/null; then
4813     as_ln_s='ln -s'
4814     # ... but there are two gotchas:
4815     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4816     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4817     # In both cases, we have to default to `cp -p'.
4818     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4819       as_ln_s='cp -p'
4820   elif ln conf$$.file conf$$ 2>/dev/null; then
4821     as_ln_s=ln
4822   else
4823     as_ln_s='cp -p'
4824   fi
4825 else
4826   as_ln_s='cp -p'
4827 fi
4828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4829 rmdir conf$$.dir 2>/dev/null
4830
4831
4832 # as_fn_mkdir_p
4833 # -------------
4834 # Create "$as_dir" as a directory, including parents if necessary.
4835 as_fn_mkdir_p ()
4836 {
4837
4838   case $as_dir in #(
4839   -*) as_dir=./$as_dir;;
4840   esac
4841   test -d "$as_dir" || eval $as_mkdir_p || {
4842     as_dirs=
4843     while :; do
4844       case $as_dir in #(
4845       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4846       *) as_qdir=$as_dir;;
4847       esac
4848       as_dirs="'$as_qdir' $as_dirs"
4849       as_dir=`$as_dirname -- "$as_dir" ||
4850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4851          X"$as_dir" : 'X\(//\)[^/]' \| \
4852          X"$as_dir" : 'X\(//\)$' \| \
4853          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4854 $as_echo X"$as_dir" |
4855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4856             s//\1/
4857             q
4858           }
4859           /^X\(\/\/\)[^/].*/{
4860             s//\1/
4861             q
4862           }
4863           /^X\(\/\/\)$/{
4864             s//\1/
4865             q
4866           }
4867           /^X\(\/\).*/{
4868             s//\1/
4869             q
4870           }
4871           s/.*/./; q'`
4872       test -d "$as_dir" && break
4873     done
4874     test -z "$as_dirs" || eval "mkdir $as_dirs"
4875   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4876
4877
4878 } # as_fn_mkdir_p
4879 if mkdir -p . 2>/dev/null; then
4880   as_mkdir_p='mkdir -p "$as_dir"'
4881 else
4882   test -d ./-p && rmdir ./-p
4883   as_mkdir_p=false
4884 fi
4885
4886 if test -x / >/dev/null 2>&1; then
4887   as_test_x='test -x'
4888 else
4889   if ls -dL / >/dev/null 2>&1; then
4890     as_ls_L_option=L
4891   else
4892     as_ls_L_option=
4893   fi
4894   as_test_x='
4895     eval sh -c '\''
4896       if test -d "$1"; then
4897         test -d "$1/.";
4898       else
4899         case $1 in #(
4900         -*)set "./$1";;
4901         esac;
4902         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4903         ???[sx]*):;;*)false;;esac;fi
4904     '\'' sh
4905   '
4906 fi
4907 as_executable_p=$as_test_x
4908
4909 # Sed expression to map a string onto a valid CPP name.
4910 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4911
4912 # Sed expression to map a string onto a valid variable name.
4913 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4914
4915
4916 exec 6>&1
4917 ## ----------------------------------- ##
4918 ## Main body of $CONFIG_STATUS script. ##
4919 ## ----------------------------------- ##
4920 _ASEOF
4921 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4922
4923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4924 # Save the log message, to keep $0 and so on meaningful, and to
4925 # report actual input values of CONFIG_FILES etc. instead of their
4926 # values after options handling.
4927 ac_log="
4928 This file was extended by $as_me, which was
4929 generated by GNU Autoconf 2.64.  Invocation command line was
4930
4931   CONFIG_FILES    = $CONFIG_FILES
4932   CONFIG_HEADERS  = $CONFIG_HEADERS
4933   CONFIG_LINKS    = $CONFIG_LINKS
4934   CONFIG_COMMANDS = $CONFIG_COMMANDS
4935   $ $0 $@
4936
4937 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4938 "
4939
4940 _ACEOF
4941
4942 case $ac_config_files in *"
4943 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4944 esac
4945
4946 case $ac_config_headers in *"
4947 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4948 esac
4949
4950
4951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4952 # Files that config.status was made for.
4953 config_files="$ac_config_files"
4954 config_headers="$ac_config_headers"
4955 config_commands="$ac_config_commands"
4956
4957 _ACEOF
4958
4959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4960 ac_cs_usage="\
4961 \`$as_me' instantiates files and other configuration actions
4962 from templates according to the current configuration.  Unless the files
4963 and actions are specified as TAGs, all are instantiated by default.
4964
4965 Usage: $0 [OPTION]... [TAG]...
4966
4967   -h, --help       print this help, then exit
4968   -V, --version    print version number and configuration settings, then exit
4969   -q, --quiet, --silent
4970                    do not print progress messages
4971   -d, --debug      don't remove temporary files
4972       --recheck    update $as_me by reconfiguring in the same conditions
4973       --file=FILE[:TEMPLATE]
4974                    instantiate the configuration file FILE
4975       --header=FILE[:TEMPLATE]
4976                    instantiate the configuration header FILE
4977
4978 Configuration files:
4979 $config_files
4980
4981 Configuration headers:
4982 $config_headers
4983
4984 Configuration commands:
4985 $config_commands
4986
4987 Report bugs to the package provider."
4988
4989 _ACEOF
4990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4991 ac_cs_version="\\
4992 config.status
4993 configured by $0, generated by GNU Autoconf 2.64,
4994   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4995
4996 Copyright (C) 2009 Free Software Foundation, Inc.
4997 This config.status script is free software; the Free Software Foundation
4998 gives unlimited permission to copy, distribute and modify it."
4999
5000 ac_pwd='$ac_pwd'
5001 srcdir='$srcdir'
5002 INSTALL='$INSTALL'
5003 test -n "\$AWK" || AWK=awk
5004 _ACEOF
5005
5006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5007 # The default lists apply if the user does not specify any file.
5008 ac_need_defaults=:
5009 while test $# != 0
5010 do
5011   case $1 in
5012   --*=*)
5013     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5014     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5015     ac_shift=:
5016     ;;
5017   *)
5018     ac_option=$1
5019     ac_optarg=$2
5020     ac_shift=shift
5021     ;;
5022   esac
5023
5024   case $ac_option in
5025   # Handling of the options.
5026   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5027     ac_cs_recheck=: ;;
5028   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5029     $as_echo "$ac_cs_version"; exit ;;
5030   --debug | --debu | --deb | --de | --d | -d )
5031     debug=: ;;
5032   --file | --fil | --fi | --f )
5033     $ac_shift
5034     case $ac_optarg in
5035     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5036     esac
5037     as_fn_append CONFIG_FILES " '$ac_optarg'"
5038     ac_need_defaults=false;;
5039   --header | --heade | --head | --hea )
5040     $ac_shift
5041     case $ac_optarg in
5042     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5043     esac
5044     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5045     ac_need_defaults=false;;
5046   --he | --h)
5047     # Conflict between --help and --header
5048     as_fn_error "ambiguous option: \`$1'
5049 Try \`$0 --help' for more information.";;
5050   --help | --hel | -h )
5051     $as_echo "$ac_cs_usage"; exit ;;
5052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5053   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5054     ac_cs_silent=: ;;
5055
5056   # This is an error.
5057   -*) as_fn_error "unrecognized option: \`$1'
5058 Try \`$0 --help' for more information." ;;
5059
5060   *) as_fn_append ac_config_targets " $1"
5061      ac_need_defaults=false ;;
5062
5063   esac
5064   shift
5065 done
5066
5067 ac_configure_extra_args=
5068
5069 if $ac_cs_silent; then
5070   exec 6>/dev/null
5071   ac_configure_extra_args="$ac_configure_extra_args --silent"
5072 fi
5073
5074 _ACEOF
5075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5076 if \$ac_cs_recheck; then
5077   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5078   shift
5079   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5080   CONFIG_SHELL='$SHELL'
5081   export CONFIG_SHELL
5082   exec "\$@"
5083 fi
5084
5085 _ACEOF
5086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5087 exec 5>>config.log
5088 {
5089   echo
5090   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5091 ## Running $as_me. ##
5092 _ASBOX
5093   $as_echo "$ac_log"
5094 } >&5
5095
5096 _ACEOF
5097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5098 _ACEOF
5099
5100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5101
5102 # Handling of arguments.
5103 for ac_config_target in $ac_config_targets
5104 do
5105   case $ac_config_target in
5106     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5107     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5108     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5109
5110   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5111   esac
5112 done
5113
5114
5115 # If the user did not use the arguments to specify the items to instantiate,
5116 # then the envvar interface is used.  Set only those that are not.
5117 # We use the long form for the default assignment because of an extremely
5118 # bizarre bug on SunOS 4.1.3.
5119 if $ac_need_defaults; then
5120   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5121   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5122   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5123 fi
5124
5125 # Have a temporary directory for convenience.  Make it in the build tree
5126 # simply because there is no reason against having it here, and in addition,
5127 # creating and moving files from /tmp can sometimes cause problems.
5128 # Hook for its removal unless debugging.
5129 # Note that there is a small window in which the directory will not be cleaned:
5130 # after its creation but before its name has been assigned to `$tmp'.
5131 $debug ||
5132 {
5133   tmp=
5134   trap 'exit_status=$?
5135   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5136 ' 0
5137   trap 'as_fn_exit 1' 1 2 13 15
5138 }
5139 # Create a (secure) tmp directory for tmp files.
5140
5141 {
5142   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5143   test -n "$tmp" && test -d "$tmp"
5144 }  ||
5145 {
5146   tmp=./conf$$-$RANDOM
5147   (umask 077 && mkdir "$tmp")
5148 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5149
5150 # Set up the scripts for CONFIG_FILES section.
5151 # No need to generate them if there are no CONFIG_FILES.
5152 # This happens for instance with `./config.status config.h'.
5153 if test -n "$CONFIG_FILES"; then
5154
5155
5156 ac_cr=`echo X | tr X '\015'`
5157 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5158 # But we know of no other shell where ac_cr would be empty at this
5159 # point, so we can use a bashism as a fallback.
5160 if test "x$ac_cr" = x; then
5161   eval ac_cr=\$\'\\r\'
5162 fi
5163 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5164 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5165   ac_cs_awk_cr='\r'
5166 else
5167   ac_cs_awk_cr=$ac_cr
5168 fi
5169
5170 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5171 _ACEOF
5172
5173
5174 {
5175   echo "cat >conf$$subs.awk <<_ACEOF" &&
5176   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5177   echo "_ACEOF"
5178 } >conf$$subs.sh ||
5179   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5180 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5181 ac_delim='%!_!# '
5182 for ac_last_try in false false false false false :; do
5183   . ./conf$$subs.sh ||
5184     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5185
5186   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5187   if test $ac_delim_n = $ac_delim_num; then
5188     break
5189   elif $ac_last_try; then
5190     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5191   else
5192     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5193   fi
5194 done
5195 rm -f conf$$subs.sh
5196
5197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5198 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5199 _ACEOF
5200 sed -n '
5201 h
5202 s/^/S["/; s/!.*/"]=/
5203 p
5204 g
5205 s/^[^!]*!//
5206 :repl
5207 t repl
5208 s/'"$ac_delim"'$//
5209 t delim
5210 :nl
5211 h
5212 s/\(.\{148\}\).*/\1/
5213 t more1
5214 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5215 p
5216 n
5217 b repl
5218 :more1
5219 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5220 p
5221 g
5222 s/.\{148\}//
5223 t nl
5224 :delim
5225 h
5226 s/\(.\{148\}\).*/\1/
5227 t more2
5228 s/["\\]/\\&/g; s/^/"/; s/$/"/
5229 p
5230 b
5231 :more2
5232 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5233 p
5234 g
5235 s/.\{148\}//
5236 t delim
5237 ' <conf$$subs.awk | sed '
5238 /^[^""]/{
5239   N
5240   s/\n//
5241 }
5242 ' >>$CONFIG_STATUS || ac_write_fail=1
5243 rm -f conf$$subs.awk
5244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5245 _ACAWK
5246 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5247   for (key in S) S_is_set[key] = 1
5248   FS = "\a"
5249
5250 }
5251 {
5252   line = $ 0
5253   nfields = split(line, field, "@")
5254   substed = 0
5255   len = length(field[1])
5256   for (i = 2; i < nfields; i++) {
5257     key = field[i]
5258     keylen = length(key)
5259     if (S_is_set[key]) {
5260       value = S[key]
5261       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5262       len += length(value) + length(field[++i])
5263       substed = 1
5264     } else
5265       len += 1 + keylen
5266   }
5267
5268   print line
5269 }
5270
5271 _ACAWK
5272 _ACEOF
5273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5274 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5275   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5276 else
5277   cat
5278 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5279   || as_fn_error "could not setup config files machinery" "$LINENO" 5
5280 _ACEOF
5281
5282 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5283 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5284 # trailing colons and then remove the whole line if VPATH becomes empty
5285 # (actually we leave an empty line to preserve line numbers).
5286 if test "x$srcdir" = x.; then
5287   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5288 s/:*\$(srcdir):*/:/
5289 s/:*\${srcdir}:*/:/
5290 s/:*@srcdir@:*/:/
5291 s/^\([^=]*=[     ]*\):*/\1/
5292 s/:*$//
5293 s/^[^=]*=[       ]*$//
5294 }'
5295 fi
5296
5297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5298 fi # test -n "$CONFIG_FILES"
5299
5300 # Set up the scripts for CONFIG_HEADERS section.
5301 # No need to generate them if there are no CONFIG_HEADERS.
5302 # This happens for instance with `./config.status Makefile'.
5303 if test -n "$CONFIG_HEADERS"; then
5304 cat >"$tmp/defines.awk" <<\_ACAWK ||
5305 BEGIN {
5306 _ACEOF
5307
5308 # Transform confdefs.h into an awk script `defines.awk', embedded as
5309 # here-document in config.status, that substitutes the proper values into
5310 # config.h.in to produce config.h.
5311
5312 # Create a delimiter string that does not exist in confdefs.h, to ease
5313 # handling of long lines.
5314 ac_delim='%!_!# '
5315 for ac_last_try in false false :; do
5316   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5317   if test -z "$ac_t"; then
5318     break
5319   elif $ac_last_try; then
5320     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5321   else
5322     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5323   fi
5324 done
5325
5326 # For the awk script, D is an array of macro values keyed by name,
5327 # likewise P contains macro parameters if any.  Preserve backslash
5328 # newline sequences.
5329
5330 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5331 sed -n '
5332 s/.\{148\}/&'"$ac_delim"'/g
5333 t rset
5334 :rset
5335 s/^[     ]*#[    ]*define[       ][      ]*/ /
5336 t def
5337 d
5338 :def
5339 s/\\$//
5340 t bsnl
5341 s/["\\]/\\&/g
5342 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5343 D["\1"]=" \3"/p
5344 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
5345 d
5346 :bsnl
5347 s/["\\]/\\&/g
5348 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5349 D["\1"]=" \3\\\\\\n"\\/p
5350 t cont
5351 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5352 t cont
5353 d
5354 :cont
5355 n
5356 s/.\{148\}/&'"$ac_delim"'/g
5357 t clear
5358 :clear
5359 s/\\$//
5360 t bsnlc
5361 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5362 d
5363 :bsnlc
5364 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5365 b cont
5366 ' <confdefs.h | sed '
5367 s/'"$ac_delim"'/"\\\
5368 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5369
5370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5371   for (key in D) D_is_set[key] = 1
5372   FS = "\a"
5373 }
5374 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5375   line = \$ 0
5376   split(line, arg, " ")
5377   if (arg[1] == "#") {
5378     defundef = arg[2]
5379     mac1 = arg[3]
5380   } else {
5381     defundef = substr(arg[1], 2)
5382     mac1 = arg[2]
5383   }
5384   split(mac1, mac2, "(") #)
5385   macro = mac2[1]
5386   prefix = substr(line, 1, index(line, defundef) - 1)
5387   if (D_is_set[macro]) {
5388     # Preserve the white space surrounding the "#".
5389     print prefix "define", macro P[macro] D[macro]
5390     next
5391   } else {
5392     # Replace #undef with comments.  This is necessary, for example,
5393     # in the case of _POSIX_SOURCE, which is predefined and required
5394     # on some systems where configure will not decide to define it.
5395     if (defundef == "undef") {
5396       print "/*", prefix defundef, macro, "*/"
5397       next
5398     }
5399   }
5400 }
5401 { print }
5402 _ACAWK
5403 _ACEOF
5404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5405   as_fn_error "could not setup config headers machinery" "$LINENO" 5
5406 fi # test -n "$CONFIG_HEADERS"
5407
5408
5409 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5410 shift
5411 for ac_tag
5412 do
5413   case $ac_tag in
5414   :[FHLC]) ac_mode=$ac_tag; continue;;
5415   esac
5416   case $ac_mode$ac_tag in
5417   :[FHL]*:*);;
5418   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5419   :[FH]-) ac_tag=-:-;;
5420   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5421   esac
5422   ac_save_IFS=$IFS
5423   IFS=:
5424   set x $ac_tag
5425   IFS=$ac_save_IFS
5426   shift
5427   ac_file=$1
5428   shift
5429
5430   case $ac_mode in
5431   :L) ac_source=$1;;
5432   :[FH])
5433     ac_file_inputs=
5434     for ac_f
5435     do
5436       case $ac_f in
5437       -) ac_f="$tmp/stdin";;
5438       *) # Look for the file first in the build tree, then in the source tree
5439          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5440          # because $ac_f cannot contain `:'.
5441          test -f "$ac_f" ||
5442            case $ac_f in
5443            [\\/$]*) false;;
5444            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5445            esac ||
5446            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5447       esac
5448       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5449       as_fn_append ac_file_inputs " '$ac_f'"
5450     done
5451
5452     # Let's still pretend it is `configure' which instantiates (i.e., don't
5453     # use $as_me), people would be surprised to read:
5454     #    /* config.h.  Generated by config.status.  */
5455     configure_input='Generated from '`
5456           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5457         `' by configure.'
5458     if test x"$ac_file" != x-; then
5459       configure_input="$ac_file.  $configure_input"
5460       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5461 $as_echo "$as_me: creating $ac_file" >&6;}
5462     fi
5463     # Neutralize special characters interpreted by sed in replacement strings.
5464     case $configure_input in #(
5465     *\&* | *\|* | *\\* )
5466        ac_sed_conf_input=`$as_echo "$configure_input" |
5467        sed 's/[\\\\&|]/\\\\&/g'`;; #(
5468     *) ac_sed_conf_input=$configure_input;;
5469     esac
5470
5471     case $ac_tag in
5472     *:-:* | *:-) cat >"$tmp/stdin" \
5473       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5474     esac
5475     ;;
5476   esac
5477
5478   ac_dir=`$as_dirname -- "$ac_file" ||
5479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5480          X"$ac_file" : 'X\(//\)[^/]' \| \
5481          X"$ac_file" : 'X\(//\)$' \| \
5482          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5483 $as_echo X"$ac_file" |
5484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5485             s//\1/
5486             q
5487           }
5488           /^X\(\/\/\)[^/].*/{
5489             s//\1/
5490             q
5491           }
5492           /^X\(\/\/\)$/{
5493             s//\1/
5494             q
5495           }
5496           /^X\(\/\).*/{
5497             s//\1/
5498             q
5499           }
5500           s/.*/./; q'`
5501   as_dir="$ac_dir"; as_fn_mkdir_p
5502   ac_builddir=.
5503
5504 case "$ac_dir" in
5505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5506 *)
5507   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5508   # A ".." for each directory in $ac_dir_suffix.
5509   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5510   case $ac_top_builddir_sub in
5511   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5512   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5513   esac ;;
5514 esac
5515 ac_abs_top_builddir=$ac_pwd
5516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5517 # for backward compatibility:
5518 ac_top_builddir=$ac_top_build_prefix
5519
5520 case $srcdir in
5521   .)  # We are building in place.
5522     ac_srcdir=.
5523     ac_top_srcdir=$ac_top_builddir_sub
5524     ac_abs_top_srcdir=$ac_pwd ;;
5525   [\\/]* | ?:[\\/]* )  # Absolute name.
5526     ac_srcdir=$srcdir$ac_dir_suffix;
5527     ac_top_srcdir=$srcdir
5528     ac_abs_top_srcdir=$srcdir ;;
5529   *) # Relative name.
5530     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5531     ac_top_srcdir=$ac_top_build_prefix$srcdir
5532     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5533 esac
5534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5535
5536
5537   case $ac_mode in
5538   :F)
5539   #
5540   # CONFIG_FILE
5541   #
5542
5543   case $INSTALL in
5544   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5545   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5546   esac
5547 _ACEOF
5548
5549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5550 # If the template does not know about datarootdir, expand it.
5551 # FIXME: This hack should be removed a few years after 2.60.
5552 ac_datarootdir_hack=; ac_datarootdir_seen=
5553 ac_sed_dataroot='
5554 /datarootdir/ {
5555   p
5556   q
5557 }
5558 /@datadir@/p
5559 /@docdir@/p
5560 /@infodir@/p
5561 /@localedir@/p
5562 /@mandir@/p'
5563 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5564 *datarootdir*) ac_datarootdir_seen=yes;;
5565 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5567 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5568 _ACEOF
5569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5570   ac_datarootdir_hack='
5571   s&@datadir@&$datadir&g
5572   s&@docdir@&$docdir&g
5573   s&@infodir@&$infodir&g
5574   s&@localedir@&$localedir&g
5575   s&@mandir@&$mandir&g
5576   s&\\\${datarootdir}&$datarootdir&g' ;;
5577 esac
5578 _ACEOF
5579
5580 # Neutralize VPATH when `$srcdir' = `.'.
5581 # Shell code in configure.ac might set extrasub.
5582 # FIXME: do we really want to maintain this feature?
5583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5584 ac_sed_extra="$ac_vpsub
5585 $extrasub
5586 _ACEOF
5587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5588 :t
5589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5590 s|@configure_input@|$ac_sed_conf_input|;t t
5591 s&@top_builddir@&$ac_top_builddir_sub&;t t
5592 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5593 s&@srcdir@&$ac_srcdir&;t t
5594 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5595 s&@top_srcdir@&$ac_top_srcdir&;t t
5596 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5597 s&@builddir@&$ac_builddir&;t t
5598 s&@abs_builddir@&$ac_abs_builddir&;t t
5599 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5600 s&@INSTALL@&$ac_INSTALL&;t t
5601 $ac_datarootdir_hack
5602 "
5603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5604   || as_fn_error "could not create $ac_file" "$LINENO" 5
5605
5606 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5607   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5608   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5610 which seems to be undefined.  Please make sure it is defined." >&5
5611 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5612 which seems to be undefined.  Please make sure it is defined." >&2;}
5613
5614   rm -f "$tmp/stdin"
5615   case $ac_file in
5616   -) cat "$tmp/out" && rm -f "$tmp/out";;
5617   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5618   esac \
5619   || as_fn_error "could not create $ac_file" "$LINENO" 5
5620  ;;
5621   :H)
5622   #
5623   # CONFIG_HEADER
5624   #
5625   if test x"$ac_file" != x-; then
5626     {
5627       $as_echo "/* $configure_input  */" \
5628       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5629     } >"$tmp/config.h" \
5630       || as_fn_error "could not create $ac_file" "$LINENO" 5
5631     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5632       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5633 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5634     else
5635       rm -f "$ac_file"
5636       mv "$tmp/config.h" "$ac_file" \
5637         || as_fn_error "could not create $ac_file" "$LINENO" 5
5638     fi
5639   else
5640     $as_echo "/* $configure_input  */" \
5641       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5642       || as_fn_error "could not create -" "$LINENO" 5
5643   fi
5644  ;;
5645
5646   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5647 $as_echo "$as_me: executing $ac_file commands" >&6;}
5648  ;;
5649   esac
5650
5651
5652   case $ac_file$ac_mode in
5653     "default":C) case x$CONFIG_HEADERS in
5654 xconfig.h:config.in)
5655 echo > stamp-h ;;
5656 esac
5657  ;;
5658
5659   esac
5660 done # for ac_tag
5661
5662
5663 as_fn_exit 0
5664 _ACEOF
5665 ac_clean_files=$ac_clean_files_save
5666
5667 test $ac_write_fail = 0 ||
5668   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5669
5670
5671 # configure is writing to config.log, and then calls config.status.
5672 # config.status does its own redirection, appending to config.log.
5673 # Unfortunately, on DOS this fails, as config.log is still kept open
5674 # by configure, so config.status won't be able to write to it; its
5675 # output is simply discarded.  So we exec the FD to /dev/null,
5676 # effectively closing config.log, so it can be properly (re)opened and
5677 # appended to by config.status.  When coming back to configure, we
5678 # need to make the FD available again.
5679 if test "$no_create" != yes; then
5680   ac_cs_success=:
5681   ac_config_status_args=
5682   test "$silent" = yes &&
5683     ac_config_status_args="$ac_config_status_args --quiet"
5684   exec 5>/dev/null
5685   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5686   exec 5>>config.log
5687   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5688   # would make configure fail if this is the last instruction.
5689   $ac_cs_success || as_fn_exit $?
5690 fi
5691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5694 fi
5695