gdb/testsuite: allowed for function_range to deal with mangled functions
[binutils-gdb.git] / gold / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='gold'
579 PACKAGE_TARNAME='gold'
580 PACKAGE_VERSION='0.1'
581 PACKAGE_STRING='gold 0.1'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="gold.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 MAINT
626 MAINTAINER_MODE_FALSE
627 MAINTAINER_MODE_TRUE
628 DLOPEN_LIBS
629 CXXCPP
630 HAVE_NO_USE_LINKER_PLUGIN_FALSE
631 HAVE_NO_USE_LINKER_PLUGIN_TRUE
632 HAVE_PUBNAMES_FALSE
633 HAVE_PUBNAMES_TRUE
634 JANSSON_LIBS
635 JANSSON_CFLAGS
636 PKG_CONFIG_LIBDIR
637 PKG_CONFIG_PATH
638 PKG_CONFIG
639 THREADS_FALSE
640 THREADS_TRUE
641 PTHREAD_CFLAGS
642 PTHREAD_LIBS
643 PTHREAD_CC
644 ax_pthread_config
645 SED
646 zlibinc
647 zlibdir
648 LIBOBJS
649 LFS_CFLAGS
650 GOLD_LDADD
651 GOLD_LDFLAGS
652 WARN_CXXFLAGS
653 WARN_WRITE_STRINGS
654 NO_WERROR
655 WARN_CFLAGS_FOR_BUILD
656 WARN_CFLAGS
657 IFUNC_STATIC_FALSE
658 IFUNC_STATIC_TRUE
659 IFUNC_FALSE
660 IFUNC_TRUE
661 RANDOM_SEED_CFLAGS
662 TLS_DESCRIPTORS_FALSE
663 TLS_DESCRIPTORS_TRUE
664 TLS_GNU2_DIALECT_FALSE
665 TLS_GNU2_DIALECT_TRUE
666 OMP_SUPPORT_FALSE
667 OMP_SUPPORT_TRUE
668 STATIC_TLS_FALSE
669 STATIC_TLS_TRUE
670 TLS_FALSE
671 TLS_TRUE
672 MERGE_CONSTANTS_FLAG
673 CFLAGS_CF_PROTECTION_FALSE
674 CFLAGS_CF_PROTECTION_TRUE
675 GCC9_FALSE
676 GCC9_TRUE
677 MCMODEL_MEDIUM_FALSE
678 MCMODEL_MEDIUM_TRUE
679 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
680 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
681 HAVE_STATIC_FALSE
682 HAVE_STATIC_TRUE
683 NATIVE_OR_CROSS_LINKER_FALSE
684 NATIVE_OR_CROSS_LINKER_TRUE
685 GCC_FALSE
686 GCC_TRUE
687 NATIVE_LINKER_FALSE
688 NATIVE_LINKER_TRUE
689 MSGMERGE
690 MSGFMT
691 MKINSTALLDIRS
692 CATOBJEXT
693 GENCAT
694 INSTOBJEXT
695 DATADIRNAME
696 CATALOGS
697 POSUB
698 GMSGFMT
699 XGETTEXT
700 INCINTL
701 LIBINTL_DEP
702 LIBINTL
703 USE_NLS
704 LN_S
705 RANLIB
706 YFLAGS
707 YACC
708 am__fastdepCXX_FALSE
709 am__fastdepCXX_TRUE
710 CXXDEPMODE
711 ac_ct_CXX
712 CXXFLAGS
713 CXX
714 NM
715 TARGETOBJS
716 DEFAULT_TARGET
717 DEFAULT_TARGET_MIPS_FALSE
718 DEFAULT_TARGET_MIPS_TRUE
719 DEFAULT_TARGET_TILEGX_FALSE
720 DEFAULT_TARGET_TILEGX_TRUE
721 DEFAULT_TARGET_X86_64_OR_X32_FALSE
722 DEFAULT_TARGET_X86_64_OR_X32_TRUE
723 DEFAULT_TARGET_X32_FALSE
724 DEFAULT_TARGET_X32_TRUE
725 DEFAULT_TARGET_X86_64_FALSE
726 DEFAULT_TARGET_X86_64_TRUE
727 DEFAULT_TARGET_S390_FALSE
728 DEFAULT_TARGET_S390_TRUE
729 DEFAULT_TARGET_SPARC_FALSE
730 DEFAULT_TARGET_SPARC_TRUE
731 DEFAULT_TARGET_POWERPC_FALSE
732 DEFAULT_TARGET_POWERPC_TRUE
733 DEFAULT_TARGET_I386_FALSE
734 DEFAULT_TARGET_I386_TRUE
735 DEFAULT_TARGET_ARM_FALSE
736 DEFAULT_TARGET_ARM_TRUE
737 DEFAULT_TARGET_AARCH64_FALSE
738 DEFAULT_TARGET_AARCH64_TRUE
739 PLUGINS_FALSE
740 PLUGINS_TRUE
741 installed_linker
742 install_as_default
743 EGREP
744 GREP
745 CPP
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 am__nodep
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__quote
754 am__include
755 DEPDIR
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 AM_BACKSLASH
764 AM_DEFAULT_VERBOSITY
765 AM_DEFAULT_V
766 AM_V
767 am__untar
768 am__tar
769 AMTAR
770 am__leading_dot
771 SET_MAKE
772 AWK
773 mkdir_p
774 MKDIR_P
775 INSTALL_STRIP_PROGRAM
776 STRIP
777 install_sh
778 MAKEINFO
779 AUTOHEADER
780 AUTOMAKE
781 AUTOCONF
782 ACLOCAL
783 VERSION
784 PACKAGE
785 CYGPATH_W
786 am__isrc
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 target_os
791 target_vendor
792 target_cpu
793 target
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files=''
841 ac_user_opts='
842 enable_option_checking
843 enable_silent_rules
844 enable_dependency_tracking
845 with_sysroot
846 enable_gold
847 enable_plugins
848 enable_relro
849 enable_targets
850 enable_default_hash_style
851 with_lib_path
852 enable_nls
853 enable_werror
854 enable_build_warnings
855 with_gold_ldflags
856 with_gold_ldadd
857 with_system_zlib
858 enable_threads
859 enable_jansson
860 enable_maintainer_mode
861 '
862 ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CC
866 CFLAGS
867 LDFLAGS
868 LIBS
869 CPPFLAGS
870 CPP
871 CXX
872 CXXFLAGS
873 CCC
874 YACC
875 YFLAGS
876 PKG_CONFIG
877 PKG_CONFIG_PATH
878 PKG_CONFIG_LIBDIR
879 JANSSON_CFLAGS
880 JANSSON_LIBS
881 CXXCPP'
882
883
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 ac_unrecognized_opts=
888 ac_unrecognized_sep=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
905
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
931
932 ac_prev=
933 ac_dashdash=
934 for ac_option
935 do
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
941 fi
942
943 case $ac_option in
944 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *=) ac_optarg= ;;
946 *) ac_optarg=yes ;;
947 esac
948
949 # Accept the important Cygnus configure options, so we can diagnose typos.
950
951 case $ac_dashdash$ac_option in
952 --)
953 ac_dashdash=yes ;;
954
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 ac_prev=bindir ;;
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958 bindir=$ac_optarg ;;
959
960 -build | --build | --buil | --bui | --bu)
961 ac_prev=build_alias ;;
962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963 build_alias=$ac_optarg ;;
964
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970 cache_file=$ac_optarg ;;
971
972 --config-cache | -C)
973 cache_file=config.cache ;;
974
975 -datadir | --datadir | --datadi | --datad)
976 ac_prev=datadir ;;
977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
978 datadir=$ac_optarg ;;
979
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
986
987 -disable-* | --disable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=no ;;
1002
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1007
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1012
1013 -enable-* | --enable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1048
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1053
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1083
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1157
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1193
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1216
1217 -with-* | --with-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error $? "invalid package name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1225 *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=\$ac_optarg ;;
1232
1233 -without-* | --without-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=no ;;
1248
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1252
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1259
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1266
1267 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information"
1269 ;;
1270
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 case $ac_envvar in #(
1275 '' | [0-9]* | *[!_$as_cr_alnum]* )
1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 esac
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1280
1281 *)
1282 # FIXME: should be removed in autoconf 3.0.
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1287 ;;
1288
1289 esac
1290 done
1291
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 as_fn_error $? "missing argument to $ac_option"
1295 fi
1296
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 esac
1303 fi
1304
1305 # Check all directory arguments for consistency.
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1310 do
1311 eval ac_val=\$$ac_var
1312 # Remove trailing slashes.
1313 case $ac_val in
1314 */ )
1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\$ac_val;;
1317 esac
1318 # Be sure to have absolute directory names.
1319 case $ac_val in
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 esac
1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1324 done
1325
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1332
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
1337 elif test "x$build_alias" != "x$host_alias"; then
1338 cross_compiling=yes
1339 fi
1340 fi
1341
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345 test "$silent" = yes && exec 6>/dev/null
1346
1347
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 as_fn_error $? "working directory cannot be determined"
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 as_fn_error $? "pwd does not report name of working directory"
1354
1355
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387 else
1388 ac_srcdir_defaulted=no
1389 fi
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 fi
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1397 pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 srcdir=.
1401 fi
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1414
1415 #
1416 # Report the --help message.
1417 #
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1421 cat <<_ACEOF
1422 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1423
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1428
1429 Defaults for the options are specified in brackets.
1430
1431 Configuration:
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking ...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 [PREFIX]
1447
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1452
1453 For better control, use the options below.
1454
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1475 _ACEOF
1476
1477 cat <<\_ACEOF
1478
1479 Program names:
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 --target=TARGET configure for building compilers for TARGET [HOST]
1488 _ACEOF
1489 fi
1490
1491 if test -n "$ac_init_help"; then
1492 case $ac_init_help in
1493 short | recursive ) echo "Configuration of gold 0.1:";;
1494 esac
1495 cat <<\_ACEOF
1496
1497 Optional Features:
1498 --disable-option-checking ignore unrecognized --enable/--with options
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --enable-silent-rules less verbose build output (undo: "make V=1")
1502 --disable-silent-rules verbose build output (undo: "make V=0")
1503 --enable-dependency-tracking
1504 do not reject slow dependency extractors
1505 --disable-dependency-tracking
1506 speeds up one-time build
1507 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1508 --enable-plugins Enable support for plugins
1509 --enable-relro enable -z relro in ELF linker by default
1510 --enable-targets alternative target configurations
1511 --enable-default-hash-style={sysv,gnu,both}
1512 use this default hash style
1513 --disable-nls do not use Native Language Support
1514 --enable-werror treat compile warnings as errors
1515 --enable-build-warnings enable build-time compiler warnings
1516 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
1517 --enable-jansson enable jansson [default=no]
1518 --enable-maintainer-mode
1519 enable make rules and dependencies not useful (and
1520 sometimes confusing) to the casual installer
1521
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-sysroot=DIR search for usr/lib et al within DIR
1526 --with-lib-path=dir1:dir2... set default LIB_PATH
1527 --with-gold-ldflags=FLAGS additional link flags for gold
1528 --with-gold-ldadd=LIBS additional libraries for gold
1529 --with-system-zlib use installed libz
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CPP C preprocessor
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1542 YACC The `Yet Another Compiler Compiler' implementation to use.
1543 Defaults to the first program found out of: `bison -y', `byacc',
1544 `yacc'.
1545 YFLAGS The list of arguments that will be passed by default to $YACC.
1546 This script will default YFLAGS to the empty string to avoid a
1547 default value of `-d' given by some make applications.
1548 PKG_CONFIG path to pkg-config utility
1549 PKG_CONFIG_PATH
1550 directories to add to pkg-config's search path
1551 PKG_CONFIG_LIBDIR
1552 path overriding pkg-config's built-in search path
1553 JANSSON_CFLAGS
1554 C compiler flags for JANSSON, overriding pkg-config
1555 JANSSON_LIBS
1556 linker flags for JANSSON, overriding pkg-config
1557 CXXCPP C++ preprocessor
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to the package provider.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 continue
1573 ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592 .) # We are building in place.
1593 ac_srcdir=.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1600 *) # Relative name.
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1615 else
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 fi || ac_status=$?
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1619 done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624 cat <<\_ACEOF
1625 gold configure 0.1
1626 generated by GNU Autoconf 2.69
1627
1628 Copyright (C) 2012 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632 exit
1633 fi
1634
1635 ## ------------------------ ##
1636 ## Autoconf initialization. ##
1637 ## ------------------------ ##
1638
1639 # ac_fn_c_try_compile LINENO
1640 # --------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext
1646 if { { ac_try="$ac_compile"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_compile
1676
1677 # ac_fn_c_try_cpp LINENO
1678 # ----------------------
1679 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_cpp ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_cpp conftest.$ac_ext"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } > conftest.i && {
1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708 fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_cpp
1713
1714 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1717 # the include files in INCLUDES and setting the cache variable VAR
1718 # accordingly.
1719 ac_fn_c_check_header_mongrel ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if eval \${$3+:} false; then :
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727 fi
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 else
1732 # Is the header compilable?
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1734 $as_echo_n "checking $2 usability... " >&6; }
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 $4
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_compile "$LINENO"; then :
1741 ac_header_compiler=yes
1742 else
1743 ac_header_compiler=no
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1747 $as_echo "$ac_header_compiler" >&6; }
1748
1749 # Is the header present?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1751 $as_echo_n "checking $2 presence... " >&6; }
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_cpp "$LINENO"; then :
1757 ac_header_preproc=yes
1758 else
1759 ac_header_preproc=no
1760 fi
1761 rm -f conftest.err conftest.i conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1763 $as_echo "$ac_header_preproc" >&6; }
1764
1765 # So? What about this header?
1766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1767 yes:no: )
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1769 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 ;;
1773 no:yes:* )
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1775 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1777 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1779 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1781 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1783 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 ;;
1785 esac
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 eval "$3=\$ac_header_compiler"
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 fi
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799 } # ac_fn_c_check_header_mongrel
1800
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1805 ac_fn_c_try_run ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1826 ac_status=$?
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=$ac_status
1836 fi
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_run
1842
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 $4
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 eval "$3=yes"
1862 else
1863 eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_compile
1873
1874 # ac_fn_c_try_link LINENO
1875 # -----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_link ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 test -x conftest$ac_exeext
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1917
1918 } # ac_fn_c_try_link
1919
1920 # ac_fn_cxx_try_compile LINENO
1921 # ----------------------------
1922 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_compile ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext
1927 if { { ac_try="$ac_compile"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_compile") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1940 fi
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest.$ac_objext; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 ac_retval=1
1952 fi
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1955
1956 } # ac_fn_cxx_try_compile
1957
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1973 #define $2 innocuous_$2
1974
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $2 (); below.
1977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978 <limits.h> exists even on freestanding compilers. */
1979
1980 #ifdef __STDC__
1981 # include <limits.h>
1982 #else
1983 # include <assert.h>
1984 #endif
1985
1986 #undef $2
1987
1988 /* Override any GCC internal prototype to avoid an error.
1989 Use char because int might match the return type of a GCC
1990 builtin and then its argument prototype would still apply. */
1991 #ifdef __cplusplus
1992 extern "C"
1993 #endif
1994 char $2 ();
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined __stub_$2 || defined __stub___$2
1999 choke me
2000 #endif
2001
2002 int
2003 main ()
2004 {
2005 return $2 ();
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_link "$LINENO"; then :
2011 eval "$3=yes"
2012 else
2013 eval "$3=no"
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext \
2016 conftest$ac_exeext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_func
2024
2025 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2026 # ---------------------------------------------
2027 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2028 # accordingly.
2029 ac_fn_c_check_decl ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 as_decl_name=`echo $2|sed 's/ *(.*//'`
2033 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2035 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 int
2043 main ()
2044 {
2045 #ifndef $as_decl_name
2046 #ifdef __cplusplus
2047 (void) $as_decl_use;
2048 #else
2049 (void) $as_decl_name;
2050 #endif
2051 #endif
2052
2053 ;
2054 return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 eval "$3=yes"
2059 else
2060 eval "$3=no"
2061 fi
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 fi
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069 } # ac_fn_c_check_decl
2070
2071 # ac_fn_cxx_try_cpp LINENO
2072 # ------------------------
2073 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2074 ac_fn_cxx_try_cpp ()
2075 {
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if { { ac_try="$ac_cpp conftest.$ac_ext"
2078 case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2085 ac_status=$?
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2090 fi
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } > conftest.i && {
2093 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2094 test ! -s conftest.err
2095 }; then :
2096 ac_retval=0
2097 else
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_retval=1
2102 fi
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status $ac_retval
2105
2106 } # ac_fn_cxx_try_cpp
2107
2108 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2109 # ---------------------------------------------------------
2110 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2111 # the include files in INCLUDES and setting the cache variable VAR
2112 # accordingly.
2113 ac_fn_cxx_check_header_mongrel ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if eval \${$3+:} false; then :
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2121 fi
2122 eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 else
2126 # Is the header compilable?
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2128 $as_echo_n "checking $2 usability... " >&6; }
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $4
2132 #include <$2>
2133 _ACEOF
2134 if ac_fn_cxx_try_compile "$LINENO"; then :
2135 ac_header_compiler=yes
2136 else
2137 ac_header_compiler=no
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2141 $as_echo "$ac_header_compiler" >&6; }
2142
2143 # Is the header present?
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2145 $as_echo_n "checking $2 presence... " >&6; }
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 #include <$2>
2149 _ACEOF
2150 if ac_fn_cxx_try_cpp "$LINENO"; then :
2151 ac_header_preproc=yes
2152 else
2153 ac_header_preproc=no
2154 fi
2155 rm -f conftest.err conftest.i conftest.$ac_ext
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2157 $as_echo "$ac_header_preproc" >&6; }
2158
2159 # So? What about this header?
2160 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2161 yes:no: )
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2163 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2165 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2166 ;;
2167 no:yes:* )
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2169 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2171 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2173 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2175 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 ;;
2179 esac
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 $as_echo_n "checking for $2... " >&6; }
2182 if eval \${$3+:} false; then :
2183 $as_echo_n "(cached) " >&6
2184 else
2185 eval "$3=\$ac_header_compiler"
2186 fi
2187 eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 fi
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192
2193 } # ac_fn_cxx_check_header_mongrel
2194
2195 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2196 # -----------------------------------------------
2197 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2198 # accordingly.
2199 ac_fn_cxx_check_decl ()
2200 {
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 as_decl_name=`echo $2|sed 's/ *(.*//'`
2203 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2205 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2208 else
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2211 $4
2212 int
2213 main ()
2214 {
2215 #ifndef $as_decl_name
2216 #ifdef __cplusplus
2217 (void) $as_decl_use;
2218 #else
2219 (void) $as_decl_name;
2220 #endif
2221 #endif
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228 eval "$3=yes"
2229 else
2230 eval "$3=no"
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 fi
2234 eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238
2239 } # ac_fn_cxx_check_decl
2240
2241 # ac_fn_cxx_try_link LINENO
2242 # -------------------------
2243 # Try to link conftest.$ac_ext, and return whether this succeeded.
2244 ac_fn_cxx_try_link ()
2245 {
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 rm -f conftest.$ac_objext conftest$ac_exeext
2248 if { { ac_try="$ac_link"
2249 case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_link") 2>conftest.err
2256 ac_status=$?
2257 if test -s conftest.err; then
2258 grep -v '^ *+' conftest.err >conftest.er1
2259 cat conftest.er1 >&5
2260 mv -f conftest.er1 conftest.err
2261 fi
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && {
2264 test -z "$ac_cxx_werror_flag" ||
2265 test ! -s conftest.err
2266 } && test -s conftest$ac_exeext && {
2267 test "$cross_compiling" = yes ||
2268 test -x conftest$ac_exeext
2269 }; then :
2270 ac_retval=0
2271 else
2272 $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 ac_retval=1
2276 fi
2277 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2278 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2279 # interfere with the next link command; also delete a directory that is
2280 # left behind by Apple's compiler. We do this before executing the actions.
2281 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283 as_fn_set_status $ac_retval
2284
2285 } # ac_fn_cxx_try_link
2286
2287 # ac_fn_cxx_check_func LINENO FUNC VAR
2288 # ------------------------------------
2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2290 ac_fn_cxx_check_func ()
2291 {
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2302 #define $2 innocuous_$2
2303
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $2 (); below.
2306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2307 <limits.h> exists even on freestanding compilers. */
2308
2309 #ifdef __STDC__
2310 # include <limits.h>
2311 #else
2312 # include <assert.h>
2313 #endif
2314
2315 #undef $2
2316
2317 /* Override any GCC internal prototype to avoid an error.
2318 Use char because int might match the return type of a GCC
2319 builtin and then its argument prototype would still apply. */
2320 #ifdef __cplusplus
2321 extern "C"
2322 #endif
2323 char $2 ();
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined __stub_$2 || defined __stub___$2
2328 choke me
2329 #endif
2330
2331 int
2332 main ()
2333 {
2334 return $2 ();
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_cxx_try_link "$LINENO"; then :
2340 eval "$3=yes"
2341 else
2342 eval "$3=no"
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext \
2345 conftest$ac_exeext conftest.$ac_ext
2346 fi
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351
2352 } # ac_fn_cxx_check_func
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2356
2357 It was created by gold $as_me 0.1, which was
2358 generated by GNU Autoconf 2.69. Invocation command line was
2359
2360 $ $0 $@
2361
2362 _ACEOF
2363 exec 5>>config.log
2364 {
2365 cat <<_ASUNAME
2366 ## --------- ##
2367 ## Platform. ##
2368 ## --------- ##
2369
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2375
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2378
2379 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2383 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2386
2387 _ASUNAME
2388
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 $as_echo "PATH: $as_dir"
2395 done
2396 IFS=$as_save_IFS
2397
2398 } >&5
2399
2400 cat >&5 <<_ACEOF
2401
2402
2403 ## ----------- ##
2404 ## Core tests. ##
2405 ## ----------- ##
2406
2407 _ACEOF
2408
2409
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2415 ac_configure_args=
2416 ac_configure_args0=
2417 ac_configure_args1=
2418 ac_must_keep_next=false
2419 for ac_pass in 1 2
2420 do
2421 for ac_arg
2422 do
2423 case $ac_arg in
2424 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426 | -silent | --silent | --silen | --sile | --sil)
2427 continue ;;
2428 *\'*)
2429 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 esac
2431 case $ac_pass in
2432 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2433 2)
2434 as_fn_append ac_configure_args1 " '$ac_arg'"
2435 if test $ac_must_keep_next = true; then
2436 ac_must_keep_next=false # Got value, back to normal.
2437 else
2438 case $ac_arg in
2439 *=* | --config-cache | -C | -disable-* | --disable-* \
2440 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442 | -with-* | --with-* | -without-* | --without-* | --x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2445 esac
2446 ;;
2447 -* ) ac_must_keep_next=true ;;
2448 esac
2449 fi
2450 as_fn_append ac_configure_args " '$ac_arg'"
2451 ;;
2452 esac
2453 done
2454 done
2455 { ac_configure_args0=; unset ac_configure_args0;}
2456 { ac_configure_args1=; unset ac_configure_args1;}
2457
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log. We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2465 {
2466 echo
2467
2468 $as_echo "## ---------------- ##
2469 ## Cache variables. ##
2470 ## ---------------- ##"
2471 echo
2472 # The following way of writing the cache mishandles newlines in values,
2473 (
2474 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2475 eval ac_val=\$$ac_var
2476 case $ac_val in #(
2477 *${as_nl}*)
2478 case $ac_var in #(
2479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2481 esac
2482 case $ac_var in #(
2483 _ | IFS | as_nl) ;; #(
2484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2485 *) { eval $ac_var=; unset $ac_var;} ;;
2486 esac ;;
2487 esac
2488 done
2489 (set) 2>&1 |
2490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2491 *${as_nl}ac_space=\ *)
2492 sed -n \
2493 "s/'\''/'\''\\\\'\'''\''/g;
2494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2495 ;; #(
2496 *)
2497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2498 ;;
2499 esac |
2500 sort
2501 )
2502 echo
2503
2504 $as_echo "## ----------------- ##
2505 ## Output variables. ##
2506 ## ----------------- ##"
2507 echo
2508 for ac_var in $ac_subst_vars
2509 do
2510 eval ac_val=\$$ac_var
2511 case $ac_val in
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2513 esac
2514 $as_echo "$ac_var='\''$ac_val'\''"
2515 done | sort
2516 echo
2517
2518 if test -n "$ac_subst_files"; then
2519 $as_echo "## ------------------- ##
2520 ## File substitutions. ##
2521 ## ------------------- ##"
2522 echo
2523 for ac_var in $ac_subst_files
2524 do
2525 eval ac_val=\$$ac_var
2526 case $ac_val in
2527 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528 esac
2529 $as_echo "$ac_var='\''$ac_val'\''"
2530 done | sort
2531 echo
2532 fi
2533
2534 if test -s confdefs.h; then
2535 $as_echo "## ----------- ##
2536 ## confdefs.h. ##
2537 ## ----------- ##"
2538 echo
2539 cat confdefs.h
2540 echo
2541 fi
2542 test "$ac_signal" != 0 &&
2543 $as_echo "$as_me: caught signal $ac_signal"
2544 $as_echo "$as_me: exit $exit_status"
2545 } >&5
2546 rm -f core *.core core.conftest.* &&
2547 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2548 exit $exit_status
2549 ' 0
2550 for ac_signal in 1 2 13 15; do
2551 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2552 done
2553 ac_signal=0
2554
2555 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2556 rm -f -r conftest* confdefs.h
2557
2558 $as_echo "/* confdefs.h */" > confdefs.h
2559
2560 # Predefined preprocessor variables.
2561
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_NAME "$PACKAGE_NAME"
2564 _ACEOF
2565
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2568 _ACEOF
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2572 _ACEOF
2573
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_STRING "$PACKAGE_STRING"
2576 _ACEOF
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2580 _ACEOF
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_URL "$PACKAGE_URL"
2584 _ACEOF
2585
2586
2587 # Let the site file select an alternate cache file if it wants to.
2588 # Prefer an explicitly selected file to automatically selected ones.
2589 ac_site_file1=NONE
2590 ac_site_file2=NONE
2591 if test -n "$CONFIG_SITE"; then
2592 # We do not want a PATH search for config.site.
2593 case $CONFIG_SITE in #((
2594 -*) ac_site_file1=./$CONFIG_SITE;;
2595 */*) ac_site_file1=$CONFIG_SITE;;
2596 *) ac_site_file1=./$CONFIG_SITE;;
2597 esac
2598 elif test "x$prefix" != xNONE; then
2599 ac_site_file1=$prefix/share/config.site
2600 ac_site_file2=$prefix/etc/config.site
2601 else
2602 ac_site_file1=$ac_default_prefix/share/config.site
2603 ac_site_file2=$ac_default_prefix/etc/config.site
2604 fi
2605 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2606 do
2607 test "x$ac_site_file" = xNONE && continue
2608 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2610 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2611 sed 's/^/| /' "$ac_site_file" >&5
2612 . "$ac_site_file" \
2613 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $? "failed to load site script $ac_site_file
2616 See \`config.log' for more details" "$LINENO" 5; }
2617 fi
2618 done
2619
2620 if test -r "$cache_file"; then
2621 # Some versions of bash will fail to source /dev/null (special files
2622 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2623 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2625 $as_echo "$as_me: loading cache $cache_file" >&6;}
2626 case $cache_file in
2627 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2628 *) . "./$cache_file";;
2629 esac
2630 fi
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2633 $as_echo "$as_me: creating cache $cache_file" >&6;}
2634 >$cache_file
2635 fi
2636
2637 # Check that the precious variables saved in the cache have kept the same
2638 # value.
2639 ac_cache_corrupted=false
2640 for ac_var in $ac_precious_vars; do
2641 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2642 eval ac_new_set=\$ac_env_${ac_var}_set
2643 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2644 eval ac_new_val=\$ac_env_${ac_var}_value
2645 case $ac_old_set,$ac_new_set in
2646 set,)
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2650 ,set)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2654 ,);;
2655 *)
2656 if test "x$ac_old_val" != "x$ac_new_val"; then
2657 # differences in whitespace do not lead to failure.
2658 ac_old_val_w=`echo x $ac_old_val`
2659 ac_new_val_w=`echo x $ac_new_val`
2660 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2663 ac_cache_corrupted=:
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667 eval $ac_var=\$ac_old_val
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2670 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2672 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2673 fi;;
2674 esac
2675 # Pass precious variables to config.status.
2676 if test "$ac_new_set" = set; then
2677 case $ac_new_val in
2678 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 *) ac_arg=$ac_var=$ac_new_val ;;
2680 esac
2681 case " $ac_configure_args " in
2682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2683 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2684 esac
2685 fi
2686 done
2687 if $ac_cache_corrupted; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2692 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2693 fi
2694 ## -------------------- ##
2695 ## Main body of script. ##
2696 ## -------------------- ##
2697
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703
2704
2705
2706
2707
2708
2709
2710 ac_aux_dir=
2711 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2712 if test -f "$ac_dir/install-sh"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/install-sh -c"
2715 break
2716 elif test -f "$ac_dir/install.sh"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/install.sh -c"
2719 break
2720 elif test -f "$ac_dir/shtool"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/shtool install -c"
2723 break
2724 fi
2725 done
2726 if test -z "$ac_aux_dir"; then
2727 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2728 fi
2729
2730 # These three variables are undocumented and unsupported,
2731 # and are intended to be withdrawn in a future Autoconf release.
2732 # They can cause serious problems if a builder's source tree is in a directory
2733 # whose full name contains unusual characters.
2734 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2735 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2736 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2737
2738
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2755
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2760 *-*-*) ;;
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2762 esac
2763 build=$ac_cv_build
2764 ac_save_IFS=$IFS; IFS='-'
2765 set x $ac_cv_build
2766 shift
2767 build_cpu=$1
2768 build_vendor=$2
2769 shift; shift
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2772 build_os=$*
2773 IFS=$ac_save_IFS
2774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2775
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
2784 else
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2787 fi
2788
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2792 case $ac_cv_host in
2793 *-*-*) ;;
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2795 esac
2796 host=$ac_cv_host
2797 ac_save_IFS=$IFS; IFS='-'
2798 set x $ac_cv_host
2799 shift
2800 host_cpu=$1
2801 host_vendor=$2
2802 shift; shift
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2805 host_os=$*
2806 IFS=$ac_save_IFS
2807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2808
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811 $as_echo_n "checking target system type... " >&6; }
2812 if ${ac_cv_target+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test "x$target_alias" = x; then
2816 ac_cv_target=$ac_cv_host
2817 else
2818 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2820 fi
2821
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824 $as_echo "$ac_cv_target" >&6; }
2825 case $ac_cv_target in
2826 *-*-*) ;;
2827 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2828 esac
2829 target=$ac_cv_target
2830 ac_save_IFS=$IFS; IFS='-'
2831 set x $ac_cv_target
2832 shift
2833 target_cpu=$1
2834 target_vendor=$2
2835 shift; shift
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2838 target_os=$*
2839 IFS=$ac_save_IFS
2840 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2841
2842
2843 # The aliases save the names the user supplied, while $host etc.
2844 # will get canonicalized.
2845 test -n "$target_alias" &&
2846 test "$program_prefix$program_suffix$program_transform_name" = \
2847 NONENONEs,x,x, &&
2848 program_prefix=${target_alias}-
2849
2850 am__api_version='1.15'
2851
2852 # Find a good install program. We prefer a C program (faster),
2853 # so one script is as good as another. But avoid the broken or
2854 # incompatible versions:
2855 # SysV /etc/install, /usr/sbin/install
2856 # SunOS /usr/etc/install
2857 # IRIX /sbin/install
2858 # AIX /bin/install
2859 # AmigaOS /C/install, which installs bootblocks on floppy discs
2860 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2861 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2862 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2863 # OS/2's system install, which has a completely different semantic
2864 # ./install, which can be erroneously created by make from ./install.sh.
2865 # Reject install programs that cannot install multiple files.
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2867 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2868 if test -z "$INSTALL"; then
2869 if ${ac_cv_path_install+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 # Account for people who put trailing slashes in PATH elements.
2878 case $as_dir/ in #((
2879 ./ | .// | /[cC]/* | \
2880 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2881 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2882 /usr/ucb/* ) ;;
2883 *)
2884 # OSF1 and SCO ODT 3.0 have their own names for install.
2885 # Don't use installbsd from OSF since it installs stuff as root
2886 # by default.
2887 for ac_prog in ginstall scoinst install; do
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2890 if test $ac_prog = install &&
2891 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2892 # AIX install. It has an incompatible calling convention.
2893 :
2894 elif test $ac_prog = install &&
2895 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896 # program-specific install script used by HP pwplus--don't use.
2897 :
2898 else
2899 rm -rf conftest.one conftest.two conftest.dir
2900 echo one > conftest.one
2901 echo two > conftest.two
2902 mkdir conftest.dir
2903 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2904 test -s conftest.one && test -s conftest.two &&
2905 test -s conftest.dir/conftest.one &&
2906 test -s conftest.dir/conftest.two
2907 then
2908 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2909 break 3
2910 fi
2911 fi
2912 fi
2913 done
2914 done
2915 ;;
2916 esac
2917
2918 done
2919 IFS=$as_save_IFS
2920
2921 rm -rf conftest.one conftest.two conftest.dir
2922
2923 fi
2924 if test "${ac_cv_path_install+set}" = set; then
2925 INSTALL=$ac_cv_path_install
2926 else
2927 # As a last resort, use the slow shell script. Don't cache a
2928 # value for INSTALL within a source directory, because that will
2929 # break other packages using the cache if that directory is
2930 # removed, or if the value is a relative name.
2931 INSTALL=$ac_install_sh
2932 fi
2933 fi
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2935 $as_echo "$INSTALL" >&6; }
2936
2937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2938 # It thinks the first close brace ends the variable substitution.
2939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2940
2941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2942
2943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2944
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2946 $as_echo_n "checking whether build environment is sane... " >&6; }
2947 # Reject unsafe characters in $srcdir or the absolute working directory
2948 # name. Accept space and tab only in the latter.
2949 am_lf='
2950 '
2951 case `pwd` in
2952 *[\\\"\#\$\&\'\`$am_lf]*)
2953 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2954 esac
2955 case $srcdir in
2956 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2957 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2958 esac
2959
2960 # Do 'set' in a subshell so we don't clobber the current shell's
2961 # arguments. Must try -L first in case configure is actually a
2962 # symlink; some systems play weird games with the mod time of symlinks
2963 # (eg FreeBSD returns the mod time of the symlink's containing
2964 # directory).
2965 if (
2966 am_has_slept=no
2967 for am_try in 1 2; do
2968 echo "timestamp, slept: $am_has_slept" > conftest.file
2969 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2970 if test "$*" = "X"; then
2971 # -L didn't work.
2972 set X `ls -t "$srcdir/configure" conftest.file`
2973 fi
2974 if test "$*" != "X $srcdir/configure conftest.file" \
2975 && test "$*" != "X conftest.file $srcdir/configure"; then
2976
2977 # If neither matched, then we have a broken ls. This can happen
2978 # if, for instance, CONFIG_SHELL is bash and it inherits a
2979 # broken ls alias from the environment. This has actually
2980 # happened. Such a system could not be considered "sane".
2981 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2982 alias in your environment" "$LINENO" 5
2983 fi
2984 if test "$2" = conftest.file || test $am_try -eq 2; then
2985 break
2986 fi
2987 # Just in case.
2988 sleep 1
2989 am_has_slept=yes
2990 done
2991 test "$2" = conftest.file
2992 )
2993 then
2994 # Ok.
2995 :
2996 else
2997 as_fn_error $? "newly created file is older than distributed files!
2998 Check your system clock" "$LINENO" 5
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001 $as_echo "yes" >&6; }
3002 # If we didn't sleep, we still need to ensure time stamps of config.status and
3003 # generated files are strictly newer.
3004 am_sleep_pid=
3005 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3006 ( sleep 1 ) &
3007 am_sleep_pid=$!
3008 fi
3009
3010 rm -f conftest.file
3011
3012 test "$program_prefix" != NONE &&
3013 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3014 # Use a double $ so make ignores it.
3015 test "$program_suffix" != NONE &&
3016 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3017 # Double any \ or $.
3018 # By default was `s,x,x', remove it if useless.
3019 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3020 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3021
3022 # Expand $ac_aux_dir to an absolute path.
3023 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3024
3025 if test x"${MISSING+set}" != xset; then
3026 case $am_aux_dir in
3027 *\ * | *\ *)
3028 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3029 *)
3030 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3031 esac
3032 fi
3033 # Use eval to expand $SHELL
3034 if eval "$MISSING --is-lightweight"; then
3035 am_missing_run="$MISSING "
3036 else
3037 am_missing_run=
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3039 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3040 fi
3041
3042 if test x"${install_sh+set}" != xset; then
3043 case $am_aux_dir in
3044 *\ * | *\ *)
3045 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3046 *)
3047 install_sh="\${SHELL} $am_aux_dir/install-sh"
3048 esac
3049 fi
3050
3051 # Installed binaries are usually stripped using 'strip' when the user
3052 # run "make install-strip". However 'strip' might not be the right
3053 # tool to use in cross-compilation environments, therefore Automake
3054 # will honor the 'STRIP' environment variable to overrule this program.
3055 if test "$cross_compiling" != no; then
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}strip; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_STRIP+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$STRIP"; then
3065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078 done
3079 done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 STRIP=$ac_cv_prog_STRIP
3085 if test -n "$STRIP"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3087 $as_echo "$STRIP" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094 fi
3095 if test -z "$ac_cv_prog_STRIP"; then
3096 ac_ct_STRIP=$STRIP
3097 # Extract the first word of "strip", so it can be a program name with args.
3098 set dummy strip; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$ac_ct_STRIP"; then
3105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_STRIP="strip"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3125 if test -n "$ac_ct_STRIP"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3127 $as_echo "$ac_ct_STRIP" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133 if test "x$ac_ct_STRIP" = x; then
3134 STRIP=":"
3135 else
3136 case $cross_compiling:$ac_tool_warned in
3137 yes:)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned=yes ;;
3141 esac
3142 STRIP=$ac_ct_STRIP
3143 fi
3144 else
3145 STRIP="$ac_cv_prog_STRIP"
3146 fi
3147
3148 fi
3149 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3152 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3153 if test -z "$MKDIR_P"; then
3154 if ${ac_cv_path_mkdir+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_prog in mkdir gmkdir; do
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3165 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3166 'mkdir (GNU coreutils) '* | \
3167 'mkdir (coreutils) '* | \
3168 'mkdir (fileutils) '4.1*)
3169 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3170 break 3;;
3171 esac
3172 done
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178
3179 test -d ./--version && rmdir ./--version
3180 if test "${ac_cv_path_mkdir+set}" = set; then
3181 MKDIR_P="$ac_cv_path_mkdir -p"
3182 else
3183 # As a last resort, use the slow shell script. Don't cache a
3184 # value for MKDIR_P within a source directory, because that will
3185 # break other packages using the cache if that directory is
3186 # removed, or if the value is a relative name.
3187 MKDIR_P="$ac_install_sh -d"
3188 fi
3189 fi
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3191 $as_echo "$MKDIR_P" >&6; }
3192
3193 for ac_prog in gawk mawk nawk awk
3194 do
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_AWK+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$AWK"; then
3203 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_AWK="$ac_prog"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3215 fi
3216 done
3217 done
3218 IFS=$as_save_IFS
3219
3220 fi
3221 fi
3222 AWK=$ac_cv_prog_AWK
3223 if test -n "$AWK"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3225 $as_echo "$AWK" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231
3232 test -n "$AWK" && break
3233 done
3234
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3236 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3237 set x ${MAKE-make}
3238 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3239 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 cat >conftest.make <<\_ACEOF
3243 SHELL = /bin/sh
3244 all:
3245 @echo '@@@%%%=$(MAKE)=@@@%%%'
3246 _ACEOF
3247 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3248 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3249 *@@@%%%=?*=@@@%%%*)
3250 eval ac_cv_prog_make_${ac_make}_set=yes;;
3251 *)
3252 eval ac_cv_prog_make_${ac_make}_set=no;;
3253 esac
3254 rm -f conftest.make
3255 fi
3256 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3259 SET_MAKE=
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 SET_MAKE="MAKE=${MAKE-make}"
3264 fi
3265
3266 rm -rf .tst 2>/dev/null
3267 mkdir .tst 2>/dev/null
3268 if test -d .tst; then
3269 am__leading_dot=.
3270 else
3271 am__leading_dot=_
3272 fi
3273 rmdir .tst 2>/dev/null
3274
3275 # Check whether --enable-silent-rules was given.
3276 if test "${enable_silent_rules+set}" = set; then :
3277 enableval=$enable_silent_rules;
3278 fi
3279
3280 case $enable_silent_rules in # (((
3281 yes) AM_DEFAULT_VERBOSITY=0;;
3282 no) AM_DEFAULT_VERBOSITY=1;;
3283 *) AM_DEFAULT_VERBOSITY=1;;
3284 esac
3285 am_make=${MAKE-make}
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3287 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3288 if ${am_cv_make_support_nested_variables+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if $as_echo 'TRUE=$(BAR$(V))
3292 BAR0=false
3293 BAR1=true
3294 V=1
3295 am__doit:
3296 @$(TRUE)
3297 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3298 am_cv_make_support_nested_variables=yes
3299 else
3300 am_cv_make_support_nested_variables=no
3301 fi
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3304 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3305 if test $am_cv_make_support_nested_variables = yes; then
3306 AM_V='$(V)'
3307 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3308 else
3309 AM_V=$AM_DEFAULT_VERBOSITY
3310 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3311 fi
3312 AM_BACKSLASH='\'
3313
3314 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3315 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3316 # is not polluted with repeated "-I."
3317 am__isrc=' -I$(srcdir)'
3318 # test to see if srcdir already configured
3319 if test -f $srcdir/config.status; then
3320 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3321 fi
3322 fi
3323
3324 # test whether we have cygpath
3325 if test -z "$CYGPATH_W"; then
3326 if (cygpath --version) >/dev/null 2>/dev/null; then
3327 CYGPATH_W='cygpath -w'
3328 else
3329 CYGPATH_W=echo
3330 fi
3331 fi
3332
3333
3334 # Define the identity of the package.
3335 PACKAGE='gold'
3336 VERSION='0.1'
3337
3338
3339 cat >>confdefs.h <<_ACEOF
3340 #define PACKAGE "$PACKAGE"
3341 _ACEOF
3342
3343
3344 cat >>confdefs.h <<_ACEOF
3345 #define VERSION "$VERSION"
3346 _ACEOF
3347
3348 # Some tools Automake needs.
3349
3350 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3351
3352
3353 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3354
3355
3356 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3357
3358
3359 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3360
3361
3362 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3363
3364 # For better backward compatibility. To be removed once Automake 1.9.x
3365 # dies out for good. For more background, see:
3366 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3367 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3368 mkdir_p='$(MKDIR_P)'
3369
3370 # We need awk for the "check" target (and possibly the TAP driver). The
3371 # system "awk" is bad on some platforms.
3372 # Always define AMTAR for backward compatibility. Yes, it's still used
3373 # in the wild :-( We should find a proper way to deprecate it ...
3374 AMTAR='$${TAR-tar}'
3375
3376
3377 # We'll loop over all known methods to create a tar archive until one works.
3378 _am_tools='gnutar pax cpio none'
3379
3380 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3381
3382
3383
3384
3385
3386
3387 # POSIX will say in a future version that running "rm -f" with no argument
3388 # is OK; and we want to be able to make that assumption in our Makefile
3389 # recipes. So use an aggressive probe to check that the usage we want is
3390 # actually supported "in the wild" to an acceptable degree.
3391 # See automake bug#10828.
3392 # To make any issue more visible, cause the running configure to be aborted
3393 # by default if the 'rm' program in use doesn't match our expectations; the
3394 # user can still override this though.
3395 if rm -f && rm -fr && rm -rf; then : OK; else
3396 cat >&2 <<'END'
3397 Oops!
3398
3399 Your 'rm' program seems unable to run without file operands specified
3400 on the command line, even when the '-f' option is present. This is contrary
3401 to the behaviour of most rm programs out there, and not conforming with
3402 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3403
3404 Please tell bug-automake@gnu.org about your system, including the value
3405 of your $PATH and any error possibly output before this message. This
3406 can help us improve future automake versions.
3407
3408 END
3409 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3410 echo 'Configuration will proceed anyway, since you have set the' >&2
3411 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3412 echo >&2
3413 else
3414 cat >&2 <<'END'
3415 Aborting the configuration process, to ensure you take notice of the issue.
3416
3417 You can download and install GNU coreutils to get an 'rm' implementation
3418 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3419
3420 If you want to complete the configuration process using your problematic
3421 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3422 to "yes", and re-run configure.
3423
3424 END
3425 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3426 fi
3427 fi
3428
3429 # Check whether --enable-silent-rules was given.
3430 if test "${enable_silent_rules+set}" = set; then :
3431 enableval=$enable_silent_rules;
3432 fi
3433
3434 case $enable_silent_rules in # (((
3435 yes) AM_DEFAULT_VERBOSITY=0;;
3436 no) AM_DEFAULT_VERBOSITY=1;;
3437 *) AM_DEFAULT_VERBOSITY=0;;
3438 esac
3439 am_make=${MAKE-make}
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3441 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3442 if ${am_cv_make_support_nested_variables+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if $as_echo 'TRUE=$(BAR$(V))
3446 BAR0=false
3447 BAR1=true
3448 V=1
3449 am__doit:
3450 @$(TRUE)
3451 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3452 am_cv_make_support_nested_variables=yes
3453 else
3454 am_cv_make_support_nested_variables=no
3455 fi
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3458 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3459 if test $am_cv_make_support_nested_variables = yes; then
3460 AM_V='$(V)'
3461 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3462 else
3463 AM_V=$AM_DEFAULT_VERBOSITY
3464 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3465 fi
3466 AM_BACKSLASH='\'
3467
3468
3469 ac_config_headers="$ac_config_headers config.h:config.in"
3470
3471
3472 DEPDIR="${am__leading_dot}deps"
3473
3474 ac_config_commands="$ac_config_commands depfiles"
3475
3476
3477 am_make=${MAKE-make}
3478 cat > confinc << 'END'
3479 am__doit:
3480 @echo this is the am__doit target
3481 .PHONY: am__doit
3482 END
3483 # If we don't find an include directive, just comment out the code.
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3485 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3486 am__include="#"
3487 am__quote=
3488 _am_result=none
3489 # First try GNU make style include.
3490 echo "include confinc" > confmf
3491 # Ignore all kinds of additional output from 'make'.
3492 case `$am_make -s -f confmf 2> /dev/null` in #(
3493 *the\ am__doit\ target*)
3494 am__include=include
3495 am__quote=
3496 _am_result=GNU
3497 ;;
3498 esac
3499 # Now try BSD make style include.
3500 if test "$am__include" = "#"; then
3501 echo '.include "confinc"' > confmf
3502 case `$am_make -s -f confmf 2> /dev/null` in #(
3503 *the\ am__doit\ target*)
3504 am__include=.include
3505 am__quote="\""
3506 _am_result=BSD
3507 ;;
3508 esac
3509 fi
3510
3511
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3513 $as_echo "$_am_result" >&6; }
3514 rm -f confinc confmf
3515
3516 # Check whether --enable-dependency-tracking was given.
3517 if test "${enable_dependency_tracking+set}" = set; then :
3518 enableval=$enable_dependency_tracking;
3519 fi
3520
3521 if test "x$enable_dependency_tracking" != xno; then
3522 am_depcomp="$ac_aux_dir/depcomp"
3523 AMDEPBACKSLASH='\'
3524 am__nodep='_no'
3525 fi
3526 if test "x$enable_dependency_tracking" != xno; then
3527 AMDEP_TRUE=
3528 AMDEP_FALSE='#'
3529 else
3530 AMDEP_TRUE='#'
3531 AMDEP_FALSE=
3532 fi
3533
3534
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_CC+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC="$CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578 fi
3579 if test -z "$ac_cv_prog_CC"; then
3580 ac_ct_CC=$CC
3581 # Extract the first word of "gcc", so it can be a program name with args.
3582 set dummy gcc; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC="gcc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602 done
3603 done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617 if test "x$ac_ct_CC" = x; then
3618 CC=""
3619 else
3620 case $cross_compiling:$ac_tool_warned in
3621 yes:)
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3624 ac_tool_warned=yes ;;
3625 esac
3626 CC=$ac_ct_CC
3627 fi
3628 else
3629 CC="$ac_cv_prog_CC"
3630 fi
3631
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3635 set dummy ${ac_tool_prefix}cc; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if ${ac_cv_prog_CC+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_CC="${ac_tool_prefix}cc"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 break 2
3654 fi
3655 done
3656 done
3657 IFS=$as_save_IFS
3658
3659 fi
3660 fi
3661 CC=$ac_cv_prog_CC
3662 if test -n "$CC"; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3664 $as_echo "$CC" >&6; }
3665 else
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 fi
3669
3670
3671 fi
3672 fi
3673 if test -z "$CC"; then
3674 # Extract the first word of "cc", so it can be a program name with args.
3675 set dummy cc; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CC+:} false; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC="$CC" # Let the user override the test.
3683 else
3684 ac_prog_rejected=no
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3693 ac_prog_rejected=yes
3694 continue
3695 fi
3696 ac_cv_prog_CC="cc"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700 done
3701 done
3702 IFS=$as_save_IFS
3703
3704 if test $ac_prog_rejected = yes; then
3705 # We found a bogon in the path, so make sure we never use it.
3706 set dummy $ac_cv_prog_CC
3707 shift
3708 if test $# != 0; then
3709 # We chose a different compiler from the bogus one.
3710 # However, it has the same basename, so the bogon will be chosen
3711 # first if we set CC to just the basename; use the full file name.
3712 shift
3713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3714 fi
3715 fi
3716 fi
3717 fi
3718 CC=$ac_cv_prog_CC
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 fi
3726
3727
3728 fi
3729 if test -z "$CC"; then
3730 if test -n "$ac_tool_prefix"; then
3731 for ac_prog in cl.exe
3732 do
3733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if ${ac_cv_prog_CC+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test -n "$CC"; then
3741 ac_cv_prog_CC="$CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 CC=$ac_cv_prog_CC
3761 if test -n "$CC"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3763 $as_echo "$CC" >&6; }
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 fi
3768
3769
3770 test -n "$CC" && break
3771 done
3772 fi
3773 if test -z "$CC"; then
3774 ac_ct_CC=$CC
3775 for ac_prog in cl.exe
3776 do
3777 # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy $ac_prog; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if test -n "$ac_ct_CC"; then
3785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3789 do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_ac_ct_CC="$ac_prog"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798 done
3799 done
3800 IFS=$as_save_IFS
3801
3802 fi
3803 fi
3804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3805 if test -n "$ac_ct_CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3807 $as_echo "$ac_ct_CC" >&6; }
3808 else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3811 fi
3812
3813
3814 test -n "$ac_ct_CC" && break
3815 done
3816
3817 if test "x$ac_ct_CC" = x; then
3818 CC=""
3819 else
3820 case $cross_compiling:$ac_tool_warned in
3821 yes:)
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3824 ac_tool_warned=yes ;;
3825 esac
3826 CC=$ac_ct_CC
3827 fi
3828 fi
3829
3830 fi
3831
3832
3833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "no acceptable C compiler found in \$PATH
3836 See \`config.log' for more details" "$LINENO" 5; }
3837
3838 # Provide some information about the compiler.
3839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3840 set X $ac_compile
3841 ac_compiler=$2
3842 for ac_option in --version -v -V -qversion; do
3843 { { ac_try="$ac_compiler $ac_option >&5"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3851 ac_status=$?
3852 if test -s conftest.err; then
3853 sed '10a\
3854 ... rest of stderr output deleted ...
3855 10q' conftest.err >conftest.er1
3856 cat conftest.er1 >&5
3857 fi
3858 rm -f conftest.er1 conftest.err
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }
3861 done
3862
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 ac_clean_files_save=$ac_clean_files
3875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3876 # Try to create an executable without -o first, disregard a.out.
3877 # It will help us diagnose broken compilers, and finding out an intuition
3878 # of exeext.
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3880 $as_echo_n "checking whether the C compiler works... " >&6; }
3881 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882
3883 # The possible output files:
3884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3885
3886 ac_rmfiles=
3887 for ac_file in $ac_files
3888 do
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3892 esac
3893 done
3894 rm -f $ac_rmfiles
3895
3896 if { { ac_try="$ac_link_default"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 $as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_link_default") 2>&5
3904 ac_status=$?
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }; then :
3907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3909 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3910 # so that the user can short-circuit this test for compilers unknown to
3911 # Autoconf.
3912 for ac_file in $ac_files ''
3913 do
3914 test -f "$ac_file" || continue
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3917 ;;
3918 [ab].out )
3919 # We found the default executable, but exeext='' is most
3920 # certainly right.
3921 break;;
3922 *.* )
3923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3924 then :; else
3925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 fi
3927 # We set ac_cv_exeext here because the later test for it is not
3928 # safe: cross compilers may not add the suffix if given an `-o'
3929 # argument, so we may need to know it at that point already.
3930 # Even if this section looks crufty: it has the advantage of
3931 # actually working.
3932 break;;
3933 * )
3934 break;;
3935 esac
3936 done
3937 test "$ac_cv_exeext" = no && ac_cv_exeext=
3938
3939 else
3940 ac_file=''
3941 fi
3942 if test -z "$ac_file"; then :
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 $as_echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error 77 "C compiler cannot create executables
3951 See \`config.log' for more details" "$LINENO" 5; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3957 $as_echo_n "checking for C compiler default output file name... " >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3959 $as_echo "$ac_file" >&6; }
3960 ac_exeext=$ac_cv_exeext
3961
3962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3963 ac_clean_files=$ac_clean_files_save
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3965 $as_echo_n "checking for suffix of executables... " >&6; }
3966 if { { ac_try="$ac_link"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_link") 2>&5
3974 ac_status=$?
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3979 # work properly (i.e., refer to `conftest.exe'), while it won't with
3980 # `rm'.
3981 for ac_file in conftest.exe conftest conftest.*; do
3982 test -f "$ac_file" || continue
3983 case $ac_file in
3984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 break;;
3987 * ) break;;
3988 esac
3989 done
3990 else
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3994 See \`config.log' for more details" "$LINENO" 5; }
3995 fi
3996 rm -f conftest conftest$ac_cv_exeext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3998 $as_echo "$ac_cv_exeext" >&6; }
3999
4000 rm -f conftest.$ac_ext
4001 EXEEXT=$ac_cv_exeext
4002 ac_exeext=$EXEEXT
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <stdio.h>
4006 int
4007 main ()
4008 {
4009 FILE *f = fopen ("conftest.out", "w");
4010 return ferror (f) || fclose (f) != 0;
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 ac_clean_files="$ac_clean_files conftest.out"
4017 # Check that the compiler produces executables we can run. If not, either
4018 # the compiler is broken, or we cross compile.
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4020 $as_echo_n "checking whether we are cross compiling... " >&6; }
4021 if test "$cross_compiling" != yes; then
4022 { { ac_try="$ac_link"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_link") 2>&5
4030 ac_status=$?
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 if { ac_try='./conftest$ac_cv_exeext'
4034 { { case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_try") 2>&5
4041 ac_status=$?
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; }; then
4044 cross_compiling=no
4045 else
4046 if test "$cross_compiling" = maybe; then
4047 cross_compiling=yes
4048 else
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "cannot run C compiled programs.
4052 If you meant to cross compile, use \`--host'.
4053 See \`config.log' for more details" "$LINENO" 5; }
4054 fi
4055 fi
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4058 $as_echo "$cross_compiling" >&6; }
4059
4060 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4061 ac_clean_files=$ac_clean_files_save
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4063 $as_echo_n "checking for suffix of object files... " >&6; }
4064 if ${ac_cv_objext+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 int
4071 main ()
4072 {
4073
4074 ;
4075 return 0;
4076 }
4077 _ACEOF
4078 rm -f conftest.o conftest.obj
4079 if { { ac_try="$ac_compile"
4080 case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085 $as_echo "$ac_try_echo"; } >&5
4086 (eval "$ac_compile") 2>&5
4087 ac_status=$?
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }; then :
4090 for ac_file in conftest.o conftest.obj conftest.*; do
4091 test -f "$ac_file" || continue;
4092 case $ac_file in
4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4095 break;;
4096 esac
4097 done
4098 else
4099 $as_echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104 as_fn_error $? "cannot compute suffix of object files: cannot compile
4105 See \`config.log' for more details" "$LINENO" 5; }
4106 fi
4107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4110 $as_echo "$ac_cv_objext" >&6; }
4111 OBJEXT=$ac_cv_objext
4112 ac_objext=$OBJEXT
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4114 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4115 if ${ac_cv_c_compiler_gnu+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main ()
4123 {
4124 #ifndef __GNUC__
4125 choke me
4126 #endif
4127
4128 ;
4129 return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133 ac_compiler_gnu=yes
4134 else
4135 ac_compiler_gnu=no
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4139
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4142 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4143 if test $ac_compiler_gnu = yes; then
4144 GCC=yes
4145 else
4146 GCC=
4147 fi
4148 ac_test_CFLAGS=${CFLAGS+set}
4149 ac_save_CFLAGS=$CFLAGS
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4151 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4152 if ${ac_cv_prog_cc_g+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 ac_save_c_werror_flag=$ac_c_werror_flag
4156 ac_c_werror_flag=yes
4157 ac_cv_prog_cc_g=no
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161
4162 int
4163 main ()
4164 {
4165
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4172 else
4173 CFLAGS=""
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 int
4178 main ()
4179 {
4180
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186
4187 else
4188 ac_c_werror_flag=$ac_save_c_werror_flag
4189 CFLAGS="-g"
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192
4193 int
4194 main ()
4195 {
4196
4197 ;
4198 return 0;
4199 }
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_prog_cc_g=yes
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4212 $as_echo "$ac_cv_prog_cc_g" >&6; }
4213 if test "$ac_test_CFLAGS" = set; then
4214 CFLAGS=$ac_save_CFLAGS
4215 elif test $ac_cv_prog_cc_g = yes; then
4216 if test "$GCC" = yes; then
4217 CFLAGS="-g -O2"
4218 else
4219 CFLAGS="-g"
4220 fi
4221 else
4222 if test "$GCC" = yes; then
4223 CFLAGS="-O2"
4224 else
4225 CFLAGS=
4226 fi
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4230 if ${ac_cv_prog_cc_c89+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 ac_cv_prog_cc_c89=no
4234 ac_save_CC=$CC
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <stdarg.h>
4238 #include <stdio.h>
4239 struct stat;
4240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4241 struct buf { int x; };
4242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4243 static char *e (p, i)
4244 char **p;
4245 int i;
4246 {
4247 return p[i];
4248 }
4249 static char *f (char * (*g) (char **, int), char **p, ...)
4250 {
4251 char *s;
4252 va_list v;
4253 va_start (v,p);
4254 s = g (p, va_arg (v,int));
4255 va_end (v);
4256 return s;
4257 }
4258
4259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4260 function prototypes and stuff, but not '\xHH' hex character constants.
4261 These don't provoke an error unfortunately, instead are silently treated
4262 as 'x'. The following induces an error, until -std is added to get
4263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4264 array size at least. It's necessary to write '\x00'==0 to get something
4265 that's true only with -std. */
4266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4267
4268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4269 inside strings and character constants. */
4270 #define FOO(x) 'x'
4271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4272
4273 int test (int i, double x);
4274 struct s1 {int (*f) (int a);};
4275 struct s2 {int (*f) (double a);};
4276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277 int argc;
4278 char **argv;
4279 int
4280 main ()
4281 {
4282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289 do
4290 CC="$ac_save_CC $ac_arg"
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_prog_cc_c89=$ac_arg
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext
4295 test "x$ac_cv_prog_cc_c89" != "xno" && break
4296 done
4297 rm -f conftest.$ac_ext
4298 CC=$ac_save_CC
4299
4300 fi
4301 # AC_CACHE_VAL
4302 case "x$ac_cv_prog_cc_c89" in
4303 x)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 $as_echo "none needed" >&6; } ;;
4306 xno)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4308 $as_echo "unsupported" >&6; } ;;
4309 *)
4310 CC="$CC $ac_cv_prog_cc_c89"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4312 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4313 esac
4314 if test "x$ac_cv_prog_cc_c89" != xno; then :
4315
4316 fi
4317
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4330 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4331 if ${am_cv_prog_cc_c_o+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main ()
4339 {
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 # Make sure it works both with $CC and with simple cc.
4346 # Following AC_PROG_CC_C_O, we do the test twice because some
4347 # compilers refuse to overwrite an existing .o file with -o,
4348 # though they will create one.
4349 am_cv_prog_cc_c_o=yes
4350 for am_i in 1 2; do
4351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } \
4356 && test -f conftest2.$ac_objext; then
4357 : OK
4358 else
4359 am_cv_prog_cc_c_o=no
4360 break
4361 fi
4362 done
4363 rm -f core conftest*
4364 unset am_i
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4367 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4368 if test "$am_cv_prog_cc_c_o" != yes; then
4369 # Losing compiler, so override with the script.
4370 # FIXME: It is wrong to rewrite CC.
4371 # But if we don't then we get into trouble of one sort or another.
4372 # A longer-term fix would be to have automake use am__CC in this case,
4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374 CC="$am_aux_dir/compile $CC"
4375 fi
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381
4382
4383 depcc="$CC" am_compiler_list=
4384
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4386 $as_echo_n "checking dependency style of $depcc... " >&6; }
4387 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391 # We make a subdir and do the tests there. Otherwise we can end up
4392 # making bogus files that we don't know about and never remove. For
4393 # instance it was reported that on HP-UX the gcc test will end up
4394 # making a dummy file named 'D' -- because '-MD' means "put the output
4395 # in D".
4396 rm -rf conftest.dir
4397 mkdir conftest.dir
4398 # Copy depcomp to subdir because otherwise we won't find it if we're
4399 # using a relative directory.
4400 cp "$am_depcomp" conftest.dir
4401 cd conftest.dir
4402 # We will build objects and dependencies in a subdirectory because
4403 # it helps to detect inapplicable dependency modes. For instance
4404 # both Tru64's cc and ICC support -MD to output dependencies as a
4405 # side effect of compilation, but ICC will put the dependencies in
4406 # the current directory while Tru64 will put them in the object
4407 # directory.
4408 mkdir sub
4409
4410 am_cv_CC_dependencies_compiler_type=none
4411 if test "$am_compiler_list" = ""; then
4412 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4413 fi
4414 am__universal=false
4415 case " $depcc " in #(
4416 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4417 esac
4418
4419 for depmode in $am_compiler_list; do
4420 # Setup a source with many dependencies, because some compilers
4421 # like to wrap large dependency lists on column 80 (with \), and
4422 # we should not choose a depcomp mode which is confused by this.
4423 #
4424 # We need to recreate these files for each test, as the compiler may
4425 # overwrite some of them when testing with obscure command lines.
4426 # This happens at least with the AIX C compiler.
4427 : > sub/conftest.c
4428 for i in 1 2 3 4 5 6; do
4429 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4430 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4431 # Solaris 10 /bin/sh.
4432 echo '/* dummy */' > sub/conftst$i.h
4433 done
4434 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4435
4436 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4437 # mode. It turns out that the SunPro C++ compiler does not properly
4438 # handle '-M -o', and we need to detect this. Also, some Intel
4439 # versions had trouble with output in subdirs.
4440 am__obj=sub/conftest.${OBJEXT-o}
4441 am__minus_obj="-o $am__obj"
4442 case $depmode in
4443 gcc)
4444 # This depmode causes a compiler race in universal mode.
4445 test "$am__universal" = false || continue
4446 ;;
4447 nosideeffect)
4448 # After this tag, mechanisms are not by side-effect, so they'll
4449 # only be used when explicitly requested.
4450 if test "x$enable_dependency_tracking" = xyes; then
4451 continue
4452 else
4453 break
4454 fi
4455 ;;
4456 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4457 # This compiler won't grok '-c -o', but also, the minuso test has
4458 # not run yet. These depmodes are late enough in the game, and
4459 # so weak that their functioning should not be impacted.
4460 am__obj=conftest.${OBJEXT-o}
4461 am__minus_obj=
4462 ;;
4463 none) break ;;
4464 esac
4465 if depmode=$depmode \
4466 source=sub/conftest.c object=$am__obj \
4467 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4468 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4469 >/dev/null 2>conftest.err &&
4470 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4472 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4474 # icc doesn't choke on unknown options, it will just issue warnings
4475 # or remarks (even with -Werror). So we grep stderr for any message
4476 # that says an option was ignored or not supported.
4477 # When given -MP, icc 7.0 and 7.1 complain thusly:
4478 # icc: Command line warning: ignoring option '-M'; no argument required
4479 # The diagnosis changed in icc 8.0:
4480 # icc: Command line remark: option '-MP' not supported
4481 if (grep 'ignoring option' conftest.err ||
4482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4483 am_cv_CC_dependencies_compiler_type=$depmode
4484 break
4485 fi
4486 fi
4487 done
4488
4489 cd ..
4490 rm -rf conftest.dir
4491 else
4492 am_cv_CC_dependencies_compiler_type=none
4493 fi
4494
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4497 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4499
4500 if
4501 test "x$enable_dependency_tracking" != xno \
4502 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4503 am__fastdepCC_TRUE=
4504 am__fastdepCC_FALSE='#'
4505 else
4506 am__fastdepCC_TRUE='#'
4507 am__fastdepCC_FALSE=
4508 fi
4509
4510
4511
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4518 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4519 # On Suns, sometimes $CPP names a directory.
4520 if test -n "$CPP" && test -d "$CPP"; then
4521 CPP=
4522 fi
4523 if test -z "$CPP"; then
4524 if ${ac_cv_prog_CPP+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 # Double quotes because CPP needs to be expanded
4528 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4529 do
4530 ac_preproc_ok=false
4531 for ac_c_preproc_warn_flag in '' yes
4532 do
4533 # Use a header file that comes with gcc, so configuring glibc
4534 # with a fresh cross-compiler works.
4535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536 # <limits.h> exists even on freestanding compilers.
4537 # On the NeXT, cc -E runs the code through the compiler's parser,
4538 # not just through cpp. "Syntax error" is here to catch this case.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541 #ifdef __STDC__
4542 # include <limits.h>
4543 #else
4544 # include <assert.h>
4545 #endif
4546 Syntax error
4547 _ACEOF
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549
4550 else
4551 # Broken: fails on valid input.
4552 continue
4553 fi
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4555
4556 # OK, works on sane cases. Now check whether nonexistent headers
4557 # can be detected and how.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <ac_nonexistent.h>
4561 _ACEOF
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4563 # Broken: success on invalid input.
4564 continue
4565 else
4566 # Passes both tests.
4567 ac_preproc_ok=:
4568 break
4569 fi
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4571
4572 done
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.i conftest.err conftest.$ac_ext
4575 if $ac_preproc_ok; then :
4576 break
4577 fi
4578
4579 done
4580 ac_cv_prog_CPP=$CPP
4581
4582 fi
4583 CPP=$ac_cv_prog_CPP
4584 else
4585 ac_cv_prog_CPP=$CPP
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4588 $as_echo "$CPP" >&6; }
4589 ac_preproc_ok=false
4590 for ac_c_preproc_warn_flag in '' yes
4591 do
4592 # Use a header file that comes with gcc, so configuring glibc
4593 # with a fresh cross-compiler works.
4594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 # <limits.h> exists even on freestanding compilers.
4596 # On the NeXT, cc -E runs the code through the compiler's parser,
4597 # not just through cpp. "Syntax error" is here to catch this case.
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #ifdef __STDC__
4601 # include <limits.h>
4602 #else
4603 # include <assert.h>
4604 #endif
4605 Syntax error
4606 _ACEOF
4607 if ac_fn_c_try_cpp "$LINENO"; then :
4608
4609 else
4610 # Broken: fails on valid input.
4611 continue
4612 fi
4613 rm -f conftest.err conftest.i conftest.$ac_ext
4614
4615 # OK, works on sane cases. Now check whether nonexistent headers
4616 # can be detected and how.
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <ac_nonexistent.h>
4620 _ACEOF
4621 if ac_fn_c_try_cpp "$LINENO"; then :
4622 # Broken: success on invalid input.
4623 continue
4624 else
4625 # Passes both tests.
4626 ac_preproc_ok=:
4627 break
4628 fi
4629 rm -f conftest.err conftest.i conftest.$ac_ext
4630
4631 done
4632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4633 rm -f conftest.i conftest.err conftest.$ac_ext
4634 if $ac_preproc_ok; then :
4635
4636 else
4637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4640 See \`config.log' for more details" "$LINENO" 5; }
4641 fi
4642
4643 ac_ext=c
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4651 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4652 if ${ac_cv_path_GREP+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -z "$GREP"; then
4656 ac_path_GREP_found=false
4657 # Loop through the user's path and test for each of PROGNAME-LIST
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_prog in grep ggrep; do
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4666 as_fn_executable_p "$ac_path_GREP" || continue
4667 # Check for GNU ac_path_GREP and select it if it is found.
4668 # Check for GNU $ac_path_GREP
4669 case `"$ac_path_GREP" --version 2>&1` in
4670 *GNU*)
4671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4672 *)
4673 ac_count=0
4674 $as_echo_n 0123456789 >"conftest.in"
4675 while :
4676 do
4677 cat "conftest.in" "conftest.in" >"conftest.tmp"
4678 mv "conftest.tmp" "conftest.in"
4679 cp "conftest.in" "conftest.nl"
4680 $as_echo 'GREP' >> "conftest.nl"
4681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4683 as_fn_arith $ac_count + 1 && ac_count=$as_val
4684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4685 # Best one so far, save it but keep looking for a better one
4686 ac_cv_path_GREP="$ac_path_GREP"
4687 ac_path_GREP_max=$ac_count
4688 fi
4689 # 10*(2^10) chars as input seems more than enough
4690 test $ac_count -gt 10 && break
4691 done
4692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 esac
4694
4695 $ac_path_GREP_found && break 3
4696 done
4697 done
4698 done
4699 IFS=$as_save_IFS
4700 if test -z "$ac_cv_path_GREP"; then
4701 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4702 fi
4703 else
4704 ac_cv_path_GREP=$GREP
4705 fi
4706
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4709 $as_echo "$ac_cv_path_GREP" >&6; }
4710 GREP="$ac_cv_path_GREP"
4711
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4714 $as_echo_n "checking for egrep... " >&6; }
4715 if ${ac_cv_path_EGREP+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4719 then ac_cv_path_EGREP="$GREP -E"
4720 else
4721 if test -z "$EGREP"; then
4722 ac_path_EGREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_prog in egrep; do
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4732 as_fn_executable_p "$ac_path_EGREP" || continue
4733 # Check for GNU ac_path_EGREP and select it if it is found.
4734 # Check for GNU $ac_path_EGREP
4735 case `"$ac_path_EGREP" --version 2>&1` in
4736 *GNU*)
4737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4738 *)
4739 ac_count=0
4740 $as_echo_n 0123456789 >"conftest.in"
4741 while :
4742 do
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo 'EGREP' >> "conftest.nl"
4747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749 as_fn_arith $ac_count + 1 && ac_count=$as_val
4750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_EGREP="$ac_path_EGREP"
4753 ac_path_EGREP_max=$ac_count
4754 fi
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4757 done
4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759 esac
4760
4761 $ac_path_EGREP_found && break 3
4762 done
4763 done
4764 done
4765 IFS=$as_save_IFS
4766 if test -z "$ac_cv_path_EGREP"; then
4767 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768 fi
4769 else
4770 ac_cv_path_EGREP=$EGREP
4771 fi
4772
4773 fi
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4776 $as_echo "$ac_cv_path_EGREP" >&6; }
4777 EGREP="$ac_cv_path_EGREP"
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4781 $as_echo_n "checking for ANSI C header files... " >&6; }
4782 if ${ac_cv_header_stdc+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #include <stdlib.h>
4788 #include <stdarg.h>
4789 #include <string.h>
4790 #include <float.h>
4791
4792 int
4793 main ()
4794 {
4795
4796 ;
4797 return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_header_stdc=yes
4802 else
4803 ac_cv_header_stdc=no
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806
4807 if test $ac_cv_header_stdc = yes; then
4808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 #include <string.h>
4812
4813 _ACEOF
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815 $EGREP "memchr" >/dev/null 2>&1; then :
4816
4817 else
4818 ac_cv_header_stdc=no
4819 fi
4820 rm -f conftest*
4821
4822 fi
4823
4824 if test $ac_cv_header_stdc = yes; then
4825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <stdlib.h>
4829
4830 _ACEOF
4831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832 $EGREP "free" >/dev/null 2>&1; then :
4833
4834 else
4835 ac_cv_header_stdc=no
4836 fi
4837 rm -f conftest*
4838
4839 fi
4840
4841 if test $ac_cv_header_stdc = yes; then
4842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4843 if test "$cross_compiling" = yes; then :
4844 :
4845 else
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4848 #include <ctype.h>
4849 #include <stdlib.h>
4850 #if ((' ' & 0x0FF) == 0x020)
4851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4853 #else
4854 # define ISLOWER(c) \
4855 (('a' <= (c) && (c) <= 'i') \
4856 || ('j' <= (c) && (c) <= 'r') \
4857 || ('s' <= (c) && (c) <= 'z'))
4858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4859 #endif
4860
4861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4862 int
4863 main ()
4864 {
4865 int i;
4866 for (i = 0; i < 256; i++)
4867 if (XOR (islower (i), ISLOWER (i))
4868 || toupper (i) != TOUPPER (i))
4869 return 2;
4870 return 0;
4871 }
4872 _ACEOF
4873 if ac_fn_c_try_run "$LINENO"; then :
4874
4875 else
4876 ac_cv_header_stdc=no
4877 fi
4878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4879 conftest.$ac_objext conftest.beam conftest.$ac_ext
4880 fi
4881
4882 fi
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4885 $as_echo "$ac_cv_header_stdc" >&6; }
4886 if test $ac_cv_header_stdc = yes; then
4887
4888 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4889
4890 fi
4891
4892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4893 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4894 inttypes.h stdint.h unistd.h
4895 do :
4896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4897 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4898 "
4899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4900 cat >>confdefs.h <<_ACEOF
4901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4902 _ACEOF
4903
4904 fi
4905
4906 done
4907
4908
4909
4910 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4911 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4912 MINIX=yes
4913 else
4914 MINIX=
4915 fi
4916
4917
4918 if test "$MINIX" = yes; then
4919
4920 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4921
4922
4923 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4924
4925
4926 $as_echo "#define _MINIX 1" >>confdefs.h
4927
4928 fi
4929
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4932 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4933 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938
4939 # define __EXTENSIONS__ 1
4940 $ac_includes_default
4941 int
4942 main ()
4943 {
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950 ac_cv_safe_to_define___extensions__=yes
4951 else
4952 ac_cv_safe_to_define___extensions__=no
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 fi
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4957 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4958 test $ac_cv_safe_to_define___extensions__ = yes &&
4959 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4960
4961 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4962
4963 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4964
4965 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4966
4967 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4968
4969
4970
4971 # PR 14072
4972
4973
4974
4975 # Check whether --with-sysroot was given.
4976 if test "${with_sysroot+set}" = set; then :
4977 withval=$with_sysroot; sysroot=$withval
4978 else
4979 sysroot=no
4980 fi
4981
4982
4983 if test "$sysroot" = "yes"; then
4984 sysroot='${exec_prefix}/${target_alias}/sys-root'
4985 elif test "$sysroot" = "no"; then
4986 sysroot=
4987 fi
4988
4989 sysroot_relocatable=0
4990 if test -n "$sysroot"; then
4991 case "$sysroot" in
4992 "${prefix}" | "${prefix}/"* | \
4993 "${exec_prefix}" | "${exec_prefix}/"* | \
4994 '${prefix}' | '${prefix}/'*| \
4995 '${exec_prefix}' | '${exec_prefix}/'*)
4996 sysroot_relocatable=1
4997 ;;
4998 esac
4999 fi
5000
5001
5002 cat >>confdefs.h <<_ACEOF
5003 #define TARGET_SYSTEM_ROOT "$sysroot"
5004 _ACEOF
5005
5006
5007 cat >>confdefs.h <<_ACEOF
5008 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5009 _ACEOF
5010
5011
5012
5013 installed_linker=ld.gold
5014 # Check whether --enable-gold was given.
5015 if test "${enable_gold+set}" = set; then :
5016 enableval=$enable_gold; case "${enableval}" in
5017 default)
5018 install_as_default=yes
5019 ;;
5020 yes)
5021 if test x${enable_ld} = xno; then
5022 install_as_default=yes
5023 fi
5024 ;;
5025 esac
5026 else
5027 install_as_default=no
5028 fi
5029
5030
5031
5032
5033
5034 maybe_plugins=no
5035 for ac_header in dlfcn.h
5036 do :
5037 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5038 "
5039 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5040 cat >>confdefs.h <<_ACEOF
5041 #define HAVE_DLFCN_H 1
5042 _ACEOF
5043 maybe_plugins=yes
5044 fi
5045
5046 done
5047
5048 for ac_header in windows.h
5049 do :
5050 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5051 "
5052 if test "x$ac_cv_header_windows_h" = xyes; then :
5053 cat >>confdefs.h <<_ACEOF
5054 #define HAVE_WINDOWS_H 1
5055 _ACEOF
5056 maybe_plugins=yes
5057 fi
5058
5059 done
5060
5061
5062 # Check whether --enable-plugins was given.
5063 if test "${enable_plugins+set}" = set; then :
5064 enableval=$enable_plugins; case "${enableval}" in
5065 no) plugins=no ;;
5066 *) plugins=yes
5067 if test "$maybe_plugins" != "yes" ; then
5068 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5069 fi ;;
5070 esac
5071 else
5072 plugins=$maybe_plugins
5073
5074 fi
5075
5076 if test "$plugins" = "yes"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5078 $as_echo_n "checking for library containing dlsym... " >&6; }
5079 if ${ac_cv_search_dlsym+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 ac_func_search_save_LIBS=$LIBS
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085
5086 /* Override any GCC internal prototype to avoid an error.
5087 Use char because int might match the return type of a GCC
5088 builtin and then its argument prototype would still apply. */
5089 #ifdef __cplusplus
5090 extern "C"
5091 #endif
5092 char dlsym ();
5093 int
5094 main ()
5095 {
5096 return dlsym ();
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 for ac_lib in '' dl; do
5102 if test -z "$ac_lib"; then
5103 ac_res="none required"
5104 else
5105 ac_res=-l$ac_lib
5106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5107 fi
5108 if ac_fn_c_try_link "$LINENO"; then :
5109 ac_cv_search_dlsym=$ac_res
5110 fi
5111 rm -f core conftest.err conftest.$ac_objext \
5112 conftest$ac_exeext
5113 if ${ac_cv_search_dlsym+:} false; then :
5114 break
5115 fi
5116 done
5117 if ${ac_cv_search_dlsym+:} false; then :
5118
5119 else
5120 ac_cv_search_dlsym=no
5121 fi
5122 rm conftest.$ac_ext
5123 LIBS=$ac_func_search_save_LIBS
5124 fi
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5126 $as_echo "$ac_cv_search_dlsym" >&6; }
5127 ac_res=$ac_cv_search_dlsym
5128 if test "$ac_res" != no; then :
5129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5130
5131 fi
5132
5133 fi
5134
5135 if test "$plugins" = "yes"; then
5136
5137 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5138
5139 fi
5140 if test "$plugins" = "yes"; then
5141 PLUGINS_TRUE=
5142 PLUGINS_FALSE='#'
5143 else
5144 PLUGINS_TRUE='#'
5145 PLUGINS_FALSE=
5146 fi
5147
5148
5149 # Decide if -z relro should be enabled in ELF linker by default.
5150 ac_default_ld_z_relro=unset
5151 # Provide a configure time option to override our default.
5152 # Check whether --enable-relro was given.
5153 if test "${enable_relro+set}" = set; then :
5154 enableval=$enable_relro; case "${enableval}" in
5155 yes) ac_default_ld_z_relro=1 ;;
5156 no) ac_default_ld_z_relro=0 ;;
5157 esac
5158 fi
5159 if test "${ac_default_ld_z_relro}" = unset; then
5160 ac_default_ld_z_relro=1
5161 fi
5162
5163 cat >>confdefs.h <<_ACEOF
5164 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5165 _ACEOF
5166
5167
5168 # Check whether --enable-targets was given.
5169 if test "${enable_targets+set}" = set; then :
5170 enableval=$enable_targets; case "${enableval}" in
5171 yes | "")
5172 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5173 ;;
5174 no)
5175 enable_targets=
5176 ;;
5177 *)
5178 enable_targets=$enableval
5179 ;;
5180 esac
5181 else
5182 # For now, enable all targets by default
5183 enable_targets=all
5184
5185 fi
5186
5187
5188 # Canonicalize the enabled targets.
5189 if test -n "$enable_targets"; then
5190 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5191 result=`$ac_config_sub $targ 2>/dev/null`
5192 if test -n "$result"; then
5193 canon_targets="$canon_targets $result"
5194 else
5195 # Permit unrecognized target names, like "all".
5196 canon_targets="$canon_targets $targ"
5197 fi
5198 done
5199 fi
5200
5201 # Decide which "--hash-style" to use by default
5202 # Provide a configure time option to override our default.
5203 # Check whether --enable-default-hash-style was given.
5204 if test "${enable_default_hash_style+set}" = set; then :
5205 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5206 sysv | gnu | both) ;;
5207 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5208 esac
5209 else
5210 case "${target}" in
5211 # Enable gnu hash only on GNU targets, but not mips
5212 mips*-*-*) enable_default_hash_style=sysv ;;
5213 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5214 *) enable_default_hash_style=sysv ;;
5215 esac
5216 fi
5217
5218
5219
5220 cat >>confdefs.h <<_ACEOF
5221 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5222 _ACEOF
5223
5224
5225 # See which specific instantiations we need.
5226 targetobjs=
5227 all_targets=
5228 default_machine=
5229 default_size=
5230 default_big_endian=
5231 default_osabi=ELFOSABI_NONE
5232 targ_32_little=
5233 targ_32_big=
5234 targ_64_little=
5235 targ_64_big=
5236 for targ in $target $canon_targets; do
5237 if test "$targ" = "all"; then
5238 targ_32_little=yes
5239 targ_32_big=yes
5240 targ_64_little=yes
5241 targ_64_big=yes
5242 all_targets=yes
5243 else
5244 . ${srcdir}/configure.tgt
5245
5246 if test "$targ_obj" = "UNKNOWN"; then
5247 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5248 else
5249 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5250 if test "$targ_extra_obj" != ""; then
5251 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5252 fi
5253 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5254 if test "$targ_big_endian" = "true" \
5255 -o "$targ_extra_big_endian" = "true"; then
5256 targ_32_big=yes
5257 fi
5258 if test "$targ_big_endian" = "false" \
5259 -o "$targ_extra_big_endian" = "false"; then
5260 targ_32_little=yes
5261 fi
5262 fi
5263 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5264 if test "$targ_big_endian" = "true" \
5265 -o "$targ_extra_big_endian" = "true"; then
5266 targ_64_big=yes
5267 fi
5268 if test "$targ_big_endian" = "false" \
5269 -o "$targ_extra_big_endian" = "false"; then
5270 targ_64_little=yes
5271 fi
5272 fi
5273
5274 if test "$target" = "$targ"; then
5275 default_machine=$targ_machine
5276 default_size=$targ_size
5277 default_big_endian=$targ_big_endian
5278 default_osabi=$targ_osabi
5279
5280 if test "$targ_obj" = "aarch64"; then
5281 DEFAULT_TARGET_AARCH64_TRUE=
5282 DEFAULT_TARGET_AARCH64_FALSE='#'
5283 else
5284 DEFAULT_TARGET_AARCH64_TRUE='#'
5285 DEFAULT_TARGET_AARCH64_FALSE=
5286 fi
5287
5288 if test "$targ_obj" = "arm"; then
5289 DEFAULT_TARGET_ARM_TRUE=
5290 DEFAULT_TARGET_ARM_FALSE='#'
5291 else
5292 DEFAULT_TARGET_ARM_TRUE='#'
5293 DEFAULT_TARGET_ARM_FALSE=
5294 fi
5295
5296 if test "$targ_obj" = "i386"; then
5297 DEFAULT_TARGET_I386_TRUE=
5298 DEFAULT_TARGET_I386_FALSE='#'
5299 else
5300 DEFAULT_TARGET_I386_TRUE='#'
5301 DEFAULT_TARGET_I386_FALSE=
5302 fi
5303
5304 if test "$targ_obj" = "powerpc"; then
5305 DEFAULT_TARGET_POWERPC_TRUE=
5306 DEFAULT_TARGET_POWERPC_FALSE='#'
5307 else
5308 DEFAULT_TARGET_POWERPC_TRUE='#'
5309 DEFAULT_TARGET_POWERPC_FALSE=
5310 fi
5311
5312 if test "$targ_obj" = "sparc"; then
5313 DEFAULT_TARGET_SPARC_TRUE=
5314 DEFAULT_TARGET_SPARC_FALSE='#'
5315 else
5316 DEFAULT_TARGET_SPARC_TRUE='#'
5317 DEFAULT_TARGET_SPARC_FALSE=
5318 fi
5319
5320 if test "$targ_obj" = "s390"; then
5321 DEFAULT_TARGET_S390_TRUE=
5322 DEFAULT_TARGET_S390_FALSE='#'
5323 else
5324 DEFAULT_TARGET_S390_TRUE='#'
5325 DEFAULT_TARGET_S390_FALSE=
5326 fi
5327
5328 target_x86_64=no
5329 target_x32=no
5330 if test "$targ_obj" = "x86_64"; then
5331 case "$target" in
5332 x86_64*-linux-gnux32)
5333 target_x32=yes
5334 default_size=32
5335 ;;
5336 *)
5337 target_x86_64=yes
5338 ;;
5339 esac
5340 fi
5341 if test "$target_x86_64" = "yes"; then
5342 DEFAULT_TARGET_X86_64_TRUE=
5343 DEFAULT_TARGET_X86_64_FALSE='#'
5344 else
5345 DEFAULT_TARGET_X86_64_TRUE='#'
5346 DEFAULT_TARGET_X86_64_FALSE=
5347 fi
5348
5349 if test "$target_x32" = "yes"; then
5350 DEFAULT_TARGET_X32_TRUE=
5351 DEFAULT_TARGET_X32_FALSE='#'
5352 else
5353 DEFAULT_TARGET_X32_TRUE='#'
5354 DEFAULT_TARGET_X32_FALSE=
5355 fi
5356
5357 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5358 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5359 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5360 else
5361 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5362 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5363 fi
5364
5365 if test "$targ_obj" = "tilegx"; then
5366 DEFAULT_TARGET_TILEGX_TRUE=
5367 DEFAULT_TARGET_TILEGX_FALSE='#'
5368 else
5369 DEFAULT_TARGET_TILEGX_TRUE='#'
5370 DEFAULT_TARGET_TILEGX_FALSE=
5371 fi
5372
5373 if test "$targ_obj" = "mips"; then
5374 DEFAULT_TARGET_MIPS_TRUE=
5375 DEFAULT_TARGET_MIPS_FALSE='#'
5376 else
5377 DEFAULT_TARGET_MIPS_TRUE='#'
5378 DEFAULT_TARGET_MIPS_FALSE=
5379 fi
5380
5381 DEFAULT_TARGET=${targ_obj}
5382
5383 fi
5384 fi
5385 fi
5386 done
5387
5388 # Remove any duplicates.
5389 to=""
5390 for t in $targetobjs; do
5391 case " $to " in
5392 *" $t "*) ;;
5393 *) to="$to $t" ;;
5394 esac
5395 done
5396 targetobjs=$to
5397
5398 if test -n "$targ_32_little"; then
5399
5400 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5401
5402 fi
5403 if test -n "$targ_32_big"; then
5404
5405 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5406
5407 fi
5408 if test -n "$targ_64_little"; then
5409
5410 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5411
5412 fi
5413 if test -n "$targ_64_big"; then
5414
5415 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5416
5417 fi
5418
5419 if test -n "$all_targets"; then
5420 TARGETOBJS='$(ALL_TARGETOBJS)'
5421 else
5422 TARGETOBJS="$targetobjs"
5423 fi
5424
5425
5426
5427 cat >>confdefs.h <<_ACEOF
5428 #define GOLD_DEFAULT_MACHINE $default_machine
5429 _ACEOF
5430
5431
5432 cat >>confdefs.h <<_ACEOF
5433 #define GOLD_DEFAULT_SIZE $default_size
5434 _ACEOF
5435
5436
5437 cat >>confdefs.h <<_ACEOF
5438 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5439 _ACEOF
5440
5441
5442 cat >>confdefs.h <<_ACEOF
5443 #define GOLD_DEFAULT_OSABI $default_osabi
5444 _ACEOF
5445
5446
5447
5448 # Check whether --with-lib-path was given.
5449 if test "${with_lib_path+set}" = set; then :
5450 withval=$with_lib_path; case "$withval" in
5451 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5452 no) LIB_PATH='""' ;;
5453 *) LIB_PATH='"'"$withval"'"' ;;
5454 esac
5455 else
5456 LIB_PATH='"::DEFAULT::"'
5457 fi
5458
5459
5460 cat >>confdefs.h <<_ACEOF
5461 #define LIB_PATH $LIB_PATH
5462 _ACEOF
5463
5464 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5465
5466 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5467
5468 fi
5469
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5472 set dummy ${ac_tool_prefix}nm; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_NM+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$NM"; then
5479 ac_cv_prog_NM="$NM" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_NM="${ac_tool_prefix}nm"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 NM=$ac_cv_prog_NM
5499 if test -n "$NM"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5501 $as_echo "$NM" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 fi
5509 if test -z "$ac_cv_prog_NM"; then
5510 ac_ct_NM=$NM
5511 # Extract the first word of "nm", so it can be a program name with args.
5512 set dummy nm; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -n "$ac_ct_NM"; then
5519 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_NM="nm"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536 fi
5537 fi
5538 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5539 if test -n "$ac_ct_NM"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5541 $as_echo "$ac_ct_NM" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547 if test "x$ac_ct_NM" = x; then
5548 NM=""
5549 else
5550 case $cross_compiling:$ac_tool_warned in
5551 yes:)
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned=yes ;;
5555 esac
5556 NM=$ac_ct_NM
5557 fi
5558 else
5559 NM="$ac_cv_prog_NM"
5560 fi
5561
5562
5563 ac_ext=c
5564 ac_cpp='$CPP $CPPFLAGS'
5565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_CC+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$CC"; then
5577 ac_cv_prog_CC="$CC" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 CC=$ac_cv_prog_CC
5597 if test -n "$CC"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5599 $as_echo "$CC" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 fi
5607 if test -z "$ac_cv_prog_CC"; then
5608 ac_ct_CC=$CC
5609 # Extract the first word of "gcc", so it can be a program name with args.
5610 set dummy gcc; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$ac_ct_CC"; then
5617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_CC="gcc"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5637 if test -n "$ac_ct_CC"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5639 $as_echo "$ac_ct_CC" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645 if test "x$ac_ct_CC" = x; then
5646 CC=""
5647 else
5648 case $cross_compiling:$ac_tool_warned in
5649 yes:)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned=yes ;;
5653 esac
5654 CC=$ac_ct_CC
5655 fi
5656 else
5657 CC="$ac_cv_prog_CC"
5658 fi
5659
5660 if test -z "$CC"; then
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5663 set dummy ${ac_tool_prefix}cc; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_CC+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$CC"; then
5670 ac_cv_prog_CC="$CC" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_CC="${ac_tool_prefix}cc"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 CC=$ac_cv_prog_CC
5690 if test -n "$CC"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5692 $as_echo "$CC" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699 fi
5700 fi
5701 if test -z "$CC"; then
5702 # Extract the first word of "cc", so it can be a program name with args.
5703 set dummy cc; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_prog_CC+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$CC"; then
5710 ac_cv_prog_CC="$CC" # Let the user override the test.
5711 else
5712 ac_prog_rejected=no
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5721 ac_prog_rejected=yes
5722 continue
5723 fi
5724 ac_cv_prog_CC="cc"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728 done
5729 done
5730 IFS=$as_save_IFS
5731
5732 if test $ac_prog_rejected = yes; then
5733 # We found a bogon in the path, so make sure we never use it.
5734 set dummy $ac_cv_prog_CC
5735 shift
5736 if test $# != 0; then
5737 # We chose a different compiler from the bogus one.
5738 # However, it has the same basename, so the bogon will be chosen
5739 # first if we set CC to just the basename; use the full file name.
5740 shift
5741 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5742 fi
5743 fi
5744 fi
5745 fi
5746 CC=$ac_cv_prog_CC
5747 if test -n "$CC"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5749 $as_echo "$CC" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5753 fi
5754
5755
5756 fi
5757 if test -z "$CC"; then
5758 if test -n "$ac_tool_prefix"; then
5759 for ac_prog in cl.exe
5760 do
5761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_CC+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if test -n "$CC"; then
5769 ac_cv_prog_CC="$CC" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782 done
5783 done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 CC=$ac_cv_prog_CC
5789 if test -n "$CC"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5791 $as_echo "$CC" >&6; }
5792 else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 fi
5796
5797
5798 test -n "$CC" && break
5799 done
5800 fi
5801 if test -z "$CC"; then
5802 ac_ct_CC=$CC
5803 for ac_prog in cl.exe
5804 do
5805 # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy $ac_prog; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$ac_ct_CC"; then
5813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_ac_ct_CC="$ac_prog"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5833 if test -n "$ac_ct_CC"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5835 $as_echo "$ac_ct_CC" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842 test -n "$ac_ct_CC" && break
5843 done
5844
5845 if test "x$ac_ct_CC" = x; then
5846 CC=""
5847 else
5848 case $cross_compiling:$ac_tool_warned in
5849 yes:)
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852 ac_tool_warned=yes ;;
5853 esac
5854 CC=$ac_ct_CC
5855 fi
5856 fi
5857
5858 fi
5859
5860
5861 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5863 as_fn_error $? "no acceptable C compiler found in \$PATH
5864 See \`config.log' for more details" "$LINENO" 5; }
5865
5866 # Provide some information about the compiler.
5867 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5868 set X $ac_compile
5869 ac_compiler=$2
5870 for ac_option in --version -v -V -qversion; do
5871 { { ac_try="$ac_compiler $ac_option >&5"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5877 $as_echo "$ac_try_echo"; } >&5
5878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5879 ac_status=$?
5880 if test -s conftest.err; then
5881 sed '10a\
5882 ... rest of stderr output deleted ...
5883 10q' conftest.err >conftest.er1
5884 cat conftest.er1 >&5
5885 fi
5886 rm -f conftest.er1 conftest.err
5887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888 test $ac_status = 0; }
5889 done
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5892 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5893 if ${ac_cv_c_compiler_gnu+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898
5899 int
5900 main ()
5901 {
5902 #ifndef __GNUC__
5903 choke me
5904 #endif
5905
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 if ac_fn_c_try_compile "$LINENO"; then :
5911 ac_compiler_gnu=yes
5912 else
5913 ac_compiler_gnu=no
5914 fi
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5917
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5920 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5921 if test $ac_compiler_gnu = yes; then
5922 GCC=yes
5923 else
5924 GCC=
5925 fi
5926 ac_test_CFLAGS=${CFLAGS+set}
5927 ac_save_CFLAGS=$CFLAGS
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5929 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5930 if ${ac_cv_prog_cc_g+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 ac_save_c_werror_flag=$ac_c_werror_flag
5934 ac_c_werror_flag=yes
5935 ac_cv_prog_cc_g=no
5936 CFLAGS="-g"
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939
5940 int
5941 main ()
5942 {
5943
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_compile "$LINENO"; then :
5949 ac_cv_prog_cc_g=yes
5950 else
5951 CFLAGS=""
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954
5955 int
5956 main ()
5957 {
5958
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_compile "$LINENO"; then :
5964
5965 else
5966 ac_c_werror_flag=$ac_save_c_werror_flag
5967 CFLAGS="-g"
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970
5971 int
5972 main ()
5973 {
5974
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 if ac_fn_c_try_compile "$LINENO"; then :
5980 ac_cv_prog_cc_g=yes
5981 fi
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 ac_c_werror_flag=$ac_save_c_werror_flag
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5990 $as_echo "$ac_cv_prog_cc_g" >&6; }
5991 if test "$ac_test_CFLAGS" = set; then
5992 CFLAGS=$ac_save_CFLAGS
5993 elif test $ac_cv_prog_cc_g = yes; then
5994 if test "$GCC" = yes; then
5995 CFLAGS="-g -O2"
5996 else
5997 CFLAGS="-g"
5998 fi
5999 else
6000 if test "$GCC" = yes; then
6001 CFLAGS="-O2"
6002 else
6003 CFLAGS=
6004 fi
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6007 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6008 if ${ac_cv_prog_cc_c89+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 ac_cv_prog_cc_c89=no
6012 ac_save_CC=$CC
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <stdarg.h>
6016 #include <stdio.h>
6017 struct stat;
6018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6019 struct buf { int x; };
6020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6021 static char *e (p, i)
6022 char **p;
6023 int i;
6024 {
6025 return p[i];
6026 }
6027 static char *f (char * (*g) (char **, int), char **p, ...)
6028 {
6029 char *s;
6030 va_list v;
6031 va_start (v,p);
6032 s = g (p, va_arg (v,int));
6033 va_end (v);
6034 return s;
6035 }
6036
6037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6038 function prototypes and stuff, but not '\xHH' hex character constants.
6039 These don't provoke an error unfortunately, instead are silently treated
6040 as 'x'. The following induces an error, until -std is added to get
6041 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6042 array size at least. It's necessary to write '\x00'==0 to get something
6043 that's true only with -std. */
6044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6045
6046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6047 inside strings and character constants. */
6048 #define FOO(x) 'x'
6049 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6050
6051 int test (int i, double x);
6052 struct s1 {int (*f) (int a);};
6053 struct s2 {int (*f) (double a);};
6054 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6055 int argc;
6056 char **argv;
6057 int
6058 main ()
6059 {
6060 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6061 ;
6062 return 0;
6063 }
6064 _ACEOF
6065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6066 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6067 do
6068 CC="$ac_save_CC $ac_arg"
6069 if ac_fn_c_try_compile "$LINENO"; then :
6070 ac_cv_prog_cc_c89=$ac_arg
6071 fi
6072 rm -f core conftest.err conftest.$ac_objext
6073 test "x$ac_cv_prog_cc_c89" != "xno" && break
6074 done
6075 rm -f conftest.$ac_ext
6076 CC=$ac_save_CC
6077
6078 fi
6079 # AC_CACHE_VAL
6080 case "x$ac_cv_prog_cc_c89" in
6081 x)
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6083 $as_echo "none needed" >&6; } ;;
6084 xno)
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6086 $as_echo "unsupported" >&6; } ;;
6087 *)
6088 CC="$CC $ac_cv_prog_cc_c89"
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6090 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6091 esac
6092 if test "x$ac_cv_prog_cc_c89" != xno; then :
6093
6094 fi
6095
6096 ac_ext=c
6097 ac_cpp='$CPP $CPPFLAGS'
6098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6101
6102 ac_ext=c
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6108 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6109 if ${am_cv_prog_cc_c_o+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114
6115 int
6116 main ()
6117 {
6118
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 # Make sure it works both with $CC and with simple cc.
6124 # Following AC_PROG_CC_C_O, we do the test twice because some
6125 # compilers refuse to overwrite an existing .o file with -o,
6126 # though they will create one.
6127 am_cv_prog_cc_c_o=yes
6128 for am_i in 1 2; do
6129 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6130 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } \
6134 && test -f conftest2.$ac_objext; then
6135 : OK
6136 else
6137 am_cv_prog_cc_c_o=no
6138 break
6139 fi
6140 done
6141 rm -f core conftest*
6142 unset am_i
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6145 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6146 if test "$am_cv_prog_cc_c_o" != yes; then
6147 # Losing compiler, so override with the script.
6148 # FIXME: It is wrong to rewrite CC.
6149 # But if we don't then we get into trouble of one sort or another.
6150 # A longer-term fix would be to have automake use am__CC in this case,
6151 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6152 CC="$am_aux_dir/compile $CC"
6153 fi
6154 ac_ext=c
6155 ac_cpp='$CPP $CPPFLAGS'
6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6159
6160
6161 depcc="$CC" am_compiler_list=
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6164 $as_echo_n "checking dependency style of $depcc... " >&6; }
6165 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6169 # We make a subdir and do the tests there. Otherwise we can end up
6170 # making bogus files that we don't know about and never remove. For
6171 # instance it was reported that on HP-UX the gcc test will end up
6172 # making a dummy file named 'D' -- because '-MD' means "put the output
6173 # in D".
6174 rm -rf conftest.dir
6175 mkdir conftest.dir
6176 # Copy depcomp to subdir because otherwise we won't find it if we're
6177 # using a relative directory.
6178 cp "$am_depcomp" conftest.dir
6179 cd conftest.dir
6180 # We will build objects and dependencies in a subdirectory because
6181 # it helps to detect inapplicable dependency modes. For instance
6182 # both Tru64's cc and ICC support -MD to output dependencies as a
6183 # side effect of compilation, but ICC will put the dependencies in
6184 # the current directory while Tru64 will put them in the object
6185 # directory.
6186 mkdir sub
6187
6188 am_cv_CC_dependencies_compiler_type=none
6189 if test "$am_compiler_list" = ""; then
6190 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6191 fi
6192 am__universal=false
6193 case " $depcc " in #(
6194 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6195 esac
6196
6197 for depmode in $am_compiler_list; do
6198 # Setup a source with many dependencies, because some compilers
6199 # like to wrap large dependency lists on column 80 (with \), and
6200 # we should not choose a depcomp mode which is confused by this.
6201 #
6202 # We need to recreate these files for each test, as the compiler may
6203 # overwrite some of them when testing with obscure command lines.
6204 # This happens at least with the AIX C compiler.
6205 : > sub/conftest.c
6206 for i in 1 2 3 4 5 6; do
6207 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6208 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6209 # Solaris 10 /bin/sh.
6210 echo '/* dummy */' > sub/conftst$i.h
6211 done
6212 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6213
6214 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6215 # mode. It turns out that the SunPro C++ compiler does not properly
6216 # handle '-M -o', and we need to detect this. Also, some Intel
6217 # versions had trouble with output in subdirs.
6218 am__obj=sub/conftest.${OBJEXT-o}
6219 am__minus_obj="-o $am__obj"
6220 case $depmode in
6221 gcc)
6222 # This depmode causes a compiler race in universal mode.
6223 test "$am__universal" = false || continue
6224 ;;
6225 nosideeffect)
6226 # After this tag, mechanisms are not by side-effect, so they'll
6227 # only be used when explicitly requested.
6228 if test "x$enable_dependency_tracking" = xyes; then
6229 continue
6230 else
6231 break
6232 fi
6233 ;;
6234 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6235 # This compiler won't grok '-c -o', but also, the minuso test has
6236 # not run yet. These depmodes are late enough in the game, and
6237 # so weak that their functioning should not be impacted.
6238 am__obj=conftest.${OBJEXT-o}
6239 am__minus_obj=
6240 ;;
6241 none) break ;;
6242 esac
6243 if depmode=$depmode \
6244 source=sub/conftest.c object=$am__obj \
6245 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6246 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6247 >/dev/null 2>conftest.err &&
6248 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6249 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6250 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6251 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6252 # icc doesn't choke on unknown options, it will just issue warnings
6253 # or remarks (even with -Werror). So we grep stderr for any message
6254 # that says an option was ignored or not supported.
6255 # When given -MP, icc 7.0 and 7.1 complain thusly:
6256 # icc: Command line warning: ignoring option '-M'; no argument required
6257 # The diagnosis changed in icc 8.0:
6258 # icc: Command line remark: option '-MP' not supported
6259 if (grep 'ignoring option' conftest.err ||
6260 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6261 am_cv_CC_dependencies_compiler_type=$depmode
6262 break
6263 fi
6264 fi
6265 done
6266
6267 cd ..
6268 rm -rf conftest.dir
6269 else
6270 am_cv_CC_dependencies_compiler_type=none
6271 fi
6272
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6277
6278 if
6279 test "x$enable_dependency_tracking" != xno \
6280 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6281 am__fastdepCC_TRUE=
6282 am__fastdepCC_FALSE='#'
6283 else
6284 am__fastdepCC_TRUE='#'
6285 am__fastdepCC_FALSE=
6286 fi
6287
6288
6289 ac_ext=cpp
6290 ac_cpp='$CXXCPP $CPPFLAGS'
6291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6294 if test -z "$CXX"; then
6295 if test -n "$CCC"; then
6296 CXX=$CCC
6297 else
6298 if test -n "$ac_tool_prefix"; then
6299 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6300 do
6301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_CXX+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test -n "$CXX"; then
6309 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 CXX=$ac_cv_prog_CXX
6329 if test -n "$CXX"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6331 $as_echo "$CXX" >&6; }
6332 else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 test -n "$CXX" && break
6339 done
6340 fi
6341 if test -z "$CXX"; then
6342 ac_ct_CXX=$CXX
6343 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6344 do
6345 # Extract the first word of "$ac_prog", so it can be a program name with args.
6346 set dummy $ac_prog; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_CXX"; then
6353 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_CXX="$ac_prog"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6373 if test -n "$ac_ct_CXX"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6375 $as_echo "$ac_ct_CXX" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381
6382 test -n "$ac_ct_CXX" && break
6383 done
6384
6385 if test "x$ac_ct_CXX" = x; then
6386 CXX="g++"
6387 else
6388 case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394 CXX=$ac_ct_CXX
6395 fi
6396 fi
6397
6398 fi
6399 fi
6400 # Provide some information about the compiler.
6401 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6402 set X $ac_compile
6403 ac_compiler=$2
6404 for ac_option in --version -v -V -qversion; do
6405 { { ac_try="$ac_compiler $ac_option >&5"
6406 case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409 esac
6410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6411 $as_echo "$ac_try_echo"; } >&5
6412 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6413 ac_status=$?
6414 if test -s conftest.err; then
6415 sed '10a\
6416 ... rest of stderr output deleted ...
6417 10q' conftest.err >conftest.er1
6418 cat conftest.er1 >&5
6419 fi
6420 rm -f conftest.er1 conftest.err
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }
6423 done
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6426 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6427 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432
6433 int
6434 main ()
6435 {
6436 #ifndef __GNUC__
6437 choke me
6438 #endif
6439
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_cxx_try_compile "$LINENO"; then :
6445 ac_compiler_gnu=yes
6446 else
6447 ac_compiler_gnu=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6451
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6454 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6455 if test $ac_compiler_gnu = yes; then
6456 GXX=yes
6457 else
6458 GXX=
6459 fi
6460 ac_test_CXXFLAGS=${CXXFLAGS+set}
6461 ac_save_CXXFLAGS=$CXXFLAGS
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6463 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6464 if ${ac_cv_prog_cxx_g+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6468 ac_cxx_werror_flag=yes
6469 ac_cv_prog_cxx_g=no
6470 CXXFLAGS="-g"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473
6474 int
6475 main ()
6476 {
6477
6478 ;
6479 return 0;
6480 }
6481 _ACEOF
6482 if ac_fn_cxx_try_compile "$LINENO"; then :
6483 ac_cv_prog_cxx_g=yes
6484 else
6485 CXXFLAGS=""
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488
6489 int
6490 main ()
6491 {
6492
6493 ;
6494 return 0;
6495 }
6496 _ACEOF
6497 if ac_fn_cxx_try_compile "$LINENO"; then :
6498
6499 else
6500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6501 CXXFLAGS="-g"
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504
6505 int
6506 main ()
6507 {
6508
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_cxx_try_compile "$LINENO"; then :
6514 ac_cv_prog_cxx_g=yes
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6524 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6525 if test "$ac_test_CXXFLAGS" = set; then
6526 CXXFLAGS=$ac_save_CXXFLAGS
6527 elif test $ac_cv_prog_cxx_g = yes; then
6528 if test "$GXX" = yes; then
6529 CXXFLAGS="-g -O2"
6530 else
6531 CXXFLAGS="-g"
6532 fi
6533 else
6534 if test "$GXX" = yes; then
6535 CXXFLAGS="-O2"
6536 else
6537 CXXFLAGS=
6538 fi
6539 fi
6540 ac_ext=c
6541 ac_cpp='$CPP $CPPFLAGS'
6542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546 depcc="$CXX" am_compiler_list=
6547
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6549 $as_echo_n "checking dependency style of $depcc... " >&6; }
6550 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6554 # We make a subdir and do the tests there. Otherwise we can end up
6555 # making bogus files that we don't know about and never remove. For
6556 # instance it was reported that on HP-UX the gcc test will end up
6557 # making a dummy file named 'D' -- because '-MD' means "put the output
6558 # in D".
6559 rm -rf conftest.dir
6560 mkdir conftest.dir
6561 # Copy depcomp to subdir because otherwise we won't find it if we're
6562 # using a relative directory.
6563 cp "$am_depcomp" conftest.dir
6564 cd conftest.dir
6565 # We will build objects and dependencies in a subdirectory because
6566 # it helps to detect inapplicable dependency modes. For instance
6567 # both Tru64's cc and ICC support -MD to output dependencies as a
6568 # side effect of compilation, but ICC will put the dependencies in
6569 # the current directory while Tru64 will put them in the object
6570 # directory.
6571 mkdir sub
6572
6573 am_cv_CXX_dependencies_compiler_type=none
6574 if test "$am_compiler_list" = ""; then
6575 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6576 fi
6577 am__universal=false
6578 case " $depcc " in #(
6579 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6580 esac
6581
6582 for depmode in $am_compiler_list; do
6583 # Setup a source with many dependencies, because some compilers
6584 # like to wrap large dependency lists on column 80 (with \), and
6585 # we should not choose a depcomp mode which is confused by this.
6586 #
6587 # We need to recreate these files for each test, as the compiler may
6588 # overwrite some of them when testing with obscure command lines.
6589 # This happens at least with the AIX C compiler.
6590 : > sub/conftest.c
6591 for i in 1 2 3 4 5 6; do
6592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6593 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6594 # Solaris 10 /bin/sh.
6595 echo '/* dummy */' > sub/conftst$i.h
6596 done
6597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6598
6599 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6600 # mode. It turns out that the SunPro C++ compiler does not properly
6601 # handle '-M -o', and we need to detect this. Also, some Intel
6602 # versions had trouble with output in subdirs.
6603 am__obj=sub/conftest.${OBJEXT-o}
6604 am__minus_obj="-o $am__obj"
6605 case $depmode in
6606 gcc)
6607 # This depmode causes a compiler race in universal mode.
6608 test "$am__universal" = false || continue
6609 ;;
6610 nosideeffect)
6611 # After this tag, mechanisms are not by side-effect, so they'll
6612 # only be used when explicitly requested.
6613 if test "x$enable_dependency_tracking" = xyes; then
6614 continue
6615 else
6616 break
6617 fi
6618 ;;
6619 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6620 # This compiler won't grok '-c -o', but also, the minuso test has
6621 # not run yet. These depmodes are late enough in the game, and
6622 # so weak that their functioning should not be impacted.
6623 am__obj=conftest.${OBJEXT-o}
6624 am__minus_obj=
6625 ;;
6626 none) break ;;
6627 esac
6628 if depmode=$depmode \
6629 source=sub/conftest.c object=$am__obj \
6630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6631 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6632 >/dev/null 2>conftest.err &&
6633 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6634 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6635 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6636 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6637 # icc doesn't choke on unknown options, it will just issue warnings
6638 # or remarks (even with -Werror). So we grep stderr for any message
6639 # that says an option was ignored or not supported.
6640 # When given -MP, icc 7.0 and 7.1 complain thusly:
6641 # icc: Command line warning: ignoring option '-M'; no argument required
6642 # The diagnosis changed in icc 8.0:
6643 # icc: Command line remark: option '-MP' not supported
6644 if (grep 'ignoring option' conftest.err ||
6645 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6646 am_cv_CXX_dependencies_compiler_type=$depmode
6647 break
6648 fi
6649 fi
6650 done
6651
6652 cd ..
6653 rm -rf conftest.dir
6654 else
6655 am_cv_CXX_dependencies_compiler_type=none
6656 fi
6657
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6660 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6661 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6662
6663 if
6664 test "x$enable_dependency_tracking" != xno \
6665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6666 am__fastdepCXX_TRUE=
6667 am__fastdepCXX_FALSE='#'
6668 else
6669 am__fastdepCXX_TRUE='#'
6670 am__fastdepCXX_FALSE=
6671 fi
6672
6673
6674 for ac_prog in 'bison -y' byacc
6675 do
6676 # Extract the first word of "$ac_prog", so it can be a program name with args.
6677 set dummy $ac_prog; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_YACC+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$YACC"; then
6684 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_YACC="$ac_prog"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 YACC=$ac_cv_prog_YACC
6704 if test -n "$YACC"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6706 $as_echo "$YACC" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712
6713 test -n "$YACC" && break
6714 done
6715 test -n "$YACC" || YACC="yacc"
6716
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_RANLIB+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 if test -n "$RANLIB"; then
6726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 RANLIB=$ac_cv_prog_RANLIB
6746 if test -n "$RANLIB"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6748 $as_echo "$RANLIB" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754
6755 fi
6756 if test -z "$ac_cv_prog_RANLIB"; then
6757 ac_ct_RANLIB=$RANLIB
6758 # Extract the first word of "ranlib", so it can be a program name with args.
6759 set dummy ranlib; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$ac_ct_RANLIB"; then
6766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_ac_ct_RANLIB="ranlib"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6786 if test -n "$ac_ct_RANLIB"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6788 $as_echo "$ac_ct_RANLIB" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794 if test "x$ac_ct_RANLIB" = x; then
6795 RANLIB=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801 ac_tool_warned=yes ;;
6802 esac
6803 RANLIB=$ac_ct_RANLIB
6804 fi
6805 else
6806 RANLIB="$ac_cv_prog_RANLIB"
6807 fi
6808
6809
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6811 $as_echo_n "checking whether ln -s works... " >&6; }
6812 LN_S=$as_ln_s
6813 if test "$LN_S" = "ln -s"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6815 $as_echo "yes" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6818 $as_echo "no, using $LN_S" >&6; }
6819 fi
6820
6821
6822
6823
6824 # If we haven't got the data from the intl directory,
6825 # assume NLS is disabled.
6826 USE_NLS=no
6827 LIBINTL=
6828 LIBINTL_DEP=
6829 INCINTL=
6830 XGETTEXT=
6831 GMSGFMT=
6832 POSUB=
6833
6834 if test -f ../intl/config.intl; then
6835 . ../intl/config.intl
6836 fi
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6838 $as_echo_n "checking whether NLS is requested... " >&6; }
6839 if test x"$USE_NLS" != xyes; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6844 $as_echo "yes" >&6; }
6845
6846 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6847
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6850 $as_echo_n "checking for catalogs to be installed... " >&6; }
6851 # Look for .po and .gmo files in the source directory.
6852 CATALOGS=
6853 XLINGUAS=
6854 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6855 # If there aren't any .gmo files the shell will give us the
6856 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6857 # weeded out.
6858 case "$cat" in *\**)
6859 continue;;
6860 esac
6861 # The quadruple backslash is collapsed to a double backslash
6862 # by the backticks, then collapsed again by the double quotes,
6863 # leaving us with one backslash in the sed expression (right
6864 # before the dot that mustn't act as a wildcard).
6865 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6866 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6867 # The user is allowed to set LINGUAS to a list of languages to
6868 # install catalogs for. If it's empty that means "all of them."
6869 if test "x$LINGUAS" = x; then
6870 CATALOGS="$CATALOGS $cat"
6871 XLINGUAS="$XLINGUAS $lang"
6872 else
6873 case "$LINGUAS" in *$lang*)
6874 CATALOGS="$CATALOGS $cat"
6875 XLINGUAS="$XLINGUAS $lang"
6876 ;;
6877 esac
6878 fi
6879 done
6880 LINGUAS="$XLINGUAS"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6882 $as_echo "$LINGUAS" >&6; }
6883
6884
6885 DATADIRNAME=share
6886
6887 INSTOBJEXT=.mo
6888
6889 GENCAT=gencat
6890
6891 CATOBJEXT=.gmo
6892
6893 fi
6894
6895 MKINSTALLDIRS=
6896 if test -n "$ac_aux_dir"; then
6897 case "$ac_aux_dir" in
6898 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6899 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6900 esac
6901 fi
6902 if test -z "$MKINSTALLDIRS"; then
6903 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6904 fi
6905
6906
6907
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6909 $as_echo_n "checking whether NLS is requested... " >&6; }
6910 # Check whether --enable-nls was given.
6911 if test "${enable_nls+set}" = set; then :
6912 enableval=$enable_nls; USE_NLS=$enableval
6913 else
6914 USE_NLS=yes
6915 fi
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6918 $as_echo "$USE_NLS" >&6; }
6919
6920
6921
6922
6923
6924
6925 # Prepare PATH_SEPARATOR.
6926 # The user is always right.
6927 if test "${PATH_SEPARATOR+set}" != set; then
6928 echo "#! /bin/sh" >conf$$.sh
6929 echo "exit 0" >>conf$$.sh
6930 chmod +x conf$$.sh
6931 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6932 PATH_SEPARATOR=';'
6933 else
6934 PATH_SEPARATOR=:
6935 fi
6936 rm -f conf$$.sh
6937 fi
6938
6939 # Find out how to test for executable files. Don't use a zero-byte file,
6940 # as systems may use methods other than mode bits to determine executability.
6941 cat >conf$$.file <<_ASEOF
6942 #! /bin/sh
6943 exit 0
6944 _ASEOF
6945 chmod +x conf$$.file
6946 if test -x conf$$.file >/dev/null 2>&1; then
6947 ac_executable_p="test -x"
6948 else
6949 ac_executable_p="test -f"
6950 fi
6951 rm -f conf$$.file
6952
6953 # Extract the first word of "msgfmt", so it can be a program name with args.
6954 set dummy msgfmt; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_path_MSGFMT+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 case "$MSGFMT" in
6961 [\\/]* | ?:[\\/]*)
6962 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6963 ;;
6964 *)
6965 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6966 for ac_dir in $PATH; do
6967 IFS="$ac_save_IFS"
6968 test -z "$ac_dir" && ac_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6971 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6972 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6973 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6974 break 2
6975 fi
6976 fi
6977 done
6978 done
6979 IFS="$ac_save_IFS"
6980 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6981 ;;
6982 esac
6983 fi
6984 MSGFMT="$ac_cv_path_MSGFMT"
6985 if test "$MSGFMT" != ":"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6987 $as_echo "$MSGFMT" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992
6993 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6994 set dummy gmsgfmt; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_path_GMSGFMT+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 case $GMSGFMT in
7001 [\\/]* | ?:[\\/]*)
7002 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7003 ;;
7004 *)
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7021 ;;
7022 esac
7023 fi
7024 GMSGFMT=$ac_cv_path_GMSGFMT
7025 if test -n "$GMSGFMT"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7027 $as_echo "$GMSGFMT" >&6; }
7028 else
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032
7033
7034
7035
7036 # Prepare PATH_SEPARATOR.
7037 # The user is always right.
7038 if test "${PATH_SEPARATOR+set}" != set; then
7039 echo "#! /bin/sh" >conf$$.sh
7040 echo "exit 0" >>conf$$.sh
7041 chmod +x conf$$.sh
7042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7043 PATH_SEPARATOR=';'
7044 else
7045 PATH_SEPARATOR=:
7046 fi
7047 rm -f conf$$.sh
7048 fi
7049
7050 # Find out how to test for executable files. Don't use a zero-byte file,
7051 # as systems may use methods other than mode bits to determine executability.
7052 cat >conf$$.file <<_ASEOF
7053 #! /bin/sh
7054 exit 0
7055 _ASEOF
7056 chmod +x conf$$.file
7057 if test -x conf$$.file >/dev/null 2>&1; then
7058 ac_executable_p="test -x"
7059 else
7060 ac_executable_p="test -f"
7061 fi
7062 rm -f conf$$.file
7063
7064 # Extract the first word of "xgettext", so it can be a program name with args.
7065 set dummy xgettext; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_path_XGETTEXT+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 case "$XGETTEXT" in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7074 ;;
7075 *)
7076 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7077 for ac_dir in $PATH; do
7078 IFS="$ac_save_IFS"
7079 test -z "$ac_dir" && ac_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7082 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7083 (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
7084 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7085 break 2
7086 fi
7087 fi
7088 done
7089 done
7090 IFS="$ac_save_IFS"
7091 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7092 ;;
7093 esac
7094 fi
7095 XGETTEXT="$ac_cv_path_XGETTEXT"
7096 if test "$XGETTEXT" != ":"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7098 $as_echo "$XGETTEXT" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104 rm -f messages.po
7105
7106
7107 # Prepare PATH_SEPARATOR.
7108 # The user is always right.
7109 if test "${PATH_SEPARATOR+set}" != set; then
7110 echo "#! /bin/sh" >conf$$.sh
7111 echo "exit 0" >>conf$$.sh
7112 chmod +x conf$$.sh
7113 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7114 PATH_SEPARATOR=';'
7115 else
7116 PATH_SEPARATOR=:
7117 fi
7118 rm -f conf$$.sh
7119 fi
7120
7121 # Find out how to test for executable files. Don't use a zero-byte file,
7122 # as systems may use methods other than mode bits to determine executability.
7123 cat >conf$$.file <<_ASEOF
7124 #! /bin/sh
7125 exit 0
7126 _ASEOF
7127 chmod +x conf$$.file
7128 if test -x conf$$.file >/dev/null 2>&1; then
7129 ac_executable_p="test -x"
7130 else
7131 ac_executable_p="test -f"
7132 fi
7133 rm -f conf$$.file
7134
7135 # Extract the first word of "msgmerge", so it can be a program name with args.
7136 set dummy msgmerge; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_path_MSGMERGE+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 case "$MSGMERGE" in
7143 [\\/]* | ?:[\\/]*)
7144 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7145 ;;
7146 *)
7147 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7148 for ac_dir in $PATH; do
7149 IFS="$ac_save_IFS"
7150 test -z "$ac_dir" && ac_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7153 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7154 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7155 break 2
7156 fi
7157 fi
7158 done
7159 done
7160 IFS="$ac_save_IFS"
7161 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7162 ;;
7163 esac
7164 fi
7165 MSGMERGE="$ac_cv_path_MSGMERGE"
7166 if test "$MSGMERGE" != ":"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7168 $as_echo "$MSGMERGE" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175 if test "$GMSGFMT" != ":"; then
7176 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7177 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7178 : ;
7179 else
7180 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7182 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7183 GMSGFMT=":"
7184 fi
7185 fi
7186
7187 if test "$XGETTEXT" != ":"; then
7188 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7189 (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
7190 : ;
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7193 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7194 XGETTEXT=":"
7195 fi
7196 rm -f messages.po
7197 fi
7198
7199 ac_config_commands="$ac_config_commands default-1"
7200
7201
7202
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7204 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7205 if ${ac_cv_c_bigendian+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 ac_cv_c_bigendian=unknown
7209 # See if we're dealing with a universal compiler.
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #ifndef __APPLE_CC__
7213 not a universal capable compiler
7214 #endif
7215 typedef int dummy;
7216
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"; then :
7219
7220 # Check for potential -arch flags. It is not universal unless
7221 # there are at least two -arch flags with different values.
7222 ac_arch=
7223 ac_prev=
7224 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7225 if test -n "$ac_prev"; then
7226 case $ac_word in
7227 i?86 | x86_64 | ppc | ppc64)
7228 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7229 ac_arch=$ac_word
7230 else
7231 ac_cv_c_bigendian=universal
7232 break
7233 fi
7234 ;;
7235 esac
7236 ac_prev=
7237 elif test "x$ac_word" = "x-arch"; then
7238 ac_prev=arch
7239 fi
7240 done
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 if test $ac_cv_c_bigendian = unknown; then
7244 # See if sys/param.h defines the BYTE_ORDER macro.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <sys/types.h>
7248 #include <sys/param.h>
7249
7250 int
7251 main ()
7252 {
7253 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7254 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7255 && LITTLE_ENDIAN)
7256 bogus endian macros
7257 #endif
7258
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_c_try_compile "$LINENO"; then :
7264 # It does; now see whether it defined to BIG_ENDIAN or not.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <sys/types.h>
7268 #include <sys/param.h>
7269
7270 int
7271 main ()
7272 {
7273 #if BYTE_ORDER != BIG_ENDIAN
7274 not big endian
7275 #endif
7276
7277 ;
7278 return 0;
7279 }
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282 ac_cv_c_bigendian=yes
7283 else
7284 ac_cv_c_bigendian=no
7285 fi
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 fi
7290 if test $ac_cv_c_bigendian = unknown; then
7291 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 #include <limits.h>
7295
7296 int
7297 main ()
7298 {
7299 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7300 bogus endian macros
7301 #endif
7302
7303 ;
7304 return 0;
7305 }
7306 _ACEOF
7307 if ac_fn_c_try_compile "$LINENO"; then :
7308 # It does; now see whether it defined to _BIG_ENDIAN or not.
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311 #include <limits.h>
7312
7313 int
7314 main ()
7315 {
7316 #ifndef _BIG_ENDIAN
7317 not big endian
7318 #endif
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 ac_cv_c_bigendian=yes
7326 else
7327 ac_cv_c_bigendian=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 fi
7333 if test $ac_cv_c_bigendian = unknown; then
7334 # Compile a test program.
7335 if test "$cross_compiling" = yes; then :
7336 # Try to guess by grepping values from an object file.
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 short int ascii_mm[] =
7340 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7341 short int ascii_ii[] =
7342 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7343 int use_ascii (int i) {
7344 return ascii_mm[i] + ascii_ii[i];
7345 }
7346 short int ebcdic_ii[] =
7347 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7348 short int ebcdic_mm[] =
7349 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7350 int use_ebcdic (int i) {
7351 return ebcdic_mm[i] + ebcdic_ii[i];
7352 }
7353 extern int foo;
7354
7355 int
7356 main ()
7357 {
7358 return use_ascii (foo) == use_ebcdic (foo);
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"; then :
7364 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7365 ac_cv_c_bigendian=yes
7366 fi
7367 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7368 if test "$ac_cv_c_bigendian" = unknown; then
7369 ac_cv_c_bigendian=no
7370 else
7371 # finding both strings is unlikely to happen, but who knows?
7372 ac_cv_c_bigendian=unknown
7373 fi
7374 fi
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 else
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 $ac_includes_default
7381 int
7382 main ()
7383 {
7384
7385 /* Are we little or big endian? From Harbison&Steele. */
7386 union
7387 {
7388 long int l;
7389 char c[sizeof (long int)];
7390 } u;
7391 u.l = 1;
7392 return u.c[sizeof (long int) - 1] == 1;
7393
7394 ;
7395 return 0;
7396 }
7397 _ACEOF
7398 if ac_fn_c_try_run "$LINENO"; then :
7399 ac_cv_c_bigendian=no
7400 else
7401 ac_cv_c_bigendian=yes
7402 fi
7403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7404 conftest.$ac_objext conftest.beam conftest.$ac_ext
7405 fi
7406
7407 fi
7408 fi
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7410 $as_echo "$ac_cv_c_bigendian" >&6; }
7411 case $ac_cv_c_bigendian in #(
7412 yes)
7413 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7414 ;; #(
7415 no)
7416 ;; #(
7417 universal)
7418
7419 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7420
7421 ;; #(
7422 *)
7423 as_fn_error $? "unknown endianness
7424 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7425 esac
7426
7427
7428
7429
7430 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7431 NATIVE_LINKER_TRUE=
7432 NATIVE_LINKER_FALSE='#'
7433 else
7434 NATIVE_LINKER_TRUE='#'
7435 NATIVE_LINKER_FALSE=
7436 fi
7437
7438 if test "$GCC" = yes; then
7439 GCC_TRUE=
7440 GCC_FALSE='#'
7441 else
7442 GCC_TRUE='#'
7443 GCC_FALSE=
7444 fi
7445
7446
7447 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7448 NATIVE_OR_CROSS_LINKER_TRUE=
7449 NATIVE_OR_CROSS_LINKER_FALSE='#'
7450 else
7451 NATIVE_OR_CROSS_LINKER_TRUE='#'
7452 NATIVE_OR_CROSS_LINKER_FALSE=
7453 fi
7454
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7457 $as_echo_n "checking whether static linking works... " >&6; }
7458 if ${gold_cv_lib_static+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 LDFLAGS_hold=$LDFLAGS
7462 LDFLAGS="$LDFLAGS -static"
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465
7466 void f() { }
7467 int
7468 main ()
7469 {
7470
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_link "$LINENO"; then :
7476 gold_cv_lib_static=yes
7477 else
7478 gold_cv_lib_static=no
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext \
7481 conftest$ac_exeext conftest.$ac_ext
7482 LDFLAGS=$LDFLAGS_hold
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7485 $as_echo "$gold_cv_lib_static" >&6; }
7486 if test "$gold_cv_lib_static" = "yes"; then
7487 HAVE_STATIC_TRUE=
7488 HAVE_STATIC_FALSE='#'
7489 else
7490 HAVE_STATIC_TRUE='#'
7491 HAVE_STATIC_FALSE=
7492 fi
7493
7494
7495 if
7496 case $target_cpu in
7497 powerpc*) false;;
7498 x86_64) false;;
7499 sparc64) false;;
7500 s390x) false;;
7501 *) true;;
7502 esac; then
7503 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7504 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7505 else
7506 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7507 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7508 fi
7509
7510
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7512 $as_echo_n "checking for gcc >= 4.1... " >&6; }
7513 if ${gold_cv_prog_gcc41+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518
7519 #if !defined __GNUC__
7520 error
7521 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7522 error
7523 #endif
7524
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527 gold_cv_prog_gcc41=yes
7528 else
7529 gold_cv_prog_gcc41=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7534 $as_echo "$gold_cv_prog_gcc41" >&6; }
7535
7536 save_CFLAGS="$CFLAGS"
7537 CFLAGS="$CFLAGS -mcmodel=medium"
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 int i;
7541 _ACEOF
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543 have_mcmodel_medium=yes
7544 else
7545 have_mcmodel_medium=no
7546 fi
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 CFLAGS="$save_CFLAGS"
7549 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
7550 MCMODEL_MEDIUM_TRUE=
7551 MCMODEL_MEDIUM_FALSE='#'
7552 else
7553 MCMODEL_MEDIUM_TRUE='#'
7554 MCMODEL_MEDIUM_FALSE=
7555 fi
7556
7557
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
7559 $as_echo_n "checking for gcc >= 9... " >&6; }
7560 if ${gold_cv_prog_gcc9+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565
7566 #if !defined __GNUC__ || __GNUC__ < 9
7567 error
7568 #endif
7569
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572 gold_cv_prog_gcc9=yes
7573 else
7574 gold_cv_prog_gcc9=no
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
7579 $as_echo "$gold_cv_prog_gcc9" >&6; }
7580 if test "$gold_cv_prog_gcc9" = "yes"; then
7581 GCC9_TRUE=
7582 GCC9_FALSE='#'
7583 else
7584 GCC9_TRUE='#'
7585 GCC9_FALSE=
7586 fi
7587
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
7590 $as_echo_n "checking for -fcf-protection... " >&6; }
7591 if ${gold_cv_cflags_cf_protection+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596
7597 #if !defined __x86_64__ || !defined __CET__
7598 error
7599 #endif
7600
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 gold_cv_cflags_cf_protection=yes
7604 else
7605 gold_cv_cflags_cf_protection=no
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
7610 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
7611 if test "$gold_cv_cflags_cf_protection" = "yes"; then
7612 CFLAGS_CF_PROTECTION_TRUE=
7613 CFLAGS_CF_PROTECTION_FALSE='#'
7614 else
7615 CFLAGS_CF_PROTECTION_TRUE='#'
7616 CFLAGS_CF_PROTECTION_FALSE=
7617 fi
7618
7619
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7621 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
7622 if ${gold_cv_merge_constants+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625
7626 save_CFLAGS="$CFLAGS"
7627 CFLAGS="$CFLAGS -fmerge-constants"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 const char *s = "foo";
7631 _ACEOF
7632 if ac_fn_c_try_compile "$LINENO"; then :
7633 gold_cv_merge_constants=yes
7634 else
7635 gold_cv_merge_constants=no
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 CFLAGS="$save_CFLAGS"
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7641 $as_echo "$gold_cv_merge_constants" >&6; }
7642
7643 if test "$gold_cv_merge_constants" = yes; then :
7644 MERGE_CONSTANTS_FLAG=-fmerge-constants
7645 else
7646 MERGE_CONSTANTS_FLAG=
7647 fi
7648
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7650 $as_echo_n "checking for thread support... " >&6; }
7651 if ${gold_cv_c_thread+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 __thread int i = 1;
7657 _ACEOF
7658 if ac_fn_c_try_compile "$LINENO"; then :
7659 gold_cv_c_thread=yes
7660 else
7661 gold_cv_c_thread=no
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 fi
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7666 $as_echo "$gold_cv_c_thread" >&6; }
7667
7668 if test "$gold_cv_c_thread" = "yes"; then
7669 TLS_TRUE=
7670 TLS_FALSE='#'
7671 else
7672 TLS_TRUE='#'
7673 TLS_FALSE=
7674 fi
7675
7676
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7678 $as_echo_n "checking for glibc >= 2.4... " >&6; }
7679 if ${gold_cv_lib_glibc24+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684
7685 #include <features.h>
7686 #if !defined __GLIBC__
7687 error
7688 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7689 error
7690 #endif
7691
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 gold_cv_lib_glibc24=yes
7695 else
7696 gold_cv_lib_glibc24=no
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7701 $as_echo "$gold_cv_lib_glibc24" >&6; }
7702
7703 if test "$gold_cv_lib_glibc24" = "yes"; then
7704 STATIC_TLS_TRUE=
7705 STATIC_TLS_FALSE='#'
7706 else
7707 STATIC_TLS_TRUE='#'
7708 STATIC_TLS_FALSE=
7709 fi
7710
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7713 $as_echo_n "checking for omp support... " >&6; }
7714 if ${gold_cv_c_threadprivate+:} false; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 save_CFLAGS="$CFLAGS"
7718 CFLAGS="$CFLAGS -fopenmp"
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721
7722 #include <omp.h>
7723 int i;
7724 #pragma omp threadprivate (i)
7725
7726 _ACEOF
7727 if ac_fn_c_try_compile "$LINENO"; then :
7728 gold_cv_c_threadprivate=yes
7729 else
7730 gold_cv_c_threadprivate=no
7731 fi
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 CFLAGS="$save_CFLAGS"
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7736 $as_echo "$gold_cv_c_threadprivate" >&6; }
7737 if test "$gold_cv_c_threadprivate" = "yes"; then
7738
7739 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
7740
7741 fi
7742 if test "$gold_cv_c_threadprivate" = "yes"; then
7743 OMP_SUPPORT_TRUE=
7744 OMP_SUPPORT_FALSE='#'
7745 else
7746 OMP_SUPPORT_TRUE='#'
7747 OMP_SUPPORT_FALSE=
7748 fi
7749
7750
7751 save_CFLAGS="$CFLAGS"
7752 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755
7756 __thread int i;
7757 void foo (void)
7758 {
7759 i = 10;
7760 }
7761
7762 _ACEOF
7763 if ac_fn_c_try_compile "$LINENO"; then :
7764 have_tls_gnu2=yes
7765 else
7766 have_tls_gnu2=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 CFLAGS="$save_CFLAGS"
7770 if test "$have_tls_gnu2" = "yes"; then
7771 TLS_GNU2_DIALECT_TRUE=
7772 TLS_GNU2_DIALECT_FALSE='#'
7773 else
7774 TLS_GNU2_DIALECT_TRUE='#'
7775 TLS_GNU2_DIALECT_FALSE=
7776 fi
7777
7778
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7780 $as_echo_n "checking for glibc >= 2.9... " >&6; }
7781 if ${gold_cv_lib_glibc29+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786
7787 #include <features.h>
7788 #if !defined __GLIBC__
7789 error
7790 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7791 error
7792 #endif
7793
7794 _ACEOF
7795 if ac_fn_c_try_compile "$LINENO"; then :
7796 gold_cv_lib_glibc29=yes
7797 else
7798 gold_cv_lib_glibc29=no
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 fi
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7803 $as_echo "$gold_cv_lib_glibc29" >&6; }
7804
7805 if test "$gold_cv_lib_glibc29" = "yes"; then
7806 TLS_DESCRIPTORS_TRUE=
7807 TLS_DESCRIPTORS_FALSE='#'
7808 else
7809 TLS_DESCRIPTORS_TRUE='#'
7810 TLS_DESCRIPTORS_FALSE=
7811 fi
7812
7813
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7815 $as_echo_n "checking for -frandom-seed support... " >&6; }
7816 if ${gold_cv_c_random_seed+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 save_CFLAGS="$CFLAGS"
7820 CFLAGS="$CFLAGS -frandom-seed=foo"
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 int i;
7824 _ACEOF
7825 if ac_fn_c_try_compile "$LINENO"; then :
7826 gold_cv_c_random_seed=yes
7827 else
7828 gold_cv_c_random_seed=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 CFLAGS="$save_CFLAGS"
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7834 $as_echo "$gold_cv_c_random_seed" >&6; }
7835 if test "$gold_cv_c_random_seed" = "yes"; then
7836 # In Makefile, '$@' will be expanded to be the name of the file
7837 # being built, providing a unique seed for each file.
7838 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
7839 fi
7840
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7843 $as_echo_n "checking for glibc ifunc support... " >&6; }
7844 if ${gold_cv_lib_glibc_ifunc+:} false; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 save_LDFLAGS="$LDFLAGS"
7848 LDFLAGS="$LDFLAGS -static"
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851
7852 #include <features.h>
7853 #if !defined __GLIBC__
7854 error
7855 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7856 error
7857 #endif
7858 void func (void) { }
7859 void invoke (void);
7860 __asm__(".type invoke, %gnu_indirect_function");
7861 typedef void (*funcptr) (void);
7862 funcptr dispatch (void) __asm__ ("invoke");
7863 funcptr dispatch (void) { return &func; }
7864 int
7865 main ()
7866 {
7867 invoke();
7868 ;
7869 return 0;
7870 }
7871
7872 _ACEOF
7873 if ac_fn_c_try_link "$LINENO"; then :
7874
7875 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7876 gold_cv_lib_glibc_ifunc=both
7877 else
7878 gold_cv_lib_glibc_ifunc=dyn
7879 fi
7880 else
7881 gold_cv_lib_glibc_ifunc=no
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 LDFLAGS="$save_LDFLAGS"
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7888 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7889
7890 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7891 IFUNC_TRUE=
7892 IFUNC_FALSE='#'
7893 else
7894 IFUNC_TRUE='#'
7895 IFUNC_FALSE=
7896 fi
7897
7898 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7899 IFUNC_STATIC_TRUE=
7900 IFUNC_STATIC_FALSE='#'
7901 else
7902 IFUNC_STATIC_TRUE='#'
7903 IFUNC_STATIC_FALSE=
7904 fi
7905
7906
7907
7908 # Set the 'development' global.
7909 . $srcdir/../bfd/development.sh
7910
7911 # Set acp_cpp_for_build variable
7912 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7913
7914 # Default set of GCC warnings to enable.
7915 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7916 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7917
7918 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 __GNUC__
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7925
7926 else
7927 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7928 fi
7929 rm -f conftest*
7930
7931
7932 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 __GNUC__
7936 _ACEOF
7937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7938 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7939
7940 else
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 __clang__
7944 _ACEOF
7945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7946 $EGREP "^__clang__$" >/dev/null 2>&1; then :
7947 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7948 fi
7949 rm -f conftest*
7950
7951 fi
7952 rm -f conftest*
7953
7954
7955 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7956 WARN_WRITE_STRINGS=""
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 __GNUC__
7960 _ACEOF
7961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7962 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7963
7964 else
7965 WARN_WRITE_STRINGS="-Wwrite-strings"
7966 fi
7967 rm -f conftest*
7968
7969
7970 # Verify CC_FOR_BUILD to be compatible with warning flags
7971
7972 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 __GNUC__
7976 _ACEOF
7977 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7978 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7979
7980 else
7981 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7982 fi
7983 rm -f conftest*
7984
7985
7986 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 __GNUC__
7990 _ACEOF
7991 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7992 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7993
7994 else
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 __clang__
7998 _ACEOF
7999 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
8000 $EGREP "^__clang__$" >/dev/null 2>&1; then :
8001 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
8002 fi
8003 rm -f conftest*
8004
8005 fi
8006 rm -f conftest*
8007
8008
8009 # Check whether --enable-werror was given.
8010 if test "${enable_werror+set}" = set; then :
8011 enableval=$enable_werror; case "${enableval}" in
8012 yes | y) ERROR_ON_WARNING="yes" ;;
8013 no | n) ERROR_ON_WARNING="no" ;;
8014 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
8015 esac
8016 fi
8017
8018
8019 # Disable -Wformat by default when using gcc on mingw
8020 case "${host}" in
8021 *-*-mingw32*)
8022 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
8023 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
8024 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
8025 fi
8026 ;;
8027 *) ;;
8028 esac
8029
8030 # Enable -Werror by default when using gcc. Turn it off for releases.
8031 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
8032 ERROR_ON_WARNING=yes
8033 fi
8034
8035 NO_WERROR=
8036 if test "${ERROR_ON_WARNING}" = yes ; then
8037 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
8038 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
8039 NO_WERROR="-Wno-error"
8040 fi
8041
8042 if test "${GCC}" = yes ; then
8043 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
8044 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
8045 fi
8046
8047 # Check whether --enable-build-warnings was given.
8048 if test "${enable_build_warnings+set}" = set; then :
8049 enableval=$enable_build_warnings; case "${enableval}" in
8050 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
8051 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
8052 no) if test "${GCC}" = yes ; then
8053 WARN_CFLAGS="-w"
8054 WARN_CFLAGS_FOR_BUILD="-w"
8055 fi;;
8056 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8057 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
8058 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
8059 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8060 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
8061 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
8062 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
8063 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8064 esac
8065 fi
8066
8067
8068 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
8069 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
8070 fi
8071
8072
8073
8074
8075
8076
8077
8078 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
8079
8080
8081
8082 # Check whether --with-gold-ldflags was given.
8083 if test "${with_gold_ldflags+set}" = set; then :
8084 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8085 GOLD_LDFLAGS=
8086 else
8087 GOLD_LDFLAGS=$withval
8088 fi
8089 else
8090 GOLD_LDFLAGS=
8091 fi
8092
8093
8094
8095
8096 # Check whether --with-gold-ldadd was given.
8097 if test "${with_gold_ldadd+set}" = set; then :
8098 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
8099 GOLD_LDADD=
8100 else
8101 GOLD_LDADD=$withval
8102 fi
8103 else
8104 GOLD_LDADD=
8105 fi
8106
8107
8108
8109 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8110
8111
8112 for ac_header in sys/mman.h
8113 do :
8114 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
8115 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
8116 cat >>confdefs.h <<_ACEOF
8117 #define HAVE_SYS_MMAN_H 1
8118 _ACEOF
8119
8120 fi
8121
8122 done
8123
8124 for ac_func in chsize mmap link
8125 do :
8126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8127 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8128 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8129 cat >>confdefs.h <<_ACEOF
8130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8131 _ACEOF
8132
8133 fi
8134 done
8135
8136 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
8137 if test "x$ac_cv_func_pread" = xyes; then :
8138 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
8139
8140 else
8141 case " $LIBOBJS " in
8142 *" pread.$ac_objext "* ) ;;
8143 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8144 ;;
8145 esac
8146
8147 fi
8148
8149 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8150 if test "x$ac_cv_func_ftruncate" = xyes; then :
8151 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8152
8153 else
8154 case " $LIBOBJS " in
8155 *" ftruncate.$ac_objext "* ) ;;
8156 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8157 ;;
8158 esac
8159
8160 fi
8161
8162 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8163 if test "x$ac_cv_func_ffsll" = xyes; then :
8164 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8165
8166 else
8167 case " $LIBOBJS " in
8168 *" ffsll.$ac_objext "* ) ;;
8169 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
8170 ;;
8171 esac
8172
8173 fi
8174
8175
8176
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8178 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
8179 if ${gold_cv_lib_mremap_maymove+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184
8185
8186 #include <sys/mman.h>
8187 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8188
8189 int
8190 main ()
8191 {
8192
8193 ;
8194 return 0;
8195 }
8196 _ACEOF
8197 if ac_fn_c_try_link "$LINENO"; then :
8198 gold_cv_lib_mremap_maymove=yes
8199 else
8200 gold_cv_lib_mremap_maymove=no
8201 fi
8202 rm -f core conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8206 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8207 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8208
8209 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8210
8211 else
8212 case " $LIBOBJS " in
8213 *" mremap.$ac_objext "* ) ;;
8214 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8215 ;;
8216 esac
8217
8218 fi
8219
8220 # Link in zlib if we can. This allows us to write compressed sections.
8221
8222 # Use the system's zlib library.
8223 zlibdir="-L\$(top_builddir)/../zlib"
8224 zlibinc="-I\$(top_srcdir)/../zlib"
8225
8226 # Check whether --with-system-zlib was given.
8227 if test "${with_system_zlib+set}" = set; then :
8228 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8229 zlibdir=
8230 zlibinc=
8231 fi
8232
8233 fi
8234
8235
8236
8237
8238
8239 # Check whether --enable-threads was given.
8240 if test "${enable_threads+set}" = set; then :
8241 enableval=$enable_threads; case "${enableval}" in
8242 yes | "") threads=yes ;;
8243 no) threads=no ;;
8244 auto) threads=auto ;;
8245 *) threads=yes ;;
8246 esac
8247 else
8248 threads=auto
8249 fi
8250
8251
8252 if test "$threads" = "yes"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8254 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8255 if ${ac_cv_path_SED+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8259 for ac_i in 1 2 3 4 5 6 7; do
8260 ac_script="$ac_script$as_nl$ac_script"
8261 done
8262 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8263 { ac_script=; unset ac_script;}
8264 if test -z "$SED"; then
8265 ac_path_SED_found=false
8266 # Loop through the user's path and test for each of PROGNAME-LIST
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
8272 for ac_prog in sed gsed; do
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8275 as_fn_executable_p "$ac_path_SED" || continue
8276 # Check for GNU ac_path_SED and select it if it is found.
8277 # Check for GNU $ac_path_SED
8278 case `"$ac_path_SED" --version 2>&1` in
8279 *GNU*)
8280 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8281 *)
8282 ac_count=0
8283 $as_echo_n 0123456789 >"conftest.in"
8284 while :
8285 do
8286 cat "conftest.in" "conftest.in" >"conftest.tmp"
8287 mv "conftest.tmp" "conftest.in"
8288 cp "conftest.in" "conftest.nl"
8289 $as_echo '' >> "conftest.nl"
8290 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8292 as_fn_arith $ac_count + 1 && ac_count=$as_val
8293 if test $ac_count -gt ${ac_path_SED_max-0}; then
8294 # Best one so far, save it but keep looking for a better one
8295 ac_cv_path_SED="$ac_path_SED"
8296 ac_path_SED_max=$ac_count
8297 fi
8298 # 10*(2^10) chars as input seems more than enough
8299 test $ac_count -gt 10 && break
8300 done
8301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8302 esac
8303
8304 $ac_path_SED_found && break 3
8305 done
8306 done
8307 done
8308 IFS=$as_save_IFS
8309 if test -z "$ac_cv_path_SED"; then
8310 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8311 fi
8312 else
8313 ac_cv_path_SED=$SED
8314 fi
8315
8316 fi
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8318 $as_echo "$ac_cv_path_SED" >&6; }
8319 SED="$ac_cv_path_SED"
8320 rm -f conftest.sed
8321
8322
8323
8324
8325
8326 ac_ext=c
8327 ac_cpp='$CPP $CPPFLAGS'
8328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8331
8332 ax_pthread_ok=no
8333
8334 # We used to check for pthread.h first, but this fails if pthread.h
8335 # requires special compiler flags (e.g. on Tru64 or Sequent).
8336 # It gets checked for in the link test anyway.
8337
8338 # First of all, check if the user has set any of the PTHREAD_LIBS,
8339 # etcetera environment variables, and if threads linking works using
8340 # them:
8341 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8342 ax_pthread_save_CC="$CC"
8343 ax_pthread_save_CFLAGS="$CFLAGS"
8344 ax_pthread_save_LIBS="$LIBS"
8345 if test "x$PTHREAD_CC" != "x"; then :
8346 CC="$PTHREAD_CC"
8347 fi
8348 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8349 LIBS="$PTHREAD_LIBS $LIBS"
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8351 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354
8355 /* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8358 #ifdef __cplusplus
8359 extern "C"
8360 #endif
8361 char pthread_join ();
8362 int
8363 main ()
8364 {
8365 return pthread_join ();
8366 ;
8367 return 0;
8368 }
8369 _ACEOF
8370 if ac_fn_c_try_link "$LINENO"; then :
8371 ax_pthread_ok=yes
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8376 $as_echo "$ax_pthread_ok" >&6; }
8377 if test "x$ax_pthread_ok" = "xno"; then
8378 PTHREAD_LIBS=""
8379 PTHREAD_CFLAGS=""
8380 fi
8381 CC="$ax_pthread_save_CC"
8382 CFLAGS="$ax_pthread_save_CFLAGS"
8383 LIBS="$ax_pthread_save_LIBS"
8384 fi
8385
8386 # We must check for the threads library under a number of different
8387 # names; the ordering is very important because some systems
8388 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8389 # libraries is broken (non-POSIX).
8390
8391 # Create a list of thread flags to try. Items starting with a "-" are
8392 # C compiler flags, and other items are library names, except for "none"
8393 # which indicates that we try without any flags at all, and "pthread-config"
8394 # which is a program returning the flags for the Pth emulation library.
8395
8396 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8397
8398 # The ordering *is* (sometimes) important. Some notes on the
8399 # individual items follow:
8400
8401 # pthreads: AIX (must check this before -lpthread)
8402 # none: in case threads are in libc; should be tried before -Kthread and
8403 # other compiler flags to prevent continual compiler warnings
8404 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8405 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8406 # (Note: HP C rejects this with "bad form for `-t' option")
8407 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8408 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8409 # doesn't hurt to check since this sometimes defines pthreads and
8410 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8411 # is present but should not be used directly; and before -mthreads,
8412 # because the compiler interprets this as "-mt" + "-hreads")
8413 # -mthreads: Mingw32/gcc, Lynx/gcc
8414 # pthread: Linux, etcetera
8415 # --thread-safe: KAI C++
8416 # pthread-config: use pthread-config program (for GNU Pth library)
8417
8418 case $host_os in
8419
8420 freebsd*)
8421
8422 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8423 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8424
8425 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8426 ;;
8427
8428 hpux*)
8429
8430 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8431 # multi-threading and also sets -lpthread."
8432
8433 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8434 ;;
8435
8436 openedition*)
8437
8438 # IBM z/OS requires a feature-test macro to be defined in order to
8439 # enable POSIX threads at all, so give the user a hint if this is
8440 # not set. (We don't define these ourselves, as they can affect
8441 # other portions of the system API in unpredictable ways.)
8442
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445
8446 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8447 AX_PTHREAD_ZOS_MISSING
8448 # endif
8449
8450 _ACEOF
8451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8452 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8454 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8455 fi
8456 rm -f conftest*
8457
8458 ;;
8459
8460 solaris*)
8461
8462 # On Solaris (at least, for some versions), libc contains stubbed
8463 # (non-functional) versions of the pthreads routines, so link-based
8464 # tests will erroneously succeed. (N.B.: The stubs are missing
8465 # pthread_cleanup_push, or rather a function called by this macro,
8466 # so we could check for that, but who knows whether they'll stub
8467 # that too in a future libc.) So we'll check first for the
8468 # standard Solaris way of linking pthreads (-mt -lpthread).
8469
8470 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8471 ;;
8472 esac
8473
8474 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8475
8476 if test "x$GCC" = "xyes"; then :
8477 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8478 fi
8479
8480 # The presence of a feature test macro requesting re-entrant function
8481 # definitions is, on some systems, a strong hint that pthreads support is
8482 # correctly enabled
8483
8484 case $host_os in
8485 darwin* | hpux* | linux* | osf* | solaris*)
8486 ax_pthread_check_macro="_REENTRANT"
8487 ;;
8488
8489 aix*)
8490 ax_pthread_check_macro="_THREAD_SAFE"
8491 ;;
8492
8493 *)
8494 ax_pthread_check_macro="--"
8495 ;;
8496 esac
8497 if test "x$ax_pthread_check_macro" = "x--"; then :
8498 ax_pthread_check_cond=0
8499 else
8500 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8501 fi
8502
8503 # Are we compiling with Clang?
8504
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8506 $as_echo_n "checking whether $CC is Clang... " >&6; }
8507 if ${ax_cv_PTHREAD_CLANG+:} false; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 ax_cv_PTHREAD_CLANG=no
8511 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8512 if test "x$GCC" = "xyes"; then
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8516 # if defined(__clang__) && defined(__llvm__)
8517 AX_PTHREAD_CC_IS_CLANG
8518 # endif
8519
8520 _ACEOF
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8523 ax_cv_PTHREAD_CLANG=yes
8524 fi
8525 rm -f conftest*
8526
8527 fi
8528
8529 fi
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8531 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8532 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8533
8534 ax_pthread_clang_warning=no
8535
8536 # Clang needs special handling, because older versions handle the -pthread
8537 # option in a rather... idiosyncratic way
8538
8539 if test "x$ax_pthread_clang" = "xyes"; then
8540
8541 # Clang takes -pthread; it has never supported any other flag
8542
8543 # (Note 1: This will need to be revisited if a system that Clang
8544 # supports has POSIX threads in a separate library. This tends not
8545 # to be the way of modern systems, but it's conceivable.)
8546
8547 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8548 # to get POSIX threads support; the API is always present and
8549 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8550 # -pthread does define _REENTRANT, and while the Darwin headers
8551 # ignore this macro, third-party headers might not.)
8552
8553 PTHREAD_CFLAGS="-pthread"
8554 PTHREAD_LIBS=
8555
8556 ax_pthread_ok=yes
8557
8558 # However, older versions of Clang make a point of warning the user
8559 # that, in an invocation where only linking and no compilation is
8560 # taking place, the -pthread option has no effect ("argument unused
8561 # during compilation"). They expect -pthread to be passed in only
8562 # when source code is being compiled.
8563 #
8564 # Problem is, this is at odds with the way Automake and most other
8565 # C build frameworks function, which is that the same flags used in
8566 # compilation (CFLAGS) are also used in linking. Many systems
8567 # supported by AX_PTHREAD require exactly this for POSIX threads
8568 # support, and in fact it is often not straightforward to specify a
8569 # flag that is used only in the compilation phase and not in
8570 # linking. Such a scenario is extremely rare in practice.
8571 #
8572 # Even though use of the -pthread flag in linking would only print
8573 # a warning, this can be a nuisance for well-run software projects
8574 # that build with -Werror. So if the active version of Clang has
8575 # this misfeature, we search for an option to squash it.
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8578 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8579 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8583 # Create an alternate version of $ac_link that compiles and
8584 # links in two steps (.c -> .o, .o -> exe) instead of one
8585 # (.c -> exe), because the warning occurs only in the second
8586 # step
8587 ax_pthread_save_ac_link="$ac_link"
8588 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8589 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8590 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8591 ax_pthread_save_CFLAGS="$CFLAGS"
8592 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8593 if test "x$ax_pthread_try" = "xunknown"; then :
8594 break
8595 fi
8596 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8597 ac_link="$ax_pthread_save_ac_link"
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 int main(void){return 0;}
8601 _ACEOF
8602 if ac_fn_c_try_link "$LINENO"; then :
8603 ac_link="$ax_pthread_2step_ac_link"
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int main(void){return 0;}
8607 _ACEOF
8608 if ac_fn_c_try_link "$LINENO"; then :
8609 break
8610 fi
8611 rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 done
8618 ac_link="$ax_pthread_save_ac_link"
8619 CFLAGS="$ax_pthread_save_CFLAGS"
8620 if test "x$ax_pthread_try" = "x"; then :
8621 ax_pthread_try=no
8622 fi
8623 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8624
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8627 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8628
8629 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8630 no | unknown) ;;
8631 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8632 esac
8633
8634 fi # $ax_pthread_clang = yes
8635
8636 if test "x$ax_pthread_ok" = "xno"; then
8637 for ax_pthread_try_flag in $ax_pthread_flags; do
8638
8639 case $ax_pthread_try_flag in
8640 none)
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8642 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8643 ;;
8644
8645 -mt,pthread)
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8647 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8648 PTHREAD_CFLAGS="-mt"
8649 PTHREAD_LIBS="-lpthread"
8650 ;;
8651
8652 -*)
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8654 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8655 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8656 ;;
8657
8658 pthread-config)
8659 # Extract the first word of "pthread-config", so it can be a program name with args.
8660 set dummy pthread-config; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 if test -n "$ax_pthread_config"; then
8667 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8671 do
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8676 ac_cv_prog_ax_pthread_config="yes"
8677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8679 fi
8680 done
8681 done
8682 IFS=$as_save_IFS
8683
8684 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8685 fi
8686 fi
8687 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8688 if test -n "$ax_pthread_config"; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8690 $as_echo "$ax_pthread_config" >&6; }
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8694 fi
8695
8696
8697 if test "x$ax_pthread_config" = "xno"; then :
8698 continue
8699 fi
8700 PTHREAD_CFLAGS="`pthread-config --cflags`"
8701 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8702 ;;
8703
8704 *)
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8706 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8707 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8708 ;;
8709 esac
8710
8711 ax_pthread_save_CFLAGS="$CFLAGS"
8712 ax_pthread_save_LIBS="$LIBS"
8713 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8714 LIBS="$PTHREAD_LIBS $LIBS"
8715
8716 # Check for various functions. We must include pthread.h,
8717 # since some functions may be macros. (On the Sequent, we
8718 # need a special flag -Kthread to make this header compile.)
8719 # We check for pthread_join because it is in -lpthread on IRIX
8720 # while pthread_create is in libc. We check for pthread_attr_init
8721 # due to DEC craziness with -lpthreads. We check for
8722 # pthread_cleanup_push because it is one of the few pthread
8723 # functions on Solaris that doesn't have a non-functional libc stub.
8724 # We try pthread_create on general principles.
8725
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 #include <pthread.h>
8729 # if $ax_pthread_check_cond
8730 # error "$ax_pthread_check_macro must be defined"
8731 # endif
8732 static void routine(void *a) { a = 0; }
8733 static void *start_routine(void *a) { return a; }
8734 int
8735 main ()
8736 {
8737 pthread_t th; pthread_attr_t attr;
8738 pthread_create(&th, 0, start_routine, 0);
8739 pthread_join(th, 0);
8740 pthread_attr_init(&attr);
8741 pthread_cleanup_push(routine, 0);
8742 pthread_cleanup_pop(0) /* ; */
8743 ;
8744 return 0;
8745 }
8746 _ACEOF
8747 if ac_fn_c_try_link "$LINENO"; then :
8748 ax_pthread_ok=yes
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext \
8751 conftest$ac_exeext conftest.$ac_ext
8752
8753 CFLAGS="$ax_pthread_save_CFLAGS"
8754 LIBS="$ax_pthread_save_LIBS"
8755
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8757 $as_echo "$ax_pthread_ok" >&6; }
8758 if test "x$ax_pthread_ok" = "xyes"; then :
8759 break
8760 fi
8761
8762 PTHREAD_LIBS=""
8763 PTHREAD_CFLAGS=""
8764 done
8765 fi
8766
8767 # Various other checks:
8768 if test "x$ax_pthread_ok" = "xyes"; then
8769 ax_pthread_save_CFLAGS="$CFLAGS"
8770 ax_pthread_save_LIBS="$LIBS"
8771 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8772 LIBS="$PTHREAD_LIBS $LIBS"
8773
8774 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8776 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8777 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8781 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 #include <pthread.h>
8785 int
8786 main ()
8787 {
8788 int attr = $ax_pthread_attr; return attr /* ; */
8789 ;
8790 return 0;
8791 }
8792 _ACEOF
8793 if ac_fn_c_try_link "$LINENO"; then :
8794 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8798 done
8799
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8802 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8803 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8804 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8805 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8806
8807 cat >>confdefs.h <<_ACEOF
8808 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8809 _ACEOF
8810
8811 ax_pthread_joinable_attr_defined=yes
8812
8813 fi
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8816 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8817 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8821 case $host_os in
8822 solaris*)
8823 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8824 ;;
8825 esac
8826
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8829 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8830 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8831 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8832 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8833 ax_pthread_special_flags_added=yes
8834 fi
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8837 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8838 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <pthread.h>
8844 int
8845 main ()
8846 {
8847 int i = PTHREAD_PRIO_INHERIT;
8848 ;
8849 return 0;
8850 }
8851 _ACEOF
8852 if ac_fn_c_try_link "$LINENO"; then :
8853 ax_cv_PTHREAD_PRIO_INHERIT=yes
8854 else
8855 ax_cv_PTHREAD_PRIO_INHERIT=no
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8859
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8862 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8863 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8864 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8865
8866 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8867
8868 ax_pthread_prio_inherit_defined=yes
8869
8870 fi
8871
8872 CFLAGS="$ax_pthread_save_CFLAGS"
8873 LIBS="$ax_pthread_save_LIBS"
8874
8875 # More AIX lossage: compile with *_r variant
8876 if test "x$GCC" != "xyes"; then
8877 case $host_os in
8878 aix*)
8879 case "x/$CC" in #(
8880 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8881 #handle absolute path differently from PATH based program lookup
8882 case "x$CC" in #(
8883 x/*) :
8884 if as_fn_executable_p ${CC}_r; then :
8885 PTHREAD_CC="${CC}_r"
8886 fi ;; #(
8887 *) :
8888 for ac_prog in ${CC}_r
8889 do
8890 # Extract the first word of "$ac_prog", so it can be a program name with args.
8891 set dummy $ac_prog; ac_word=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 if test -n "$PTHREAD_CC"; then
8898 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8899 else
8900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in $PATH
8902 do
8903 IFS=$as_save_IFS
8904 test -z "$as_dir" && as_dir=.
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907 ac_cv_prog_PTHREAD_CC="$ac_prog"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 break 2
8910 fi
8911 done
8912 done
8913 IFS=$as_save_IFS
8914
8915 fi
8916 fi
8917 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8918 if test -n "$PTHREAD_CC"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8920 $as_echo "$PTHREAD_CC" >&6; }
8921 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8924 fi
8925
8926
8927 test -n "$PTHREAD_CC" && break
8928 done
8929 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8930 ;;
8931 esac ;; #(
8932 *) :
8933 ;;
8934 esac
8935 ;;
8936 esac
8937 fi
8938 fi
8939
8940 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8941
8942
8943
8944
8945
8946 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8947 if test "x$ax_pthread_ok" = "xyes"; then
8948 threads=yes
8949 :
8950 else
8951 ax_pthread_ok=no
8952 as_fn_error $? "pthread not found" "$LINENO" 5
8953 fi
8954 ac_ext=c
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959
8960
8961 elif test "$threads" = "auto"; then
8962
8963
8964
8965
8966 ac_ext=c
8967 ac_cpp='$CPP $CPPFLAGS'
8968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8971
8972 ax_pthread_ok=no
8973
8974 # We used to check for pthread.h first, but this fails if pthread.h
8975 # requires special compiler flags (e.g. on Tru64 or Sequent).
8976 # It gets checked for in the link test anyway.
8977
8978 # First of all, check if the user has set any of the PTHREAD_LIBS,
8979 # etcetera environment variables, and if threads linking works using
8980 # them:
8981 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8982 ax_pthread_save_CC="$CC"
8983 ax_pthread_save_CFLAGS="$CFLAGS"
8984 ax_pthread_save_LIBS="$LIBS"
8985 if test "x$PTHREAD_CC" != "x"; then :
8986 CC="$PTHREAD_CC"
8987 fi
8988 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8989 LIBS="$PTHREAD_LIBS $LIBS"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8991 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994
8995 /* Override any GCC internal prototype to avoid an error.
8996 Use char because int might match the return type of a GCC
8997 builtin and then its argument prototype would still apply. */
8998 #ifdef __cplusplus
8999 extern "C"
9000 #endif
9001 char pthread_join ();
9002 int
9003 main ()
9004 {
9005 return pthread_join ();
9006 ;
9007 return 0;
9008 }
9009 _ACEOF
9010 if ac_fn_c_try_link "$LINENO"; then :
9011 ax_pthread_ok=yes
9012 fi
9013 rm -f core conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9016 $as_echo "$ax_pthread_ok" >&6; }
9017 if test "x$ax_pthread_ok" = "xno"; then
9018 PTHREAD_LIBS=""
9019 PTHREAD_CFLAGS=""
9020 fi
9021 CC="$ax_pthread_save_CC"
9022 CFLAGS="$ax_pthread_save_CFLAGS"
9023 LIBS="$ax_pthread_save_LIBS"
9024 fi
9025
9026 # We must check for the threads library under a number of different
9027 # names; the ordering is very important because some systems
9028 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9029 # libraries is broken (non-POSIX).
9030
9031 # Create a list of thread flags to try. Items starting with a "-" are
9032 # C compiler flags, and other items are library names, except for "none"
9033 # which indicates that we try without any flags at all, and "pthread-config"
9034 # which is a program returning the flags for the Pth emulation library.
9035
9036 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9037
9038 # The ordering *is* (sometimes) important. Some notes on the
9039 # individual items follow:
9040
9041 # pthreads: AIX (must check this before -lpthread)
9042 # none: in case threads are in libc; should be tried before -Kthread and
9043 # other compiler flags to prevent continual compiler warnings
9044 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9045 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9046 # (Note: HP C rejects this with "bad form for `-t' option")
9047 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9048 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9049 # doesn't hurt to check since this sometimes defines pthreads and
9050 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9051 # is present but should not be used directly; and before -mthreads,
9052 # because the compiler interprets this as "-mt" + "-hreads")
9053 # -mthreads: Mingw32/gcc, Lynx/gcc
9054 # pthread: Linux, etcetera
9055 # --thread-safe: KAI C++
9056 # pthread-config: use pthread-config program (for GNU Pth library)
9057
9058 case $host_os in
9059
9060 freebsd*)
9061
9062 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9063 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9064
9065 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9066 ;;
9067
9068 hpux*)
9069
9070 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9071 # multi-threading and also sets -lpthread."
9072
9073 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9074 ;;
9075
9076 openedition*)
9077
9078 # IBM z/OS requires a feature-test macro to be defined in order to
9079 # enable POSIX threads at all, so give the user a hint if this is
9080 # not set. (We don't define these ourselves, as they can affect
9081 # other portions of the system API in unpredictable ways.)
9082
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085
9086 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9087 AX_PTHREAD_ZOS_MISSING
9088 # endif
9089
9090 _ACEOF
9091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9092 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9094 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9095 fi
9096 rm -f conftest*
9097
9098 ;;
9099
9100 solaris*)
9101
9102 # On Solaris (at least, for some versions), libc contains stubbed
9103 # (non-functional) versions of the pthreads routines, so link-based
9104 # tests will erroneously succeed. (N.B.: The stubs are missing
9105 # pthread_cleanup_push, or rather a function called by this macro,
9106 # so we could check for that, but who knows whether they'll stub
9107 # that too in a future libc.) So we'll check first for the
9108 # standard Solaris way of linking pthreads (-mt -lpthread).
9109
9110 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9111 ;;
9112 esac
9113
9114 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9115
9116 if test "x$GCC" = "xyes"; then :
9117 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9118 fi
9119
9120 # The presence of a feature test macro requesting re-entrant function
9121 # definitions is, on some systems, a strong hint that pthreads support is
9122 # correctly enabled
9123
9124 case $host_os in
9125 darwin* | hpux* | linux* | osf* | solaris*)
9126 ax_pthread_check_macro="_REENTRANT"
9127 ;;
9128
9129 aix*)
9130 ax_pthread_check_macro="_THREAD_SAFE"
9131 ;;
9132
9133 *)
9134 ax_pthread_check_macro="--"
9135 ;;
9136 esac
9137 if test "x$ax_pthread_check_macro" = "x--"; then :
9138 ax_pthread_check_cond=0
9139 else
9140 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9141 fi
9142
9143 # Are we compiling with Clang?
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9146 $as_echo_n "checking whether $CC is Clang... " >&6; }
9147 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 ax_cv_PTHREAD_CLANG=no
9151 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9152 if test "x$GCC" = "xyes"; then
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9156 # if defined(__clang__) && defined(__llvm__)
9157 AX_PTHREAD_CC_IS_CLANG
9158 # endif
9159
9160 _ACEOF
9161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9162 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9163 ax_cv_PTHREAD_CLANG=yes
9164 fi
9165 rm -f conftest*
9166
9167 fi
9168
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9171 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9172 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9173
9174 ax_pthread_clang_warning=no
9175
9176 # Clang needs special handling, because older versions handle the -pthread
9177 # option in a rather... idiosyncratic way
9178
9179 if test "x$ax_pthread_clang" = "xyes"; then
9180
9181 # Clang takes -pthread; it has never supported any other flag
9182
9183 # (Note 1: This will need to be revisited if a system that Clang
9184 # supports has POSIX threads in a separate library. This tends not
9185 # to be the way of modern systems, but it's conceivable.)
9186
9187 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9188 # to get POSIX threads support; the API is always present and
9189 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9190 # -pthread does define _REENTRANT, and while the Darwin headers
9191 # ignore this macro, third-party headers might not.)
9192
9193 PTHREAD_CFLAGS="-pthread"
9194 PTHREAD_LIBS=
9195
9196 ax_pthread_ok=yes
9197
9198 # However, older versions of Clang make a point of warning the user
9199 # that, in an invocation where only linking and no compilation is
9200 # taking place, the -pthread option has no effect ("argument unused
9201 # during compilation"). They expect -pthread to be passed in only
9202 # when source code is being compiled.
9203 #
9204 # Problem is, this is at odds with the way Automake and most other
9205 # C build frameworks function, which is that the same flags used in
9206 # compilation (CFLAGS) are also used in linking. Many systems
9207 # supported by AX_PTHREAD require exactly this for POSIX threads
9208 # support, and in fact it is often not straightforward to specify a
9209 # flag that is used only in the compilation phase and not in
9210 # linking. Such a scenario is extremely rare in practice.
9211 #
9212 # Even though use of the -pthread flag in linking would only print
9213 # a warning, this can be a nuisance for well-run software projects
9214 # that build with -Werror. So if the active version of Clang has
9215 # this misfeature, we search for an option to squash it.
9216
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9218 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9219 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9223 # Create an alternate version of $ac_link that compiles and
9224 # links in two steps (.c -> .o, .o -> exe) instead of one
9225 # (.c -> exe), because the warning occurs only in the second
9226 # step
9227 ax_pthread_save_ac_link="$ac_link"
9228 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9229 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9230 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9231 ax_pthread_save_CFLAGS="$CFLAGS"
9232 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9233 if test "x$ax_pthread_try" = "xunknown"; then :
9234 break
9235 fi
9236 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9237 ac_link="$ax_pthread_save_ac_link"
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 int main(void){return 0;}
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"; then :
9243 ac_link="$ax_pthread_2step_ac_link"
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246 int main(void){return 0;}
9247 _ACEOF
9248 if ac_fn_c_try_link "$LINENO"; then :
9249 break
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 done
9258 ac_link="$ax_pthread_save_ac_link"
9259 CFLAGS="$ax_pthread_save_CFLAGS"
9260 if test "x$ax_pthread_try" = "x"; then :
9261 ax_pthread_try=no
9262 fi
9263 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9264
9265 fi
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9267 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9268
9269 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9270 no | unknown) ;;
9271 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9272 esac
9273
9274 fi # $ax_pthread_clang = yes
9275
9276 if test "x$ax_pthread_ok" = "xno"; then
9277 for ax_pthread_try_flag in $ax_pthread_flags; do
9278
9279 case $ax_pthread_try_flag in
9280 none)
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9282 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9283 ;;
9284
9285 -mt,pthread)
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9287 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9288 PTHREAD_CFLAGS="-mt"
9289 PTHREAD_LIBS="-lpthread"
9290 ;;
9291
9292 -*)
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9294 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9295 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9296 ;;
9297
9298 pthread-config)
9299 # Extract the first word of "pthread-config", so it can be a program name with args.
9300 set dummy pthread-config; ac_word=$2
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9302 $as_echo_n "checking for $ac_word... " >&6; }
9303 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 if test -n "$ax_pthread_config"; then
9307 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9308 else
9309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 for as_dir in $PATH
9311 do
9312 IFS=$as_save_IFS
9313 test -z "$as_dir" && as_dir=.
9314 for ac_exec_ext in '' $ac_executable_extensions; do
9315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9316 ac_cv_prog_ax_pthread_config="yes"
9317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 break 2
9319 fi
9320 done
9321 done
9322 IFS=$as_save_IFS
9323
9324 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9325 fi
9326 fi
9327 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9328 if test -n "$ax_pthread_config"; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9330 $as_echo "$ax_pthread_config" >&6; }
9331 else
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 $as_echo "no" >&6; }
9334 fi
9335
9336
9337 if test "x$ax_pthread_config" = "xno"; then :
9338 continue
9339 fi
9340 PTHREAD_CFLAGS="`pthread-config --cflags`"
9341 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9342 ;;
9343
9344 *)
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9346 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9347 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9348 ;;
9349 esac
9350
9351 ax_pthread_save_CFLAGS="$CFLAGS"
9352 ax_pthread_save_LIBS="$LIBS"
9353 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9354 LIBS="$PTHREAD_LIBS $LIBS"
9355
9356 # Check for various functions. We must include pthread.h,
9357 # since some functions may be macros. (On the Sequent, we
9358 # need a special flag -Kthread to make this header compile.)
9359 # We check for pthread_join because it is in -lpthread on IRIX
9360 # while pthread_create is in libc. We check for pthread_attr_init
9361 # due to DEC craziness with -lpthreads. We check for
9362 # pthread_cleanup_push because it is one of the few pthread
9363 # functions on Solaris that doesn't have a non-functional libc stub.
9364 # We try pthread_create on general principles.
9365
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <pthread.h>
9369 # if $ax_pthread_check_cond
9370 # error "$ax_pthread_check_macro must be defined"
9371 # endif
9372 static void routine(void *a) { a = 0; }
9373 static void *start_routine(void *a) { return a; }
9374 int
9375 main ()
9376 {
9377 pthread_t th; pthread_attr_t attr;
9378 pthread_create(&th, 0, start_routine, 0);
9379 pthread_join(th, 0);
9380 pthread_attr_init(&attr);
9381 pthread_cleanup_push(routine, 0);
9382 pthread_cleanup_pop(0) /* ; */
9383 ;
9384 return 0;
9385 }
9386 _ACEOF
9387 if ac_fn_c_try_link "$LINENO"; then :
9388 ax_pthread_ok=yes
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392
9393 CFLAGS="$ax_pthread_save_CFLAGS"
9394 LIBS="$ax_pthread_save_LIBS"
9395
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9397 $as_echo "$ax_pthread_ok" >&6; }
9398 if test "x$ax_pthread_ok" = "xyes"; then :
9399 break
9400 fi
9401
9402 PTHREAD_LIBS=""
9403 PTHREAD_CFLAGS=""
9404 done
9405 fi
9406
9407 # Various other checks:
9408 if test "x$ax_pthread_ok" = "xyes"; then
9409 ax_pthread_save_CFLAGS="$CFLAGS"
9410 ax_pthread_save_LIBS="$LIBS"
9411 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9412 LIBS="$PTHREAD_LIBS $LIBS"
9413
9414 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9416 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9417 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9421 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424 #include <pthread.h>
9425 int
9426 main ()
9427 {
9428 int attr = $ax_pthread_attr; return attr /* ; */
9429 ;
9430 return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9434 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 done
9439
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9442 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9443 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9444 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9445 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9446
9447 cat >>confdefs.h <<_ACEOF
9448 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9449 _ACEOF
9450
9451 ax_pthread_joinable_attr_defined=yes
9452
9453 fi
9454
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9456 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9457 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9461 case $host_os in
9462 solaris*)
9463 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9464 ;;
9465 esac
9466
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9469 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9470 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9471 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9472 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9473 ax_pthread_special_flags_added=yes
9474 fi
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9477 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9478 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 #include <pthread.h>
9484 int
9485 main ()
9486 {
9487 int i = PTHREAD_PRIO_INHERIT;
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"; then :
9493 ax_cv_PTHREAD_PRIO_INHERIT=yes
9494 else
9495 ax_cv_PTHREAD_PRIO_INHERIT=no
9496 fi
9497 rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499
9500 fi
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9502 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9503 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9504 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9505
9506 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9507
9508 ax_pthread_prio_inherit_defined=yes
9509
9510 fi
9511
9512 CFLAGS="$ax_pthread_save_CFLAGS"
9513 LIBS="$ax_pthread_save_LIBS"
9514
9515 # More AIX lossage: compile with *_r variant
9516 if test "x$GCC" != "xyes"; then
9517 case $host_os in
9518 aix*)
9519 case "x/$CC" in #(
9520 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9521 #handle absolute path differently from PATH based program lookup
9522 case "x$CC" in #(
9523 x/*) :
9524 if as_fn_executable_p ${CC}_r; then :
9525 PTHREAD_CC="${CC}_r"
9526 fi ;; #(
9527 *) :
9528 for ac_prog in ${CC}_r
9529 do
9530 # Extract the first word of "$ac_prog", so it can be a program name with args.
9531 set dummy $ac_prog; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 if test -n "$PTHREAD_CC"; then
9538 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9539 else
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9542 do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547 ac_cv_prog_PTHREAD_CC="$ac_prog"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9550 fi
9551 done
9552 done
9553 IFS=$as_save_IFS
9554
9555 fi
9556 fi
9557 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9558 if test -n "$PTHREAD_CC"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9560 $as_echo "$PTHREAD_CC" >&6; }
9561 else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9564 fi
9565
9566
9567 test -n "$PTHREAD_CC" && break
9568 done
9569 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9570 ;;
9571 esac ;; #(
9572 *) :
9573 ;;
9574 esac
9575 ;;
9576 esac
9577 fi
9578 fi
9579
9580 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9581
9582
9583
9584
9585
9586 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9587 if test "x$ax_pthread_ok" = "xyes"; then
9588 threads=yes
9589 :
9590 else
9591 ax_pthread_ok=no
9592 threads=no
9593 fi
9594 ac_ext=c
9595 ac_cpp='$CPP $CPPFLAGS'
9596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9599
9600
9601 fi
9602
9603 if test "$threads" = "yes"; then
9604
9605 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9606
9607 fi
9608 if test "$threads" = "yes"; then
9609 THREADS_TRUE=
9610 THREADS_FALSE='#'
9611 else
9612 THREADS_TRUE='#'
9613 THREADS_FALSE=
9614 fi
9615
9616
9617 # Used to validate --package-metadata= input. Disabled by default.
9618 # Check whether --enable-jansson was given.
9619 if test "${enable_jansson+set}" = set; then :
9620 enableval=$enable_jansson; enable_jansson=$enableval
9621 else
9622 enable_jansson="no"
9623 fi
9624
9625
9626 if test "x$enable_jansson" != "xno"; then
9627
9628
9629
9630
9631
9632
9633
9634 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9635 if test -n "$ac_tool_prefix"; then
9636 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9637 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639 $as_echo_n "checking for $ac_word... " >&6; }
9640 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 case $PKG_CONFIG in
9644 [\\/]* | ?:[\\/]*)
9645 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9646 ;;
9647 *)
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 for as_dir in $PATH
9650 do
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9655 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 break 2
9658 fi
9659 done
9660 done
9661 IFS=$as_save_IFS
9662
9663 ;;
9664 esac
9665 fi
9666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9667 if test -n "$PKG_CONFIG"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9669 $as_echo "$PKG_CONFIG" >&6; }
9670 else
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9673 fi
9674
9675
9676 fi
9677 if test -z "$ac_cv_path_PKG_CONFIG"; then
9678 ac_pt_PKG_CONFIG=$PKG_CONFIG
9679 # Extract the first word of "pkg-config", so it can be a program name with args.
9680 set dummy pkg-config; ac_word=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 case $ac_pt_PKG_CONFIG in
9687 [\\/]* | ?:[\\/]*)
9688 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9689 ;;
9690 *)
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9693 do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9701 fi
9702 done
9703 done
9704 IFS=$as_save_IFS
9705
9706 ;;
9707 esac
9708 fi
9709 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9710 if test -n "$ac_pt_PKG_CONFIG"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9712 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9713 else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9716 fi
9717
9718 if test "x$ac_pt_PKG_CONFIG" = x; then
9719 PKG_CONFIG=""
9720 else
9721 case $cross_compiling:$ac_tool_warned in
9722 yes:)
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9725 ac_tool_warned=yes ;;
9726 esac
9727 PKG_CONFIG=$ac_pt_PKG_CONFIG
9728 fi
9729 else
9730 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9731 fi
9732
9733 fi
9734 if test -n "$PKG_CONFIG"; then
9735 _pkg_min_version=0.9.0
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9737 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9738 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9740 $as_echo "yes" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9744 PKG_CONFIG=""
9745 fi
9746 fi
9747 if test -n "$PKG_CONFIG"; then :
9748
9749
9750 pkg_failed=no
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
9752 $as_echo_n "checking for jansson... " >&6; }
9753
9754 if test -n "$JANSSON_CFLAGS"; then
9755 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
9756 elif test -n "$PKG_CONFIG"; then
9757 if test -n "$PKG_CONFIG" && \
9758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
9759 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
9760 ac_status=$?
9761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9762 test $ac_status = 0; }; then
9763 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
9764 test "x$?" != "x0" && pkg_failed=yes
9765 else
9766 pkg_failed=yes
9767 fi
9768 else
9769 pkg_failed=untried
9770 fi
9771 if test -n "$JANSSON_LIBS"; then
9772 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
9773 elif test -n "$PKG_CONFIG"; then
9774 if test -n "$PKG_CONFIG" && \
9775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
9776 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
9777 ac_status=$?
9778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9779 test $ac_status = 0; }; then
9780 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
9781 test "x$?" != "x0" && pkg_failed=yes
9782 else
9783 pkg_failed=yes
9784 fi
9785 else
9786 pkg_failed=untried
9787 fi
9788
9789 if test $pkg_failed = no; then
9790 pkg_save_LDFLAGS="$LDFLAGS"
9791 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794
9795 int
9796 main ()
9797 {
9798
9799 ;
9800 return 0;
9801 }
9802 _ACEOF
9803 if ac_fn_c_try_link "$LINENO"; then :
9804
9805 else
9806 pkg_failed=yes
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 LDFLAGS=$pkg_save_LDFLAGS
9811 fi
9812
9813
9814
9815 if test $pkg_failed = yes; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 $as_echo "no" >&6; }
9818
9819 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9820 _pkg_short_errors_supported=yes
9821 else
9822 _pkg_short_errors_supported=no
9823 fi
9824 if test $_pkg_short_errors_supported = yes; then
9825 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
9826 else
9827 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
9828 fi
9829 # Put the nasty error message in config.log where it belongs
9830 echo "$JANSSON_PKG_ERRORS" >&5
9831
9832
9833 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
9834
9835 elif test $pkg_failed = untried; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838
9839 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
9840
9841 else
9842 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
9843 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9845 $as_echo "yes" >&6; }
9846
9847
9848 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
9849
9850
9851
9852
9853 fi
9854
9855 else
9856
9857 as_fn_error $? "Cannot find pkg-config" "$LINENO" 5
9858
9859 fi
9860 fi
9861
9862 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9863 if test "x$ac_cv_have_decl_basename" = xyes; then :
9864 ac_have_decl=1
9865 else
9866 ac_have_decl=0
9867 fi
9868
9869 cat >>confdefs.h <<_ACEOF
9870 #define HAVE_DECL_BASENAME $ac_have_decl
9871 _ACEOF
9872 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9873 if test "x$ac_cv_have_decl_ffs" = xyes; then :
9874 ac_have_decl=1
9875 else
9876 ac_have_decl=0
9877 fi
9878
9879 cat >>confdefs.h <<_ACEOF
9880 #define HAVE_DECL_FFS $ac_have_decl
9881 _ACEOF
9882 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9883 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
9884 ac_have_decl=1
9885 else
9886 ac_have_decl=0
9887 fi
9888
9889 cat >>confdefs.h <<_ACEOF
9890 #define HAVE_DECL_ASPRINTF $ac_have_decl
9891 _ACEOF
9892 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9893 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
9894 ac_have_decl=1
9895 else
9896 ac_have_decl=0
9897 fi
9898
9899 cat >>confdefs.h <<_ACEOF
9900 #define HAVE_DECL_VASPRINTF $ac_have_decl
9901 _ACEOF
9902 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9903 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
9904 ac_have_decl=1
9905 else
9906 ac_have_decl=0
9907 fi
9908
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_DECL_SNPRINTF $ac_have_decl
9911 _ACEOF
9912 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9913 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
9914 ac_have_decl=1
9915 else
9916 ac_have_decl=0
9917 fi
9918
9919 cat >>confdefs.h <<_ACEOF
9920 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9921 _ACEOF
9922 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9923 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
9924 ac_have_decl=1
9925 else
9926 ac_have_decl=0
9927 fi
9928
9929 cat >>confdefs.h <<_ACEOF
9930 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9931 _ACEOF
9932
9933
9934 save_CFLAGS="$CFLAGS"
9935 CFLAGS="$CFLAGS -Werror -gpubnames"
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9938 int i;
9939 _ACEOF
9940 if ac_fn_c_try_compile "$LINENO"; then :
9941 have_pubnames=yes
9942 else
9943 have_pubnames=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 CFLAGS="$save_CFLAGS"
9947 if test "$have_pubnames" = "yes"; then
9948 HAVE_PUBNAMES_TRUE=
9949 HAVE_PUBNAMES_FALSE='#'
9950 else
9951 HAVE_PUBNAMES_TRUE='#'
9952 HAVE_PUBNAMES_FALSE=
9953 fi
9954
9955
9956 save_CFLAGS="$CFLAGS"
9957 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960 int i;
9961 _ACEOF
9962 if ac_fn_c_try_compile "$LINENO"; then :
9963 have_no_use_linker_plugin=yes
9964 else
9965 have_no_use_linker_plugin=no
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968 CFLAGS="$save_CFLAGS"
9969 if test "$have_no_use_linker_plugin" = "yes"; then
9970 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
9971 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
9972 else
9973 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
9974 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
9975 fi
9976
9977
9978 ac_ext=cpp
9979 ac_cpp='$CXXCPP $CPPFLAGS'
9980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9983
9984
9985
9986 ac_ext=cpp
9987 ac_cpp='$CXXCPP $CPPFLAGS'
9988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9992 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9993 if test -z "$CXXCPP"; then
9994 if ${ac_cv_prog_CXXCPP+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 # Double quotes because CXXCPP needs to be expanded
9998 for CXXCPP in "$CXX -E" "/lib/cpp"
9999 do
10000 ac_preproc_ok=false
10001 for ac_cxx_preproc_warn_flag in '' yes
10002 do
10003 # Use a header file that comes with gcc, so configuring glibc
10004 # with a fresh cross-compiler works.
10005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006 # <limits.h> exists even on freestanding compilers.
10007 # On the NeXT, cc -E runs the code through the compiler's parser,
10008 # not just through cpp. "Syntax error" is here to catch this case.
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 #ifdef __STDC__
10012 # include <limits.h>
10013 #else
10014 # include <assert.h>
10015 #endif
10016 Syntax error
10017 _ACEOF
10018 if ac_fn_cxx_try_cpp "$LINENO"; then :
10019
10020 else
10021 # Broken: fails on valid input.
10022 continue
10023 fi
10024 rm -f conftest.err conftest.i conftest.$ac_ext
10025
10026 # OK, works on sane cases. Now check whether nonexistent headers
10027 # can be detected and how.
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 #include <ac_nonexistent.h>
10031 _ACEOF
10032 if ac_fn_cxx_try_cpp "$LINENO"; then :
10033 # Broken: success on invalid input.
10034 continue
10035 else
10036 # Passes both tests.
10037 ac_preproc_ok=:
10038 break
10039 fi
10040 rm -f conftest.err conftest.i conftest.$ac_ext
10041
10042 done
10043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10044 rm -f conftest.i conftest.err conftest.$ac_ext
10045 if $ac_preproc_ok; then :
10046 break
10047 fi
10048
10049 done
10050 ac_cv_prog_CXXCPP=$CXXCPP
10051
10052 fi
10053 CXXCPP=$ac_cv_prog_CXXCPP
10054 else
10055 ac_cv_prog_CXXCPP=$CXXCPP
10056 fi
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10058 $as_echo "$CXXCPP" >&6; }
10059 ac_preproc_ok=false
10060 for ac_cxx_preproc_warn_flag in '' yes
10061 do
10062 # Use a header file that comes with gcc, so configuring glibc
10063 # with a fresh cross-compiler works.
10064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065 # <limits.h> exists even on freestanding compilers.
10066 # On the NeXT, cc -E runs the code through the compiler's parser,
10067 # not just through cpp. "Syntax error" is here to catch this case.
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 #ifdef __STDC__
10071 # include <limits.h>
10072 #else
10073 # include <assert.h>
10074 #endif
10075 Syntax error
10076 _ACEOF
10077 if ac_fn_cxx_try_cpp "$LINENO"; then :
10078
10079 else
10080 # Broken: fails on valid input.
10081 continue
10082 fi
10083 rm -f conftest.err conftest.i conftest.$ac_ext
10084
10085 # OK, works on sane cases. Now check whether nonexistent headers
10086 # can be detected and how.
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 #include <ac_nonexistent.h>
10090 _ACEOF
10091 if ac_fn_cxx_try_cpp "$LINENO"; then :
10092 # Broken: success on invalid input.
10093 continue
10094 else
10095 # Passes both tests.
10096 ac_preproc_ok=:
10097 break
10098 fi
10099 rm -f conftest.err conftest.i conftest.$ac_ext
10100
10101 done
10102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10103 rm -f conftest.i conftest.err conftest.$ac_ext
10104 if $ac_preproc_ok; then :
10105
10106 else
10107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10109 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10110 See \`config.log' for more details" "$LINENO" 5; }
10111 fi
10112
10113 ac_ext=cpp
10114 ac_cpp='$CXXCPP $CPPFLAGS'
10115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10118
10119
10120 for ac_header in unordered_set unordered_map
10121 do :
10122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10125 cat >>confdefs.h <<_ACEOF
10126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10127 _ACEOF
10128
10129 fi
10130
10131 done
10132
10133 for ac_header in tr1/unordered_set tr1/unordered_map
10134 do :
10135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10136 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10138 cat >>confdefs.h <<_ACEOF
10139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10140 _ACEOF
10141
10142 fi
10143
10144 done
10145
10146 for ac_header in ext/hash_map ext/hash_set
10147 do :
10148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10149 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10151 cat >>confdefs.h <<_ACEOF
10152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10153 _ACEOF
10154
10155 fi
10156
10157 done
10158
10159 for ac_header in byteswap.h
10160 do :
10161 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
10162 if test "x$ac_cv_header_byteswap_h" = xyes; then :
10163 cat >>confdefs.h <<_ACEOF
10164 #define HAVE_BYTESWAP_H 1
10165 _ACEOF
10166
10167 fi
10168
10169 done
10170
10171
10172 ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
10173 "
10174 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
10175 ac_have_decl=1
10176 else
10177 ac_have_decl=0
10178 fi
10179
10180 cat >>confdefs.h <<_ACEOF
10181 #define HAVE_DECL_BSWAP_16 $ac_have_decl
10182 _ACEOF
10183 ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
10184 "
10185 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
10186 ac_have_decl=1
10187 else
10188 ac_have_decl=0
10189 fi
10190
10191 cat >>confdefs.h <<_ACEOF
10192 #define HAVE_DECL_BSWAP_32 $ac_have_decl
10193 _ACEOF
10194 ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
10195 "
10196 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
10197 ac_have_decl=1
10198 else
10199 ac_have_decl=0
10200 fi
10201
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_DECL_BSWAP_64 $ac_have_decl
10204 _ACEOF
10205
10206
10207 for ac_header in windows.h
10208 do :
10209 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10210 if test "x$ac_cv_header_windows_h" = xyes; then :
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_WINDOWS_H 1
10213 _ACEOF
10214
10215 fi
10216
10217 done
10218
10219 for ac_header in dlfcn.h
10220 do :
10221 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10222 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10223 cat >>confdefs.h <<_ACEOF
10224 #define HAVE_DLFCN_H 1
10225 _ACEOF
10226
10227 fi
10228
10229 done
10230
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10232 $as_echo_n "checking for library containing dlopen... " >&6; }
10233 if ${ac_cv_search_dlopen+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 ac_func_search_save_LIBS=$LIBS
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char dlopen ();
10247 int
10248 main ()
10249 {
10250 return dlopen ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 for ac_lib in '' dl dld; do
10256 if test -z "$ac_lib"; then
10257 ac_res="none required"
10258 else
10259 ac_res=-l$ac_lib
10260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10261 fi
10262 if ac_fn_cxx_try_link "$LINENO"; then :
10263 ac_cv_search_dlopen=$ac_res
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext
10267 if ${ac_cv_search_dlopen+:} false; then :
10268 break
10269 fi
10270 done
10271 if ${ac_cv_search_dlopen+:} false; then :
10272
10273 else
10274 ac_cv_search_dlopen=no
10275 fi
10276 rm conftest.$ac_ext
10277 LIBS=$ac_func_search_save_LIBS
10278 fi
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10280 $as_echo "$ac_cv_search_dlopen" >&6; }
10281 ac_res=$ac_cv_search_dlopen
10282 if test "$ac_res" != no; then :
10283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10284
10285 fi
10286
10287 case "$ac_cv_search_dlopen" in
10288 no*) DLOPEN_LIBS="";;
10289 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
10290 esac
10291
10292
10293 for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
10294 do :
10295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10296 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10298 cat >>confdefs.h <<_ACEOF
10299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10300 _ACEOF
10301
10302 fi
10303 done
10304
10305 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
10306 if test "x$ac_cv_have_decl_basename" = xyes; then :
10307 ac_have_decl=1
10308 else
10309 ac_have_decl=0
10310 fi
10311
10312 cat >>confdefs.h <<_ACEOF
10313 #define HAVE_DECL_BASENAME $ac_have_decl
10314 _ACEOF
10315 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10316 if test "x$ac_cv_have_decl_ffs" = xyes; then :
10317 ac_have_decl=1
10318 else
10319 ac_have_decl=0
10320 fi
10321
10322 cat >>confdefs.h <<_ACEOF
10323 #define HAVE_DECL_FFS $ac_have_decl
10324 _ACEOF
10325 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10326 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
10327 ac_have_decl=1
10328 else
10329 ac_have_decl=0
10330 fi
10331
10332 cat >>confdefs.h <<_ACEOF
10333 #define HAVE_DECL_ASPRINTF $ac_have_decl
10334 _ACEOF
10335 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10336 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
10337 ac_have_decl=1
10338 else
10339 ac_have_decl=0
10340 fi
10341
10342 cat >>confdefs.h <<_ACEOF
10343 #define HAVE_DECL_VASPRINTF $ac_have_decl
10344 _ACEOF
10345 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10346 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
10347 ac_have_decl=1
10348 else
10349 ac_have_decl=0
10350 fi
10351
10352 cat >>confdefs.h <<_ACEOF
10353 #define HAVE_DECL_SNPRINTF $ac_have_decl
10354 _ACEOF
10355 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10356 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
10357 ac_have_decl=1
10358 else
10359 ac_have_decl=0
10360 fi
10361
10362 cat >>confdefs.h <<_ACEOF
10363 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10364 _ACEOF
10365 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10366 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
10367 ac_have_decl=1
10368 else
10369 ac_have_decl=0
10370 fi
10371
10372 cat >>confdefs.h <<_ACEOF
10373 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10374 _ACEOF
10375 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
10376 if test "x$ac_cv_have_decl_strndup" = xyes; then :
10377 ac_have_decl=1
10378 else
10379 ac_have_decl=0
10380 fi
10381
10382 cat >>confdefs.h <<_ACEOF
10383 #define HAVE_DECL_STRNDUP $ac_have_decl
10384 _ACEOF
10385 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10386 if test "x$ac_cv_have_decl_memmem" = xyes; then :
10387 ac_have_decl=1
10388 else
10389 ac_have_decl=0
10390 fi
10391
10392 cat >>confdefs.h <<_ACEOF
10393 #define HAVE_DECL_MEMMEM $ac_have_decl
10394 _ACEOF
10395
10396
10397 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
10398 # at link time with some versions of GCC.
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
10400 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
10401 if ${gold_cv_unordered_map_rehash+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406
10407 #include <tr1/unordered_map>
10408 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
10409
10410 int
10411 main ()
10412 {
10413
10414 ;
10415 return 0;
10416 }
10417 _ACEOF
10418 if ac_fn_cxx_try_link "$LINENO"; then :
10419 gold_cv_unordered_map_rehash=yes
10420 else
10421 gold_cv_unordered_map_rehash=no
10422 fi
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 fi
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10427 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
10428 if test "$gold_cv_unordered_map_rehash" = "yes"; then
10429
10430 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
10431
10432 fi
10433
10434 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
10435 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10437 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
10438 if ${gold_cv_hash_off_t+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 CXXFLAGS_hold=$CXXFLAGS
10442 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445
10446 #include <sys/types.h>
10447 #include <tr1/unordered_map>
10448 std::tr1::hash<off_t> h;
10449
10450 _ACEOF
10451 if ac_fn_cxx_try_compile "$LINENO"; then :
10452 gold_cv_hash_off_t=yes
10453 else
10454 gold_cv_hash_off_t=no
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457 CXXFLAGS=$CXXFLAGS_hold
10458 fi
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10460 $as_echo "$gold_cv_hash_off_t" >&6; }
10461 if test "$gold_cv_hash_off_t" = "yes"; then
10462
10463 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10464
10465 fi
10466
10467 # gcc 4.3.0 doesn't recognize the printf attribute on a template
10468 # function. Check for that. This is gcc bug 35546. This test can
10469 # probably be removed after the bug has been fixed for a while.
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10471 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
10472 if ${gold_cv_template_attribute+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477
10478 template<typename T> extern void foo(const char*, ...)
10479 __attribute__ ((__format__ (__printf__, 1, 2)));
10480 template<typename T> void foo(const char* format, ...) {}
10481 void bar() { foo<int>("%s\n", "foo"); }
10482
10483 _ACEOF
10484 if ac_fn_cxx_try_compile "$LINENO"; then :
10485 gold_cv_template_attribute=yes
10486 else
10487 gold_cv_template_attribute=no
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490 fi
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10492 $as_echo "$gold_cv_template_attribute" >&6; }
10493 if test "$gold_cv_template_attribute" = "yes"; then
10494
10495 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
10496
10497 fi
10498
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10500 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
10501 if ${gold_cv_stat_st_mtim+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506
10507 #include <sys/stat.h>
10508 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10509
10510 int
10511 main ()
10512 {
10513
10514 ;
10515 return 0;
10516 }
10517 _ACEOF
10518 if ac_fn_cxx_try_compile "$LINENO"; then :
10519 gold_cv_stat_st_mtim=yes
10520 else
10521 gold_cv_stat_st_mtim=no
10522 fi
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 fi
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10526 $as_echo "$gold_cv_stat_st_mtim" >&6; }
10527 if test "$gold_cv_stat_st_mtim" = "yes"; then
10528
10529 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10530
10531 fi
10532
10533 ac_ext=c
10534 ac_cpp='$CPP $CPPFLAGS'
10535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10538
10539
10540 for ac_header in locale.h
10541 do :
10542 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10543 if test "x$ac_cv_header_locale_h" = xyes; then :
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_LOCALE_H 1
10546 _ACEOF
10547
10548 fi
10549
10550 done
10551
10552 for ac_func in setlocale
10553 do :
10554 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10555 if test "x$ac_cv_func_setlocale" = xyes; then :
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_SETLOCALE 1
10558 _ACEOF
10559
10560 fi
10561 done
10562
10563
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10565 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10566 if ${am_cv_val_LC_MESSAGES+:} false; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 #include <locale.h>
10572 int
10573 main ()
10574 {
10575 return LC_MESSAGES
10576 ;
10577 return 0;
10578 }
10579 _ACEOF
10580 if ac_fn_c_try_link "$LINENO"; then :
10581 am_cv_val_LC_MESSAGES=yes
10582 else
10583 am_cv_val_LC_MESSAGES=no
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10589 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10590 if test $am_cv_val_LC_MESSAGES = yes; then
10591
10592 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10593
10594 fi
10595
10596
10597
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10599 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10600 # Check whether --enable-maintainer-mode was given.
10601 if test "${enable_maintainer_mode+set}" = set; then :
10602 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10603 else
10604 USE_MAINTAINER_MODE=no
10605 fi
10606
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10608 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10609 if test $USE_MAINTAINER_MODE = yes; then
10610 MAINTAINER_MODE_TRUE=
10611 MAINTAINER_MODE_FALSE='#'
10612 else
10613 MAINTAINER_MODE_TRUE='#'
10614 MAINTAINER_MODE_FALSE=
10615 fi
10616
10617 MAINT=$MAINTAINER_MODE_TRUE
10618
10619
10620
10621 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10622
10623 cat >confcache <<\_ACEOF
10624 # This file is a shell script that caches the results of configure
10625 # tests run on this system so they can be shared between configure
10626 # scripts and configure runs, see configure's option --config-cache.
10627 # It is not useful on other systems. If it contains results you don't
10628 # want to keep, you may remove or edit it.
10629 #
10630 # config.status only pays attention to the cache file if you give it
10631 # the --recheck option to rerun configure.
10632 #
10633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10635 # following values.
10636
10637 _ACEOF
10638
10639 # The following way of writing the cache mishandles newlines in values,
10640 # but we know of no workaround that is simple, portable, and efficient.
10641 # So, we kill variables containing newlines.
10642 # Ultrix sh set writes to stderr and can't be redirected directly,
10643 # and sets the high bit in the cache file unless we assign to the vars.
10644 (
10645 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10646 eval ac_val=\$$ac_var
10647 case $ac_val in #(
10648 *${as_nl}*)
10649 case $ac_var in #(
10650 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10651 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10652 esac
10653 case $ac_var in #(
10654 _ | IFS | as_nl) ;; #(
10655 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10656 *) { eval $ac_var=; unset $ac_var;} ;;
10657 esac ;;
10658 esac
10659 done
10660
10661 (set) 2>&1 |
10662 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10663 *${as_nl}ac_space=\ *)
10664 # `set' does not quote correctly, so add quotes: double-quote
10665 # substitution turns \\\\ into \\, and sed turns \\ into \.
10666 sed -n \
10667 "s/'/'\\\\''/g;
10668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10669 ;; #(
10670 *)
10671 # `set' quotes correctly as required by POSIX, so do not add quotes.
10672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10673 ;;
10674 esac |
10675 sort
10676 ) |
10677 sed '
10678 /^ac_cv_env_/b end
10679 t clear
10680 :clear
10681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10682 t end
10683 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10684 :end' >>confcache
10685 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10686 if test -w "$cache_file"; then
10687 if test "x$cache_file" != "x/dev/null"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10689 $as_echo "$as_me: updating cache $cache_file" >&6;}
10690 if test ! -f "$cache_file" || test -h "$cache_file"; then
10691 cat confcache >"$cache_file"
10692 else
10693 case $cache_file in #(
10694 */* | ?:*)
10695 mv -f confcache "$cache_file"$$ &&
10696 mv -f "$cache_file"$$ "$cache_file" ;; #(
10697 *)
10698 mv -f confcache "$cache_file" ;;
10699 esac
10700 fi
10701 fi
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10704 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10705 fi
10706 fi
10707 rm -f confcache
10708
10709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10710 # Let make expand exec_prefix.
10711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10712
10713 DEFS=-DHAVE_CONFIG_H
10714
10715 ac_libobjs=
10716 ac_ltlibobjs=
10717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10718 # 1. Remove the extension, and $U if already installed.
10719 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10720 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10722 # will be set to the directory where LIBOBJS objects are built.
10723 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10724 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10725 done
10726 LIBOBJS=$ac_libobjs
10727
10728 LTLIBOBJS=$ac_ltlibobjs
10729
10730
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10732 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10733 if test -n "$am_sleep_pid"; then
10734 # Hide warnings about reused PIDs.
10735 wait $am_sleep_pid 2>/dev/null
10736 fi
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10738 $as_echo "done" >&6; }
10739 if test -n "$EXEEXT"; then
10740 am__EXEEXT_TRUE=
10741 am__EXEEXT_FALSE='#'
10742 else
10743 am__EXEEXT_TRUE='#'
10744 am__EXEEXT_FALSE=
10745 fi
10746
10747 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10748 as_fn_error $? "conditional \"AMDEP\" was never defined.
10749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10750 fi
10751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10752 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10754 fi
10755 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
10756 as_fn_error $? "conditional \"PLUGINS\" was never defined.
10757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10758 fi
10759 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
10760 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
10761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10762 fi
10763 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
10764 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
10765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10766 fi
10767 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
10768 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
10769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10770 fi
10771 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
10772 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
10773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10774 fi
10775 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
10776 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
10777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10778 fi
10779 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
10780 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
10781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10782 fi
10783 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
10784 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
10785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10786 fi
10787 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
10788 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
10789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10790 fi
10791 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
10792 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
10793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10794 fi
10795 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
10796 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
10797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10798 fi
10799 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
10800 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
10801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10802 fi
10803 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10804 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10806 fi
10807 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10808 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10810 fi
10811
10812 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
10813 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
10814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10815 fi
10816 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
10817 as_fn_error $? "conditional \"GCC\" was never defined.
10818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10819 fi
10820 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
10821 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
10822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10823 fi
10824 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
10825 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
10826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10827 fi
10828 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
10829 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
10830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10831 fi
10832 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
10833 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
10834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10835 fi
10836 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
10837 as_fn_error $? "conditional \"GCC9\" was never defined.
10838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10839 fi
10840 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
10841 as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
10842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10843 fi
10844 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
10845 as_fn_error $? "conditional \"TLS\" was never defined.
10846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10847 fi
10848 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
10849 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
10850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10851 fi
10852 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
10853 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
10854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10855 fi
10856 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
10857 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
10858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10859 fi
10860 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
10861 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
10862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10863 fi
10864 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
10865 as_fn_error $? "conditional \"IFUNC\" was never defined.
10866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10867 fi
10868 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
10869 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
10870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10871 fi
10872 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
10873 as_fn_error $? "conditional \"THREADS\" was never defined.
10874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10875 fi
10876 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
10877 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
10878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10879 fi
10880 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
10881 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
10882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10883 fi
10884 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10885 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10887 fi
10888
10889 : "${CONFIG_STATUS=./config.status}"
10890 ac_write_fail=0
10891 ac_clean_files_save=$ac_clean_files
10892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10895 as_write_fail=0
10896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10897 #! $SHELL
10898 # Generated by $as_me.
10899 # Run this file to recreate the current configuration.
10900 # Compiler output produced by configure, useful for debugging
10901 # configure, is in config.log if it exists.
10902
10903 debug=false
10904 ac_cs_recheck=false
10905 ac_cs_silent=false
10906
10907 SHELL=\${CONFIG_SHELL-$SHELL}
10908 export SHELL
10909 _ASEOF
10910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10911 ## -------------------- ##
10912 ## M4sh Initialization. ##
10913 ## -------------------- ##
10914
10915 # Be more Bourne compatible
10916 DUALCASE=1; export DUALCASE # for MKS sh
10917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10918 emulate sh
10919 NULLCMD=:
10920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10921 # is contrary to our usage. Disable this feature.
10922 alias -g '${1+"$@"}'='"$@"'
10923 setopt NO_GLOB_SUBST
10924 else
10925 case `(set -o) 2>/dev/null` in #(
10926 *posix*) :
10927 set -o posix ;; #(
10928 *) :
10929 ;;
10930 esac
10931 fi
10932
10933
10934 as_nl='
10935 '
10936 export as_nl
10937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10938 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10941 # Prefer a ksh shell builtin over an external printf program on Solaris,
10942 # but without wasting forks for bash or zsh.
10943 if test -z "$BASH_VERSION$ZSH_VERSION" \
10944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10945 as_echo='print -r --'
10946 as_echo_n='print -rn --'
10947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10948 as_echo='printf %s\n'
10949 as_echo_n='printf %s'
10950 else
10951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10953 as_echo_n='/usr/ucb/echo -n'
10954 else
10955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10956 as_echo_n_body='eval
10957 arg=$1;
10958 case $arg in #(
10959 *"$as_nl"*)
10960 expr "X$arg" : "X\\(.*\\)$as_nl";
10961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10962 esac;
10963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10964 '
10965 export as_echo_n_body
10966 as_echo_n='sh -c $as_echo_n_body as_echo'
10967 fi
10968 export as_echo_body
10969 as_echo='sh -c $as_echo_body as_echo'
10970 fi
10971
10972 # The user is always right.
10973 if test "${PATH_SEPARATOR+set}" != set; then
10974 PATH_SEPARATOR=:
10975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10977 PATH_SEPARATOR=';'
10978 }
10979 fi
10980
10981
10982 # IFS
10983 # We need space, tab and new line, in precisely that order. Quoting is
10984 # there to prevent editors from complaining about space-tab.
10985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10986 # splitting by setting IFS to empty value.)
10987 IFS=" "" $as_nl"
10988
10989 # Find who we are. Look in the path if we contain no directory separator.
10990 as_myself=
10991 case $0 in #((
10992 *[\\/]* ) as_myself=$0 ;;
10993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10995 do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10999 done
11000 IFS=$as_save_IFS
11001
11002 ;;
11003 esac
11004 # We did not find ourselves, most probably we were run as `sh COMMAND'
11005 # in which case we are not to be found in the path.
11006 if test "x$as_myself" = x; then
11007 as_myself=$0
11008 fi
11009 if test ! -f "$as_myself"; then
11010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11011 exit 1
11012 fi
11013
11014 # Unset variables that we do not need and which cause bugs (e.g. in
11015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11016 # suppresses any "Segmentation fault" message there. '((' could
11017 # trigger a bug in pdksh 5.2.14.
11018 for as_var in BASH_ENV ENV MAIL MAILPATH
11019 do eval test x\${$as_var+set} = xset \
11020 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11021 done
11022 PS1='$ '
11023 PS2='> '
11024 PS4='+ '
11025
11026 # NLS nuisances.
11027 LC_ALL=C
11028 export LC_ALL
11029 LANGUAGE=C
11030 export LANGUAGE
11031
11032 # CDPATH.
11033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11034
11035
11036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11037 # ----------------------------------------
11038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11040 # script with STATUS, using 1 if that was 0.
11041 as_fn_error ()
11042 {
11043 as_status=$1; test $as_status -eq 0 && as_status=1
11044 if test "$4"; then
11045 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11047 fi
11048 $as_echo "$as_me: error: $2" >&2
11049 as_fn_exit $as_status
11050 } # as_fn_error
11051
11052
11053 # as_fn_set_status STATUS
11054 # -----------------------
11055 # Set $? to STATUS, without forking.
11056 as_fn_set_status ()
11057 {
11058 return $1
11059 } # as_fn_set_status
11060
11061 # as_fn_exit STATUS
11062 # -----------------
11063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11064 as_fn_exit ()
11065 {
11066 set +e
11067 as_fn_set_status $1
11068 exit $1
11069 } # as_fn_exit
11070
11071 # as_fn_unset VAR
11072 # ---------------
11073 # Portably unset VAR.
11074 as_fn_unset ()
11075 {
11076 { eval $1=; unset $1;}
11077 }
11078 as_unset=as_fn_unset
11079 # as_fn_append VAR VALUE
11080 # ----------------------
11081 # Append the text in VALUE to the end of the definition contained in VAR. Take
11082 # advantage of any shell optimizations that allow amortized linear growth over
11083 # repeated appends, instead of the typical quadratic growth present in naive
11084 # implementations.
11085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11086 eval 'as_fn_append ()
11087 {
11088 eval $1+=\$2
11089 }'
11090 else
11091 as_fn_append ()
11092 {
11093 eval $1=\$$1\$2
11094 }
11095 fi # as_fn_append
11096
11097 # as_fn_arith ARG...
11098 # ------------------
11099 # Perform arithmetic evaluation on the ARGs, and store the result in the
11100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11101 # must be portable across $(()) and expr.
11102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11103 eval 'as_fn_arith ()
11104 {
11105 as_val=$(( $* ))
11106 }'
11107 else
11108 as_fn_arith ()
11109 {
11110 as_val=`expr "$@" || test $? -eq 1`
11111 }
11112 fi # as_fn_arith
11113
11114
11115 if expr a : '\(a\)' >/dev/null 2>&1 &&
11116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11117 as_expr=expr
11118 else
11119 as_expr=false
11120 fi
11121
11122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11123 as_basename=basename
11124 else
11125 as_basename=false
11126 fi
11127
11128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11129 as_dirname=dirname
11130 else
11131 as_dirname=false
11132 fi
11133
11134 as_me=`$as_basename -- "$0" ||
11135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11136 X"$0" : 'X\(//\)$' \| \
11137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11138 $as_echo X/"$0" |
11139 sed '/^.*\/\([^/][^/]*\)\/*$/{
11140 s//\1/
11141 q
11142 }
11143 /^X\/\(\/\/\)$/{
11144 s//\1/
11145 q
11146 }
11147 /^X\/\(\/\).*/{
11148 s//\1/
11149 q
11150 }
11151 s/.*/./; q'`
11152
11153 # Avoid depending upon Character Ranges.
11154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11157 as_cr_digits='0123456789'
11158 as_cr_alnum=$as_cr_Letters$as_cr_digits
11159
11160 ECHO_C= ECHO_N= ECHO_T=
11161 case `echo -n x` in #(((((
11162 -n*)
11163 case `echo 'xy\c'` in
11164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11165 xy) ECHO_C='\c';;
11166 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11167 ECHO_T=' ';;
11168 esac;;
11169 *)
11170 ECHO_N='-n';;
11171 esac
11172
11173 rm -f conf$$ conf$$.exe conf$$.file
11174 if test -d conf$$.dir; then
11175 rm -f conf$$.dir/conf$$.file
11176 else
11177 rm -f conf$$.dir
11178 mkdir conf$$.dir 2>/dev/null
11179 fi
11180 if (echo >conf$$.file) 2>/dev/null; then
11181 if ln -s conf$$.file conf$$ 2>/dev/null; then
11182 as_ln_s='ln -s'
11183 # ... but there are two gotchas:
11184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11186 # In both cases, we have to default to `cp -pR'.
11187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11188 as_ln_s='cp -pR'
11189 elif ln conf$$.file conf$$ 2>/dev/null; then
11190 as_ln_s=ln
11191 else
11192 as_ln_s='cp -pR'
11193 fi
11194 else
11195 as_ln_s='cp -pR'
11196 fi
11197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11198 rmdir conf$$.dir 2>/dev/null
11199
11200
11201 # as_fn_mkdir_p
11202 # -------------
11203 # Create "$as_dir" as a directory, including parents if necessary.
11204 as_fn_mkdir_p ()
11205 {
11206
11207 case $as_dir in #(
11208 -*) as_dir=./$as_dir;;
11209 esac
11210 test -d "$as_dir" || eval $as_mkdir_p || {
11211 as_dirs=
11212 while :; do
11213 case $as_dir in #(
11214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11215 *) as_qdir=$as_dir;;
11216 esac
11217 as_dirs="'$as_qdir' $as_dirs"
11218 as_dir=`$as_dirname -- "$as_dir" ||
11219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11220 X"$as_dir" : 'X\(//\)[^/]' \| \
11221 X"$as_dir" : 'X\(//\)$' \| \
11222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11223 $as_echo X"$as_dir" |
11224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11225 s//\1/
11226 q
11227 }
11228 /^X\(\/\/\)[^/].*/{
11229 s//\1/
11230 q
11231 }
11232 /^X\(\/\/\)$/{
11233 s//\1/
11234 q
11235 }
11236 /^X\(\/\).*/{
11237 s//\1/
11238 q
11239 }
11240 s/.*/./; q'`
11241 test -d "$as_dir" && break
11242 done
11243 test -z "$as_dirs" || eval "mkdir $as_dirs"
11244 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11245
11246
11247 } # as_fn_mkdir_p
11248 if mkdir -p . 2>/dev/null; then
11249 as_mkdir_p='mkdir -p "$as_dir"'
11250 else
11251 test -d ./-p && rmdir ./-p
11252 as_mkdir_p=false
11253 fi
11254
11255
11256 # as_fn_executable_p FILE
11257 # -----------------------
11258 # Test if FILE is an executable regular file.
11259 as_fn_executable_p ()
11260 {
11261 test -f "$1" && test -x "$1"
11262 } # as_fn_executable_p
11263 as_test_x='test -x'
11264 as_executable_p=as_fn_executable_p
11265
11266 # Sed expression to map a string onto a valid CPP name.
11267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11268
11269 # Sed expression to map a string onto a valid variable name.
11270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11271
11272
11273 exec 6>&1
11274 ## ----------------------------------- ##
11275 ## Main body of $CONFIG_STATUS script. ##
11276 ## ----------------------------------- ##
11277 _ASEOF
11278 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11279
11280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11281 # Save the log message, to keep $0 and so on meaningful, and to
11282 # report actual input values of CONFIG_FILES etc. instead of their
11283 # values after options handling.
11284 ac_log="
11285 This file was extended by gold $as_me 0.1, which was
11286 generated by GNU Autoconf 2.69. Invocation command line was
11287
11288 CONFIG_FILES = $CONFIG_FILES
11289 CONFIG_HEADERS = $CONFIG_HEADERS
11290 CONFIG_LINKS = $CONFIG_LINKS
11291 CONFIG_COMMANDS = $CONFIG_COMMANDS
11292 $ $0 $@
11293
11294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11295 "
11296
11297 _ACEOF
11298
11299 case $ac_config_files in *"
11300 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11301 esac
11302
11303 case $ac_config_headers in *"
11304 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11305 esac
11306
11307
11308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11309 # Files that config.status was made for.
11310 config_files="$ac_config_files"
11311 config_headers="$ac_config_headers"
11312 config_commands="$ac_config_commands"
11313
11314 _ACEOF
11315
11316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11317 ac_cs_usage="\
11318 \`$as_me' instantiates files and other configuration actions
11319 from templates according to the current configuration. Unless the files
11320 and actions are specified as TAGs, all are instantiated by default.
11321
11322 Usage: $0 [OPTION]... [TAG]...
11323
11324 -h, --help print this help, then exit
11325 -V, --version print version number and configuration settings, then exit
11326 --config print configuration, then exit
11327 -q, --quiet, --silent
11328 do not print progress messages
11329 -d, --debug don't remove temporary files
11330 --recheck update $as_me by reconfiguring in the same conditions
11331 --file=FILE[:TEMPLATE]
11332 instantiate the configuration file FILE
11333 --header=FILE[:TEMPLATE]
11334 instantiate the configuration header FILE
11335
11336 Configuration files:
11337 $config_files
11338
11339 Configuration headers:
11340 $config_headers
11341
11342 Configuration commands:
11343 $config_commands
11344
11345 Report bugs to the package provider."
11346
11347 _ACEOF
11348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11349 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11350 ac_cs_version="\\
11351 gold config.status 0.1
11352 configured by $0, generated by GNU Autoconf 2.69,
11353 with options \\"\$ac_cs_config\\"
11354
11355 Copyright (C) 2012 Free Software Foundation, Inc.
11356 This config.status script is free software; the Free Software Foundation
11357 gives unlimited permission to copy, distribute and modify it."
11358
11359 ac_pwd='$ac_pwd'
11360 srcdir='$srcdir'
11361 INSTALL='$INSTALL'
11362 MKDIR_P='$MKDIR_P'
11363 AWK='$AWK'
11364 test -n "\$AWK" || AWK=awk
11365 _ACEOF
11366
11367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11368 # The default lists apply if the user does not specify any file.
11369 ac_need_defaults=:
11370 while test $# != 0
11371 do
11372 case $1 in
11373 --*=?*)
11374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11375 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11376 ac_shift=:
11377 ;;
11378 --*=)
11379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11380 ac_optarg=
11381 ac_shift=:
11382 ;;
11383 *)
11384 ac_option=$1
11385 ac_optarg=$2
11386 ac_shift=shift
11387 ;;
11388 esac
11389
11390 case $ac_option in
11391 # Handling of the options.
11392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11393 ac_cs_recheck=: ;;
11394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11395 $as_echo "$ac_cs_version"; exit ;;
11396 --config | --confi | --conf | --con | --co | --c )
11397 $as_echo "$ac_cs_config"; exit ;;
11398 --debug | --debu | --deb | --de | --d | -d )
11399 debug=: ;;
11400 --file | --fil | --fi | --f )
11401 $ac_shift
11402 case $ac_optarg in
11403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11404 '') as_fn_error $? "missing file argument" ;;
11405 esac
11406 as_fn_append CONFIG_FILES " '$ac_optarg'"
11407 ac_need_defaults=false;;
11408 --header | --heade | --head | --hea )
11409 $ac_shift
11410 case $ac_optarg in
11411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11412 esac
11413 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11414 ac_need_defaults=false;;
11415 --he | --h)
11416 # Conflict between --help and --header
11417 as_fn_error $? "ambiguous option: \`$1'
11418 Try \`$0 --help' for more information.";;
11419 --help | --hel | -h )
11420 $as_echo "$ac_cs_usage"; exit ;;
11421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11423 ac_cs_silent=: ;;
11424
11425 # This is an error.
11426 -*) as_fn_error $? "unrecognized option: \`$1'
11427 Try \`$0 --help' for more information." ;;
11428
11429 *) as_fn_append ac_config_targets " $1"
11430 ac_need_defaults=false ;;
11431
11432 esac
11433 shift
11434 done
11435
11436 ac_configure_extra_args=
11437
11438 if $ac_cs_silent; then
11439 exec 6>/dev/null
11440 ac_configure_extra_args="$ac_configure_extra_args --silent"
11441 fi
11442
11443 _ACEOF
11444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11445 if \$ac_cs_recheck; then
11446 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11447 shift
11448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11449 CONFIG_SHELL='$SHELL'
11450 export CONFIG_SHELL
11451 exec "\$@"
11452 fi
11453
11454 _ACEOF
11455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11456 exec 5>>config.log
11457 {
11458 echo
11459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11460 ## Running $as_me. ##
11461 _ASBOX
11462 $as_echo "$ac_log"
11463 } >&5
11464
11465 _ACEOF
11466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11467 #
11468 # INIT-COMMANDS
11469 #
11470 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11471 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11472 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11473 # from automake.
11474 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11475 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11476 LINGUAS="${LINGUAS-%UNSET%}"
11477
11478
11479 _ACEOF
11480
11481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11482
11483 # Handling of arguments.
11484 for ac_config_target in $ac_config_targets
11485 do
11486 case $ac_config_target in
11487 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11488 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11489 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11490 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11491 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11492 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11493
11494 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11495 esac
11496 done
11497
11498
11499 # If the user did not use the arguments to specify the items to instantiate,
11500 # then the envvar interface is used. Set only those that are not.
11501 # We use the long form for the default assignment because of an extremely
11502 # bizarre bug on SunOS 4.1.3.
11503 if $ac_need_defaults; then
11504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11507 fi
11508
11509 # Have a temporary directory for convenience. Make it in the build tree
11510 # simply because there is no reason against having it here, and in addition,
11511 # creating and moving files from /tmp can sometimes cause problems.
11512 # Hook for its removal unless debugging.
11513 # Note that there is a small window in which the directory will not be cleaned:
11514 # after its creation but before its name has been assigned to `$tmp'.
11515 $debug ||
11516 {
11517 tmp= ac_tmp=
11518 trap 'exit_status=$?
11519 : "${ac_tmp:=$tmp}"
11520 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11521 ' 0
11522 trap 'as_fn_exit 1' 1 2 13 15
11523 }
11524 # Create a (secure) tmp directory for tmp files.
11525
11526 {
11527 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11528 test -d "$tmp"
11529 } ||
11530 {
11531 tmp=./conf$$-$RANDOM
11532 (umask 077 && mkdir "$tmp")
11533 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11534 ac_tmp=$tmp
11535
11536 # Set up the scripts for CONFIG_FILES section.
11537 # No need to generate them if there are no CONFIG_FILES.
11538 # This happens for instance with `./config.status config.h'.
11539 if test -n "$CONFIG_FILES"; then
11540
11541
11542 ac_cr=`echo X | tr X '\015'`
11543 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11544 # But we know of no other shell where ac_cr would be empty at this
11545 # point, so we can use a bashism as a fallback.
11546 if test "x$ac_cr" = x; then
11547 eval ac_cr=\$\'\\r\'
11548 fi
11549 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11550 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11551 ac_cs_awk_cr='\\r'
11552 else
11553 ac_cs_awk_cr=$ac_cr
11554 fi
11555
11556 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11557 _ACEOF
11558
11559
11560 {
11561 echo "cat >conf$$subs.awk <<_ACEOF" &&
11562 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11563 echo "_ACEOF"
11564 } >conf$$subs.sh ||
11565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11566 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11567 ac_delim='%!_!# '
11568 for ac_last_try in false false false false false :; do
11569 . ./conf$$subs.sh ||
11570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11571
11572 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11573 if test $ac_delim_n = $ac_delim_num; then
11574 break
11575 elif $ac_last_try; then
11576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11577 else
11578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11579 fi
11580 done
11581 rm -f conf$$subs.sh
11582
11583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11584 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11585 _ACEOF
11586 sed -n '
11587 h
11588 s/^/S["/; s/!.*/"]=/
11589 p
11590 g
11591 s/^[^!]*!//
11592 :repl
11593 t repl
11594 s/'"$ac_delim"'$//
11595 t delim
11596 :nl
11597 h
11598 s/\(.\{148\}\)..*/\1/
11599 t more1
11600 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11601 p
11602 n
11603 b repl
11604 :more1
11605 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11606 p
11607 g
11608 s/.\{148\}//
11609 t nl
11610 :delim
11611 h
11612 s/\(.\{148\}\)..*/\1/
11613 t more2
11614 s/["\\]/\\&/g; s/^/"/; s/$/"/
11615 p
11616 b
11617 :more2
11618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11619 p
11620 g
11621 s/.\{148\}//
11622 t delim
11623 ' <conf$$subs.awk | sed '
11624 /^[^""]/{
11625 N
11626 s/\n//
11627 }
11628 ' >>$CONFIG_STATUS || ac_write_fail=1
11629 rm -f conf$$subs.awk
11630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11631 _ACAWK
11632 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11633 for (key in S) S_is_set[key] = 1
11634 FS = "\a"
11635
11636 }
11637 {
11638 line = $ 0
11639 nfields = split(line, field, "@")
11640 substed = 0
11641 len = length(field[1])
11642 for (i = 2; i < nfields; i++) {
11643 key = field[i]
11644 keylen = length(key)
11645 if (S_is_set[key]) {
11646 value = S[key]
11647 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11648 len += length(value) + length(field[++i])
11649 substed = 1
11650 } else
11651 len += 1 + keylen
11652 }
11653
11654 print line
11655 }
11656
11657 _ACAWK
11658 _ACEOF
11659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11660 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11661 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11662 else
11663 cat
11664 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11665 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11666 _ACEOF
11667
11668 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11669 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11670 # trailing colons and then remove the whole line if VPATH becomes empty
11671 # (actually we leave an empty line to preserve line numbers).
11672 if test "x$srcdir" = x.; then
11673 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11674 h
11675 s///
11676 s/^/:/
11677 s/[ ]*$/:/
11678 s/:\$(srcdir):/:/g
11679 s/:\${srcdir}:/:/g
11680 s/:@srcdir@:/:/g
11681 s/^:*//
11682 s/:*$//
11683 x
11684 s/\(=[ ]*\).*/\1/
11685 G
11686 s/\n//
11687 s/^[^=]*=[ ]*$//
11688 }'
11689 fi
11690
11691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11692 fi # test -n "$CONFIG_FILES"
11693
11694 # Set up the scripts for CONFIG_HEADERS section.
11695 # No need to generate them if there are no CONFIG_HEADERS.
11696 # This happens for instance with `./config.status Makefile'.
11697 if test -n "$CONFIG_HEADERS"; then
11698 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11699 BEGIN {
11700 _ACEOF
11701
11702 # Transform confdefs.h into an awk script `defines.awk', embedded as
11703 # here-document in config.status, that substitutes the proper values into
11704 # config.h.in to produce config.h.
11705
11706 # Create a delimiter string that does not exist in confdefs.h, to ease
11707 # handling of long lines.
11708 ac_delim='%!_!# '
11709 for ac_last_try in false false :; do
11710 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11711 if test -z "$ac_tt"; then
11712 break
11713 elif $ac_last_try; then
11714 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11715 else
11716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11717 fi
11718 done
11719
11720 # For the awk script, D is an array of macro values keyed by name,
11721 # likewise P contains macro parameters if any. Preserve backslash
11722 # newline sequences.
11723
11724 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11725 sed -n '
11726 s/.\{148\}/&'"$ac_delim"'/g
11727 t rset
11728 :rset
11729 s/^[ ]*#[ ]*define[ ][ ]*/ /
11730 t def
11731 d
11732 :def
11733 s/\\$//
11734 t bsnl
11735 s/["\\]/\\&/g
11736 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11737 D["\1"]=" \3"/p
11738 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11739 d
11740 :bsnl
11741 s/["\\]/\\&/g
11742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11743 D["\1"]=" \3\\\\\\n"\\/p
11744 t cont
11745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11746 t cont
11747 d
11748 :cont
11749 n
11750 s/.\{148\}/&'"$ac_delim"'/g
11751 t clear
11752 :clear
11753 s/\\$//
11754 t bsnlc
11755 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11756 d
11757 :bsnlc
11758 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11759 b cont
11760 ' <confdefs.h | sed '
11761 s/'"$ac_delim"'/"\\\
11762 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11763
11764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11765 for (key in D) D_is_set[key] = 1
11766 FS = "\a"
11767 }
11768 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11769 line = \$ 0
11770 split(line, arg, " ")
11771 if (arg[1] == "#") {
11772 defundef = arg[2]
11773 mac1 = arg[3]
11774 } else {
11775 defundef = substr(arg[1], 2)
11776 mac1 = arg[2]
11777 }
11778 split(mac1, mac2, "(") #)
11779 macro = mac2[1]
11780 prefix = substr(line, 1, index(line, defundef) - 1)
11781 if (D_is_set[macro]) {
11782 # Preserve the white space surrounding the "#".
11783 print prefix "define", macro P[macro] D[macro]
11784 next
11785 } else {
11786 # Replace #undef with comments. This is necessary, for example,
11787 # in the case of _POSIX_SOURCE, which is predefined and required
11788 # on some systems where configure will not decide to define it.
11789 if (defundef == "undef") {
11790 print "/*", prefix defundef, macro, "*/"
11791 next
11792 }
11793 }
11794 }
11795 { print }
11796 _ACAWK
11797 _ACEOF
11798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11799 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11800 fi # test -n "$CONFIG_HEADERS"
11801
11802
11803 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11804 shift
11805 for ac_tag
11806 do
11807 case $ac_tag in
11808 :[FHLC]) ac_mode=$ac_tag; continue;;
11809 esac
11810 case $ac_mode$ac_tag in
11811 :[FHL]*:*);;
11812 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11813 :[FH]-) ac_tag=-:-;;
11814 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11815 esac
11816 ac_save_IFS=$IFS
11817 IFS=:
11818 set x $ac_tag
11819 IFS=$ac_save_IFS
11820 shift
11821 ac_file=$1
11822 shift
11823
11824 case $ac_mode in
11825 :L) ac_source=$1;;
11826 :[FH])
11827 ac_file_inputs=
11828 for ac_f
11829 do
11830 case $ac_f in
11831 -) ac_f="$ac_tmp/stdin";;
11832 *) # Look for the file first in the build tree, then in the source tree
11833 # (if the path is not absolute). The absolute path cannot be DOS-style,
11834 # because $ac_f cannot contain `:'.
11835 test -f "$ac_f" ||
11836 case $ac_f in
11837 [\\/$]*) false;;
11838 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11839 esac ||
11840 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11841 esac
11842 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11843 as_fn_append ac_file_inputs " '$ac_f'"
11844 done
11845
11846 # Let's still pretend it is `configure' which instantiates (i.e., don't
11847 # use $as_me), people would be surprised to read:
11848 # /* config.h. Generated by config.status. */
11849 configure_input='Generated from '`
11850 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11851 `' by configure.'
11852 if test x"$ac_file" != x-; then
11853 configure_input="$ac_file. $configure_input"
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11855 $as_echo "$as_me: creating $ac_file" >&6;}
11856 fi
11857 # Neutralize special characters interpreted by sed in replacement strings.
11858 case $configure_input in #(
11859 *\&* | *\|* | *\\* )
11860 ac_sed_conf_input=`$as_echo "$configure_input" |
11861 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11862 *) ac_sed_conf_input=$configure_input;;
11863 esac
11864
11865 case $ac_tag in
11866 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11868 esac
11869 ;;
11870 esac
11871
11872 ac_dir=`$as_dirname -- "$ac_file" ||
11873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11874 X"$ac_file" : 'X\(//\)[^/]' \| \
11875 X"$ac_file" : 'X\(//\)$' \| \
11876 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11877 $as_echo X"$ac_file" |
11878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11879 s//\1/
11880 q
11881 }
11882 /^X\(\/\/\)[^/].*/{
11883 s//\1/
11884 q
11885 }
11886 /^X\(\/\/\)$/{
11887 s//\1/
11888 q
11889 }
11890 /^X\(\/\).*/{
11891 s//\1/
11892 q
11893 }
11894 s/.*/./; q'`
11895 as_dir="$ac_dir"; as_fn_mkdir_p
11896 ac_builddir=.
11897
11898 case "$ac_dir" in
11899 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11900 *)
11901 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11902 # A ".." for each directory in $ac_dir_suffix.
11903 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11904 case $ac_top_builddir_sub in
11905 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11906 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11907 esac ;;
11908 esac
11909 ac_abs_top_builddir=$ac_pwd
11910 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11911 # for backward compatibility:
11912 ac_top_builddir=$ac_top_build_prefix
11913
11914 case $srcdir in
11915 .) # We are building in place.
11916 ac_srcdir=.
11917 ac_top_srcdir=$ac_top_builddir_sub
11918 ac_abs_top_srcdir=$ac_pwd ;;
11919 [\\/]* | ?:[\\/]* ) # Absolute name.
11920 ac_srcdir=$srcdir$ac_dir_suffix;
11921 ac_top_srcdir=$srcdir
11922 ac_abs_top_srcdir=$srcdir ;;
11923 *) # Relative name.
11924 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11925 ac_top_srcdir=$ac_top_build_prefix$srcdir
11926 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11927 esac
11928 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11929
11930
11931 case $ac_mode in
11932 :F)
11933 #
11934 # CONFIG_FILE
11935 #
11936
11937 case $INSTALL in
11938 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11939 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11940 esac
11941 ac_MKDIR_P=$MKDIR_P
11942 case $MKDIR_P in
11943 [\\/$]* | ?:[\\/]* ) ;;
11944 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11945 esac
11946 _ACEOF
11947
11948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11949 # If the template does not know about datarootdir, expand it.
11950 # FIXME: This hack should be removed a few years after 2.60.
11951 ac_datarootdir_hack=; ac_datarootdir_seen=
11952 ac_sed_dataroot='
11953 /datarootdir/ {
11954 p
11955 q
11956 }
11957 /@datadir@/p
11958 /@docdir@/p
11959 /@infodir@/p
11960 /@localedir@/p
11961 /@mandir@/p'
11962 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11963 *datarootdir*) ac_datarootdir_seen=yes;;
11964 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11966 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11967 _ACEOF
11968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969 ac_datarootdir_hack='
11970 s&@datadir@&$datadir&g
11971 s&@docdir@&$docdir&g
11972 s&@infodir@&$infodir&g
11973 s&@localedir@&$localedir&g
11974 s&@mandir@&$mandir&g
11975 s&\\\${datarootdir}&$datarootdir&g' ;;
11976 esac
11977 _ACEOF
11978
11979 # Neutralize VPATH when `$srcdir' = `.'.
11980 # Shell code in configure.ac might set extrasub.
11981 # FIXME: do we really want to maintain this feature?
11982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11983 ac_sed_extra="$ac_vpsub
11984 $extrasub
11985 _ACEOF
11986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11987 :t
11988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11989 s|@configure_input@|$ac_sed_conf_input|;t t
11990 s&@top_builddir@&$ac_top_builddir_sub&;t t
11991 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11992 s&@srcdir@&$ac_srcdir&;t t
11993 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11994 s&@top_srcdir@&$ac_top_srcdir&;t t
11995 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11996 s&@builddir@&$ac_builddir&;t t
11997 s&@abs_builddir@&$ac_abs_builddir&;t t
11998 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11999 s&@INSTALL@&$ac_INSTALL&;t t
12000 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12001 $ac_datarootdir_hack
12002 "
12003 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12004 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12005
12006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12007 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12008 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12009 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12011 which seems to be undefined. Please make sure it is defined" >&5
12012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12013 which seems to be undefined. Please make sure it is defined" >&2;}
12014
12015 rm -f "$ac_tmp/stdin"
12016 case $ac_file in
12017 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12018 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12019 esac \
12020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12021 ;;
12022 :H)
12023 #
12024 # CONFIG_HEADER
12025 #
12026 if test x"$ac_file" != x-; then
12027 {
12028 $as_echo "/* $configure_input */" \
12029 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12030 } >"$ac_tmp/config.h" \
12031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12032 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12034 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12035 else
12036 rm -f "$ac_file"
12037 mv "$ac_tmp/config.h" "$ac_file" \
12038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12039 fi
12040 else
12041 $as_echo "/* $configure_input */" \
12042 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12043 || as_fn_error $? "could not create -" "$LINENO" 5
12044 fi
12045 # Compute "$ac_file"'s index in $config_headers.
12046 _am_arg="$ac_file"
12047 _am_stamp_count=1
12048 for _am_header in $config_headers :; do
12049 case $_am_header in
12050 $_am_arg | $_am_arg:* )
12051 break ;;
12052 * )
12053 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12054 esac
12055 done
12056 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12057 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12058 X"$_am_arg" : 'X\(//\)[^/]' \| \
12059 X"$_am_arg" : 'X\(//\)$' \| \
12060 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12061 $as_echo X"$_am_arg" |
12062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\/\)[^/].*/{
12067 s//\1/
12068 q
12069 }
12070 /^X\(\/\/\)$/{
12071 s//\1/
12072 q
12073 }
12074 /^X\(\/\).*/{
12075 s//\1/
12076 q
12077 }
12078 s/.*/./; q'`/stamp-h$_am_stamp_count
12079 ;;
12080
12081 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12082 $as_echo "$as_me: executing $ac_file commands" >&6;}
12083 ;;
12084 esac
12085
12086
12087 case $ac_file$ac_mode in
12088 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12089 # Older Autoconf quotes --file arguments for eval, but not when files
12090 # are listed without --file. Let's play safe and only enable the eval
12091 # if we detect the quoting.
12092 case $CONFIG_FILES in
12093 *\'*) eval set x "$CONFIG_FILES" ;;
12094 *) set x $CONFIG_FILES ;;
12095 esac
12096 shift
12097 for mf
12098 do
12099 # Strip MF so we end up with the name of the file.
12100 mf=`echo "$mf" | sed -e 's/:.*$//'`
12101 # Check whether this is an Automake generated Makefile or not.
12102 # We used to match only the files named 'Makefile.in', but
12103 # some people rename them; so instead we look at the file content.
12104 # Grep'ing the first line is not enough: some people post-process
12105 # each Makefile.in and add a new line on top of each file to say so.
12106 # Grep'ing the whole file is not good either: AIX grep has a line
12107 # limit of 2048, but all sed's we know have understand at least 4000.
12108 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12109 dirpart=`$as_dirname -- "$mf" ||
12110 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12111 X"$mf" : 'X\(//\)[^/]' \| \
12112 X"$mf" : 'X\(//\)$' \| \
12113 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12114 $as_echo X"$mf" |
12115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12116 s//\1/
12117 q
12118 }
12119 /^X\(\/\/\)[^/].*/{
12120 s//\1/
12121 q
12122 }
12123 /^X\(\/\/\)$/{
12124 s//\1/
12125 q
12126 }
12127 /^X\(\/\).*/{
12128 s//\1/
12129 q
12130 }
12131 s/.*/./; q'`
12132 else
12133 continue
12134 fi
12135 # Extract the definition of DEPDIR, am__include, and am__quote
12136 # from the Makefile without running 'make'.
12137 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12138 test -z "$DEPDIR" && continue
12139 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12140 test -z "$am__include" && continue
12141 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12142 # Find all dependency output files, they are included files with
12143 # $(DEPDIR) in their names. We invoke sed twice because it is the
12144 # simplest approach to changing $(DEPDIR) to its actual value in the
12145 # expansion.
12146 for file in `sed -n "
12147 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12148 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12149 # Make sure the directory exists.
12150 test -f "$dirpart/$file" && continue
12151 fdir=`$as_dirname -- "$file" ||
12152 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153 X"$file" : 'X\(//\)[^/]' \| \
12154 X"$file" : 'X\(//\)$' \| \
12155 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12156 $as_echo X"$file" |
12157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12158 s//\1/
12159 q
12160 }
12161 /^X\(\/\/\)[^/].*/{
12162 s//\1/
12163 q
12164 }
12165 /^X\(\/\/\)$/{
12166 s//\1/
12167 q
12168 }
12169 /^X\(\/\).*/{
12170 s//\1/
12171 q
12172 }
12173 s/.*/./; q'`
12174 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12175 # echo "creating $dirpart/$file"
12176 echo '# dummy' > "$dirpart/$file"
12177 done
12178 done
12179 }
12180 ;;
12181 "default-1":C)
12182 for ac_file in $CONFIG_FILES; do
12183 # Support "outfile[:infile[:infile...]]"
12184 case "$ac_file" in
12185 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12186 esac
12187 # PO directories have a Makefile.in generated from Makefile.in.in.
12188 case "$ac_file" in */Makefile.in)
12189 # Adjust a relative srcdir.
12190 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12191 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
12192 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12193 # In autoconf-2.13 it is called $ac_given_srcdir.
12194 # In autoconf-2.50 it is called $srcdir.
12195 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12196 case "$ac_given_srcdir" in
12197 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12198 /*) top_srcdir="$ac_given_srcdir" ;;
12199 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12200 esac
12201 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12202 rm -f "$ac_dir/POTFILES"
12203 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12204 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12205 POMAKEFILEDEPS="POTFILES.in"
12206 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12207 # on $ac_dir but don't depend on user-specified configuration
12208 # parameters.
12209 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12210 # The LINGUAS file contains the set of available languages.
12211 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12212 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
12213 fi
12214 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12215 # Hide the ALL_LINGUAS assigment from automake.
12216 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12217 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12218 else
12219 # The set of available languages was given in configure.ac.
12220 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12221 fi
12222 case "$ac_given_srcdir" in
12223 .) srcdirpre= ;;
12224 *) srcdirpre='$(srcdir)/' ;;
12225 esac
12226 POFILES=
12227 GMOFILES=
12228 UPDATEPOFILES=
12229 DUMMYPOFILES=
12230 for lang in $ALL_LINGUAS; do
12231 POFILES="$POFILES $srcdirpre$lang.po"
12232 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12233 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12234 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12235 done
12236 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12237 # environment variable.
12238 INST_LINGUAS=
12239 if test -n "$ALL_LINGUAS"; then
12240 for presentlang in $ALL_LINGUAS; do
12241 useit=no
12242 if test "%UNSET%" != "$LINGUAS"; then
12243 desiredlanguages="$LINGUAS"
12244 else
12245 desiredlanguages="$ALL_LINGUAS"
12246 fi
12247 for desiredlang in $desiredlanguages; do
12248 # Use the presentlang catalog if desiredlang is
12249 # a. equal to presentlang, or
12250 # b. a variant of presentlang (because in this case,
12251 # presentlang can be used as a fallback for messages
12252 # which are not translated in the desiredlang catalog).
12253 case "$desiredlang" in
12254 "$presentlang"*) useit=yes;;
12255 esac
12256 done
12257 if test $useit = yes; then
12258 INST_LINGUAS="$INST_LINGUAS $presentlang"
12259 fi
12260 done
12261 fi
12262 CATALOGS=
12263 if test -n "$INST_LINGUAS"; then
12264 for lang in $INST_LINGUAS; do
12265 CATALOGS="$CATALOGS $lang.gmo"
12266 done
12267 fi
12268 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12269 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"
12270 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12271 if test -f "$f"; then
12272 case "$f" in
12273 *.orig | *.bak | *~) ;;
12274 *) cat "$f" >> "$ac_dir/Makefile" ;;
12275 esac
12276 fi
12277 done
12278 fi
12279 ;;
12280 esac
12281 done ;;
12282
12283 esac
12284 done # for ac_tag
12285
12286
12287 as_fn_exit 0
12288 _ACEOF
12289 ac_clean_files=$ac_clean_files_save
12290
12291 test $ac_write_fail = 0 ||
12292 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12293
12294
12295 # configure is writing to config.log, and then calls config.status.
12296 # config.status does its own redirection, appending to config.log.
12297 # Unfortunately, on DOS this fails, as config.log is still kept open
12298 # by configure, so config.status won't be able to write to it; its
12299 # output is simply discarded. So we exec the FD to /dev/null,
12300 # effectively closing config.log, so it can be properly (re)opened and
12301 # appended to by config.status. When coming back to configure, we
12302 # need to make the FD available again.
12303 if test "$no_create" != yes; then
12304 ac_cs_success=:
12305 ac_config_status_args=
12306 test "$silent" = yes &&
12307 ac_config_status_args="$ac_config_status_args --quiet"
12308 exec 5>/dev/null
12309 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12310 exec 5>>config.log
12311 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12312 # would make configure fail if this is the last instruction.
12313 $ac_cs_success || as_fn_exit 1
12314 fi
12315 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12317 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12318 fi
12319