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