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