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