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