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