Rely on gnulib's unistd.h replacement.
[external/binutils.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 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_subst_vars='LTLIBOBJS
592 version_target
593 version_host
594 GNULIB_STDINT_H
595 extra_libraries
596 IPA_DEPFILES
597 srv_xmlfiles
598 srv_xmlbuiltin
599 GDBSERVER_LIBS
600 GDBSERVER_DEPFILES
601 RDYNAMIC
602 REPORT_BUGS_TEXI
603 REPORT_BUGS_TO
604 PKGVERSION
605 WERROR_CFLAGS
606 WARN_CFLAGS
607 ustinc
608 ustlibs
609 LIBOBJS
610 SET_MAKE
611 GMAKE_FALSE
612 GMAKE_TRUE
613 MAKE
614 CCDEPMODE
615 DEPDIR
616 am__leading_dot
617 ALLOCA
618 RANLIB
619 INSTALL_DATA
620 INSTALL_SCRIPT
621 INSTALL_PROGRAM
622 target_os
623 target_vendor
624 target_cpu
625 target
626 host_os
627 host_vendor
628 host_cpu
629 host
630 build_os
631 build_vendor
632 build_cpu
633 build
634 EGREP
635 GREP
636 CPP
637 OBJEXT
638 EXEEXT
639 ac_ct_CC
640 CPPFLAGS
641 LDFLAGS
642 CFLAGS
643 CC
644 MAINT
645 MAINTAINER_MODE_FALSE
646 MAINTAINER_MODE_TRUE
647 target_alias
648 host_alias
649 build_alias
650 LIBS
651 ECHO_T
652 ECHO_N
653 ECHO_C
654 DEFS
655 mandir
656 localedir
657 libdir
658 psdir
659 pdfdir
660 dvidir
661 htmldir
662 infodir
663 docdir
664 oldincludedir
665 includedir
666 localstatedir
667 sharedstatedir
668 sysconfdir
669 datadir
670 datarootdir
671 libexecdir
672 sbindir
673 bindir
674 program_transform_name
675 prefix
676 exec_prefix
677 PACKAGE_URL
678 PACKAGE_BUGREPORT
679 PACKAGE_STRING
680 PACKAGE_VERSION
681 PACKAGE_TARNAME
682 PACKAGE_NAME
683 PATH_SEPARATOR
684 SHELL'
685 ac_subst_files=''
686 ac_user_opts='
687 enable_option_checking
688 enable_maintainer_mode
689 enable_largefile
690 with_ust
691 with_ust_include
692 with_ust_lib
693 enable_werror
694 with_pkgversion
695 with_bugurl
696 with_libthread_db
697 enable_inprocess_agent
698 '
699       ac_precious_vars='build_alias
700 host_alias
701 target_alias
702 CC
703 CFLAGS
704 LDFLAGS
705 LIBS
706 CPPFLAGS
707 CPP'
708
709
710 # Initialize some variables set by options.
711 ac_init_help=
712 ac_init_version=false
713 ac_unrecognized_opts=
714 ac_unrecognized_sep=
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
717 cache_file=/dev/null
718 exec_prefix=NONE
719 no_create=
720 no_recursion=
721 prefix=NONE
722 program_prefix=NONE
723 program_suffix=NONE
724 program_transform_name=s,x,x,
725 silent=
726 site=
727 srcdir=
728 verbose=
729 x_includes=NONE
730 x_libraries=NONE
731
732 # Installation directory options.
733 # These are left unexpanded so users can "make install exec_prefix=/foo"
734 # and all the variables that are supposed to be based on exec_prefix
735 # by default will actually change.
736 # Use braces instead of parens because sh, perl, etc. also accept them.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
748 docdir='${datarootdir}/doc/${PACKAGE}'
749 infodir='${datarootdir}/info'
750 htmldir='${docdir}'
751 dvidir='${docdir}'
752 pdfdir='${docdir}'
753 psdir='${docdir}'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
757
758 ac_prev=
759 ac_dashdash=
760 for ac_option
761 do
762   # If the previous option needs an argument, assign it.
763   if test -n "$ac_prev"; then
764     eval $ac_prev=\$ac_option
765     ac_prev=
766     continue
767   fi
768
769   case $ac_option in
770   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
771   *)    ac_optarg=yes ;;
772   esac
773
774   # Accept the important Cygnus configure options, so we can diagnose typos.
775
776   case $ac_dashdash$ac_option in
777   --)
778     ac_dashdash=yes ;;
779
780   -bindir | --bindir | --bindi | --bind | --bin | --bi)
781     ac_prev=bindir ;;
782   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
783     bindir=$ac_optarg ;;
784
785   -build | --build | --buil | --bui | --bu)
786     ac_prev=build_alias ;;
787   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788     build_alias=$ac_optarg ;;
789
790   -cache-file | --cache-file | --cache-fil | --cache-fi \
791   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792     ac_prev=cache_file ;;
793   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
795     cache_file=$ac_optarg ;;
796
797   --config-cache | -C)
798     cache_file=config.cache ;;
799
800   -datadir | --datadir | --datadi | --datad)
801     ac_prev=datadir ;;
802   -datadir=* | --datadir=* | --datadi=* | --datad=*)
803     datadir=$ac_optarg ;;
804
805   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806   | --dataroo | --dataro | --datar)
807     ac_prev=datarootdir ;;
808   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810     datarootdir=$ac_optarg ;;
811
812   -disable-* | --disable-*)
813     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814     # Reject names that are not valid shell variable names.
815     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
816       as_fn_error "invalid feature name: $ac_useropt"
817     ac_useropt_orig=$ac_useropt
818     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
819     case $ac_user_opts in
820       *"
821 "enable_$ac_useropt"
822 "*) ;;
823       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
824          ac_unrecognized_sep=', ';;
825     esac
826     eval enable_$ac_useropt=no ;;
827
828   -docdir | --docdir | --docdi | --doc | --do)
829     ac_prev=docdir ;;
830   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831     docdir=$ac_optarg ;;
832
833   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834     ac_prev=dvidir ;;
835   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836     dvidir=$ac_optarg ;;
837
838   -enable-* | --enable-*)
839     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840     # Reject names that are not valid shell variable names.
841     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842       as_fn_error "invalid feature name: $ac_useropt"
843     ac_useropt_orig=$ac_useropt
844     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845     case $ac_user_opts in
846       *"
847 "enable_$ac_useropt"
848 "*) ;;
849       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
850          ac_unrecognized_sep=', ';;
851     esac
852     eval enable_$ac_useropt=\$ac_optarg ;;
853
854   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856   | --exec | --exe | --ex)
857     ac_prev=exec_prefix ;;
858   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860   | --exec=* | --exe=* | --ex=*)
861     exec_prefix=$ac_optarg ;;
862
863   -gas | --gas | --ga | --g)
864     # Obsolete; use --with-gas.
865     with_gas=yes ;;
866
867   -help | --help | --hel | --he | -h)
868     ac_init_help=long ;;
869   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870     ac_init_help=recursive ;;
871   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872     ac_init_help=short ;;
873
874   -host | --host | --hos | --ho)
875     ac_prev=host_alias ;;
876   -host=* | --host=* | --hos=* | --ho=*)
877     host_alias=$ac_optarg ;;
878
879   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880     ac_prev=htmldir ;;
881   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882   | --ht=*)
883     htmldir=$ac_optarg ;;
884
885   -includedir | --includedir | --includedi | --included | --include \
886   | --includ | --inclu | --incl | --inc)
887     ac_prev=includedir ;;
888   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889   | --includ=* | --inclu=* | --incl=* | --inc=*)
890     includedir=$ac_optarg ;;
891
892   -infodir | --infodir | --infodi | --infod | --info | --inf)
893     ac_prev=infodir ;;
894   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895     infodir=$ac_optarg ;;
896
897   -libdir | --libdir | --libdi | --libd)
898     ac_prev=libdir ;;
899   -libdir=* | --libdir=* | --libdi=* | --libd=*)
900     libdir=$ac_optarg ;;
901
902   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903   | --libexe | --libex | --libe)
904     ac_prev=libexecdir ;;
905   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906   | --libexe=* | --libex=* | --libe=*)
907     libexecdir=$ac_optarg ;;
908
909   -localedir | --localedir | --localedi | --localed | --locale)
910     ac_prev=localedir ;;
911   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912     localedir=$ac_optarg ;;
913
914   -localstatedir | --localstatedir | --localstatedi | --localstated \
915   | --localstate | --localstat | --localsta | --localst | --locals)
916     ac_prev=localstatedir ;;
917   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919     localstatedir=$ac_optarg ;;
920
921   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922     ac_prev=mandir ;;
923   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924     mandir=$ac_optarg ;;
925
926   -nfp | --nfp | --nf)
927     # Obsolete; use --without-fp.
928     with_fp=no ;;
929
930   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931   | --no-cr | --no-c | -n)
932     no_create=yes ;;
933
934   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936     no_recursion=yes ;;
937
938   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940   | --oldin | --oldi | --old | --ol | --o)
941     ac_prev=oldincludedir ;;
942   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945     oldincludedir=$ac_optarg ;;
946
947   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948     ac_prev=prefix ;;
949   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950     prefix=$ac_optarg ;;
951
952   -program-prefix | --program-prefix | --program-prefi | --program-pref \
953   | --program-pre | --program-pr | --program-p)
954     ac_prev=program_prefix ;;
955   -program-prefix=* | --program-prefix=* | --program-prefi=* \
956   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957     program_prefix=$ac_optarg ;;
958
959   -program-suffix | --program-suffix | --program-suffi | --program-suff \
960   | --program-suf | --program-su | --program-s)
961     ac_prev=program_suffix ;;
962   -program-suffix=* | --program-suffix=* | --program-suffi=* \
963   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964     program_suffix=$ac_optarg ;;
965
966   -program-transform-name | --program-transform-name \
967   | --program-transform-nam | --program-transform-na \
968   | --program-transform-n | --program-transform- \
969   | --program-transform | --program-transfor \
970   | --program-transfo | --program-transf \
971   | --program-trans | --program-tran \
972   | --progr-tra | --program-tr | --program-t)
973     ac_prev=program_transform_name ;;
974   -program-transform-name=* | --program-transform-name=* \
975   | --program-transform-nam=* | --program-transform-na=* \
976   | --program-transform-n=* | --program-transform-=* \
977   | --program-transform=* | --program-transfor=* \
978   | --program-transfo=* | --program-transf=* \
979   | --program-trans=* | --program-tran=* \
980   | --progr-tra=* | --program-tr=* | --program-t=*)
981     program_transform_name=$ac_optarg ;;
982
983   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984     ac_prev=pdfdir ;;
985   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986     pdfdir=$ac_optarg ;;
987
988   -psdir | --psdir | --psdi | --psd | --ps)
989     ac_prev=psdir ;;
990   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991     psdir=$ac_optarg ;;
992
993   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994   | -silent | --silent | --silen | --sile | --sil)
995     silent=yes ;;
996
997   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998     ac_prev=sbindir ;;
999   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000   | --sbi=* | --sb=*)
1001     sbindir=$ac_optarg ;;
1002
1003   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005   | --sharedst | --shareds | --shared | --share | --shar \
1006   | --sha | --sh)
1007     ac_prev=sharedstatedir ;;
1008   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011   | --sha=* | --sh=*)
1012     sharedstatedir=$ac_optarg ;;
1013
1014   -site | --site | --sit)
1015     ac_prev=site ;;
1016   -site=* | --site=* | --sit=*)
1017     site=$ac_optarg ;;
1018
1019   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020     ac_prev=srcdir ;;
1021   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022     srcdir=$ac_optarg ;;
1023
1024   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025   | --syscon | --sysco | --sysc | --sys | --sy)
1026     ac_prev=sysconfdir ;;
1027   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029     sysconfdir=$ac_optarg ;;
1030
1031   -target | --target | --targe | --targ | --tar | --ta | --t)
1032     ac_prev=target_alias ;;
1033   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034     target_alias=$ac_optarg ;;
1035
1036   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037     verbose=yes ;;
1038
1039   -version | --version | --versio | --versi | --vers | -V)
1040     ac_init_version=: ;;
1041
1042   -with-* | --with-*)
1043     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044     # Reject names that are not valid shell variable names.
1045     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046       as_fn_error "invalid package name: $ac_useropt"
1047     ac_useropt_orig=$ac_useropt
1048     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049     case $ac_user_opts in
1050       *"
1051 "with_$ac_useropt"
1052 "*) ;;
1053       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1054          ac_unrecognized_sep=', ';;
1055     esac
1056     eval with_$ac_useropt=\$ac_optarg ;;
1057
1058   -without-* | --without-*)
1059     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062       as_fn_error "invalid package name: $ac_useropt"
1063     ac_useropt_orig=$ac_useropt
1064     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065     case $ac_user_opts in
1066       *"
1067 "with_$ac_useropt"
1068 "*) ;;
1069       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1070          ac_unrecognized_sep=', ';;
1071     esac
1072     eval with_$ac_useropt=no ;;
1073
1074   --x)
1075     # Obsolete; use --with-x.
1076     with_x=yes ;;
1077
1078   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1079   | --x-incl | --x-inc | --x-in | --x-i)
1080     ac_prev=x_includes ;;
1081   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1082   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1083     x_includes=$ac_optarg ;;
1084
1085   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1086   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1087     ac_prev=x_libraries ;;
1088   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1089   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1090     x_libraries=$ac_optarg ;;
1091
1092   -*) as_fn_error "unrecognized option: \`$ac_option'
1093 Try \`$0 --help' for more information."
1094     ;;
1095
1096   *=*)
1097     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1098     # Reject names that are not valid shell variable names.
1099     case $ac_envvar in #(
1100       '' | [0-9]* | *[!_$as_cr_alnum]* )
1101       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1102     esac
1103     eval $ac_envvar=\$ac_optarg
1104     export $ac_envvar ;;
1105
1106   *)
1107     # FIXME: should be removed in autoconf 3.0.
1108     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112     ;;
1113
1114   esac
1115 done
1116
1117 if test -n "$ac_prev"; then
1118   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1119   as_fn_error "missing argument to $ac_option"
1120 fi
1121
1122 if test -n "$ac_unrecognized_opts"; then
1123   case $enable_option_checking in
1124     no) ;;
1125     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1126     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1127   esac
1128 fi
1129
1130 # Check all directory arguments for consistency.
1131 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132                 datadir sysconfdir sharedstatedir localstatedir includedir \
1133                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134                 libdir localedir mandir
1135 do
1136   eval ac_val=\$$ac_var
1137   # Remove trailing slashes.
1138   case $ac_val in
1139     */ )
1140       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1141       eval $ac_var=\$ac_val;;
1142   esac
1143   # Be sure to have absolute directory names.
1144   case $ac_val in
1145     [\\/$]* | ?:[\\/]* )  continue;;
1146     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1147   esac
1148   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1149 done
1150
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1154 build=$build_alias
1155 host=$host_alias
1156 target=$target_alias
1157
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x; then
1160   if test "x$build_alias" = x; then
1161     cross_compiling=maybe
1162     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163     If a cross compiler is detected then cross compile mode will be used." >&2
1164   elif test "x$build_alias" != "x$host_alias"; then
1165     cross_compiling=yes
1166   fi
1167 fi
1168
1169 ac_tool_prefix=
1170 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171
1172 test "$silent" = yes && exec 6>/dev/null
1173
1174
1175 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di=`ls -di .` &&
1177 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1178   as_fn_error "working directory cannot be determined"
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180   as_fn_error "pwd does not report name of working directory"
1181
1182
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185   ac_srcdir_defaulted=yes
1186   # Try the directory containing this script, then the parent directory.
1187   ac_confdir=`$as_dirname -- "$as_myself" ||
1188 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189          X"$as_myself" : 'X\(//\)[^/]' \| \
1190          X"$as_myself" : 'X\(//\)$' \| \
1191          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1192 $as_echo X"$as_myself" |
1193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194             s//\1/
1195             q
1196           }
1197           /^X\(\/\/\)[^/].*/{
1198             s//\1/
1199             q
1200           }
1201           /^X\(\/\/\)$/{
1202             s//\1/
1203             q
1204           }
1205           /^X\(\/\).*/{
1206             s//\1/
1207             q
1208           }
1209           s/.*/./; q'`
1210   srcdir=$ac_confdir
1211   if test ! -r "$srcdir/$ac_unique_file"; then
1212     srcdir=..
1213   fi
1214 else
1215   ac_srcdir_defaulted=no
1216 fi
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1220 fi
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 ac_abs_confdir=`(
1223         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1224         pwd)`
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227   srcdir=.
1228 fi
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1232 case $srcdir in
1233 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 esac
1235 for ac_var in $ac_precious_vars; do
1236   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237   eval ac_env_${ac_var}_value=\$${ac_var}
1238   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1240 done
1241
1242 #
1243 # Report the --help message.
1244 #
1245 if test "$ac_init_help" = "long"; then
1246   # Omit some internal or obsolete options to make the list less imposing.
1247   # This message is too long to be a string in the A/UX 3.1 sh.
1248   cat <<_ACEOF
1249 \`configure' configures this package to adapt to many kinds of systems.
1250
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1252
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE.  See below for descriptions of some of the useful variables.
1255
1256 Defaults for the options are specified in brackets.
1257
1258 Configuration:
1259   -h, --help              display this help and exit
1260       --help=short        display options specific to this package
1261       --help=recursive    display the short help of all the included packages
1262   -V, --version           display version information and exit
1263   -q, --quiet, --silent   do not print \`checking...' messages
1264       --cache-file=FILE   cache test results in FILE [disabled]
1265   -C, --config-cache      alias for \`--cache-file=config.cache'
1266   -n, --no-create         do not create output files
1267       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1268
1269 Installation directories:
1270   --prefix=PREFIX         install architecture-independent files in PREFIX
1271                           [$ac_default_prefix]
1272   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1273                           [PREFIX]
1274
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1279
1280 For better control, use the options below.
1281
1282 Fine tuning of the installation directories:
1283   --bindir=DIR            user executables [EPREFIX/bin]
1284   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1285   --libexecdir=DIR        program executables [EPREFIX/libexec]
1286   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1287   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1288   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1289   --libdir=DIR            object code libraries [EPREFIX/lib]
1290   --includedir=DIR        C header files [PREFIX/include]
1291   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1292   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1293   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1294   --infodir=DIR           info documentation [DATAROOTDIR/info]
1295   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1296   --mandir=DIR            man documentation [DATAROOTDIR/man]
1297   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1298   --htmldir=DIR           html documentation [DOCDIR]
1299   --dvidir=DIR            dvi documentation [DOCDIR]
1300   --pdfdir=DIR            pdf documentation [DOCDIR]
1301   --psdir=DIR             ps documentation [DOCDIR]
1302 _ACEOF
1303
1304   cat <<\_ACEOF
1305
1306 Program names:
1307   --program-prefix=PREFIX            prepend PREFIX to installed program names
1308   --program-suffix=SUFFIX            append SUFFIX to installed program names
1309   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1310
1311 System types:
1312   --build=BUILD     configure for building on BUILD [guessed]
1313   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1314   --target=TARGET   configure for building compilers for TARGET [HOST]
1315 _ACEOF
1316 fi
1317
1318 if test -n "$ac_init_help"; then
1319
1320   cat <<\_ACEOF
1321
1322 Optional Features:
1323   --disable-option-checking  ignore unrecognized --enable/--with options
1324   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1325   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1326   --enable-maintainer-mode  enable make rules and dependencies not useful
1327                           (and sometimes confusing) to the casual installer
1328   --disable-largefile     omit support for large files
1329   --enable-werror         treat compile warnings as errors
1330   --enable-inprocess-agent
1331                           inprocess agent
1332
1333 Optional Packages:
1334   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1335   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1336   --with-ust=PATH       Specify prefix directory for the installed UST package
1337                           Equivalent to --with-ust-include=PATH/include
1338                           plus --with-ust-lib=PATH/lib
1339   --with-ust-include=PATH Specify directory for installed UST include files
1340   --with-ust-lib=PATH   Specify the directory for the installed UST library
1341   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1342   --with-bugurl=URL       Direct users to URL to report a bug
1343   --with-libthread-db=PATH
1344                           use given libthread_db directly
1345
1346 Some influential environment variables:
1347   CC          C compiler command
1348   CFLAGS      C compiler flags
1349   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1350               nonstandard directory <lib dir>
1351   LIBS        libraries to pass to the linker, e.g. -l<library>
1352   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1353               you have headers in a nonstandard directory <include dir>
1354   CPP         C preprocessor
1355
1356 Use these variables to override the choices made by `configure' or to help
1357 it to find libraries and programs with nonstandard names/locations.
1358
1359 Report bugs to the package provider.
1360 _ACEOF
1361 ac_status=$?
1362 fi
1363
1364 if test "$ac_init_help" = "recursive"; then
1365   # If there are subdirs, report their specific --help.
1366   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1367     test -d "$ac_dir" ||
1368       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1369       continue
1370     ac_builddir=.
1371
1372 case "$ac_dir" in
1373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *)
1375   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1376   # A ".." for each directory in $ac_dir_suffix.
1377   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1378   case $ac_top_builddir_sub in
1379   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1381   esac ;;
1382 esac
1383 ac_abs_top_builddir=$ac_pwd
1384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385 # for backward compatibility:
1386 ac_top_builddir=$ac_top_build_prefix
1387
1388 case $srcdir in
1389   .)  # We are building in place.
1390     ac_srcdir=.
1391     ac_top_srcdir=$ac_top_builddir_sub
1392     ac_abs_top_srcdir=$ac_pwd ;;
1393   [\\/]* | ?:[\\/]* )  # Absolute name.
1394     ac_srcdir=$srcdir$ac_dir_suffix;
1395     ac_top_srcdir=$srcdir
1396     ac_abs_top_srcdir=$srcdir ;;
1397   *) # Relative name.
1398     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399     ac_top_srcdir=$ac_top_build_prefix$srcdir
1400     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1401 esac
1402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1403
1404     cd "$ac_dir" || { ac_status=$?; continue; }
1405     # Check for guested configure.
1406     if test -f "$ac_srcdir/configure.gnu"; then
1407       echo &&
1408       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409     elif test -f "$ac_srcdir/configure"; then
1410       echo &&
1411       $SHELL "$ac_srcdir/configure" --help=recursive
1412     else
1413       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1414     fi || ac_status=$?
1415     cd "$ac_pwd" || { ac_status=$?; break; }
1416   done
1417 fi
1418
1419 test -n "$ac_init_help" && exit $ac_status
1420 if $ac_init_version; then
1421   cat <<\_ACEOF
1422 configure
1423 generated by GNU Autoconf 2.64
1424
1425 Copyright (C) 2009 Free Software Foundation, Inc.
1426 This configure script is free software; the Free Software Foundation
1427 gives unlimited permission to copy, distribute and modify it.
1428 _ACEOF
1429   exit
1430 fi
1431
1432 ## ------------------------ ##
1433 ## Autoconf initialization. ##
1434 ## ------------------------ ##
1435
1436 # ac_fn_c_try_compile LINENO
1437 # --------------------------
1438 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1439 ac_fn_c_try_compile ()
1440 {
1441   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1442   rm -f conftest.$ac_objext
1443   if { { ac_try="$ac_compile"
1444 case "(($ac_try" in
1445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1446   *) ac_try_echo=$ac_try;;
1447 esac
1448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1449 $as_echo "$ac_try_echo"; } >&5
1450   (eval "$ac_compile") 2>conftest.err
1451   ac_status=$?
1452   if test -s conftest.err; then
1453     grep -v '^ *+' conftest.err >conftest.er1
1454     cat conftest.er1 >&5
1455     mv -f conftest.er1 conftest.err
1456   fi
1457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1458   test $ac_status = 0; } && {
1459          test -z "$ac_c_werror_flag" ||
1460          test ! -s conftest.err
1461        } && test -s conftest.$ac_objext; then :
1462   ac_retval=0
1463 else
1464   $as_echo "$as_me: failed program was:" >&5
1465 sed 's/^/| /' conftest.$ac_ext >&5
1466
1467         ac_retval=1
1468 fi
1469   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1470   return $ac_retval
1471
1472 } # ac_fn_c_try_compile
1473
1474 # ac_fn_c_try_cpp LINENO
1475 # ----------------------
1476 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1477 ac_fn_c_try_cpp ()
1478 {
1479   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480   if { { ac_try="$ac_cpp conftest.$ac_ext"
1481 case "(($ac_try" in
1482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483   *) ac_try_echo=$ac_try;;
1484 esac
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 $as_echo "$ac_try_echo"; } >&5
1487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1488   ac_status=$?
1489   if test -s conftest.err; then
1490     grep -v '^ *+' conftest.err >conftest.er1
1491     cat conftest.er1 >&5
1492     mv -f conftest.er1 conftest.err
1493   fi
1494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495   test $ac_status = 0; } >/dev/null && {
1496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1497          test ! -s conftest.err
1498        }; then :
1499   ac_retval=0
1500 else
1501   $as_echo "$as_me: failed program was:" >&5
1502 sed 's/^/| /' conftest.$ac_ext >&5
1503
1504     ac_retval=1
1505 fi
1506   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1507   return $ac_retval
1508
1509 } # ac_fn_c_try_cpp
1510
1511 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1512 # -------------------------------------------------------
1513 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1514 # the include files in INCLUDES and setting the cache variable VAR
1515 # accordingly.
1516 ac_fn_c_check_header_mongrel ()
1517 {
1518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1521 $as_echo_n "checking for $2... " >&6; }
1522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1523   $as_echo_n "(cached) " >&6
1524 fi
1525 eval ac_res=\$$3
1526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1527 $as_echo "$ac_res" >&6; }
1528 else
1529   # Is the header compilable?
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1531 $as_echo_n "checking $2 usability... " >&6; }
1532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533 /* end confdefs.h.  */
1534 $4
1535 #include <$2>
1536 _ACEOF
1537 if ac_fn_c_try_compile "$LINENO"; then :
1538   ac_header_compiler=yes
1539 else
1540   ac_header_compiler=no
1541 fi
1542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1544 $as_echo "$ac_header_compiler" >&6; }
1545
1546 # Is the header present?
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1548 $as_echo_n "checking $2 presence... " >&6; }
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h.  */
1551 #include <$2>
1552 _ACEOF
1553 if ac_fn_c_try_cpp "$LINENO"; then :
1554   ac_header_preproc=yes
1555 else
1556   ac_header_preproc=no
1557 fi
1558 rm -f conftest.err conftest.$ac_ext
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1560 $as_echo "$ac_header_preproc" >&6; }
1561
1562 # So?  What about this header?
1563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1564   yes:no: )
1565     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1566 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1567     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1568 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1569     ;;
1570   no:yes:* )
1571     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1572 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1573     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1574 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1575     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1576 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1577     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1578 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1579     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1580 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1581     ;;
1582 esac
1583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586   $as_echo_n "(cached) " >&6
1587 else
1588   eval "$3=\$ac_header_compiler"
1589 fi
1590 eval ac_res=\$$3
1591                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 fi
1594   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595
1596 } # ac_fn_c_check_header_mongrel
1597
1598 # ac_fn_c_try_run LINENO
1599 # ----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1601 # that executables *can* be run.
1602 ac_fn_c_try_run ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608   *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612   (eval "$ac_link") 2>&5
1613   ac_status=$?
1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1616   { { case "(($ac_try" in
1617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618   *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622   (eval "$ac_try") 2>&5
1623   ac_status=$?
1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625   test $ac_status = 0; }; }; then :
1626   ac_retval=0
1627 else
1628   $as_echo "$as_me: program exited with status $ac_status" >&5
1629        $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632        ac_retval=$ac_status
1633 fi
1634   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636   return $ac_retval
1637
1638 } # ac_fn_c_try_run
1639
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650   $as_echo_n "(cached) " >&6
1651 else
1652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h.  */
1654 $4
1655 #include <$2>
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658   eval "$3=yes"
1659 else
1660   eval "$3=no"
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 fi
1664 eval ac_res=\$$3
1665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668
1669 } # ac_fn_c_check_header_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   rm -f conftest.$ac_objext conftest$ac_exeext
1678   if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_link") 2>conftest.err
1686   ac_status=$?
1687   if test -s conftest.err; then
1688     grep -v '^ *+' conftest.err >conftest.er1
1689     cat conftest.er1 >&5
1690     mv -f conftest.er1 conftest.err
1691   fi
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && {
1694          test -z "$ac_c_werror_flag" ||
1695          test ! -s conftest.err
1696        } && test -s conftest$ac_exeext && {
1697          test "$cross_compiling" = yes ||
1698          $as_test_x conftest$ac_exeext
1699        }; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705         ac_retval=1
1706 fi
1707   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709   # interfere with the next link command; also delete a directory that is
1710   # left behind by Apple's compiler.  We do this before executing the actions.
1711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713   return $ac_retval
1714
1715 } # ac_fn_c_try_link
1716
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726   $as_echo_n "(cached) " >&6
1727 else
1728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h.  */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735     which can conflict with char $2 (); below.
1736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737     <limits.h> exists even on freestanding compilers.  */
1738
1739 #ifdef __STDC__
1740 # include <limits.h>
1741 #else
1742 # include <assert.h>
1743 #endif
1744
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748    Use char because int might match the return type of a GCC
1749    builtin and then its argument prototype would still apply.  */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 ();
1754 /* The GNU C library defines this for functions which it implements
1755     to always fail with ENOSYS.  Some functions are actually named
1756     something starting with __ and the normal name is an alias.  */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 int
1762 main ()
1763 {
1764 return $2 ();
1765   ;
1766   return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_link "$LINENO"; then :
1770   eval "$3=yes"
1771 else
1772   eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext \
1775     conftest$ac_exeext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781
1782 } # ac_fn_c_check_func
1783
1784 # ac_fn_c_check_decl LINENO SYMBOL VAR
1785 # ------------------------------------
1786 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1787 ac_fn_c_check_decl ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   as_decl_name=`echo $2|sed 's/ *(.*//'`
1791   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1793 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795   $as_echo_n "(cached) " >&6
1796 else
1797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h.  */
1799 $4
1800 int
1801 main ()
1802 {
1803 #ifndef $as_decl_name
1804 #ifdef __cplusplus
1805   (void) $as_decl_use;
1806 #else
1807   (void) $as_decl_name;
1808 #endif
1809 #endif
1810
1811   ;
1812   return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816   eval "$3=yes"
1817 else
1818   eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 fi
1822 eval ac_res=\$$3
1823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826
1827 } # ac_fn_c_check_decl
1828
1829 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1830 # -------------------------------------------
1831 # Tests whether TYPE exists after having included INCLUDES, setting cache
1832 # variable VAR accordingly.
1833 ac_fn_c_check_type ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839   $as_echo_n "(cached) " >&6
1840 else
1841   eval "$3=no"
1842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h.  */
1844 $4
1845 int
1846 main ()
1847 {
1848 if (sizeof ($2))
1849          return 0;
1850   ;
1851   return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 $4
1858 int
1859 main ()
1860 {
1861 if (sizeof (($2)))
1862             return 0;
1863   ;
1864   return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868
1869 else
1870   eval "$3=yes"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881 } # ac_fn_c_check_type
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1885
1886 It was created by $as_me, which was
1887 generated by GNU Autoconf 2.64.  Invocation command line was
1888
1889   $ $0 $@
1890
1891 _ACEOF
1892 exec 5>>config.log
1893 {
1894 cat <<_ASUNAME
1895 ## --------- ##
1896 ## Platform. ##
1897 ## --------- ##
1898
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1907
1908 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1909 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1912 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1913 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1914 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1915
1916 _ASUNAME
1917
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921   IFS=$as_save_IFS
1922   test -z "$as_dir" && as_dir=.
1923     $as_echo "PATH: $as_dir"
1924   done
1925 IFS=$as_save_IFS
1926
1927 } >&5
1928
1929 cat >&5 <<_ACEOF
1930
1931
1932 ## ----------- ##
1933 ## Core tests. ##
1934 ## ----------- ##
1935
1936 _ACEOF
1937
1938
1939 # Keep a trace of the command line.
1940 # Strip out --no-create and --no-recursion so they do not pile up.
1941 # Strip out --silent because we don't want to record it for future runs.
1942 # Also quote any args containing shell meta-characters.
1943 # Make two passes to allow for proper duplicate-argument suppression.
1944 ac_configure_args=
1945 ac_configure_args0=
1946 ac_configure_args1=
1947 ac_must_keep_next=false
1948 for ac_pass in 1 2
1949 do
1950   for ac_arg
1951   do
1952     case $ac_arg in
1953     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955     | -silent | --silent | --silen | --sile | --sil)
1956       continue ;;
1957     *\'*)
1958       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     esac
1960     case $ac_pass in
1961     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962     2)
1963       as_fn_append ac_configure_args1 " '$ac_arg'"
1964       if test $ac_must_keep_next = true; then
1965         ac_must_keep_next=false # Got value, back to normal.
1966       else
1967         case $ac_arg in
1968           *=* | --config-cache | -C | -disable-* | --disable-* \
1969           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971           | -with-* | --with-* | -without-* | --without-* | --x)
1972             case "$ac_configure_args0 " in
1973               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974             esac
1975             ;;
1976           -* ) ac_must_keep_next=true ;;
1977         esac
1978       fi
1979       as_fn_append ac_configure_args " '$ac_arg'"
1980       ;;
1981     esac
1982   done
1983 done
1984 { ac_configure_args0=; unset ac_configure_args0;}
1985 { ac_configure_args1=; unset ac_configure_args1;}
1986
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log.  We remove comments because anyway the quotes in there
1989 # would cause problems or look ugly.
1990 # WARNING: Use '\'' to represent an apostrophe within the trap.
1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992 trap 'exit_status=$?
1993   # Save into config.log some information that might help in debugging.
1994   {
1995     echo
1996
1997     cat <<\_ASBOX
1998 ## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##
2001 _ASBOX
2002     echo
2003     # The following way of writing the cache mishandles newlines in values,
2004 (
2005   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006     eval ac_val=\$$ac_var
2007     case $ac_val in #(
2008     *${as_nl}*)
2009       case $ac_var in #(
2010       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012       esac
2013       case $ac_var in #(
2014       _ | IFS | as_nl) ;; #(
2015       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016       *) { eval $ac_var=; unset $ac_var;} ;;
2017       esac ;;
2018     esac
2019   done
2020   (set) 2>&1 |
2021     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022     *${as_nl}ac_space=\ *)
2023       sed -n \
2024         "s/'\''/'\''\\\\'\'''\''/g;
2025           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026       ;; #(
2027     *)
2028       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029       ;;
2030     esac |
2031     sort
2032 )
2033     echo
2034
2035     cat <<\_ASBOX
2036 ## ----------------- ##
2037 ## Output variables. ##
2038 ## ----------------- ##
2039 _ASBOX
2040     echo
2041     for ac_var in $ac_subst_vars
2042     do
2043       eval ac_val=\$$ac_var
2044       case $ac_val in
2045       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046       esac
2047       $as_echo "$ac_var='\''$ac_val'\''"
2048     done | sort
2049     echo
2050
2051     if test -n "$ac_subst_files"; then
2052       cat <<\_ASBOX
2053 ## ------------------- ##
2054 ## File substitutions. ##
2055 ## ------------------- ##
2056 _ASBOX
2057       echo
2058       for ac_var in $ac_subst_files
2059       do
2060         eval ac_val=\$$ac_var
2061         case $ac_val in
2062         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063         esac
2064         $as_echo "$ac_var='\''$ac_val'\''"
2065       done | sort
2066       echo
2067     fi
2068
2069     if test -s confdefs.h; then
2070       cat <<\_ASBOX
2071 ## ----------- ##
2072 ## confdefs.h. ##
2073 ## ----------- ##
2074 _ASBOX
2075       echo
2076       cat confdefs.h
2077       echo
2078     fi
2079     test "$ac_signal" != 0 &&
2080       $as_echo "$as_me: caught signal $ac_signal"
2081     $as_echo "$as_me: exit $exit_status"
2082   } >&5
2083   rm -f core *.core core.conftest.* &&
2084     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085     exit $exit_status
2086 ' 0
2087 for ac_signal in 1 2 13 15; do
2088   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089 done
2090 ac_signal=0
2091
2092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2093 rm -f -r conftest* confdefs.h
2094
2095 $as_echo "/* confdefs.h */" > confdefs.h
2096
2097 # Predefined preprocessor variables.
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_NAME "$PACKAGE_NAME"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_STRING "$PACKAGE_STRING"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_URL "$PACKAGE_URL"
2121 _ACEOF
2122
2123
2124 # Let the site file select an alternate cache file if it wants to.
2125 # Prefer an explicitly selected file to automatically selected ones.
2126 ac_site_file1=NONE
2127 ac_site_file2=NONE
2128 if test -n "$CONFIG_SITE"; then
2129   ac_site_file1=$CONFIG_SITE
2130 elif test "x$prefix" != xNONE; then
2131   ac_site_file1=$prefix/share/config.site
2132   ac_site_file2=$prefix/etc/config.site
2133 else
2134   ac_site_file1=$ac_default_prefix/share/config.site
2135   ac_site_file2=$ac_default_prefix/etc/config.site
2136 fi
2137 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2138 do
2139   test "x$ac_site_file" = xNONE && continue
2140   if test -r "$ac_site_file"; then
2141     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2142 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2143     sed 's/^/| /' "$ac_site_file" >&5
2144     . "$ac_site_file"
2145   fi
2146 done
2147
2148 if test -r "$cache_file"; then
2149   # Some versions of bash will fail to source /dev/null (special
2150   # files actually), so we avoid doing that.
2151   if test -f "$cache_file"; then
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153 $as_echo "$as_me: loading cache $cache_file" >&6;}
2154     case $cache_file in
2155       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156       *)                      . "./$cache_file";;
2157     esac
2158   fi
2159 else
2160   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161 $as_echo "$as_me: creating cache $cache_file" >&6;}
2162   >$cache_file
2163 fi
2164
2165 # Check that the precious variables saved in the cache have kept the same
2166 # value.
2167 ac_cache_corrupted=false
2168 for ac_var in $ac_precious_vars; do
2169   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170   eval ac_new_set=\$ac_env_${ac_var}_set
2171   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172   eval ac_new_val=\$ac_env_${ac_var}_value
2173   case $ac_old_set,$ac_new_set in
2174     set,)
2175       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177       ac_cache_corrupted=: ;;
2178     ,set)
2179       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181       ac_cache_corrupted=: ;;
2182     ,);;
2183     *)
2184       if test "x$ac_old_val" != "x$ac_new_val"; then
2185         # differences in whitespace do not lead to failure.
2186         ac_old_val_w=`echo x $ac_old_val`
2187         ac_new_val_w=`echo x $ac_new_val`
2188         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191           ac_cache_corrupted=:
2192         else
2193           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195           eval $ac_var=\$ac_old_val
2196         fi
2197         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2198 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2199         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2200 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2201       fi;;
2202   esac
2203   # Pass precious variables to config.status.
2204   if test "$ac_new_set" = set; then
2205     case $ac_new_val in
2206     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207     *) ac_arg=$ac_var=$ac_new_val ;;
2208     esac
2209     case " $ac_configure_args " in
2210       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2211       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212     esac
2213   fi
2214 done
2215 if $ac_cache_corrupted; then
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221 fi
2222 ## -------------------- ##
2223 ## Main body of script. ##
2224 ## -------------------- ##
2225
2226 ac_ext=c
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233
2234
2235
2236 ac_config_headers="$ac_config_headers config.h:config.in"
2237
2238
2239
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2242     # Check whether --enable-maintainer-mode was given.
2243 if test "${enable_maintainer_mode+set}" = set; then :
2244   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2245 else
2246   USE_MAINTAINER_MODE=no
2247 fi
2248
2249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2250 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2251    if test $USE_MAINTAINER_MODE = yes; then
2252   MAINTAINER_MODE_TRUE=
2253   MAINTAINER_MODE_FALSE='#'
2254 else
2255   MAINTAINER_MODE_TRUE='#'
2256   MAINTAINER_MODE_FALSE=
2257 fi
2258
2259   MAINT=$MAINTAINER_MODE_TRUE
2260
2261
2262
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 if test -n "$ac_tool_prefix"; then
2269   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if test "${ac_cv_prog_CC+set}" = set; then :
2274   $as_echo_n "(cached) " >&6
2275 else
2276   if test -n "$CC"; then
2277   ac_cv_prog_CC="$CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284     for ac_exec_ext in '' $ac_executable_extensions; do
2285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291   done
2292 IFS=$as_save_IFS
2293
2294 fi
2295 fi
2296 CC=$ac_cv_prog_CC
2297 if test -n "$CC"; then
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2299 $as_echo "$CC" >&6; }
2300 else
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2302 $as_echo "no" >&6; }
2303 fi
2304
2305
2306 fi
2307 if test -z "$ac_cv_prog_CC"; then
2308   ac_ct_CC=$CC
2309   # Extract the first word of "gcc", so it can be a program name with args.
2310 set dummy gcc; ac_word=$2
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2314   $as_echo_n "(cached) " >&6
2315 else
2316   if test -n "$ac_ct_CC"; then
2317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324     for ac_exec_ext in '' $ac_executable_extensions; do
2325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326     ac_cv_prog_ac_ct_CC="gcc"
2327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2328     break 2
2329   fi
2330 done
2331   done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2339 $as_echo "$ac_ct_CC" >&6; }
2340 else
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342 $as_echo "no" >&6; }
2343 fi
2344
2345   if test "x$ac_ct_CC" = x; then
2346     CC=""
2347   else
2348     case $cross_compiling:$ac_tool_warned in
2349 yes:)
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2352 ac_tool_warned=yes ;;
2353 esac
2354     CC=$ac_ct_CC
2355   fi
2356 else
2357   CC="$ac_cv_prog_CC"
2358 fi
2359
2360 if test -z "$CC"; then
2361           if test -n "$ac_tool_prefix"; then
2362     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}cc; ac_word=$2
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then :
2367   $as_echo_n "(cached) " >&6
2368 else
2369   if test -n "$CC"; then
2370   ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377     for ac_exec_ext in '' $ac_executable_extensions; do
2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379     ac_cv_prog_CC="${ac_tool_prefix}cc"
2380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384   done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2392 $as_echo "$CC" >&6; }
2393 else
2394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395 $as_echo "no" >&6; }
2396 fi
2397
2398
2399   fi
2400 fi
2401 if test -z "$CC"; then
2402   # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then :
2407   $as_echo_n "(cached) " >&6
2408 else
2409   if test -n "$CC"; then
2410   ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412   ac_prog_rejected=no
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418     for ac_exec_ext in '' $ac_executable_extensions; do
2419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2421        ac_prog_rejected=yes
2422        continue
2423      fi
2424     ac_cv_prog_CC="cc"
2425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2426     break 2
2427   fi
2428 done
2429   done
2430 IFS=$as_save_IFS
2431
2432 if test $ac_prog_rejected = yes; then
2433   # We found a bogon in the path, so make sure we never use it.
2434   set dummy $ac_cv_prog_CC
2435   shift
2436   if test $# != 0; then
2437     # We chose a different compiler from the bogus one.
2438     # However, it has the same basename, so the bogon will be chosen
2439     # first if we set CC to just the basename; use the full file name.
2440     shift
2441     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2442   fi
2443 fi
2444 fi
2445 fi
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2449 $as_echo "$CC" >&6; }
2450 else
2451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2453 fi
2454
2455
2456 fi
2457 if test -z "$CC"; then
2458   if test -n "$ac_tool_prefix"; then
2459   for ac_prog in cl.exe
2460   do
2461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464 $as_echo_n "checking for $ac_word... " >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then :
2466   $as_echo_n "(cached) " >&6
2467 else
2468   if test -n "$CC"; then
2469   ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476     for ac_exec_ext in '' $ac_executable_extensions; do
2477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483   done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491 $as_echo "$CC" >&6; }
2492 else
2493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494 $as_echo "no" >&6; }
2495 fi
2496
2497
2498     test -n "$CC" && break
2499   done
2500 fi
2501 if test -z "$CC"; then
2502   ac_ct_CC=$CC
2503   for ac_prog in cl.exe
2504 do
2505   # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   if test -n "$ac_ct_CC"; then
2513   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520     for ac_exec_ext in '' $ac_executable_extensions; do
2521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522     ac_cv_prog_ac_ct_CC="$ac_prog"
2523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525   fi
2526 done
2527   done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2535 $as_echo "$ac_ct_CC" >&6; }
2536 else
2537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542   test -n "$ac_ct_CC" && break
2543 done
2544
2545   if test "x$ac_ct_CC" = x; then
2546     CC=""
2547   else
2548     case $cross_compiling:$ac_tool_warned in
2549 yes:)
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552 ac_tool_warned=yes ;;
2553 esac
2554     CC=$ac_ct_CC
2555   fi
2556 fi
2557
2558 fi
2559
2560
2561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563 as_fn_error "no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." "$LINENO" 5; }
2565
2566 # Provide some information about the compiler.
2567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2568 set X $ac_compile
2569 ac_compiler=$2
2570 for ac_option in --version -v -V -qversion; do
2571   { { ac_try="$ac_compiler $ac_option >&5"
2572 case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577 $as_echo "$ac_try_echo"; } >&5
2578   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2579   ac_status=$?
2580   if test -s conftest.err; then
2581     sed '10a\
2582 ... rest of stderr output deleted ...
2583          10q' conftest.err >conftest.er1
2584     cat conftest.er1 >&5
2585     rm -f conftest.er1 conftest.err
2586   fi
2587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588   test $ac_status = 0; }
2589 done
2590
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h.  */
2593
2594 int
2595 main ()
2596 {
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 ac_clean_files_save=$ac_clean_files
2603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2604 # Try to create an executable without -o first, disregard a.out.
2605 # It will help us diagnose broken compilers, and finding out an intuition
2606 # of exeext.
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2608 $as_echo_n "checking for C compiler default output file name... " >&6; }
2609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2610
2611 # The possible output files:
2612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2613
2614 ac_rmfiles=
2615 for ac_file in $ac_files
2616 do
2617   case $ac_file in
2618     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2619     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2620   esac
2621 done
2622 rm -f $ac_rmfiles
2623
2624 if { { ac_try="$ac_link_default"
2625 case "(($ac_try" in
2626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627   *) ac_try_echo=$ac_try;;
2628 esac
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631   (eval "$ac_link_default") 2>&5
2632   ac_status=$?
2633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634   test $ac_status = 0; }; then :
2635   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2637 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2638 # so that the user can short-circuit this test for compilers unknown to
2639 # Autoconf.
2640 for ac_file in $ac_files ''
2641 do
2642   test -f "$ac_file" || continue
2643   case $ac_file in
2644     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2645         ;;
2646     [ab].out )
2647         # We found the default executable, but exeext='' is most
2648         # certainly right.
2649         break;;
2650     *.* )
2651         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2652         then :; else
2653            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2654         fi
2655         # We set ac_cv_exeext here because the later test for it is not
2656         # safe: cross compilers may not add the suffix if given an `-o'
2657         # argument, so we may need to know it at that point already.
2658         # Even if this section looks crufty: it has the advantage of
2659         # actually working.
2660         break;;
2661     * )
2662         break;;
2663   esac
2664 done
2665 test "$ac_cv_exeext" = no && ac_cv_exeext=
2666
2667 else
2668   ac_file=''
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2671 $as_echo "$ac_file" >&6; }
2672 if test -z "$ac_file"; then :
2673   $as_echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { as_fn_set_status 77
2679 as_fn_error "C compiler cannot create executables
2680 See \`config.log' for more details." "$LINENO" 5; }; }
2681 fi
2682 ac_exeext=$ac_cv_exeext
2683
2684 # Check that the compiler produces executables we can run.  If not, either
2685 # the compiler is broken, or we cross compile.
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2687 $as_echo_n "checking whether the C compiler works... " >&6; }
2688 # If not cross compiling, check that we can run a simple program.
2689 if test "$cross_compiling" != yes; then
2690   if { ac_try='./$ac_file'
2691   { { case "(($ac_try" in
2692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693   *) ac_try_echo=$ac_try;;
2694 esac
2695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696 $as_echo "$ac_try_echo"; } >&5
2697   (eval "$ac_try") 2>&5
2698   ac_status=$?
2699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700   test $ac_status = 0; }; }; then
2701     cross_compiling=no
2702   else
2703     if test "$cross_compiling" = maybe; then
2704         cross_compiling=yes
2705     else
2706         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error "cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details." "$LINENO" 5; }
2711     fi
2712   fi
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2716
2717 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2718 ac_clean_files=$ac_clean_files_save
2719 # Check that the compiler produces executables we can run.  If not, either
2720 # the compiler is broken, or we cross compile.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2722 $as_echo_n "checking whether we are cross compiling... " >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2724 $as_echo "$cross_compiling" >&6; }
2725
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2727 $as_echo_n "checking for suffix of executables... " >&6; }
2728 if { { ac_try="$ac_link"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734 $as_echo "$ac_try_echo"; } >&5
2735   (eval "$ac_link") 2>&5
2736   ac_status=$?
2737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738   test $ac_status = 0; }; then :
2739   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2740 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2741 # work properly (i.e., refer to `conftest.exe'), while it won't with
2742 # `rm'.
2743 for ac_file in conftest.exe conftest conftest.*; do
2744   test -f "$ac_file" || continue
2745   case $ac_file in
2746     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2747     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748           break;;
2749     * ) break;;
2750   esac
2751 done
2752 else
2753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 as_fn_error "cannot compute suffix of executables: cannot compile and link
2756 See \`config.log' for more details." "$LINENO" 5; }
2757 fi
2758 rm -f conftest$ac_cv_exeext
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2760 $as_echo "$ac_cv_exeext" >&6; }
2761
2762 rm -f conftest.$ac_ext
2763 EXEEXT=$ac_cv_exeext
2764 ac_exeext=$EXEEXT
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2766 $as_echo_n "checking for suffix of object files... " >&6; }
2767 if test "${ac_cv_objext+set}" = set; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h.  */
2772
2773 int
2774 main ()
2775 {
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.o conftest.obj
2782 if { { ac_try="$ac_compile"
2783 case "(($ac_try" in
2784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785   *) ac_try_echo=$ac_try;;
2786 esac
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789   (eval "$ac_compile") 2>&5
2790   ac_status=$?
2791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792   test $ac_status = 0; }; then :
2793   for ac_file in conftest.o conftest.obj conftest.*; do
2794   test -f "$ac_file" || continue;
2795   case $ac_file in
2796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2797     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2798        break;;
2799   esac
2800 done
2801 else
2802   $as_echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 as_fn_error "cannot compute suffix of object files: cannot compile
2808 See \`config.log' for more details." "$LINENO" 5; }
2809 fi
2810 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2813 $as_echo "$ac_cv_objext" >&6; }
2814 OBJEXT=$ac_cv_objext
2815 ac_objext=$OBJEXT
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2817 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2818 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h.  */
2823
2824 int
2825 main ()
2826 {
2827 #ifndef __GNUC__
2828        choke me
2829 #endif
2830
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 if ac_fn_c_try_compile "$LINENO"; then :
2836   ac_compiler_gnu=yes
2837 else
2838   ac_compiler_gnu=no
2839 fi
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2842
2843 fi
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2845 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2846 if test $ac_compiler_gnu = yes; then
2847   GCC=yes
2848 else
2849   GCC=
2850 fi
2851 ac_test_CFLAGS=${CFLAGS+set}
2852 ac_save_CFLAGS=$CFLAGS
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2854 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2855 if test "${ac_cv_prog_cc_g+set}" = set; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   ac_save_c_werror_flag=$ac_c_werror_flag
2859    ac_c_werror_flag=yes
2860    ac_cv_prog_cc_g=no
2861    CFLAGS="-g"
2862    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h.  */
2864
2865 int
2866 main ()
2867 {
2868
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 if ac_fn_c_try_compile "$LINENO"; then :
2874   ac_cv_prog_cc_g=yes
2875 else
2876   CFLAGS=""
2877       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h.  */
2879
2880 int
2881 main ()
2882 {
2883
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 if ac_fn_c_try_compile "$LINENO"; then :
2889
2890 else
2891   ac_c_werror_flag=$ac_save_c_werror_flag
2892          CFLAGS="-g"
2893          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 if ac_fn_c_try_compile "$LINENO"; then :
2905   ac_cv_prog_cc_g=yes
2906 fi
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 fi
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912    ac_c_werror_flag=$ac_save_c_werror_flag
2913 fi
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2915 $as_echo "$ac_cv_prog_cc_g" >&6; }
2916 if test "$ac_test_CFLAGS" = set; then
2917   CFLAGS=$ac_save_CFLAGS
2918 elif test $ac_cv_prog_cc_g = yes; then
2919   if test "$GCC" = yes; then
2920     CFLAGS="-g -O2"
2921   else
2922     CFLAGS="-g"
2923   fi
2924 else
2925   if test "$GCC" = yes; then
2926     CFLAGS="-O2"
2927   else
2928     CFLAGS=
2929   fi
2930 fi
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2932 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2933 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   ac_cv_prog_cc_c89=no
2937 ac_save_CC=$CC
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h.  */
2940 #include <stdarg.h>
2941 #include <stdio.h>
2942 #include <sys/types.h>
2943 #include <sys/stat.h>
2944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2945 struct buf { int x; };
2946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2947 static char *e (p, i)
2948      char **p;
2949      int i;
2950 {
2951   return p[i];
2952 }
2953 static char *f (char * (*g) (char **, int), char **p, ...)
2954 {
2955   char *s;
2956   va_list v;
2957   va_start (v,p);
2958   s = g (p, va_arg (v,int));
2959   va_end (v);
2960   return s;
2961 }
2962
2963 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2964    function prototypes and stuff, but not '\xHH' hex character constants.
2965    These don't provoke an error unfortunately, instead are silently treated
2966    as 'x'.  The following induces an error, until -std is added to get
2967    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2968    array size at least.  It's necessary to write '\x00'==0 to get something
2969    that's true only with -std.  */
2970 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2971
2972 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2973    inside strings and character constants.  */
2974 #define FOO(x) 'x'
2975 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2976
2977 int test (int i, double x);
2978 struct s1 {int (*f) (int a);};
2979 struct s2 {int (*f) (double a);};
2980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2981 int argc;
2982 char **argv;
2983 int
2984 main ()
2985 {
2986 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2992         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2993 do
2994   CC="$ac_save_CC $ac_arg"
2995   if ac_fn_c_try_compile "$LINENO"; then :
2996   ac_cv_prog_cc_c89=$ac_arg
2997 fi
2998 rm -f core conftest.err conftest.$ac_objext
2999   test "x$ac_cv_prog_cc_c89" != "xno" && break
3000 done
3001 rm -f conftest.$ac_ext
3002 CC=$ac_save_CC
3003
3004 fi
3005 # AC_CACHE_VAL
3006 case "x$ac_cv_prog_cc_c89" in
3007   x)
3008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3009 $as_echo "none needed" >&6; } ;;
3010   xno)
3011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3012 $as_echo "unsupported" >&6; } ;;
3013   *)
3014     CC="$CC $ac_cv_prog_cc_c89"
3015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3016 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3017 esac
3018 if test "x$ac_cv_prog_cc_c89" != xno; then :
3019
3020 fi
3021
3022 ac_ext=c
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027
3028
3029 ac_ext=c
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3035 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3036 # On Suns, sometimes $CPP names a directory.
3037 if test -n "$CPP" && test -d "$CPP"; then
3038   CPP=
3039 fi
3040 if test -z "$CPP"; then
3041   if test "${ac_cv_prog_CPP+set}" = set; then :
3042   $as_echo_n "(cached) " >&6
3043 else
3044       # Double quotes because CPP needs to be expanded
3045     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3046     do
3047       ac_preproc_ok=false
3048 for ac_c_preproc_warn_flag in '' yes
3049 do
3050   # Use a header file that comes with gcc, so configuring glibc
3051   # with a fresh cross-compiler works.
3052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3053   # <limits.h> exists even on freestanding compilers.
3054   # On the NeXT, cc -E runs the code through the compiler's parser,
3055   # not just through cpp. "Syntax error" is here to catch this case.
3056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h.  */
3058 #ifdef __STDC__
3059 # include <limits.h>
3060 #else
3061 # include <assert.h>
3062 #endif
3063                      Syntax error
3064 _ACEOF
3065 if ac_fn_c_try_cpp "$LINENO"; then :
3066
3067 else
3068   # Broken: fails on valid input.
3069 continue
3070 fi
3071 rm -f conftest.err conftest.$ac_ext
3072
3073   # OK, works on sane cases.  Now check whether nonexistent headers
3074   # can be detected and how.
3075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h.  */
3077 #include <ac_nonexistent.h>
3078 _ACEOF
3079 if ac_fn_c_try_cpp "$LINENO"; then :
3080   # Broken: success on invalid input.
3081 continue
3082 else
3083   # Passes both tests.
3084 ac_preproc_ok=:
3085 break
3086 fi
3087 rm -f conftest.err conftest.$ac_ext
3088
3089 done
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.$ac_ext
3092 if $ac_preproc_ok; then :
3093   break
3094 fi
3095
3096     done
3097     ac_cv_prog_CPP=$CPP
3098
3099 fi
3100   CPP=$ac_cv_prog_CPP
3101 else
3102   ac_cv_prog_CPP=$CPP
3103 fi
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3105 $as_echo "$CPP" >&6; }
3106 ac_preproc_ok=false
3107 for ac_c_preproc_warn_flag in '' yes
3108 do
3109   # Use a header file that comes with gcc, so configuring glibc
3110   # with a fresh cross-compiler works.
3111   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3112   # <limits.h> exists even on freestanding compilers.
3113   # On the NeXT, cc -E runs the code through the compiler's parser,
3114   # not just through cpp. "Syntax error" is here to catch this case.
3115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h.  */
3117 #ifdef __STDC__
3118 # include <limits.h>
3119 #else
3120 # include <assert.h>
3121 #endif
3122                      Syntax error
3123 _ACEOF
3124 if ac_fn_c_try_cpp "$LINENO"; then :
3125
3126 else
3127   # Broken: fails on valid input.
3128 continue
3129 fi
3130 rm -f conftest.err conftest.$ac_ext
3131
3132   # OK, works on sane cases.  Now check whether nonexistent headers
3133   # can be detected and how.
3134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h.  */
3136 #include <ac_nonexistent.h>
3137 _ACEOF
3138 if ac_fn_c_try_cpp "$LINENO"; then :
3139   # Broken: success on invalid input.
3140 continue
3141 else
3142   # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3145 fi
3146 rm -f conftest.err conftest.$ac_ext
3147
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then :
3152
3153 else
3154   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." "$LINENO" 5; }
3158 fi
3159
3160 ac_ext=c
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165
3166
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3168 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3169 if test "${ac_cv_path_GREP+set}" = set; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if test -z "$GREP"; then
3173   ac_path_GREP_found=false
3174   # Loop through the user's path and test for each of PROGNAME-LIST
3175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180     for ac_prog in grep ggrep; do
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3183       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3184 # Check for GNU ac_path_GREP and select it if it is found.
3185   # Check for GNU $ac_path_GREP
3186 case `"$ac_path_GREP" --version 2>&1` in
3187 *GNU*)
3188   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3189 *)
3190   ac_count=0
3191   $as_echo_n 0123456789 >"conftest.in"
3192   while :
3193   do
3194     cat "conftest.in" "conftest.in" >"conftest.tmp"
3195     mv "conftest.tmp" "conftest.in"
3196     cp "conftest.in" "conftest.nl"
3197     $as_echo 'GREP' >> "conftest.nl"
3198     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3199     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3200     as_fn_arith $ac_count + 1 && ac_count=$as_val
3201     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3202       # Best one so far, save it but keep looking for a better one
3203       ac_cv_path_GREP="$ac_path_GREP"
3204       ac_path_GREP_max=$ac_count
3205     fi
3206     # 10*(2^10) chars as input seems more than enough
3207     test $ac_count -gt 10 && break
3208   done
3209   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3210 esac
3211
3212       $ac_path_GREP_found && break 3
3213     done
3214   done
3215   done
3216 IFS=$as_save_IFS
3217   if test -z "$ac_cv_path_GREP"; then
3218     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3219   fi
3220 else
3221   ac_cv_path_GREP=$GREP
3222 fi
3223
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3226 $as_echo "$ac_cv_path_GREP" >&6; }
3227  GREP="$ac_cv_path_GREP"
3228
3229
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3231 $as_echo_n "checking for egrep... " >&6; }
3232 if test "${ac_cv_path_EGREP+set}" = set; then :
3233   $as_echo_n "(cached) " >&6
3234 else
3235   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3236    then ac_cv_path_EGREP="$GREP -E"
3237    else
3238      if test -z "$EGREP"; then
3239   ac_path_EGREP_found=false
3240   # Loop through the user's path and test for each of PROGNAME-LIST
3241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_prog in egrep; do
3247     for ac_exec_ext in '' $ac_executable_extensions; do
3248       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3249       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3250 # Check for GNU ac_path_EGREP and select it if it is found.
3251   # Check for GNU $ac_path_EGREP
3252 case `"$ac_path_EGREP" --version 2>&1` in
3253 *GNU*)
3254   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3255 *)
3256   ac_count=0
3257   $as_echo_n 0123456789 >"conftest.in"
3258   while :
3259   do
3260     cat "conftest.in" "conftest.in" >"conftest.tmp"
3261     mv "conftest.tmp" "conftest.in"
3262     cp "conftest.in" "conftest.nl"
3263     $as_echo 'EGREP' >> "conftest.nl"
3264     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3265     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3266     as_fn_arith $ac_count + 1 && ac_count=$as_val
3267     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3268       # Best one so far, save it but keep looking for a better one
3269       ac_cv_path_EGREP="$ac_path_EGREP"
3270       ac_path_EGREP_max=$ac_count
3271     fi
3272     # 10*(2^10) chars as input seems more than enough
3273     test $ac_count -gt 10 && break
3274   done
3275   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3276 esac
3277
3278       $ac_path_EGREP_found && break 3
3279     done
3280   done
3281   done
3282 IFS=$as_save_IFS
3283   if test -z "$ac_cv_path_EGREP"; then
3284     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3285   fi
3286 else
3287   ac_cv_path_EGREP=$EGREP
3288 fi
3289
3290    fi
3291 fi
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3293 $as_echo "$ac_cv_path_EGREP" >&6; }
3294  EGREP="$ac_cv_path_EGREP"
3295
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3298 $as_echo_n "checking for ANSI C header files... " >&6; }
3299 if test "${ac_cv_header_stdc+set}" = set; then :
3300   $as_echo_n "(cached) " >&6
3301 else
3302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h.  */
3304 #include <stdlib.h>
3305 #include <stdarg.h>
3306 #include <string.h>
3307 #include <float.h>
3308
3309 int
3310 main ()
3311 {
3312
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318   ac_cv_header_stdc=yes
3319 else
3320   ac_cv_header_stdc=no
3321 fi
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323
3324 if test $ac_cv_header_stdc = yes; then
3325   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h.  */
3328 #include <string.h>
3329
3330 _ACEOF
3331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3332   $EGREP "memchr" >/dev/null 2>&1; then :
3333
3334 else
3335   ac_cv_header_stdc=no
3336 fi
3337 rm -f conftest*
3338
3339 fi
3340
3341 if test $ac_cv_header_stdc = yes; then
3342   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h.  */
3345 #include <stdlib.h>
3346
3347 _ACEOF
3348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3349   $EGREP "free" >/dev/null 2>&1; then :
3350
3351 else
3352   ac_cv_header_stdc=no
3353 fi
3354 rm -f conftest*
3355
3356 fi
3357
3358 if test $ac_cv_header_stdc = yes; then
3359   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3360   if test "$cross_compiling" = yes; then :
3361   :
3362 else
3363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h.  */
3365 #include <ctype.h>
3366 #include <stdlib.h>
3367 #if ((' ' & 0x0FF) == 0x020)
3368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3370 #else
3371 # define ISLOWER(c) \
3372                    (('a' <= (c) && (c) <= 'i') \
3373                      || ('j' <= (c) && (c) <= 'r') \
3374                      || ('s' <= (c) && (c) <= 'z'))
3375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3376 #endif
3377
3378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3379 int
3380 main ()
3381 {
3382   int i;
3383   for (i = 0; i < 256; i++)
3384     if (XOR (islower (i), ISLOWER (i))
3385         || toupper (i) != TOUPPER (i))
3386       return 2;
3387   return 0;
3388 }
3389 _ACEOF
3390 if ac_fn_c_try_run "$LINENO"; then :
3391
3392 else
3393   ac_cv_header_stdc=no
3394 fi
3395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3396   conftest.$ac_objext conftest.beam conftest.$ac_ext
3397 fi
3398
3399 fi
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3402 $as_echo "$ac_cv_header_stdc" >&6; }
3403 if test $ac_cv_header_stdc = yes; then
3404
3405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3406
3407 fi
3408
3409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3411                   inttypes.h stdint.h unistd.h
3412 do :
3413   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3415 "
3416 eval as_val=\$$as_ac_Header
3417    if test "x$as_val" = x""yes; then :
3418   cat >>confdefs.h <<_ACEOF
3419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3420 _ACEOF
3421
3422 fi
3423
3424 done
3425
3426
3427
3428   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3429 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3430   MINIX=yes
3431 else
3432   MINIX=
3433 fi
3434
3435
3436   if test "$MINIX" = yes; then
3437
3438 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3439
3440
3441 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3442
3443
3444 $as_echo "#define _MINIX 1" >>confdefs.h
3445
3446   fi
3447
3448
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3450 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3451 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3452   $as_echo_n "(cached) " >&6
3453 else
3454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h.  */
3456
3457 #         define __EXTENSIONS__ 1
3458           $ac_includes_default
3459 int
3460 main ()
3461 {
3462
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468   ac_cv_safe_to_define___extensions__=yes
3469 else
3470   ac_cv_safe_to_define___extensions__=no
3471 fi
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3475 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3476   test $ac_cv_safe_to_define___extensions__ = yes &&
3477     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3478
3479   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3480
3481   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3482
3483   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3484
3485   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3486
3487
3488
3489 # Check whether --enable-largefile was given.
3490 if test "${enable_largefile+set}" = set; then :
3491   enableval=$enable_largefile;
3492 fi
3493
3494 if test "$enable_largefile" != no; then
3495
3496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3497 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3498 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   ac_cv_sys_largefile_CC=no
3502      if test "$GCC" != yes; then
3503        ac_save_CC=$CC
3504        while :; do
3505          # IRIX 6.2 and later do not support large files by default,
3506          # so use the C compiler's -n32 option if that helps.
3507          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h.  */
3509 #include <sys/types.h>
3510  /* Check that off_t can represent 2**63 - 1 correctly.
3511     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3512     since some C++ compilers masquerading as C compilers
3513     incorrectly reject 9223372036854775807.  */
3514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3515   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3516                        && LARGE_OFF_T % 2147483647 == 1)
3517                       ? 1 : -1];
3518 int
3519 main ()
3520 {
3521
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526          if ac_fn_c_try_compile "$LINENO"; then :
3527   break
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext
3530          CC="$CC -n32"
3531          if ac_fn_c_try_compile "$LINENO"; then :
3532   ac_cv_sys_largefile_CC=' -n32'; break
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext
3535          break
3536        done
3537        CC=$ac_save_CC
3538        rm -f conftest.$ac_ext
3539     fi
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3542 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3543   if test "$ac_cv_sys_largefile_CC" != no; then
3544     CC=$CC$ac_cv_sys_largefile_CC
3545   fi
3546
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3548 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3549 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3550   $as_echo_n "(cached) " >&6
3551 else
3552   while :; do
3553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555 #include <sys/types.h>
3556  /* Check that off_t can represent 2**63 - 1 correctly.
3557     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3558     since some C++ compilers masquerading as C compilers
3559     incorrectly reject 9223372036854775807.  */
3560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3561   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3562                        && LARGE_OFF_T % 2147483647 == 1)
3563                       ? 1 : -1];
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573   ac_cv_sys_file_offset_bits=no; break
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578 #define _FILE_OFFSET_BITS 64
3579 #include <sys/types.h>
3580  /* Check that off_t can represent 2**63 - 1 correctly.
3581     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3582     since some C++ compilers masquerading as C compilers
3583     incorrectly reject 9223372036854775807.  */
3584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3585   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3586                        && LARGE_OFF_T % 2147483647 == 1)
3587                       ? 1 : -1];
3588 int
3589 main ()
3590 {
3591
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597   ac_cv_sys_file_offset_bits=64; break
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600   ac_cv_sys_file_offset_bits=unknown
3601   break
3602 done
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3605 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3606 case $ac_cv_sys_file_offset_bits in #(
3607   no | unknown) ;;
3608   *)
3609 cat >>confdefs.h <<_ACEOF
3610 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3611 _ACEOF
3612 ;;
3613 esac
3614 rm -rf conftest*
3615   if test $ac_cv_sys_file_offset_bits = unknown; then
3616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3617 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3618 if test "${ac_cv_sys_large_files+set}" = set; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   while :; do
3622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h.  */
3624 #include <sys/types.h>
3625  /* Check that off_t can represent 2**63 - 1 correctly.
3626     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3627     since some C++ compilers masquerading as C compilers
3628     incorrectly reject 9223372036854775807.  */
3629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3630   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3631                        && LARGE_OFF_T % 2147483647 == 1)
3632                       ? 1 : -1];
3633 int
3634 main ()
3635 {
3636
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642   ac_cv_sys_large_files=no; break
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h.  */
3647 #define _LARGE_FILES 1
3648 #include <sys/types.h>
3649  /* Check that off_t can represent 2**63 - 1 correctly.
3650     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3651     since some C++ compilers masquerading as C compilers
3652     incorrectly reject 9223372036854775807.  */
3653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3654   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3655                        && LARGE_OFF_T % 2147483647 == 1)
3656                       ? 1 : -1];
3657 int
3658 main ()
3659 {
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666   ac_cv_sys_large_files=1; break
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669   ac_cv_sys_large_files=unknown
3670   break
3671 done
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3674 $as_echo "$ac_cv_sys_large_files" >&6; }
3675 case $ac_cv_sys_large_files in #(
3676   no | unknown) ;;
3677   *)
3678 cat >>confdefs.h <<_ACEOF
3679 #define _LARGE_FILES $ac_cv_sys_large_files
3680 _ACEOF
3681 ;;
3682 esac
3683 rm -rf conftest*
3684   fi
3685 fi
3686
3687
3688 ac_aux_dir=
3689 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3690   for ac_t in install-sh install.sh shtool; do
3691     if test -f "$ac_dir/$ac_t"; then
3692       ac_aux_dir=$ac_dir
3693       ac_install_sh="$ac_aux_dir/$ac_t -c"
3694       break 2
3695     fi
3696   done
3697 done
3698 if test -z "$ac_aux_dir"; then
3699   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3700 fi
3701
3702 # These three variables are undocumented and unsupported,
3703 # and are intended to be withdrawn in a future Autoconf release.
3704 # They can cause serious problems if a builder's source tree is in a directory
3705 # whose full name contains unusual characters.
3706 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3707 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3708 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3709
3710
3711 # Make sure we can run config.sub.
3712 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3713   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3714
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3716 $as_echo_n "checking build system type... " >&6; }
3717 if test "${ac_cv_build+set}" = set; then :
3718   $as_echo_n "(cached) " >&6
3719 else
3720   ac_build_alias=$build_alias
3721 test "x$ac_build_alias" = x &&
3722   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3723 test "x$ac_build_alias" = x &&
3724   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3725 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3726   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3727
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3730 $as_echo "$ac_cv_build" >&6; }
3731 case $ac_cv_build in
3732 *-*-*) ;;
3733 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3734 esac
3735 build=$ac_cv_build
3736 ac_save_IFS=$IFS; IFS='-'
3737 set x $ac_cv_build
3738 shift
3739 build_cpu=$1
3740 build_vendor=$2
3741 shift; shift
3742 # Remember, the first character of IFS is used to create $*,
3743 # except with old shells:
3744 build_os=$*
3745 IFS=$ac_save_IFS
3746 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3747
3748
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3750 $as_echo_n "checking host system type... " >&6; }
3751 if test "${ac_cv_host+set}" = set; then :
3752   $as_echo_n "(cached) " >&6
3753 else
3754   if test "x$host_alias" = x; then
3755   ac_cv_host=$ac_cv_build
3756 else
3757   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3758     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3759 fi
3760
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3763 $as_echo "$ac_cv_host" >&6; }
3764 case $ac_cv_host in
3765 *-*-*) ;;
3766 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3767 esac
3768 host=$ac_cv_host
3769 ac_save_IFS=$IFS; IFS='-'
3770 set x $ac_cv_host
3771 shift
3772 host_cpu=$1
3773 host_vendor=$2
3774 shift; shift
3775 # Remember, the first character of IFS is used to create $*,
3776 # except with old shells:
3777 host_os=$*
3778 IFS=$ac_save_IFS
3779 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3780
3781
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3783 $as_echo_n "checking target system type... " >&6; }
3784 if test "${ac_cv_target+set}" = set; then :
3785   $as_echo_n "(cached) " >&6
3786 else
3787   if test "x$target_alias" = x; then
3788   ac_cv_target=$ac_cv_host
3789 else
3790   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3791     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3792 fi
3793
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3796 $as_echo "$ac_cv_target" >&6; }
3797 case $ac_cv_target in
3798 *-*-*) ;;
3799 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3800 esac
3801 target=$ac_cv_target
3802 ac_save_IFS=$IFS; IFS='-'
3803 set x $ac_cv_target
3804 shift
3805 target_cpu=$1
3806 target_vendor=$2
3807 shift; shift
3808 # Remember, the first character of IFS is used to create $*,
3809 # except with old shells:
3810 target_os=$*
3811 IFS=$ac_save_IFS
3812 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3813
3814
3815 # The aliases save the names the user supplied, while $host etc.
3816 # will get canonicalized.
3817 test -n "$target_alias" &&
3818   test "$program_prefix$program_suffix$program_transform_name" = \
3819     NONENONEs,x,x, &&
3820   program_prefix=${target_alias}-
3821
3822
3823 # Find a good install program.  We prefer a C program (faster),
3824 # so one script is as good as another.  But avoid the broken or
3825 # incompatible versions:
3826 # SysV /etc/install, /usr/sbin/install
3827 # SunOS /usr/etc/install
3828 # IRIX /sbin/install
3829 # AIX /bin/install
3830 # AmigaOS /C/install, which installs bootblocks on floppy discs
3831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3834 # OS/2's system install, which has a completely different semantic
3835 # ./install, which can be erroneously created by make from ./install.sh.
3836 # Reject install programs that cannot install multiple files.
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3838 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3839 if test -z "$INSTALL"; then
3840 if test "${ac_cv_path_install+set}" = set; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848     # Account for people who put trailing slashes in PATH elements.
3849 case $as_dir/ in #((
3850   ./ | .// | /[cC]/* | \
3851   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3852   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3853   /usr/ucb/* ) ;;
3854   *)
3855     # OSF1 and SCO ODT 3.0 have their own names for install.
3856     # Don't use installbsd from OSF since it installs stuff as root
3857     # by default.
3858     for ac_prog in ginstall scoinst install; do
3859       for ac_exec_ext in '' $ac_executable_extensions; do
3860         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3861           if test $ac_prog = install &&
3862             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3863             # AIX install.  It has an incompatible calling convention.
3864             :
3865           elif test $ac_prog = install &&
3866             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3867             # program-specific install script used by HP pwplus--don't use.
3868             :
3869           else
3870             rm -rf conftest.one conftest.two conftest.dir
3871             echo one > conftest.one
3872             echo two > conftest.two
3873             mkdir conftest.dir
3874             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3875               test -s conftest.one && test -s conftest.two &&
3876               test -s conftest.dir/conftest.one &&
3877               test -s conftest.dir/conftest.two
3878             then
3879               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3880               break 3
3881             fi
3882           fi
3883         fi
3884       done
3885     done
3886     ;;
3887 esac
3888
3889   done
3890 IFS=$as_save_IFS
3891
3892 rm -rf conftest.one conftest.two conftest.dir
3893
3894 fi
3895   if test "${ac_cv_path_install+set}" = set; then
3896     INSTALL=$ac_cv_path_install
3897   else
3898     # As a last resort, use the slow shell script.  Don't cache a
3899     # value for INSTALL within a source directory, because that will
3900     # break other packages using the cache if that directory is
3901     # removed, or if the value is a relative name.
3902     INSTALL=$ac_install_sh
3903   fi
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3906 $as_echo "$INSTALL" >&6; }
3907
3908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3909 # It thinks the first close brace ends the variable substitution.
3910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3911
3912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3913
3914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3915
3916 if test -n "$ac_tool_prefix"; then
3917   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3922   $as_echo_n "(cached) " >&6
3923 else
3924   if test -n "$RANLIB"; then
3925   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932     for ac_exec_ext in '' $ac_executable_extensions; do
3933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939   done
3940 IFS=$as_save_IFS
3941
3942 fi
3943 fi
3944 RANLIB=$ac_cv_prog_RANLIB
3945 if test -n "$RANLIB"; then
3946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3947 $as_echo "$RANLIB" >&6; }
3948 else
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 fi
3952
3953
3954 fi
3955 if test -z "$ac_cv_prog_RANLIB"; then
3956   ac_ct_RANLIB=$RANLIB
3957   # Extract the first word of "ranlib", so it can be a program name with args.
3958 set dummy ranlib; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3962   $as_echo_n "(cached) " >&6
3963 else
3964   if test -n "$ac_ct_RANLIB"; then
3965   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972     for ac_exec_ext in '' $ac_executable_extensions; do
3973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974     ac_cv_prog_ac_ct_RANLIB="ranlib"
3975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979   done
3980 IFS=$as_save_IFS
3981
3982 fi
3983 fi
3984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3985 if test -n "$ac_ct_RANLIB"; then
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3987 $as_echo "$ac_ct_RANLIB" >&6; }
3988 else
3989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 fi
3992
3993   if test "x$ac_ct_RANLIB" = x; then
3994     RANLIB=":"
3995   else
3996     case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4001 esac
4002     RANLIB=$ac_ct_RANLIB
4003   fi
4004 else
4005   RANLIB="$ac_cv_prog_RANLIB"
4006 fi
4007
4008
4009 test "$program_prefix" != NONE &&
4010   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4011 # Use a double $ so make ignores it.
4012 test "$program_suffix" != NONE &&
4013   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4014 # Double any \ or $.
4015 # By default was `s,x,x', remove it if useless.
4016 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4017 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4018
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4021 $as_echo_n "checking for ANSI C header files... " >&6; }
4022 if test "${ac_cv_header_stdc+set}" = set; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027 #include <stdlib.h>
4028 #include <stdarg.h>
4029 #include <string.h>
4030 #include <float.h>
4031
4032 int
4033 main ()
4034 {
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041   ac_cv_header_stdc=yes
4042 else
4043   ac_cv_header_stdc=no
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046
4047 if test $ac_cv_header_stdc = yes; then
4048   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h.  */
4051 #include <string.h>
4052
4053 _ACEOF
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055   $EGREP "memchr" >/dev/null 2>&1; then :
4056
4057 else
4058   ac_cv_header_stdc=no
4059 fi
4060 rm -f conftest*
4061
4062 fi
4063
4064 if test $ac_cv_header_stdc = yes; then
4065   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068 #include <stdlib.h>
4069
4070 _ACEOF
4071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072   $EGREP "free" >/dev/null 2>&1; then :
4073
4074 else
4075   ac_cv_header_stdc=no
4076 fi
4077 rm -f conftest*
4078
4079 fi
4080
4081 if test $ac_cv_header_stdc = yes; then
4082   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4083   if test "$cross_compiling" = yes; then :
4084   :
4085 else
4086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088 #include <ctype.h>
4089 #include <stdlib.h>
4090 #if ((' ' & 0x0FF) == 0x020)
4091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4093 #else
4094 # define ISLOWER(c) \
4095                    (('a' <= (c) && (c) <= 'i') \
4096                      || ('j' <= (c) && (c) <= 'r') \
4097                      || ('s' <= (c) && (c) <= 'z'))
4098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4099 #endif
4100
4101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4102 int
4103 main ()
4104 {
4105   int i;
4106   for (i = 0; i < 256; i++)
4107     if (XOR (islower (i), ISLOWER (i))
4108         || toupper (i) != TOUPPER (i))
4109       return 2;
4110   return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_run "$LINENO"; then :
4114
4115 else
4116   ac_cv_header_stdc=no
4117 fi
4118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4119   conftest.$ac_objext conftest.beam conftest.$ac_ext
4120 fi
4121
4122 fi
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4125 $as_echo "$ac_cv_header_stdc" >&6; }
4126 if test $ac_cv_header_stdc = yes; then
4127
4128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4129
4130 fi
4131
4132 ac_header_dirent=no
4133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4134   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4136 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h.  */
4142 #include <sys/types.h>
4143 #include <$ac_hdr>
4144
4145 int
4146 main ()
4147 {
4148 if ((DIR *) 0)
4149 return 0;
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155   eval "$as_ac_Header=yes"
4156 else
4157   eval "$as_ac_Header=no"
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 fi
4161 eval ac_res=\$$as_ac_Header
4162                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4163 $as_echo "$ac_res" >&6; }
4164 eval as_val=\$$as_ac_Header
4165    if test "x$as_val" = x""yes; then :
4166   cat >>confdefs.h <<_ACEOF
4167 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4168 _ACEOF
4169
4170 ac_header_dirent=$ac_hdr; break
4171 fi
4172
4173 done
4174 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4175 if test $ac_header_dirent = dirent.h; then
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4177 $as_echo_n "checking for library containing opendir... " >&6; }
4178 if test "${ac_cv_search_opendir+set}" = set; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   ac_func_search_save_LIBS=$LIBS
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184
4185 /* Override any GCC internal prototype to avoid an error.
4186    Use char because int might match the return type of a GCC
4187    builtin and then its argument prototype would still apply.  */
4188 #ifdef __cplusplus
4189 extern "C"
4190 #endif
4191 char opendir ();
4192 int
4193 main ()
4194 {
4195 return opendir ();
4196   ;
4197   return 0;
4198 }
4199 _ACEOF
4200 for ac_lib in '' dir; do
4201   if test -z "$ac_lib"; then
4202     ac_res="none required"
4203   else
4204     ac_res=-l$ac_lib
4205     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4206   fi
4207   if ac_fn_c_try_link "$LINENO"; then :
4208   ac_cv_search_opendir=$ac_res
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext \
4211     conftest$ac_exeext
4212   if test "${ac_cv_search_opendir+set}" = set; then :
4213   break
4214 fi
4215 done
4216 if test "${ac_cv_search_opendir+set}" = set; then :
4217
4218 else
4219   ac_cv_search_opendir=no
4220 fi
4221 rm conftest.$ac_ext
4222 LIBS=$ac_func_search_save_LIBS
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4225 $as_echo "$ac_cv_search_opendir" >&6; }
4226 ac_res=$ac_cv_search_opendir
4227 if test "$ac_res" != no; then :
4228   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4229
4230 fi
4231
4232 else
4233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4234 $as_echo_n "checking for library containing opendir... " >&6; }
4235 if test "${ac_cv_search_opendir+set}" = set; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   ac_func_search_save_LIBS=$LIBS
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h.  */
4241
4242 /* Override any GCC internal prototype to avoid an error.
4243    Use char because int might match the return type of a GCC
4244    builtin and then its argument prototype would still apply.  */
4245 #ifdef __cplusplus
4246 extern "C"
4247 #endif
4248 char opendir ();
4249 int
4250 main ()
4251 {
4252 return opendir ();
4253   ;
4254   return 0;
4255 }
4256 _ACEOF
4257 for ac_lib in '' x; do
4258   if test -z "$ac_lib"; then
4259     ac_res="none required"
4260   else
4261     ac_res=-l$ac_lib
4262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4263   fi
4264   if ac_fn_c_try_link "$LINENO"; then :
4265   ac_cv_search_opendir=$ac_res
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext \
4268     conftest$ac_exeext
4269   if test "${ac_cv_search_opendir+set}" = set; then :
4270   break
4271 fi
4272 done
4273 if test "${ac_cv_search_opendir+set}" = set; then :
4274
4275 else
4276   ac_cv_search_opendir=no
4277 fi
4278 rm conftest.$ac_ext
4279 LIBS=$ac_func_search_save_LIBS
4280 fi
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4282 $as_echo "$ac_cv_search_opendir" >&6; }
4283 ac_res=$ac_cv_search_opendir
4284 if test "$ac_res" != no; then :
4285   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4286
4287 fi
4288
4289 fi
4290
4291
4292 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4293 # for constant arguments.  Useless!
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4295 $as_echo_n "checking for working alloca.h... " >&6; }
4296 if test "${ac_cv_working_alloca_h+set}" = set; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h.  */
4301 #include <alloca.h>
4302 int
4303 main ()
4304 {
4305 char *p = (char *) alloca (2 * sizeof (int));
4306                           if (p) return 0;
4307   ;
4308   return 0;
4309 }
4310 _ACEOF
4311 if ac_fn_c_try_link "$LINENO"; then :
4312   ac_cv_working_alloca_h=yes
4313 else
4314   ac_cv_working_alloca_h=no
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext \
4317     conftest$ac_exeext conftest.$ac_ext
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4320 $as_echo "$ac_cv_working_alloca_h" >&6; }
4321 if test $ac_cv_working_alloca_h = yes; then
4322
4323 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4324
4325 fi
4326
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4328 $as_echo_n "checking for alloca... " >&6; }
4329 if test "${ac_cv_func_alloca_works+set}" = set; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334 #ifdef __GNUC__
4335 # define alloca __builtin_alloca
4336 #else
4337 # ifdef _MSC_VER
4338 #  include <malloc.h>
4339 #  define alloca _alloca
4340 # else
4341 #  ifdef HAVE_ALLOCA_H
4342 #   include <alloca.h>
4343 #  else
4344 #   ifdef _AIX
4345  #pragma alloca
4346 #   else
4347 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4348 char *alloca ();
4349 #    endif
4350 #   endif
4351 #  endif
4352 # endif
4353 #endif
4354
4355 int
4356 main ()
4357 {
4358 char *p = (char *) alloca (1);
4359                                     if (p) return 0;
4360   ;
4361   return 0;
4362 }
4363 _ACEOF
4364 if ac_fn_c_try_link "$LINENO"; then :
4365   ac_cv_func_alloca_works=yes
4366 else
4367   ac_cv_func_alloca_works=no
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext \
4370     conftest$ac_exeext conftest.$ac_ext
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4373 $as_echo "$ac_cv_func_alloca_works" >&6; }
4374
4375 if test $ac_cv_func_alloca_works = yes; then
4376
4377 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4378
4379 else
4380   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4381 # that cause trouble.  Some versions do not even contain alloca or
4382 # contain a buggy version.  If you still want to use their alloca,
4383 # use ar to extract alloca.o from them instead of compiling alloca.c.
4384
4385 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4386
4387 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4388
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4391 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4392 if test "${ac_cv_os_cray+set}" = set; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h.  */
4397 #if defined CRAY && ! defined CRAY2
4398 webecray
4399 #else
4400 wenotbecray
4401 #endif
4402
4403 _ACEOF
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405   $EGREP "webecray" >/dev/null 2>&1; then :
4406   ac_cv_os_cray=yes
4407 else
4408   ac_cv_os_cray=no
4409 fi
4410 rm -f conftest*
4411
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4414 $as_echo "$ac_cv_os_cray" >&6; }
4415 if test $ac_cv_os_cray = yes; then
4416   for ac_func in _getb67 GETB67 getb67; do
4417     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4419 eval as_val=\$$as_ac_var
4420    if test "x$as_val" = x""yes; then :
4421
4422 cat >>confdefs.h <<_ACEOF
4423 #define CRAY_STACKSEG_END $ac_func
4424 _ACEOF
4425
4426     break
4427 fi
4428
4429   done
4430 fi
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4433 $as_echo_n "checking stack direction for C alloca... " >&6; }
4434 if test "${ac_cv_c_stack_direction+set}" = set; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   if test "$cross_compiling" = yes; then :
4438   ac_cv_c_stack_direction=0
4439 else
4440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h.  */
4442 $ac_includes_default
4443 int
4444 find_stack_direction ()
4445 {
4446   static char *addr = 0;
4447   auto char dummy;
4448   if (addr == 0)
4449     {
4450       addr = &dummy;
4451       return find_stack_direction ();
4452     }
4453   else
4454     return (&dummy > addr) ? 1 : -1;
4455 }
4456
4457 int
4458 main ()
4459 {
4460   return find_stack_direction () < 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_run "$LINENO"; then :
4464   ac_cv_c_stack_direction=1
4465 else
4466   ac_cv_c_stack_direction=-1
4467 fi
4468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4469   conftest.$ac_objext conftest.beam conftest.$ac_ext
4470 fi
4471
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4474 $as_echo "$ac_cv_c_stack_direction" >&6; }
4475 cat >>confdefs.h <<_ACEOF
4476 #define STACK_DIRECTION $ac_cv_c_stack_direction
4477 _ACEOF
4478
4479
4480 fi
4481
4482
4483 # Dependency checking.
4484 rm -rf .tst 2>/dev/null
4485 mkdir .tst 2>/dev/null
4486 if test -d .tst; then
4487   am__leading_dot=.
4488 else
4489   am__leading_dot=_
4490 fi
4491 rmdir .tst 2>/dev/null
4492
4493 DEPDIR="${am__leading_dot}deps"
4494
4495 ac_config_commands="$ac_config_commands depdir"
4496
4497
4498 depcc="$CC"   am_compiler_list=
4499
4500 am_depcomp=$ac_aux_dir/depcomp
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4502 $as_echo_n "checking dependency style of $depcc... " >&6; }
4503 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4504   $as_echo_n "(cached) " >&6
4505 else
4506   if test -f "$am_depcomp"; then
4507   # We make a subdir and do the tests there.  Otherwise we can end up
4508   # making bogus files that we don't know about and never remove.  For
4509   # instance it was reported that on HP-UX the gcc test will end up
4510   # making a dummy file named `D' -- because `-MD' means `put the output
4511   # in D'.
4512   mkdir conftest.dir
4513   # Copy depcomp to subdir because otherwise we won't find it if we're
4514   # using a relative directory.
4515   cp "$am_depcomp" conftest.dir
4516   cd conftest.dir
4517   # We will build objects and dependencies in a subdirectory because
4518   # it helps to detect inapplicable dependency modes.  For instance
4519   # both Tru64's cc and ICC support -MD to output dependencies as a
4520   # side effect of compilation, but ICC will put the dependencies in
4521   # the current directory while Tru64 will put them in the object
4522   # directory.
4523   mkdir sub
4524
4525   am_cv_CC_dependencies_compiler_type=none
4526   if test "$am_compiler_list" = ""; then
4527      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4528   fi
4529   for depmode in $am_compiler_list; do
4530     if test $depmode = none; then break; fi
4531
4532     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4533     # Setup a source with many dependencies, because some compilers
4534     # like to wrap large dependency lists on column 80 (with \), and
4535     # we should not choose a depcomp mode which is confused by this.
4536     #
4537     # We need to recreate these files for each test, as the compiler may
4538     # overwrite some of them when testing with obscure command lines.
4539     # This happens at least with the AIX C compiler.
4540     : > sub/conftest.c
4541     for i in 1 2 3 4 5 6; do
4542       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4543       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4544       # Solaris 8's {/usr,}/bin/sh.
4545       touch sub/conftst$i.h
4546     done
4547     echo "include sub/conftest.Po" > confmf
4548
4549     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4550     # mode.  It turns out that the SunPro C++ compiler does not properly
4551     # handle `-M -o', and we need to detect this.
4552     depcmd="depmode=$depmode \
4553        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4554        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4555        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4556     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4557     if env $depcmd > conftest.err 2>&1 &&
4558        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4559        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4560        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4561       # icc doesn't choke on unknown options, it will just issue warnings
4562       # or remarks (even with -Werror).  So we grep stderr for any message
4563       # that says an option was ignored or not supported.
4564       # When given -MP, icc 7.0 and 7.1 complain thusly:
4565       #   icc: Command line warning: ignoring option '-M'; no argument required
4566       # The diagnosis changed in icc 8.0:
4567       #   icc: Command line remark: option '-MP' not supported
4568       if (grep 'ignoring option' conftest.err ||
4569           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4570         am_cv_CC_dependencies_compiler_type=$depmode
4571         $as_echo "$as_me:$LINENO: success" >&5
4572         break
4573       fi
4574     fi
4575     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4576     sed -e 's/^/| /' < conftest.err >&5
4577   done
4578
4579   cd ..
4580   rm -rf conftest.dir
4581 else
4582   am_cv_CC_dependencies_compiler_type=none
4583 fi
4584
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4587 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4588 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4589 then as_fn_error "no usable dependency style found" "$LINENO" 5
4590 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4591
4592 fi
4593
4594
4595 # Check for the 'make' the user wants to use.
4596 for ac_prog in make
4597 do
4598   # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_prog_MAKE+set}" = set; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   if test -n "$MAKE"; then
4606   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613     for ac_exec_ext in '' $ac_executable_extensions; do
4614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615     ac_cv_prog_MAKE="$ac_prog"
4616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620   done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 MAKE=$ac_cv_prog_MAKE
4626 if test -n "$MAKE"; then
4627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4628 $as_echo "$MAKE" >&6; }
4629 else
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634
4635   test -n "$MAKE" && break
4636 done
4637
4638 MAKE_IS_GNU=
4639 case "`$MAKE --version 2>&1 | sed 1q`" in
4640   *GNU*)
4641     MAKE_IS_GNU=yes
4642     ;;
4643 esac
4644  if test "$MAKE_IS_GNU" = yes; then
4645   GMAKE_TRUE=
4646   GMAKE_FALSE='#'
4647 else
4648   GMAKE_TRUE='#'
4649   GMAKE_FALSE=
4650 fi
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4654 set x ${MAKE-make}
4655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4656 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   cat >conftest.make <<\_ACEOF
4660 SHELL = /bin/sh
4661 all:
4662         @echo '@@@%%%=$(MAKE)=@@@%%%'
4663 _ACEOF
4664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4666   *@@@%%%=?*=@@@%%%*)
4667     eval ac_cv_prog_make_${ac_make}_set=yes;;
4668   *)
4669     eval ac_cv_prog_make_${ac_make}_set=no;;
4670 esac
4671 rm -f conftest.make
4672 fi
4673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4675 $as_echo "yes" >&6; }
4676   SET_MAKE=
4677 else
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680   SET_MAKE="MAKE=${MAKE-make}"
4681 fi
4682
4683
4684 # Configure gnulib.  We can't use AC_CONFIG_SUBDIRS as that'd expect
4685 # to find the the source subdir to be configured directly under
4686 # gdbserver/.  We need to build gnulib under some other directory not
4687 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
4688 # build it in the same directory, when building in the source dir.
4689
4690   in_src="../gnulib"
4691   in_build="build-gnulib-gdbserver"
4692
4693   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4694   # so they do not pile up.
4695   ac_sub_configure_args=
4696   ac_prev=
4697   eval "set x $ac_configure_args"
4698   shift
4699   for ac_arg
4700   do
4701     if test -n "$ac_prev"; then
4702       ac_prev=
4703       continue
4704     fi
4705     case $ac_arg in
4706     -cache-file | --cache-file | --cache-fil | --cache-fi \
4707     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4708       ac_prev=cache_file ;;
4709     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4710     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4711     | --c=*)
4712       ;;
4713     --config-cache | -C)
4714       ;;
4715     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4716       ac_prev=srcdir ;;
4717     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4718       ;;
4719     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4720       ac_prev=prefix ;;
4721     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4722       ;;
4723     --disable-option-checking)
4724       ;;
4725     *)
4726       case $ac_arg in
4727       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4728       esac
4729       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4730     esac
4731   done
4732
4733   # Always prepend --prefix to ensure using the same prefix
4734   # in subdir configurations.
4735   ac_arg="--prefix=$prefix"
4736   case $ac_arg in
4737   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4738   esac
4739   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4740
4741   # Pass --silent
4742   if test "$silent" = yes; then
4743     ac_sub_configure_args="--silent $ac_sub_configure_args"
4744   fi
4745
4746   # Always prepend --disable-option-checking to silence warnings, since
4747   # different subdirs can have different --enable and --with options.
4748   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4749
4750   ac_popdir=`pwd`
4751   ac_dir=$in_build
4752
4753   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4754   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4755   $as_echo "$ac_msg" >&6
4756   as_dir="$ac_dir"; as_fn_mkdir_p
4757
4758   case $srcdir in
4759   [\\/]* | ?:[\\/]* )
4760     ac_srcdir=$srcdir/$in_src ;;
4761   *) # Relative name.
4762     ac_srcdir=../$srcdir/$in_src ;;
4763   esac
4764
4765   cd "$ac_dir"
4766
4767   ac_sub_configure=$ac_srcdir/configure
4768
4769   # Make the cache file name correct relative to the subdirectory.
4770   case $cache_file in
4771   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4772   *) # Relative name.
4773     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4774   esac
4775
4776   { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4777 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4778   # The eval makes quoting arguments work.
4779   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4780        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4781     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4782
4783   cd "$ac_popdir"
4784
4785
4786 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                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 wait.h sys/un.h            linux/perf_event.h
4787 do :
4788   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4789 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4790 eval as_val=\$$as_ac_Header
4791    if test "x$as_val" = x""yes; then :
4792   cat >>confdefs.h <<_ACEOF
4793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794 _ACEOF
4795
4796 fi
4797
4798 done
4799
4800 for ac_func in pread pwrite pread64 readlink fdwalk pipe2
4801 do :
4802   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4804 eval as_val=\$$as_ac_var
4805    if test "x$as_val" = x""yes; then :
4806   cat >>confdefs.h <<_ACEOF
4807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4808 _ACEOF
4809
4810 fi
4811 done
4812
4813 for ac_func in vasprintf vsnprintf
4814 do :
4815   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4817 eval as_val=\$$as_ac_var
4818    if test "x$as_val" = x""yes; then :
4819   cat >>confdefs.h <<_ACEOF
4820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4821 _ACEOF
4822
4823 else
4824   case " $LIBOBJS " in
4825   *" $ac_func.$ac_objext "* ) ;;
4826   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4827  ;;
4828 esac
4829
4830 fi
4831 done
4832
4833
4834
4835 # Check for UST
4836 ustlibs=""
4837 ustinc=""
4838
4839
4840 # Check whether --with-ust was given.
4841 if test "${with_ust+set}" = set; then :
4842   withval=$with_ust;
4843 fi
4844
4845
4846 # Check whether --with-ust_include was given.
4847 if test "${with_ust_include+set}" = set; then :
4848   withval=$with_ust_include;
4849 fi
4850
4851
4852 # Check whether --with-ust_lib was given.
4853 if test "${with_ust_lib+set}" = set; then :
4854   withval=$with_ust_lib;
4855 fi
4856
4857
4858 case $with_ust in
4859   no)
4860     ustlibs=
4861     ustinc=
4862     ;;
4863   "" | yes)
4864     ustlibs=" -lust "
4865     ustinc=""
4866     ;;
4867   *)
4868     ustlibs="-L$with_ust/lib -lust"
4869     ustinc="-I$with_ust/include "
4870     ;;
4871 esac
4872 if test "x$with_ust_include" != x; then
4873   ustinc="-I$with_ust_include "
4874 fi
4875 if test "x$with_ust_lib" != x; then
4876   ustlibs="-L$with_ust_lib -lust"
4877 fi
4878
4879 if test "x$with_ust" != "xno"; then
4880   saved_CFLAGS="$CFLAGS"
4881   CFLAGS="$CFLAGS $ustinc"
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
4883 $as_echo_n "checking for ust... " >&6; }
4884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h.  */
4886
4887 #define CONFIG_UST_GDB_INTEGRATION
4888 #include <ust/ust.h>
4889
4890 int
4891 main ()
4892 {
4893
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900 $as_echo "yes" >&6; };
4901 $as_echo "#define HAVE_UST 1" >>confdefs.h
4902
4903 else
4904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }; ustlibs= ; ustinc=
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908   CFLAGS="$saved_CFLAGS"
4909 fi
4910
4911 # Flags needed for UST
4912
4913
4914
4915 # Check whether --enable-werror was given.
4916 if test "${enable_werror+set}" = set; then :
4917   enableval=$enable_werror; case "${enableval}" in
4918      yes | y) ERROR_ON_WARNING="yes" ;;
4919      no | n)  ERROR_ON_WARNING="no" ;;
4920      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4921    esac
4922 fi
4923
4924
4925 # Enable -Werror by default when using gcc
4926 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4927     ERROR_ON_WARNING=yes
4928 fi
4929
4930 WERROR_CFLAGS=""
4931 if test "${ERROR_ON_WARNING}" = yes ; then
4932     WERROR_CFLAGS="-Werror"
4933 fi
4934
4935 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
4936 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
4937
4938 WARN_CFLAGS=""
4939 if test "x$GCC" = xyes
4940 then
4941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4942 $as_echo_n "checking compiler warning flags... " >&6; }
4943     # Separate out the -Werror flag as some files just cannot be
4944     # compiled with it enabled.
4945     for w in ${build_warnings}; do
4946         case $w in
4947         -Werr*) WERROR_CFLAGS=-Werror ;;
4948         *) # Check that GCC accepts it
4949             saved_CFLAGS="$CFLAGS"
4950             CFLAGS="$CFLAGS $w"
4951             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h.  */
4953
4954 int
4955 main ()
4956 {
4957
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963   WARN_CFLAGS="${WARN_CFLAGS} $w"
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966             CFLAGS="$saved_CFLAGS"
4967         esac
4968     done
4969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4970 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4971 fi
4972
4973
4974
4975 old_LIBS="$LIBS"
4976 LIBS="$LIBS -ldl"
4977 for ac_func in dladdr
4978 do :
4979   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
4980 if test "x$ac_cv_func_dladdr" = x""yes; then :
4981   cat >>confdefs.h <<_ACEOF
4982 #define HAVE_DLADDR 1
4983 _ACEOF
4984
4985 fi
4986 done
4987
4988 LIBS="$old_LIBS"
4989
4990 have_errno=no
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4992 $as_echo_n "checking for errno... " >&6; }
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h.  */
4995
4996 #if HAVE_ERRNO_H
4997 #include <errno.h>
4998 #endif
4999 int
5000 main ()
5001 {
5002 static int x; x = errno;
5003   ;
5004   return 0;
5005 }
5006 _ACEOF
5007 if ac_fn_c_try_link "$LINENO"; then :
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
5009 $as_echo "yes - in errno.h" >&6; };
5010 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5011  have_errno=yes
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext \
5014     conftest$ac_exeext conftest.$ac_ext
5015 if test $have_errno = no; then
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h.  */
5018
5019 #if HAVE_ERRNO_H
5020 #include <errno.h>
5021 #endif
5022 int
5023 main ()
5024 {
5025 extern int errno; static int x; x = errno;
5026   ;
5027   return 0;
5028 }
5029 _ACEOF
5030 if ac_fn_c_try_link "$LINENO"; then :
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5032 $as_echo "yes - must define" >&6; };
5033 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5034
5035 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5036
5037 else
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext \
5042     conftest$ac_exeext conftest.$ac_ext
5043 fi
5044
5045 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5046 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5047   ac_have_decl=1
5048 else
5049   ac_have_decl=0
5050 fi
5051
5052 cat >>confdefs.h <<_ACEOF
5053 #define HAVE_DECL_STRERROR $ac_have_decl
5054 _ACEOF
5055 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5056 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
5057   ac_have_decl=1
5058 else
5059   ac_have_decl=0
5060 fi
5061
5062 cat >>confdefs.h <<_ACEOF
5063 #define HAVE_DECL_STRSTR $ac_have_decl
5064 _ACEOF
5065 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
5066 if test "x$ac_cv_have_decl_perror" = x""yes; then :
5067   ac_have_decl=1
5068 else
5069   ac_have_decl=0
5070 fi
5071
5072 cat >>confdefs.h <<_ACEOF
5073 #define HAVE_DECL_PERROR $ac_have_decl
5074 _ACEOF
5075 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5076 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5077   ac_have_decl=1
5078 else
5079   ac_have_decl=0
5080 fi
5081
5082 cat >>confdefs.h <<_ACEOF
5083 #define HAVE_DECL_VASPRINTF $ac_have_decl
5084 _ACEOF
5085 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5086 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
5087   ac_have_decl=1
5088 else
5089   ac_have_decl=0
5090 fi
5091
5092 cat >>confdefs.h <<_ACEOF
5093 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5094 _ACEOF
5095
5096
5097 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5098 #include <sys/socket.h>
5099
5100 "
5101 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5102
5103 cat >>confdefs.h <<_ACEOF
5104 #define HAVE_SOCKLEN_T 1
5105 _ACEOF
5106
5107
5108 fi
5109
5110
5111 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
5112
5113 "
5114 if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
5115
5116 cat >>confdefs.h <<_ACEOF
5117 #define HAVE_ELF32_AUXV_T 1
5118 _ACEOF
5119
5120
5121 fi
5122 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
5123
5124 "
5125 if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
5126
5127 cat >>confdefs.h <<_ACEOF
5128 #define HAVE_ELF64_AUXV_T 1
5129 _ACEOF
5130
5131
5132 fi
5133
5134
5135
5136
5137 # Check whether --with-pkgversion was given.
5138 if test "${with_pkgversion+set}" = set; then :
5139   withval=$with_pkgversion; case "$withval" in
5140       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5141       no)  PKGVERSION= ;;
5142       *)   PKGVERSION="($withval) " ;;
5143      esac
5144 else
5145   PKGVERSION="(GDB) "
5146
5147 fi
5148
5149
5150
5151
5152
5153 # Check whether --with-bugurl was given.
5154 if test "${with_bugurl+set}" = set; then :
5155   withval=$with_bugurl; case "$withval" in
5156       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5157       no)  BUGURL=
5158            ;;
5159       *)   BUGURL="$withval"
5160            ;;
5161      esac
5162 else
5163   BUGURL="http://www.gnu.org/software/gdb/bugs/"
5164
5165 fi
5166
5167   case ${BUGURL} in
5168   "")
5169     REPORT_BUGS_TO=
5170     REPORT_BUGS_TEXI=
5171     ;;
5172   *)
5173     REPORT_BUGS_TO="<$BUGURL>"
5174     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5175     ;;
5176   esac;
5177
5178
5179
5180
5181 cat >>confdefs.h <<_ACEOF
5182 #define PKGVERSION "$PKGVERSION"
5183 _ACEOF
5184
5185
5186 cat >>confdefs.h <<_ACEOF
5187 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5188 _ACEOF
5189
5190
5191 # Check for various supplementary target information (beyond the
5192 # triplet) which might affect the choices in configure.srv.
5193 case "${target}" in
5194   i[34567]86-*-linux*)
5195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
5196 $as_echo_n "checking if building for x86-64... " >&6; }
5197 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   save_CPPFLAGS="$CPPFLAGS"
5201                     CPPFLAGS="$CPPFLAGS $CFLAGS"
5202                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h.  */
5204
5205 #if __x86_64__
5206 got it
5207 #endif
5208
5209 _ACEOF
5210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5211   $EGREP "got it" >/dev/null 2>&1; then :
5212   gdb_cv_i386_is_x86_64=yes
5213 else
5214   gdb_cv_i386_is_x86_64=no
5215 fi
5216 rm -f conftest*
5217
5218                     CPPFLAGS="$save_CPPFLAGS"
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
5221 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
5222     ;;
5223   m68k-*-*)
5224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
5225 $as_echo_n "checking if building for Coldfire... " >&6; }
5226 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   save_CPPFLAGS="$CPPFLAGS"
5230                     CPPFLAGS="$CPPFLAGS $CFLAGS"
5231                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h.  */
5233
5234 #ifdef __mcoldfire__
5235 got it
5236 #endif
5237
5238 _ACEOF
5239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5240   $EGREP "got it" >/dev/null 2>&1; then :
5241   gdb_cv_m68k_is_coldfire=yes
5242 else
5243   gdb_cv_m68k_is_coldfire=no
5244 fi
5245 rm -f conftest*
5246
5247                     CPPFLAGS="$save_CPPFLAGS"
5248 fi
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
5250 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
5251     ;;
5252 esac
5253
5254 . ${srcdir}/configure.srv
5255
5256 if test "${srv_mingwce}" = "yes"; then
5257   LIBS="$LIBS -lws2"
5258 elif test "${srv_mingw}" = "yes"; then
5259   LIBS="$LIBS -lws2_32"
5260 elif test "${srv_qnx}" = "yes"; then
5261   LIBS="$LIBS -lsocket"
5262 elif test "${srv_lynxos}" = "yes"; then
5263   LIBS="$LIBS -lnetinet"
5264 fi
5265
5266 if test "${srv_mingw}" = "yes"; then
5267
5268 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5269
5270 fi
5271
5272 if test "${srv_linux_usrregs}" = "yes"; then
5273
5274 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
5275
5276 fi
5277
5278 if test "${srv_linux_regsets}" = "yes"; then
5279
5280 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
5281
5282
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
5284 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
5285   if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h.  */
5290 #include <sys/ptrace.h>
5291 int
5292 main ()
5293 {
5294 PTRACE_GETREGS;
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300   gdbsrv_cv_have_ptrace_getregs=yes
5301 else
5302   gdbsrv_cv_have_ptrace_getregs=no
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 fi
5306
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
5308 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
5309   if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
5310
5311 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
5312
5313   fi
5314
5315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
5316 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
5317   if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h.  */
5322 #include <sys/ptrace.h>
5323 int
5324 main ()
5325 {
5326 PTRACE_GETFPXREGS;
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332   gdbsrv_cv_have_ptrace_getfpxregs=yes
5333 else
5334   gdbsrv_cv_have_ptrace_getfpxregs=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 fi
5338
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
5340 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
5341   if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
5342
5343 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
5344
5345   fi
5346 fi
5347
5348 if test "${srv_linux_btrace}" = "yes"; then
5349
5350 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
5351
5352 fi
5353
5354 if test "$ac_cv_header_sys_procfs_h" = yes; then
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
5356 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
5357  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h.  */
5362
5363 #define _SYSCALL32
5364 /* Needed for new procfs interface on sparc-solaris.  */
5365 #define _STRUCTURED_PROC 1
5366 #include <sys/procfs.h>
5367 int
5368 main ()
5369 {
5370 lwpid_t avar
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376   bfd_cv_have_sys_procfs_type_lwpid_t=yes
5377 else
5378   bfd_cv_have_sys_procfs_type_lwpid_t=no
5379
5380 fi
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 fi
5383
5384  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5385
5386 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5387
5388  fi
5389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
5390 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
5391
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
5393 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
5394  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h.  */
5399
5400 #define _SYSCALL32
5401 /* Needed for new procfs interface on sparc-solaris.  */
5402 #define _STRUCTURED_PROC 1
5403 #include <sys/procfs.h>
5404 int
5405 main ()
5406 {
5407 psaddr_t avar
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413   bfd_cv_have_sys_procfs_type_psaddr_t=yes
5414 else
5415   bfd_cv_have_sys_procfs_type_psaddr_t=no
5416
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 fi
5420
5421  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5422
5423 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5424
5425  fi
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
5427 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
5428
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
5430 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
5431  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h.  */
5436
5437 #define _SYSCALL32
5438 /* Needed for new procfs interface on sparc-solaris.  */
5439 #define _STRUCTURED_PROC 1
5440 #include <sys/procfs.h>
5441 int
5442 main ()
5443 {
5444 prgregset_t avar
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450   bfd_cv_have_sys_procfs_type_prgregset_t=yes
5451 else
5452   bfd_cv_have_sys_procfs_type_prgregset_t=no
5453
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 fi
5457
5458  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5459
5460 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
5461
5462  fi
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
5464 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
5465
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
5467 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
5468  if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h.  */
5473
5474 #define _SYSCALL32
5475 /* Needed for new procfs interface on sparc-solaris.  */
5476 #define _STRUCTURED_PROC 1
5477 #include <sys/procfs.h>
5478 int
5479 main ()
5480 {
5481 elf_fpregset_t avar
5482   ;
5483   return 0;
5484 }
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487   bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
5488 else
5489   bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
5490
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 fi
5494
5495  if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
5496
5497 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
5498
5499  fi
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
5501 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
5502
5503 fi
5504
5505 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
5507 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
5508  if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h.  */
5513
5514 #include <thread_db.h>
5515 int
5516 main ()
5517 {
5518 lwpid_t avar
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524   gdbserver_cv_have_thread_db_type_lwpid_t=yes
5525 else
5526   gdbserver_cv_have_thread_db_type_lwpid_t=no
5527
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531
5532  if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
5533
5534 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5535
5536  fi
5537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
5538 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
5539
5540 fi
5541
5542 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
5543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
5544 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
5545  if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h.  */
5550
5551 #include <thread_db.h>
5552 int
5553 main ()
5554 {
5555 psaddr_t avar
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561   gdbserver_cv_have_thread_db_type_psaddr_t=yes
5562 else
5563   gdbserver_cv_have_thread_db_type_psaddr_t=no
5564
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 fi
5568
5569  if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
5570
5571 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5572
5573  fi
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
5575 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
5576
5577 fi
5578
5579 old_LIBS="$LIBS"
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5583   $as_echo_n "(cached) " >&6
5584 else
5585   ac_check_lib_save_LIBS=$LIBS
5586 LIBS="-ldl  $LIBS"
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h.  */
5589
5590 /* Override any GCC internal prototype to avoid an error.
5591    Use char because int might match the return type of a GCC
5592    builtin and then its argument prototype would still apply.  */
5593 #ifdef __cplusplus
5594 extern "C"
5595 #endif
5596 char dlopen ();
5597 int
5598 main ()
5599 {
5600 return dlopen ();
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 if ac_fn_c_try_link "$LINENO"; then :
5606   ac_cv_lib_dl_dlopen=yes
5607 else
5608   ac_cv_lib_dl_dlopen=no
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext \
5611     conftest$ac_exeext conftest.$ac_ext
5612 LIBS=$ac_check_lib_save_LIBS
5613 fi
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5615 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5616 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5617   cat >>confdefs.h <<_ACEOF
5618 #define HAVE_LIBDL 1
5619 _ACEOF
5620
5621   LIBS="-ldl $LIBS"
5622
5623 fi
5624
5625 LIBS="$old_LIBS"
5626
5627 srv_thread_depfiles=
5628 srv_libs=
5629
5630 if test "$srv_linux_thread_db" = "yes"; then
5631   if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5632     srv_libs="-ldl"
5633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
5634 $as_echo_n "checking for the dynamic export flag... " >&6; }
5635     old_LDFLAGS="$LDFLAGS"
5636     # Older GNU ld supports --export-dynamic but --dynamic-list may not be
5637     # supported there.
5638     RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
5639     LDFLAGS="$LDFLAGS $RDYNAMIC"
5640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h.  */
5642
5643 int
5644 main ()
5645 {
5646
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 if ac_fn_c_try_link "$LINENO"; then :
5652   found="-Wl,--dynamic-list"
5653                  RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
5654 else
5655   RDYNAMIC="-rdynamic"
5656                  LDFLAGS="$old_LDFLAGS $RDYNAMIC"
5657                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h.  */
5659
5660 int
5661 main ()
5662 {
5663
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 if ac_fn_c_try_link "$LINENO"; then :
5669   found="-rdynamic"
5670 else
5671   found="no"
5672                               RDYNAMIC=""
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext \
5675     conftest$ac_exeext conftest.$ac_ext
5676 fi
5677 rm -f core conftest.err conftest.$ac_objext \
5678     conftest$ac_exeext conftest.$ac_ext
5679
5680     LDFLAGS="$old_LDFLAGS"
5681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
5682 $as_echo "$found" >&6; }
5683   else
5684     srv_libs="-lthread_db"
5685   fi
5686
5687   srv_thread_depfiles="thread-db.o proc-service.o"
5688
5689 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
5690
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
5692 $as_echo_n "checking for TD_VERSION... " >&6; }
5693 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h.  */
5698 #include <thread_db.h>
5699 int
5700 main ()
5701 {
5702 TD_VERSION;
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708   gdbsrv_cv_have_td_version=yes
5709 else
5710   gdbsrv_cv_have_td_version=no
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
5715 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
5716   if test $gdbsrv_cv_have_td_version = yes; then
5717
5718 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
5719
5720   fi
5721 fi
5722
5723
5724 # Check whether --with-libthread-db was given.
5725 if test "${with_libthread_db+set}" = set; then :
5726   withval=$with_libthread_db; srv_libthread_db_path="${withval}"
5727   srv_libs="$srv_libthread_db_path"
5728
5729 fi
5730
5731
5732 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
5733
5734 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
5735
5736 fi
5737
5738 if test "$srv_xmlfiles" != ""; then
5739   srv_xmlbuiltin="xml-builtin.o"
5740
5741 $as_echo "#define USE_XML 1" >>confdefs.h
5742
5743
5744   tmp_xmlfiles=$srv_xmlfiles
5745   srv_xmlfiles=""
5746   for f in $tmp_xmlfiles; do
5747     srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
5748   done
5749 fi
5750
5751 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
5752 GDBSERVER_LIBS="$srv_libs"
5753
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
5755 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
5756 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
5757   $as_echo_n "(cached) " >&6
5758 else
5759
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h.  */
5762
5763 int
5764 main ()
5765 {
5766 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
5767   ;
5768   return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_link "$LINENO"; then :
5772   gdbsrv_cv_have_sync_builtins=yes
5773 else
5774   gdbsrv_cv_have_sync_builtins=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext \
5777     conftest$ac_exeext conftest.$ac_ext
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
5780 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
5781 if test $gdbsrv_cv_have_sync_builtins = yes; then
5782
5783 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
5784
5785 fi
5786
5787 saved_cflags="$CFLAGS"
5788 CFLAGS="$CFLAGS -fvisibility=hidden"
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h.  */
5791
5792 int
5793 main ()
5794 {
5795
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801   gdbsrv_cv_have_visibility_hidden=yes
5802 else
5803   gdbsrv_cv_have_visibility_hidden=no
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 CFLAGS="$saved_cflags"
5807
5808 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
5809 "
5810 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
5811   ac_have_decl=1
5812 else
5813   ac_have_decl=0
5814 fi
5815
5816 cat >>confdefs.h <<_ACEOF
5817 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
5818 _ACEOF
5819
5820
5821 if test "$cross_compiling" = yes; then :
5822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h.  */
5824 #include <sys/personality.h>
5825 int
5826 main ()
5827 {
5828
5829 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
5830 #       define ADDR_NO_RANDOMIZE 0x0040000
5831 #      endif
5832        /* Test the flag could be set and stays set.  */
5833        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5834        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5835            return 1
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 if ac_fn_c_try_link "$LINENO"; then :
5841   gdbsrv_cv_have_personality=true
5842 else
5843   gdbsrv_cv_have_personality=false
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext \
5846     conftest$ac_exeext conftest.$ac_ext
5847 else
5848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h.  */
5850 #include <sys/personality.h>
5851 int
5852 main ()
5853 {
5854
5855 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
5856 #       define ADDR_NO_RANDOMIZE 0x0040000
5857 #      endif
5858        /* Test the flag could be set and stays set.  */
5859        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5860        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5861            return 1
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 if ac_fn_c_try_run "$LINENO"; then :
5867   gdbsrv_cv_have_personality=true
5868 else
5869   gdbsrv_cv_have_personality=false
5870 fi
5871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5872   conftest.$ac_objext conftest.beam conftest.$ac_ext
5873 fi
5874
5875 if $gdbsrv_cv_have_personality
5876 then
5877
5878 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
5879
5880 fi
5881
5882
5883 IPA_DEPFILES=""
5884 extra_libraries=""
5885
5886 # check whether to enable the inprocess agent
5887 if test "$ipa_obj" != "" \
5888    -a "$gdbsrv_cv_have_sync_builtins" = yes \
5889    -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
5890    have_ipa=true
5891 else
5892    have_ipa=false
5893 fi
5894
5895 # Check whether --enable-inprocess-agent was given.
5896 if test "${enable_inprocess_agent+set}" = set; then :
5897   enableval=$enable_inprocess_agent; case "$enableval" in
5898   yes) want_ipa=true ;;
5899   no) want_ipa=false ;;
5900   *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
5901 esac
5902 else
5903   want_ipa=$have_ipa
5904 fi
5905
5906
5907 if $want_ipa ; then
5908    if $have_ipa ; then
5909      IPA_DEPFILES="$ipa_obj"
5910      extra_libraries="$extra_libraries libinproctrace.so"
5911    else
5912      as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
5913    fi
5914 fi
5915
5916
5917
5918
5919
5920
5921
5922
5923 GNULIB=build-gnulib-gdbserver/import
5924
5925 GNULIB_STDINT_H=
5926 if test x"$STDINT_H" != x; then
5927   GNULIB_STDINT_H=$GNULIB/$STDINT_H
5928 fi
5929
5930
5931 # For --version, we want to the print --host/--target exactly
5932 # as passed to configure.  But if those were not specified, then
5933 # print the canonical host/target.
5934 version_host=${host_alias:-$host}
5935 version_target=${target_alias:-$target}
5936
5937
5938
5939 ac_config_files="$ac_config_files Makefile"
5940
5941 ac_config_commands="$ac_config_commands default"
5942
5943 cat >confcache <<\_ACEOF
5944 # This file is a shell script that caches the results of configure
5945 # tests run on this system so they can be shared between configure
5946 # scripts and configure runs, see configure's option --config-cache.
5947 # It is not useful on other systems.  If it contains results you don't
5948 # want to keep, you may remove or edit it.
5949 #
5950 # config.status only pays attention to the cache file if you give it
5951 # the --recheck option to rerun configure.
5952 #
5953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5955 # following values.
5956
5957 _ACEOF
5958
5959 # The following way of writing the cache mishandles newlines in values,
5960 # but we know of no workaround that is simple, portable, and efficient.
5961 # So, we kill variables containing newlines.
5962 # Ultrix sh set writes to stderr and can't be redirected directly,
5963 # and sets the high bit in the cache file unless we assign to the vars.
5964 (
5965   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5966     eval ac_val=\$$ac_var
5967     case $ac_val in #(
5968     *${as_nl}*)
5969       case $ac_var in #(
5970       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5972       esac
5973       case $ac_var in #(
5974       _ | IFS | as_nl) ;; #(
5975       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5976       *) { eval $ac_var=; unset $ac_var;} ;;
5977       esac ;;
5978     esac
5979   done
5980
5981   (set) 2>&1 |
5982     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5983     *${as_nl}ac_space=\ *)
5984       # `set' does not quote correctly, so add quotes: double-quote
5985       # substitution turns \\\\ into \\, and sed turns \\ into \.
5986       sed -n \
5987         "s/'/'\\\\''/g;
5988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5989       ;; #(
5990     *)
5991       # `set' quotes correctly as required by POSIX, so do not add quotes.
5992       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5993       ;;
5994     esac |
5995     sort
5996 ) |
5997   sed '
5998      /^ac_cv_env_/b end
5999      t clear
6000      :clear
6001      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6002      t end
6003      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6004      :end' >>confcache
6005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6006   if test -w "$cache_file"; then
6007     test "x$cache_file" != "x/dev/null" &&
6008       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6009 $as_echo "$as_me: updating cache $cache_file" >&6;}
6010     cat confcache >$cache_file
6011   else
6012     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6013 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6014   fi
6015 fi
6016 rm -f confcache
6017
6018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6019 # Let make expand exec_prefix.
6020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6021
6022 DEFS=-DHAVE_CONFIG_H
6023
6024 ac_libobjs=
6025 ac_ltlibobjs=
6026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6027   # 1. Remove the extension, and $U if already installed.
6028   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6029   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6030   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6031   #    will be set to the directory where LIBOBJS objects are built.
6032   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6033   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6034 done
6035 LIBOBJS=$ac_libobjs
6036
6037 LTLIBOBJS=$ac_ltlibobjs
6038
6039
6040 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6041   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
6042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6043 fi
6044 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6045   as_fn_error "conditional \"GMAKE\" was never defined.
6046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6047 fi
6048
6049 : ${CONFIG_STATUS=./config.status}
6050 ac_write_fail=0
6051 ac_clean_files_save=$ac_clean_files
6052 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6054 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6055 as_write_fail=0
6056 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6057 #! $SHELL
6058 # Generated by $as_me.
6059 # Run this file to recreate the current configuration.
6060 # Compiler output produced by configure, useful for debugging
6061 # configure, is in config.log if it exists.
6062
6063 debug=false
6064 ac_cs_recheck=false
6065 ac_cs_silent=false
6066
6067 SHELL=\${CONFIG_SHELL-$SHELL}
6068 export SHELL
6069 _ASEOF
6070 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6071 ## -------------------- ##
6072 ## M4sh Initialization. ##
6073 ## -------------------- ##
6074
6075 # Be more Bourne compatible
6076 DUALCASE=1; export DUALCASE # for MKS sh
6077 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6078   emulate sh
6079   NULLCMD=:
6080   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6081   # is contrary to our usage.  Disable this feature.
6082   alias -g '${1+"$@"}'='"$@"'
6083   setopt NO_GLOB_SUBST
6084 else
6085   case `(set -o) 2>/dev/null` in #(
6086   *posix*) :
6087     set -o posix ;; #(
6088   *) :
6089      ;;
6090 esac
6091 fi
6092
6093
6094 as_nl='
6095 '
6096 export as_nl
6097 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6098 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6099 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6101 # Prefer a ksh shell builtin over an external printf program on Solaris,
6102 # but without wasting forks for bash or zsh.
6103 if test -z "$BASH_VERSION$ZSH_VERSION" \
6104     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6105   as_echo='print -r --'
6106   as_echo_n='print -rn --'
6107 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6108   as_echo='printf %s\n'
6109   as_echo_n='printf %s'
6110 else
6111   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6112     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6113     as_echo_n='/usr/ucb/echo -n'
6114   else
6115     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6116     as_echo_n_body='eval
6117       arg=$1;
6118       case $arg in #(
6119       *"$as_nl"*)
6120         expr "X$arg" : "X\\(.*\\)$as_nl";
6121         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6122       esac;
6123       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6124     '
6125     export as_echo_n_body
6126     as_echo_n='sh -c $as_echo_n_body as_echo'
6127   fi
6128   export as_echo_body
6129   as_echo='sh -c $as_echo_body as_echo'
6130 fi
6131
6132 # The user is always right.
6133 if test "${PATH_SEPARATOR+set}" != set; then
6134   PATH_SEPARATOR=:
6135   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6136     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6137       PATH_SEPARATOR=';'
6138   }
6139 fi
6140
6141
6142 # IFS
6143 # We need space, tab and new line, in precisely that order.  Quoting is
6144 # there to prevent editors from complaining about space-tab.
6145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6146 # splitting by setting IFS to empty value.)
6147 IFS=" ""        $as_nl"
6148
6149 # Find who we are.  Look in the path if we contain no directory separator.
6150 case $0 in #((
6151   *[\\/]* ) as_myself=$0 ;;
6152   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6158   done
6159 IFS=$as_save_IFS
6160
6161      ;;
6162 esac
6163 # We did not find ourselves, most probably we were run as `sh COMMAND'
6164 # in which case we are not to be found in the path.
6165 if test "x$as_myself" = x; then
6166   as_myself=$0
6167 fi
6168 if test ! -f "$as_myself"; then
6169   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6170   exit 1
6171 fi
6172
6173 # Unset variables that we do not need and which cause bugs (e.g. in
6174 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6175 # suppresses any "Segmentation fault" message there.  '((' could
6176 # trigger a bug in pdksh 5.2.14.
6177 for as_var in BASH_ENV ENV MAIL MAILPATH
6178 do eval test x\${$as_var+set} = xset \
6179   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6180 done
6181 PS1='$ '
6182 PS2='> '
6183 PS4='+ '
6184
6185 # NLS nuisances.
6186 LC_ALL=C
6187 export LC_ALL
6188 LANGUAGE=C
6189 export LANGUAGE
6190
6191 # CDPATH.
6192 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6193
6194
6195 # as_fn_error ERROR [LINENO LOG_FD]
6196 # ---------------------------------
6197 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6198 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6199 # script with status $?, using 1 if that was 0.
6200 as_fn_error ()
6201 {
6202   as_status=$?; test $as_status -eq 0 && as_status=1
6203   if test "$3"; then
6204     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6205     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6206   fi
6207   $as_echo "$as_me: error: $1" >&2
6208   as_fn_exit $as_status
6209 } # as_fn_error
6210
6211
6212 # as_fn_set_status STATUS
6213 # -----------------------
6214 # Set $? to STATUS, without forking.
6215 as_fn_set_status ()
6216 {
6217   return $1
6218 } # as_fn_set_status
6219
6220 # as_fn_exit STATUS
6221 # -----------------
6222 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6223 as_fn_exit ()
6224 {
6225   set +e
6226   as_fn_set_status $1
6227   exit $1
6228 } # as_fn_exit
6229
6230 # as_fn_unset VAR
6231 # ---------------
6232 # Portably unset VAR.
6233 as_fn_unset ()
6234 {
6235   { eval $1=; unset $1;}
6236 }
6237 as_unset=as_fn_unset
6238 # as_fn_append VAR VALUE
6239 # ----------------------
6240 # Append the text in VALUE to the end of the definition contained in VAR. Take
6241 # advantage of any shell optimizations that allow amortized linear growth over
6242 # repeated appends, instead of the typical quadratic growth present in naive
6243 # implementations.
6244 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6245   eval 'as_fn_append ()
6246   {
6247     eval $1+=\$2
6248   }'
6249 else
6250   as_fn_append ()
6251   {
6252     eval $1=\$$1\$2
6253   }
6254 fi # as_fn_append
6255
6256 # as_fn_arith ARG...
6257 # ------------------
6258 # Perform arithmetic evaluation on the ARGs, and store the result in the
6259 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6260 # must be portable across $(()) and expr.
6261 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6262   eval 'as_fn_arith ()
6263   {
6264     as_val=$(( $* ))
6265   }'
6266 else
6267   as_fn_arith ()
6268   {
6269     as_val=`expr "$@" || test $? -eq 1`
6270   }
6271 fi # as_fn_arith
6272
6273
6274 if expr a : '\(a\)' >/dev/null 2>&1 &&
6275    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6276   as_expr=expr
6277 else
6278   as_expr=false
6279 fi
6280
6281 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6282   as_basename=basename
6283 else
6284   as_basename=false
6285 fi
6286
6287 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6288   as_dirname=dirname
6289 else
6290   as_dirname=false
6291 fi
6292
6293 as_me=`$as_basename -- "$0" ||
6294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6295          X"$0" : 'X\(//\)$' \| \
6296          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6297 $as_echo X/"$0" |
6298     sed '/^.*\/\([^/][^/]*\)\/*$/{
6299             s//\1/
6300             q
6301           }
6302           /^X\/\(\/\/\)$/{
6303             s//\1/
6304             q
6305           }
6306           /^X\/\(\/\).*/{
6307             s//\1/
6308             q
6309           }
6310           s/.*/./; q'`
6311
6312 # Avoid depending upon Character Ranges.
6313 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6314 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6315 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6316 as_cr_digits='0123456789'
6317 as_cr_alnum=$as_cr_Letters$as_cr_digits
6318
6319 ECHO_C= ECHO_N= ECHO_T=
6320 case `echo -n x` in #(((((
6321 -n*)
6322   case `echo 'xy\c'` in
6323   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6324   xy)  ECHO_C='\c';;
6325   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6326        ECHO_T=' ';;
6327   esac;;
6328 *)
6329   ECHO_N='-n';;
6330 esac
6331
6332 rm -f conf$$ conf$$.exe conf$$.file
6333 if test -d conf$$.dir; then
6334   rm -f conf$$.dir/conf$$.file
6335 else
6336   rm -f conf$$.dir
6337   mkdir conf$$.dir 2>/dev/null
6338 fi
6339 if (echo >conf$$.file) 2>/dev/null; then
6340   if ln -s conf$$.file conf$$ 2>/dev/null; then
6341     as_ln_s='ln -s'
6342     # ... but there are two gotchas:
6343     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6344     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6345     # In both cases, we have to default to `cp -p'.
6346     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6347       as_ln_s='cp -p'
6348   elif ln conf$$.file conf$$ 2>/dev/null; then
6349     as_ln_s=ln
6350   else
6351     as_ln_s='cp -p'
6352   fi
6353 else
6354   as_ln_s='cp -p'
6355 fi
6356 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6357 rmdir conf$$.dir 2>/dev/null
6358
6359
6360 # as_fn_mkdir_p
6361 # -------------
6362 # Create "$as_dir" as a directory, including parents if necessary.
6363 as_fn_mkdir_p ()
6364 {
6365
6366   case $as_dir in #(
6367   -*) as_dir=./$as_dir;;
6368   esac
6369   test -d "$as_dir" || eval $as_mkdir_p || {
6370     as_dirs=
6371     while :; do
6372       case $as_dir in #(
6373       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6374       *) as_qdir=$as_dir;;
6375       esac
6376       as_dirs="'$as_qdir' $as_dirs"
6377       as_dir=`$as_dirname -- "$as_dir" ||
6378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6379          X"$as_dir" : 'X\(//\)[^/]' \| \
6380          X"$as_dir" : 'X\(//\)$' \| \
6381          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6382 $as_echo X"$as_dir" |
6383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6384             s//\1/
6385             q
6386           }
6387           /^X\(\/\/\)[^/].*/{
6388             s//\1/
6389             q
6390           }
6391           /^X\(\/\/\)$/{
6392             s//\1/
6393             q
6394           }
6395           /^X\(\/\).*/{
6396             s//\1/
6397             q
6398           }
6399           s/.*/./; q'`
6400       test -d "$as_dir" && break
6401     done
6402     test -z "$as_dirs" || eval "mkdir $as_dirs"
6403   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6404
6405
6406 } # as_fn_mkdir_p
6407 if mkdir -p . 2>/dev/null; then
6408   as_mkdir_p='mkdir -p "$as_dir"'
6409 else
6410   test -d ./-p && rmdir ./-p
6411   as_mkdir_p=false
6412 fi
6413
6414 if test -x / >/dev/null 2>&1; then
6415   as_test_x='test -x'
6416 else
6417   if ls -dL / >/dev/null 2>&1; then
6418     as_ls_L_option=L
6419   else
6420     as_ls_L_option=
6421   fi
6422   as_test_x='
6423     eval sh -c '\''
6424       if test -d "$1"; then
6425         test -d "$1/.";
6426       else
6427         case $1 in #(
6428         -*)set "./$1";;
6429         esac;
6430         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6431         ???[sx]*):;;*)false;;esac;fi
6432     '\'' sh
6433   '
6434 fi
6435 as_executable_p=$as_test_x
6436
6437 # Sed expression to map a string onto a valid CPP name.
6438 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6439
6440 # Sed expression to map a string onto a valid variable name.
6441 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6442
6443
6444 exec 6>&1
6445 ## ----------------------------------- ##
6446 ## Main body of $CONFIG_STATUS script. ##
6447 ## ----------------------------------- ##
6448 _ASEOF
6449 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6450
6451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6452 # Save the log message, to keep $0 and so on meaningful, and to
6453 # report actual input values of CONFIG_FILES etc. instead of their
6454 # values after options handling.
6455 ac_log="
6456 This file was extended by $as_me, which was
6457 generated by GNU Autoconf 2.64.  Invocation command line was
6458
6459   CONFIG_FILES    = $CONFIG_FILES
6460   CONFIG_HEADERS  = $CONFIG_HEADERS
6461   CONFIG_LINKS    = $CONFIG_LINKS
6462   CONFIG_COMMANDS = $CONFIG_COMMANDS
6463   $ $0 $@
6464
6465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6466 "
6467
6468 _ACEOF
6469
6470 case $ac_config_files in *"
6471 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6472 esac
6473
6474 case $ac_config_headers in *"
6475 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6476 esac
6477
6478
6479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6480 # Files that config.status was made for.
6481 config_files="$ac_config_files"
6482 config_headers="$ac_config_headers"
6483 config_commands="$ac_config_commands"
6484
6485 _ACEOF
6486
6487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6488 ac_cs_usage="\
6489 \`$as_me' instantiates files and other configuration actions
6490 from templates according to the current configuration.  Unless the files
6491 and actions are specified as TAGs, all are instantiated by default.
6492
6493 Usage: $0 [OPTION]... [TAG]...
6494
6495   -h, --help       print this help, then exit
6496   -V, --version    print version number and configuration settings, then exit
6497   -q, --quiet, --silent
6498                    do not print progress messages
6499   -d, --debug      don't remove temporary files
6500       --recheck    update $as_me by reconfiguring in the same conditions
6501       --file=FILE[:TEMPLATE]
6502                    instantiate the configuration file FILE
6503       --header=FILE[:TEMPLATE]
6504                    instantiate the configuration header FILE
6505
6506 Configuration files:
6507 $config_files
6508
6509 Configuration headers:
6510 $config_headers
6511
6512 Configuration commands:
6513 $config_commands
6514
6515 Report bugs to the package provider."
6516
6517 _ACEOF
6518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6519 ac_cs_version="\\
6520 config.status
6521 configured by $0, generated by GNU Autoconf 2.64,
6522   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6523
6524 Copyright (C) 2009 Free Software Foundation, Inc.
6525 This config.status script is free software; the Free Software Foundation
6526 gives unlimited permission to copy, distribute and modify it."
6527
6528 ac_pwd='$ac_pwd'
6529 srcdir='$srcdir'
6530 INSTALL='$INSTALL'
6531 test -n "\$AWK" || AWK=awk
6532 _ACEOF
6533
6534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6535 # The default lists apply if the user does not specify any file.
6536 ac_need_defaults=:
6537 while test $# != 0
6538 do
6539   case $1 in
6540   --*=*)
6541     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6542     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6543     ac_shift=:
6544     ;;
6545   *)
6546     ac_option=$1
6547     ac_optarg=$2
6548     ac_shift=shift
6549     ;;
6550   esac
6551
6552   case $ac_option in
6553   # Handling of the options.
6554   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6555     ac_cs_recheck=: ;;
6556   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6557     $as_echo "$ac_cs_version"; exit ;;
6558   --debug | --debu | --deb | --de | --d | -d )
6559     debug=: ;;
6560   --file | --fil | --fi | --f )
6561     $ac_shift
6562     case $ac_optarg in
6563     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6564     esac
6565     as_fn_append CONFIG_FILES " '$ac_optarg'"
6566     ac_need_defaults=false;;
6567   --header | --heade | --head | --hea )
6568     $ac_shift
6569     case $ac_optarg in
6570     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6571     esac
6572     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6573     ac_need_defaults=false;;
6574   --he | --h)
6575     # Conflict between --help and --header
6576     as_fn_error "ambiguous option: \`$1'
6577 Try \`$0 --help' for more information.";;
6578   --help | --hel | -h )
6579     $as_echo "$ac_cs_usage"; exit ;;
6580   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6581   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6582     ac_cs_silent=: ;;
6583
6584   # This is an error.
6585   -*) as_fn_error "unrecognized option: \`$1'
6586 Try \`$0 --help' for more information." ;;
6587
6588   *) as_fn_append ac_config_targets " $1"
6589      ac_need_defaults=false ;;
6590
6591   esac
6592   shift
6593 done
6594
6595 ac_configure_extra_args=
6596
6597 if $ac_cs_silent; then
6598   exec 6>/dev/null
6599   ac_configure_extra_args="$ac_configure_extra_args --silent"
6600 fi
6601
6602 _ACEOF
6603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6604 if \$ac_cs_recheck; then
6605   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6606   shift
6607   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6608   CONFIG_SHELL='$SHELL'
6609   export CONFIG_SHELL
6610   exec "\$@"
6611 fi
6612
6613 _ACEOF
6614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6615 exec 5>>config.log
6616 {
6617   echo
6618   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6619 ## Running $as_me. ##
6620 _ASBOX
6621   $as_echo "$ac_log"
6622 } >&5
6623
6624 _ACEOF
6625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6626 #
6627 # INIT-COMMANDS
6628 #
6629 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6630
6631 _ACEOF
6632
6633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6634
6635 # Handling of arguments.
6636 for ac_config_target in $ac_config_targets
6637 do
6638   case $ac_config_target in
6639     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6640     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6641     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6642     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6643
6644   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6645   esac
6646 done
6647
6648
6649 # If the user did not use the arguments to specify the items to instantiate,
6650 # then the envvar interface is used.  Set only those that are not.
6651 # We use the long form for the default assignment because of an extremely
6652 # bizarre bug on SunOS 4.1.3.
6653 if $ac_need_defaults; then
6654   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6655   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6656   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6657 fi
6658
6659 # Have a temporary directory for convenience.  Make it in the build tree
6660 # simply because there is no reason against having it here, and in addition,
6661 # creating and moving files from /tmp can sometimes cause problems.
6662 # Hook for its removal unless debugging.
6663 # Note that there is a small window in which the directory will not be cleaned:
6664 # after its creation but before its name has been assigned to `$tmp'.
6665 $debug ||
6666 {
6667   tmp=
6668   trap 'exit_status=$?
6669   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6670 ' 0
6671   trap 'as_fn_exit 1' 1 2 13 15
6672 }
6673 # Create a (secure) tmp directory for tmp files.
6674
6675 {
6676   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6677   test -n "$tmp" && test -d "$tmp"
6678 }  ||
6679 {
6680   tmp=./conf$$-$RANDOM
6681   (umask 077 && mkdir "$tmp")
6682 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6683
6684 # Set up the scripts for CONFIG_FILES section.
6685 # No need to generate them if there are no CONFIG_FILES.
6686 # This happens for instance with `./config.status config.h'.
6687 if test -n "$CONFIG_FILES"; then
6688
6689
6690 ac_cr=`echo X | tr X '\015'`
6691 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6692 # But we know of no other shell where ac_cr would be empty at this
6693 # point, so we can use a bashism as a fallback.
6694 if test "x$ac_cr" = x; then
6695   eval ac_cr=\$\'\\r\'
6696 fi
6697 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6698 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6699   ac_cs_awk_cr='\r'
6700 else
6701   ac_cs_awk_cr=$ac_cr
6702 fi
6703
6704 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6705 _ACEOF
6706
6707
6708 {
6709   echo "cat >conf$$subs.awk <<_ACEOF" &&
6710   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6711   echo "_ACEOF"
6712 } >conf$$subs.sh ||
6713   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6714 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6715 ac_delim='%!_!# '
6716 for ac_last_try in false false false false false :; do
6717   . ./conf$$subs.sh ||
6718     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6719
6720   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6721   if test $ac_delim_n = $ac_delim_num; then
6722     break
6723   elif $ac_last_try; then
6724     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6725   else
6726     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6727   fi
6728 done
6729 rm -f conf$$subs.sh
6730
6731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6732 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6733 _ACEOF
6734 sed -n '
6735 h
6736 s/^/S["/; s/!.*/"]=/
6737 p
6738 g
6739 s/^[^!]*!//
6740 :repl
6741 t repl
6742 s/'"$ac_delim"'$//
6743 t delim
6744 :nl
6745 h
6746 s/\(.\{148\}\).*/\1/
6747 t more1
6748 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6749 p
6750 n
6751 b repl
6752 :more1
6753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6754 p
6755 g
6756 s/.\{148\}//
6757 t nl
6758 :delim
6759 h
6760 s/\(.\{148\}\).*/\1/
6761 t more2
6762 s/["\\]/\\&/g; s/^/"/; s/$/"/
6763 p
6764 b
6765 :more2
6766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6767 p
6768 g
6769 s/.\{148\}//
6770 t delim
6771 ' <conf$$subs.awk | sed '
6772 /^[^""]/{
6773   N
6774   s/\n//
6775 }
6776 ' >>$CONFIG_STATUS || ac_write_fail=1
6777 rm -f conf$$subs.awk
6778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6779 _ACAWK
6780 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6781   for (key in S) S_is_set[key] = 1
6782   FS = "\a"
6783
6784 }
6785 {
6786   line = $ 0
6787   nfields = split(line, field, "@")
6788   substed = 0
6789   len = length(field[1])
6790   for (i = 2; i < nfields; i++) {
6791     key = field[i]
6792     keylen = length(key)
6793     if (S_is_set[key]) {
6794       value = S[key]
6795       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6796       len += length(value) + length(field[++i])
6797       substed = 1
6798     } else
6799       len += 1 + keylen
6800   }
6801
6802   print line
6803 }
6804
6805 _ACAWK
6806 _ACEOF
6807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6808 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6809   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6810 else
6811   cat
6812 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6813   || as_fn_error "could not setup config files machinery" "$LINENO" 5
6814 _ACEOF
6815
6816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6818 # trailing colons and then remove the whole line if VPATH becomes empty
6819 # (actually we leave an empty line to preserve line numbers).
6820 if test "x$srcdir" = x.; then
6821   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6822 s/:*\$(srcdir):*/:/
6823 s/:*\${srcdir}:*/:/
6824 s/:*@srcdir@:*/:/
6825 s/^\([^=]*=[     ]*\):*/\1/
6826 s/:*$//
6827 s/^[^=]*=[       ]*$//
6828 }'
6829 fi
6830
6831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6832 fi # test -n "$CONFIG_FILES"
6833
6834 # Set up the scripts for CONFIG_HEADERS section.
6835 # No need to generate them if there are no CONFIG_HEADERS.
6836 # This happens for instance with `./config.status Makefile'.
6837 if test -n "$CONFIG_HEADERS"; then
6838 cat >"$tmp/defines.awk" <<\_ACAWK ||
6839 BEGIN {
6840 _ACEOF
6841
6842 # Transform confdefs.h into an awk script `defines.awk', embedded as
6843 # here-document in config.status, that substitutes the proper values into
6844 # config.h.in to produce config.h.
6845
6846 # Create a delimiter string that does not exist in confdefs.h, to ease
6847 # handling of long lines.
6848 ac_delim='%!_!# '
6849 for ac_last_try in false false :; do
6850   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6851   if test -z "$ac_t"; then
6852     break
6853   elif $ac_last_try; then
6854     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6855   else
6856     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6857   fi
6858 done
6859
6860 # For the awk script, D is an array of macro values keyed by name,
6861 # likewise P contains macro parameters if any.  Preserve backslash
6862 # newline sequences.
6863
6864 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6865 sed -n '
6866 s/.\{148\}/&'"$ac_delim"'/g
6867 t rset
6868 :rset
6869 s/^[     ]*#[    ]*define[       ][      ]*/ /
6870 t def
6871 d
6872 :def
6873 s/\\$//
6874 t bsnl
6875 s/["\\]/\\&/g
6876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6877 D["\1"]=" \3"/p
6878 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6879 d
6880 :bsnl
6881 s/["\\]/\\&/g
6882 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6883 D["\1"]=" \3\\\\\\n"\\/p
6884 t cont
6885 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6886 t cont
6887 d
6888 :cont
6889 n
6890 s/.\{148\}/&'"$ac_delim"'/g
6891 t clear
6892 :clear
6893 s/\\$//
6894 t bsnlc
6895 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6896 d
6897 :bsnlc
6898 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6899 b cont
6900 ' <confdefs.h | sed '
6901 s/'"$ac_delim"'/"\\\
6902 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6903
6904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6905   for (key in D) D_is_set[key] = 1
6906   FS = "\a"
6907 }
6908 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6909   line = \$ 0
6910   split(line, arg, " ")
6911   if (arg[1] == "#") {
6912     defundef = arg[2]
6913     mac1 = arg[3]
6914   } else {
6915     defundef = substr(arg[1], 2)
6916     mac1 = arg[2]
6917   }
6918   split(mac1, mac2, "(") #)
6919   macro = mac2[1]
6920   prefix = substr(line, 1, index(line, defundef) - 1)
6921   if (D_is_set[macro]) {
6922     # Preserve the white space surrounding the "#".
6923     print prefix "define", macro P[macro] D[macro]
6924     next
6925   } else {
6926     # Replace #undef with comments.  This is necessary, for example,
6927     # in the case of _POSIX_SOURCE, which is predefined and required
6928     # on some systems where configure will not decide to define it.
6929     if (defundef == "undef") {
6930       print "/*", prefix defundef, macro, "*/"
6931       next
6932     }
6933   }
6934 }
6935 { print }
6936 _ACAWK
6937 _ACEOF
6938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6939   as_fn_error "could not setup config headers machinery" "$LINENO" 5
6940 fi # test -n "$CONFIG_HEADERS"
6941
6942
6943 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6944 shift
6945 for ac_tag
6946 do
6947   case $ac_tag in
6948   :[FHLC]) ac_mode=$ac_tag; continue;;
6949   esac
6950   case $ac_mode$ac_tag in
6951   :[FHL]*:*);;
6952   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6953   :[FH]-) ac_tag=-:-;;
6954   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6955   esac
6956   ac_save_IFS=$IFS
6957   IFS=:
6958   set x $ac_tag
6959   IFS=$ac_save_IFS
6960   shift
6961   ac_file=$1
6962   shift
6963
6964   case $ac_mode in
6965   :L) ac_source=$1;;
6966   :[FH])
6967     ac_file_inputs=
6968     for ac_f
6969     do
6970       case $ac_f in
6971       -) ac_f="$tmp/stdin";;
6972       *) # Look for the file first in the build tree, then in the source tree
6973          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6974          # because $ac_f cannot contain `:'.
6975          test -f "$ac_f" ||
6976            case $ac_f in
6977            [\\/$]*) false;;
6978            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6979            esac ||
6980            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6981       esac
6982       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6983       as_fn_append ac_file_inputs " '$ac_f'"
6984     done
6985
6986     # Let's still pretend it is `configure' which instantiates (i.e., don't
6987     # use $as_me), people would be surprised to read:
6988     #    /* config.h.  Generated by config.status.  */
6989     configure_input='Generated from '`
6990           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6991         `' by configure.'
6992     if test x"$ac_file" != x-; then
6993       configure_input="$ac_file.  $configure_input"
6994       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6995 $as_echo "$as_me: creating $ac_file" >&6;}
6996     fi
6997     # Neutralize special characters interpreted by sed in replacement strings.
6998     case $configure_input in #(
6999     *\&* | *\|* | *\\* )
7000        ac_sed_conf_input=`$as_echo "$configure_input" |
7001        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7002     *) ac_sed_conf_input=$configure_input;;
7003     esac
7004
7005     case $ac_tag in
7006     *:-:* | *:-) cat >"$tmp/stdin" \
7007       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7008     esac
7009     ;;
7010   esac
7011
7012   ac_dir=`$as_dirname -- "$ac_file" ||
7013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7014          X"$ac_file" : 'X\(//\)[^/]' \| \
7015          X"$ac_file" : 'X\(//\)$' \| \
7016          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7017 $as_echo X"$ac_file" |
7018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7019             s//\1/
7020             q
7021           }
7022           /^X\(\/\/\)[^/].*/{
7023             s//\1/
7024             q
7025           }
7026           /^X\(\/\/\)$/{
7027             s//\1/
7028             q
7029           }
7030           /^X\(\/\).*/{
7031             s//\1/
7032             q
7033           }
7034           s/.*/./; q'`
7035   as_dir="$ac_dir"; as_fn_mkdir_p
7036   ac_builddir=.
7037
7038 case "$ac_dir" in
7039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7040 *)
7041   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7042   # A ".." for each directory in $ac_dir_suffix.
7043   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7044   case $ac_top_builddir_sub in
7045   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7046   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7047   esac ;;
7048 esac
7049 ac_abs_top_builddir=$ac_pwd
7050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7051 # for backward compatibility:
7052 ac_top_builddir=$ac_top_build_prefix
7053
7054 case $srcdir in
7055   .)  # We are building in place.
7056     ac_srcdir=.
7057     ac_top_srcdir=$ac_top_builddir_sub
7058     ac_abs_top_srcdir=$ac_pwd ;;
7059   [\\/]* | ?:[\\/]* )  # Absolute name.
7060     ac_srcdir=$srcdir$ac_dir_suffix;
7061     ac_top_srcdir=$srcdir
7062     ac_abs_top_srcdir=$srcdir ;;
7063   *) # Relative name.
7064     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7065     ac_top_srcdir=$ac_top_build_prefix$srcdir
7066     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7067 esac
7068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7069
7070
7071   case $ac_mode in
7072   :F)
7073   #
7074   # CONFIG_FILE
7075   #
7076
7077   case $INSTALL in
7078   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7079   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7080   esac
7081 _ACEOF
7082
7083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7084 # If the template does not know about datarootdir, expand it.
7085 # FIXME: This hack should be removed a few years after 2.60.
7086 ac_datarootdir_hack=; ac_datarootdir_seen=
7087 ac_sed_dataroot='
7088 /datarootdir/ {
7089   p
7090   q
7091 }
7092 /@datadir@/p
7093 /@docdir@/p
7094 /@infodir@/p
7095 /@localedir@/p
7096 /@mandir@/p'
7097 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7098 *datarootdir*) ac_datarootdir_seen=yes;;
7099 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7101 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7102 _ACEOF
7103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7104   ac_datarootdir_hack='
7105   s&@datadir@&$datadir&g
7106   s&@docdir@&$docdir&g
7107   s&@infodir@&$infodir&g
7108   s&@localedir@&$localedir&g
7109   s&@mandir@&$mandir&g
7110   s&\\\${datarootdir}&$datarootdir&g' ;;
7111 esac
7112 _ACEOF
7113
7114 # Neutralize VPATH when `$srcdir' = `.'.
7115 # Shell code in configure.ac might set extrasub.
7116 # FIXME: do we really want to maintain this feature?
7117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7118 ac_sed_extra="$ac_vpsub
7119 $extrasub
7120 _ACEOF
7121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7122 :t
7123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7124 s|@configure_input@|$ac_sed_conf_input|;t t
7125 s&@top_builddir@&$ac_top_builddir_sub&;t t
7126 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7127 s&@srcdir@&$ac_srcdir&;t t
7128 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7129 s&@top_srcdir@&$ac_top_srcdir&;t t
7130 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7131 s&@builddir@&$ac_builddir&;t t
7132 s&@abs_builddir@&$ac_abs_builddir&;t t
7133 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7134 s&@INSTALL@&$ac_INSTALL&;t t
7135 $ac_datarootdir_hack
7136 "
7137 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7138   || as_fn_error "could not create $ac_file" "$LINENO" 5
7139
7140 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7141   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7142   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7144 which seems to be undefined.  Please make sure it is defined." >&5
7145 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7146 which seems to be undefined.  Please make sure it is defined." >&2;}
7147
7148   rm -f "$tmp/stdin"
7149   case $ac_file in
7150   -) cat "$tmp/out" && rm -f "$tmp/out";;
7151   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7152   esac \
7153   || as_fn_error "could not create $ac_file" "$LINENO" 5
7154  ;;
7155   :H)
7156   #
7157   # CONFIG_HEADER
7158   #
7159   if test x"$ac_file" != x-; then
7160     {
7161       $as_echo "/* $configure_input  */" \
7162       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7163     } >"$tmp/config.h" \
7164       || as_fn_error "could not create $ac_file" "$LINENO" 5
7165     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7166       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7167 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7168     else
7169       rm -f "$ac_file"
7170       mv "$tmp/config.h" "$ac_file" \
7171         || as_fn_error "could not create $ac_file" "$LINENO" 5
7172     fi
7173   else
7174     $as_echo "/* $configure_input  */" \
7175       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7176       || as_fn_error "could not create -" "$LINENO" 5
7177   fi
7178  ;;
7179
7180   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7181 $as_echo "$as_me: executing $ac_file commands" >&6;}
7182  ;;
7183   esac
7184
7185
7186   case $ac_file$ac_mode in
7187     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7188     "default":C) case x$CONFIG_HEADERS in
7189 xconfig.h:config.in)
7190 echo > stamp-h ;;
7191 esac
7192  ;;
7193
7194   esac
7195 done # for ac_tag
7196
7197
7198 as_fn_exit 0
7199 _ACEOF
7200 ac_clean_files=$ac_clean_files_save
7201
7202 test $ac_write_fail = 0 ||
7203   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7204
7205
7206 # configure is writing to config.log, and then calls config.status.
7207 # config.status does its own redirection, appending to config.log.
7208 # Unfortunately, on DOS this fails, as config.log is still kept open
7209 # by configure, so config.status won't be able to write to it; its
7210 # output is simply discarded.  So we exec the FD to /dev/null,
7211 # effectively closing config.log, so it can be properly (re)opened and
7212 # appended to by config.status.  When coming back to configure, we
7213 # need to make the FD available again.
7214 if test "$no_create" != yes; then
7215   ac_cs_success=:
7216   ac_config_status_args=
7217   test "$silent" = yes &&
7218     ac_config_status_args="$ac_config_status_args --quiet"
7219   exec 5>/dev/null
7220   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7221   exec 5>>config.log
7222   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7223   # would make configure fail if this is the last instruction.
7224   $ac_cs_success || as_fn_exit $?
7225 fi
7226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7229 fi
7230