arm: Support pac_key_* register operand for MRS/MSR in Armv8.1-M Mainline
[binutils-gdb.git] / gold / configure
bloba2674d6ecbb68b09e0c2418938d10118de8ccabf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
174 esac
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; }
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
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
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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
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
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
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."
272 exit 1
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
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
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 ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
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/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
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"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
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 ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
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 ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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 ()
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
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
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
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
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/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
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
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 '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
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; }
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
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;;
510 ECHO_N='-n';;
511 esac
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
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'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
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
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
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'"
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'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
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`
566 # Initializations.
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=
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=''
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"
622 gt_needs=
623 ac_subst_vars='am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 MAINT
627 MAINTAINER_MODE_FALSE
628 MAINTAINER_MODE_TRUE
629 HAVE_CXX11
630 DLOPEN_LIBS
631 CXXCPP
632 HAVE_NO_USE_LINKER_PLUGIN_FALSE
633 HAVE_NO_USE_LINKER_PLUGIN_TRUE
634 HAVE_PUBNAMES_FALSE
635 HAVE_PUBNAMES_TRUE
636 JANSSON_LIBS
637 JANSSON_CFLAGS
638 THREADS_FALSE
639 THREADS_TRUE
640 PTHREAD_CFLAGS
641 PTHREAD_LIBS
642 PTHREAD_CC
643 ax_pthread_config
645 HAVE_ZSTD_FALSE
646 HAVE_ZSTD_TRUE
647 ZSTD_LIBS
648 ZSTD_CFLAGS
649 PKG_CONFIG_LIBDIR
650 PKG_CONFIG_PATH
651 PKG_CONFIG
652 zlibinc
653 zlibdir
654 LIBOBJS
655 LFS_CFLAGS
656 GOLD_LDADD
657 GOLD_LDFLAGS
658 WARN_CXXFLAGS
659 WARN_WRITE_STRINGS
660 NO_WERROR
661 WARN_CFLAGS_FOR_BUILD
662 WARN_CFLAGS
663 IFUNC_STATIC_FALSE
664 IFUNC_STATIC_TRUE
665 IFUNC_FALSE
666 IFUNC_TRUE
667 RANDOM_SEED_CFLAGS
668 TLS_DESCRIPTORS_FALSE
669 TLS_DESCRIPTORS_TRUE
670 TLS_GNU2_DIALECT_FALSE
671 TLS_GNU2_DIALECT_TRUE
672 OMP_SUPPORT_FALSE
673 OMP_SUPPORT_TRUE
674 STATIC_TLS_FALSE
675 STATIC_TLS_TRUE
676 TLS_FALSE
677 TLS_TRUE
678 MERGE_CONSTANTS_FLAG
679 CFLAGS_CF_PROTECTION_FALSE
680 CFLAGS_CF_PROTECTION_TRUE
681 GCC9_FALSE
682 GCC9_TRUE
683 MCMODEL_MEDIUM_FALSE
684 MCMODEL_MEDIUM_TRUE
685 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
686 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
687 HAVE_STATIC_FALSE
688 HAVE_STATIC_TRUE
689 NATIVE_OR_CROSS_LINKER_FALSE
690 NATIVE_OR_CROSS_LINKER_TRUE
691 GCC_FALSE
692 GCC_TRUE
693 NATIVE_LINKER_FALSE
694 NATIVE_LINKER_TRUE
695 CATOBJEXT
696 GENCAT
697 INSTOBJEXT
698 DATADIRNAME
699 CATALOGS
700 INCINTL
701 LIBINTL_DEP
702 POSUB
703 LTLIBINTL
704 LIBINTL
705 INTLLIBS
706 LTLIBICONV
707 LIBICONV
708 INTL_MACOSX_LIBS
709 MSGMERGE
710 XGETTEXT
711 GMSGFMT
712 MSGFMT
713 USE_NLS
714 MKINSTALLDIRS
715 LN_S
716 RANLIB
717 YFLAGS
718 YACC
719 am__fastdepCXX_FALSE
720 am__fastdepCXX_TRUE
721 CXXDEPMODE
722 ac_ct_CXX
723 CXXFLAGS
726 TARGETOBJS
727 DEFAULT_TARGET
728 DEFAULT_TARGET_MIPS_FALSE
729 DEFAULT_TARGET_MIPS_TRUE
730 DEFAULT_TARGET_TILEGX_FALSE
731 DEFAULT_TARGET_TILEGX_TRUE
732 DEFAULT_TARGET_X86_64_OR_X32_FALSE
733 DEFAULT_TARGET_X86_64_OR_X32_TRUE
734 DEFAULT_TARGET_X32_FALSE
735 DEFAULT_TARGET_X32_TRUE
736 DEFAULT_TARGET_X86_64_FALSE
737 DEFAULT_TARGET_X86_64_TRUE
738 DEFAULT_TARGET_S390_FALSE
739 DEFAULT_TARGET_S390_TRUE
740 DEFAULT_TARGET_SPARC_FALSE
741 DEFAULT_TARGET_SPARC_TRUE
742 DEFAULT_TARGET_POWERPC_FALSE
743 DEFAULT_TARGET_POWERPC_TRUE
744 DEFAULT_TARGET_I386_FALSE
745 DEFAULT_TARGET_I386_TRUE
746 DEFAULT_TARGET_ARM_FALSE
747 DEFAULT_TARGET_ARM_TRUE
748 DEFAULT_TARGET_AARCH64_FALSE
749 DEFAULT_TARGET_AARCH64_TRUE
750 PLUGINS_FALSE
751 PLUGINS_TRUE
752 installed_linker
753 install_as_default
754 EGREP
755 GREP
757 am__fastdepCC_FALSE
758 am__fastdepCC_TRUE
759 CCDEPMODE
760 am__nodep
761 AMDEPBACKSLASH
762 AMDEP_FALSE
763 AMDEP_TRUE
764 am__quote
765 am__include
766 DEPDIR
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
774 AM_BACKSLASH
775 AM_DEFAULT_VERBOSITY
776 AM_DEFAULT_V
777 AM_V
778 am__untar
779 am__tar
780 AMTAR
781 am__leading_dot
782 SET_MAKE
784 mkdir_p
785 MKDIR_P
786 INSTALL_STRIP_PROGRAM
787 STRIP
788 install_sh
789 MAKEINFO
790 AUTOHEADER
791 AUTOMAKE
792 AUTOCONF
793 ACLOCAL
794 VERSION
795 PACKAGE
796 CYGPATH_W
797 am__isrc
798 INSTALL_DATA
799 INSTALL_SCRIPT
800 INSTALL_PROGRAM
801 target_os
802 target_vendor
803 target_cpu
804 target
805 host_os
806 host_vendor
807 host_cpu
808 host
809 build_os
810 build_vendor
811 build_cpu
812 build
813 target_alias
814 host_alias
815 build_alias
816 LIBS
817 ECHO_T
818 ECHO_N
819 ECHO_C
820 DEFS
821 mandir
822 localedir
823 libdir
824 psdir
825 pdfdir
826 dvidir
827 htmldir
828 infodir
829 docdir
830 oldincludedir
831 includedir
832 localstatedir
833 sharedstatedir
834 sysconfdir
835 datadir
836 datarootdir
837 libexecdir
838 sbindir
839 bindir
840 program_transform_name
841 prefix
842 exec_prefix
843 PACKAGE_URL
844 PACKAGE_BUGREPORT
845 PACKAGE_STRING
846 PACKAGE_VERSION
847 PACKAGE_TARNAME
848 PACKAGE_NAME
849 PATH_SEPARATOR
850 SHELL'
851 ac_subst_files=''
852 ac_user_opts='
853 enable_option_checking
854 enable_silent_rules
855 enable_dependency_tracking
856 with_sysroot
857 enable_gold
858 enable_plugins
859 enable_relro
860 enable_targets
861 enable_default_hash_style
862 with_lib_path
863 enable_nls
864 with_gnu_ld
865 enable_rpath
866 with_libiconv_prefix
867 with_libiconv_type
868 with_libintl_prefix
869 with_libintl_type
870 enable_werror
871 enable_build_warnings
872 with_gold_ldflags
873 with_gold_ldadd
874 with_system_zlib
875 with_zstd
876 enable_threads
877 enable_jansson
878 enable_maintainer_mode
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
890 CXXFLAGS
892 YACC
893 YFLAGS
894 PKG_CONFIG
895 PKG_CONFIG_PATH
896 PKG_CONFIG_LIBDIR
897 ZSTD_CFLAGS
898 ZSTD_LIBS
899 JANSSON_CFLAGS
900 JANSSON_LIBS
901 CXXCPP'
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 ac_unrecognized_opts=
908 ac_unrecognized_sep=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
952 ac_prev=
953 ac_dashdash=
954 for ac_option
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
963 case $ac_option in
964 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *=) ac_optarg= ;;
966 *) ac_optarg=yes ;;
967 esac
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
973 ac_dashdash=yes ;;
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 ac_prev=bindir ;;
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 bindir=$ac_optarg ;;
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
992 --config-cache | -C)
993 cache_file=config.cache ;;
995 -datadir | --datadir | --datadi | --datad)
996 ac_prev=datadir ;;
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1007 -disable-* | --disable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=no ;;
1023 -docdir | --docdir | --docdi | --doc | --do)
1024 ac_prev=docdir ;;
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 ac_prev=dvidir ;;
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1033 -enable-* | --enable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_$ac_useropt"
1043 "*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=\$ac_optarg ;;
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1127 no_create=yes ;;
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
1196 sbindir=$ac_optarg ;;
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
1207 sharedstatedir=$ac_optarg ;;
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
1212 site=$ac_optarg ;;
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1237 -with-* | --with-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=\$ac_optarg ;;
1253 -without-* | --without-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=no ;;
1269 --x)
1270 # Obsolete; use --with-x.
1271 with_x=yes ;;
1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274 | --x-incl | --x-inc | --x-in | --x-i)
1275 ac_prev=x_includes ;;
1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278 x_includes=$ac_optarg ;;
1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282 ac_prev=x_libraries ;;
1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285 x_libraries=$ac_optarg ;;
1287 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' | [0-9]* | *[!_$as_cr_alnum]* )
1296 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297 esac
1298 eval $ac_envvar=\$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309 esac
1310 done
1312 if test -n "$ac_prev"; then
1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $? "missing argument to $ac_option"
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1319 no) ;;
1320 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322 esac
1325 # Check all directory arguments for consistency.
1326 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val=\$$ac_var
1332 # Remove trailing slashes.
1333 case $ac_val in
1334 */ )
1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\$ac_val;;
1337 esac
1338 # Be sure to have absolute directory names.
1339 case $ac_val in
1340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 esac
1343 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344 done
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 elif test "x$build_alias" != "x$host_alias"; then
1358 cross_compiling=yes
1362 ac_tool_prefix=
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365 test "$silent" = yes && exec 6>/dev/null
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $? "working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $? "pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 s//\1/
1390 /^X\(\/\/\)[^/].*/{
1391 s//\1/
1394 /^X\(\/\/\)$/{
1395 s//\1/
1398 /^X\(\/\).*/{
1399 s//\1/
1402 s/.*/./; q'`
1403 srcdir=$ac_confdir
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 srcdir=..
1407 else
1408 ac_srcdir_defaulted=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 pwd)`
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 srcdir=.
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1425 case $srcdir in
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 esac
1428 for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 done
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1451 Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 [PREFIX]
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1495 _ACEOF
1497 cat <<\_ACEOF
1499 Program names:
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1504 System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508 _ACEOF
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive ) echo "Configuration of gold 0.1:";;
1514 esac
1515 cat <<\_ACEOF
1517 Optional Features:
1518 --disable-option-checking ignore unrecognized --enable/--with options
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-silent-rules less verbose build output (undo: "make V=1")
1522 --disable-silent-rules verbose build output (undo: "make V=0")
1523 --enable-dependency-tracking
1524 do not reject slow dependency extractors
1525 --disable-dependency-tracking
1526 speeds up one-time build
1527 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1528 --enable-plugins Enable support for plugins
1529 --enable-relro enable -z relro in ELF linker by default
1530 --enable-targets alternative target configurations
1531 --enable-default-hash-style={sysv,gnu,both}
1532 use this default hash style
1533 --disable-nls do not use Native Language Support
1534 --disable-rpath do not hardcode runtime library paths
1535 --enable-werror treat compile warnings as errors
1536 --enable-build-warnings enable build-time compiler warnings
1537 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
1538 --enable-jansson enable jansson [default=no]
1539 --enable-maintainer-mode
1540 enable make rules and dependencies not useful (and
1541 sometimes confusing) to the casual installer
1543 Optional Packages:
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546 --with-sysroot=DIR search for usr/lib et al within DIR
1547 --with-lib-path=dir1:dir2... set default LIB_PATH
1548 --with-gnu-ld assume the C compiler uses GNU ld default=no
1549 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1550 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1551 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1552 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1553 --without-libintl-prefix don't search for libintl in includedir and libdir
1554 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1555 --with-gold-ldflags=FLAGS additional link flags for gold
1556 --with-gold-ldadd=LIBS additional libraries for gold
1557 --with-system-zlib use installed libz
1558 --with-zstd support zstd compressed debug sections
1559 (default=auto)
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
1570 CXX C++ compiler command
1571 CXXFLAGS C++ compiler flags
1572 YACC The `Yet Another Compiler Compiler' implementation to use.
1573 Defaults to the first program found out of: `bison -y', `byacc',
1574 `yacc'.
1575 YFLAGS The list of arguments that will be passed by default to $YACC.
1576 This script will default YFLAGS to the empty string to avoid a
1577 default value of `-d' given by some make applications.
1578 PKG_CONFIG path to pkg-config utility
1579 PKG_CONFIG_PATH
1580 directories to add to pkg-config's search path
1581 PKG_CONFIG_LIBDIR
1582 path overriding pkg-config's built-in search path
1583 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1584 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1585 JANSSON_CFLAGS
1586 C compiler flags for JANSSON, overriding pkg-config
1587 JANSSON_LIBS
1588 linker flags for JANSSON, overriding pkg-config
1589 CXXCPP C++ preprocessor
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to the package provider.
1595 _ACEOF
1596 ac_status=$?
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
1605 ac_builddir=.
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1623 case $srcdir in
1624 .) # We are building in place.
1625 ac_srcdir=.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1647 else
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1651 done
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656 cat <<\_ACEOF
1657 gold configure 0.1
1658 generated by GNU Autoconf 2.69
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664 exit
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=1
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_cpp ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i && {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=1
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_cpp
1746 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1749 # the include files in INCLUDES and setting the cache variable VAR
1750 # accordingly.
1751 ac_fn_c_check_header_mongrel ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if eval \${$3+:} false; then :
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 else
1764 # Is the header compilable?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1766 $as_echo_n "checking $2 usability... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 ac_header_compiler=yes
1774 else
1775 ac_header_compiler=no
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1779 $as_echo "$ac_header_compiler" >&6; }
1781 # Is the header present?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1783 $as_echo_n "checking $2 presence... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_cpp "$LINENO"; then :
1789 ac_header_preproc=yes
1790 else
1791 ac_header_preproc=no
1793 rm -f conftest.err conftest.i conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1795 $as_echo "$ac_header_preproc" >&6; }
1797 # So? What about this header?
1798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1799 yes:no: )
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1801 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 no:yes:* )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1807 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1809 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1811 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1813 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 esac
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 eval "$3=\$ac_header_compiler"
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 } # ac_fn_c_check_header_mongrel
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836 # that executables *can* be run.
1837 ac_fn_c_try_run ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: program exited with status $ac_status" >&5
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=$ac_status
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_run
1875 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists and can be compiled using the include files in
1878 # INCLUDES, setting the cache variable VAR accordingly.
1879 ac_fn_c_check_header_compile ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 eval "$3=yes"
1894 else
1895 eval "$3=no"
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 } # ac_fn_c_check_header_compile
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_link ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 test -x conftest$ac_exeext
1934 }; then :
1935 ac_retval=0
1936 else
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 ac_retval=1
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_cxx_try_compile LINENO
1953 # ----------------------------
1954 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_compile ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext
1959 if { { ac_try="$ac_compile"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_compile") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest.$ac_objext; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1983 ac_retval=1
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 as_fn_set_status $ac_retval
1988 } # ac_fn_cxx_try_compile
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005 #define $2 innocuous_$2
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
2012 #ifdef __STDC__
2013 # include <limits.h>
2014 #else
2015 # include <assert.h>
2016 #endif
2018 #undef $2
2020 /* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2023 #ifdef __cplusplus
2024 extern "C"
2025 #endif
2026 char $2 ();
2027 /* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030 #if defined __stub_$2 || defined __stub___$2
2031 choke me
2032 #endif
2035 main ()
2037 return $2 ();
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_link "$LINENO"; then :
2043 eval "$3=yes"
2044 else
2045 eval "$3=no"
2047 rm -f core conftest.err conftest.$ac_objext \
2048 conftest$ac_exeext conftest.$ac_ext
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_func
2057 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2058 # ---------------------------------------------
2059 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2060 # accordingly.
2061 ac_fn_c_check_decl ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 as_decl_name=`echo $2|sed 's/ *(.*//'`
2065 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2067 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 #ifndef $as_decl_name
2078 #ifdef __cplusplus
2079 (void) $as_decl_use;
2080 #else
2081 (void) $as_decl_name;
2082 #endif
2083 #endif
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 eval "$3=yes"
2091 else
2092 eval "$3=no"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_c_check_decl
2103 # ac_fn_cxx_try_cpp LINENO
2104 # ------------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_cxx_try_cpp ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if { { ac_try="$ac_cpp conftest.$ac_ext"
2110 case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } > conftest.i && {
2125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2127 }; then :
2128 ac_retval=0
2129 else
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2133 ac_retval=1
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2138 } # ac_fn_cxx_try_cpp
2140 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # ---------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2144 # accordingly.
2145 ac_fn_cxx_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 else
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_cxx_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2168 else
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 #include <$2>
2181 _ACEOF
2182 if ac_fn_cxx_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2184 else
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2193 yes:no: )
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 no:yes:* )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211 esac
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 eval "$3=\$ac_header_compiler"
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_cxx_check_header_mongrel
2227 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2228 # -----------------------------------------------
2229 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2230 # accordingly.
2231 ac_fn_cxx_check_decl ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 as_decl_name=`echo $2|sed 's/ *(.*//'`
2235 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2237 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 #ifndef $as_decl_name
2248 #ifdef __cplusplus
2249 (void) $as_decl_use;
2250 #else
2251 (void) $as_decl_name;
2252 #endif
2253 #endif
2256 return 0;
2258 _ACEOF
2259 if ac_fn_cxx_try_compile "$LINENO"; then :
2260 eval "$3=yes"
2261 else
2262 eval "$3=no"
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_cxx_check_decl
2273 # ac_fn_cxx_try_link LINENO
2274 # -------------------------
2275 # Try to link conftest.$ac_ext, and return whether this succeeded.
2276 ac_fn_cxx_try_link ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 rm -f conftest.$ac_objext conftest$ac_exeext
2280 if { { ac_try="$ac_link"
2281 case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284 esac
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>conftest.err
2288 ac_status=$?
2289 if test -s conftest.err; then
2290 grep -v '^ *+' conftest.err >conftest.er1
2291 cat conftest.er1 >&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } && {
2296 test -z "$ac_cxx_werror_flag" ||
2297 test ! -s conftest.err
2298 } && test -s conftest$ac_exeext && {
2299 test "$cross_compiling" = yes ||
2300 test -x conftest$ac_exeext
2301 }; then :
2302 ac_retval=0
2303 else
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 ac_retval=1
2309 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311 # interfere with the next link command; also delete a directory that is
2312 # left behind by Apple's compiler. We do this before executing the actions.
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_cxx_try_link
2319 # ac_fn_cxx_check_func LINENO FUNC VAR
2320 # ------------------------------------
2321 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2322 ac_fn_cxx_check_func ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2332 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2334 #define $2 innocuous_$2
2336 /* System header to define __stub macros and hopefully few prototypes,
2337 which can conflict with char $2 (); below.
2338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2339 <limits.h> exists even on freestanding compilers. */
2341 #ifdef __STDC__
2342 # include <limits.h>
2343 #else
2344 # include <assert.h>
2345 #endif
2347 #undef $2
2349 /* Override any GCC internal prototype to avoid an error.
2350 Use char because int might match the return type of a GCC
2351 builtin and then its argument prototype would still apply. */
2352 #ifdef __cplusplus
2353 extern "C"
2354 #endif
2355 char $2 ();
2356 /* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359 #if defined __stub_$2 || defined __stub___$2
2360 choke me
2361 #endif
2364 main ()
2366 return $2 ();
2368 return 0;
2370 _ACEOF
2371 if ac_fn_cxx_try_link "$LINENO"; then :
2372 eval "$3=yes"
2373 else
2374 eval "$3=no"
2376 rm -f core conftest.err conftest.$ac_objext \
2377 conftest$ac_exeext conftest.$ac_ext
2379 eval ac_res=\$$3
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 } # ac_fn_cxx_check_func
2385 cat >config.log <<_ACEOF
2386 This file contains any messages produced by compilers while
2387 running configure, to aid debugging if configure makes a mistake.
2389 It was created by gold $as_me 0.1, which was
2390 generated by GNU Autoconf 2.69. Invocation command line was
2392 $ $0 $@
2394 _ACEOF
2395 exec 5>>config.log
2397 cat <<_ASUNAME
2398 ## --------- ##
2399 ## Platform. ##
2400 ## --------- ##
2402 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2403 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2404 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2405 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2406 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2408 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2409 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2411 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2412 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2413 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2414 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2415 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2416 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2417 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2419 _ASUNAME
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 $as_echo "PATH: $as_dir"
2427 done
2428 IFS=$as_save_IFS
2430 } >&5
2432 cat >&5 <<_ACEOF
2435 ## ----------- ##
2436 ## Core tests. ##
2437 ## ----------- ##
2439 _ACEOF
2442 # Keep a trace of the command line.
2443 # Strip out --no-create and --no-recursion so they do not pile up.
2444 # Strip out --silent because we don't want to record it for future runs.
2445 # Also quote any args containing shell meta-characters.
2446 # Make two passes to allow for proper duplicate-argument suppression.
2447 ac_configure_args=
2448 ac_configure_args0=
2449 ac_configure_args1=
2450 ac_must_keep_next=false
2451 for ac_pass in 1 2
2453 for ac_arg
2455 case $ac_arg in
2456 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2458 | -silent | --silent | --silen | --sile | --sil)
2459 continue ;;
2460 *\'*)
2461 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2462 esac
2463 case $ac_pass in
2464 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466 as_fn_append ac_configure_args1 " '$ac_arg'"
2467 if test $ac_must_keep_next = true; then
2468 ac_must_keep_next=false # Got value, back to normal.
2469 else
2470 case $ac_arg in
2471 *=* | --config-cache | -C | -disable-* | --disable-* \
2472 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2473 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2474 | -with-* | --with-* | -without-* | --without-* | --x)
2475 case "$ac_configure_args0 " in
2476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2477 esac
2479 -* ) ac_must_keep_next=true ;;
2480 esac
2482 as_fn_append ac_configure_args " '$ac_arg'"
2484 esac
2485 done
2486 done
2487 { ac_configure_args0=; unset ac_configure_args0;}
2488 { ac_configure_args1=; unset ac_configure_args1;}
2490 # When interrupted or exit'd, cleanup temporary files, and complete
2491 # config.log. We remove comments because anyway the quotes in there
2492 # would cause problems or look ugly.
2493 # WARNING: Use '\'' to represent an apostrophe within the trap.
2494 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495 trap 'exit_status=$?
2496 # Save into config.log some information that might help in debugging.
2498 echo
2500 $as_echo "## ---------------- ##
2501 ## Cache variables. ##
2502 ## ---------------- ##"
2503 echo
2504 # The following way of writing the cache mishandles newlines in values,
2506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2507 eval ac_val=\$$ac_var
2508 case $ac_val in #(
2509 *${as_nl}*)
2510 case $ac_var in #(
2511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2513 esac
2514 case $ac_var in #(
2515 _ | IFS | as_nl) ;; #(
2516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2517 *) { eval $ac_var=; unset $ac_var;} ;;
2518 esac ;;
2519 esac
2520 done
2521 (set) 2>&1 |
2522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2523 *${as_nl}ac_space=\ *)
2524 sed -n \
2525 "s/'\''/'\''\\\\'\'''\''/g;
2526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2527 ;; #(
2529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531 esac |
2532 sort
2534 echo
2536 $as_echo "## ----------------- ##
2537 ## Output variables. ##
2538 ## ----------------- ##"
2539 echo
2540 for ac_var in $ac_subst_vars
2542 eval ac_val=\$$ac_var
2543 case $ac_val in
2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 esac
2546 $as_echo "$ac_var='\''$ac_val'\''"
2547 done | sort
2548 echo
2550 if test -n "$ac_subst_files"; then
2551 $as_echo "## ------------------- ##
2552 ## File substitutions. ##
2553 ## ------------------- ##"
2554 echo
2555 for ac_var in $ac_subst_files
2557 eval ac_val=\$$ac_var
2558 case $ac_val in
2559 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2560 esac
2561 $as_echo "$ac_var='\''$ac_val'\''"
2562 done | sort
2563 echo
2566 if test -s confdefs.h; then
2567 $as_echo "## ----------- ##
2568 ## confdefs.h. ##
2569 ## ----------- ##"
2570 echo
2571 cat confdefs.h
2572 echo
2574 test "$ac_signal" != 0 &&
2575 $as_echo "$as_me: caught signal $ac_signal"
2576 $as_echo "$as_me: exit $exit_status"
2577 } >&5
2578 rm -f core *.core core.conftest.* &&
2579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2580 exit $exit_status
2582 for ac_signal in 1 2 13 15; do
2583 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2584 done
2585 ac_signal=0
2587 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2588 rm -f -r conftest* confdefs.h
2590 $as_echo "/* confdefs.h */" > confdefs.h
2592 # Predefined preprocessor variables.
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_NAME "$PACKAGE_NAME"
2596 _ACEOF
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2600 _ACEOF
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2604 _ACEOF
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_STRING "$PACKAGE_STRING"
2608 _ACEOF
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2612 _ACEOF
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_URL "$PACKAGE_URL"
2616 _ACEOF
2619 # Let the site file select an alternate cache file if it wants to.
2620 # Prefer an explicitly selected file to automatically selected ones.
2621 ac_site_file1=NONE
2622 ac_site_file2=NONE
2623 if test -n "$CONFIG_SITE"; then
2624 # We do not want a PATH search for config.site.
2625 case $CONFIG_SITE in #((
2626 -*) ac_site_file1=./$CONFIG_SITE;;
2627 */*) ac_site_file1=$CONFIG_SITE;;
2628 *) ac_site_file1=./$CONFIG_SITE;;
2629 esac
2630 elif test "x$prefix" != xNONE; then
2631 ac_site_file1=$prefix/share/config.site
2632 ac_site_file2=$prefix/etc/config.site
2633 else
2634 ac_site_file1=$ac_default_prefix/share/config.site
2635 ac_site_file2=$ac_default_prefix/etc/config.site
2637 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2639 test "x$ac_site_file" = xNONE && continue
2640 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2642 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2643 sed 's/^/| /' "$ac_site_file" >&5
2644 . "$ac_site_file" \
2645 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 as_fn_error $? "failed to load site script $ac_site_file
2648 See \`config.log' for more details" "$LINENO" 5; }
2650 done
2652 if test -r "$cache_file"; then
2653 # Some versions of bash will fail to source /dev/null (special files
2654 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2655 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2657 $as_echo "$as_me: loading cache $cache_file" >&6;}
2658 case $cache_file in
2659 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2660 *) . "./$cache_file";;
2661 esac
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2665 $as_echo "$as_me: creating cache $cache_file" >&6;}
2666 >$cache_file
2669 gt_needs="$gt_needs "
2670 # Check that the precious variables saved in the cache have kept the same
2671 # value.
2672 ac_cache_corrupted=false
2673 for ac_var in $ac_precious_vars; do
2674 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2675 eval ac_new_set=\$ac_env_${ac_var}_set
2676 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2677 eval ac_new_val=\$ac_env_${ac_var}_value
2678 case $ac_old_set,$ac_new_set in
2679 set,)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2681 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2682 ac_cache_corrupted=: ;;
2683 ,set)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2686 ac_cache_corrupted=: ;;
2687 ,);;
2689 if test "x$ac_old_val" != "x$ac_new_val"; then
2690 # differences in whitespace do not lead to failure.
2691 ac_old_val_w=`echo x $ac_old_val`
2692 ac_new_val_w=`echo x $ac_new_val`
2693 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2695 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2696 ac_cache_corrupted=:
2697 else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2699 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2700 eval $ac_var=\$ac_old_val
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2703 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2705 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2706 fi;;
2707 esac
2708 # Pass precious variables to config.status.
2709 if test "$ac_new_set" = set; then
2710 case $ac_new_val in
2711 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2712 *) ac_arg=$ac_var=$ac_new_val ;;
2713 esac
2714 case " $ac_configure_args " in
2715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2716 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2717 esac
2719 done
2720 if $ac_cache_corrupted; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2724 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2725 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727 ## -------------------- ##
2728 ## Main body of script. ##
2729 ## -------------------- ##
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 ac_aux_dir=
2744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2745 if test -f "$ac_dir/install-sh"; then
2746 ac_aux_dir=$ac_dir
2747 ac_install_sh="$ac_aux_dir/install-sh -c"
2748 break
2749 elif test -f "$ac_dir/install.sh"; then
2750 ac_aux_dir=$ac_dir
2751 ac_install_sh="$ac_aux_dir/install.sh -c"
2752 break
2753 elif test -f "$ac_dir/shtool"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/shtool install -c"
2756 break
2758 done
2759 if test -z "$ac_aux_dir"; then
2760 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2763 # These three variables are undocumented and unsupported,
2764 # and are intended to be withdrawn in a future Autoconf release.
2765 # They can cause serious problems if a builder's source tree is in a directory
2766 # whose full name contains unusual characters.
2767 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2768 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2769 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2772 # Make sure we can run config.sub.
2773 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2774 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2777 $as_echo_n "checking build system type... " >&6; }
2778 if ${ac_cv_build+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 ac_build_alias=$build_alias
2782 test "x$ac_build_alias" = x &&
2783 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2784 test "x$ac_build_alias" = x &&
2785 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2786 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2791 $as_echo "$ac_cv_build" >&6; }
2792 case $ac_cv_build in
2793 *-*-*) ;;
2794 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2795 esac
2796 build=$ac_cv_build
2797 ac_save_IFS=$IFS; IFS='-'
2798 set x $ac_cv_build
2799 shift
2800 build_cpu=$1
2801 build_vendor=$2
2802 shift; shift
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2805 build_os=$*
2806 IFS=$ac_save_IFS
2807 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2811 $as_echo_n "checking host system type... " >&6; }
2812 if ${ac_cv_host+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test "x$host_alias" = x; then
2816 ac_cv_host=$ac_cv_build
2817 else
2818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2824 $as_echo "$ac_cv_host" >&6; }
2825 case $ac_cv_host in
2826 *-*-*) ;;
2827 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2828 esac
2829 host=$ac_cv_host
2830 ac_save_IFS=$IFS; IFS='-'
2831 set x $ac_cv_host
2832 shift
2833 host_cpu=$1
2834 host_vendor=$2
2835 shift; shift
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2838 host_os=$*
2839 IFS=$ac_save_IFS
2840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2844 $as_echo_n "checking target system type... " >&6; }
2845 if ${ac_cv_target+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test "x$target_alias" = x; then
2849 ac_cv_target=$ac_cv_host
2850 else
2851 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2852 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2857 $as_echo "$ac_cv_target" >&6; }
2858 case $ac_cv_target in
2859 *-*-*) ;;
2860 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2861 esac
2862 target=$ac_cv_target
2863 ac_save_IFS=$IFS; IFS='-'
2864 set x $ac_cv_target
2865 shift
2866 target_cpu=$1
2867 target_vendor=$2
2868 shift; shift
2869 # Remember, the first character of IFS is used to create $*,
2870 # except with old shells:
2871 target_os=$*
2872 IFS=$ac_save_IFS
2873 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2876 # The aliases save the names the user supplied, while $host etc.
2877 # will get canonicalized.
2878 test -n "$target_alias" &&
2879 test "$program_prefix$program_suffix$program_transform_name" = \
2880 NONENONEs,x,x, &&
2881 program_prefix=${target_alias}-
2883 am__api_version='1.15'
2885 # Find a good install program. We prefer a C program (faster),
2886 # so one script is as good as another. But avoid the broken or
2887 # incompatible versions:
2888 # SysV /etc/install, /usr/sbin/install
2889 # SunOS /usr/etc/install
2890 # IRIX /sbin/install
2891 # AIX /bin/install
2892 # AmigaOS /C/install, which installs bootblocks on floppy discs
2893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2896 # OS/2's system install, which has a completely different semantic
2897 # ./install, which can be erroneously created by make from ./install.sh.
2898 # Reject install programs that cannot install multiple files.
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2900 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2901 if test -z "$INSTALL"; then
2902 if ${ac_cv_path_install+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 # Account for people who put trailing slashes in PATH elements.
2911 case $as_dir/ in #((
2912 ./ | .// | /[cC]/* | \
2913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2914 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2915 /usr/ucb/* ) ;;
2917 # OSF1 and SCO ODT 3.0 have their own names for install.
2918 # Don't use installbsd from OSF since it installs stuff as root
2919 # by default.
2920 for ac_prog in ginstall scoinst install; do
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2923 if test $ac_prog = install &&
2924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925 # AIX install. It has an incompatible calling convention.
2927 elif test $ac_prog = install &&
2928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2929 # program-specific install script used by HP pwplus--don't use.
2931 else
2932 rm -rf conftest.one conftest.two conftest.dir
2933 echo one > conftest.one
2934 echo two > conftest.two
2935 mkdir conftest.dir
2936 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2937 test -s conftest.one && test -s conftest.two &&
2938 test -s conftest.dir/conftest.one &&
2939 test -s conftest.dir/conftest.two
2940 then
2941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2942 break 3
2946 done
2947 done
2949 esac
2951 done
2952 IFS=$as_save_IFS
2954 rm -rf conftest.one conftest.two conftest.dir
2957 if test "${ac_cv_path_install+set}" = set; then
2958 INSTALL=$ac_cv_path_install
2959 else
2960 # As a last resort, use the slow shell script. Don't cache a
2961 # value for INSTALL within a source directory, because that will
2962 # break other packages using the cache if that directory is
2963 # removed, or if the value is a relative name.
2964 INSTALL=$ac_install_sh
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2968 $as_echo "$INSTALL" >&6; }
2970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2971 # It thinks the first close brace ends the variable substitution.
2972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2979 $as_echo_n "checking whether build environment is sane... " >&6; }
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name. Accept space and tab only in the latter.
2982 am_lf='
2984 case `pwd` in
2985 *[\\\"\#\$\&\'\`$am_lf]*)
2986 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2987 esac
2988 case $srcdir in
2989 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2990 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2991 esac
2993 # Do 'set' in a subshell so we don't clobber the current shell's
2994 # arguments. Must try -L first in case configure is actually a
2995 # symlink; some systems play weird games with the mod time of symlinks
2996 # (eg FreeBSD returns the mod time of the symlink's containing
2997 # directory).
2998 if (
2999 am_has_slept=no
3000 for am_try in 1 2; do
3001 echo "timestamp, slept: $am_has_slept" > conftest.file
3002 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3003 if test "$*" = "X"; then
3004 # -L didn't work.
3005 set X `ls -t "$srcdir/configure" conftest.file`
3007 if test "$*" != "X $srcdir/configure conftest.file" \
3008 && test "$*" != "X conftest.file $srcdir/configure"; then
3010 # If neither matched, then we have a broken ls. This can happen
3011 # if, for instance, CONFIG_SHELL is bash and it inherits a
3012 # broken ls alias from the environment. This has actually
3013 # happened. Such a system could not be considered "sane".
3014 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3015 alias in your environment" "$LINENO" 5
3017 if test "$2" = conftest.file || test $am_try -eq 2; then
3018 break
3020 # Just in case.
3021 sleep 1
3022 am_has_slept=yes
3023 done
3024 test "$2" = conftest.file
3026 then
3027 # Ok.
3029 else
3030 as_fn_error $? "newly created file is older than distributed files!
3031 Check your system clock" "$LINENO" 5
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3035 # If we didn't sleep, we still need to ensure time stamps of config.status and
3036 # generated files are strictly newer.
3037 am_sleep_pid=
3038 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3039 ( sleep 1 ) &
3040 am_sleep_pid=$!
3043 rm -f conftest.file
3045 test "$program_prefix" != NONE &&
3046 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3047 # Use a double $ so make ignores it.
3048 test "$program_suffix" != NONE &&
3049 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3050 # Double any \ or $.
3051 # By default was `s,x,x', remove it if useless.
3052 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3053 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3055 # Expand $ac_aux_dir to an absolute path.
3056 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3058 if test x"${MISSING+set}" != xset; then
3059 case $am_aux_dir in
3060 *\ * | *\ *)
3061 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3063 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3064 esac
3066 # Use eval to expand $SHELL
3067 if eval "$MISSING --is-lightweight"; then
3068 am_missing_run="$MISSING "
3069 else
3070 am_missing_run=
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3072 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3075 if test x"${install_sh+set}" != xset; then
3076 case $am_aux_dir in
3077 *\ * | *\ *)
3078 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3080 install_sh="\${SHELL} $am_aux_dir/install-sh"
3081 esac
3084 # Installed binaries are usually stripped using 'strip' when the user
3085 # run "make install-strip". However 'strip' might not be the right
3086 # tool to use in cross-compilation environments, therefore Automake
3087 # will honor the 'STRIP' environment variable to overrule this program.
3088 if test "$cross_compiling" != no; then
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3091 set dummy ${ac_tool_prefix}strip; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_STRIP+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$STRIP"; then
3098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3111 done
3112 done
3113 IFS=$as_save_IFS
3117 STRIP=$ac_cv_prog_STRIP
3118 if test -n "$STRIP"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3120 $as_echo "$STRIP" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3128 if test -z "$ac_cv_prog_STRIP"; then
3129 ac_ct_STRIP=$STRIP
3130 # Extract the first word of "strip", so it can be a program name with args.
3131 set dummy strip; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$ac_ct_STRIP"; then
3138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_STRIP="strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3158 if test -n "$ac_ct_STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3160 $as_echo "$ac_ct_STRIP" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3166 if test "x$ac_ct_STRIP" = x; then
3167 STRIP=":"
3168 else
3169 case $cross_compiling:$ac_tool_warned in
3170 yes:)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175 STRIP=$ac_ct_STRIP
3177 else
3178 STRIP="$ac_cv_prog_STRIP"
3182 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3185 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3186 if test -z "$MKDIR_P"; then
3187 if ${ac_cv_path_mkdir+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_prog in mkdir gmkdir; do
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3199 'mkdir (GNU coreutils) '* | \
3200 'mkdir (coreutils) '* | \
3201 'mkdir (fileutils) '4.1*)
3202 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3203 break 3;;
3204 esac
3205 done
3206 done
3207 done
3208 IFS=$as_save_IFS
3212 test -d ./--version && rmdir ./--version
3213 if test "${ac_cv_path_mkdir+set}" = set; then
3214 MKDIR_P="$ac_cv_path_mkdir -p"
3215 else
3216 # As a last resort, use the slow shell script. Don't cache a
3217 # value for MKDIR_P within a source directory, because that will
3218 # break other packages using the cache if that directory is
3219 # removed, or if the value is a relative name.
3220 MKDIR_P="$ac_install_sh -d"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3224 $as_echo "$MKDIR_P" >&6; }
3226 for ac_prog in gawk mawk nawk awk
3228 # Extract the first word of "$ac_prog", so it can be a program name with args.
3229 set dummy $ac_prog; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_prog_AWK+:} false; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test -n "$AWK"; then
3236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_AWK="$ac_prog"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3251 IFS=$as_save_IFS
3255 AWK=$ac_cv_prog_AWK
3256 if test -n "$AWK"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3258 $as_echo "$AWK" >&6; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3265 test -n "$AWK" && break
3266 done
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3270 set x ${MAKE-make}
3271 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3272 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 cat >conftest.make <<\_ACEOF
3276 SHELL = /bin/sh
3277 all:
3278 @echo '@@@%%%=$(MAKE)=@@@%%%'
3279 _ACEOF
3280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3282 *@@@%%%=?*=@@@%%%*)
3283 eval ac_cv_prog_make_${ac_make}_set=yes;;
3285 eval ac_cv_prog_make_${ac_make}_set=no;;
3286 esac
3287 rm -f conftest.make
3289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3292 SET_MAKE=
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 SET_MAKE="MAKE=${MAKE-make}"
3299 rm -rf .tst 2>/dev/null
3300 mkdir .tst 2>/dev/null
3301 if test -d .tst; then
3302 am__leading_dot=.
3303 else
3304 am__leading_dot=_
3306 rmdir .tst 2>/dev/null
3308 # Check whether --enable-silent-rules was given.
3309 if test "${enable_silent_rules+set}" = set; then :
3310 enableval=$enable_silent_rules;
3313 case $enable_silent_rules in # (((
3314 yes) AM_DEFAULT_VERBOSITY=0;;
3315 no) AM_DEFAULT_VERBOSITY=1;;
3316 *) AM_DEFAULT_VERBOSITY=1;;
3317 esac
3318 am_make=${MAKE-make}
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3320 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3321 if ${am_cv_make_support_nested_variables+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if $as_echo 'TRUE=$(BAR$(V))
3325 BAR0=false
3326 BAR1=true
3328 am__doit:
3329 @$(TRUE)
3330 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3331 am_cv_make_support_nested_variables=yes
3332 else
3333 am_cv_make_support_nested_variables=no
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3337 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3338 if test $am_cv_make_support_nested_variables = yes; then
3339 AM_V='$(V)'
3340 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3341 else
3342 AM_V=$AM_DEFAULT_VERBOSITY
3343 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3345 AM_BACKSLASH='\'
3347 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3348 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3349 # is not polluted with repeated "-I."
3350 am__isrc=' -I$(srcdir)'
3351 # test to see if srcdir already configured
3352 if test -f $srcdir/config.status; then
3353 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3357 # test whether we have cygpath
3358 if test -z "$CYGPATH_W"; then
3359 if (cygpath --version) >/dev/null 2>/dev/null; then
3360 CYGPATH_W='cygpath -w'
3361 else
3362 CYGPATH_W=echo
3367 # Define the identity of the package.
3368 PACKAGE='gold'
3369 VERSION='0.1'
3372 cat >>confdefs.h <<_ACEOF
3373 #define PACKAGE "$PACKAGE"
3374 _ACEOF
3377 cat >>confdefs.h <<_ACEOF
3378 #define VERSION "$VERSION"
3379 _ACEOF
3381 # Some tools Automake needs.
3383 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3386 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3389 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3392 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3395 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3397 # For better backward compatibility. To be removed once Automake 1.9.x
3398 # dies out for good. For more background, see:
3399 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3400 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3401 mkdir_p='$(MKDIR_P)'
3403 # We need awk for the "check" target (and possibly the TAP driver). The
3404 # system "awk" is bad on some platforms.
3405 # Always define AMTAR for backward compatibility. Yes, it's still used
3406 # in the wild :-( We should find a proper way to deprecate it ...
3407 AMTAR='$${TAR-tar}'
3410 # We'll loop over all known methods to create a tar archive until one works.
3411 _am_tools='gnutar pax cpio none'
3413 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3420 # POSIX will say in a future version that running "rm -f" with no argument
3421 # is OK; and we want to be able to make that assumption in our Makefile
3422 # recipes. So use an aggressive probe to check that the usage we want is
3423 # actually supported "in the wild" to an acceptable degree.
3424 # See automake bug#10828.
3425 # To make any issue more visible, cause the running configure to be aborted
3426 # by default if the 'rm' program in use doesn't match our expectations; the
3427 # user can still override this though.
3428 if rm -f && rm -fr && rm -rf; then : OK; else
3429 cat >&2 <<'END'
3430 Oops!
3432 Your 'rm' program seems unable to run without file operands specified
3433 on the command line, even when the '-f' option is present. This is contrary
3434 to the behaviour of most rm programs out there, and not conforming with
3435 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3437 Please tell bug-automake@gnu.org about your system, including the value
3438 of your $PATH and any error possibly output before this message. This
3439 can help us improve future automake versions.
3442 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3443 echo 'Configuration will proceed anyway, since you have set the' >&2
3444 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3445 echo >&2
3446 else
3447 cat >&2 <<'END'
3448 Aborting the configuration process, to ensure you take notice of the issue.
3450 You can download and install GNU coreutils to get an 'rm' implementation
3451 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3453 If you want to complete the configuration process using your problematic
3454 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3455 to "yes", and re-run configure.
3458 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3462 # Check whether --enable-silent-rules was given.
3463 if test "${enable_silent_rules+set}" = set; then :
3464 enableval=$enable_silent_rules;
3467 case $enable_silent_rules in # (((
3468 yes) AM_DEFAULT_VERBOSITY=0;;
3469 no) AM_DEFAULT_VERBOSITY=1;;
3470 *) AM_DEFAULT_VERBOSITY=0;;
3471 esac
3472 am_make=${MAKE-make}
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3474 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3475 if ${am_cv_make_support_nested_variables+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if $as_echo 'TRUE=$(BAR$(V))
3479 BAR0=false
3480 BAR1=true
3482 am__doit:
3483 @$(TRUE)
3484 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3485 am_cv_make_support_nested_variables=yes
3486 else
3487 am_cv_make_support_nested_variables=no
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3491 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3492 if test $am_cv_make_support_nested_variables = yes; then
3493 AM_V='$(V)'
3494 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3495 else
3496 AM_V=$AM_DEFAULT_VERBOSITY
3497 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3499 AM_BACKSLASH='\'
3502 ac_config_headers="$ac_config_headers config.h:config.in"
3505 DEPDIR="${am__leading_dot}deps"
3507 ac_config_commands="$ac_config_commands depfiles"
3510 am_make=${MAKE-make}
3511 cat > confinc << 'END'
3512 am__doit:
3513 @echo this is the am__doit target
3514 .PHONY: am__doit
3516 # If we don't find an include directive, just comment out the code.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3519 am__include="#"
3520 am__quote=
3521 _am_result=none
3522 # First try GNU make style include.
3523 echo "include confinc" > confmf
3524 # Ignore all kinds of additional output from 'make'.
3525 case `$am_make -s -f confmf 2> /dev/null` in #(
3526 *the\ am__doit\ target*)
3527 am__include=include
3528 am__quote=
3529 _am_result=GNU
3531 esac
3532 # Now try BSD make style include.
3533 if test "$am__include" = "#"; then
3534 echo '.include "confinc"' > confmf
3535 case `$am_make -s -f confmf 2> /dev/null` in #(
3536 *the\ am__doit\ target*)
3537 am__include=.include
3538 am__quote="\""
3539 _am_result=BSD
3541 esac
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546 $as_echo "$_am_result" >&6; }
3547 rm -f confinc confmf
3549 # Check whether --enable-dependency-tracking was given.
3550 if test "${enable_dependency_tracking+set}" = set; then :
3551 enableval=$enable_dependency_tracking;
3554 if test "x$enable_dependency_tracking" != xno; then
3555 am_depcomp="$ac_aux_dir/depcomp"
3556 AMDEPBACKSLASH='\'
3557 am__nodep='_no'
3559 if test "x$enable_dependency_tracking" != xno; then
3560 AMDEP_TRUE=
3561 AMDEP_FALSE='#'
3562 else
3563 AMDEP_TRUE='#'
3564 AMDEP_FALSE=
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_CC+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3595 done
3596 done
3597 IFS=$as_save_IFS
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 $as_echo "$CC" >&6; }
3605 else
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3612 if test -z "$ac_cv_prog_CC"; then
3613 ac_ct_CC=$CC
3614 # Extract the first word of "gcc", so it can be a program name with args.
3615 set dummy gcc; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC="gcc"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3635 done
3636 done
3637 IFS=$as_save_IFS
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3650 if test "x$ac_ct_CC" = x; then
3651 CC=""
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 CC=$ac_ct_CC
3661 else
3662 CC="$ac_cv_prog_CC"
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668 set dummy ${ac_tool_prefix}cc; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_CC="${ac_tool_prefix}cc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3688 done
3689 done
3690 IFS=$as_save_IFS
3694 CC=$ac_cv_prog_CC
3695 if test -n "$CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 # Extract the first word of "cc", so it can be a program name with args.
3708 set dummy cc; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 ac_prog_rejected=no
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726 ac_prog_rejected=yes
3727 continue
3729 ac_cv_prog_CC="cc"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3733 done
3734 done
3735 IFS=$as_save_IFS
3737 if test $ac_prog_rejected = yes; then
3738 # We found a bogon in the path, so make sure we never use it.
3739 set dummy $ac_cv_prog_CC
3740 shift
3741 if test $# != 0; then
3742 # We chose a different compiler from the bogus one.
3743 # However, it has the same basename, so the bogon will be chosen
3744 # first if we set CC to just the basename; use the full file name.
3745 shift
3746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3751 CC=$ac_cv_prog_CC
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3762 if test -z "$CC"; then
3763 if test -n "$ac_tool_prefix"; then
3764 for ac_prog in cl.exe
3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_CC+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3787 done
3788 done
3789 IFS=$as_save_IFS
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3803 test -n "$CC" && break
3804 done
3806 if test -z "$CC"; then
3807 ac_ct_CC=$CC
3808 for ac_prog in cl.exe
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_CC="$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3831 done
3832 done
3833 IFS=$as_save_IFS
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3847 test -n "$ac_ct_CC" && break
3848 done
3850 if test "x$ac_ct_CC" = x; then
3851 CC=""
3852 else
3853 case $cross_compiling:$ac_tool_warned in
3854 yes:)
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859 CC=$ac_ct_CC
3866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 # Provide some information about the compiler.
3872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 set X $ac_compile
3874 ac_compiler=$2
3875 for ac_option in --version -v -V -qversion; do
3876 { { ac_try="$ac_compiler $ac_option >&5"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884 ac_status=$?
3885 if test -s conftest.err; then
3886 sed '10a\
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3891 rm -f conftest.er1 conftest.err
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3894 done
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 esac
3926 done
3927 rm -f $ac_rmfiles
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3943 # so that the user can short-circuit this test for compilers unknown to
3944 # Autoconf.
3945 for ac_file in $ac_files ''
3947 test -f "$ac_file" || continue
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 [ab].out )
3952 # We found the default executable, but exeext='' is most
3953 # certainly right.
3954 break;;
3955 *.* )
3956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957 then :; else
3958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 # We set ac_cv_exeext here because the later test for it is not
3961 # safe: cross compilers may not add the suffix if given an `-o'
3962 # argument, so we may need to know it at that point already.
3963 # Even if this section looks crufty: it has the advantage of
3964 # actually working.
3965 break;;
3967 break;;
3968 esac
3969 done
3970 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972 else
3973 ac_file=''
3975 if test -z "$ac_file"; then :
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error 77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 $as_echo_n "checking for C compiler default output file name... " >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 $as_echo "$ac_file" >&6; }
3993 ac_exeext=$ac_cv_exeext
3995 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3996 ac_clean_files=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 # `rm'.
4014 for ac_file in conftest.exe conftest conftest.*; do
4015 test -f "$ac_file" || continue
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 break;;
4020 * ) break;;
4021 esac
4022 done
4023 else
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5; }
4029 rm -f conftest conftest$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4035 ac_exeext=$EXEEXT
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <stdio.h>
4040 main ()
4042 FILE *f = fopen ("conftest.out", "w");
4043 return ferror (f) || fclose (f) != 0;
4046 return 0;
4048 _ACEOF
4049 ac_clean_files="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run. If not, either
4051 # the compiler is broken, or we cross compile.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 $as_echo_n "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055 { { ac_try="$ac_link"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4063 ac_status=$?
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4066 if { ac_try='./conftest$ac_cv_exeext'
4067 { { case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_try") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; }; then
4077 cross_compiling=no
4078 else
4079 if test "$cross_compiling" = maybe; then
4080 cross_compiling=yes
4081 else
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error $? "cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 $as_echo "$cross_compiling" >&6; }
4093 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4094 ac_clean_files=$ac_clean_files_save
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 $as_echo_n "checking for suffix of object files... " >&6; }
4097 if ${ac_cv_objext+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4104 main ()
4108 return 0;
4110 _ACEOF
4111 rm -f conftest.o conftest.obj
4112 if { { ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_compile") 2>&5
4120 ac_status=$?
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; then :
4123 for ac_file in conftest.o conftest.obj conftest.*; do
4124 test -f "$ac_file" || continue;
4125 case $ac_file in
4126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4128 break;;
4129 esac
4130 done
4131 else
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "cannot compute suffix of object files: cannot compile
4138 See \`config.log' for more details" "$LINENO" 5; }
4140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4143 $as_echo "$ac_cv_objext" >&6; }
4144 OBJEXT=$ac_cv_objext
4145 ac_objext=$OBJEXT
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148 if ${ac_cv_c_compiler_gnu+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4155 main ()
4157 #ifndef __GNUC__
4158 choke me
4159 #endif
4162 return 0;
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_compiler_gnu=yes
4167 else
4168 ac_compiler_gnu=no
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4176 if test $ac_compiler_gnu = yes; then
4177 GCC=yes
4178 else
4179 GCC=
4181 ac_test_CFLAGS=${CFLAGS+set}
4182 ac_save_CFLAGS=$CFLAGS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4185 if ${ac_cv_prog_cc_g+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4190 ac_cv_prog_cc_g=no
4191 CFLAGS="-g"
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4196 main ()
4200 return 0;
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_g=yes
4205 else
4206 CFLAGS=""
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4211 main ()
4215 return 0;
4217 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"; then :
4220 else
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4222 CFLAGS="-g"
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4227 main ()
4231 return 0;
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235 ac_cv_prog_cc_g=yes
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_c_werror_flag=$ac_save_c_werror_flag
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 $as_echo "$ac_cv_prog_cc_g" >&6; }
4246 if test "$ac_test_CFLAGS" = set; then
4247 CFLAGS=$ac_save_CFLAGS
4248 elif test $ac_cv_prog_cc_g = yes; then
4249 if test "$GCC" = yes; then
4250 CFLAGS="-g -O2"
4251 else
4252 CFLAGS="-g"
4254 else
4255 if test "$GCC" = yes; then
4256 CFLAGS="-O2"
4257 else
4258 CFLAGS=
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263 if ${ac_cv_prog_cc_c89+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 ac_cv_prog_cc_c89=no
4267 ac_save_CC=$CC
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <stdarg.h>
4271 #include <stdio.h>
4272 struct stat;
4273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4274 struct buf { int x; };
4275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4276 static char *e (p, i)
4277 char **p;
4278 int i;
4280 return p[i];
4282 static char *f (char * (*g) (char **, int), char **p, ...)
4284 char *s;
4285 va_list v;
4286 va_start (v,p);
4287 s = g (p, va_arg (v,int));
4288 va_end (v);
4289 return s;
4292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4293 function prototypes and stuff, but not '\xHH' hex character constants.
4294 These don't provoke an error unfortunately, instead are silently treated
4295 as 'x'. The following induces an error, until -std is added to get
4296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4297 array size at least. It's necessary to write '\x00'==0 to get something
4298 that's true only with -std. */
4299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4302 inside strings and character constants. */
4303 #define FOO(x) 'x'
4304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306 int test (int i, double x);
4307 struct s1 {int (*f) (int a);};
4308 struct s2 {int (*f) (double a);};
4309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4310 int argc;
4311 char **argv;
4313 main ()
4315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4317 return 0;
4319 _ACEOF
4320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_prog_cc_c89=$ac_arg
4327 rm -f core conftest.err conftest.$ac_objext
4328 test "x$ac_cv_prog_cc_c89" != "xno" && break
4329 done
4330 rm -f conftest.$ac_ext
4331 CC=$ac_save_CC
4334 # AC_CACHE_VAL
4335 case "x$ac_cv_prog_cc_c89" in
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4338 $as_echo "none needed" >&6; } ;;
4339 xno)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 $as_echo "unsupported" >&6; } ;;
4343 CC="$CC $ac_cv_prog_cc_c89"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4346 esac
4347 if test "x$ac_cv_prog_cc_c89" != xno; then :
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4363 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4364 if ${am_cv_prog_cc_c_o+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4371 main ()
4375 return 0;
4377 _ACEOF
4378 # Make sure it works both with $CC and with simple cc.
4379 # Following AC_PROG_CC_C_O, we do the test twice because some
4380 # compilers refuse to overwrite an existing .o file with -o,
4381 # though they will create one.
4382 am_cv_prog_cc_c_o=yes
4383 for am_i in 1 2; do
4384 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4385 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } \
4389 && test -f conftest2.$ac_objext; then
4390 : OK
4391 else
4392 am_cv_prog_cc_c_o=no
4393 break
4395 done
4396 rm -f core conftest*
4397 unset am_i
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4400 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4401 if test "$am_cv_prog_cc_c_o" != yes; then
4402 # Losing compiler, so override with the script.
4403 # FIXME: It is wrong to rewrite CC.
4404 # But if we don't then we get into trouble of one sort or another.
4405 # A longer-term fix would be to have automake use am__CC in this case,
4406 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4407 CC="$am_aux_dir/compile $CC"
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 depcc="$CC" am_compiler_list=
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4419 $as_echo_n "checking dependency style of $depcc... " >&6; }
4420 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4424 # We make a subdir and do the tests there. Otherwise we can end up
4425 # making bogus files that we don't know about and never remove. For
4426 # instance it was reported that on HP-UX the gcc test will end up
4427 # making a dummy file named 'D' -- because '-MD' means "put the output
4428 # in D".
4429 rm -rf conftest.dir
4430 mkdir conftest.dir
4431 # Copy depcomp to subdir because otherwise we won't find it if we're
4432 # using a relative directory.
4433 cp "$am_depcomp" conftest.dir
4434 cd conftest.dir
4435 # We will build objects and dependencies in a subdirectory because
4436 # it helps to detect inapplicable dependency modes. For instance
4437 # both Tru64's cc and ICC support -MD to output dependencies as a
4438 # side effect of compilation, but ICC will put the dependencies in
4439 # the current directory while Tru64 will put them in the object
4440 # directory.
4441 mkdir sub
4443 am_cv_CC_dependencies_compiler_type=none
4444 if test "$am_compiler_list" = ""; then
4445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4447 am__universal=false
4448 case " $depcc " in #(
4449 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4450 esac
4452 for depmode in $am_compiler_list; do
4453 # Setup a source with many dependencies, because some compilers
4454 # like to wrap large dependency lists on column 80 (with \), and
4455 # we should not choose a depcomp mode which is confused by this.
4457 # We need to recreate these files for each test, as the compiler may
4458 # overwrite some of them when testing with obscure command lines.
4459 # This happens at least with the AIX C compiler.
4460 : > sub/conftest.c
4461 for i in 1 2 3 4 5 6; do
4462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4463 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4464 # Solaris 10 /bin/sh.
4465 echo '/* dummy */' > sub/conftst$i.h
4466 done
4467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4469 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4470 # mode. It turns out that the SunPro C++ compiler does not properly
4471 # handle '-M -o', and we need to detect this. Also, some Intel
4472 # versions had trouble with output in subdirs.
4473 am__obj=sub/conftest.${OBJEXT-o}
4474 am__minus_obj="-o $am__obj"
4475 case $depmode in
4476 gcc)
4477 # This depmode causes a compiler race in universal mode.
4478 test "$am__universal" = false || continue
4480 nosideeffect)
4481 # After this tag, mechanisms are not by side-effect, so they'll
4482 # only be used when explicitly requested.
4483 if test "x$enable_dependency_tracking" = xyes; then
4484 continue
4485 else
4486 break
4489 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4490 # This compiler won't grok '-c -o', but also, the minuso test has
4491 # not run yet. These depmodes are late enough in the game, and
4492 # so weak that their functioning should not be impacted.
4493 am__obj=conftest.${OBJEXT-o}
4494 am__minus_obj=
4496 none) break ;;
4497 esac
4498 if depmode=$depmode \
4499 source=sub/conftest.c object=$am__obj \
4500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4501 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4502 >/dev/null 2>conftest.err &&
4503 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4505 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4506 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4507 # icc doesn't choke on unknown options, it will just issue warnings
4508 # or remarks (even with -Werror). So we grep stderr for any message
4509 # that says an option was ignored or not supported.
4510 # When given -MP, icc 7.0 and 7.1 complain thusly:
4511 # icc: Command line warning: ignoring option '-M'; no argument required
4512 # The diagnosis changed in icc 8.0:
4513 # icc: Command line remark: option '-MP' not supported
4514 if (grep 'ignoring option' conftest.err ||
4515 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4516 am_cv_CC_dependencies_compiler_type=$depmode
4517 break
4520 done
4522 cd ..
4523 rm -rf conftest.dir
4524 else
4525 am_cv_CC_dependencies_compiler_type=none
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4530 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4531 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4534 test "x$enable_dependency_tracking" != xno \
4535 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4536 am__fastdepCC_TRUE=
4537 am__fastdepCC_FALSE='#'
4538 else
4539 am__fastdepCC_TRUE='#'
4540 am__fastdepCC_FALSE=
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4552 # On Suns, sometimes $CPP names a directory.
4553 if test -n "$CPP" && test -d "$CPP"; then
4554 CPP=
4556 if test -z "$CPP"; then
4557 if ${ac_cv_prog_CPP+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 # Double quotes because CPP needs to be expanded
4561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4563 ac_preproc_ok=false
4564 for ac_c_preproc_warn_flag in '' yes
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569 # <limits.h> exists even on freestanding compilers.
4570 # On the NeXT, cc -E runs the code through the compiler's parser,
4571 # not just through cpp. "Syntax error" is here to catch this case.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #ifdef __STDC__
4575 # include <limits.h>
4576 #else
4577 # include <assert.h>
4578 #endif
4579 Syntax error
4580 _ACEOF
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4583 else
4584 # Broken: fails on valid input.
4585 continue
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4594 _ACEOF
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: success on invalid input.
4597 continue
4598 else
4599 # Passes both tests.
4600 ac_preproc_ok=:
4601 break
4603 rm -f conftest.err conftest.i conftest.$ac_ext
4605 done
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.i conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then :
4609 break
4612 done
4613 ac_cv_prog_CPP=$CPP
4616 CPP=$ac_cv_prog_CPP
4617 else
4618 ac_cv_prog_CPP=$CPP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4621 $as_echo "$CPP" >&6; }
4622 ac_preproc_ok=false
4623 for ac_c_preproc_warn_flag in '' yes
4625 # Use a header file that comes with gcc, so configuring glibc
4626 # with a fresh cross-compiler works.
4627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628 # <limits.h> exists even on freestanding compilers.
4629 # On the NeXT, cc -E runs the code through the compiler's parser,
4630 # not just through cpp. "Syntax error" is here to catch this case.
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #ifdef __STDC__
4634 # include <limits.h>
4635 #else
4636 # include <assert.h>
4637 #endif
4638 Syntax error
4639 _ACEOF
4640 if ac_fn_c_try_cpp "$LINENO"; then :
4642 else
4643 # Broken: fails on valid input.
4644 continue
4646 rm -f conftest.err conftest.i conftest.$ac_ext
4648 # OK, works on sane cases. Now check whether nonexistent headers
4649 # can be detected and how.
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <ac_nonexistent.h>
4653 _ACEOF
4654 if ac_fn_c_try_cpp "$LINENO"; then :
4655 # Broken: success on invalid input.
4656 continue
4657 else
4658 # Passes both tests.
4659 ac_preproc_ok=:
4660 break
4662 rm -f conftest.err conftest.i conftest.$ac_ext
4664 done
4665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4666 rm -f conftest.i conftest.err conftest.$ac_ext
4667 if $ac_preproc_ok; then :
4669 else
4670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4672 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4673 See \`config.log' for more details" "$LINENO" 5; }
4676 ac_ext=c
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4684 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4685 if ${ac_cv_path_GREP+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -z "$GREP"; then
4689 ac_path_GREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in grep ggrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p "$ac_path_GREP" || continue
4700 # Check for GNU ac_path_GREP and select it if it is found.
4701 # Check for GNU $ac_path_GREP
4702 case `"$ac_path_GREP" --version 2>&1` in
4703 *GNU*)
4704 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4706 ac_count=0
4707 $as_echo_n 0123456789 >"conftest.in"
4708 while :
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'GREP' >> "conftest.nl"
4714 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_GREP="$ac_path_GREP"
4720 ac_path_GREP_max=$ac_count
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4724 done
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4728 $ac_path_GREP_found && break 3
4729 done
4730 done
4731 done
4732 IFS=$as_save_IFS
4733 if test -z "$ac_cv_path_GREP"; then
4734 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 else
4737 ac_cv_path_GREP=$GREP
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4742 $as_echo "$ac_cv_path_GREP" >&6; }
4743 GREP="$ac_cv_path_GREP"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4747 $as_echo_n "checking for egrep... " >&6; }
4748 if ${ac_cv_path_EGREP+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4752 then ac_cv_path_EGREP="$GREP -E"
4753 else
4754 if test -z "$EGREP"; then
4755 ac_path_EGREP_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_prog in egrep; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4765 as_fn_executable_p "$ac_path_EGREP" || continue
4766 # Check for GNU ac_path_EGREP and select it if it is found.
4767 # Check for GNU $ac_path_EGREP
4768 case `"$ac_path_EGREP" --version 2>&1` in
4769 *GNU*)
4770 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4772 ac_count=0
4773 $as_echo_n 0123456789 >"conftest.in"
4774 while :
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'EGREP' >> "conftest.nl"
4780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 as_fn_arith $ac_count + 1 && ac_count=$as_val
4783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_EGREP="$ac_path_EGREP"
4786 ac_path_EGREP_max=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4790 done
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 esac
4794 $ac_path_EGREP_found && break 3
4795 done
4796 done
4797 done
4798 IFS=$as_save_IFS
4799 if test -z "$ac_cv_path_EGREP"; then
4800 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802 else
4803 ac_cv_path_EGREP=$EGREP
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4809 $as_echo "$ac_cv_path_EGREP" >&6; }
4810 EGREP="$ac_cv_path_EGREP"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4814 $as_echo_n "checking for ANSI C header files... " >&6; }
4815 if ${ac_cv_header_stdc+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820 #include <stdlib.h>
4821 #include <stdarg.h>
4822 #include <string.h>
4823 #include <float.h>
4826 main ()
4830 return 0;
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_cv_header_stdc=yes
4835 else
4836 ac_cv_header_stdc=no
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 if test $ac_cv_header_stdc = yes; then
4841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 #include <string.h>
4846 _ACEOF
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848 $EGREP "memchr" >/dev/null 2>&1; then :
4850 else
4851 ac_cv_header_stdc=no
4853 rm -f conftest*
4857 if test $ac_cv_header_stdc = yes; then
4858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 #include <stdlib.h>
4863 _ACEOF
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "free" >/dev/null 2>&1; then :
4867 else
4868 ac_cv_header_stdc=no
4870 rm -f conftest*
4874 if test $ac_cv_header_stdc = yes; then
4875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4876 if test "$cross_compiling" = yes; then :
4878 else
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #include <ctype.h>
4882 #include <stdlib.h>
4883 #if ((' ' & 0x0FF) == 0x020)
4884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4886 #else
4887 # define ISLOWER(c) \
4888 (('a' <= (c) && (c) <= 'i') \
4889 || ('j' <= (c) && (c) <= 'r') \
4890 || ('s' <= (c) && (c) <= 'z'))
4891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4892 #endif
4894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4896 main ()
4898 int i;
4899 for (i = 0; i < 256; i++)
4900 if (XOR (islower (i), ISLOWER (i))
4901 || toupper (i) != TOUPPER (i))
4902 return 2;
4903 return 0;
4905 _ACEOF
4906 if ac_fn_c_try_run "$LINENO"; then :
4908 else
4909 ac_cv_header_stdc=no
4911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4912 conftest.$ac_objext conftest.beam conftest.$ac_ext
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4918 $as_echo "$ac_cv_header_stdc" >&6; }
4919 if test $ac_cv_header_stdc = yes; then
4921 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4927 inttypes.h stdint.h unistd.h
4928 do :
4929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4933 cat >>confdefs.h <<_ACEOF
4934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935 _ACEOF
4939 done
4943 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4944 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4945 MINIX=yes
4946 else
4947 MINIX=
4951 if test "$MINIX" = yes; then
4953 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4956 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4959 $as_echo "#define _MINIX 1" >>confdefs.h
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4965 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4966 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4972 # define __EXTENSIONS__ 1
4973 $ac_includes_default
4975 main ()
4979 return 0;
4981 _ACEOF
4982 if ac_fn_c_try_compile "$LINENO"; then :
4983 ac_cv_safe_to_define___extensions__=yes
4984 else
4985 ac_cv_safe_to_define___extensions__=no
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4990 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4991 test $ac_cv_safe_to_define___extensions__ = yes &&
4992 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4994 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4996 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4998 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5000 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5004 # PR 14072
5008 # Check whether --with-sysroot was given.
5009 if test "${with_sysroot+set}" = set; then :
5010 withval=$with_sysroot; sysroot=$withval
5011 else
5012 sysroot=no
5016 if test "$sysroot" = "yes"; then
5017 sysroot='${exec_prefix}/${target_alias}/sys-root'
5018 elif test "$sysroot" = "no"; then
5019 sysroot=
5022 sysroot_relocatable=0
5023 if test -n "$sysroot"; then
5024 case "$sysroot" in
5025 "${prefix}" | "${prefix}/"* | \
5026 "${exec_prefix}" | "${exec_prefix}/"* | \
5027 '${prefix}' | '${prefix}/'*| \
5028 '${exec_prefix}' | '${exec_prefix}/'*)
5029 sysroot_relocatable=1
5031 esac
5035 cat >>confdefs.h <<_ACEOF
5036 #define TARGET_SYSTEM_ROOT "$sysroot"
5037 _ACEOF
5040 cat >>confdefs.h <<_ACEOF
5041 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5042 _ACEOF
5046 installed_linker=ld.gold
5047 # Check whether --enable-gold was given.
5048 if test "${enable_gold+set}" = set; then :
5049 enableval=$enable_gold; case "${enableval}" in
5050 default)
5051 install_as_default=yes
5053 yes)
5054 if test x${enable_ld} = xno; then
5055 install_as_default=yes
5058 esac
5059 else
5060 install_as_default=no
5067 maybe_plugins=no
5068 for ac_header in dlfcn.h
5069 do :
5070 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5072 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5073 cat >>confdefs.h <<_ACEOF
5074 #define HAVE_DLFCN_H 1
5075 _ACEOF
5076 maybe_plugins=yes
5079 done
5081 for ac_header in windows.h
5082 do :
5083 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5085 if test "x$ac_cv_header_windows_h" = xyes; then :
5086 cat >>confdefs.h <<_ACEOF
5087 #define HAVE_WINDOWS_H 1
5088 _ACEOF
5089 maybe_plugins=yes
5092 done
5095 # Check whether --enable-plugins was given.
5096 if test "${enable_plugins+set}" = set; then :
5097 enableval=$enable_plugins; case "${enableval}" in
5098 no) plugins=no ;;
5099 *) plugins=yes
5100 if test "$maybe_plugins" != "yes" ; then
5101 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5102 fi ;;
5103 esac
5104 else
5105 plugins=$maybe_plugins
5109 if test "$plugins" = "yes"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5111 $as_echo_n "checking for library containing dlsym... " >&6; }
5112 if ${ac_cv_search_dlsym+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 ac_func_search_save_LIBS=$LIBS
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5119 /* Override any GCC internal prototype to avoid an error.
5120 Use char because int might match the return type of a GCC
5121 builtin and then its argument prototype would still apply. */
5122 #ifdef __cplusplus
5123 extern "C"
5124 #endif
5125 char dlsym ();
5127 main ()
5129 return dlsym ();
5131 return 0;
5133 _ACEOF
5134 for ac_lib in '' dl; do
5135 if test -z "$ac_lib"; then
5136 ac_res="none required"
5137 else
5138 ac_res=-l$ac_lib
5139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5141 if ac_fn_c_try_link "$LINENO"; then :
5142 ac_cv_search_dlsym=$ac_res
5144 rm -f core conftest.err conftest.$ac_objext \
5145 conftest$ac_exeext
5146 if ${ac_cv_search_dlsym+:} false; then :
5147 break
5149 done
5150 if ${ac_cv_search_dlsym+:} false; then :
5152 else
5153 ac_cv_search_dlsym=no
5155 rm conftest.$ac_ext
5156 LIBS=$ac_func_search_save_LIBS
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5159 $as_echo "$ac_cv_search_dlsym" >&6; }
5160 ac_res=$ac_cv_search_dlsym
5161 if test "$ac_res" != no; then :
5162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5168 if test "$plugins" = "yes"; then
5170 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5173 if test "$plugins" = "yes"; then
5174 PLUGINS_TRUE=
5175 PLUGINS_FALSE='#'
5176 else
5177 PLUGINS_TRUE='#'
5178 PLUGINS_FALSE=
5182 # Decide if -z relro should be enabled in ELF linker by default.
5183 ac_default_ld_z_relro=unset
5184 # Provide a configure time option to override our default.
5185 # Check whether --enable-relro was given.
5186 if test "${enable_relro+set}" = set; then :
5187 enableval=$enable_relro; case "${enableval}" in
5188 yes) ac_default_ld_z_relro=1 ;;
5189 no) ac_default_ld_z_relro=0 ;;
5190 esac
5192 if test "${ac_default_ld_z_relro}" = unset; then
5193 ac_default_ld_z_relro=1
5196 cat >>confdefs.h <<_ACEOF
5197 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5198 _ACEOF
5201 # Check whether --enable-targets was given.
5202 if test "${enable_targets+set}" = set; then :
5203 enableval=$enable_targets; case "${enableval}" in
5204 yes | "")
5205 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5208 enable_targets=
5211 enable_targets=$enableval
5213 esac
5214 else
5215 # For now, enable all targets by default
5216 enable_targets=all
5221 # Canonicalize the enabled targets.
5222 if test -n "$enable_targets"; then
5223 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5224 result=`$ac_config_sub $targ 2>/dev/null`
5225 if test -n "$result"; then
5226 canon_targets="$canon_targets $result"
5227 else
5228 # Permit unrecognized target names, like "all".
5229 canon_targets="$canon_targets $targ"
5231 done
5234 # Decide which "--hash-style" to use by default
5235 # Provide a configure time option to override our default.
5236 # Check whether --enable-default-hash-style was given.
5237 if test "${enable_default_hash_style+set}" = set; then :
5238 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5239 sysv | gnu | both) ;;
5240 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5241 esac
5242 else
5243 case "${target}" in
5244 # Enable gnu hash only on GNU targets, but not mips
5245 mips*-*-*) enable_default_hash_style=sysv ;;
5246 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5247 *) enable_default_hash_style=sysv ;;
5248 esac
5253 cat >>confdefs.h <<_ACEOF
5254 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5255 _ACEOF
5258 # See which specific instantiations we need.
5259 targetobjs=
5260 all_targets=
5261 default_machine=
5262 default_size=
5263 default_big_endian=
5264 default_osabi=ELFOSABI_NONE
5265 targ_32_little=
5266 targ_32_big=
5267 targ_64_little=
5268 targ_64_big=
5269 for targ in $target $canon_targets; do
5270 if test "$targ" = "all"; then
5271 targ_32_little=yes
5272 targ_32_big=yes
5273 targ_64_little=yes
5274 targ_64_big=yes
5275 all_targets=yes
5276 else
5277 . ${srcdir}/configure.tgt
5279 if test "$targ_obj" = "UNKNOWN"; then
5280 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5281 else
5282 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5283 if test "$targ_extra_obj" != ""; then
5284 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5286 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5287 if test "$targ_big_endian" = "true" \
5288 -o "$targ_extra_big_endian" = "true"; then
5289 targ_32_big=yes
5291 if test "$targ_big_endian" = "false" \
5292 -o "$targ_extra_big_endian" = "false"; then
5293 targ_32_little=yes
5296 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5297 if test "$targ_big_endian" = "true" \
5298 -o "$targ_extra_big_endian" = "true"; then
5299 targ_64_big=yes
5301 if test "$targ_big_endian" = "false" \
5302 -o "$targ_extra_big_endian" = "false"; then
5303 targ_64_little=yes
5307 if test "$target" = "$targ"; then
5308 default_machine=$targ_machine
5309 default_size=$targ_size
5310 default_big_endian=$targ_big_endian
5311 default_osabi=$targ_osabi
5313 if test "$targ_obj" = "aarch64"; then
5314 DEFAULT_TARGET_AARCH64_TRUE=
5315 DEFAULT_TARGET_AARCH64_FALSE='#'
5316 else
5317 DEFAULT_TARGET_AARCH64_TRUE='#'
5318 DEFAULT_TARGET_AARCH64_FALSE=
5321 if test "$targ_obj" = "arm"; then
5322 DEFAULT_TARGET_ARM_TRUE=
5323 DEFAULT_TARGET_ARM_FALSE='#'
5324 else
5325 DEFAULT_TARGET_ARM_TRUE='#'
5326 DEFAULT_TARGET_ARM_FALSE=
5329 if test "$targ_obj" = "i386"; then
5330 DEFAULT_TARGET_I386_TRUE=
5331 DEFAULT_TARGET_I386_FALSE='#'
5332 else
5333 DEFAULT_TARGET_I386_TRUE='#'
5334 DEFAULT_TARGET_I386_FALSE=
5337 if test "$targ_obj" = "powerpc"; then
5338 DEFAULT_TARGET_POWERPC_TRUE=
5339 DEFAULT_TARGET_POWERPC_FALSE='#'
5340 else
5341 DEFAULT_TARGET_POWERPC_TRUE='#'
5342 DEFAULT_TARGET_POWERPC_FALSE=
5345 if test "$targ_obj" = "sparc"; then
5346 DEFAULT_TARGET_SPARC_TRUE=
5347 DEFAULT_TARGET_SPARC_FALSE='#'
5348 else
5349 DEFAULT_TARGET_SPARC_TRUE='#'
5350 DEFAULT_TARGET_SPARC_FALSE=
5353 if test "$targ_obj" = "s390"; then
5354 DEFAULT_TARGET_S390_TRUE=
5355 DEFAULT_TARGET_S390_FALSE='#'
5356 else
5357 DEFAULT_TARGET_S390_TRUE='#'
5358 DEFAULT_TARGET_S390_FALSE=
5361 target_x86_64=no
5362 target_x32=no
5363 if test "$targ_obj" = "x86_64"; then
5364 case "$target" in
5365 x86_64*-linux-gnux32)
5366 target_x32=yes
5367 default_size=32
5370 target_x86_64=yes
5372 esac
5374 if test "$target_x86_64" = "yes"; then
5375 DEFAULT_TARGET_X86_64_TRUE=
5376 DEFAULT_TARGET_X86_64_FALSE='#'
5377 else
5378 DEFAULT_TARGET_X86_64_TRUE='#'
5379 DEFAULT_TARGET_X86_64_FALSE=
5382 if test "$target_x32" = "yes"; then
5383 DEFAULT_TARGET_X32_TRUE=
5384 DEFAULT_TARGET_X32_FALSE='#'
5385 else
5386 DEFAULT_TARGET_X32_TRUE='#'
5387 DEFAULT_TARGET_X32_FALSE=
5390 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5391 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5392 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5393 else
5394 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5395 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5398 if test "$targ_obj" = "tilegx"; then
5399 DEFAULT_TARGET_TILEGX_TRUE=
5400 DEFAULT_TARGET_TILEGX_FALSE='#'
5401 else
5402 DEFAULT_TARGET_TILEGX_TRUE='#'
5403 DEFAULT_TARGET_TILEGX_FALSE=
5406 if test "$targ_obj" = "mips"; then
5407 DEFAULT_TARGET_MIPS_TRUE=
5408 DEFAULT_TARGET_MIPS_FALSE='#'
5409 else
5410 DEFAULT_TARGET_MIPS_TRUE='#'
5411 DEFAULT_TARGET_MIPS_FALSE=
5414 DEFAULT_TARGET=${targ_obj}
5419 done
5421 # Remove any duplicates.
5422 to=""
5423 for t in $targetobjs; do
5424 case " $to " in
5425 *" $t "*) ;;
5426 *) to="$to $t" ;;
5427 esac
5428 done
5429 targetobjs=$to
5431 if test -n "$targ_32_little"; then
5433 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5436 if test -n "$targ_32_big"; then
5438 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5441 if test -n "$targ_64_little"; then
5443 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5446 if test -n "$targ_64_big"; then
5448 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5452 if test -n "$all_targets"; then
5453 TARGETOBJS='$(ALL_TARGETOBJS)'
5454 else
5455 TARGETOBJS="$targetobjs"
5460 cat >>confdefs.h <<_ACEOF
5461 #define GOLD_DEFAULT_MACHINE $default_machine
5462 _ACEOF
5465 cat >>confdefs.h <<_ACEOF
5466 #define GOLD_DEFAULT_SIZE $default_size
5467 _ACEOF
5470 cat >>confdefs.h <<_ACEOF
5471 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5472 _ACEOF
5475 cat >>confdefs.h <<_ACEOF
5476 #define GOLD_DEFAULT_OSABI $default_osabi
5477 _ACEOF
5481 # Check whether --with-lib-path was given.
5482 if test "${with_lib_path+set}" = set; then :
5483 withval=$with_lib_path; case "$withval" in
5484 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5485 no) LIB_PATH='""' ;;
5486 *) LIB_PATH='"'"$withval"'"' ;;
5487 esac
5488 else
5489 LIB_PATH='"::DEFAULT::"'
5493 cat >>confdefs.h <<_ACEOF
5494 #define LIB_PATH $LIB_PATH
5495 _ACEOF
5497 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5499 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}nm; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_NM+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$NM"; then
5512 ac_cv_prog_NM="$NM" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_NM="${ac_tool_prefix}nm"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5531 NM=$ac_cv_prog_NM
5532 if test -n "$NM"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5534 $as_echo "$NM" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5542 if test -z "$ac_cv_prog_NM"; then
5543 ac_ct_NM=$NM
5544 # Extract the first word of "nm", so it can be a program name with args.
5545 set dummy nm; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$ac_ct_NM"; then
5552 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_NM="nm"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5572 if test -n "$ac_ct_NM"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5574 $as_echo "$ac_ct_NM" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5580 if test "x$ac_ct_NM" = x; then
5581 NM=""
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589 NM=$ac_ct_NM
5591 else
5592 NM="$ac_cv_prog_NM"
5596 ac_ext=c
5597 ac_cpp='$CPP $CPPFLAGS'
5598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_CC+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 if test -n "$CC"; then
5610 ac_cv_prog_CC="$CC" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5623 done
5624 done
5625 IFS=$as_save_IFS
5629 CC=$ac_cv_prog_CC
5630 if test -n "$CC"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632 $as_echo "$CC" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5640 if test -z "$ac_cv_prog_CC"; then
5641 ac_ct_CC=$CC
5642 # Extract the first word of "gcc", so it can be a program name with args.
5643 set dummy gcc; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -n "$ac_ct_CC"; then
5650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_CC="gcc"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5665 IFS=$as_save_IFS
5669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5670 if test -n "$ac_ct_CC"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5672 $as_echo "$ac_ct_CC" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5678 if test "x$ac_ct_CC" = x; then
5679 CC=""
5680 else
5681 case $cross_compiling:$ac_tool_warned in
5682 yes:)
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685 ac_tool_warned=yes ;;
5686 esac
5687 CC=$ac_ct_CC
5689 else
5690 CC="$ac_cv_prog_CC"
5693 if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}cc; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_CC+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$CC"; then
5703 ac_cv_prog_CC="$CC" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_CC="${ac_tool_prefix}cc"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 CC=$ac_cv_prog_CC
5723 if test -n "$CC"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5725 $as_echo "$CC" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5734 if test -z "$CC"; then
5735 # Extract the first word of "cc", so it can be a program name with args.
5736 set dummy cc; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_CC+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if test -n "$CC"; then
5743 ac_cv_prog_CC="$CC" # Let the user override the test.
5744 else
5745 ac_prog_rejected=no
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5754 ac_prog_rejected=yes
5755 continue
5757 ac_cv_prog_CC="cc"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5761 done
5762 done
5763 IFS=$as_save_IFS
5765 if test $ac_prog_rejected = yes; then
5766 # We found a bogon in the path, so make sure we never use it.
5767 set dummy $ac_cv_prog_CC
5768 shift
5769 if test $# != 0; then
5770 # We chose a different compiler from the bogus one.
5771 # However, it has the same basename, so the bogon will be chosen
5772 # first if we set CC to just the basename; use the full file name.
5773 shift
5774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5779 CC=$ac_cv_prog_CC
5780 if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782 $as_echo "$CC" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5790 if test -z "$CC"; then
5791 if test -n "$ac_tool_prefix"; then
5792 for ac_prog in cl.exe
5794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_CC+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC="$CC" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5815 done
5816 done
5817 IFS=$as_save_IFS
5821 CC=$ac_cv_prog_CC
5822 if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824 $as_echo "$CC" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5831 test -n "$CC" && break
5832 done
5834 if test -z "$CC"; then
5835 ac_ct_CC=$CC
5836 for ac_prog in cl.exe
5838 # Extract the first word of "$ac_prog", so it can be a program name with args.
5839 set dummy $ac_prog; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_CC="$ac_prog"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5859 done
5860 done
5861 IFS=$as_save_IFS
5865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5866 if test -n "$ac_ct_CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868 $as_echo "$ac_ct_CC" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5875 test -n "$ac_ct_CC" && break
5876 done
5878 if test "x$ac_ct_CC" = x; then
5879 CC=""
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882 yes:)
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5886 esac
5887 CC=$ac_ct_CC
5894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 as_fn_error $? "no acceptable C compiler found in \$PATH
5897 See \`config.log' for more details" "$LINENO" 5; }
5899 # Provide some information about the compiler.
5900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5901 set X $ac_compile
5902 ac_compiler=$2
5903 for ac_option in --version -v -V -qversion; do
5904 { { ac_try="$ac_compiler $ac_option >&5"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5910 $as_echo "$ac_try_echo"; } >&5
5911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5912 ac_status=$?
5913 if test -s conftest.err; then
5914 sed '10a\
5915 ... rest of stderr output deleted ...
5916 10q' conftest.err >conftest.er1
5917 cat conftest.er1 >&5
5919 rm -f conftest.er1 conftest.err
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }
5922 done
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5925 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5926 if ${ac_cv_c_compiler_gnu+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5933 main ()
5935 #ifndef __GNUC__
5936 choke me
5937 #endif
5940 return 0;
5942 _ACEOF
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944 ac_compiler_gnu=yes
5945 else
5946 ac_compiler_gnu=no
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5953 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5954 if test $ac_compiler_gnu = yes; then
5955 GCC=yes
5956 else
5957 GCC=
5959 ac_test_CFLAGS=${CFLAGS+set}
5960 ac_save_CFLAGS=$CFLAGS
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5962 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5963 if ${ac_cv_prog_cc_g+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 ac_save_c_werror_flag=$ac_c_werror_flag
5967 ac_c_werror_flag=yes
5968 ac_cv_prog_cc_g=no
5969 CFLAGS="-g"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5974 main ()
5978 return 0;
5980 _ACEOF
5981 if ac_fn_c_try_compile "$LINENO"; then :
5982 ac_cv_prog_cc_g=yes
5983 else
5984 CFLAGS=""
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5989 main ()
5993 return 0;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5998 else
5999 ac_c_werror_flag=$ac_save_c_werror_flag
6000 CFLAGS="-g"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6005 main ()
6009 return 0;
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 ac_cv_prog_cc_g=yes
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_c_werror_flag=$ac_save_c_werror_flag
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6023 $as_echo "$ac_cv_prog_cc_g" >&6; }
6024 if test "$ac_test_CFLAGS" = set; then
6025 CFLAGS=$ac_save_CFLAGS
6026 elif test $ac_cv_prog_cc_g = yes; then
6027 if test "$GCC" = yes; then
6028 CFLAGS="-g -O2"
6029 else
6030 CFLAGS="-g"
6032 else
6033 if test "$GCC" = yes; then
6034 CFLAGS="-O2"
6035 else
6036 CFLAGS=
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6041 if ${ac_cv_prog_cc_c89+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 ac_cv_prog_cc_c89=no
6045 ac_save_CC=$CC
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #include <stdarg.h>
6049 #include <stdio.h>
6050 struct stat;
6051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6052 struct buf { int x; };
6053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6054 static char *e (p, i)
6055 char **p;
6056 int i;
6058 return p[i];
6060 static char *f (char * (*g) (char **, int), char **p, ...)
6062 char *s;
6063 va_list v;
6064 va_start (v,p);
6065 s = g (p, va_arg (v,int));
6066 va_end (v);
6067 return s;
6070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6071 function prototypes and stuff, but not '\xHH' hex character constants.
6072 These don't provoke an error unfortunately, instead are silently treated
6073 as 'x'. The following induces an error, until -std is added to get
6074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6075 array size at least. It's necessary to write '\x00'==0 to get something
6076 that's true only with -std. */
6077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6080 inside strings and character constants. */
6081 #define FOO(x) 'x'
6082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6084 int test (int i, double x);
6085 struct s1 {int (*f) (int a);};
6086 struct s2 {int (*f) (double a);};
6087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6088 int argc;
6089 char **argv;
6091 main ()
6093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6095 return 0;
6097 _ACEOF
6098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6101 CC="$ac_save_CC $ac_arg"
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_prog_cc_c89=$ac_arg
6105 rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6107 done
6108 rm -f conftest.$ac_ext
6109 CC=$ac_save_CC
6112 # AC_CACHE_VAL
6113 case "x$ac_cv_prog_cc_c89" in
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6116 $as_echo "none needed" >&6; } ;;
6117 xno)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6119 $as_echo "unsupported" >&6; } ;;
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6123 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6124 esac
6125 if test "x$ac_cv_prog_cc_c89" != xno; then :
6129 ac_ext=c
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135 ac_ext=c
6136 ac_cpp='$CPP $CPPFLAGS'
6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6141 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6142 if ${am_cv_prog_cc_c_o+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6149 main ()
6153 return 0;
6155 _ACEOF
6156 # Make sure it works both with $CC and with simple cc.
6157 # Following AC_PROG_CC_C_O, we do the test twice because some
6158 # compilers refuse to overwrite an existing .o file with -o,
6159 # though they will create one.
6160 am_cv_prog_cc_c_o=yes
6161 for am_i in 1 2; do
6162 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6163 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } \
6167 && test -f conftest2.$ac_objext; then
6168 : OK
6169 else
6170 am_cv_prog_cc_c_o=no
6171 break
6173 done
6174 rm -f core conftest*
6175 unset am_i
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6178 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6179 if test "$am_cv_prog_cc_c_o" != yes; then
6180 # Losing compiler, so override with the script.
6181 # FIXME: It is wrong to rewrite CC.
6182 # But if we don't then we get into trouble of one sort or another.
6183 # A longer-term fix would be to have automake use am__CC in this case,
6184 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6185 CC="$am_aux_dir/compile $CC"
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 depcc="$CC" am_compiler_list=
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6197 $as_echo_n "checking dependency style of $depcc... " >&6; }
6198 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6202 # We make a subdir and do the tests there. Otherwise we can end up
6203 # making bogus files that we don't know about and never remove. For
6204 # instance it was reported that on HP-UX the gcc test will end up
6205 # making a dummy file named 'D' -- because '-MD' means "put the output
6206 # in D".
6207 rm -rf conftest.dir
6208 mkdir conftest.dir
6209 # Copy depcomp to subdir because otherwise we won't find it if we're
6210 # using a relative directory.
6211 cp "$am_depcomp" conftest.dir
6212 cd conftest.dir
6213 # We will build objects and dependencies in a subdirectory because
6214 # it helps to detect inapplicable dependency modes. For instance
6215 # both Tru64's cc and ICC support -MD to output dependencies as a
6216 # side effect of compilation, but ICC will put the dependencies in
6217 # the current directory while Tru64 will put them in the object
6218 # directory.
6219 mkdir sub
6221 am_cv_CC_dependencies_compiler_type=none
6222 if test "$am_compiler_list" = ""; then
6223 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6225 am__universal=false
6226 case " $depcc " in #(
6227 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6228 esac
6230 for depmode in $am_compiler_list; do
6231 # Setup a source with many dependencies, because some compilers
6232 # like to wrap large dependency lists on column 80 (with \), and
6233 # we should not choose a depcomp mode which is confused by this.
6235 # We need to recreate these files for each test, as the compiler may
6236 # overwrite some of them when testing with obscure command lines.
6237 # This happens at least with the AIX C compiler.
6238 : > sub/conftest.c
6239 for i in 1 2 3 4 5 6; do
6240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6242 # Solaris 10 /bin/sh.
6243 echo '/* dummy */' > sub/conftst$i.h
6244 done
6245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6247 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6248 # mode. It turns out that the SunPro C++ compiler does not properly
6249 # handle '-M -o', and we need to detect this. Also, some Intel
6250 # versions had trouble with output in subdirs.
6251 am__obj=sub/conftest.${OBJEXT-o}
6252 am__minus_obj="-o $am__obj"
6253 case $depmode in
6254 gcc)
6255 # This depmode causes a compiler race in universal mode.
6256 test "$am__universal" = false || continue
6258 nosideeffect)
6259 # After this tag, mechanisms are not by side-effect, so they'll
6260 # only be used when explicitly requested.
6261 if test "x$enable_dependency_tracking" = xyes; then
6262 continue
6263 else
6264 break
6267 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6268 # This compiler won't grok '-c -o', but also, the minuso test has
6269 # not run yet. These depmodes are late enough in the game, and
6270 # so weak that their functioning should not be impacted.
6271 am__obj=conftest.${OBJEXT-o}
6272 am__minus_obj=
6274 none) break ;;
6275 esac
6276 if depmode=$depmode \
6277 source=sub/conftest.c object=$am__obj \
6278 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6279 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6280 >/dev/null 2>conftest.err &&
6281 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6282 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6283 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6284 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6285 # icc doesn't choke on unknown options, it will just issue warnings
6286 # or remarks (even with -Werror). So we grep stderr for any message
6287 # that says an option was ignored or not supported.
6288 # When given -MP, icc 7.0 and 7.1 complain thusly:
6289 # icc: Command line warning: ignoring option '-M'; no argument required
6290 # The diagnosis changed in icc 8.0:
6291 # icc: Command line remark: option '-MP' not supported
6292 if (grep 'ignoring option' conftest.err ||
6293 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6294 am_cv_CC_dependencies_compiler_type=$depmode
6295 break
6298 done
6300 cd ..
6301 rm -rf conftest.dir
6302 else
6303 am_cv_CC_dependencies_compiler_type=none
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6308 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6312 test "x$enable_dependency_tracking" != xno \
6313 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6314 am__fastdepCC_TRUE=
6315 am__fastdepCC_FALSE='#'
6316 else
6317 am__fastdepCC_TRUE='#'
6318 am__fastdepCC_FALSE=
6322 ac_ext=cpp
6323 ac_cpp='$CXXCPP $CPPFLAGS'
6324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327 if test -z "$CXX"; then
6328 if test -n "$CCC"; then
6329 CXX=$CCC
6330 else
6331 if test -n "$ac_tool_prefix"; then
6332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_CXX+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if test -n "$CXX"; then
6342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6355 done
6356 done
6357 IFS=$as_save_IFS
6361 CXX=$ac_cv_prog_CXX
6362 if test -n "$CXX"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6364 $as_echo "$CXX" >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6371 test -n "$CXX" && break
6372 done
6374 if test -z "$CXX"; then
6375 ac_ct_CXX=$CXX
6376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6378 # Extract the first word of "$ac_prog", so it can be a program name with args.
6379 set dummy $ac_prog; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$ac_ct_CXX"; then
6386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_CXX="$ac_prog"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6401 IFS=$as_save_IFS
6405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6406 if test -n "$ac_ct_CXX"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6408 $as_echo "$ac_ct_CXX" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6415 test -n "$ac_ct_CXX" && break
6416 done
6418 if test "x$ac_ct_CXX" = x; then
6419 CXX="g++"
6420 else
6421 case $cross_compiling:$ac_tool_warned in
6422 yes:)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6426 esac
6427 CXX=$ac_ct_CXX
6433 # Provide some information about the compiler.
6434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6435 set X $ac_compile
6436 ac_compiler=$2
6437 for ac_option in --version -v -V -qversion; do
6438 { { ac_try="$ac_compiler $ac_option >&5"
6439 case "(($ac_try" in
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6442 esac
6443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6444 $as_echo "$ac_try_echo"; } >&5
6445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6446 ac_status=$?
6447 if test -s conftest.err; then
6448 sed '10a\
6449 ... rest of stderr output deleted ...
6450 10q' conftest.err >conftest.er1
6451 cat conftest.er1 >&5
6453 rm -f conftest.er1 conftest.err
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }
6456 done
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6459 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6460 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6467 main ()
6469 #ifndef __GNUC__
6470 choke me
6471 #endif
6474 return 0;
6476 _ACEOF
6477 if ac_fn_cxx_try_compile "$LINENO"; then :
6478 ac_compiler_gnu=yes
6479 else
6480 ac_compiler_gnu=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6488 if test $ac_compiler_gnu = yes; then
6489 GXX=yes
6490 else
6491 GXX=
6493 ac_test_CXXFLAGS=${CXXFLAGS+set}
6494 ac_save_CXXFLAGS=$CXXFLAGS
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6496 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6497 if ${ac_cv_prog_cxx_g+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6501 ac_cxx_werror_flag=yes
6502 ac_cv_prog_cxx_g=no
6503 CXXFLAGS="-g"
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6508 main ()
6512 return 0;
6514 _ACEOF
6515 if ac_fn_cxx_try_compile "$LINENO"; then :
6516 ac_cv_prog_cxx_g=yes
6517 else
6518 CXXFLAGS=""
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6523 main ()
6527 return 0;
6529 _ACEOF
6530 if ac_fn_cxx_try_compile "$LINENO"; then :
6532 else
6533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6534 CXXFLAGS="-g"
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6539 main ()
6543 return 0;
6545 _ACEOF
6546 if ac_fn_cxx_try_compile "$LINENO"; then :
6547 ac_cv_prog_cxx_g=yes
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6557 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6558 if test "$ac_test_CXXFLAGS" = set; then
6559 CXXFLAGS=$ac_save_CXXFLAGS
6560 elif test $ac_cv_prog_cxx_g = yes; then
6561 if test "$GXX" = yes; then
6562 CXXFLAGS="-g -O2"
6563 else
6564 CXXFLAGS="-g"
6566 else
6567 if test "$GXX" = yes; then
6568 CXXFLAGS="-O2"
6569 else
6570 CXXFLAGS=
6573 ac_ext=c
6574 ac_cpp='$CPP $CPPFLAGS'
6575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579 depcc="$CXX" am_compiler_list=
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6582 $as_echo_n "checking dependency style of $depcc... " >&6; }
6583 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6587 # We make a subdir and do the tests there. Otherwise we can end up
6588 # making bogus files that we don't know about and never remove. For
6589 # instance it was reported that on HP-UX the gcc test will end up
6590 # making a dummy file named 'D' -- because '-MD' means "put the output
6591 # in D".
6592 rm -rf conftest.dir
6593 mkdir conftest.dir
6594 # Copy depcomp to subdir because otherwise we won't find it if we're
6595 # using a relative directory.
6596 cp "$am_depcomp" conftest.dir
6597 cd conftest.dir
6598 # We will build objects and dependencies in a subdirectory because
6599 # it helps to detect inapplicable dependency modes. For instance
6600 # both Tru64's cc and ICC support -MD to output dependencies as a
6601 # side effect of compilation, but ICC will put the dependencies in
6602 # the current directory while Tru64 will put them in the object
6603 # directory.
6604 mkdir sub
6606 am_cv_CXX_dependencies_compiler_type=none
6607 if test "$am_compiler_list" = ""; then
6608 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6610 am__universal=false
6611 case " $depcc " in #(
6612 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6613 esac
6615 for depmode in $am_compiler_list; do
6616 # Setup a source with many dependencies, because some compilers
6617 # like to wrap large dependency lists on column 80 (with \), and
6618 # we should not choose a depcomp mode which is confused by this.
6620 # We need to recreate these files for each test, as the compiler may
6621 # overwrite some of them when testing with obscure command lines.
6622 # This happens at least with the AIX C compiler.
6623 : > sub/conftest.c
6624 for i in 1 2 3 4 5 6; do
6625 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6626 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6627 # Solaris 10 /bin/sh.
6628 echo '/* dummy */' > sub/conftst$i.h
6629 done
6630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6632 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6633 # mode. It turns out that the SunPro C++ compiler does not properly
6634 # handle '-M -o', and we need to detect this. Also, some Intel
6635 # versions had trouble with output in subdirs.
6636 am__obj=sub/conftest.${OBJEXT-o}
6637 am__minus_obj="-o $am__obj"
6638 case $depmode in
6639 gcc)
6640 # This depmode causes a compiler race in universal mode.
6641 test "$am__universal" = false || continue
6643 nosideeffect)
6644 # After this tag, mechanisms are not by side-effect, so they'll
6645 # only be used when explicitly requested.
6646 if test "x$enable_dependency_tracking" = xyes; then
6647 continue
6648 else
6649 break
6652 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6653 # This compiler won't grok '-c -o', but also, the minuso test has
6654 # not run yet. These depmodes are late enough in the game, and
6655 # so weak that their functioning should not be impacted.
6656 am__obj=conftest.${OBJEXT-o}
6657 am__minus_obj=
6659 none) break ;;
6660 esac
6661 if depmode=$depmode \
6662 source=sub/conftest.c object=$am__obj \
6663 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6664 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6665 >/dev/null 2>conftest.err &&
6666 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6667 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6668 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6669 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6670 # icc doesn't choke on unknown options, it will just issue warnings
6671 # or remarks (even with -Werror). So we grep stderr for any message
6672 # that says an option was ignored or not supported.
6673 # When given -MP, icc 7.0 and 7.1 complain thusly:
6674 # icc: Command line warning: ignoring option '-M'; no argument required
6675 # The diagnosis changed in icc 8.0:
6676 # icc: Command line remark: option '-MP' not supported
6677 if (grep 'ignoring option' conftest.err ||
6678 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6679 am_cv_CXX_dependencies_compiler_type=$depmode
6680 break
6683 done
6685 cd ..
6686 rm -rf conftest.dir
6687 else
6688 am_cv_CXX_dependencies_compiler_type=none
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6693 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6694 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6697 test "x$enable_dependency_tracking" != xno \
6698 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6699 am__fastdepCXX_TRUE=
6700 am__fastdepCXX_FALSE='#'
6701 else
6702 am__fastdepCXX_TRUE='#'
6703 am__fastdepCXX_FALSE=
6707 for ac_prog in 'bison -y' byacc
6709 # Extract the first word of "$ac_prog", so it can be a program name with args.
6710 set dummy $ac_prog; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_YACC+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 if test -n "$YACC"; then
6717 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_YACC="$ac_prog"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 break 2
6730 done
6731 done
6732 IFS=$as_save_IFS
6736 YACC=$ac_cv_prog_YACC
6737 if test -n "$YACC"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6739 $as_echo "$YACC" >&6; }
6740 else
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6746 test -n "$YACC" && break
6747 done
6748 test -n "$YACC" || YACC="yacc"
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_RANLIB+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$RANLIB"; then
6759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6778 RANLIB=$ac_cv_prog_RANLIB
6779 if test -n "$RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6781 $as_echo "$RANLIB" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6789 if test -z "$ac_cv_prog_RANLIB"; then
6790 ac_ct_RANLIB=$RANLIB
6791 # Extract the first word of "ranlib", so it can be a program name with args.
6792 set dummy ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$ac_ct_RANLIB"; then
6799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_ac_ct_RANLIB="ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6812 done
6813 done
6814 IFS=$as_save_IFS
6818 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6819 if test -n "$ac_ct_RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6821 $as_echo "$ac_ct_RANLIB" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6827 if test "x$ac_ct_RANLIB" = x; then
6828 RANLIB=":"
6829 else
6830 case $cross_compiling:$ac_tool_warned in
6831 yes:)
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned=yes ;;
6835 esac
6836 RANLIB=$ac_ct_RANLIB
6838 else
6839 RANLIB="$ac_cv_prog_RANLIB"
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6844 $as_echo_n "checking whether ln -s works... " >&6; }
6845 LN_S=$as_ln_s
6846 if test "$LN_S" = "ln -s"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6848 $as_echo "yes" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6851 $as_echo "no, using $LN_S" >&6; }
6856 MKINSTALLDIRS=
6857 if test -n "$ac_aux_dir"; then
6858 case "$ac_aux_dir" in
6859 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6860 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6861 esac
6863 if test -z "$MKINSTALLDIRS"; then
6864 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6870 $as_echo_n "checking whether NLS is requested... " >&6; }
6871 # Check whether --enable-nls was given.
6872 if test "${enable_nls+set}" = set; then :
6873 enableval=$enable_nls; USE_NLS=$enableval
6874 else
6875 USE_NLS=yes
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6879 $as_echo "$USE_NLS" >&6; }
6886 # Prepare PATH_SEPARATOR.
6887 # The user is always right.
6888 if test "${PATH_SEPARATOR+set}" != set; then
6889 echo "#! /bin/sh" >conf$$.sh
6890 echo "exit 0" >>conf$$.sh
6891 chmod +x conf$$.sh
6892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6893 PATH_SEPARATOR=';'
6894 else
6895 PATH_SEPARATOR=:
6897 rm -f conf$$.sh
6900 # Find out how to test for executable files. Don't use a zero-byte file,
6901 # as systems may use methods other than mode bits to determine executability.
6902 cat >conf$$.file <<_ASEOF
6903 #! /bin/sh
6904 exit 0
6905 _ASEOF
6906 chmod +x conf$$.file
6907 if test -x conf$$.file >/dev/null 2>&1; then
6908 ac_executable_p="test -x"
6909 else
6910 ac_executable_p="test -f"
6912 rm -f conf$$.file
6914 # Extract the first word of "msgfmt", so it can be a program name with args.
6915 set dummy msgfmt; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_path_MSGFMT+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 case "$MSGFMT" in
6922 [\\/]* | ?:[\\/]*)
6923 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6926 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6927 for ac_dir in $PATH; do
6928 IFS="$ac_save_IFS"
6929 test -z "$ac_dir" && ac_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6932 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6933 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6934 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6935 break 2
6938 done
6939 done
6940 IFS="$ac_save_IFS"
6941 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6943 esac
6945 MSGFMT="$ac_cv_path_MSGFMT"
6946 if test "$MSGFMT" != ":"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6948 $as_echo "$MSGFMT" >&6; }
6949 else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6954 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6955 set dummy gmsgfmt; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_path_GMSGFMT+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 case $GMSGFMT in
6962 [\\/]* | ?:[\\/]*)
6963 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6981 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6983 esac
6985 GMSGFMT=$ac_cv_path_GMSGFMT
6986 if test -n "$GMSGFMT"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6988 $as_echo "$GMSGFMT" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6997 # Prepare PATH_SEPARATOR.
6998 # The user is always right.
6999 if test "${PATH_SEPARATOR+set}" != set; then
7000 echo "#! /bin/sh" >conf$$.sh
7001 echo "exit 0" >>conf$$.sh
7002 chmod +x conf$$.sh
7003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7004 PATH_SEPARATOR=';'
7005 else
7006 PATH_SEPARATOR=:
7008 rm -f conf$$.sh
7011 # Find out how to test for executable files. Don't use a zero-byte file,
7012 # as systems may use methods other than mode bits to determine executability.
7013 cat >conf$$.file <<_ASEOF
7014 #! /bin/sh
7015 exit 0
7016 _ASEOF
7017 chmod +x conf$$.file
7018 if test -x conf$$.file >/dev/null 2>&1; then
7019 ac_executable_p="test -x"
7020 else
7021 ac_executable_p="test -f"
7023 rm -f conf$$.file
7025 # Extract the first word of "xgettext", so it can be a program name with args.
7026 set dummy xgettext; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_path_XGETTEXT+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 case "$XGETTEXT" in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7037 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7038 for ac_dir in $PATH; do
7039 IFS="$ac_save_IFS"
7040 test -z "$ac_dir" && ac_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7043 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7044 (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
7045 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7046 break 2
7049 done
7050 done
7051 IFS="$ac_save_IFS"
7052 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7054 esac
7056 XGETTEXT="$ac_cv_path_XGETTEXT"
7057 if test "$XGETTEXT" != ":"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7059 $as_echo "$XGETTEXT" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7065 rm -f messages.po
7068 # Prepare PATH_SEPARATOR.
7069 # The user is always right.
7070 if test "${PATH_SEPARATOR+set}" != set; then
7071 echo "#! /bin/sh" >conf$$.sh
7072 echo "exit 0" >>conf$$.sh
7073 chmod +x conf$$.sh
7074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7075 PATH_SEPARATOR=';'
7076 else
7077 PATH_SEPARATOR=:
7079 rm -f conf$$.sh
7082 # Find out how to test for executable files. Don't use a zero-byte file,
7083 # as systems may use methods other than mode bits to determine executability.
7084 cat >conf$$.file <<_ASEOF
7085 #! /bin/sh
7086 exit 0
7087 _ASEOF
7088 chmod +x conf$$.file
7089 if test -x conf$$.file >/dev/null 2>&1; then
7090 ac_executable_p="test -x"
7091 else
7092 ac_executable_p="test -f"
7094 rm -f conf$$.file
7096 # Extract the first word of "msgmerge", so it can be a program name with args.
7097 set dummy msgmerge; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_path_MSGMERGE+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 case "$MSGMERGE" in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7108 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7109 for ac_dir in $PATH; do
7110 IFS="$ac_save_IFS"
7111 test -z "$ac_dir" && ac_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7114 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7115 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7116 break 2
7119 done
7120 done
7121 IFS="$ac_save_IFS"
7122 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7124 esac
7126 MSGMERGE="$ac_cv_path_MSGMERGE"
7127 if test "$MSGMERGE" != ":"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7129 $as_echo "$MSGMERGE" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7136 if test "$GMSGFMT" != ":"; then
7137 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7138 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7140 else
7141 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7143 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7144 GMSGFMT=":"
7148 if test "$XGETTEXT" != ":"; then
7149 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7150 (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
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7154 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7155 XGETTEXT=":"
7157 rm -f messages.po
7160 ac_config_commands="$ac_config_commands default-1"
7164 if test "X$prefix" = "XNONE"; then
7165 acl_final_prefix="$ac_default_prefix"
7166 else
7167 acl_final_prefix="$prefix"
7169 if test "X$exec_prefix" = "XNONE"; then
7170 acl_final_exec_prefix='${prefix}'
7171 else
7172 acl_final_exec_prefix="$exec_prefix"
7174 acl_save_prefix="$prefix"
7175 prefix="$acl_final_prefix"
7176 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7177 prefix="$acl_save_prefix"
7180 # Check whether --with-gnu-ld was given.
7181 if test "${with_gnu_ld+set}" = set; then :
7182 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7183 else
7184 with_gnu_ld=no
7187 # Prepare PATH_SEPARATOR.
7188 # The user is always right.
7189 if test "${PATH_SEPARATOR+set}" != set; then
7190 echo "#! /bin/sh" >conf$$.sh
7191 echo "exit 0" >>conf$$.sh
7192 chmod +x conf$$.sh
7193 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7194 PATH_SEPARATOR=';'
7195 else
7196 PATH_SEPARATOR=:
7198 rm -f conf$$.sh
7200 ac_prog=ld
7201 if test "$GCC" = yes; then
7202 # Check if gcc -print-prog-name=ld gives a path.
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7204 $as_echo_n "checking for ld used by GCC... " >&6; }
7205 case $host in
7206 *-*-mingw*)
7207 # gcc leaves a trailing carriage return which upsets mingw
7208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7211 esac
7212 case $ac_prog in
7213 # Accept absolute paths.
7214 [\\/]* | [A-Za-z]:[\\/]*)
7215 re_direlt='/[^/][^/]*/\.\./'
7216 # Canonicalize the path of ld
7217 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7219 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7220 done
7221 test -z "$LD" && LD="$ac_prog"
7224 # If it fails, then pretend we aren't using GCC.
7225 ac_prog=ld
7228 # If it is relative, then search for the first ld in PATH.
7229 with_gnu_ld=unknown
7231 esac
7232 elif test "$with_gnu_ld" = yes; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7234 $as_echo_n "checking for GNU ld... " >&6; }
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7237 $as_echo_n "checking for non-GNU ld... " >&6; }
7239 if ${acl_cv_path_LD+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -z "$LD"; then
7243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7244 for ac_dir in $PATH; do
7245 test -z "$ac_dir" && ac_dir=.
7246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7247 acl_cv_path_LD="$ac_dir/$ac_prog"
7248 # Check to see if the program is GNU ld. I'd rather use --version,
7249 # but apparently some GNU ld's only accept -v.
7250 # Break only if it was the GNU/non-GNU ld that we prefer.
7251 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
7252 test "$with_gnu_ld" != no && break
7253 else
7254 test "$with_gnu_ld" != yes && break
7257 done
7258 IFS="$ac_save_ifs"
7259 else
7260 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7264 LD="$acl_cv_path_LD"
7265 if test -n "$LD"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7267 $as_echo "$LD" >&6; }
7268 else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7272 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7275 if ${acl_cv_prog_gnu_ld+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7279 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
7280 acl_cv_prog_gnu_ld=yes
7281 else
7282 acl_cv_prog_gnu_ld=no
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7286 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7287 with_gnu_ld=$acl_cv_prog_gnu_ld
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7292 $as_echo_n "checking for shared library run path origin... " >&6; }
7293 if ${acl_cv_rpath+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7297 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7298 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7299 . ./conftest.sh
7300 rm -f ./conftest.sh
7301 acl_cv_rpath=done
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7305 $as_echo "$acl_cv_rpath" >&6; }
7306 wl="$acl_cv_wl"
7307 libext="$acl_cv_libext"
7308 shlibext="$acl_cv_shlibext"
7309 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7310 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7311 hardcode_direct="$acl_cv_hardcode_direct"
7312 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7313 # Check whether --enable-rpath was given.
7314 if test "${enable_rpath+set}" = set; then :
7315 enableval=$enable_rpath; :
7316 else
7317 enable_rpath=yes
7327 use_additional=yes
7329 acl_save_prefix="$prefix"
7330 prefix="$acl_final_prefix"
7331 acl_save_exec_prefix="$exec_prefix"
7332 exec_prefix="$acl_final_exec_prefix"
7334 eval additional_includedir=\"$includedir\"
7335 eval additional_libdir=\"$libdir\"
7337 exec_prefix="$acl_save_exec_prefix"
7338 prefix="$acl_save_prefix"
7341 # Check whether --with-libiconv-prefix was given.
7342 if test "${with_libiconv_prefix+set}" = set; then :
7343 withval=$with_libiconv_prefix;
7344 if test "X$withval" = "Xno"; then
7345 use_additional=no
7346 else
7347 if test "X$withval" = "X"; then
7349 acl_save_prefix="$prefix"
7350 prefix="$acl_final_prefix"
7351 acl_save_exec_prefix="$exec_prefix"
7352 exec_prefix="$acl_final_exec_prefix"
7354 eval additional_includedir=\"$includedir\"
7355 eval additional_libdir=\"$libdir\"
7357 exec_prefix="$acl_save_exec_prefix"
7358 prefix="$acl_save_prefix"
7360 else
7361 additional_includedir="$withval/include"
7362 additional_libdir="$withval/lib"
7369 # Check whether --with-libiconv-type was given.
7370 if test "${with_libiconv_type+set}" = set; then :
7371 withval=$with_libiconv_type; with_libiconv_type=$withval
7372 else
7373 with_libiconv_type=auto
7376 lib_type=`eval echo \$with_libiconv_type`
7378 LIBICONV=
7379 LTLIBICONV=
7380 INCICONV=
7381 rpathdirs=
7382 ltrpathdirs=
7383 names_already_handled=
7384 names_next_round='iconv '
7385 while test -n "$names_next_round"; do
7386 names_this_round="$names_next_round"
7387 names_next_round=
7388 for name in $names_this_round; do
7389 already_handled=
7390 for n in $names_already_handled; do
7391 if test "$n" = "$name"; then
7392 already_handled=yes
7393 break
7395 done
7396 if test -z "$already_handled"; then
7397 names_already_handled="$names_already_handled $name"
7398 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7399 eval value=\"\$HAVE_LIB$uppername\"
7400 if test -n "$value"; then
7401 if test "$value" = yes; then
7402 eval value=\"\$LIB$uppername\"
7403 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7404 eval value=\"\$LTLIB$uppername\"
7405 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7406 else
7409 else
7410 found_dir=
7411 found_la=
7412 found_so=
7413 found_a=
7414 if test $use_additional = yes; then
7415 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7416 found_dir="$additional_libdir"
7417 found_so="$additional_libdir/lib$name.$shlibext"
7418 if test -f "$additional_libdir/lib$name.la"; then
7419 found_la="$additional_libdir/lib$name.la"
7421 elif test x$lib_type != xshared; then
7422 if test -f "$additional_libdir/lib$name.$libext"; then
7423 found_dir="$additional_libdir"
7424 found_a="$additional_libdir/lib$name.$libext"
7425 if test -f "$additional_libdir/lib$name.la"; then
7426 found_la="$additional_libdir/lib$name.la"
7431 if test "X$found_dir" = "X"; then
7432 for x in $LDFLAGS $LTLIBICONV; do
7434 acl_save_prefix="$prefix"
7435 prefix="$acl_final_prefix"
7436 acl_save_exec_prefix="$exec_prefix"
7437 exec_prefix="$acl_final_exec_prefix"
7438 eval x=\"$x\"
7439 exec_prefix="$acl_save_exec_prefix"
7440 prefix="$acl_save_prefix"
7442 case "$x" in
7443 -L*)
7444 dir=`echo "X$x" | sed -e 's/^X-L//'`
7445 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7446 found_dir="$dir"
7447 found_so="$dir/lib$name.$shlibext"
7448 if test -f "$dir/lib$name.la"; then
7449 found_la="$dir/lib$name.la"
7451 elif test x$lib_type != xshared; then
7452 if test -f "$dir/lib$name.$libext"; then
7453 found_dir="$dir"
7454 found_a="$dir/lib$name.$libext"
7455 if test -f "$dir/lib$name.la"; then
7456 found_la="$dir/lib$name.la"
7461 esac
7462 if test "X$found_dir" != "X"; then
7463 break
7465 done
7467 if test "X$found_dir" != "X"; then
7468 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7469 if test "X$found_so" != "X"; then
7470 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7472 else
7473 haveit=
7474 for x in $ltrpathdirs; do
7475 if test "X$x" = "X$found_dir"; then
7476 haveit=yes
7477 break
7479 done
7480 if test -z "$haveit"; then
7481 ltrpathdirs="$ltrpathdirs $found_dir"
7483 if test "$hardcode_direct" = yes; then
7484 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7485 else
7486 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7488 haveit=
7489 for x in $rpathdirs; do
7490 if test "X$x" = "X$found_dir"; then
7491 haveit=yes
7492 break
7494 done
7495 if test -z "$haveit"; then
7496 rpathdirs="$rpathdirs $found_dir"
7498 else
7499 haveit=
7500 for x in $LDFLAGS $LIBICONV; do
7502 acl_save_prefix="$prefix"
7503 prefix="$acl_final_prefix"
7504 acl_save_exec_prefix="$exec_prefix"
7505 exec_prefix="$acl_final_exec_prefix"
7506 eval x=\"$x\"
7507 exec_prefix="$acl_save_exec_prefix"
7508 prefix="$acl_save_prefix"
7510 if test "X$x" = "X-L$found_dir"; then
7511 haveit=yes
7512 break
7514 done
7515 if test -z "$haveit"; then
7516 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7518 if test "$hardcode_minus_L" != no; then
7519 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7520 else
7521 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7526 else
7527 if test "X$found_a" != "X"; then
7528 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7529 else
7530 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7533 additional_includedir=
7534 case "$found_dir" in
7535 */lib | */lib/)
7536 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7537 additional_includedir="$basedir/include"
7539 esac
7540 if test "X$additional_includedir" != "X"; then
7541 if test "X$additional_includedir" != "X/usr/include"; then
7542 haveit=
7543 if test "X$additional_includedir" = "X/usr/local/include"; then
7544 if test -n "$GCC"; then
7545 case $host_os in
7546 linux*) haveit=yes;;
7547 esac
7550 if test -z "$haveit"; then
7551 for x in $CPPFLAGS $INCICONV; do
7553 acl_save_prefix="$prefix"
7554 prefix="$acl_final_prefix"
7555 acl_save_exec_prefix="$exec_prefix"
7556 exec_prefix="$acl_final_exec_prefix"
7557 eval x=\"$x\"
7558 exec_prefix="$acl_save_exec_prefix"
7559 prefix="$acl_save_prefix"
7561 if test "X$x" = "X-I$additional_includedir"; then
7562 haveit=yes
7563 break
7565 done
7566 if test -z "$haveit"; then
7567 if test -d "$additional_includedir"; then
7568 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7574 if test -n "$found_la"; then
7575 save_libdir="$libdir"
7576 case "$found_la" in
7577 */* | *\\*) . "$found_la" ;;
7578 *) . "./$found_la" ;;
7579 esac
7580 libdir="$save_libdir"
7581 for dep in $dependency_libs; do
7582 case "$dep" in
7583 -L*)
7584 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7585 if test "X$additional_libdir" != "X/usr/lib"; then
7586 haveit=
7587 if test "X$additional_libdir" = "X/usr/local/lib"; then
7588 if test -n "$GCC"; then
7589 case $host_os in
7590 linux*) haveit=yes;;
7591 esac
7594 if test -z "$haveit"; then
7595 haveit=
7596 for x in $LDFLAGS $LIBICONV; do
7598 acl_save_prefix="$prefix"
7599 prefix="$acl_final_prefix"
7600 acl_save_exec_prefix="$exec_prefix"
7601 exec_prefix="$acl_final_exec_prefix"
7602 eval x=\"$x\"
7603 exec_prefix="$acl_save_exec_prefix"
7604 prefix="$acl_save_prefix"
7606 if test "X$x" = "X-L$additional_libdir"; then
7607 haveit=yes
7608 break
7610 done
7611 if test -z "$haveit"; then
7612 if test -d "$additional_libdir"; then
7613 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7616 haveit=
7617 for x in $LDFLAGS $LTLIBICONV; do
7619 acl_save_prefix="$prefix"
7620 prefix="$acl_final_prefix"
7621 acl_save_exec_prefix="$exec_prefix"
7622 exec_prefix="$acl_final_exec_prefix"
7623 eval x=\"$x\"
7624 exec_prefix="$acl_save_exec_prefix"
7625 prefix="$acl_save_prefix"
7627 if test "X$x" = "X-L$additional_libdir"; then
7628 haveit=yes
7629 break
7631 done
7632 if test -z "$haveit"; then
7633 if test -d "$additional_libdir"; then
7634 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7640 -R*)
7641 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7642 if test "$enable_rpath" != no; then
7643 haveit=
7644 for x in $rpathdirs; do
7645 if test "X$x" = "X$dir"; then
7646 haveit=yes
7647 break
7649 done
7650 if test -z "$haveit"; then
7651 rpathdirs="$rpathdirs $dir"
7653 haveit=
7654 for x in $ltrpathdirs; do
7655 if test "X$x" = "X$dir"; then
7656 haveit=yes
7657 break
7659 done
7660 if test -z "$haveit"; then
7661 ltrpathdirs="$ltrpathdirs $dir"
7665 -l*)
7666 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7668 *.la)
7669 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7672 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7675 esac
7676 done
7678 else
7679 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7680 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7682 else
7683 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7684 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7689 done
7690 done
7691 if test "X$rpathdirs" != "X"; then
7692 if test -n "$hardcode_libdir_separator"; then
7693 alldirs=
7694 for found_dir in $rpathdirs; do
7695 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7696 done
7697 acl_save_libdir="$libdir"
7698 libdir="$alldirs"
7699 eval flag=\"$hardcode_libdir_flag_spec\"
7700 libdir="$acl_save_libdir"
7701 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7702 else
7703 for found_dir in $rpathdirs; do
7704 acl_save_libdir="$libdir"
7705 libdir="$found_dir"
7706 eval flag=\"$hardcode_libdir_flag_spec\"
7707 libdir="$acl_save_libdir"
7708 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7709 done
7712 if test "X$ltrpathdirs" != "X"; then
7713 for found_dir in $ltrpathdirs; do
7714 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7715 done
7722 if test -f ../gettext/uninstalled-config.sh; then
7723 relative_builddir='$(top_builddir)/../gettext'
7724 . ../gettext/uninstalled-config.sh
7725 else
7726 # The sister gettext directory doesn't exist and won't collect information on
7727 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7752 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7753 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 gt_save_LIBS="$LIBS"
7757 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 #include <CoreFoundation/CFPreferences.h>
7762 main ()
7764 CFPreferencesCopyAppValue(NULL, NULL)
7766 return 0;
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"; then :
7770 gt_cv_func_CFPreferencesCopyAppValue=yes
7771 else
7772 gt_cv_func_CFPreferencesCopyAppValue=no
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776 LIBS="$gt_save_LIBS"
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7779 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7780 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7782 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7786 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7787 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 gt_save_LIBS="$LIBS"
7791 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7794 #include <CoreFoundation/CFLocale.h>
7796 main ()
7798 CFLocaleCopyPreferredLanguages();
7800 return 0;
7802 _ACEOF
7803 if ac_fn_c_try_link "$LINENO"; then :
7804 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7805 else
7806 gt_cv_func_CFLocaleCopyPreferredLanguages=no
7808 rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810 LIBS="$gt_save_LIBS"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7813 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7814 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7816 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7819 INTL_MACOSX_LIBS=
7820 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7821 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7822 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7830 LIBINTL=
7831 LTLIBINTL=
7832 POSUB=
7834 case " $gt_needs " in
7835 *" need-formatstring-macros "*) gt_api_version=3 ;;
7836 *" need-ngettext "*) gt_api_version=2 ;;
7837 *) gt_api_version=1 ;;
7838 esac
7839 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7840 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7842 if test "$USE_NLS" = "yes"; then
7843 gt_use_preinstalled_gnugettext=no
7846 if test $gt_api_version -ge 3; then
7847 gt_revision_test_code='
7848 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7849 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7850 #endif
7851 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7853 else
7854 gt_revision_test_code=
7856 if test $gt_api_version -ge 2; then
7857 gt_expression_test_code=' + * ngettext ("", "", 0)'
7858 else
7859 gt_expression_test_code=
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7863 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7864 if eval \${$gt_func_gnugettext_libc+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7870 #include <libintl.h>
7871 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7872 extern int _nl_msg_cat_cntr;
7873 extern int *_nl_domain_bindings;
7874 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7875 #else
7876 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7877 #endif
7878 $gt_revision_test_code
7881 main ()
7884 bindtextdomain ("", "");
7885 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7888 return 0;
7890 _ACEOF
7891 if ac_fn_c_try_link "$LINENO"; then :
7892 eval "$gt_func_gnugettext_libc=yes"
7893 else
7894 eval "$gt_func_gnugettext_libc=no"
7896 rm -f core conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7899 eval ac_res=\$$gt_func_gnugettext_libc
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7901 $as_echo "$ac_res" >&6; }
7903 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7909 am_save_CPPFLAGS="$CPPFLAGS"
7911 for element in $INCICONV; do
7912 haveit=
7913 for x in $CPPFLAGS; do
7915 acl_save_prefix="$prefix"
7916 prefix="$acl_final_prefix"
7917 acl_save_exec_prefix="$exec_prefix"
7918 exec_prefix="$acl_final_exec_prefix"
7919 eval x=\"$x\"
7920 exec_prefix="$acl_save_exec_prefix"
7921 prefix="$acl_save_prefix"
7923 if test "X$x" = "X$element"; then
7924 haveit=yes
7925 break
7927 done
7928 if test -z "$haveit"; then
7929 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7931 done
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7935 $as_echo_n "checking for iconv... " >&6; }
7936 if ${am_cv_func_iconv+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7940 am_cv_func_iconv="no, consider installing GNU libiconv"
7941 am_cv_lib_iconv=no
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7945 #include <stdlib.h>
7946 #include <iconv.h>
7949 main ()
7951 iconv_t cd = iconv_open("","");
7952 iconv(cd,NULL,NULL,NULL,NULL);
7953 iconv_close(cd);
7955 return 0;
7957 _ACEOF
7958 if ac_fn_c_try_link "$LINENO"; then :
7959 am_cv_func_iconv=yes
7961 rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
7963 if test "$am_cv_func_iconv" != yes; then
7964 am_save_LIBS="$LIBS"
7965 LIBS="$LIBS $LIBICONV"
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7969 #include <stdlib.h>
7970 #include <iconv.h>
7973 main ()
7975 iconv_t cd = iconv_open("","");
7976 iconv(cd,NULL,NULL,NULL,NULL);
7977 iconv_close(cd);
7979 return 0;
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983 am_cv_lib_iconv=yes
7984 am_cv_func_iconv=yes
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 LIBS="$am_save_LIBS"
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7993 $as_echo "$am_cv_func_iconv" >&6; }
7994 if test "$am_cv_func_iconv" = yes; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7996 $as_echo_n "checking for working iconv... " >&6; }
7997 if ${am_cv_func_iconv_works+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8001 am_save_LIBS="$LIBS"
8002 if test $am_cv_lib_iconv = yes; then
8003 LIBS="$LIBS $LIBICONV"
8005 am_cv_func_iconv_works=no
8006 for ac_iconv_const in '' 'const'; do
8007 if test "$cross_compiling" = yes; then :
8008 case "$host_os" in
8009 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8010 *) am_cv_func_iconv_works="guessing yes" ;;
8011 esac
8012 else
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8016 #include <iconv.h>
8017 #include <string.h>
8019 #ifndef ICONV_CONST
8020 # define ICONV_CONST $ac_iconv_const
8021 #endif
8024 main ()
8026 int result = 0;
8027 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8028 successful returns. This is even documented in
8029 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8031 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8032 if (cd_utf8_to_88591 != (iconv_t)(-1))
8034 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8035 char buf[10];
8036 ICONV_CONST char *inptr = input;
8037 size_t inbytesleft = strlen (input);
8038 char *outptr = buf;
8039 size_t outbytesleft = sizeof (buf);
8040 size_t res = iconv (cd_utf8_to_88591,
8041 &inptr, &inbytesleft,
8042 &outptr, &outbytesleft);
8043 if (res == 0)
8044 result |= 1;
8045 iconv_close (cd_utf8_to_88591);
8048 /* Test against Solaris 10 bug: Failures are not distinguishable from
8049 successful returns. */
8051 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8052 if (cd_ascii_to_88591 != (iconv_t)(-1))
8054 static ICONV_CONST char input[] = "\263";
8055 char buf[10];
8056 ICONV_CONST char *inptr = input;
8057 size_t inbytesleft = strlen (input);
8058 char *outptr = buf;
8059 size_t outbytesleft = sizeof (buf);
8060 size_t res = iconv (cd_ascii_to_88591,
8061 &inptr, &inbytesleft,
8062 &outptr, &outbytesleft);
8063 if (res == 0)
8064 result |= 2;
8065 iconv_close (cd_ascii_to_88591);
8068 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8070 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8071 if (cd_88591_to_utf8 != (iconv_t)(-1))
8073 static ICONV_CONST char input[] = "\304";
8074 static char buf[2] = { (char)0xDE, (char)0xAD };
8075 ICONV_CONST char *inptr = input;
8076 size_t inbytesleft = 1;
8077 char *outptr = buf;
8078 size_t outbytesleft = 1;
8079 size_t res = iconv (cd_88591_to_utf8,
8080 &inptr, &inbytesleft,
8081 &outptr, &outbytesleft);
8082 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8083 result |= 4;
8084 iconv_close (cd_88591_to_utf8);
8087 #if 0 /* This bug could be worked around by the caller. */
8088 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8090 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8091 if (cd_88591_to_utf8 != (iconv_t)(-1))
8093 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8094 char buf[50];
8095 ICONV_CONST char *inptr = input;
8096 size_t inbytesleft = strlen (input);
8097 char *outptr = buf;
8098 size_t outbytesleft = sizeof (buf);
8099 size_t res = iconv (cd_88591_to_utf8,
8100 &inptr, &inbytesleft,
8101 &outptr, &outbytesleft);
8102 if ((int)res > 0)
8103 result |= 8;
8104 iconv_close (cd_88591_to_utf8);
8107 #endif
8108 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8109 provided. */
8111 /* Try standardized names. */
8112 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8113 /* Try IRIX, OSF/1 names. */
8114 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8115 /* Try AIX names. */
8116 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8117 /* Try HP-UX names. */
8118 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8119 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8120 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8121 result |= 16;
8122 if (cd1 != (iconv_t)(-1))
8123 iconv_close (cd1);
8124 if (cd2 != (iconv_t)(-1))
8125 iconv_close (cd2);
8126 if (cd3 != (iconv_t)(-1))
8127 iconv_close (cd3);
8128 if (cd4 != (iconv_t)(-1))
8129 iconv_close (cd4);
8131 return result;
8134 return 0;
8136 _ACEOF
8137 if ac_fn_c_try_run "$LINENO"; then :
8138 am_cv_func_iconv_works=yes
8140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8141 conftest.$ac_objext conftest.beam conftest.$ac_ext
8144 test "$am_cv_func_iconv_works" = no || break
8145 done
8146 LIBS="$am_save_LIBS"
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8150 $as_echo "$am_cv_func_iconv_works" >&6; }
8151 case "$am_cv_func_iconv_works" in
8152 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8153 *) am_func_iconv=yes ;;
8154 esac
8155 else
8156 am_func_iconv=no am_cv_lib_iconv=no
8158 if test "$am_func_iconv" = yes; then
8160 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8163 if test "$am_cv_lib_iconv" = yes; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8165 $as_echo_n "checking how to link with libiconv... " >&6; }
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8167 $as_echo "$LIBICONV" >&6; }
8168 else
8169 CPPFLAGS="$am_save_CPPFLAGS"
8170 LIBICONV=
8171 LTLIBICONV=
8179 use_additional=yes
8181 acl_save_prefix="$prefix"
8182 prefix="$acl_final_prefix"
8183 acl_save_exec_prefix="$exec_prefix"
8184 exec_prefix="$acl_final_exec_prefix"
8186 eval additional_includedir=\"$includedir\"
8187 eval additional_libdir=\"$libdir\"
8189 exec_prefix="$acl_save_exec_prefix"
8190 prefix="$acl_save_prefix"
8193 # Check whether --with-libintl-prefix was given.
8194 if test "${with_libintl_prefix+set}" = set; then :
8195 withval=$with_libintl_prefix;
8196 if test "X$withval" = "Xno"; then
8197 use_additional=no
8198 else
8199 if test "X$withval" = "X"; then
8201 acl_save_prefix="$prefix"
8202 prefix="$acl_final_prefix"
8203 acl_save_exec_prefix="$exec_prefix"
8204 exec_prefix="$acl_final_exec_prefix"
8206 eval additional_includedir=\"$includedir\"
8207 eval additional_libdir=\"$libdir\"
8209 exec_prefix="$acl_save_exec_prefix"
8210 prefix="$acl_save_prefix"
8212 else
8213 additional_includedir="$withval/include"
8214 additional_libdir="$withval/lib"
8221 # Check whether --with-libintl-type was given.
8222 if test "${with_libintl_type+set}" = set; then :
8223 withval=$with_libintl_type; with_libintl_type=$withval
8224 else
8225 with_libintl_type=auto
8228 lib_type=`eval echo \$with_libintl_type`
8230 LIBINTL=
8231 LTLIBINTL=
8232 INCINTL=
8233 rpathdirs=
8234 ltrpathdirs=
8235 names_already_handled=
8236 names_next_round='intl '
8237 while test -n "$names_next_round"; do
8238 names_this_round="$names_next_round"
8239 names_next_round=
8240 for name in $names_this_round; do
8241 already_handled=
8242 for n in $names_already_handled; do
8243 if test "$n" = "$name"; then
8244 already_handled=yes
8245 break
8247 done
8248 if test -z "$already_handled"; then
8249 names_already_handled="$names_already_handled $name"
8250 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8251 eval value=\"\$HAVE_LIB$uppername\"
8252 if test -n "$value"; then
8253 if test "$value" = yes; then
8254 eval value=\"\$LIB$uppername\"
8255 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8256 eval value=\"\$LTLIB$uppername\"
8257 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8258 else
8261 else
8262 found_dir=
8263 found_la=
8264 found_so=
8265 found_a=
8266 if test $use_additional = yes; then
8267 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8268 found_dir="$additional_libdir"
8269 found_so="$additional_libdir/lib$name.$shlibext"
8270 if test -f "$additional_libdir/lib$name.la"; then
8271 found_la="$additional_libdir/lib$name.la"
8273 elif test x$lib_type != xshared; then
8274 if test -f "$additional_libdir/lib$name.$libext"; then
8275 found_dir="$additional_libdir"
8276 found_a="$additional_libdir/lib$name.$libext"
8277 if test -f "$additional_libdir/lib$name.la"; then
8278 found_la="$additional_libdir/lib$name.la"
8283 if test "X$found_dir" = "X"; then
8284 for x in $LDFLAGS $LTLIBINTL; do
8286 acl_save_prefix="$prefix"
8287 prefix="$acl_final_prefix"
8288 acl_save_exec_prefix="$exec_prefix"
8289 exec_prefix="$acl_final_exec_prefix"
8290 eval x=\"$x\"
8291 exec_prefix="$acl_save_exec_prefix"
8292 prefix="$acl_save_prefix"
8294 case "$x" in
8295 -L*)
8296 dir=`echo "X$x" | sed -e 's/^X-L//'`
8297 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8298 found_dir="$dir"
8299 found_so="$dir/lib$name.$shlibext"
8300 if test -f "$dir/lib$name.la"; then
8301 found_la="$dir/lib$name.la"
8303 elif test x$lib_type != xshared; then
8304 if test -f "$dir/lib$name.$libext"; then
8305 found_dir="$dir"
8306 found_a="$dir/lib$name.$libext"
8307 if test -f "$dir/lib$name.la"; then
8308 found_la="$dir/lib$name.la"
8313 esac
8314 if test "X$found_dir" != "X"; then
8315 break
8317 done
8319 if test "X$found_dir" != "X"; then
8320 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8321 if test "X$found_so" != "X"; then
8322 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8323 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8324 else
8325 haveit=
8326 for x in $ltrpathdirs; do
8327 if test "X$x" = "X$found_dir"; then
8328 haveit=yes
8329 break
8331 done
8332 if test -z "$haveit"; then
8333 ltrpathdirs="$ltrpathdirs $found_dir"
8335 if test "$hardcode_direct" = yes; then
8336 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8337 else
8338 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8339 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8340 haveit=
8341 for x in $rpathdirs; do
8342 if test "X$x" = "X$found_dir"; then
8343 haveit=yes
8344 break
8346 done
8347 if test -z "$haveit"; then
8348 rpathdirs="$rpathdirs $found_dir"
8350 else
8351 haveit=
8352 for x in $LDFLAGS $LIBINTL; do
8354 acl_save_prefix="$prefix"
8355 prefix="$acl_final_prefix"
8356 acl_save_exec_prefix="$exec_prefix"
8357 exec_prefix="$acl_final_exec_prefix"
8358 eval x=\"$x\"
8359 exec_prefix="$acl_save_exec_prefix"
8360 prefix="$acl_save_prefix"
8362 if test "X$x" = "X-L$found_dir"; then
8363 haveit=yes
8364 break
8366 done
8367 if test -z "$haveit"; then
8368 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8370 if test "$hardcode_minus_L" != no; then
8371 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8372 else
8373 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8378 else
8379 if test "X$found_a" != "X"; then
8380 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8381 else
8382 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8385 additional_includedir=
8386 case "$found_dir" in
8387 */lib | */lib/)
8388 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8389 additional_includedir="$basedir/include"
8391 esac
8392 if test "X$additional_includedir" != "X"; then
8393 if test "X$additional_includedir" != "X/usr/include"; then
8394 haveit=
8395 if test "X$additional_includedir" = "X/usr/local/include"; then
8396 if test -n "$GCC"; then
8397 case $host_os in
8398 linux*) haveit=yes;;
8399 esac
8402 if test -z "$haveit"; then
8403 for x in $CPPFLAGS $INCINTL; do
8405 acl_save_prefix="$prefix"
8406 prefix="$acl_final_prefix"
8407 acl_save_exec_prefix="$exec_prefix"
8408 exec_prefix="$acl_final_exec_prefix"
8409 eval x=\"$x\"
8410 exec_prefix="$acl_save_exec_prefix"
8411 prefix="$acl_save_prefix"
8413 if test "X$x" = "X-I$additional_includedir"; then
8414 haveit=yes
8415 break
8417 done
8418 if test -z "$haveit"; then
8419 if test -d "$additional_includedir"; then
8420 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8426 if test -n "$found_la"; then
8427 save_libdir="$libdir"
8428 case "$found_la" in
8429 */* | *\\*) . "$found_la" ;;
8430 *) . "./$found_la" ;;
8431 esac
8432 libdir="$save_libdir"
8433 for dep in $dependency_libs; do
8434 case "$dep" in
8435 -L*)
8436 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8437 if test "X$additional_libdir" != "X/usr/lib"; then
8438 haveit=
8439 if test "X$additional_libdir" = "X/usr/local/lib"; then
8440 if test -n "$GCC"; then
8441 case $host_os in
8442 linux*) haveit=yes;;
8443 esac
8446 if test -z "$haveit"; then
8447 haveit=
8448 for x in $LDFLAGS $LIBINTL; do
8450 acl_save_prefix="$prefix"
8451 prefix="$acl_final_prefix"
8452 acl_save_exec_prefix="$exec_prefix"
8453 exec_prefix="$acl_final_exec_prefix"
8454 eval x=\"$x\"
8455 exec_prefix="$acl_save_exec_prefix"
8456 prefix="$acl_save_prefix"
8458 if test "X$x" = "X-L$additional_libdir"; then
8459 haveit=yes
8460 break
8462 done
8463 if test -z "$haveit"; then
8464 if test -d "$additional_libdir"; then
8465 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8468 haveit=
8469 for x in $LDFLAGS $LTLIBINTL; do
8471 acl_save_prefix="$prefix"
8472 prefix="$acl_final_prefix"
8473 acl_save_exec_prefix="$exec_prefix"
8474 exec_prefix="$acl_final_exec_prefix"
8475 eval x=\"$x\"
8476 exec_prefix="$acl_save_exec_prefix"
8477 prefix="$acl_save_prefix"
8479 if test "X$x" = "X-L$additional_libdir"; then
8480 haveit=yes
8481 break
8483 done
8484 if test -z "$haveit"; then
8485 if test -d "$additional_libdir"; then
8486 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8492 -R*)
8493 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8494 if test "$enable_rpath" != no; then
8495 haveit=
8496 for x in $rpathdirs; do
8497 if test "X$x" = "X$dir"; then
8498 haveit=yes
8499 break
8501 done
8502 if test -z "$haveit"; then
8503 rpathdirs="$rpathdirs $dir"
8505 haveit=
8506 for x in $ltrpathdirs; do
8507 if test "X$x" = "X$dir"; then
8508 haveit=yes
8509 break
8511 done
8512 if test -z "$haveit"; then
8513 ltrpathdirs="$ltrpathdirs $dir"
8517 -l*)
8518 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8520 *.la)
8521 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8524 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8525 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8527 esac
8528 done
8530 else
8531 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8532 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8533 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8534 else
8535 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8536 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8541 done
8542 done
8543 if test "X$rpathdirs" != "X"; then
8544 if test -n "$hardcode_libdir_separator"; then
8545 alldirs=
8546 for found_dir in $rpathdirs; do
8547 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8548 done
8549 acl_save_libdir="$libdir"
8550 libdir="$alldirs"
8551 eval flag=\"$hardcode_libdir_flag_spec\"
8552 libdir="$acl_save_libdir"
8553 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8554 else
8555 for found_dir in $rpathdirs; do
8556 acl_save_libdir="$libdir"
8557 libdir="$found_dir"
8558 eval flag=\"$hardcode_libdir_flag_spec\"
8559 libdir="$acl_save_libdir"
8560 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8561 done
8564 if test "X$ltrpathdirs" != "X"; then
8565 for found_dir in $ltrpathdirs; do
8566 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8567 done
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8571 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8572 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 gt_save_CPPFLAGS="$CPPFLAGS"
8576 CPPFLAGS="$CPPFLAGS $INCINTL"
8577 gt_save_LIBS="$LIBS"
8578 LIBS="$LIBS $LIBINTL"
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8582 #include <libintl.h>
8583 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8584 extern int _nl_msg_cat_cntr;
8585 extern
8586 #ifdef __cplusplus
8588 #endif
8589 const char *_nl_expand_alias (const char *);
8590 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8591 #else
8592 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8593 #endif
8594 $gt_revision_test_code
8597 main ()
8600 bindtextdomain ("", "");
8601 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8604 return 0;
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"; then :
8608 eval "$gt_func_gnugettext_libintl=yes"
8609 else
8610 eval "$gt_func_gnugettext_libintl=no"
8612 rm -f core conftest.err conftest.$ac_objext \
8613 conftest$ac_exeext conftest.$ac_ext
8614 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8615 LIBS="$LIBS $LIBICONV"
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8619 #include <libintl.h>
8620 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8621 extern int _nl_msg_cat_cntr;
8622 extern
8623 #ifdef __cplusplus
8625 #endif
8626 const char *_nl_expand_alias (const char *);
8627 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8628 #else
8629 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8630 #endif
8631 $gt_revision_test_code
8634 main ()
8637 bindtextdomain ("", "");
8638 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8641 return 0;
8643 _ACEOF
8644 if ac_fn_c_try_link "$LINENO"; then :
8645 LIBINTL="$LIBINTL $LIBICONV"
8646 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8647 eval "$gt_func_gnugettext_libintl=yes"
8650 rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8653 CPPFLAGS="$gt_save_CPPFLAGS"
8654 LIBS="$gt_save_LIBS"
8656 eval ac_res=\$$gt_func_gnugettext_libintl
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8658 $as_echo "$ac_res" >&6; }
8661 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8662 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8663 && test "$PACKAGE" != gettext-runtime \
8664 && test "$PACKAGE" != gettext-tools; }; then
8665 gt_use_preinstalled_gnugettext=yes
8666 else
8667 LIBINTL=
8668 LTLIBINTL=
8669 INCINTL=
8674 if test -n "$INTL_MACOSX_LIBS"; then
8675 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8676 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8677 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8678 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8682 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8683 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8685 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8687 else
8688 USE_NLS=no
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8693 $as_echo_n "checking whether to use NLS... " >&6; }
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8695 $as_echo "$USE_NLS" >&6; }
8696 if test "$USE_NLS" = "yes"; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8698 $as_echo_n "checking where the gettext function comes from... " >&6; }
8699 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8700 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8701 gt_source="external libintl"
8702 else
8703 gt_source="libc"
8705 else
8706 gt_source="included intl directory"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8709 $as_echo "$gt_source" >&6; }
8712 if test "$USE_NLS" = "yes"; then
8714 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8715 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8717 $as_echo_n "checking how to link with libintl... " >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8719 $as_echo "$LIBINTL" >&6; }
8721 for element in $INCINTL; do
8722 haveit=
8723 for x in $CPPFLAGS; do
8725 acl_save_prefix="$prefix"
8726 prefix="$acl_final_prefix"
8727 acl_save_exec_prefix="$exec_prefix"
8728 exec_prefix="$acl_final_exec_prefix"
8729 eval x=\"$x\"
8730 exec_prefix="$acl_save_exec_prefix"
8731 prefix="$acl_save_prefix"
8733 if test "X$x" = "X$element"; then
8734 haveit=yes
8735 break
8737 done
8738 if test -z "$haveit"; then
8739 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8741 done
8746 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8749 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8753 POSUB=po
8758 INTLLIBS="$LIBINTL"
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8778 $as_echo_n "checking whether NLS is requested... " >&6; }
8779 if test x"$USE_NLS" != xyes; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8782 else
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8784 $as_echo "yes" >&6; }
8786 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8790 $as_echo_n "checking for catalogs to be installed... " >&6; }
8791 # Look for .po and .gmo files in the source directory.
8792 CATALOGS=
8793 XLINGUAS=
8794 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8795 # If there aren't any .gmo files the shell will give us the
8796 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8797 # weeded out.
8798 case "$cat" in *\**)
8799 continue;;
8800 esac
8801 # The quadruple backslash is collapsed to a double backslash
8802 # by the backticks, then collapsed again by the double quotes,
8803 # leaving us with one backslash in the sed expression (right
8804 # before the dot that mustn't act as a wildcard).
8805 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8806 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8807 # The user is allowed to set LINGUAS to a list of languages to
8808 # install catalogs for. If it's empty that means "all of them."
8809 if test "x$LINGUAS" = x; then
8810 CATALOGS="$CATALOGS $cat"
8811 XLINGUAS="$XLINGUAS $lang"
8812 else
8813 case "$LINGUAS" in *$lang*)
8814 CATALOGS="$CATALOGS $cat"
8815 XLINGUAS="$XLINGUAS $lang"
8817 esac
8819 done
8820 LINGUAS="$XLINGUAS"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8822 $as_echo "$LINGUAS" >&6; }
8825 DATADIRNAME=share
8827 INSTOBJEXT=.mo
8829 GENCAT=gencat
8831 CATOBJEXT=.gmo
8838 # Prepare PATH_SEPARATOR.
8839 # The user is always right.
8840 if test "${PATH_SEPARATOR+set}" != set; then
8841 echo "#! /bin/sh" >conf$$.sh
8842 echo "exit 0" >>conf$$.sh
8843 chmod +x conf$$.sh
8844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8845 PATH_SEPARATOR=';'
8846 else
8847 PATH_SEPARATOR=:
8849 rm -f conf$$.sh
8852 # Find out how to test for executable files. Don't use a zero-byte file,
8853 # as systems may use methods other than mode bits to determine executability.
8854 cat >conf$$.file <<_ASEOF
8855 #! /bin/sh
8856 exit 0
8857 _ASEOF
8858 chmod +x conf$$.file
8859 if test -x conf$$.file >/dev/null 2>&1; then
8860 ac_executable_p="test -x"
8861 else
8862 ac_executable_p="test -f"
8864 rm -f conf$$.file
8866 # Extract the first word of "msgfmt", so it can be a program name with args.
8867 set dummy msgfmt; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if ${ac_cv_path_MSGFMT+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 case "$MSGFMT" in
8874 [\\/]* | ?:[\\/]*)
8875 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8878 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8879 for ac_dir in $PATH; do
8880 IFS="$ac_save_IFS"
8881 test -z "$ac_dir" && ac_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8884 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8885 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8886 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8887 break 2
8890 done
8891 done
8892 IFS="$ac_save_IFS"
8893 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8895 esac
8897 MSGFMT="$ac_cv_path_MSGFMT"
8898 if test "$MSGFMT" != ":"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8900 $as_echo "$MSGFMT" >&6; }
8901 else
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8906 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8907 set dummy gmsgfmt; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_path_GMSGFMT+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 case $GMSGFMT in
8914 [\\/]* | ?:[\\/]*)
8915 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 for as_dir in $PATH
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8925 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 break 2
8929 done
8930 done
8931 IFS=$as_save_IFS
8933 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8935 esac
8937 GMSGFMT=$ac_cv_path_GMSGFMT
8938 if test -n "$GMSGFMT"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8940 $as_echo "$GMSGFMT" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8949 # Prepare PATH_SEPARATOR.
8950 # The user is always right.
8951 if test "${PATH_SEPARATOR+set}" != set; then
8952 echo "#! /bin/sh" >conf$$.sh
8953 echo "exit 0" >>conf$$.sh
8954 chmod +x conf$$.sh
8955 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8956 PATH_SEPARATOR=';'
8957 else
8958 PATH_SEPARATOR=:
8960 rm -f conf$$.sh
8963 # Find out how to test for executable files. Don't use a zero-byte file,
8964 # as systems may use methods other than mode bits to determine executability.
8965 cat >conf$$.file <<_ASEOF
8966 #! /bin/sh
8967 exit 0
8968 _ASEOF
8969 chmod +x conf$$.file
8970 if test -x conf$$.file >/dev/null 2>&1; then
8971 ac_executable_p="test -x"
8972 else
8973 ac_executable_p="test -f"
8975 rm -f conf$$.file
8977 # Extract the first word of "xgettext", so it can be a program name with args.
8978 set dummy xgettext; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_path_XGETTEXT+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 case "$XGETTEXT" in
8985 [\\/]* | ?:[\\/]*)
8986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8989 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8990 for ac_dir in $PATH; do
8991 IFS="$ac_save_IFS"
8992 test -z "$ac_dir" && ac_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8995 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8996 (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
8997 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8998 break 2
9001 done
9002 done
9003 IFS="$ac_save_IFS"
9004 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9006 esac
9008 XGETTEXT="$ac_cv_path_XGETTEXT"
9009 if test "$XGETTEXT" != ":"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9011 $as_echo "$XGETTEXT" >&6; }
9012 else
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9017 rm -f messages.po
9020 # Prepare PATH_SEPARATOR.
9021 # The user is always right.
9022 if test "${PATH_SEPARATOR+set}" != set; then
9023 echo "#! /bin/sh" >conf$$.sh
9024 echo "exit 0" >>conf$$.sh
9025 chmod +x conf$$.sh
9026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9027 PATH_SEPARATOR=';'
9028 else
9029 PATH_SEPARATOR=:
9031 rm -f conf$$.sh
9034 # Find out how to test for executable files. Don't use a zero-byte file,
9035 # as systems may use methods other than mode bits to determine executability.
9036 cat >conf$$.file <<_ASEOF
9037 #! /bin/sh
9038 exit 0
9039 _ASEOF
9040 chmod +x conf$$.file
9041 if test -x conf$$.file >/dev/null 2>&1; then
9042 ac_executable_p="test -x"
9043 else
9044 ac_executable_p="test -f"
9046 rm -f conf$$.file
9048 # Extract the first word of "msgmerge", so it can be a program name with args.
9049 set dummy msgmerge; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_path_MSGMERGE+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 case "$MSGMERGE" in
9056 [\\/]* | ?:[\\/]*)
9057 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9060 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9061 for ac_dir in $PATH; do
9062 IFS="$ac_save_IFS"
9063 test -z "$ac_dir" && ac_dir=.
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9066 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
9067 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9068 break 2
9071 done
9072 done
9073 IFS="$ac_save_IFS"
9074 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9076 esac
9078 MSGMERGE="$ac_cv_path_MSGMERGE"
9079 if test "$MSGMERGE" != ":"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9081 $as_echo "$MSGMERGE" >&6; }
9082 else
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9088 if test "$GMSGFMT" != ":"; then
9089 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
9090 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9092 else
9093 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9095 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
9096 GMSGFMT=":"
9100 if test "$XGETTEXT" != ":"; then
9101 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
9102 (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
9104 else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
9106 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
9107 XGETTEXT=":"
9109 rm -f messages.po
9112 ac_config_commands="$ac_config_commands default-2"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9117 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9118 if ${ac_cv_c_bigendian+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 ac_cv_c_bigendian=unknown
9122 # See if we're dealing with a universal compiler.
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #ifndef __APPLE_CC__
9126 not a universal capable compiler
9127 #endif
9128 typedef int dummy;
9130 _ACEOF
9131 if ac_fn_c_try_compile "$LINENO"; then :
9133 # Check for potential -arch flags. It is not universal unless
9134 # there are at least two -arch flags with different values.
9135 ac_arch=
9136 ac_prev=
9137 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9138 if test -n "$ac_prev"; then
9139 case $ac_word in
9140 i?86 | x86_64 | ppc | ppc64)
9141 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9142 ac_arch=$ac_word
9143 else
9144 ac_cv_c_bigendian=universal
9145 break
9148 esac
9149 ac_prev=
9150 elif test "x$ac_word" = "x-arch"; then
9151 ac_prev=arch
9153 done
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 if test $ac_cv_c_bigendian = unknown; then
9157 # See if sys/param.h defines the BYTE_ORDER macro.
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160 #include <sys/types.h>
9161 #include <sys/param.h>
9164 main ()
9166 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9167 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9168 && LITTLE_ENDIAN)
9169 bogus endian macros
9170 #endif
9173 return 0;
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177 # It does; now see whether it defined to BIG_ENDIAN or not.
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 #include <sys/types.h>
9181 #include <sys/param.h>
9184 main ()
9186 #if BYTE_ORDER != BIG_ENDIAN
9187 not big endian
9188 #endif
9191 return 0;
9193 _ACEOF
9194 if ac_fn_c_try_compile "$LINENO"; then :
9195 ac_cv_c_bigendian=yes
9196 else
9197 ac_cv_c_bigendian=no
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203 if test $ac_cv_c_bigendian = unknown; then
9204 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <limits.h>
9210 main ()
9212 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9213 bogus endian macros
9214 #endif
9217 return 0;
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221 # It does; now see whether it defined to _BIG_ENDIAN or not.
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 #include <limits.h>
9227 main ()
9229 #ifndef _BIG_ENDIAN
9230 not big endian
9231 #endif
9234 return 0;
9236 _ACEOF
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238 ac_cv_c_bigendian=yes
9239 else
9240 ac_cv_c_bigendian=no
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246 if test $ac_cv_c_bigendian = unknown; then
9247 # Compile a test program.
9248 if test "$cross_compiling" = yes; then :
9249 # Try to guess by grepping values from an object file.
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 short int ascii_mm[] =
9253 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9254 short int ascii_ii[] =
9255 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9256 int use_ascii (int i) {
9257 return ascii_mm[i] + ascii_ii[i];
9259 short int ebcdic_ii[] =
9260 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9261 short int ebcdic_mm[] =
9262 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9263 int use_ebcdic (int i) {
9264 return ebcdic_mm[i] + ebcdic_ii[i];
9266 extern int foo;
9269 main ()
9271 return use_ascii (foo) == use_ebcdic (foo);
9273 return 0;
9275 _ACEOF
9276 if ac_fn_c_try_compile "$LINENO"; then :
9277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9278 ac_cv_c_bigendian=yes
9280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9281 if test "$ac_cv_c_bigendian" = unknown; then
9282 ac_cv_c_bigendian=no
9283 else
9284 # finding both strings is unlikely to happen, but who knows?
9285 ac_cv_c_bigendian=unknown
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 else
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293 $ac_includes_default
9295 main ()
9298 /* Are we little or big endian? From Harbison&Steele. */
9299 union
9301 long int l;
9302 char c[sizeof (long int)];
9303 } u;
9304 u.l = 1;
9305 return u.c[sizeof (long int) - 1] == 1;
9308 return 0;
9310 _ACEOF
9311 if ac_fn_c_try_run "$LINENO"; then :
9312 ac_cv_c_bigendian=no
9313 else
9314 ac_cv_c_bigendian=yes
9316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9317 conftest.$ac_objext conftest.beam conftest.$ac_ext
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9323 $as_echo "$ac_cv_c_bigendian" >&6; }
9324 case $ac_cv_c_bigendian in #(
9325 yes)
9326 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9327 ;; #(
9329 ;; #(
9330 universal)
9332 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9334 ;; #(
9336 as_fn_error $? "unknown endianness
9337 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9338 esac
9343 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
9344 NATIVE_LINKER_TRUE=
9345 NATIVE_LINKER_FALSE='#'
9346 else
9347 NATIVE_LINKER_TRUE='#'
9348 NATIVE_LINKER_FALSE=
9351 if test "$GCC" = yes; then
9352 GCC_TRUE=
9353 GCC_FALSE='#'
9354 else
9355 GCC_TRUE='#'
9356 GCC_FALSE=
9360 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
9361 NATIVE_OR_CROSS_LINKER_TRUE=
9362 NATIVE_OR_CROSS_LINKER_FALSE='#'
9363 else
9364 NATIVE_OR_CROSS_LINKER_TRUE='#'
9365 NATIVE_OR_CROSS_LINKER_FALSE=
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
9370 $as_echo_n "checking whether static linking works... " >&6; }
9371 if ${gold_cv_lib_static+:} false; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 LDFLAGS_hold=$LDFLAGS
9375 LDFLAGS="$LDFLAGS -static"
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9379 void f() { }
9381 main ()
9385 return 0;
9387 _ACEOF
9388 if ac_fn_c_try_link "$LINENO"; then :
9389 gold_cv_lib_static=yes
9390 else
9391 gold_cv_lib_static=no
9393 rm -f core conftest.err conftest.$ac_objext \
9394 conftest$ac_exeext conftest.$ac_ext
9395 LDFLAGS=$LDFLAGS_hold
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
9398 $as_echo "$gold_cv_lib_static" >&6; }
9399 if test "$gold_cv_lib_static" = "yes"; then
9400 HAVE_STATIC_TRUE=
9401 HAVE_STATIC_FALSE='#'
9402 else
9403 HAVE_STATIC_TRUE='#'
9404 HAVE_STATIC_FALSE=
9409 case $target_cpu in
9410 powerpc*) false;;
9411 x86_64) false;;
9412 sparc64) false;;
9413 s390x) false;;
9414 *) true;;
9415 esac; then
9416 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
9417 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
9418 else
9419 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
9420 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
9425 $as_echo_n "checking for gcc >= 4.1... " >&6; }
9426 if ${gold_cv_prog_gcc41+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9432 #if !defined __GNUC__
9433 error
9434 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
9435 error
9436 #endif
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 gold_cv_prog_gcc41=yes
9441 else
9442 gold_cv_prog_gcc41=no
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
9447 $as_echo "$gold_cv_prog_gcc41" >&6; }
9449 save_CFLAGS="$CFLAGS"
9450 CFLAGS="$CFLAGS -mcmodel=medium"
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453 int i;
9454 _ACEOF
9455 if ac_fn_c_try_compile "$LINENO"; then :
9456 have_mcmodel_medium=yes
9457 else
9458 have_mcmodel_medium=no
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 CFLAGS="$save_CFLAGS"
9462 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
9463 MCMODEL_MEDIUM_TRUE=
9464 MCMODEL_MEDIUM_FALSE='#'
9465 else
9466 MCMODEL_MEDIUM_TRUE='#'
9467 MCMODEL_MEDIUM_FALSE=
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
9472 $as_echo_n "checking for gcc >= 9... " >&6; }
9473 if ${gold_cv_prog_gcc9+:} false; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 #if !defined __GNUC__ || __GNUC__ < 9
9480 error
9481 #endif
9483 _ACEOF
9484 if ac_fn_c_try_compile "$LINENO"; then :
9485 gold_cv_prog_gcc9=yes
9486 else
9487 gold_cv_prog_gcc9=no
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
9492 $as_echo "$gold_cv_prog_gcc9" >&6; }
9493 if test "$gold_cv_prog_gcc9" = "yes"; then
9494 GCC9_TRUE=
9495 GCC9_FALSE='#'
9496 else
9497 GCC9_TRUE='#'
9498 GCC9_FALSE=
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
9503 $as_echo_n "checking for -fcf-protection... " >&6; }
9504 if ${gold_cv_cflags_cf_protection+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9510 #if !defined __x86_64__ || !defined __CET__
9511 error
9512 #endif
9514 _ACEOF
9515 if ac_fn_c_try_compile "$LINENO"; then :
9516 gold_cv_cflags_cf_protection=yes
9517 else
9518 gold_cv_cflags_cf_protection=no
9520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
9523 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
9524 if test "$gold_cv_cflags_cf_protection" = "yes"; then
9525 CFLAGS_CF_PROTECTION_TRUE=
9526 CFLAGS_CF_PROTECTION_FALSE='#'
9527 else
9528 CFLAGS_CF_PROTECTION_TRUE='#'
9529 CFLAGS_CF_PROTECTION_FALSE=
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
9534 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
9535 if ${gold_cv_merge_constants+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9539 save_CFLAGS="$CFLAGS"
9540 CFLAGS="$CFLAGS -fmerge-constants"
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543 const char *s = "foo";
9544 _ACEOF
9545 if ac_fn_c_try_compile "$LINENO"; then :
9546 gold_cv_merge_constants=yes
9547 else
9548 gold_cv_merge_constants=no
9550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551 CFLAGS="$save_CFLAGS"
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
9554 $as_echo "$gold_cv_merge_constants" >&6; }
9556 if test "$gold_cv_merge_constants" = yes; then :
9557 MERGE_CONSTANTS_FLAG=-fmerge-constants
9558 else
9559 MERGE_CONSTANTS_FLAG=
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
9563 $as_echo_n "checking for thread support... " >&6; }
9564 if ${gold_cv_c_thread+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9569 __thread int i = 1;
9570 _ACEOF
9571 if ac_fn_c_try_compile "$LINENO"; then :
9572 gold_cv_c_thread=yes
9573 else
9574 gold_cv_c_thread=no
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
9579 $as_echo "$gold_cv_c_thread" >&6; }
9581 if test "$gold_cv_c_thread" = "yes"; then
9582 TLS_TRUE=
9583 TLS_FALSE='#'
9584 else
9585 TLS_TRUE='#'
9586 TLS_FALSE=
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
9591 $as_echo_n "checking for glibc >= 2.4... " >&6; }
9592 if ${gold_cv_lib_glibc24+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9598 #include <features.h>
9599 #if !defined __GLIBC__
9600 error
9601 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
9602 error
9603 #endif
9605 _ACEOF
9606 if ac_fn_c_try_compile "$LINENO"; then :
9607 gold_cv_lib_glibc24=yes
9608 else
9609 gold_cv_lib_glibc24=no
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
9614 $as_echo "$gold_cv_lib_glibc24" >&6; }
9616 if test "$gold_cv_lib_glibc24" = "yes"; then
9617 STATIC_TLS_TRUE=
9618 STATIC_TLS_FALSE='#'
9619 else
9620 STATIC_TLS_TRUE='#'
9621 STATIC_TLS_FALSE=
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
9626 $as_echo_n "checking for omp support... " >&6; }
9627 if ${gold_cv_c_threadprivate+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 save_CFLAGS="$CFLAGS"
9631 CFLAGS="$CFLAGS -fopenmp"
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9635 #include <omp.h>
9636 int i;
9637 #pragma omp threadprivate (i)
9639 _ACEOF
9640 if ac_fn_c_try_compile "$LINENO"; then :
9641 gold_cv_c_threadprivate=yes
9642 else
9643 gold_cv_c_threadprivate=no
9645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646 CFLAGS="$save_CFLAGS"
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
9649 $as_echo "$gold_cv_c_threadprivate" >&6; }
9650 if test "$gold_cv_c_threadprivate" = "yes"; then
9652 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
9655 if test "$gold_cv_c_threadprivate" = "yes"; then
9656 OMP_SUPPORT_TRUE=
9657 OMP_SUPPORT_FALSE='#'
9658 else
9659 OMP_SUPPORT_TRUE='#'
9660 OMP_SUPPORT_FALSE=
9664 save_CFLAGS="$CFLAGS"
9665 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9669 __thread int i;
9670 void foo (void)
9672 i = 10;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"; then :
9677 have_tls_gnu2=yes
9678 else
9679 have_tls_gnu2=no
9681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 CFLAGS="$save_CFLAGS"
9683 if test "$have_tls_gnu2" = "yes"; then
9684 TLS_GNU2_DIALECT_TRUE=
9685 TLS_GNU2_DIALECT_FALSE='#'
9686 else
9687 TLS_GNU2_DIALECT_TRUE='#'
9688 TLS_GNU2_DIALECT_FALSE=
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
9693 $as_echo_n "checking for glibc >= 2.9... " >&6; }
9694 if ${gold_cv_lib_glibc29+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9700 #include <features.h>
9701 #if !defined __GLIBC__
9702 error
9703 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
9704 error
9705 #endif
9707 _ACEOF
9708 if ac_fn_c_try_compile "$LINENO"; then :
9709 gold_cv_lib_glibc29=yes
9710 else
9711 gold_cv_lib_glibc29=no
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
9716 $as_echo "$gold_cv_lib_glibc29" >&6; }
9718 if test "$gold_cv_lib_glibc29" = "yes"; then
9719 TLS_DESCRIPTORS_TRUE=
9720 TLS_DESCRIPTORS_FALSE='#'
9721 else
9722 TLS_DESCRIPTORS_TRUE='#'
9723 TLS_DESCRIPTORS_FALSE=
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
9728 $as_echo_n "checking for -frandom-seed support... " >&6; }
9729 if ${gold_cv_c_random_seed+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 save_CFLAGS="$CFLAGS"
9733 CFLAGS="$CFLAGS -frandom-seed=foo"
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 int i;
9737 _ACEOF
9738 if ac_fn_c_try_compile "$LINENO"; then :
9739 gold_cv_c_random_seed=yes
9740 else
9741 gold_cv_c_random_seed=no
9743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9744 CFLAGS="$save_CFLAGS"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
9747 $as_echo "$gold_cv_c_random_seed" >&6; }
9748 if test "$gold_cv_c_random_seed" = "yes"; then
9749 # In Makefile, '$@' will be expanded to be the name of the file
9750 # being built, providing a unique seed for each file.
9751 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
9756 $as_echo_n "checking for glibc ifunc support... " >&6; }
9757 if ${gold_cv_lib_glibc_ifunc+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 save_LDFLAGS="$LDFLAGS"
9761 LDFLAGS="$LDFLAGS -static"
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9765 #include <features.h>
9766 #if !defined __GLIBC__
9767 error
9768 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
9769 error
9770 #endif
9771 void func (void) { }
9772 void invoke (void);
9773 __asm__(".type invoke, %gnu_indirect_function");
9774 typedef void (*funcptr) (void);
9775 funcptr dispatch (void) __asm__ ("invoke");
9776 funcptr dispatch (void) { return &func; }
9778 main ()
9780 invoke();
9782 return 0;
9785 _ACEOF
9786 if ac_fn_c_try_link "$LINENO"; then :
9788 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
9789 gold_cv_lib_glibc_ifunc=both
9790 else
9791 gold_cv_lib_glibc_ifunc=dyn
9793 else
9794 gold_cv_lib_glibc_ifunc=no
9796 rm -f core conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LDFLAGS="$save_LDFLAGS"
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
9801 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
9803 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
9804 IFUNC_TRUE=
9805 IFUNC_FALSE='#'
9806 else
9807 IFUNC_TRUE='#'
9808 IFUNC_FALSE=
9811 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
9812 IFUNC_STATIC_TRUE=
9813 IFUNC_STATIC_FALSE='#'
9814 else
9815 IFUNC_STATIC_TRUE='#'
9816 IFUNC_STATIC_FALSE=
9821 # Set the 'development' global.
9822 . $srcdir/../bfd/development.sh
9824 # Set acp_cpp_for_build variable
9825 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
9827 # Default set of GCC warnings to enable.
9828 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9829 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9831 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 __GNUC__
9835 _ACEOF
9836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9837 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9839 else
9840 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
9842 rm -f conftest*
9845 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 __GNUC__
9849 _ACEOF
9850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9851 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9853 else
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 __clang__
9857 _ACEOF
9858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9859 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9860 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
9862 rm -f conftest*
9865 rm -f conftest*
9868 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
9869 WARN_WRITE_STRINGS=""
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 __GNUC__
9873 _ACEOF
9874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9875 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9877 else
9878 WARN_WRITE_STRINGS="-Wwrite-strings"
9880 rm -f conftest*
9883 # Verify CC_FOR_BUILD to be compatible with warning flags
9885 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 __GNUC__
9889 _ACEOF
9890 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9891 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
9893 else
9894 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
9896 rm -f conftest*
9899 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 __GNUC__
9903 _ACEOF
9904 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9905 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9907 else
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 __clang__
9911 _ACEOF
9912 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9913 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9914 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
9916 rm -f conftest*
9919 rm -f conftest*
9922 # Check whether --enable-werror was given.
9923 if test "${enable_werror+set}" = set; then :
9924 enableval=$enable_werror; case "${enableval}" in
9925 yes | y) ERROR_ON_WARNING="yes" ;;
9926 no | n) ERROR_ON_WARNING="no" ;;
9927 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9928 esac
9932 # Disable -Wformat by default when using gcc on mingw
9933 case "${host}" in
9934 *-*-mingw32*)
9935 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9936 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
9937 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
9940 *) ;;
9941 esac
9943 # Enable -Werror by default when using gcc. Turn it off for releases.
9944 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
9945 ERROR_ON_WARNING=yes
9948 NO_WERROR=
9949 if test "${ERROR_ON_WARNING}" = yes ; then
9950 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9951 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
9952 NO_WERROR="-Wno-error"
9955 if test "${GCC}" = yes ; then
9956 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9957 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
9960 # Check whether --enable-build-warnings was given.
9961 if test "${enable_build_warnings+set}" = set; then :
9962 enableval=$enable_build_warnings; case "${enableval}" in
9963 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9964 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
9965 no) if test "${GCC}" = yes ; then
9966 WARN_CFLAGS="-w"
9967 WARN_CFLAGS_FOR_BUILD="-w"
9968 fi;;
9969 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9970 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
9971 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
9972 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9973 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
9974 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
9975 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
9976 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9977 esac
9981 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9982 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9991 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
9995 # Check whether --with-gold-ldflags was given.
9996 if test "${with_gold_ldflags+set}" = set; then :
9997 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9998 GOLD_LDFLAGS=
9999 else
10000 GOLD_LDFLAGS=$withval
10002 else
10003 GOLD_LDFLAGS=
10009 # Check whether --with-gold-ldadd was given.
10010 if test "${with_gold_ldadd+set}" = set; then :
10011 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
10012 GOLD_LDADD=
10013 else
10014 GOLD_LDADD=$withval
10016 else
10017 GOLD_LDADD=
10022 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
10025 for ac_header in sys/mman.h
10026 do :
10027 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10028 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10029 cat >>confdefs.h <<_ACEOF
10030 #define HAVE_SYS_MMAN_H 1
10031 _ACEOF
10035 done
10037 for ac_func in chsize mmap link
10038 do :
10039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10040 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10041 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10042 cat >>confdefs.h <<_ACEOF
10043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10044 _ACEOF
10047 done
10049 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
10050 if test "x$ac_cv_func_pread" = xyes; then :
10051 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
10053 else
10054 case " $LIBOBJS " in
10055 *" pread.$ac_objext "* ) ;;
10056 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
10058 esac
10062 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
10063 if test "x$ac_cv_func_ftruncate" = xyes; then :
10064 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
10066 else
10067 case " $LIBOBJS " in
10068 *" ftruncate.$ac_objext "* ) ;;
10069 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
10071 esac
10075 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
10076 if test "x$ac_cv_func_ffsll" = xyes; then :
10077 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
10079 else
10080 case " $LIBOBJS " in
10081 *" ffsll.$ac_objext "* ) ;;
10082 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
10084 esac
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
10091 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
10092 if ${gold_cv_lib_mremap_maymove+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10099 #include <sys/mman.h>
10100 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
10103 main ()
10107 return 0;
10109 _ACEOF
10110 if ac_fn_c_try_link "$LINENO"; then :
10111 gold_cv_lib_mremap_maymove=yes
10112 else
10113 gold_cv_lib_mremap_maymove=no
10115 rm -f core conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
10119 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
10120 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
10122 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
10124 else
10125 case " $LIBOBJS " in
10126 *" mremap.$ac_objext "* ) ;;
10127 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
10129 esac
10133 # Link in zlib/zstd if we can. This allows us to write compressed sections.
10135 # Use the system's zlib library.
10136 zlibdir="-L\$(top_builddir)/../zlib"
10137 zlibinc="-I\$(top_srcdir)/../zlib"
10139 # Check whether --with-system-zlib was given.
10140 if test "${with_system_zlib+set}" = set; then :
10141 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
10142 zlibdir=
10143 zlibinc=
10158 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10159 if test -n "$ac_tool_prefix"; then
10160 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10161 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 case $PKG_CONFIG in
10168 [\\/]* | ?:[\\/]*)
10169 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173 for as_dir in $PATH
10175 IFS=$as_save_IFS
10176 test -z "$as_dir" && as_dir=.
10177 for ac_exec_ext in '' $ac_executable_extensions; do
10178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10179 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10181 break 2
10183 done
10184 done
10185 IFS=$as_save_IFS
10188 esac
10190 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10191 if test -n "$PKG_CONFIG"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10193 $as_echo "$PKG_CONFIG" >&6; }
10194 else
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10201 if test -z "$ac_cv_path_PKG_CONFIG"; then
10202 ac_pt_PKG_CONFIG=$PKG_CONFIG
10203 # Extract the first word of "pkg-config", so it can be a program name with args.
10204 set dummy pkg-config; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 case $ac_pt_PKG_CONFIG in
10211 [\\/]* | ?:[\\/]*)
10212 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10222 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10226 done
10227 done
10228 IFS=$as_save_IFS
10231 esac
10233 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10234 if test -n "$ac_pt_PKG_CONFIG"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10236 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10242 if test "x$ac_pt_PKG_CONFIG" = x; then
10243 PKG_CONFIG=""
10244 else
10245 case $cross_compiling:$ac_tool_warned in
10246 yes:)
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10249 ac_tool_warned=yes ;;
10250 esac
10251 PKG_CONFIG=$ac_pt_PKG_CONFIG
10253 else
10254 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10258 if test -n "$PKG_CONFIG"; then
10259 _pkg_min_version=0.9.0
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10261 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10262 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10264 $as_echo "yes" >&6; }
10265 else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10268 PKG_CONFIG=""
10273 # Check whether --with-zstd was given.
10274 if test "${with_zstd+set}" = set; then :
10275 withval=$with_zstd;
10276 else
10277 with_zstd=auto
10281 if test "$with_zstd" != no; then :
10283 pkg_failed=no
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
10285 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
10287 if test -n "$ZSTD_CFLAGS"; then
10288 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
10289 elif test -n "$PKG_CONFIG"; then
10290 if test -n "$PKG_CONFIG" && \
10291 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10292 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10293 ac_status=$?
10294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10295 test $ac_status = 0; }; then
10296 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
10297 test "x$?" != "x0" && pkg_failed=yes
10298 else
10299 pkg_failed=yes
10301 else
10302 pkg_failed=untried
10304 if test -n "$ZSTD_LIBS"; then
10305 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
10306 elif test -n "$PKG_CONFIG"; then
10307 if test -n "$PKG_CONFIG" && \
10308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10309 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10310 ac_status=$?
10311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312 test $ac_status = 0; }; then
10313 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
10314 test "x$?" != "x0" && pkg_failed=yes
10315 else
10316 pkg_failed=yes
10318 else
10319 pkg_failed=untried
10322 if test $pkg_failed = no; then
10323 pkg_save_LDFLAGS="$LDFLAGS"
10324 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10329 main ()
10333 return 0;
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10338 else
10339 pkg_failed=yes
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 LDFLAGS=$pkg_save_LDFLAGS
10348 if test $pkg_failed = yes; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10353 _pkg_short_errors_supported=yes
10354 else
10355 _pkg_short_errors_supported=no
10357 if test $_pkg_short_errors_supported = yes; then
10358 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10359 else
10360 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10362 # Put the nasty error message in config.log where it belongs
10363 echo "$ZSTD_PKG_ERRORS" >&5
10366 if test "$with_zstd" = yes; then
10367 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10370 elif test $pkg_failed = untried; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10374 if test "$with_zstd" = yes; then
10375 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10378 else
10379 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
10380 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10382 $as_echo "yes" >&6; }
10385 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
10392 if test "$pkg_cv_ZSTD_LIBS" != ""; then
10393 HAVE_ZSTD_TRUE=
10394 HAVE_ZSTD_FALSE='#'
10395 else
10396 HAVE_ZSTD_TRUE='#'
10397 HAVE_ZSTD_FALSE=
10401 # Check whether --enable-threads was given.
10402 if test "${enable_threads+set}" = set; then :
10403 enableval=$enable_threads; case "${enableval}" in
10404 yes | "") threads=yes ;;
10405 no) threads=no ;;
10406 auto) threads=auto ;;
10407 *) threads=yes ;;
10408 esac
10409 else
10410 threads=auto
10414 if test "$threads" = "yes"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10416 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10417 if ${ac_cv_path_SED+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10421 for ac_i in 1 2 3 4 5 6 7; do
10422 ac_script="$ac_script$as_nl$ac_script"
10423 done
10424 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10425 { ac_script=; unset ac_script;}
10426 if test -z "$SED"; then
10427 ac_path_SED_found=false
10428 # Loop through the user's path and test for each of PROGNAME-LIST
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_prog in sed gsed; do
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10437 as_fn_executable_p "$ac_path_SED" || continue
10438 # Check for GNU ac_path_SED and select it if it is found.
10439 # Check for GNU $ac_path_SED
10440 case `"$ac_path_SED" --version 2>&1` in
10441 *GNU*)
10442 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10444 ac_count=0
10445 $as_echo_n 0123456789 >"conftest.in"
10446 while :
10448 cat "conftest.in" "conftest.in" >"conftest.tmp"
10449 mv "conftest.tmp" "conftest.in"
10450 cp "conftest.in" "conftest.nl"
10451 $as_echo '' >> "conftest.nl"
10452 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10454 as_fn_arith $ac_count + 1 && ac_count=$as_val
10455 if test $ac_count -gt ${ac_path_SED_max-0}; then
10456 # Best one so far, save it but keep looking for a better one
10457 ac_cv_path_SED="$ac_path_SED"
10458 ac_path_SED_max=$ac_count
10460 # 10*(2^10) chars as input seems more than enough
10461 test $ac_count -gt 10 && break
10462 done
10463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10464 esac
10466 $ac_path_SED_found && break 3
10467 done
10468 done
10469 done
10470 IFS=$as_save_IFS
10471 if test -z "$ac_cv_path_SED"; then
10472 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10474 else
10475 ac_cv_path_SED=$SED
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10480 $as_echo "$ac_cv_path_SED" >&6; }
10481 SED="$ac_cv_path_SED"
10482 rm -f conftest.sed
10488 ac_ext=c
10489 ac_cpp='$CPP $CPPFLAGS'
10490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10494 ax_pthread_ok=no
10496 # We used to check for pthread.h first, but this fails if pthread.h
10497 # requires special compiler flags (e.g. on Tru64 or Sequent).
10498 # It gets checked for in the link test anyway.
10500 # First of all, check if the user has set any of the PTHREAD_LIBS,
10501 # etcetera environment variables, and if threads linking works using
10502 # them:
10503 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10504 ax_pthread_save_CC="$CC"
10505 ax_pthread_save_CFLAGS="$CFLAGS"
10506 ax_pthread_save_LIBS="$LIBS"
10507 if test "x$PTHREAD_CC" != "x"; then :
10508 CC="$PTHREAD_CC"
10510 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10511 LIBS="$PTHREAD_LIBS $LIBS"
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10513 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10517 /* Override any GCC internal prototype to avoid an error.
10518 Use char because int might match the return type of a GCC
10519 builtin and then its argument prototype would still apply. */
10520 #ifdef __cplusplus
10521 extern "C"
10522 #endif
10523 char pthread_join ();
10525 main ()
10527 return pthread_join ();
10529 return 0;
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 ax_pthread_ok=yes
10535 rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10538 $as_echo "$ax_pthread_ok" >&6; }
10539 if test "x$ax_pthread_ok" = "xno"; then
10540 PTHREAD_LIBS=""
10541 PTHREAD_CFLAGS=""
10543 CC="$ax_pthread_save_CC"
10544 CFLAGS="$ax_pthread_save_CFLAGS"
10545 LIBS="$ax_pthread_save_LIBS"
10548 # We must check for the threads library under a number of different
10549 # names; the ordering is very important because some systems
10550 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10551 # libraries is broken (non-POSIX).
10553 # Create a list of thread flags to try. Items starting with a "-" are
10554 # C compiler flags, and other items are library names, except for "none"
10555 # which indicates that we try without any flags at all, and "pthread-config"
10556 # which is a program returning the flags for the Pth emulation library.
10558 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10560 # The ordering *is* (sometimes) important. Some notes on the
10561 # individual items follow:
10563 # pthreads: AIX (must check this before -lpthread)
10564 # none: in case threads are in libc; should be tried before -Kthread and
10565 # other compiler flags to prevent continual compiler warnings
10566 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10567 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10568 # (Note: HP C rejects this with "bad form for `-t' option")
10569 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10570 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10571 # doesn't hurt to check since this sometimes defines pthreads and
10572 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10573 # is present but should not be used directly; and before -mthreads,
10574 # because the compiler interprets this as "-mt" + "-hreads")
10575 # -mthreads: Mingw32/gcc, Lynx/gcc
10576 # pthread: Linux, etcetera
10577 # --thread-safe: KAI C++
10578 # pthread-config: use pthread-config program (for GNU Pth library)
10580 case $host_os in
10582 freebsd*)
10584 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10585 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10587 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
10590 hpux*)
10592 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10593 # multi-threading and also sets -lpthread."
10595 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
10598 openedition*)
10600 # IBM z/OS requires a feature-test macro to be defined in order to
10601 # enable POSIX threads at all, so give the user a hint if this is
10602 # not set. (We don't define these ourselves, as they can affect
10603 # other portions of the system API in unpredictable ways.)
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10608 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10609 AX_PTHREAD_ZOS_MISSING
10610 # endif
10612 _ACEOF
10613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10614 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10616 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10618 rm -f conftest*
10622 solaris*)
10624 # On Solaris (at least, for some versions), libc contains stubbed
10625 # (non-functional) versions of the pthreads routines, so link-based
10626 # tests will erroneously succeed. (N.B.: The stubs are missing
10627 # pthread_cleanup_push, or rather a function called by this macro,
10628 # so we could check for that, but who knows whether they'll stub
10629 # that too in a future libc.) So we'll check first for the
10630 # standard Solaris way of linking pthreads (-mt -lpthread).
10632 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
10634 esac
10636 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10638 if test "x$GCC" = "xyes"; then :
10639 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
10642 # The presence of a feature test macro requesting re-entrant function
10643 # definitions is, on some systems, a strong hint that pthreads support is
10644 # correctly enabled
10646 case $host_os in
10647 darwin* | hpux* | linux* | osf* | solaris*)
10648 ax_pthread_check_macro="_REENTRANT"
10651 aix*)
10652 ax_pthread_check_macro="_THREAD_SAFE"
10656 ax_pthread_check_macro="--"
10658 esac
10659 if test "x$ax_pthread_check_macro" = "x--"; then :
10660 ax_pthread_check_cond=0
10661 else
10662 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
10665 # Are we compiling with Clang?
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10668 $as_echo_n "checking whether $CC is Clang... " >&6; }
10669 if ${ax_cv_PTHREAD_CLANG+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 ax_cv_PTHREAD_CLANG=no
10673 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10674 if test "x$GCC" = "xyes"; then
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10678 # if defined(__clang__) && defined(__llvm__)
10679 AX_PTHREAD_CC_IS_CLANG
10680 # endif
10682 _ACEOF
10683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10684 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
10685 ax_cv_PTHREAD_CLANG=yes
10687 rm -f conftest*
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10693 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10694 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
10696 ax_pthread_clang_warning=no
10698 # Clang needs special handling, because older versions handle the -pthread
10699 # option in a rather... idiosyncratic way
10701 if test "x$ax_pthread_clang" = "xyes"; then
10703 # Clang takes -pthread; it has never supported any other flag
10705 # (Note 1: This will need to be revisited if a system that Clang
10706 # supports has POSIX threads in a separate library. This tends not
10707 # to be the way of modern systems, but it's conceivable.)
10709 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10710 # to get POSIX threads support; the API is always present and
10711 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10712 # -pthread does define _REENTRANT, and while the Darwin headers
10713 # ignore this macro, third-party headers might not.)
10715 PTHREAD_CFLAGS="-pthread"
10716 PTHREAD_LIBS=
10718 ax_pthread_ok=yes
10720 # However, older versions of Clang make a point of warning the user
10721 # that, in an invocation where only linking and no compilation is
10722 # taking place, the -pthread option has no effect ("argument unused
10723 # during compilation"). They expect -pthread to be passed in only
10724 # when source code is being compiled.
10726 # Problem is, this is at odds with the way Automake and most other
10727 # C build frameworks function, which is that the same flags used in
10728 # compilation (CFLAGS) are also used in linking. Many systems
10729 # supported by AX_PTHREAD require exactly this for POSIX threads
10730 # support, and in fact it is often not straightforward to specify a
10731 # flag that is used only in the compilation phase and not in
10732 # linking. Such a scenario is extremely rare in practice.
10734 # Even though use of the -pthread flag in linking would only print
10735 # a warning, this can be a nuisance for well-run software projects
10736 # that build with -Werror. So if the active version of Clang has
10737 # this misfeature, we search for an option to squash it.
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10740 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10741 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
10745 # Create an alternate version of $ac_link that compiles and
10746 # links in two steps (.c -> .o, .o -> exe) instead of one
10747 # (.c -> exe), because the warning occurs only in the second
10748 # step
10749 ax_pthread_save_ac_link="$ac_link"
10750 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10751 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10752 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10753 ax_pthread_save_CFLAGS="$CFLAGS"
10754 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
10755 if test "x$ax_pthread_try" = "xunknown"; then :
10756 break
10758 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10759 ac_link="$ax_pthread_save_ac_link"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 int main(void){return 0;}
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10765 ac_link="$ax_pthread_2step_ac_link"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 int main(void){return 0;}
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 break
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 done
10780 ac_link="$ax_pthread_save_ac_link"
10781 CFLAGS="$ax_pthread_save_CFLAGS"
10782 if test "x$ax_pthread_try" = "x"; then :
10783 ax_pthread_try=no
10785 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10789 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10791 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10792 no | unknown) ;;
10793 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10794 esac
10796 fi # $ax_pthread_clang = yes
10798 if test "x$ax_pthread_ok" = "xno"; then
10799 for ax_pthread_try_flag in $ax_pthread_flags; do
10801 case $ax_pthread_try_flag in
10802 none)
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10804 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10807 -mt,pthread)
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10809 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10810 PTHREAD_CFLAGS="-mt"
10811 PTHREAD_LIBS="-lpthread"
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10816 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10817 PTHREAD_CFLAGS="$ax_pthread_try_flag"
10820 pthread-config)
10821 # Extract the first word of "pthread-config", so it can be a program name with args.
10822 set dummy pthread-config; ac_word=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if ${ac_cv_prog_ax_pthread_config+:} false; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 if test -n "$ax_pthread_config"; then
10829 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10830 else
10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832 for as_dir in $PATH
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10838 ac_cv_prog_ax_pthread_config="yes"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10842 done
10843 done
10844 IFS=$as_save_IFS
10846 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10849 ax_pthread_config=$ac_cv_prog_ax_pthread_config
10850 if test -n "$ax_pthread_config"; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10852 $as_echo "$ax_pthread_config" >&6; }
10853 else
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855 $as_echo "no" >&6; }
10859 if test "x$ax_pthread_config" = "xno"; then :
10860 continue
10862 PTHREAD_CFLAGS="`pthread-config --cflags`"
10863 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10868 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10869 PTHREAD_LIBS="-l$ax_pthread_try_flag"
10871 esac
10873 ax_pthread_save_CFLAGS="$CFLAGS"
10874 ax_pthread_save_LIBS="$LIBS"
10875 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10876 LIBS="$PTHREAD_LIBS $LIBS"
10878 # Check for various functions. We must include pthread.h,
10879 # since some functions may be macros. (On the Sequent, we
10880 # need a special flag -Kthread to make this header compile.)
10881 # We check for pthread_join because it is in -lpthread on IRIX
10882 # while pthread_create is in libc. We check for pthread_attr_init
10883 # due to DEC craziness with -lpthreads. We check for
10884 # pthread_cleanup_push because it is one of the few pthread
10885 # functions on Solaris that doesn't have a non-functional libc stub.
10886 # We try pthread_create on general principles.
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890 #include <pthread.h>
10891 # if $ax_pthread_check_cond
10892 # error "$ax_pthread_check_macro must be defined"
10893 # endif
10894 static void routine(void *a) { a = 0; }
10895 static void *start_routine(void *a) { return a; }
10897 main ()
10899 pthread_t th; pthread_attr_t attr;
10900 pthread_create(&th, 0, start_routine, 0);
10901 pthread_join(th, 0);
10902 pthread_attr_init(&attr);
10903 pthread_cleanup_push(routine, 0);
10904 pthread_cleanup_pop(0) /* ; */
10906 return 0;
10908 _ACEOF
10909 if ac_fn_c_try_link "$LINENO"; then :
10910 ax_pthread_ok=yes
10912 rm -f core conftest.err conftest.$ac_objext \
10913 conftest$ac_exeext conftest.$ac_ext
10915 CFLAGS="$ax_pthread_save_CFLAGS"
10916 LIBS="$ax_pthread_save_LIBS"
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10919 $as_echo "$ax_pthread_ok" >&6; }
10920 if test "x$ax_pthread_ok" = "xyes"; then :
10921 break
10924 PTHREAD_LIBS=""
10925 PTHREAD_CFLAGS=""
10926 done
10929 # Various other checks:
10930 if test "x$ax_pthread_ok" = "xyes"; then
10931 ax_pthread_save_CFLAGS="$CFLAGS"
10932 ax_pthread_save_LIBS="$LIBS"
10933 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10934 LIBS="$PTHREAD_LIBS $LIBS"
10936 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10938 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10939 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10943 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #include <pthread.h>
10948 main ()
10950 int attr = $ax_pthread_attr; return attr /* ; */
10952 return 0;
10954 _ACEOF
10955 if ac_fn_c_try_link "$LINENO"; then :
10956 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 done
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10964 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10965 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10966 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10967 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10969 cat >>confdefs.h <<_ACEOF
10970 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10971 _ACEOF
10973 ax_pthread_joinable_attr_defined=yes
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10978 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10979 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 ax_cv_PTHREAD_SPECIAL_FLAGS=no
10983 case $host_os in
10984 solaris*)
10985 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
10987 esac
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10991 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10992 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10993 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10994 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10995 ax_pthread_special_flags_added=yes
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10999 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11000 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 #include <pthread.h>
11007 main ()
11009 int i = PTHREAD_PRIO_INHERIT;
11011 return 0;
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ax_cv_PTHREAD_PRIO_INHERIT=yes
11016 else
11017 ax_cv_PTHREAD_PRIO_INHERIT=no
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11024 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11025 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11026 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11028 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11030 ax_pthread_prio_inherit_defined=yes
11034 CFLAGS="$ax_pthread_save_CFLAGS"
11035 LIBS="$ax_pthread_save_LIBS"
11037 # More AIX lossage: compile with *_r variant
11038 if test "x$GCC" != "xyes"; then
11039 case $host_os in
11040 aix*)
11041 case "x/$CC" in #(
11042 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11043 #handle absolute path differently from PATH based program lookup
11044 case "x$CC" in #(
11045 x/*) :
11046 if as_fn_executable_p ${CC}_r; then :
11047 PTHREAD_CC="${CC}_r"
11048 fi ;; #(
11049 *) :
11050 for ac_prog in ${CC}_r
11052 # Extract the first word of "$ac_prog", so it can be a program name with args.
11053 set dummy $ac_prog; ac_word=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 if test -n "$PTHREAD_CC"; then
11060 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11061 else
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_prog_PTHREAD_CC="$ac_prog"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11073 done
11074 done
11075 IFS=$as_save_IFS
11079 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11080 if test -n "$PTHREAD_CC"; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11082 $as_echo "$PTHREAD_CC" >&6; }
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11089 test -n "$PTHREAD_CC" && break
11090 done
11091 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11093 esac ;; #(
11094 *) :
11096 esac
11098 esac
11102 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11108 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11109 if test "x$ax_pthread_ok" = "xyes"; then
11110 threads=yes
11112 else
11113 ax_pthread_ok=no
11114 as_fn_error $? "pthread not found" "$LINENO" 5
11116 ac_ext=c
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11123 elif test "$threads" = "auto"; then
11128 ac_ext=c
11129 ac_cpp='$CPP $CPPFLAGS'
11130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11134 ax_pthread_ok=no
11136 # We used to check for pthread.h first, but this fails if pthread.h
11137 # requires special compiler flags (e.g. on Tru64 or Sequent).
11138 # It gets checked for in the link test anyway.
11140 # First of all, check if the user has set any of the PTHREAD_LIBS,
11141 # etcetera environment variables, and if threads linking works using
11142 # them:
11143 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11144 ax_pthread_save_CC="$CC"
11145 ax_pthread_save_CFLAGS="$CFLAGS"
11146 ax_pthread_save_LIBS="$LIBS"
11147 if test "x$PTHREAD_CC" != "x"; then :
11148 CC="$PTHREAD_CC"
11150 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11151 LIBS="$PTHREAD_LIBS $LIBS"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11153 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11157 /* Override any GCC internal prototype to avoid an error.
11158 Use char because int might match the return type of a GCC
11159 builtin and then its argument prototype would still apply. */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 char pthread_join ();
11165 main ()
11167 return pthread_join ();
11169 return 0;
11171 _ACEOF
11172 if ac_fn_c_try_link "$LINENO"; then :
11173 ax_pthread_ok=yes
11175 rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11178 $as_echo "$ax_pthread_ok" >&6; }
11179 if test "x$ax_pthread_ok" = "xno"; then
11180 PTHREAD_LIBS=""
11181 PTHREAD_CFLAGS=""
11183 CC="$ax_pthread_save_CC"
11184 CFLAGS="$ax_pthread_save_CFLAGS"
11185 LIBS="$ax_pthread_save_LIBS"
11188 # We must check for the threads library under a number of different
11189 # names; the ordering is very important because some systems
11190 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11191 # libraries is broken (non-POSIX).
11193 # Create a list of thread flags to try. Items starting with a "-" are
11194 # C compiler flags, and other items are library names, except for "none"
11195 # which indicates that we try without any flags at all, and "pthread-config"
11196 # which is a program returning the flags for the Pth emulation library.
11198 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11200 # The ordering *is* (sometimes) important. Some notes on the
11201 # individual items follow:
11203 # pthreads: AIX (must check this before -lpthread)
11204 # none: in case threads are in libc; should be tried before -Kthread and
11205 # other compiler flags to prevent continual compiler warnings
11206 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11207 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11208 # (Note: HP C rejects this with "bad form for `-t' option")
11209 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11210 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11211 # doesn't hurt to check since this sometimes defines pthreads and
11212 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11213 # is present but should not be used directly; and before -mthreads,
11214 # because the compiler interprets this as "-mt" + "-hreads")
11215 # -mthreads: Mingw32/gcc, Lynx/gcc
11216 # pthread: Linux, etcetera
11217 # --thread-safe: KAI C++
11218 # pthread-config: use pthread-config program (for GNU Pth library)
11220 case $host_os in
11222 freebsd*)
11224 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11225 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11227 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
11230 hpux*)
11232 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11233 # multi-threading and also sets -lpthread."
11235 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
11238 openedition*)
11240 # IBM z/OS requires a feature-test macro to be defined in order to
11241 # enable POSIX threads at all, so give the user a hint if this is
11242 # not set. (We don't define these ourselves, as they can affect
11243 # other portions of the system API in unpredictable ways.)
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11248 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11249 AX_PTHREAD_ZOS_MISSING
11250 # endif
11252 _ACEOF
11253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11254 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11256 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11258 rm -f conftest*
11262 solaris*)
11264 # On Solaris (at least, for some versions), libc contains stubbed
11265 # (non-functional) versions of the pthreads routines, so link-based
11266 # tests will erroneously succeed. (N.B.: The stubs are missing
11267 # pthread_cleanup_push, or rather a function called by this macro,
11268 # so we could check for that, but who knows whether they'll stub
11269 # that too in a future libc.) So we'll check first for the
11270 # standard Solaris way of linking pthreads (-mt -lpthread).
11272 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
11274 esac
11276 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11278 if test "x$GCC" = "xyes"; then :
11279 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
11282 # The presence of a feature test macro requesting re-entrant function
11283 # definitions is, on some systems, a strong hint that pthreads support is
11284 # correctly enabled
11286 case $host_os in
11287 darwin* | hpux* | linux* | osf* | solaris*)
11288 ax_pthread_check_macro="_REENTRANT"
11291 aix*)
11292 ax_pthread_check_macro="_THREAD_SAFE"
11296 ax_pthread_check_macro="--"
11298 esac
11299 if test "x$ax_pthread_check_macro" = "x--"; then :
11300 ax_pthread_check_cond=0
11301 else
11302 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
11305 # Are we compiling with Clang?
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11308 $as_echo_n "checking whether $CC is Clang... " >&6; }
11309 if ${ax_cv_PTHREAD_CLANG+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ax_cv_PTHREAD_CLANG=no
11313 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11314 if test "x$GCC" = "xyes"; then
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11317 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11318 # if defined(__clang__) && defined(__llvm__)
11319 AX_PTHREAD_CC_IS_CLANG
11320 # endif
11322 _ACEOF
11323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11324 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
11325 ax_cv_PTHREAD_CLANG=yes
11327 rm -f conftest*
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11333 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11334 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
11336 ax_pthread_clang_warning=no
11338 # Clang needs special handling, because older versions handle the -pthread
11339 # option in a rather... idiosyncratic way
11341 if test "x$ax_pthread_clang" = "xyes"; then
11343 # Clang takes -pthread; it has never supported any other flag
11345 # (Note 1: This will need to be revisited if a system that Clang
11346 # supports has POSIX threads in a separate library. This tends not
11347 # to be the way of modern systems, but it's conceivable.)
11349 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11350 # to get POSIX threads support; the API is always present and
11351 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11352 # -pthread does define _REENTRANT, and while the Darwin headers
11353 # ignore this macro, third-party headers might not.)
11355 PTHREAD_CFLAGS="-pthread"
11356 PTHREAD_LIBS=
11358 ax_pthread_ok=yes
11360 # However, older versions of Clang make a point of warning the user
11361 # that, in an invocation where only linking and no compilation is
11362 # taking place, the -pthread option has no effect ("argument unused
11363 # during compilation"). They expect -pthread to be passed in only
11364 # when source code is being compiled.
11366 # Problem is, this is at odds with the way Automake and most other
11367 # C build frameworks function, which is that the same flags used in
11368 # compilation (CFLAGS) are also used in linking. Many systems
11369 # supported by AX_PTHREAD require exactly this for POSIX threads
11370 # support, and in fact it is often not straightforward to specify a
11371 # flag that is used only in the compilation phase and not in
11372 # linking. Such a scenario is extremely rare in practice.
11374 # Even though use of the -pthread flag in linking would only print
11375 # a warning, this can be a nuisance for well-run software projects
11376 # that build with -Werror. So if the active version of Clang has
11377 # this misfeature, we search for an option to squash it.
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11380 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11381 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
11385 # Create an alternate version of $ac_link that compiles and
11386 # links in two steps (.c -> .o, .o -> exe) instead of one
11387 # (.c -> exe), because the warning occurs only in the second
11388 # step
11389 ax_pthread_save_ac_link="$ac_link"
11390 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11391 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11392 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11393 ax_pthread_save_CFLAGS="$CFLAGS"
11394 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
11395 if test "x$ax_pthread_try" = "xunknown"; then :
11396 break
11398 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11399 ac_link="$ax_pthread_save_ac_link"
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402 int main(void){return 0;}
11403 _ACEOF
11404 if ac_fn_c_try_link "$LINENO"; then :
11405 ac_link="$ax_pthread_2step_ac_link"
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408 int main(void){return 0;}
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 break
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 done
11420 ac_link="$ax_pthread_save_ac_link"
11421 CFLAGS="$ax_pthread_save_CFLAGS"
11422 if test "x$ax_pthread_try" = "x"; then :
11423 ax_pthread_try=no
11425 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11429 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11431 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11432 no | unknown) ;;
11433 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11434 esac
11436 fi # $ax_pthread_clang = yes
11438 if test "x$ax_pthread_ok" = "xno"; then
11439 for ax_pthread_try_flag in $ax_pthread_flags; do
11441 case $ax_pthread_try_flag in
11442 none)
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11444 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11447 -mt,pthread)
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11449 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11450 PTHREAD_CFLAGS="-mt"
11451 PTHREAD_LIBS="-lpthread"
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11456 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11457 PTHREAD_CFLAGS="$ax_pthread_try_flag"
11460 pthread-config)
11461 # Extract the first word of "pthread-config", so it can be a program name with args.
11462 set dummy pthread-config; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if ${ac_cv_prog_ax_pthread_config+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 if test -n "$ax_pthread_config"; then
11469 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11470 else
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11474 IFS=$as_save_IFS
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11478 ac_cv_prog_ax_pthread_config="yes"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 break 2
11482 done
11483 done
11484 IFS=$as_save_IFS
11486 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11489 ax_pthread_config=$ac_cv_prog_ax_pthread_config
11490 if test -n "$ax_pthread_config"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11492 $as_echo "$ax_pthread_config" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11499 if test "x$ax_pthread_config" = "xno"; then :
11500 continue
11502 PTHREAD_CFLAGS="`pthread-config --cflags`"
11503 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11508 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11509 PTHREAD_LIBS="-l$ax_pthread_try_flag"
11511 esac
11513 ax_pthread_save_CFLAGS="$CFLAGS"
11514 ax_pthread_save_LIBS="$LIBS"
11515 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11516 LIBS="$PTHREAD_LIBS $LIBS"
11518 # Check for various functions. We must include pthread.h,
11519 # since some functions may be macros. (On the Sequent, we
11520 # need a special flag -Kthread to make this header compile.)
11521 # We check for pthread_join because it is in -lpthread on IRIX
11522 # while pthread_create is in libc. We check for pthread_attr_init
11523 # due to DEC craziness with -lpthreads. We check for
11524 # pthread_cleanup_push because it is one of the few pthread
11525 # functions on Solaris that doesn't have a non-functional libc stub.
11526 # We try pthread_create on general principles.
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 #include <pthread.h>
11531 # if $ax_pthread_check_cond
11532 # error "$ax_pthread_check_macro must be defined"
11533 # endif
11534 static void routine(void *a) { a = 0; }
11535 static void *start_routine(void *a) { return a; }
11537 main ()
11539 pthread_t th; pthread_attr_t attr;
11540 pthread_create(&th, 0, start_routine, 0);
11541 pthread_join(th, 0);
11542 pthread_attr_init(&attr);
11543 pthread_cleanup_push(routine, 0);
11544 pthread_cleanup_pop(0) /* ; */
11546 return 0;
11548 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 ax_pthread_ok=yes
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11555 CFLAGS="$ax_pthread_save_CFLAGS"
11556 LIBS="$ax_pthread_save_LIBS"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11559 $as_echo "$ax_pthread_ok" >&6; }
11560 if test "x$ax_pthread_ok" = "xyes"; then :
11561 break
11564 PTHREAD_LIBS=""
11565 PTHREAD_CFLAGS=""
11566 done
11569 # Various other checks:
11570 if test "x$ax_pthread_ok" = "xyes"; then
11571 ax_pthread_save_CFLAGS="$CFLAGS"
11572 ax_pthread_save_LIBS="$LIBS"
11573 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11574 LIBS="$PTHREAD_LIBS $LIBS"
11576 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11578 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11579 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
11583 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586 #include <pthread.h>
11588 main ()
11590 int attr = $ax_pthread_attr; return attr /* ; */
11592 return 0;
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 done
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11604 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11605 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11606 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11607 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11609 cat >>confdefs.h <<_ACEOF
11610 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11611 _ACEOF
11613 ax_pthread_joinable_attr_defined=yes
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11618 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11619 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 ax_cv_PTHREAD_SPECIAL_FLAGS=no
11623 case $host_os in
11624 solaris*)
11625 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
11627 esac
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11631 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11632 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11633 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11634 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11635 ax_pthread_special_flags_added=yes
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11639 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11640 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645 #include <pthread.h>
11647 main ()
11649 int i = PTHREAD_PRIO_INHERIT;
11651 return 0;
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655 ax_cv_PTHREAD_PRIO_INHERIT=yes
11656 else
11657 ax_cv_PTHREAD_PRIO_INHERIT=no
11659 rm -f core conftest.err conftest.$ac_objext \
11660 conftest$ac_exeext conftest.$ac_ext
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11664 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11665 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11666 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11668 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11670 ax_pthread_prio_inherit_defined=yes
11674 CFLAGS="$ax_pthread_save_CFLAGS"
11675 LIBS="$ax_pthread_save_LIBS"
11677 # More AIX lossage: compile with *_r variant
11678 if test "x$GCC" != "xyes"; then
11679 case $host_os in
11680 aix*)
11681 case "x/$CC" in #(
11682 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11683 #handle absolute path differently from PATH based program lookup
11684 case "x$CC" in #(
11685 x/*) :
11686 if as_fn_executable_p ${CC}_r; then :
11687 PTHREAD_CC="${CC}_r"
11688 fi ;; #(
11689 *) :
11690 for ac_prog in ${CC}_r
11692 # Extract the first word of "$ac_prog", so it can be a program name with args.
11693 set dummy $ac_prog; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 if test -n "$PTHREAD_CC"; then
11700 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11701 else
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11709 ac_cv_prog_PTHREAD_CC="$ac_prog"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11713 done
11714 done
11715 IFS=$as_save_IFS
11719 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11720 if test -n "$PTHREAD_CC"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11722 $as_echo "$PTHREAD_CC" >&6; }
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; }
11729 test -n "$PTHREAD_CC" && break
11730 done
11731 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11733 esac ;; #(
11734 *) :
11736 esac
11738 esac
11742 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11748 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11749 if test "x$ax_pthread_ok" = "xyes"; then
11750 threads=yes
11752 else
11753 ax_pthread_ok=no
11754 threads=no
11756 ac_ext=c
11757 ac_cpp='$CPP $CPPFLAGS'
11758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765 if test "$threads" = "yes"; then
11767 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
11770 if test "$threads" = "yes"; then
11771 THREADS_TRUE=
11772 THREADS_FALSE='#'
11773 else
11774 THREADS_TRUE='#'
11775 THREADS_FALSE=
11779 # Used to validate --package-metadata= input. Disabled by default.
11780 # Check whether --enable-jansson was given.
11781 if test "${enable_jansson+set}" = set; then :
11782 enableval=$enable_jansson; enable_jansson=$enableval
11783 else
11784 enable_jansson="no"
11788 if test "x$enable_jansson" != "xno"; then
11796 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11797 if test -n "$ac_tool_prefix"; then
11798 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11799 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11801 $as_echo_n "checking for $ac_word... " >&6; }
11802 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11803 $as_echo_n "(cached) " >&6
11804 else
11805 case $PKG_CONFIG in
11806 [\\/]* | ?:[\\/]*)
11807 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11813 IFS=$as_save_IFS
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11819 break 2
11821 done
11822 done
11823 IFS=$as_save_IFS
11826 esac
11828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11829 if test -n "$PKG_CONFIG"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11831 $as_echo "$PKG_CONFIG" >&6; }
11832 else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11839 if test -z "$ac_cv_path_PKG_CONFIG"; then
11840 ac_pt_PKG_CONFIG=$PKG_CONFIG
11841 # Extract the first word of "pkg-config", so it can be a program name with args.
11842 set dummy pkg-config; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 case $ac_pt_PKG_CONFIG in
11849 [\\/]* | ?:[\\/]*)
11850 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11860 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 break 2
11864 done
11865 done
11866 IFS=$as_save_IFS
11869 esac
11871 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11872 if test -n "$ac_pt_PKG_CONFIG"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11874 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11880 if test "x$ac_pt_PKG_CONFIG" = x; then
11881 PKG_CONFIG=""
11882 else
11883 case $cross_compiling:$ac_tool_warned in
11884 yes:)
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11887 ac_tool_warned=yes ;;
11888 esac
11889 PKG_CONFIG=$ac_pt_PKG_CONFIG
11891 else
11892 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11896 if test -n "$PKG_CONFIG"; then
11897 _pkg_min_version=0.9.0
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11899 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11900 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 PKG_CONFIG=""
11909 if test -n "$PKG_CONFIG"; then :
11912 pkg_failed=no
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
11914 $as_echo_n "checking for jansson... " >&6; }
11916 if test -n "$JANSSON_CFLAGS"; then
11917 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
11918 elif test -n "$PKG_CONFIG"; then
11919 if test -n "$PKG_CONFIG" && \
11920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11921 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11922 ac_status=$?
11923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11924 test $ac_status = 0; }; then
11925 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
11926 test "x$?" != "x0" && pkg_failed=yes
11927 else
11928 pkg_failed=yes
11930 else
11931 pkg_failed=untried
11933 if test -n "$JANSSON_LIBS"; then
11934 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
11935 elif test -n "$PKG_CONFIG"; then
11936 if test -n "$PKG_CONFIG" && \
11937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11938 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11939 ac_status=$?
11940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; }; then
11942 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
11943 test "x$?" != "x0" && pkg_failed=yes
11944 else
11945 pkg_failed=yes
11947 else
11948 pkg_failed=untried
11951 if test $pkg_failed = no; then
11952 pkg_save_LDFLAGS="$LDFLAGS"
11953 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11958 main ()
11962 return 0;
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11967 else
11968 pkg_failed=yes
11970 rm -f core conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 LDFLAGS=$pkg_save_LDFLAGS
11977 if test $pkg_failed = yes; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11982 _pkg_short_errors_supported=yes
11983 else
11984 _pkg_short_errors_supported=no
11986 if test $_pkg_short_errors_supported = yes; then
11987 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
11988 else
11989 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
11991 # Put the nasty error message in config.log where it belongs
11992 echo "$JANSSON_PKG_ERRORS" >&5
11995 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
11997 elif test $pkg_failed = untried; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12001 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
12003 else
12004 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
12005 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12007 $as_echo "yes" >&6; }
12010 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
12017 else
12019 as_fn_error $? "Cannot find pkg-config" "$LINENO" 5
12024 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12025 if test "x$ac_cv_have_decl_basename" = xyes; then :
12026 ac_have_decl=1
12027 else
12028 ac_have_decl=0
12031 cat >>confdefs.h <<_ACEOF
12032 #define HAVE_DECL_BASENAME $ac_have_decl
12033 _ACEOF
12034 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12035 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12036 ac_have_decl=1
12037 else
12038 ac_have_decl=0
12041 cat >>confdefs.h <<_ACEOF
12042 #define HAVE_DECL_FFS $ac_have_decl
12043 _ACEOF
12044 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12045 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12046 ac_have_decl=1
12047 else
12048 ac_have_decl=0
12051 cat >>confdefs.h <<_ACEOF
12052 #define HAVE_DECL_ASPRINTF $ac_have_decl
12053 _ACEOF
12054 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12055 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12056 ac_have_decl=1
12057 else
12058 ac_have_decl=0
12061 cat >>confdefs.h <<_ACEOF
12062 #define HAVE_DECL_VASPRINTF $ac_have_decl
12063 _ACEOF
12064 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12065 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12066 ac_have_decl=1
12067 else
12068 ac_have_decl=0
12071 cat >>confdefs.h <<_ACEOF
12072 #define HAVE_DECL_SNPRINTF $ac_have_decl
12073 _ACEOF
12074 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12075 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12076 ac_have_decl=1
12077 else
12078 ac_have_decl=0
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12083 _ACEOF
12084 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12085 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12086 ac_have_decl=1
12087 else
12088 ac_have_decl=0
12091 cat >>confdefs.h <<_ACEOF
12092 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12093 _ACEOF
12096 save_CFLAGS="$CFLAGS"
12097 CFLAGS="$CFLAGS -Werror -gpubnames"
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12100 int i;
12101 _ACEOF
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103 have_pubnames=yes
12104 else
12105 have_pubnames=no
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 CFLAGS="$save_CFLAGS"
12109 if test "$have_pubnames" = "yes"; then
12110 HAVE_PUBNAMES_TRUE=
12111 HAVE_PUBNAMES_FALSE='#'
12112 else
12113 HAVE_PUBNAMES_TRUE='#'
12114 HAVE_PUBNAMES_FALSE=
12118 save_CFLAGS="$CFLAGS"
12119 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122 int i;
12123 _ACEOF
12124 if ac_fn_c_try_compile "$LINENO"; then :
12125 have_no_use_linker_plugin=yes
12126 else
12127 have_no_use_linker_plugin=no
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 CFLAGS="$save_CFLAGS"
12131 if test "$have_no_use_linker_plugin" = "yes"; then
12132 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
12133 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
12134 else
12135 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
12136 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
12140 ac_ext=cpp
12141 ac_cpp='$CXXCPP $CPPFLAGS'
12142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12148 ac_ext=cpp
12149 ac_cpp='$CXXCPP $CPPFLAGS'
12150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12154 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12155 if test -z "$CXXCPP"; then
12156 if ${ac_cv_prog_CXXCPP+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 # Double quotes because CXXCPP needs to be expanded
12160 for CXXCPP in "$CXX -E" "/lib/cpp"
12162 ac_preproc_ok=false
12163 for ac_cxx_preproc_warn_flag in '' yes
12165 # Use a header file that comes with gcc, so configuring glibc
12166 # with a fresh cross-compiler works.
12167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 # <limits.h> exists even on freestanding compilers.
12169 # On the NeXT, cc -E runs the code through the compiler's parser,
12170 # not just through cpp. "Syntax error" is here to catch this case.
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173 #ifdef __STDC__
12174 # include <limits.h>
12175 #else
12176 # include <assert.h>
12177 #endif
12178 Syntax error
12179 _ACEOF
12180 if ac_fn_cxx_try_cpp "$LINENO"; then :
12182 else
12183 # Broken: fails on valid input.
12184 continue
12186 rm -f conftest.err conftest.i conftest.$ac_ext
12188 # OK, works on sane cases. Now check whether nonexistent headers
12189 # can be detected and how.
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 #include <ac_nonexistent.h>
12193 _ACEOF
12194 if ac_fn_cxx_try_cpp "$LINENO"; then :
12195 # Broken: success on invalid input.
12196 continue
12197 else
12198 # Passes both tests.
12199 ac_preproc_ok=:
12200 break
12202 rm -f conftest.err conftest.i conftest.$ac_ext
12204 done
12205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12206 rm -f conftest.i conftest.err conftest.$ac_ext
12207 if $ac_preproc_ok; then :
12208 break
12211 done
12212 ac_cv_prog_CXXCPP=$CXXCPP
12215 CXXCPP=$ac_cv_prog_CXXCPP
12216 else
12217 ac_cv_prog_CXXCPP=$CXXCPP
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12220 $as_echo "$CXXCPP" >&6; }
12221 ac_preproc_ok=false
12222 for ac_cxx_preproc_warn_flag in '' yes
12224 # Use a header file that comes with gcc, so configuring glibc
12225 # with a fresh cross-compiler works.
12226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227 # <limits.h> exists even on freestanding compilers.
12228 # On the NeXT, cc -E runs the code through the compiler's parser,
12229 # not just through cpp. "Syntax error" is here to catch this case.
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232 #ifdef __STDC__
12233 # include <limits.h>
12234 #else
12235 # include <assert.h>
12236 #endif
12237 Syntax error
12238 _ACEOF
12239 if ac_fn_cxx_try_cpp "$LINENO"; then :
12241 else
12242 # Broken: fails on valid input.
12243 continue
12245 rm -f conftest.err conftest.i conftest.$ac_ext
12247 # OK, works on sane cases. Now check whether nonexistent headers
12248 # can be detected and how.
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #include <ac_nonexistent.h>
12252 _ACEOF
12253 if ac_fn_cxx_try_cpp "$LINENO"; then :
12254 # Broken: success on invalid input.
12255 continue
12256 else
12257 # Passes both tests.
12258 ac_preproc_ok=:
12259 break
12261 rm -f conftest.err conftest.i conftest.$ac_ext
12263 done
12264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12265 rm -f conftest.i conftest.err conftest.$ac_ext
12266 if $ac_preproc_ok; then :
12268 else
12269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12271 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12272 See \`config.log' for more details" "$LINENO" 5; }
12275 ac_ext=cpp
12276 ac_cpp='$CXXCPP $CPPFLAGS'
12277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12282 for ac_header in unordered_set unordered_map
12283 do :
12284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12285 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12286 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12287 cat >>confdefs.h <<_ACEOF
12288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12289 _ACEOF
12293 done
12295 for ac_header in tr1/unordered_set tr1/unordered_map
12296 do :
12297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12298 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12300 cat >>confdefs.h <<_ACEOF
12301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12302 _ACEOF
12306 done
12308 for ac_header in ext/hash_map ext/hash_set
12309 do :
12310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12311 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12312 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12313 cat >>confdefs.h <<_ACEOF
12314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12315 _ACEOF
12319 done
12321 for ac_header in byteswap.h
12322 do :
12323 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12324 if test "x$ac_cv_header_byteswap_h" = xyes; then :
12325 cat >>confdefs.h <<_ACEOF
12326 #define HAVE_BYTESWAP_H 1
12327 _ACEOF
12331 done
12334 ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
12336 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
12337 ac_have_decl=1
12338 else
12339 ac_have_decl=0
12342 cat >>confdefs.h <<_ACEOF
12343 #define HAVE_DECL_BSWAP_16 $ac_have_decl
12344 _ACEOF
12345 ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
12347 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
12348 ac_have_decl=1
12349 else
12350 ac_have_decl=0
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_DECL_BSWAP_32 $ac_have_decl
12355 _ACEOF
12356 ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
12358 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
12359 ac_have_decl=1
12360 else
12361 ac_have_decl=0
12364 cat >>confdefs.h <<_ACEOF
12365 #define HAVE_DECL_BSWAP_64 $ac_have_decl
12366 _ACEOF
12369 for ac_header in windows.h
12370 do :
12371 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12372 if test "x$ac_cv_header_windows_h" = xyes; then :
12373 cat >>confdefs.h <<_ACEOF
12374 #define HAVE_WINDOWS_H 1
12375 _ACEOF
12379 done
12381 for ac_header in dlfcn.h
12382 do :
12383 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12384 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12385 cat >>confdefs.h <<_ACEOF
12386 #define HAVE_DLFCN_H 1
12387 _ACEOF
12391 done
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12394 $as_echo_n "checking for library containing dlopen... " >&6; }
12395 if ${ac_cv_search_dlopen+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 ac_func_search_save_LIBS=$LIBS
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12405 #ifdef __cplusplus
12406 extern "C"
12407 #endif
12408 char dlopen ();
12410 main ()
12412 return dlopen ();
12414 return 0;
12416 _ACEOF
12417 for ac_lib in '' dl dld; do
12418 if test -z "$ac_lib"; then
12419 ac_res="none required"
12420 else
12421 ac_res=-l$ac_lib
12422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12424 if ac_fn_cxx_try_link "$LINENO"; then :
12425 ac_cv_search_dlopen=$ac_res
12427 rm -f core conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext
12429 if ${ac_cv_search_dlopen+:} false; then :
12430 break
12432 done
12433 if ${ac_cv_search_dlopen+:} false; then :
12435 else
12436 ac_cv_search_dlopen=no
12438 rm conftest.$ac_ext
12439 LIBS=$ac_func_search_save_LIBS
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12442 $as_echo "$ac_cv_search_dlopen" >&6; }
12443 ac_res=$ac_cv_search_dlopen
12444 if test "$ac_res" != no; then :
12445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12449 case "$ac_cv_search_dlopen" in
12450 no*) DLOPEN_LIBS="";;
12451 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
12452 esac
12455 for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
12456 do :
12457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12458 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12459 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12460 cat >>confdefs.h <<_ACEOF
12461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12462 _ACEOF
12465 done
12467 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12468 if test "x$ac_cv_have_decl_basename" = xyes; then :
12469 ac_have_decl=1
12470 else
12471 ac_have_decl=0
12474 cat >>confdefs.h <<_ACEOF
12475 #define HAVE_DECL_BASENAME $ac_have_decl
12476 _ACEOF
12477 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12478 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12479 ac_have_decl=1
12480 else
12481 ac_have_decl=0
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_DECL_FFS $ac_have_decl
12486 _ACEOF
12487 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12488 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12489 ac_have_decl=1
12490 else
12491 ac_have_decl=0
12494 cat >>confdefs.h <<_ACEOF
12495 #define HAVE_DECL_ASPRINTF $ac_have_decl
12496 _ACEOF
12497 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12498 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12499 ac_have_decl=1
12500 else
12501 ac_have_decl=0
12504 cat >>confdefs.h <<_ACEOF
12505 #define HAVE_DECL_VASPRINTF $ac_have_decl
12506 _ACEOF
12507 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12508 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12509 ac_have_decl=1
12510 else
12511 ac_have_decl=0
12514 cat >>confdefs.h <<_ACEOF
12515 #define HAVE_DECL_SNPRINTF $ac_have_decl
12516 _ACEOF
12517 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12518 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12519 ac_have_decl=1
12520 else
12521 ac_have_decl=0
12524 cat >>confdefs.h <<_ACEOF
12525 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12526 _ACEOF
12527 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12528 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12529 ac_have_decl=1
12530 else
12531 ac_have_decl=0
12534 cat >>confdefs.h <<_ACEOF
12535 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12536 _ACEOF
12537 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
12538 if test "x$ac_cv_have_decl_strndup" = xyes; then :
12539 ac_have_decl=1
12540 else
12541 ac_have_decl=0
12544 cat >>confdefs.h <<_ACEOF
12545 #define HAVE_DECL_STRNDUP $ac_have_decl
12546 _ACEOF
12547 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12548 if test "x$ac_cv_have_decl_memmem" = xyes; then :
12549 ac_have_decl=1
12550 else
12551 ac_have_decl=0
12554 cat >>confdefs.h <<_ACEOF
12555 #define HAVE_DECL_MEMMEM $ac_have_decl
12556 _ACEOF
12559 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
12560 # at link time with some versions of GCC.
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
12562 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
12563 if ${gold_cv_unordered_map_rehash+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12569 #include <tr1/unordered_map>
12570 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
12573 main ()
12577 return 0;
12579 _ACEOF
12580 if ac_fn_cxx_try_link "$LINENO"; then :
12581 gold_cv_unordered_map_rehash=yes
12582 else
12583 gold_cv_unordered_map_rehash=no
12585 rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
12589 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
12590 if test "$gold_cv_unordered_map_rehash" = "yes"; then
12592 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
12596 # Since 5e9091dab8858b25210a91d22fbbbfdee9c969ad gold now requires C++11
12597 # So we need to check for it.
12598 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
12599 ac_ext=cpp
12600 ac_cpp='$CXXCPP $CPPFLAGS'
12601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12604 ac_success=no
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
12607 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
12608 if ${ax_cv_cxx_compile_cxx11+:} false; then :
12609 $as_echo_n "(cached) " >&6
12610 else
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12615 // If the compiler admits that it is not ready for C++11, why torture it?
12616 // Hopefully, this will speed up the test.
12618 #ifndef __cplusplus
12620 #error "This is not a C++ compiler"
12622 #elif __cplusplus < 201103L
12624 #error "This is not a C++11 compiler"
12626 #else
12628 namespace cxx11
12631 namespace test_static_assert
12634 template <typename T>
12635 struct check
12637 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12642 namespace test_final_override
12645 struct Base
12647 virtual ~Base() {}
12648 virtual void f() {}
12651 struct Derived : public Base
12653 virtual ~Derived() override {}
12654 virtual void f() override {}
12659 namespace test_double_right_angle_brackets
12662 template < typename T >
12663 struct check {};
12665 typedef check<void> single_type;
12666 typedef check<check<void>> double_type;
12667 typedef check<check<check<void>>> triple_type;
12668 typedef check<check<check<check<void>>>> quadruple_type;
12672 namespace test_decltype
12678 int a = 1;
12679 decltype(a) b = 2;
12680 return a + b;
12685 namespace test_type_deduction
12688 template < typename T1, typename T2 >
12689 struct is_same
12691 static const bool value = false;
12694 template < typename T >
12695 struct is_same<T, T>
12697 static const bool value = true;
12700 template < typename T1, typename T2 >
12701 auto
12702 add(T1 a1, T2 a2) -> decltype(a1 + a2)
12704 return a1 + a2;
12708 test(const int c, volatile int v)
12710 static_assert(is_same<int, decltype(0)>::value == true, "");
12711 static_assert(is_same<int, decltype(c)>::value == false, "");
12712 static_assert(is_same<int, decltype(v)>::value == false, "");
12713 auto ac = c;
12714 auto av = v;
12715 auto sumi = ac + av + 'x';
12716 auto sumf = ac + av + 1.0;
12717 static_assert(is_same<int, decltype(ac)>::value == true, "");
12718 static_assert(is_same<int, decltype(av)>::value == true, "");
12719 static_assert(is_same<int, decltype(sumi)>::value == true, "");
12720 static_assert(is_same<int, decltype(sumf)>::value == false, "");
12721 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
12722 return (sumf > 0.0) ? sumi : add(c, v);
12727 namespace test_noexcept
12730 int f() { return 0; }
12731 int g() noexcept { return 0; }
12733 static_assert(noexcept(f()) == false, "");
12734 static_assert(noexcept(g()) == true, "");
12738 namespace test_constexpr
12741 template < typename CharT >
12742 unsigned long constexpr
12743 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
12745 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
12748 template < typename CharT >
12749 unsigned long constexpr
12750 strlen_c(const CharT *const s) noexcept
12752 return strlen_c_r(s, 0UL);
12755 static_assert(strlen_c("") == 0UL, "");
12756 static_assert(strlen_c("1") == 1UL, "");
12757 static_assert(strlen_c("example") == 7UL, "");
12758 static_assert(strlen_c("another\0example") == 7UL, "");
12762 namespace test_rvalue_references
12765 template < int N >
12766 struct answer
12768 static constexpr int value = N;
12771 answer<1> f(int&) { return answer<1>(); }
12772 answer<2> f(const int&) { return answer<2>(); }
12773 answer<3> f(int&&) { return answer<3>(); }
12775 void
12776 test()
12778 int i = 0;
12779 const int c = 0;
12780 static_assert(decltype(f(i))::value == 1, "");
12781 static_assert(decltype(f(c))::value == 2, "");
12782 static_assert(decltype(f(0))::value == 3, "");
12787 namespace test_uniform_initialization
12790 struct test
12792 static const int zero {};
12793 static const int one {1};
12796 static_assert(test::zero == 0, "");
12797 static_assert(test::one == 1, "");
12801 namespace test_lambdas
12804 void
12805 test1()
12807 auto lambda1 = [](){};
12808 auto lambda2 = lambda1;
12809 lambda1();
12810 lambda2();
12814 test2()
12816 auto a = [](int i, int j){ return i + j; }(1, 2);
12817 auto b = []() -> int { return '0'; }();
12818 auto c = [=](){ return a + b; }();
12819 auto d = [&](){ return c; }();
12820 auto e = [a, &b](int x) mutable {
12821 const auto identity = [](int y){ return y; };
12822 for (auto i = 0; i < a; ++i)
12823 a += b--;
12824 return x + identity(a + b);
12825 }(0);
12826 return a + b + c + d + e;
12830 test3()
12832 const auto nullary = [](){ return 0; };
12833 const auto unary = [](int x){ return x; };
12834 using nullary_t = decltype(nullary);
12835 using unary_t = decltype(unary);
12836 const auto higher1st = [](nullary_t f){ return f(); };
12837 const auto higher2nd = [unary](nullary_t f1){
12838 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
12840 return higher1st(nullary) + higher2nd(nullary)(unary);
12845 namespace test_variadic_templates
12848 template <int...>
12849 struct sum;
12851 template <int N0, int... N1toN>
12852 struct sum<N0, N1toN...>
12854 static constexpr auto value = N0 + sum<N1toN...>::value;
12857 template <>
12858 struct sum<>
12860 static constexpr auto value = 0;
12863 static_assert(sum<>::value == 0, "");
12864 static_assert(sum<1>::value == 1, "");
12865 static_assert(sum<23>::value == 23, "");
12866 static_assert(sum<1, 2>::value == 3, "");
12867 static_assert(sum<5, 5, 11>::value == 21, "");
12868 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
12872 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
12873 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
12874 // because of this.
12875 namespace test_template_alias_sfinae
12878 struct foo {};
12880 template<typename T>
12881 using member = typename T::member_type;
12883 template<typename T>
12884 void func(...) {}
12886 template<typename T>
12887 void func(member<T>*) {}
12889 void test();
12891 void test() { func<foo>(0); }
12895 } // namespace cxx11
12897 #endif // __cplusplus >= 201103L
12901 _ACEOF
12902 if ac_fn_cxx_try_compile "$LINENO"; then :
12903 ax_cv_cxx_compile_cxx11=yes
12904 else
12905 ax_cv_cxx_compile_cxx11=no
12907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
12910 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
12911 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
12912 ac_success=yes
12915 if test x$ac_success = xno; then
12916 for alternative in ${ax_cxx_compile_alternatives}; do
12917 switch="-std=gnu++${alternative}"
12918 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
12920 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
12921 if eval \${$cachevar+:} false; then :
12922 $as_echo_n "(cached) " >&6
12923 else
12924 ac_save_CXX="$CXX"
12925 CXX="$CXX $switch"
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12930 // If the compiler admits that it is not ready for C++11, why torture it?
12931 // Hopefully, this will speed up the test.
12933 #ifndef __cplusplus
12935 #error "This is not a C++ compiler"
12937 #elif __cplusplus < 201103L
12939 #error "This is not a C++11 compiler"
12941 #else
12943 namespace cxx11
12946 namespace test_static_assert
12949 template <typename T>
12950 struct check
12952 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12957 namespace test_final_override
12960 struct Base
12962 virtual ~Base() {}
12963 virtual void f() {}
12966 struct Derived : public Base
12968 virtual ~Derived() override {}
12969 virtual void f() override {}
12974 namespace test_double_right_angle_brackets
12977 template < typename T >
12978 struct check {};
12980 typedef check<void> single_type;
12981 typedef check<check<void>> double_type;
12982 typedef check<check<check<void>>> triple_type;
12983 typedef check<check<check<check<void>>>> quadruple_type;
12987 namespace test_decltype
12993 int a = 1;
12994 decltype(a) b = 2;
12995 return a + b;
13000 namespace test_type_deduction
13003 template < typename T1, typename T2 >
13004 struct is_same
13006 static const bool value = false;
13009 template < typename T >
13010 struct is_same<T, T>
13012 static const bool value = true;
13015 template < typename T1, typename T2 >
13016 auto
13017 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13019 return a1 + a2;
13023 test(const int c, volatile int v)
13025 static_assert(is_same<int, decltype(0)>::value == true, "");
13026 static_assert(is_same<int, decltype(c)>::value == false, "");
13027 static_assert(is_same<int, decltype(v)>::value == false, "");
13028 auto ac = c;
13029 auto av = v;
13030 auto sumi = ac + av + 'x';
13031 auto sumf = ac + av + 1.0;
13032 static_assert(is_same<int, decltype(ac)>::value == true, "");
13033 static_assert(is_same<int, decltype(av)>::value == true, "");
13034 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13035 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13036 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13037 return (sumf > 0.0) ? sumi : add(c, v);
13042 namespace test_noexcept
13045 int f() { return 0; }
13046 int g() noexcept { return 0; }
13048 static_assert(noexcept(f()) == false, "");
13049 static_assert(noexcept(g()) == true, "");
13053 namespace test_constexpr
13056 template < typename CharT >
13057 unsigned long constexpr
13058 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13060 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13063 template < typename CharT >
13064 unsigned long constexpr
13065 strlen_c(const CharT *const s) noexcept
13067 return strlen_c_r(s, 0UL);
13070 static_assert(strlen_c("") == 0UL, "");
13071 static_assert(strlen_c("1") == 1UL, "");
13072 static_assert(strlen_c("example") == 7UL, "");
13073 static_assert(strlen_c("another\0example") == 7UL, "");
13077 namespace test_rvalue_references
13080 template < int N >
13081 struct answer
13083 static constexpr int value = N;
13086 answer<1> f(int&) { return answer<1>(); }
13087 answer<2> f(const int&) { return answer<2>(); }
13088 answer<3> f(int&&) { return answer<3>(); }
13090 void
13091 test()
13093 int i = 0;
13094 const int c = 0;
13095 static_assert(decltype(f(i))::value == 1, "");
13096 static_assert(decltype(f(c))::value == 2, "");
13097 static_assert(decltype(f(0))::value == 3, "");
13102 namespace test_uniform_initialization
13105 struct test
13107 static const int zero {};
13108 static const int one {1};
13111 static_assert(test::zero == 0, "");
13112 static_assert(test::one == 1, "");
13116 namespace test_lambdas
13119 void
13120 test1()
13122 auto lambda1 = [](){};
13123 auto lambda2 = lambda1;
13124 lambda1();
13125 lambda2();
13129 test2()
13131 auto a = [](int i, int j){ return i + j; }(1, 2);
13132 auto b = []() -> int { return '0'; }();
13133 auto c = [=](){ return a + b; }();
13134 auto d = [&](){ return c; }();
13135 auto e = [a, &b](int x) mutable {
13136 const auto identity = [](int y){ return y; };
13137 for (auto i = 0; i < a; ++i)
13138 a += b--;
13139 return x + identity(a + b);
13140 }(0);
13141 return a + b + c + d + e;
13145 test3()
13147 const auto nullary = [](){ return 0; };
13148 const auto unary = [](int x){ return x; };
13149 using nullary_t = decltype(nullary);
13150 using unary_t = decltype(unary);
13151 const auto higher1st = [](nullary_t f){ return f(); };
13152 const auto higher2nd = [unary](nullary_t f1){
13153 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13155 return higher1st(nullary) + higher2nd(nullary)(unary);
13160 namespace test_variadic_templates
13163 template <int...>
13164 struct sum;
13166 template <int N0, int... N1toN>
13167 struct sum<N0, N1toN...>
13169 static constexpr auto value = N0 + sum<N1toN...>::value;
13172 template <>
13173 struct sum<>
13175 static constexpr auto value = 0;
13178 static_assert(sum<>::value == 0, "");
13179 static_assert(sum<1>::value == 1, "");
13180 static_assert(sum<23>::value == 23, "");
13181 static_assert(sum<1, 2>::value == 3, "");
13182 static_assert(sum<5, 5, 11>::value == 21, "");
13183 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13187 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13188 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13189 // because of this.
13190 namespace test_template_alias_sfinae
13193 struct foo {};
13195 template<typename T>
13196 using member = typename T::member_type;
13198 template<typename T>
13199 void func(...) {}
13201 template<typename T>
13202 void func(member<T>*) {}
13204 void test();
13206 void test() { func<foo>(0); }
13210 } // namespace cxx11
13212 #endif // __cplusplus >= 201103L
13216 _ACEOF
13217 if ac_fn_cxx_try_compile "$LINENO"; then :
13218 eval $cachevar=yes
13219 else
13220 eval $cachevar=no
13222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 CXX="$ac_save_CXX"
13225 eval ac_res=\$$cachevar
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13227 $as_echo "$ac_res" >&6; }
13228 if eval test x\$$cachevar = xyes; then
13229 CXX="$CXX $switch"
13230 if test -n "$CXXCPP" ; then
13231 CXXCPP="$CXXCPP $switch"
13233 ac_success=yes
13234 break
13236 done
13239 if test x$ac_success = xno; then
13240 for alternative in ${ax_cxx_compile_alternatives}; do
13241 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
13242 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
13244 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
13245 if eval \${$cachevar+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 ac_save_CXX="$CXX"
13249 CXX="$CXX $switch"
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13254 // If the compiler admits that it is not ready for C++11, why torture it?
13255 // Hopefully, this will speed up the test.
13257 #ifndef __cplusplus
13259 #error "This is not a C++ compiler"
13261 #elif __cplusplus < 201103L
13263 #error "This is not a C++11 compiler"
13265 #else
13267 namespace cxx11
13270 namespace test_static_assert
13273 template <typename T>
13274 struct check
13276 static_assert(sizeof(int) <= sizeof(T), "not big enough");
13281 namespace test_final_override
13284 struct Base
13286 virtual ~Base() {}
13287 virtual void f() {}
13290 struct Derived : public Base
13292 virtual ~Derived() override {}
13293 virtual void f() override {}
13298 namespace test_double_right_angle_brackets
13301 template < typename T >
13302 struct check {};
13304 typedef check<void> single_type;
13305 typedef check<check<void>> double_type;
13306 typedef check<check<check<void>>> triple_type;
13307 typedef check<check<check<check<void>>>> quadruple_type;
13311 namespace test_decltype
13317 int a = 1;
13318 decltype(a) b = 2;
13319 return a + b;
13324 namespace test_type_deduction
13327 template < typename T1, typename T2 >
13328 struct is_same
13330 static const bool value = false;
13333 template < typename T >
13334 struct is_same<T, T>
13336 static const bool value = true;
13339 template < typename T1, typename T2 >
13340 auto
13341 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13343 return a1 + a2;
13347 test(const int c, volatile int v)
13349 static_assert(is_same<int, decltype(0)>::value == true, "");
13350 static_assert(is_same<int, decltype(c)>::value == false, "");
13351 static_assert(is_same<int, decltype(v)>::value == false, "");
13352 auto ac = c;
13353 auto av = v;
13354 auto sumi = ac + av + 'x';
13355 auto sumf = ac + av + 1.0;
13356 static_assert(is_same<int, decltype(ac)>::value == true, "");
13357 static_assert(is_same<int, decltype(av)>::value == true, "");
13358 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13359 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13360 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13361 return (sumf > 0.0) ? sumi : add(c, v);
13366 namespace test_noexcept
13369 int f() { return 0; }
13370 int g() noexcept { return 0; }
13372 static_assert(noexcept(f()) == false, "");
13373 static_assert(noexcept(g()) == true, "");
13377 namespace test_constexpr
13380 template < typename CharT >
13381 unsigned long constexpr
13382 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13384 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13387 template < typename CharT >
13388 unsigned long constexpr
13389 strlen_c(const CharT *const s) noexcept
13391 return strlen_c_r(s, 0UL);
13394 static_assert(strlen_c("") == 0UL, "");
13395 static_assert(strlen_c("1") == 1UL, "");
13396 static_assert(strlen_c("example") == 7UL, "");
13397 static_assert(strlen_c("another\0example") == 7UL, "");
13401 namespace test_rvalue_references
13404 template < int N >
13405 struct answer
13407 static constexpr int value = N;
13410 answer<1> f(int&) { return answer<1>(); }
13411 answer<2> f(const int&) { return answer<2>(); }
13412 answer<3> f(int&&) { return answer<3>(); }
13414 void
13415 test()
13417 int i = 0;
13418 const int c = 0;
13419 static_assert(decltype(f(i))::value == 1, "");
13420 static_assert(decltype(f(c))::value == 2, "");
13421 static_assert(decltype(f(0))::value == 3, "");
13426 namespace test_uniform_initialization
13429 struct test
13431 static const int zero {};
13432 static const int one {1};
13435 static_assert(test::zero == 0, "");
13436 static_assert(test::one == 1, "");
13440 namespace test_lambdas
13443 void
13444 test1()
13446 auto lambda1 = [](){};
13447 auto lambda2 = lambda1;
13448 lambda1();
13449 lambda2();
13453 test2()
13455 auto a = [](int i, int j){ return i + j; }(1, 2);
13456 auto b = []() -> int { return '0'; }();
13457 auto c = [=](){ return a + b; }();
13458 auto d = [&](){ return c; }();
13459 auto e = [a, &b](int x) mutable {
13460 const auto identity = [](int y){ return y; };
13461 for (auto i = 0; i < a; ++i)
13462 a += b--;
13463 return x + identity(a + b);
13464 }(0);
13465 return a + b + c + d + e;
13469 test3()
13471 const auto nullary = [](){ return 0; };
13472 const auto unary = [](int x){ return x; };
13473 using nullary_t = decltype(nullary);
13474 using unary_t = decltype(unary);
13475 const auto higher1st = [](nullary_t f){ return f(); };
13476 const auto higher2nd = [unary](nullary_t f1){
13477 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13479 return higher1st(nullary) + higher2nd(nullary)(unary);
13484 namespace test_variadic_templates
13487 template <int...>
13488 struct sum;
13490 template <int N0, int... N1toN>
13491 struct sum<N0, N1toN...>
13493 static constexpr auto value = N0 + sum<N1toN...>::value;
13496 template <>
13497 struct sum<>
13499 static constexpr auto value = 0;
13502 static_assert(sum<>::value == 0, "");
13503 static_assert(sum<1>::value == 1, "");
13504 static_assert(sum<23>::value == 23, "");
13505 static_assert(sum<1, 2>::value == 3, "");
13506 static_assert(sum<5, 5, 11>::value == 21, "");
13507 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13511 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13512 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13513 // because of this.
13514 namespace test_template_alias_sfinae
13517 struct foo {};
13519 template<typename T>
13520 using member = typename T::member_type;
13522 template<typename T>
13523 void func(...) {}
13525 template<typename T>
13526 void func(member<T>*) {}
13528 void test();
13530 void test() { func<foo>(0); }
13534 } // namespace cxx11
13536 #endif // __cplusplus >= 201103L
13540 _ACEOF
13541 if ac_fn_cxx_try_compile "$LINENO"; then :
13542 eval $cachevar=yes
13543 else
13544 eval $cachevar=no
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 CXX="$ac_save_CXX"
13549 eval ac_res=\$$cachevar
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13551 $as_echo "$ac_res" >&6; }
13552 if eval test x\$$cachevar = xyes; then
13553 CXX="$CXX $switch"
13554 if test -n "$CXXCPP" ; then
13555 CXXCPP="$CXXCPP $switch"
13557 ac_success=yes
13558 break
13560 done
13561 if test x$ac_success = xyes; then
13562 break
13564 done
13567 ac_ext=cpp
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13573 if test x$ax_cxx_compile_cxx11_required = xtrue; then
13574 if test x$ac_success = xno; then
13575 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
13578 if test x$ac_success = xno; then
13579 HAVE_CXX11=0
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
13581 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
13582 else
13583 HAVE_CXX11=1
13585 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
13591 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
13592 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
13594 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
13595 if ${gold_cv_hash_off_t+:} false; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 CXXFLAGS_hold=$CXXFLAGS
13599 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13603 #include <sys/types.h>
13604 #include <tr1/unordered_map>
13605 std::tr1::hash<off_t> h;
13607 _ACEOF
13608 if ac_fn_cxx_try_compile "$LINENO"; then :
13609 gold_cv_hash_off_t=yes
13610 else
13611 gold_cv_hash_off_t=no
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 CXXFLAGS=$CXXFLAGS_hold
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
13617 $as_echo "$gold_cv_hash_off_t" >&6; }
13618 if test "$gold_cv_hash_off_t" = "yes"; then
13620 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
13624 # gcc 4.3.0 doesn't recognize the printf attribute on a template
13625 # function. Check for that. This is gcc bug 35546. This test can
13626 # probably be removed after the bug has been fixed for a while.
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
13628 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
13629 if ${gold_cv_template_attribute+:} false; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 template<typename T> extern void foo(const char*, ...)
13636 __attribute__ ((__format__ (__printf__, 1, 2)));
13637 template<typename T> void foo(const char* format, ...) {}
13638 void bar() { foo<int>("%s\n", "foo"); }
13640 _ACEOF
13641 if ac_fn_cxx_try_compile "$LINENO"; then :
13642 gold_cv_template_attribute=yes
13643 else
13644 gold_cv_template_attribute=no
13646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
13649 $as_echo "$gold_cv_template_attribute" >&6; }
13650 if test "$gold_cv_template_attribute" = "yes"; then
13652 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
13657 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
13658 if ${gold_cv_stat_st_mtim+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13664 #include <sys/stat.h>
13665 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
13668 main ()
13672 return 0;
13674 _ACEOF
13675 if ac_fn_cxx_try_compile "$LINENO"; then :
13676 gold_cv_stat_st_mtim=yes
13677 else
13678 gold_cv_stat_st_mtim=no
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
13683 $as_echo "$gold_cv_stat_st_mtim" >&6; }
13684 if test "$gold_cv_stat_st_mtim" = "yes"; then
13686 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
13690 ac_ext=c
13691 ac_cpp='$CPP $CPPFLAGS'
13692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13697 for ac_header in locale.h
13698 do :
13699 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13700 if test "x$ac_cv_header_locale_h" = xyes; then :
13701 cat >>confdefs.h <<_ACEOF
13702 #define HAVE_LOCALE_H 1
13703 _ACEOF
13707 done
13709 for ac_func in setlocale
13710 do :
13711 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13712 if test "x$ac_cv_func_setlocale" = xyes; then :
13713 cat >>confdefs.h <<_ACEOF
13714 #define HAVE_SETLOCALE 1
13715 _ACEOF
13718 done
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13722 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13723 if ${am_cv_val_LC_MESSAGES+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <locale.h>
13730 main ()
13732 return LC_MESSAGES
13734 return 0;
13736 _ACEOF
13737 if ac_fn_c_try_link "$LINENO"; then :
13738 am_cv_val_LC_MESSAGES=yes
13739 else
13740 am_cv_val_LC_MESSAGES=no
13742 rm -f core conftest.err conftest.$ac_objext \
13743 conftest$ac_exeext conftest.$ac_ext
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13746 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13747 if test $am_cv_val_LC_MESSAGES = yes; then
13749 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13756 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13757 # Check whether --enable-maintainer-mode was given.
13758 if test "${enable_maintainer_mode+set}" = set; then :
13759 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13760 else
13761 USE_MAINTAINER_MODE=no
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13765 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13766 if test $USE_MAINTAINER_MODE = yes; then
13767 MAINTAINER_MODE_TRUE=
13768 MAINTAINER_MODE_FALSE='#'
13769 else
13770 MAINTAINER_MODE_TRUE='#'
13771 MAINTAINER_MODE_FALSE=
13774 MAINT=$MAINTAINER_MODE_TRUE
13778 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
13780 cat >confcache <<\_ACEOF
13781 # This file is a shell script that caches the results of configure
13782 # tests run on this system so they can be shared between configure
13783 # scripts and configure runs, see configure's option --config-cache.
13784 # It is not useful on other systems. If it contains results you don't
13785 # want to keep, you may remove or edit it.
13787 # config.status only pays attention to the cache file if you give it
13788 # the --recheck option to rerun configure.
13790 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13791 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13792 # following values.
13794 _ACEOF
13796 # The following way of writing the cache mishandles newlines in values,
13797 # but we know of no workaround that is simple, portable, and efficient.
13798 # So, we kill variables containing newlines.
13799 # Ultrix sh set writes to stderr and can't be redirected directly,
13800 # and sets the high bit in the cache file unless we assign to the vars.
13802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13803 eval ac_val=\$$ac_var
13804 case $ac_val in #(
13805 *${as_nl}*)
13806 case $ac_var in #(
13807 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13809 esac
13810 case $ac_var in #(
13811 _ | IFS | as_nl) ;; #(
13812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13813 *) { eval $ac_var=; unset $ac_var;} ;;
13814 esac ;;
13815 esac
13816 done
13818 (set) 2>&1 |
13819 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13820 *${as_nl}ac_space=\ *)
13821 # `set' does not quote correctly, so add quotes: double-quote
13822 # substitution turns \\\\ into \\, and sed turns \\ into \.
13823 sed -n \
13824 "s/'/'\\\\''/g;
13825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13826 ;; #(
13828 # `set' quotes correctly as required by POSIX, so do not add quotes.
13829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13831 esac |
13832 sort
13834 sed '
13835 /^ac_cv_env_/b end
13836 t clear
13837 :clear
13838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13839 t end
13840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13841 :end' >>confcache
13842 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13843 if test -w "$cache_file"; then
13844 if test "x$cache_file" != "x/dev/null"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13846 $as_echo "$as_me: updating cache $cache_file" >&6;}
13847 if test ! -f "$cache_file" || test -h "$cache_file"; then
13848 cat confcache >"$cache_file"
13849 else
13850 case $cache_file in #(
13851 */* | ?:*)
13852 mv -f confcache "$cache_file"$$ &&
13853 mv -f "$cache_file"$$ "$cache_file" ;; #(
13855 mv -f confcache "$cache_file" ;;
13856 esac
13859 else
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13861 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13864 rm -f confcache
13866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13867 # Let make expand exec_prefix.
13868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13870 DEFS=-DHAVE_CONFIG_H
13872 ac_libobjs=
13873 ac_ltlibobjs=
13874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13875 # 1. Remove the extension, and $U if already installed.
13876 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13877 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13878 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13879 # will be set to the directory where LIBOBJS objects are built.
13880 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13881 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13882 done
13883 LIBOBJS=$ac_libobjs
13885 LTLIBOBJS=$ac_ltlibobjs
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13889 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13890 if test -n "$am_sleep_pid"; then
13891 # Hide warnings about reused PIDs.
13892 wait $am_sleep_pid 2>/dev/null
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13895 $as_echo "done" >&6; }
13896 if test -n "$EXEEXT"; then
13897 am__EXEEXT_TRUE=
13898 am__EXEEXT_FALSE='#'
13899 else
13900 am__EXEEXT_TRUE='#'
13901 am__EXEEXT_FALSE=
13904 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13905 as_fn_error $? "conditional \"AMDEP\" was never defined.
13906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13909 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13912 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
13913 as_fn_error $? "conditional \"PLUGINS\" was never defined.
13914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13916 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
13917 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
13918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13920 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
13921 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
13922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13924 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
13925 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
13926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13928 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
13929 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
13930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13932 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
13933 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
13934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13936 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
13937 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
13938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13940 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
13941 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
13942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13944 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
13945 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
13946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13948 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
13949 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
13950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13952 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
13953 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
13954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13956 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
13957 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
13958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13960 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13961 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13964 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13965 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13969 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
13970 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
13971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13973 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
13974 as_fn_error $? "conditional \"GCC\" was never defined.
13975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13977 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
13978 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
13979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13981 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
13982 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
13983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13985 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
13986 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
13987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13989 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
13990 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
13991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13993 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
13994 as_fn_error $? "conditional \"GCC9\" was never defined.
13995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13997 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
13998 as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
13999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14001 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
14002 as_fn_error $? "conditional \"TLS\" was never defined.
14003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14005 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
14006 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
14007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14009 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
14010 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
14011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14013 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
14014 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
14015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14017 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
14018 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
14019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14021 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
14022 as_fn_error $? "conditional \"IFUNC\" was never defined.
14023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14025 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
14026 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
14027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14029 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14030 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14033 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
14034 as_fn_error $? "conditional \"THREADS\" was never defined.
14035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14037 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
14038 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
14039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14041 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
14042 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
14043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14045 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14046 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14050 : "${CONFIG_STATUS=./config.status}"
14051 ac_write_fail=0
14052 ac_clean_files_save=$ac_clean_files
14053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14055 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14056 as_write_fail=0
14057 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14058 #! $SHELL
14059 # Generated by $as_me.
14060 # Run this file to recreate the current configuration.
14061 # Compiler output produced by configure, useful for debugging
14062 # configure, is in config.log if it exists.
14064 debug=false
14065 ac_cs_recheck=false
14066 ac_cs_silent=false
14068 SHELL=\${CONFIG_SHELL-$SHELL}
14069 export SHELL
14070 _ASEOF
14071 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14072 ## -------------------- ##
14073 ## M4sh Initialization. ##
14074 ## -------------------- ##
14076 # Be more Bourne compatible
14077 DUALCASE=1; export DUALCASE # for MKS sh
14078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14079 emulate sh
14080 NULLCMD=:
14081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14082 # is contrary to our usage. Disable this feature.
14083 alias -g '${1+"$@"}'='"$@"'
14084 setopt NO_GLOB_SUBST
14085 else
14086 case `(set -o) 2>/dev/null` in #(
14087 *posix*) :
14088 set -o posix ;; #(
14089 *) :
14091 esac
14095 as_nl='
14097 export as_nl
14098 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14099 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14102 # Prefer a ksh shell builtin over an external printf program on Solaris,
14103 # but without wasting forks for bash or zsh.
14104 if test -z "$BASH_VERSION$ZSH_VERSION" \
14105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14106 as_echo='print -r --'
14107 as_echo_n='print -rn --'
14108 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14109 as_echo='printf %s\n'
14110 as_echo_n='printf %s'
14111 else
14112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14114 as_echo_n='/usr/ucb/echo -n'
14115 else
14116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14117 as_echo_n_body='eval
14118 arg=$1;
14119 case $arg in #(
14120 *"$as_nl"*)
14121 expr "X$arg" : "X\\(.*\\)$as_nl";
14122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14123 esac;
14124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14126 export as_echo_n_body
14127 as_echo_n='sh -c $as_echo_n_body as_echo'
14129 export as_echo_body
14130 as_echo='sh -c $as_echo_body as_echo'
14133 # The user is always right.
14134 if test "${PATH_SEPARATOR+set}" != set; then
14135 PATH_SEPARATOR=:
14136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14138 PATH_SEPARATOR=';'
14143 # IFS
14144 # We need space, tab and new line, in precisely that order. Quoting is
14145 # there to prevent editors from complaining about space-tab.
14146 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14147 # splitting by setting IFS to empty value.)
14148 IFS=" "" $as_nl"
14150 # Find who we are. Look in the path if we contain no directory separator.
14151 as_myself=
14152 case $0 in #((
14153 *[\\/]* ) as_myself=$0 ;;
14154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
14159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14160 done
14161 IFS=$as_save_IFS
14164 esac
14165 # We did not find ourselves, most probably we were run as `sh COMMAND'
14166 # in which case we are not to be found in the path.
14167 if test "x$as_myself" = x; then
14168 as_myself=$0
14170 if test ! -f "$as_myself"; then
14171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14172 exit 1
14175 # Unset variables that we do not need and which cause bugs (e.g. in
14176 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14177 # suppresses any "Segmentation fault" message there. '((' could
14178 # trigger a bug in pdksh 5.2.14.
14179 for as_var in BASH_ENV ENV MAIL MAILPATH
14180 do eval test x\${$as_var+set} = xset \
14181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14182 done
14183 PS1='$ '
14184 PS2='> '
14185 PS4='+ '
14187 # NLS nuisances.
14188 LC_ALL=C
14189 export LC_ALL
14190 LANGUAGE=C
14191 export LANGUAGE
14193 # CDPATH.
14194 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14198 # ----------------------------------------
14199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14201 # script with STATUS, using 1 if that was 0.
14202 as_fn_error ()
14204 as_status=$1; test $as_status -eq 0 && as_status=1
14205 if test "$4"; then
14206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14209 $as_echo "$as_me: error: $2" >&2
14210 as_fn_exit $as_status
14211 } # as_fn_error
14214 # as_fn_set_status STATUS
14215 # -----------------------
14216 # Set $? to STATUS, without forking.
14217 as_fn_set_status ()
14219 return $1
14220 } # as_fn_set_status
14222 # as_fn_exit STATUS
14223 # -----------------
14224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14225 as_fn_exit ()
14227 set +e
14228 as_fn_set_status $1
14229 exit $1
14230 } # as_fn_exit
14232 # as_fn_unset VAR
14233 # ---------------
14234 # Portably unset VAR.
14235 as_fn_unset ()
14237 { eval $1=; unset $1;}
14239 as_unset=as_fn_unset
14240 # as_fn_append VAR VALUE
14241 # ----------------------
14242 # Append the text in VALUE to the end of the definition contained in VAR. Take
14243 # advantage of any shell optimizations that allow amortized linear growth over
14244 # repeated appends, instead of the typical quadratic growth present in naive
14245 # implementations.
14246 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14247 eval 'as_fn_append ()
14249 eval $1+=\$2
14251 else
14252 as_fn_append ()
14254 eval $1=\$$1\$2
14256 fi # as_fn_append
14258 # as_fn_arith ARG...
14259 # ------------------
14260 # Perform arithmetic evaluation on the ARGs, and store the result in the
14261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14262 # must be portable across $(()) and expr.
14263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14264 eval 'as_fn_arith ()
14266 as_val=$(( $* ))
14268 else
14269 as_fn_arith ()
14271 as_val=`expr "$@" || test $? -eq 1`
14273 fi # as_fn_arith
14276 if expr a : '\(a\)' >/dev/null 2>&1 &&
14277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14278 as_expr=expr
14279 else
14280 as_expr=false
14283 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14284 as_basename=basename
14285 else
14286 as_basename=false
14289 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14290 as_dirname=dirname
14291 else
14292 as_dirname=false
14295 as_me=`$as_basename -- "$0" ||
14296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14297 X"$0" : 'X\(//\)$' \| \
14298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14299 $as_echo X/"$0" |
14300 sed '/^.*\/\([^/][^/]*\)\/*$/{
14301 s//\1/
14304 /^X\/\(\/\/\)$/{
14305 s//\1/
14308 /^X\/\(\/\).*/{
14309 s//\1/
14312 s/.*/./; q'`
14314 # Avoid depending upon Character Ranges.
14315 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14316 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14317 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14318 as_cr_digits='0123456789'
14319 as_cr_alnum=$as_cr_Letters$as_cr_digits
14321 ECHO_C= ECHO_N= ECHO_T=
14322 case `echo -n x` in #(((((
14323 -n*)
14324 case `echo 'xy\c'` in
14325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14326 xy) ECHO_C='\c';;
14327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14328 ECHO_T=' ';;
14329 esac;;
14331 ECHO_N='-n';;
14332 esac
14334 rm -f conf$$ conf$$.exe conf$$.file
14335 if test -d conf$$.dir; then
14336 rm -f conf$$.dir/conf$$.file
14337 else
14338 rm -f conf$$.dir
14339 mkdir conf$$.dir 2>/dev/null
14341 if (echo >conf$$.file) 2>/dev/null; then
14342 if ln -s conf$$.file conf$$ 2>/dev/null; then
14343 as_ln_s='ln -s'
14344 # ... but there are two gotchas:
14345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14347 # In both cases, we have to default to `cp -pR'.
14348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14349 as_ln_s='cp -pR'
14350 elif ln conf$$.file conf$$ 2>/dev/null; then
14351 as_ln_s=ln
14352 else
14353 as_ln_s='cp -pR'
14355 else
14356 as_ln_s='cp -pR'
14358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14359 rmdir conf$$.dir 2>/dev/null
14362 # as_fn_mkdir_p
14363 # -------------
14364 # Create "$as_dir" as a directory, including parents if necessary.
14365 as_fn_mkdir_p ()
14368 case $as_dir in #(
14369 -*) as_dir=./$as_dir;;
14370 esac
14371 test -d "$as_dir" || eval $as_mkdir_p || {
14372 as_dirs=
14373 while :; do
14374 case $as_dir in #(
14375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14376 *) as_qdir=$as_dir;;
14377 esac
14378 as_dirs="'$as_qdir' $as_dirs"
14379 as_dir=`$as_dirname -- "$as_dir" ||
14380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14381 X"$as_dir" : 'X\(//\)[^/]' \| \
14382 X"$as_dir" : 'X\(//\)$' \| \
14383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14384 $as_echo X"$as_dir" |
14385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14386 s//\1/
14389 /^X\(\/\/\)[^/].*/{
14390 s//\1/
14393 /^X\(\/\/\)$/{
14394 s//\1/
14397 /^X\(\/\).*/{
14398 s//\1/
14401 s/.*/./; q'`
14402 test -d "$as_dir" && break
14403 done
14404 test -z "$as_dirs" || eval "mkdir $as_dirs"
14405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14408 } # as_fn_mkdir_p
14409 if mkdir -p . 2>/dev/null; then
14410 as_mkdir_p='mkdir -p "$as_dir"'
14411 else
14412 test -d ./-p && rmdir ./-p
14413 as_mkdir_p=false
14417 # as_fn_executable_p FILE
14418 # -----------------------
14419 # Test if FILE is an executable regular file.
14420 as_fn_executable_p ()
14422 test -f "$1" && test -x "$1"
14423 } # as_fn_executable_p
14424 as_test_x='test -x'
14425 as_executable_p=as_fn_executable_p
14427 # Sed expression to map a string onto a valid CPP name.
14428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14430 # Sed expression to map a string onto a valid variable name.
14431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14434 exec 6>&1
14435 ## ----------------------------------- ##
14436 ## Main body of $CONFIG_STATUS script. ##
14437 ## ----------------------------------- ##
14438 _ASEOF
14439 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14442 # Save the log message, to keep $0 and so on meaningful, and to
14443 # report actual input values of CONFIG_FILES etc. instead of their
14444 # values after options handling.
14445 ac_log="
14446 This file was extended by gold $as_me 0.1, which was
14447 generated by GNU Autoconf 2.69. Invocation command line was
14449 CONFIG_FILES = $CONFIG_FILES
14450 CONFIG_HEADERS = $CONFIG_HEADERS
14451 CONFIG_LINKS = $CONFIG_LINKS
14452 CONFIG_COMMANDS = $CONFIG_COMMANDS
14453 $ $0 $@
14455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14458 _ACEOF
14460 case $ac_config_files in *"
14461 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14462 esac
14464 case $ac_config_headers in *"
14465 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14466 esac
14469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14470 # Files that config.status was made for.
14471 config_files="$ac_config_files"
14472 config_headers="$ac_config_headers"
14473 config_commands="$ac_config_commands"
14475 _ACEOF
14477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14478 ac_cs_usage="\
14479 \`$as_me' instantiates files and other configuration actions
14480 from templates according to the current configuration. Unless the files
14481 and actions are specified as TAGs, all are instantiated by default.
14483 Usage: $0 [OPTION]... [TAG]...
14485 -h, --help print this help, then exit
14486 -V, --version print version number and configuration settings, then exit
14487 --config print configuration, then exit
14488 -q, --quiet, --silent
14489 do not print progress messages
14490 -d, --debug don't remove temporary files
14491 --recheck update $as_me by reconfiguring in the same conditions
14492 --file=FILE[:TEMPLATE]
14493 instantiate the configuration file FILE
14494 --header=FILE[:TEMPLATE]
14495 instantiate the configuration header FILE
14497 Configuration files:
14498 $config_files
14500 Configuration headers:
14501 $config_headers
14503 Configuration commands:
14504 $config_commands
14506 Report bugs to the package provider."
14508 _ACEOF
14509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14510 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14511 ac_cs_version="\\
14512 gold config.status 0.1
14513 configured by $0, generated by GNU Autoconf 2.69,
14514 with options \\"\$ac_cs_config\\"
14516 Copyright (C) 2012 Free Software Foundation, Inc.
14517 This config.status script is free software; the Free Software Foundation
14518 gives unlimited permission to copy, distribute and modify it."
14520 ac_pwd='$ac_pwd'
14521 srcdir='$srcdir'
14522 INSTALL='$INSTALL'
14523 MKDIR_P='$MKDIR_P'
14524 AWK='$AWK'
14525 test -n "\$AWK" || AWK=awk
14526 _ACEOF
14528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14529 # The default lists apply if the user does not specify any file.
14530 ac_need_defaults=:
14531 while test $# != 0
14533 case $1 in
14534 --*=?*)
14535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14537 ac_shift=:
14539 --*=)
14540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14541 ac_optarg=
14542 ac_shift=:
14545 ac_option=$1
14546 ac_optarg=$2
14547 ac_shift=shift
14549 esac
14551 case $ac_option in
14552 # Handling of the options.
14553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14554 ac_cs_recheck=: ;;
14555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14556 $as_echo "$ac_cs_version"; exit ;;
14557 --config | --confi | --conf | --con | --co | --c )
14558 $as_echo "$ac_cs_config"; exit ;;
14559 --debug | --debu | --deb | --de | --d | -d )
14560 debug=: ;;
14561 --file | --fil | --fi | --f )
14562 $ac_shift
14563 case $ac_optarg in
14564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14565 '') as_fn_error $? "missing file argument" ;;
14566 esac
14567 as_fn_append CONFIG_FILES " '$ac_optarg'"
14568 ac_need_defaults=false;;
14569 --header | --heade | --head | --hea )
14570 $ac_shift
14571 case $ac_optarg in
14572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14573 esac
14574 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14575 ac_need_defaults=false;;
14576 --he | --h)
14577 # Conflict between --help and --header
14578 as_fn_error $? "ambiguous option: \`$1'
14579 Try \`$0 --help' for more information.";;
14580 --help | --hel | -h )
14581 $as_echo "$ac_cs_usage"; exit ;;
14582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14584 ac_cs_silent=: ;;
14586 # This is an error.
14587 -*) as_fn_error $? "unrecognized option: \`$1'
14588 Try \`$0 --help' for more information." ;;
14590 *) as_fn_append ac_config_targets " $1"
14591 ac_need_defaults=false ;;
14593 esac
14594 shift
14595 done
14597 ac_configure_extra_args=
14599 if $ac_cs_silent; then
14600 exec 6>/dev/null
14601 ac_configure_extra_args="$ac_configure_extra_args --silent"
14604 _ACEOF
14605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 if \$ac_cs_recheck; then
14607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14608 shift
14609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14610 CONFIG_SHELL='$SHELL'
14611 export CONFIG_SHELL
14612 exec "\$@"
14615 _ACEOF
14616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14617 exec 5>>config.log
14619 echo
14620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14621 ## Running $as_me. ##
14622 _ASBOX
14623 $as_echo "$ac_log"
14624 } >&5
14626 _ACEOF
14627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14629 # INIT-COMMANDS
14631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14632 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14633 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14634 # from automake.
14635 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14636 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14637 LINGUAS="${LINGUAS-%UNSET%}"
14639 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14640 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14641 # from automake.
14642 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14643 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14644 LINGUAS="${LINGUAS-%UNSET%}"
14647 _ACEOF
14649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14651 # Handling of arguments.
14652 for ac_config_target in $ac_config_targets
14654 case $ac_config_target in
14655 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14657 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14658 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
14659 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14660 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14661 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14663 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14664 esac
14665 done
14668 # If the user did not use the arguments to specify the items to instantiate,
14669 # then the envvar interface is used. Set only those that are not.
14670 # We use the long form for the default assignment because of an extremely
14671 # bizarre bug on SunOS 4.1.3.
14672 if $ac_need_defaults; then
14673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14674 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14675 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14678 # Have a temporary directory for convenience. Make it in the build tree
14679 # simply because there is no reason against having it here, and in addition,
14680 # creating and moving files from /tmp can sometimes cause problems.
14681 # Hook for its removal unless debugging.
14682 # Note that there is a small window in which the directory will not be cleaned:
14683 # after its creation but before its name has been assigned to `$tmp'.
14684 $debug ||
14686 tmp= ac_tmp=
14687 trap 'exit_status=$?
14688 : "${ac_tmp:=$tmp}"
14689 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14691 trap 'as_fn_exit 1' 1 2 13 15
14693 # Create a (secure) tmp directory for tmp files.
14696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14697 test -d "$tmp"
14698 } ||
14700 tmp=./conf$$-$RANDOM
14701 (umask 077 && mkdir "$tmp")
14702 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14703 ac_tmp=$tmp
14705 # Set up the scripts for CONFIG_FILES section.
14706 # No need to generate them if there are no CONFIG_FILES.
14707 # This happens for instance with `./config.status config.h'.
14708 if test -n "$CONFIG_FILES"; then
14711 ac_cr=`echo X | tr X '\015'`
14712 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14713 # But we know of no other shell where ac_cr would be empty at this
14714 # point, so we can use a bashism as a fallback.
14715 if test "x$ac_cr" = x; then
14716 eval ac_cr=\$\'\\r\'
14718 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14719 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14720 ac_cs_awk_cr='\\r'
14721 else
14722 ac_cs_awk_cr=$ac_cr
14725 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14726 _ACEOF
14730 echo "cat >conf$$subs.awk <<_ACEOF" &&
14731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14732 echo "_ACEOF"
14733 } >conf$$subs.sh ||
14734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14735 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14736 ac_delim='%!_!# '
14737 for ac_last_try in false false false false false :; do
14738 . ./conf$$subs.sh ||
14739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14742 if test $ac_delim_n = $ac_delim_num; then
14743 break
14744 elif $ac_last_try; then
14745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14746 else
14747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14749 done
14750 rm -f conf$$subs.sh
14752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14753 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14754 _ACEOF
14755 sed -n '
14757 s/^/S["/; s/!.*/"]=/
14760 s/^[^!]*!//
14761 :repl
14762 t repl
14763 s/'"$ac_delim"'$//
14764 t delim
14767 s/\(.\{148\}\)..*/\1/
14768 t more1
14769 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14772 b repl
14773 :more1
14774 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14777 s/.\{148\}//
14778 t nl
14779 :delim
14781 s/\(.\{148\}\)..*/\1/
14782 t more2
14783 s/["\\]/\\&/g; s/^/"/; s/$/"/
14786 :more2
14787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14790 s/.\{148\}//
14791 t delim
14792 ' <conf$$subs.awk | sed '
14793 /^[^""]/{
14795 s/\n//
14797 ' >>$CONFIG_STATUS || ac_write_fail=1
14798 rm -f conf$$subs.awk
14799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14800 _ACAWK
14801 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14802 for (key in S) S_is_set[key] = 1
14803 FS = "\a"
14807 line = $ 0
14808 nfields = split(line, field, "@")
14809 substed = 0
14810 len = length(field[1])
14811 for (i = 2; i < nfields; i++) {
14812 key = field[i]
14813 keylen = length(key)
14814 if (S_is_set[key]) {
14815 value = S[key]
14816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14817 len += length(value) + length(field[++i])
14818 substed = 1
14819 } else
14820 len += 1 + keylen
14823 print line
14826 _ACAWK
14827 _ACEOF
14828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14829 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14830 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14831 else
14833 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14834 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14835 _ACEOF
14837 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14838 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14839 # trailing colons and then remove the whole line if VPATH becomes empty
14840 # (actually we leave an empty line to preserve line numbers).
14841 if test "x$srcdir" = x.; then
14842 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14844 s///
14845 s/^/:/
14846 s/[ ]*$/:/
14847 s/:\$(srcdir):/:/g
14848 s/:\${srcdir}:/:/g
14849 s/:@srcdir@:/:/g
14850 s/^:*//
14851 s/:*$//
14853 s/\(=[ ]*\).*/\1/
14855 s/\n//
14856 s/^[^=]*=[ ]*$//
14860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14861 fi # test -n "$CONFIG_FILES"
14863 # Set up the scripts for CONFIG_HEADERS section.
14864 # No need to generate them if there are no CONFIG_HEADERS.
14865 # This happens for instance with `./config.status Makefile'.
14866 if test -n "$CONFIG_HEADERS"; then
14867 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14868 BEGIN {
14869 _ACEOF
14871 # Transform confdefs.h into an awk script `defines.awk', embedded as
14872 # here-document in config.status, that substitutes the proper values into
14873 # config.h.in to produce config.h.
14875 # Create a delimiter string that does not exist in confdefs.h, to ease
14876 # handling of long lines.
14877 ac_delim='%!_!# '
14878 for ac_last_try in false false :; do
14879 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14880 if test -z "$ac_tt"; then
14881 break
14882 elif $ac_last_try; then
14883 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14884 else
14885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14887 done
14889 # For the awk script, D is an array of macro values keyed by name,
14890 # likewise P contains macro parameters if any. Preserve backslash
14891 # newline sequences.
14893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14894 sed -n '
14895 s/.\{148\}/&'"$ac_delim"'/g
14896 t rset
14897 :rset
14898 s/^[ ]*#[ ]*define[ ][ ]*/ /
14899 t def
14901 :def
14902 s/\\$//
14903 t bsnl
14904 s/["\\]/\\&/g
14905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14906 D["\1"]=" \3"/p
14907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14909 :bsnl
14910 s/["\\]/\\&/g
14911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14912 D["\1"]=" \3\\\\\\n"\\/p
14913 t cont
14914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14915 t cont
14917 :cont
14919 s/.\{148\}/&'"$ac_delim"'/g
14920 t clear
14921 :clear
14922 s/\\$//
14923 t bsnlc
14924 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14926 :bsnlc
14927 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14928 b cont
14929 ' <confdefs.h | sed '
14930 s/'"$ac_delim"'/"\\\
14931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14934 for (key in D) D_is_set[key] = 1
14935 FS = "\a"
14937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14938 line = \$ 0
14939 split(line, arg, " ")
14940 if (arg[1] == "#") {
14941 defundef = arg[2]
14942 mac1 = arg[3]
14943 } else {
14944 defundef = substr(arg[1], 2)
14945 mac1 = arg[2]
14947 split(mac1, mac2, "(") #)
14948 macro = mac2[1]
14949 prefix = substr(line, 1, index(line, defundef) - 1)
14950 if (D_is_set[macro]) {
14951 # Preserve the white space surrounding the "#".
14952 print prefix "define", macro P[macro] D[macro]
14953 next
14954 } else {
14955 # Replace #undef with comments. This is necessary, for example,
14956 # in the case of _POSIX_SOURCE, which is predefined and required
14957 # on some systems where configure will not decide to define it.
14958 if (defundef == "undef") {
14959 print "/*", prefix defundef, macro, "*/"
14960 next
14964 { print }
14965 _ACAWK
14966 _ACEOF
14967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14968 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14969 fi # test -n "$CONFIG_HEADERS"
14972 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14973 shift
14974 for ac_tag
14976 case $ac_tag in
14977 :[FHLC]) ac_mode=$ac_tag; continue;;
14978 esac
14979 case $ac_mode$ac_tag in
14980 :[FHL]*:*);;
14981 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14982 :[FH]-) ac_tag=-:-;;
14983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14984 esac
14985 ac_save_IFS=$IFS
14986 IFS=:
14987 set x $ac_tag
14988 IFS=$ac_save_IFS
14989 shift
14990 ac_file=$1
14991 shift
14993 case $ac_mode in
14994 :L) ac_source=$1;;
14995 :[FH])
14996 ac_file_inputs=
14997 for ac_f
14999 case $ac_f in
15000 -) ac_f="$ac_tmp/stdin";;
15001 *) # Look for the file first in the build tree, then in the source tree
15002 # (if the path is not absolute). The absolute path cannot be DOS-style,
15003 # because $ac_f cannot contain `:'.
15004 test -f "$ac_f" ||
15005 case $ac_f in
15006 [\\/$]*) false;;
15007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15008 esac ||
15009 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15010 esac
15011 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15012 as_fn_append ac_file_inputs " '$ac_f'"
15013 done
15015 # Let's still pretend it is `configure' which instantiates (i.e., don't
15016 # use $as_me), people would be surprised to read:
15017 # /* config.h. Generated by config.status. */
15018 configure_input='Generated from '`
15019 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15020 `' by configure.'
15021 if test x"$ac_file" != x-; then
15022 configure_input="$ac_file. $configure_input"
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15024 $as_echo "$as_me: creating $ac_file" >&6;}
15026 # Neutralize special characters interpreted by sed in replacement strings.
15027 case $configure_input in #(
15028 *\&* | *\|* | *\\* )
15029 ac_sed_conf_input=`$as_echo "$configure_input" |
15030 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15031 *) ac_sed_conf_input=$configure_input;;
15032 esac
15034 case $ac_tag in
15035 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15037 esac
15039 esac
15041 ac_dir=`$as_dirname -- "$ac_file" ||
15042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15043 X"$ac_file" : 'X\(//\)[^/]' \| \
15044 X"$ac_file" : 'X\(//\)$' \| \
15045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15046 $as_echo X"$ac_file" |
15047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15048 s//\1/
15051 /^X\(\/\/\)[^/].*/{
15052 s//\1/
15055 /^X\(\/\/\)$/{
15056 s//\1/
15059 /^X\(\/\).*/{
15060 s//\1/
15063 s/.*/./; q'`
15064 as_dir="$ac_dir"; as_fn_mkdir_p
15065 ac_builddir=.
15067 case "$ac_dir" in
15068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15071 # A ".." for each directory in $ac_dir_suffix.
15072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15073 case $ac_top_builddir_sub in
15074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15076 esac ;;
15077 esac
15078 ac_abs_top_builddir=$ac_pwd
15079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15080 # for backward compatibility:
15081 ac_top_builddir=$ac_top_build_prefix
15083 case $srcdir in
15084 .) # We are building in place.
15085 ac_srcdir=.
15086 ac_top_srcdir=$ac_top_builddir_sub
15087 ac_abs_top_srcdir=$ac_pwd ;;
15088 [\\/]* | ?:[\\/]* ) # Absolute name.
15089 ac_srcdir=$srcdir$ac_dir_suffix;
15090 ac_top_srcdir=$srcdir
15091 ac_abs_top_srcdir=$srcdir ;;
15092 *) # Relative name.
15093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15094 ac_top_srcdir=$ac_top_build_prefix$srcdir
15095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15096 esac
15097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15100 case $ac_mode in
15103 # CONFIG_FILE
15106 case $INSTALL in
15107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15109 esac
15110 ac_MKDIR_P=$MKDIR_P
15111 case $MKDIR_P in
15112 [\\/$]* | ?:[\\/]* ) ;;
15113 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15114 esac
15115 _ACEOF
15117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15118 # If the template does not know about datarootdir, expand it.
15119 # FIXME: This hack should be removed a few years after 2.60.
15120 ac_datarootdir_hack=; ac_datarootdir_seen=
15121 ac_sed_dataroot='
15122 /datarootdir/ {
15126 /@datadir@/p
15127 /@docdir@/p
15128 /@infodir@/p
15129 /@localedir@/p
15130 /@mandir@/p'
15131 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15132 *datarootdir*) ac_datarootdir_seen=yes;;
15133 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15135 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15136 _ACEOF
15137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15138 ac_datarootdir_hack='
15139 s&@datadir@&$datadir&g
15140 s&@docdir@&$docdir&g
15141 s&@infodir@&$infodir&g
15142 s&@localedir@&$localedir&g
15143 s&@mandir@&$mandir&g
15144 s&\\\${datarootdir}&$datarootdir&g' ;;
15145 esac
15146 _ACEOF
15148 # Neutralize VPATH when `$srcdir' = `.'.
15149 # Shell code in configure.ac might set extrasub.
15150 # FIXME: do we really want to maintain this feature?
15151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15152 ac_sed_extra="$ac_vpsub
15153 $extrasub
15154 _ACEOF
15155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15158 s|@configure_input@|$ac_sed_conf_input|;t t
15159 s&@top_builddir@&$ac_top_builddir_sub&;t t
15160 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15161 s&@srcdir@&$ac_srcdir&;t t
15162 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15163 s&@top_srcdir@&$ac_top_srcdir&;t t
15164 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15165 s&@builddir@&$ac_builddir&;t t
15166 s&@abs_builddir@&$ac_abs_builddir&;t t
15167 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15168 s&@INSTALL@&$ac_INSTALL&;t t
15169 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15170 $ac_datarootdir_hack
15172 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15173 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15175 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15176 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15177 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15178 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15180 which seems to be undefined. Please make sure it is defined" >&5
15181 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15182 which seems to be undefined. Please make sure it is defined" >&2;}
15184 rm -f "$ac_tmp/stdin"
15185 case $ac_file in
15186 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15187 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15188 esac \
15189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15193 # CONFIG_HEADER
15195 if test x"$ac_file" != x-; then
15197 $as_echo "/* $configure_input */" \
15198 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15199 } >"$ac_tmp/config.h" \
15200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15201 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15203 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15204 else
15205 rm -f "$ac_file"
15206 mv "$ac_tmp/config.h" "$ac_file" \
15207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15209 else
15210 $as_echo "/* $configure_input */" \
15211 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15212 || as_fn_error $? "could not create -" "$LINENO" 5
15214 # Compute "$ac_file"'s index in $config_headers.
15215 _am_arg="$ac_file"
15216 _am_stamp_count=1
15217 for _am_header in $config_headers :; do
15218 case $_am_header in
15219 $_am_arg | $_am_arg:* )
15220 break ;;
15222 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15223 esac
15224 done
15225 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15226 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15227 X"$_am_arg" : 'X\(//\)[^/]' \| \
15228 X"$_am_arg" : 'X\(//\)$' \| \
15229 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15230 $as_echo X"$_am_arg" |
15231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15232 s//\1/
15235 /^X\(\/\/\)[^/].*/{
15236 s//\1/
15239 /^X\(\/\/\)$/{
15240 s//\1/
15243 /^X\(\/\).*/{
15244 s//\1/
15247 s/.*/./; q'`/stamp-h$_am_stamp_count
15250 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15251 $as_echo "$as_me: executing $ac_file commands" >&6;}
15253 esac
15256 case $ac_file$ac_mode in
15257 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15258 # Older Autoconf quotes --file arguments for eval, but not when files
15259 # are listed without --file. Let's play safe and only enable the eval
15260 # if we detect the quoting.
15261 case $CONFIG_FILES in
15262 *\'*) eval set x "$CONFIG_FILES" ;;
15263 *) set x $CONFIG_FILES ;;
15264 esac
15265 shift
15266 for mf
15268 # Strip MF so we end up with the name of the file.
15269 mf=`echo "$mf" | sed -e 's/:.*$//'`
15270 # Check whether this is an Automake generated Makefile or not.
15271 # We used to match only the files named 'Makefile.in', but
15272 # some people rename them; so instead we look at the file content.
15273 # Grep'ing the first line is not enough: some people post-process
15274 # each Makefile.in and add a new line on top of each file to say so.
15275 # Grep'ing the whole file is not good either: AIX grep has a line
15276 # limit of 2048, but all sed's we know have understand at least 4000.
15277 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15278 dirpart=`$as_dirname -- "$mf" ||
15279 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15280 X"$mf" : 'X\(//\)[^/]' \| \
15281 X"$mf" : 'X\(//\)$' \| \
15282 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15283 $as_echo X"$mf" |
15284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15285 s//\1/
15288 /^X\(\/\/\)[^/].*/{
15289 s//\1/
15292 /^X\(\/\/\)$/{
15293 s//\1/
15296 /^X\(\/\).*/{
15297 s//\1/
15300 s/.*/./; q'`
15301 else
15302 continue
15304 # Extract the definition of DEPDIR, am__include, and am__quote
15305 # from the Makefile without running 'make'.
15306 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15307 test -z "$DEPDIR" && continue
15308 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15309 test -z "$am__include" && continue
15310 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15311 # Find all dependency output files, they are included files with
15312 # $(DEPDIR) in their names. We invoke sed twice because it is the
15313 # simplest approach to changing $(DEPDIR) to its actual value in the
15314 # expansion.
15315 for file in `sed -n "
15316 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15317 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15318 # Make sure the directory exists.
15319 test -f "$dirpart/$file" && continue
15320 fdir=`$as_dirname -- "$file" ||
15321 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322 X"$file" : 'X\(//\)[^/]' \| \
15323 X"$file" : 'X\(//\)$' \| \
15324 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15325 $as_echo X"$file" |
15326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15327 s//\1/
15330 /^X\(\/\/\)[^/].*/{
15331 s//\1/
15334 /^X\(\/\/\)$/{
15335 s//\1/
15338 /^X\(\/\).*/{
15339 s//\1/
15342 s/.*/./; q'`
15343 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15344 # echo "creating $dirpart/$file"
15345 echo '# dummy' > "$dirpart/$file"
15346 done
15347 done
15350 "default-1":C)
15351 for ac_file in $CONFIG_FILES; do
15352 # Support "outfile[:infile[:infile...]]"
15353 case "$ac_file" in
15354 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15355 esac
15356 # PO directories have a Makefile.in generated from Makefile.in.in.
15357 case "$ac_file" in */Makefile.in)
15358 # Adjust a relative srcdir.
15359 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15360 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15361 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15362 # In autoconf-2.13 it is called $ac_given_srcdir.
15363 # In autoconf-2.50 it is called $srcdir.
15364 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15365 case "$ac_given_srcdir" in
15366 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15367 /*) top_srcdir="$ac_given_srcdir" ;;
15368 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15369 esac
15370 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15371 rm -f "$ac_dir/POTFILES"
15372 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15373 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15374 POMAKEFILEDEPS="POTFILES.in"
15375 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15376 # on $ac_dir but don't depend on user-specified configuration
15377 # parameters.
15378 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15379 # The LINGUAS file contains the set of available languages.
15380 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15381 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15383 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15384 # Hide the ALL_LINGUAS assigment from automake.
15385 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15386 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15387 else
15388 # The set of available languages was given in configure.ac.
15389 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15391 case "$ac_given_srcdir" in
15392 .) srcdirpre= ;;
15393 *) srcdirpre='$(srcdir)/' ;;
15394 esac
15395 POFILES=
15396 GMOFILES=
15397 UPDATEPOFILES=
15398 DUMMYPOFILES=
15399 for lang in $ALL_LINGUAS; do
15400 POFILES="$POFILES $srcdirpre$lang.po"
15401 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15402 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15403 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15404 done
15405 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15406 # environment variable.
15407 INST_LINGUAS=
15408 if test -n "$ALL_LINGUAS"; then
15409 for presentlang in $ALL_LINGUAS; do
15410 useit=no
15411 if test "%UNSET%" != "$LINGUAS"; then
15412 desiredlanguages="$LINGUAS"
15413 else
15414 desiredlanguages="$ALL_LINGUAS"
15416 for desiredlang in $desiredlanguages; do
15417 # Use the presentlang catalog if desiredlang is
15418 # a. equal to presentlang, or
15419 # b. a variant of presentlang (because in this case,
15420 # presentlang can be used as a fallback for messages
15421 # which are not translated in the desiredlang catalog).
15422 case "$desiredlang" in
15423 "$presentlang"*) useit=yes;;
15424 esac
15425 done
15426 if test $useit = yes; then
15427 INST_LINGUAS="$INST_LINGUAS $presentlang"
15429 done
15431 CATALOGS=
15432 if test -n "$INST_LINGUAS"; then
15433 for lang in $INST_LINGUAS; do
15434 CATALOGS="$CATALOGS $lang.gmo"
15435 done
15437 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15438 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"
15439 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15440 if test -f "$f"; then
15441 case "$f" in
15442 *.orig | *.bak | *~) ;;
15443 *) cat "$f" >> "$ac_dir/Makefile" ;;
15444 esac
15446 done
15449 esac
15450 done ;;
15451 "default-2":C)
15452 for ac_file in $CONFIG_FILES; do
15453 # Support "outfile[:infile[:infile...]]"
15454 case "$ac_file" in
15455 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15456 esac
15457 # PO directories have a Makefile.in generated from Makefile.in.in.
15458 case "$ac_file" in */Makefile.in)
15459 # Adjust a relative srcdir.
15460 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15461 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15462 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15463 # In autoconf-2.13 it is called $ac_given_srcdir.
15464 # In autoconf-2.50 it is called $srcdir.
15465 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15466 case "$ac_given_srcdir" in
15467 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15468 /*) top_srcdir="$ac_given_srcdir" ;;
15469 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15470 esac
15471 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15472 rm -f "$ac_dir/POTFILES"
15473 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15474 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15475 POMAKEFILEDEPS="POTFILES.in"
15476 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15477 # on $ac_dir but don't depend on user-specified configuration
15478 # parameters.
15479 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15480 # The LINGUAS file contains the set of available languages.
15481 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15482 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15484 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15485 # Hide the ALL_LINGUAS assigment from automake.
15486 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15487 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15488 else
15489 # The set of available languages was given in configure.ac.
15490 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15492 case "$ac_given_srcdir" in
15493 .) srcdirpre= ;;
15494 *) srcdirpre='$(srcdir)/' ;;
15495 esac
15496 POFILES=
15497 GMOFILES=
15498 UPDATEPOFILES=
15499 DUMMYPOFILES=
15500 for lang in $ALL_LINGUAS; do
15501 POFILES="$POFILES $srcdirpre$lang.po"
15502 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15503 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15504 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15505 done
15506 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15507 # environment variable.
15508 INST_LINGUAS=
15509 if test -n "$ALL_LINGUAS"; then
15510 for presentlang in $ALL_LINGUAS; do
15511 useit=no
15512 if test "%UNSET%" != "$LINGUAS"; then
15513 desiredlanguages="$LINGUAS"
15514 else
15515 desiredlanguages="$ALL_LINGUAS"
15517 for desiredlang in $desiredlanguages; do
15518 # Use the presentlang catalog if desiredlang is
15519 # a. equal to presentlang, or
15520 # b. a variant of presentlang (because in this case,
15521 # presentlang can be used as a fallback for messages
15522 # which are not translated in the desiredlang catalog).
15523 case "$desiredlang" in
15524 "$presentlang"*) useit=yes;;
15525 esac
15526 done
15527 if test $useit = yes; then
15528 INST_LINGUAS="$INST_LINGUAS $presentlang"
15530 done
15532 CATALOGS=
15533 if test -n "$INST_LINGUAS"; then
15534 for lang in $INST_LINGUAS; do
15535 CATALOGS="$CATALOGS $lang.gmo"
15536 done
15538 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15539 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"
15540 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15541 if test -f "$f"; then
15542 case "$f" in
15543 *.orig | *.bak | *~) ;;
15544 *) cat "$f" >> "$ac_dir/Makefile" ;;
15545 esac
15547 done
15550 esac
15551 done ;;
15553 esac
15554 done # for ac_tag
15557 as_fn_exit 0
15558 _ACEOF
15559 ac_clean_files=$ac_clean_files_save
15561 test $ac_write_fail = 0 ||
15562 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15565 # configure is writing to config.log, and then calls config.status.
15566 # config.status does its own redirection, appending to config.log.
15567 # Unfortunately, on DOS this fails, as config.log is still kept open
15568 # by configure, so config.status won't be able to write to it; its
15569 # output is simply discarded. So we exec the FD to /dev/null,
15570 # effectively closing config.log, so it can be properly (re)opened and
15571 # appended to by config.status. When coming back to configure, we
15572 # need to make the FD available again.
15573 if test "$no_create" != yes; then
15574 ac_cs_success=:
15575 ac_config_status_args=
15576 test "$silent" = yes &&
15577 ac_config_status_args="$ac_config_status_args --quiet"
15578 exec 5>/dev/null
15579 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15580 exec 5>>config.log
15581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15582 # would make configure fail if this is the last instruction.
15583 $ac_cs_success || as_fn_exit 1
15585 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15587 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}