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