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