[gdb/cli] Show LOC_CONST_BYTES var for info locals
[binutils-gdb.git] / ld / configure
blob0b4197d1c4fa883bd4d1ee7c533c9982129b2683
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 2.43.50.
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
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='ld'
589 PACKAGE_TARNAME='ld'
590 PACKAGE_VERSION='2.43.50'
591 PACKAGE_STRING='ld 2.43.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="ldmain.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 gt_needs=
633 ac_header_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 TESTSFRAMELIB
639 TESTCTFLIB
640 TESTBFDLIB
641 EMULATION_LIBPATH
642 LIB_PATH
643 EMUL_EXTRA_OFILES
644 EMULATION_OFILES
645 TDIRS
646 EMUL
647 elf_plt_unwind_list_options
648 elf_shlib_list_options
649 elf_list_options
650 ZSTD_LIBS
651 ZSTD_CFLAGS
652 zlibinc
653 zlibdir
654 NATIVE_LIB_DIRS
655 HDEFINES
656 do_compare
657 GENINSRC_NEVER_FALSE
658 GENINSRC_NEVER_TRUE
659 LEXLIB
660 LEX_OUTPUT_ROOT
662 YFLAGS
663 YACC
664 CATOBJEXT
665 GENCAT
666 INSTOBJEXT
667 DATADIRNAME
668 CATALOGS
669 INCINTL
670 LIBINTL_DEP
671 POSUB
672 LTLIBINTL
673 LIBINTL
674 INTLLIBS
675 LTLIBICONV
676 LIBICONV
677 INTL_MACOSX_LIBS
678 MSGMERGE
679 XGETTEXT
680 GMSGFMT
681 MSGFMT
682 USE_NLS
683 MKINSTALLDIRS
684 WARN_WRITE_STRINGS
685 NO_WERROR
686 WARN_CFLAGS_FOR_BUILD
687 WARN_CFLAGS
688 JANSSON_LIBS
689 JANSSON_CFLAGS
690 enable_libctf
691 ENABLE_LIBCTF_FALSE
692 ENABLE_LIBCTF_TRUE
693 enable_initfini_array
694 installed_linker
695 install_as_default
696 TARGET_SYSTEM_ROOT_DEFINE
697 TARGET_SYSTEM_ROOT
698 use_sysroot
699 ENABLE_BFD_64_BIT_FALSE
700 ENABLE_BFD_64_BIT_TRUE
701 LARGEFILE_CPPFLAGS
702 CXXCPP
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 RANLIB
710 OBJDUMP
711 LN_S
713 ac_ct_DUMPBIN
714 DUMPBIN
716 FGREP
718 LIBTOOL
719 PKG_CONFIG_LIBDIR
720 PKG_CONFIG_PATH
721 PKG_CONFIG
722 EGREP
724 GREP
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 AM_BACKSLASH
752 AM_DEFAULT_VERBOSITY
753 AM_DEFAULT_V
754 AM_V
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_os
779 target_vendor
780 target_cpu
781 target
782 host_os
783 host_vendor
784 host_cpu
785 host
786 build_os
787 build_vendor
788 build_cpu
789 build
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 localstatedir
810 sharedstatedir
811 sysconfdir
812 datadir
813 datarootdir
814 libexecdir
815 sbindir
816 bindir
817 program_transform_name
818 prefix
819 exec_prefix
820 PACKAGE_URL
821 PACKAGE_BUGREPORT
822 PACKAGE_STRING
823 PACKAGE_VERSION
824 PACKAGE_TARNAME
825 PACKAGE_NAME
826 PATH_SEPARATOR
827 SHELL'
828 ac_subst_files=''
829 ac_user_opts='
830 enable_option_checking
831 enable_silent_rules
832 enable_maintainer_mode
833 enable_dependency_tracking
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_gnu_ld
839 enable_libtool_lock
840 enable_plugins
841 enable_largefile
842 enable_checking
843 with_lib_path
844 enable_targets
845 enable_64_bit_bfd
846 with_sysroot
847 enable_gold
848 enable_got
849 enable_compressed_debug_sections
850 enable_default_compressed_debug_sections_algorithm
851 enable_new_dtags
852 enable_relro
853 enable_textrel_check
854 enable_separate_code
855 enable_rosegment
856 enable_mark_plt
857 enable_warn_execstack
858 enable_error_execstack
859 enable_warn_rwx_segments
860 enable_error_rwx_segments
861 enable_default_execstack
862 enable_error_handling_script
863 enable_default_hash_style
864 enable_initfini_array
865 enable_libctf
866 enable_jansson
867 enable_werror
868 enable_build_warnings
869 enable_nls
870 enable_rpath
871 with_libiconv_prefix
872 with_libiconv_type
873 with_libintl_prefix
874 with_libintl_type
875 with_xxhash
876 with_system_zlib
877 with_zstd
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
888 CXXFLAGS
891 PKG_CONFIG
892 PKG_CONFIG_PATH
893 PKG_CONFIG_LIBDIR
894 CXXCPP
895 JANSSON_CFLAGS
896 JANSSON_LIBS
897 YACC
898 YFLAGS
899 ZSTD_CFLAGS
900 ZSTD_LIBS'
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
951 ac_prev=
952 ac_dashdash=
953 for ac_option
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
958 ac_prev=
959 continue
962 case $ac_option in
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
966 esac
968 # Accept the important Cygnus configure options, so we can diagnose typos.
970 case $ac_dashdash$ac_option in
972 ac_dashdash=yes ;;
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
991 --config-cache | -C)
992 cache_file=config.cache ;;
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1126 no_create=yes ;;
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1211 site=$ac_optarg ;;
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1236 -with-* | --with-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 esac
1309 done
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 esac
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1393 /^X\(\/\/\)$/{
1394 s//\1/
1397 /^X\(\/\).*/{
1398 s//\1/
1401 s/.*/./; q'`
1402 srcdir=$ac_confdir
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 srcdir=..
1406 else
1407 ac_srcdir_defaulted=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 ac_abs_confdir=`(
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 pwd)`
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1424 case $srcdir in
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 esac
1427 for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432 done
1435 # Report the --help message.
1437 if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1440 cat <<_ACEOF
1441 \`configure' configures ld 2.43.50 to adapt to many kinds of systems.
1443 Usage: $0 [OPTION]... [VAR=VALUE]...
1445 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446 VAR=VALUE. See below for descriptions of some of the useful variables.
1448 Defaults for the options are specified in brackets.
1450 Configuration:
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking ...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461 Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 [$ac_default_prefix]
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 [PREFIX]
1467 By default, \`make install' will install all the files in
1468 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470 for instance \`--prefix=\$HOME'.
1472 For better control, use the options below.
1474 Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1494 _ACEOF
1496 cat <<\_ACEOF
1498 Program names:
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1503 System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 --target=TARGET configure for building compilers for TARGET [HOST]
1507 _ACEOF
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive ) echo "Configuration of ld 2.43.50:";;
1513 esac
1514 cat <<\_ACEOF
1516 Optional Features:
1517 --disable-option-checking ignore unrecognized --enable/--with options
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --enable-silent-rules less verbose build output (undo: "make V=1")
1521 --disable-silent-rules verbose build output (undo: "make V=0")
1522 --enable-maintainer-mode
1523 enable make rules and dependencies not useful (and
1524 sometimes confusing) to the casual installer
1525 --enable-dependency-tracking
1526 do not reject slow dependency extractors
1527 --disable-dependency-tracking
1528 speeds up one-time build
1529 --enable-shared[=PKGS] build shared libraries [default=yes]
1530 --enable-static[=PKGS] build static libraries [default=yes]
1531 --enable-fast-install[=PKGS]
1532 optimize for fast installation [default=yes]
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534 --enable-plugins Enable support for plugins
1535 --disable-largefile omit support for large files
1536 --enable-checking enable run-time checks
1537 --enable-targets alternative target configurations
1538 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1539 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1540 --enable-got=<type> GOT handling scheme (target, single, negative,
1541 multigot)
1542 --enable-compressed-debug-sections={all,ld,none}
1543 compress debug sections by default]
1544 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1545 Default compression algorithm for
1546 --enable-compressed-debug-sections.
1547 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1548 --enable-relro enable -z relro in ELF linker by default
1549 --enable-textrel-check=[yes|no|warning|error]
1550 enable DT_TEXTREL check in ELF linker
1551 --enable-separate-code enable -z separate-code in ELF linker by default
1552 --enable-rosegment enable --rosegment in the ELF linker by default
1553 --enable-mark-plt enable -z mark-plt in ELF x86-64 linker by default
1554 --enable-warn-execstack enable warnings when creating an executable stack
1555 --enable-error-execstack
1556 turn executable stack warnings into errors
1557 --enable-warn-rwx-segments
1558 enable warnings when creating segments with RWX
1559 permissions
1560 --enable-error-rwx-segments
1561 turn executable segment warnings into errors
1562 --enable-default-execstack
1563 create an executable stack if an input file is
1564 missing a .note.GNU-stack section
1565 --enable-error-handling-script
1566 enable/disable support for the
1567 --error-handling-script option
1568 --enable-default-hash-style={sysv,gnu,both}
1569 use this default hash style
1570 --disable-initfini-array do not use .init_array/.fini_array sections
1571 --enable-libctf Handle .ctf type-info sections [default=yes]
1572 --enable-jansson enable jansson [default=no]
1573 --enable-werror treat compile warnings as errors
1574 --enable-build-warnings enable build-time compiler warnings
1575 --disable-nls do not use Native Language Support
1576 --disable-rpath do not hardcode runtime library paths
1578 Optional Packages:
1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1581 --with-pic try to use only PIC/non-PIC objects [default=use
1582 both]
1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1584 --with-lib-path=dir1:dir2... set default LIB_PATH
1585 --with-sysroot=DIR Search for usr/lib et al within DIR.
1586 --with-gnu-ld assume the C compiler uses GNU ld default=no
1587 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1588 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1589 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1590 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1591 --without-libintl-prefix don't search for libintl in includedir and libdir
1592 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1593 --with-xxhash use inlined libxxhash for hashing (faster)
1594 (auto/yes/no)
1595 --with-system-zlib use installed libz
1596 --with-zstd support zstd compressed debug sections
1597 (default=auto)
1599 Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1607 CXX C++ compiler command
1608 CXXFLAGS C++ compiler flags
1609 CPP C preprocessor
1610 PKG_CONFIG path to pkg-config utility
1611 PKG_CONFIG_PATH
1612 directories to add to pkg-config's search path
1613 PKG_CONFIG_LIBDIR
1614 path overriding pkg-config's built-in search path
1615 CXXCPP C++ preprocessor
1616 JANSSON_CFLAGS
1617 C compiler flags for JANSSON, overriding pkg-config
1618 JANSSON_LIBS
1619 linker flags for JANSSON, overriding pkg-config
1620 YACC The `Yet Another Compiler Compiler' implementation to use.
1621 Defaults to the first program found out of: `bison -y', `byacc',
1622 `yacc'.
1623 YFLAGS The list of arguments that will be passed by default to $YACC.
1624 This script will default YFLAGS to the empty string to avoid a
1625 default value of `-d' given by some make applications.
1626 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1627 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1632 Report bugs to the package provider.
1633 _ACEOF
1634 ac_status=$?
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 continue
1643 ac_builddir=.
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1661 case $srcdir in
1662 .) # We are building in place.
1663 ac_srcdir=.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1685 else
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1689 done
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694 cat <<\_ACEOF
1695 ld configure 2.43.50
1696 generated by GNU Autoconf 2.69
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702 exit
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=1
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_compile
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=1
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_cxx_try_compile
1785 # ac_fn_c_try_cpp LINENO
1786 # ----------------------
1787 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_cpp ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } > conftest.i && {
1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1815 ac_retval=1
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1820 } # ac_fn_c_try_cpp
1822 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1825 # the include files in INCLUDES and setting the cache variable VAR
1826 # accordingly.
1827 ac_fn_c_check_header_mongrel ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if eval \${$3+:} false; then :
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 else
1840 # Is the header compilable?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1842 $as_echo_n "checking $2 usability... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 ac_header_compiler=yes
1850 else
1851 ac_header_compiler=no
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1855 $as_echo "$ac_header_compiler" >&6; }
1857 # Is the header present?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1859 $as_echo_n "checking $2 presence... " >&6; }
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_cpp "$LINENO"; then :
1865 ac_header_preproc=yes
1866 else
1867 ac_header_preproc=no
1869 rm -f conftest.err conftest.i conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1871 $as_echo "$ac_header_preproc" >&6; }
1873 # So? What about this header?
1874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1875 yes:no: )
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1877 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 no:yes:* )
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1883 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1885 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1887 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1889 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 esac
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 eval "$3=\$ac_header_compiler"
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 } # ac_fn_c_check_header_mongrel
1909 # ac_fn_c_try_run LINENO
1910 # ----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1912 # that executables *can* be run.
1913 ac_fn_c_try_run ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>&5
1924 ac_status=$?
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1927 { { case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_try") 2>&5
1934 ac_status=$?
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; }; }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: program exited with status $ac_status" >&5
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=$ac_status
1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1949 } # ac_fn_c_try_run
1951 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1952 # -------------------------------------------------------
1953 # Tests whether HEADER exists and can be compiled using the include files in
1954 # INCLUDES, setting the cache variable VAR accordingly.
1955 ac_fn_c_check_header_compile ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 eval "$3=yes"
1970 else
1971 eval "$3=no"
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 } # ac_fn_c_check_header_compile
1982 # ac_fn_c_try_link LINENO
1983 # -----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_c_try_link ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 rm -f conftest.$ac_objext conftest$ac_exeext
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1997 ac_status=$?
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_c_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
2009 test -x conftest$ac_exeext
2010 }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_retval=1
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2026 } # ac_fn_c_try_link
2028 # ac_fn_c_check_func LINENO FUNC VAR
2029 # ----------------------------------
2030 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2031 ac_fn_c_check_func ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2043 #define $2 innocuous_$2
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $2 (); below.
2047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2048 <limits.h> exists even on freestanding compilers. */
2050 #ifdef __STDC__
2051 # include <limits.h>
2052 #else
2053 # include <assert.h>
2054 #endif
2056 #undef $2
2058 /* Override any GCC internal prototype to avoid an error.
2059 Use char because int might match the return type of a GCC
2060 builtin and then its argument prototype would still apply. */
2061 #ifdef __cplusplus
2062 extern "C"
2063 #endif
2064 char $2 ();
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined __stub_$2 || defined __stub___$2
2069 choke me
2070 #endif
2073 main ()
2075 return $2 ();
2077 return 0;
2079 _ACEOF
2080 if ac_fn_c_try_link "$LINENO"; then :
2081 eval "$3=yes"
2082 else
2083 eval "$3=no"
2085 rm -f core conftest.err conftest.$ac_objext \
2086 conftest$ac_exeext conftest.$ac_ext
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 } # ac_fn_c_check_func
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2102 case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109 ac_status=$?
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } > conftest.i && {
2117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2119 }; then :
2120 ac_retval=0
2121 else
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2125 ac_retval=1
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 as_fn_set_status $ac_retval
2130 } # ac_fn_cxx_try_cpp
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext conftest$ac_exeext
2139 if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest$ac_exeext && {
2158 test "$cross_compiling" = yes ||
2159 test -x conftest$ac_exeext
2160 }; then :
2161 ac_retval=0
2162 else
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_retval=1
2168 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170 # interfere with the next link command; also delete a directory that is
2171 # left behind by Apple's compiler. We do this before executing the actions.
2172 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 as_fn_set_status $ac_retval
2176 } # ac_fn_cxx_try_link
2178 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2179 # --------------------------------------------
2180 # Tries to find the compile-time value of EXPR in a program that includes
2181 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2182 # computed
2183 ac_fn_c_compute_int ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if test "$cross_compiling" = yes; then
2187 # Depending upon the size, compute the lo and hi bounds.
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2192 main ()
2194 static int test_array [1 - 2 * !(($2) >= 0)];
2195 test_array [0] = 0;
2196 return test_array [0];
2199 return 0;
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 ac_lo=0 ac_mid=0
2204 while :; do
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2209 main ()
2211 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2212 test_array [0] = 0;
2213 return test_array [0];
2216 return 0;
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220 ac_hi=$ac_mid; break
2221 else
2222 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2223 if test $ac_lo -le $ac_mid; then
2224 ac_lo= ac_hi=
2225 break
2227 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 done
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 main ()
2238 static int test_array [1 - 2 * !(($2) < 0)];
2239 test_array [0] = 0;
2240 return test_array [0];
2243 return 0;
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_hi=-1 ac_mid=-1
2248 while :; do
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2253 main ()
2255 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2256 test_array [0] = 0;
2257 return test_array [0];
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 ac_lo=$ac_mid; break
2265 else
2266 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2267 if test $ac_mid -le $ac_hi; then
2268 ac_lo= ac_hi=
2269 break
2271 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 done
2275 else
2276 ac_lo= ac_hi=
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 # Binary search between lo and hi bounds.
2282 while test "x$ac_lo" != "x$ac_hi"; do
2283 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2288 main ()
2290 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2291 test_array [0] = 0;
2292 return test_array [0];
2295 return 0;
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 ac_hi=$ac_mid
2300 else
2301 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 done
2305 case $ac_lo in #((
2306 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2307 '') ac_retval=1 ;;
2308 esac
2309 else
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2313 static long int longval () { return $2; }
2314 static unsigned long int ulongval () { return $2; }
2315 #include <stdio.h>
2316 #include <stdlib.h>
2318 main ()
2321 FILE *f = fopen ("conftest.val", "w");
2322 if (! f)
2323 return 1;
2324 if (($2) < 0)
2326 long int i = longval ();
2327 if (i != ($2))
2328 return 1;
2329 fprintf (f, "%ld", i);
2331 else
2333 unsigned long int i = ulongval ();
2334 if (i != ($2))
2335 return 1;
2336 fprintf (f, "%lu", i);
2338 /* Do not output a trailing newline, as this causes \r\n confusion
2339 on some platforms. */
2340 return ferror (f) || fclose (f) != 0;
2343 return 0;
2345 _ACEOF
2346 if ac_fn_c_try_run "$LINENO"; then :
2347 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2348 else
2349 ac_retval=1
2351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2352 conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 rm -f conftest.val
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 as_fn_set_status $ac_retval
2359 } # ac_fn_c_compute_int
2361 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2362 # ---------------------------------------------
2363 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2364 # accordingly.
2365 ac_fn_c_check_decl ()
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 as_decl_name=`echo $2|sed 's/ *(.*//'`
2369 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2371 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2372 if eval \${$3+:} false; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2379 main ()
2381 #ifndef $as_decl_name
2382 #ifdef __cplusplus
2383 (void) $as_decl_use;
2384 #else
2385 (void) $as_decl_name;
2386 #endif
2387 #endif
2390 return 0;
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394 eval "$3=yes"
2395 else
2396 eval "$3=no"
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 eval ac_res=\$$3
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2405 } # ac_fn_c_check_decl
2406 cat >config.log <<_ACEOF
2407 This file contains any messages produced by compilers while
2408 running configure, to aid debugging if configure makes a mistake.
2410 It was created by ld $as_me 2.43.50, which was
2411 generated by GNU Autoconf 2.69. Invocation command line was
2413 $ $0 $@
2415 _ACEOF
2416 exec 5>>config.log
2418 cat <<_ASUNAME
2419 ## --------- ##
2420 ## Platform. ##
2421 ## --------- ##
2423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2430 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2432 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2433 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2435 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2436 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2437 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2438 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2440 _ASUNAME
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 $as_echo "PATH: $as_dir"
2448 done
2449 IFS=$as_save_IFS
2451 } >&5
2453 cat >&5 <<_ACEOF
2456 ## ----------- ##
2457 ## Core tests. ##
2458 ## ----------- ##
2460 _ACEOF
2463 # Keep a trace of the command line.
2464 # Strip out --no-create and --no-recursion so they do not pile up.
2465 # Strip out --silent because we don't want to record it for future runs.
2466 # Also quote any args containing shell meta-characters.
2467 # Make two passes to allow for proper duplicate-argument suppression.
2468 ac_configure_args=
2469 ac_configure_args0=
2470 ac_configure_args1=
2471 ac_must_keep_next=false
2472 for ac_pass in 1 2
2474 for ac_arg
2476 case $ac_arg in
2477 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2479 | -silent | --silent | --silen | --sile | --sil)
2480 continue ;;
2481 *\'*)
2482 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 esac
2484 case $ac_pass in
2485 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2487 as_fn_append ac_configure_args1 " '$ac_arg'"
2488 if test $ac_must_keep_next = true; then
2489 ac_must_keep_next=false # Got value, back to normal.
2490 else
2491 case $ac_arg in
2492 *=* | --config-cache | -C | -disable-* | --disable-* \
2493 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2494 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2495 | -with-* | --with-* | -without-* | --without-* | --x)
2496 case "$ac_configure_args0 " in
2497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2498 esac
2500 -* ) ac_must_keep_next=true ;;
2501 esac
2503 as_fn_append ac_configure_args " '$ac_arg'"
2505 esac
2506 done
2507 done
2508 { ac_configure_args0=; unset ac_configure_args0;}
2509 { ac_configure_args1=; unset ac_configure_args1;}
2511 # When interrupted or exit'd, cleanup temporary files, and complete
2512 # config.log. We remove comments because anyway the quotes in there
2513 # would cause problems or look ugly.
2514 # WARNING: Use '\'' to represent an apostrophe within the trap.
2515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2516 trap 'exit_status=$?
2517 # Save into config.log some information that might help in debugging.
2519 echo
2521 $as_echo "## ---------------- ##
2522 ## Cache variables. ##
2523 ## ---------------- ##"
2524 echo
2525 # The following way of writing the cache mishandles newlines in values,
2527 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2528 eval ac_val=\$$ac_var
2529 case $ac_val in #(
2530 *${as_nl}*)
2531 case $ac_var in #(
2532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2534 esac
2535 case $ac_var in #(
2536 _ | IFS | as_nl) ;; #(
2537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2538 *) { eval $ac_var=; unset $ac_var;} ;;
2539 esac ;;
2540 esac
2541 done
2542 (set) 2>&1 |
2543 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2544 *${as_nl}ac_space=\ *)
2545 sed -n \
2546 "s/'\''/'\''\\\\'\'''\''/g;
2547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2548 ;; #(
2550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2552 esac |
2553 sort
2555 echo
2557 $as_echo "## ----------------- ##
2558 ## Output variables. ##
2559 ## ----------------- ##"
2560 echo
2561 for ac_var in $ac_subst_vars
2563 eval ac_val=\$$ac_var
2564 case $ac_val in
2565 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2566 esac
2567 $as_echo "$ac_var='\''$ac_val'\''"
2568 done | sort
2569 echo
2571 if test -n "$ac_subst_files"; then
2572 $as_echo "## ------------------- ##
2573 ## File substitutions. ##
2574 ## ------------------- ##"
2575 echo
2576 for ac_var in $ac_subst_files
2578 eval ac_val=\$$ac_var
2579 case $ac_val in
2580 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2581 esac
2582 $as_echo "$ac_var='\''$ac_val'\''"
2583 done | sort
2584 echo
2587 if test -s confdefs.h; then
2588 $as_echo "## ----------- ##
2589 ## confdefs.h. ##
2590 ## ----------- ##"
2591 echo
2592 cat confdefs.h
2593 echo
2595 test "$ac_signal" != 0 &&
2596 $as_echo "$as_me: caught signal $ac_signal"
2597 $as_echo "$as_me: exit $exit_status"
2598 } >&5
2599 rm -f core *.core core.conftest.* &&
2600 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2601 exit $exit_status
2603 for ac_signal in 1 2 13 15; do
2604 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2605 done
2606 ac_signal=0
2608 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2609 rm -f -r conftest* confdefs.h
2611 $as_echo "/* confdefs.h */" > confdefs.h
2613 # Predefined preprocessor variables.
2615 cat >>confdefs.h <<_ACEOF
2616 #define PACKAGE_NAME "$PACKAGE_NAME"
2617 _ACEOF
2619 cat >>confdefs.h <<_ACEOF
2620 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2621 _ACEOF
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2625 _ACEOF
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_STRING "$PACKAGE_STRING"
2629 _ACEOF
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2633 _ACEOF
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_URL "$PACKAGE_URL"
2637 _ACEOF
2640 # Let the site file select an alternate cache file if it wants to.
2641 # Prefer an explicitly selected file to automatically selected ones.
2642 ac_site_file1=NONE
2643 ac_site_file2=NONE
2644 if test -n "$CONFIG_SITE"; then
2645 # We do not want a PATH search for config.site.
2646 case $CONFIG_SITE in #((
2647 -*) ac_site_file1=./$CONFIG_SITE;;
2648 */*) ac_site_file1=$CONFIG_SITE;;
2649 *) ac_site_file1=./$CONFIG_SITE;;
2650 esac
2651 elif test "x$prefix" != xNONE; then
2652 ac_site_file1=$prefix/share/config.site
2653 ac_site_file2=$prefix/etc/config.site
2654 else
2655 ac_site_file1=$ac_default_prefix/share/config.site
2656 ac_site_file2=$ac_default_prefix/etc/config.site
2658 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2660 test "x$ac_site_file" = xNONE && continue
2661 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2663 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2664 sed 's/^/| /' "$ac_site_file" >&5
2665 . "$ac_site_file" \
2666 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668 as_fn_error $? "failed to load site script $ac_site_file
2669 See \`config.log' for more details" "$LINENO" 5; }
2671 done
2673 if test -r "$cache_file"; then
2674 # Some versions of bash will fail to source /dev/null (special files
2675 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2676 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2678 $as_echo "$as_me: loading cache $cache_file" >&6;}
2679 case $cache_file in
2680 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2681 *) . "./$cache_file";;
2682 esac
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2686 $as_echo "$as_me: creating cache $cache_file" >&6;}
2687 >$cache_file
2690 gt_needs="$gt_needs "
2691 as_fn_append ac_header_list " stdlib.h"
2692 as_fn_append ac_header_list " unistd.h"
2693 as_fn_append ac_header_list " sys/param.h"
2694 # Check that the precious variables saved in the cache have kept the same
2695 # value.
2696 ac_cache_corrupted=false
2697 for ac_var in $ac_precious_vars; do
2698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2699 eval ac_new_set=\$ac_env_${ac_var}_set
2700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2701 eval ac_new_val=\$ac_env_${ac_var}_value
2702 case $ac_old_set,$ac_new_set in
2703 set,)
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2705 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2706 ac_cache_corrupted=: ;;
2707 ,set)
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2709 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2711 ,);;
2713 if test "x$ac_old_val" != "x$ac_new_val"; then
2714 # differences in whitespace do not lead to failure.
2715 ac_old_val_w=`echo x $ac_old_val`
2716 ac_new_val_w=`echo x $ac_new_val`
2717 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2719 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2720 ac_cache_corrupted=:
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2723 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2724 eval $ac_var=\$ac_old_val
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2727 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2729 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2730 fi;;
2731 esac
2732 # Pass precious variables to config.status.
2733 if test "$ac_new_set" = set; then
2734 case $ac_new_val in
2735 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2736 *) ac_arg=$ac_var=$ac_new_val ;;
2737 esac
2738 case " $ac_configure_args " in
2739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2740 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2741 esac
2743 done
2744 if $ac_cache_corrupted; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2748 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2749 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2751 ## -------------------- ##
2752 ## Main body of script. ##
2753 ## -------------------- ##
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 ac_aux_dir=
2768 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2769 if test -f "$ac_dir/install-sh"; then
2770 ac_aux_dir=$ac_dir
2771 ac_install_sh="$ac_aux_dir/install-sh -c"
2772 break
2773 elif test -f "$ac_dir/install.sh"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/install.sh -c"
2776 break
2777 elif test -f "$ac_dir/shtool"; then
2778 ac_aux_dir=$ac_dir
2779 ac_install_sh="$ac_aux_dir/shtool install -c"
2780 break
2782 done
2783 if test -z "$ac_aux_dir"; then
2784 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2787 # These three variables are undocumented and unsupported,
2788 # and are intended to be withdrawn in a future Autoconf release.
2789 # They can cause serious problems if a builder's source tree is in a directory
2790 # whose full name contains unusual characters.
2791 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2792 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2793 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2796 # Make sure we can run config.sub.
2797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2798 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2801 $as_echo_n "checking build system type... " >&6; }
2802 if ${ac_cv_build+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 ac_build_alias=$build_alias
2806 test "x$ac_build_alias" = x &&
2807 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2808 test "x$ac_build_alias" = x &&
2809 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2815 $as_echo "$ac_cv_build" >&6; }
2816 case $ac_cv_build in
2817 *-*-*) ;;
2818 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2819 esac
2820 build=$ac_cv_build
2821 ac_save_IFS=$IFS; IFS='-'
2822 set x $ac_cv_build
2823 shift
2824 build_cpu=$1
2825 build_vendor=$2
2826 shift; shift
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2829 build_os=$*
2830 IFS=$ac_save_IFS
2831 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2835 $as_echo_n "checking host system type... " >&6; }
2836 if ${ac_cv_host+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test "x$host_alias" = x; then
2840 ac_cv_host=$ac_cv_build
2841 else
2842 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2848 $as_echo "$ac_cv_host" >&6; }
2849 case $ac_cv_host in
2850 *-*-*) ;;
2851 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2852 esac
2853 host=$ac_cv_host
2854 ac_save_IFS=$IFS; IFS='-'
2855 set x $ac_cv_host
2856 shift
2857 host_cpu=$1
2858 host_vendor=$2
2859 shift; shift
2860 # Remember, the first character of IFS is used to create $*,
2861 # except with old shells:
2862 host_os=$*
2863 IFS=$ac_save_IFS
2864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2868 $as_echo_n "checking target system type... " >&6; }
2869 if ${ac_cv_target+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test "x$target_alias" = x; then
2873 ac_cv_target=$ac_cv_host
2874 else
2875 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2881 $as_echo "$ac_cv_target" >&6; }
2882 case $ac_cv_target in
2883 *-*-*) ;;
2884 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2885 esac
2886 target=$ac_cv_target
2887 ac_save_IFS=$IFS; IFS='-'
2888 set x $ac_cv_target
2889 shift
2890 target_cpu=$1
2891 target_vendor=$2
2892 shift; shift
2893 # Remember, the first character of IFS is used to create $*,
2894 # except with old shells:
2895 target_os=$*
2896 IFS=$ac_save_IFS
2897 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2900 # The aliases save the names the user supplied, while $host etc.
2901 # will get canonicalized.
2902 test -n "$target_alias" &&
2903 test "$program_prefix$program_suffix$program_transform_name" = \
2904 NONENONEs,x,x, &&
2905 program_prefix=${target_alias}-
2908 am__api_version='1.15'
2910 # Find a good install program. We prefer a C program (faster),
2911 # so one script is as good as another. But avoid the broken or
2912 # incompatible versions:
2913 # SysV /etc/install, /usr/sbin/install
2914 # SunOS /usr/etc/install
2915 # IRIX /sbin/install
2916 # AIX /bin/install
2917 # AmigaOS /C/install, which installs bootblocks on floppy discs
2918 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2919 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2920 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2921 # OS/2's system install, which has a completely different semantic
2922 # ./install, which can be erroneously created by make from ./install.sh.
2923 # Reject install programs that cannot install multiple files.
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2925 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2926 if test -z "$INSTALL"; then
2927 if ${ac_cv_path_install+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 # Account for people who put trailing slashes in PATH elements.
2936 case $as_dir/ in #((
2937 ./ | .// | /[cC]/* | \
2938 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2939 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2940 /usr/ucb/* ) ;;
2942 # OSF1 and SCO ODT 3.0 have their own names for install.
2943 # Don't use installbsd from OSF since it installs stuff as root
2944 # by default.
2945 for ac_prog in ginstall scoinst install; do
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2948 if test $ac_prog = install &&
2949 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2950 # AIX install. It has an incompatible calling convention.
2952 elif test $ac_prog = install &&
2953 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2954 # program-specific install script used by HP pwplus--don't use.
2956 else
2957 rm -rf conftest.one conftest.two conftest.dir
2958 echo one > conftest.one
2959 echo two > conftest.two
2960 mkdir conftest.dir
2961 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2962 test -s conftest.one && test -s conftest.two &&
2963 test -s conftest.dir/conftest.one &&
2964 test -s conftest.dir/conftest.two
2965 then
2966 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2967 break 3
2971 done
2972 done
2974 esac
2976 done
2977 IFS=$as_save_IFS
2979 rm -rf conftest.one conftest.two conftest.dir
2982 if test "${ac_cv_path_install+set}" = set; then
2983 INSTALL=$ac_cv_path_install
2984 else
2985 # As a last resort, use the slow shell script. Don't cache a
2986 # value for INSTALL within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the value is a relative name.
2989 INSTALL=$ac_install_sh
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2993 $as_echo "$INSTALL" >&6; }
2995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2996 # It thinks the first close brace ends the variable substitution.
2997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3004 $as_echo_n "checking whether build environment is sane... " >&6; }
3005 # Reject unsafe characters in $srcdir or the absolute working directory
3006 # name. Accept space and tab only in the latter.
3007 am_lf='
3009 case `pwd` in
3010 *[\\\"\#\$\&\'\`$am_lf]*)
3011 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3012 esac
3013 case $srcdir in
3014 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3015 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3016 esac
3018 # Do 'set' in a subshell so we don't clobber the current shell's
3019 # arguments. Must try -L first in case configure is actually a
3020 # symlink; some systems play weird games with the mod time of symlinks
3021 # (eg FreeBSD returns the mod time of the symlink's containing
3022 # directory).
3023 if (
3024 am_has_slept=no
3025 for am_try in 1 2; do
3026 echo "timestamp, slept: $am_has_slept" > conftest.file
3027 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3028 if test "$*" = "X"; then
3029 # -L didn't work.
3030 set X `ls -t "$srcdir/configure" conftest.file`
3032 if test "$*" != "X $srcdir/configure conftest.file" \
3033 && test "$*" != "X conftest.file $srcdir/configure"; then
3035 # If neither matched, then we have a broken ls. This can happen
3036 # if, for instance, CONFIG_SHELL is bash and it inherits a
3037 # broken ls alias from the environment. This has actually
3038 # happened. Such a system could not be considered "sane".
3039 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3040 alias in your environment" "$LINENO" 5
3042 if test "$2" = conftest.file || test $am_try -eq 2; then
3043 break
3045 # Just in case.
3046 sleep 1
3047 am_has_slept=yes
3048 done
3049 test "$2" = conftest.file
3051 then
3052 # Ok.
3054 else
3055 as_fn_error $? "newly created file is older than distributed files!
3056 Check your system clock" "$LINENO" 5
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059 $as_echo "yes" >&6; }
3060 # If we didn't sleep, we still need to ensure time stamps of config.status and
3061 # generated files are strictly newer.
3062 am_sleep_pid=
3063 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3064 ( sleep 1 ) &
3065 am_sleep_pid=$!
3068 rm -f conftest.file
3070 test "$program_prefix" != NONE &&
3071 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3072 # Use a double $ so make ignores it.
3073 test "$program_suffix" != NONE &&
3074 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3075 # Double any \ or $.
3076 # By default was `s,x,x', remove it if useless.
3077 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3078 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3080 # Expand $ac_aux_dir to an absolute path.
3081 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3083 if test x"${MISSING+set}" != xset; then
3084 case $am_aux_dir in
3085 *\ * | *\ *)
3086 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3088 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3089 esac
3091 # Use eval to expand $SHELL
3092 if eval "$MISSING --is-lightweight"; then
3093 am_missing_run="$MISSING "
3094 else
3095 am_missing_run=
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3097 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3100 if test x"${install_sh+set}" != xset; then
3101 case $am_aux_dir in
3102 *\ * | *\ *)
3103 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3105 install_sh="\${SHELL} $am_aux_dir/install-sh"
3106 esac
3109 # Installed binaries are usually stripped using 'strip' when the user
3110 # run "make install-strip". However 'strip' might not be the right
3111 # tool to use in cross-compilation environments, therefore Automake
3112 # will honor the 'STRIP' environment variable to overrule this program.
3113 if test "$cross_compiling" != no; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}strip; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_STRIP+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$STRIP"; then
3123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3136 done
3137 done
3138 IFS=$as_save_IFS
3142 STRIP=$ac_cv_prog_STRIP
3143 if test -n "$STRIP"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3145 $as_echo "$STRIP" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3153 if test -z "$ac_cv_prog_STRIP"; then
3154 ac_ct_STRIP=$STRIP
3155 # Extract the first word of "strip", so it can be a program name with args.
3156 set dummy strip; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$ac_ct_STRIP"; then
3163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_ac_ct_STRIP="strip"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3176 done
3177 done
3178 IFS=$as_save_IFS
3182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3183 if test -n "$ac_ct_STRIP"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3185 $as_echo "$ac_ct_STRIP" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3191 if test "x$ac_ct_STRIP" = x; then
3192 STRIP=":"
3193 else
3194 case $cross_compiling:$ac_tool_warned in
3195 yes:)
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned=yes ;;
3199 esac
3200 STRIP=$ac_ct_STRIP
3202 else
3203 STRIP="$ac_cv_prog_STRIP"
3207 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3210 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3211 if test -z "$MKDIR_P"; then
3212 if ${ac_cv_path_mkdir+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_prog in mkdir gmkdir; do
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3223 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3224 'mkdir (GNU coreutils) '* | \
3225 'mkdir (coreutils) '* | \
3226 'mkdir (fileutils) '4.1*)
3227 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3228 break 3;;
3229 esac
3230 done
3231 done
3232 done
3233 IFS=$as_save_IFS
3237 test -d ./--version && rmdir ./--version
3238 if test "${ac_cv_path_mkdir+set}" = set; then
3239 MKDIR_P="$ac_cv_path_mkdir -p"
3240 else
3241 # As a last resort, use the slow shell script. Don't cache a
3242 # value for MKDIR_P within a source directory, because that will
3243 # break other packages using the cache if that directory is
3244 # removed, or if the value is a relative name.
3245 MKDIR_P="$ac_install_sh -d"
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3249 $as_echo "$MKDIR_P" >&6; }
3251 for ac_prog in gawk mawk nawk awk
3253 # Extract the first word of "$ac_prog", so it can be a program name with args.
3254 set dummy $ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_AWK+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$AWK"; then
3261 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_AWK="$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3274 done
3275 done
3276 IFS=$as_save_IFS
3280 AWK=$ac_cv_prog_AWK
3281 if test -n "$AWK"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3283 $as_echo "$AWK" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3290 test -n "$AWK" && break
3291 done
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3294 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3295 set x ${MAKE-make}
3296 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3297 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 cat >conftest.make <<\_ACEOF
3301 SHELL = /bin/sh
3302 all:
3303 @echo '@@@%%%=$(MAKE)=@@@%%%'
3304 _ACEOF
3305 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3307 *@@@%%%=?*=@@@%%%*)
3308 eval ac_cv_prog_make_${ac_make}_set=yes;;
3310 eval ac_cv_prog_make_${ac_make}_set=no;;
3311 esac
3312 rm -f conftest.make
3314 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 SET_MAKE=
3318 else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 SET_MAKE="MAKE=${MAKE-make}"
3324 rm -rf .tst 2>/dev/null
3325 mkdir .tst 2>/dev/null
3326 if test -d .tst; then
3327 am__leading_dot=.
3328 else
3329 am__leading_dot=_
3331 rmdir .tst 2>/dev/null
3333 # Check whether --enable-silent-rules was given.
3334 if test "${enable_silent_rules+set}" = set; then :
3335 enableval=$enable_silent_rules;
3338 case $enable_silent_rules in # (((
3339 yes) AM_DEFAULT_VERBOSITY=0;;
3340 no) AM_DEFAULT_VERBOSITY=1;;
3341 *) AM_DEFAULT_VERBOSITY=1;;
3342 esac
3343 am_make=${MAKE-make}
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3345 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3346 if ${am_cv_make_support_nested_variables+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if $as_echo 'TRUE=$(BAR$(V))
3350 BAR0=false
3351 BAR1=true
3353 am__doit:
3354 @$(TRUE)
3355 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3356 am_cv_make_support_nested_variables=yes
3357 else
3358 am_cv_make_support_nested_variables=no
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3362 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3363 if test $am_cv_make_support_nested_variables = yes; then
3364 AM_V='$(V)'
3365 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3366 else
3367 AM_V=$AM_DEFAULT_VERBOSITY
3368 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3370 AM_BACKSLASH='\'
3372 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3373 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3374 # is not polluted with repeated "-I."
3375 am__isrc=' -I$(srcdir)'
3376 # test to see if srcdir already configured
3377 if test -f $srcdir/config.status; then
3378 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3382 # test whether we have cygpath
3383 if test -z "$CYGPATH_W"; then
3384 if (cygpath --version) >/dev/null 2>/dev/null; then
3385 CYGPATH_W='cygpath -w'
3386 else
3387 CYGPATH_W=echo
3392 # Define the identity of the package.
3393 PACKAGE='ld'
3394 VERSION='2.43.50'
3397 cat >>confdefs.h <<_ACEOF
3398 #define PACKAGE "$PACKAGE"
3399 _ACEOF
3402 cat >>confdefs.h <<_ACEOF
3403 #define VERSION "$VERSION"
3404 _ACEOF
3406 # Some tools Automake needs.
3408 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3411 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3414 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3417 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3420 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3422 # For better backward compatibility. To be removed once Automake 1.9.x
3423 # dies out for good. For more background, see:
3424 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3425 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3426 mkdir_p='$(MKDIR_P)'
3428 # We need awk for the "check" target (and possibly the TAP driver). The
3429 # system "awk" is bad on some platforms.
3430 # Always define AMTAR for backward compatibility. Yes, it's still used
3431 # in the wild :-( We should find a proper way to deprecate it ...
3432 AMTAR='$${TAR-tar}'
3435 # We'll loop over all known methods to create a tar archive until one works.
3436 _am_tools='gnutar pax cpio none'
3438 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3445 # POSIX will say in a future version that running "rm -f" with no argument
3446 # is OK; and we want to be able to make that assumption in our Makefile
3447 # recipes. So use an aggressive probe to check that the usage we want is
3448 # actually supported "in the wild" to an acceptable degree.
3449 # See automake bug#10828.
3450 # To make any issue more visible, cause the running configure to be aborted
3451 # by default if the 'rm' program in use doesn't match our expectations; the
3452 # user can still override this though.
3453 if rm -f && rm -fr && rm -rf; then : OK; else
3454 cat >&2 <<'END'
3455 Oops!
3457 Your 'rm' program seems unable to run without file operands specified
3458 on the command line, even when the '-f' option is present. This is contrary
3459 to the behaviour of most rm programs out there, and not conforming with
3460 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3462 Please tell bug-automake@gnu.org about your system, including the value
3463 of your $PATH and any error possibly output before this message. This
3464 can help us improve future automake versions.
3467 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3468 echo 'Configuration will proceed anyway, since you have set the' >&2
3469 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3470 echo >&2
3471 else
3472 cat >&2 <<'END'
3473 Aborting the configuration process, to ensure you take notice of the issue.
3475 You can download and install GNU coreutils to get an 'rm' implementation
3476 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3478 If you want to complete the configuration process using your problematic
3479 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3480 to "yes", and re-run configure.
3483 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3487 # Check whether --enable-silent-rules was given.
3488 if test "${enable_silent_rules+set}" = set; then :
3489 enableval=$enable_silent_rules;
3492 case $enable_silent_rules in # (((
3493 yes) AM_DEFAULT_VERBOSITY=0;;
3494 no) AM_DEFAULT_VERBOSITY=1;;
3495 *) AM_DEFAULT_VERBOSITY=0;;
3496 esac
3497 am_make=${MAKE-make}
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3499 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3500 if ${am_cv_make_support_nested_variables+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if $as_echo 'TRUE=$(BAR$(V))
3504 BAR0=false
3505 BAR1=true
3507 am__doit:
3508 @$(TRUE)
3509 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3510 am_cv_make_support_nested_variables=yes
3511 else
3512 am_cv_make_support_nested_variables=no
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3516 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3517 if test $am_cv_make_support_nested_variables = yes; then
3518 AM_V='$(V)'
3519 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3520 else
3521 AM_V=$AM_DEFAULT_VERBOSITY
3522 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3524 AM_BACKSLASH='\'
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3528 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3529 # Check whether --enable-maintainer-mode was given.
3530 if test "${enable_maintainer_mode+set}" = set; then :
3531 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3532 else
3533 USE_MAINTAINER_MODE=no
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3537 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3538 if test $USE_MAINTAINER_MODE = yes; then
3539 MAINTAINER_MODE_TRUE=
3540 MAINTAINER_MODE_FALSE='#'
3541 else
3542 MAINTAINER_MODE_TRUE='#'
3543 MAINTAINER_MODE_FALSE=
3546 MAINT=$MAINTAINER_MODE_TRUE
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 if test -n "$ac_tool_prefix"; then
3556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$CC"; then
3564 ac_cv_prog_CC="$CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3579 IFS=$as_save_IFS
3583 CC=$ac_cv_prog_CC
3584 if test -n "$CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3594 if test -z "$ac_cv_prog_CC"; then
3595 ac_ct_CC=$CC
3596 # Extract the first word of "gcc", so it can be a program name with args.
3597 set dummy gcc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$ac_ct_CC"; then
3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 ac_cv_prog_ac_ct_CC="gcc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3624 if test -n "$ac_ct_CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3626 $as_echo "$ac_ct_CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3632 if test "x$ac_ct_CC" = x; then
3633 CC=""
3634 else
3635 case $cross_compiling:$ac_tool_warned in
3636 yes:)
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3639 ac_tool_warned=yes ;;
3640 esac
3641 CC=$ac_ct_CC
3643 else
3644 CC="$ac_cv_prog_CC"
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}cc; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if ${ac_cv_prog_CC+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="${ac_tool_prefix}cc"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3672 IFS=$as_save_IFS
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3688 if test -z "$CC"; then
3689 # Extract the first word of "cc", so it can be a program name with args.
3690 set dummy cc; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if ${ac_cv_prog_CC+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 ac_prog_rejected=no
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3708 ac_prog_rejected=yes
3709 continue
3711 ac_cv_prog_CC="cc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3719 if test $ac_prog_rejected = yes; then
3720 # We found a bogon in the path, so make sure we never use it.
3721 set dummy $ac_cv_prog_CC
3722 shift
3723 if test $# != 0; then
3724 # We chose a different compiler from the bogus one.
3725 # However, it has the same basename, so the bogon will be chosen
3726 # first if we set CC to just the basename; use the full file name.
3727 shift
3728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3744 if test -z "$CC"; then
3745 if test -n "$ac_tool_prefix"; then
3746 for ac_prog in cl.exe
3748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if ${ac_cv_prog_CC+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$CC"; then
3756 ac_cv_prog_CC="$CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3769 done
3770 done
3771 IFS=$as_save_IFS
3775 CC=$ac_cv_prog_CC
3776 if test -n "$CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778 $as_echo "$CC" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3785 test -n "$CC" && break
3786 done
3788 if test -z "$CC"; then
3789 ac_ct_CC=$CC
3790 for ac_prog in cl.exe
3792 # Extract the first word of "$ac_prog", so it can be a program name with args.
3793 set dummy $ac_prog; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$ac_ct_CC"; then
3800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809 ac_cv_prog_ac_ct_CC="$ac_prog"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3813 done
3814 done
3815 IFS=$as_save_IFS
3819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3820 if test -n "$ac_ct_CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3822 $as_echo "$ac_ct_CC" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3829 test -n "$ac_ct_CC" && break
3830 done
3832 if test "x$ac_ct_CC" = x; then
3833 CC=""
3834 else
3835 case $cross_compiling:$ac_tool_warned in
3836 yes:)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839 ac_tool_warned=yes ;;
3840 esac
3841 CC=$ac_ct_CC
3848 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850 as_fn_error $? "no acceptable C compiler found in \$PATH
3851 See \`config.log' for more details" "$LINENO" 5; }
3853 # Provide some information about the compiler.
3854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3855 set X $ac_compile
3856 ac_compiler=$2
3857 for ac_option in --version -v -V -qversion; do
3858 { { ac_try="$ac_compiler $ac_option >&5"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3866 ac_status=$?
3867 if test -s conftest.err; then
3868 sed '10a\
3869 ... rest of stderr output deleted ...
3870 10q' conftest.err >conftest.er1
3871 cat conftest.er1 >&5
3873 rm -f conftest.er1 conftest.err
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3876 done
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3882 main ()
3886 return 0;
3888 _ACEOF
3889 ac_clean_files_save=$ac_clean_files
3890 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3891 # Try to create an executable without -o first, disregard a.out.
3892 # It will help us diagnose broken compilers, and finding out an intuition
3893 # of exeext.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3895 $as_echo_n "checking whether the C compiler works... " >&6; }
3896 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3898 # The possible output files:
3899 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3901 ac_rmfiles=
3902 for ac_file in $ac_files
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3907 esac
3908 done
3909 rm -f $ac_rmfiles
3911 if { { ac_try="$ac_link_default"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_link_default") 2>&5
3919 ac_status=$?
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then :
3922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3925 # so that the user can short-circuit this test for compilers unknown to
3926 # Autoconf.
3927 for ac_file in $ac_files ''
3929 test -f "$ac_file" || continue
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3933 [ab].out )
3934 # We found the default executable, but exeext='' is most
3935 # certainly right.
3936 break;;
3937 *.* )
3938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3939 then :; else
3940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 # We set ac_cv_exeext here because the later test for it is not
3943 # safe: cross compilers may not add the suffix if given an `-o'
3944 # argument, so we may need to know it at that point already.
3945 # Even if this section looks crufty: it has the advantage of
3946 # actually working.
3947 break;;
3949 break;;
3950 esac
3951 done
3952 test "$ac_cv_exeext" = no && ac_cv_exeext=
3954 else
3955 ac_file=''
3957 if test -z "$ac_file"; then :
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 $as_echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error 77 "C compiler cannot create executables
3966 See \`config.log' for more details" "$LINENO" 5; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3972 $as_echo_n "checking for C compiler default output file name... " >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3974 $as_echo "$ac_file" >&6; }
3975 ac_exeext=$ac_cv_exeext
3977 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3978 ac_clean_files=$ac_clean_files_save
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3980 $as_echo_n "checking for suffix of executables... " >&6; }
3981 if { { ac_try="$ac_link"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 $as_echo "$ac_try_echo"; } >&5
3988 (eval "$ac_link") 2>&5
3989 ac_status=$?
3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }; then :
3992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3994 # work properly (i.e., refer to `conftest.exe'), while it won't with
3995 # `rm'.
3996 for ac_file in conftest.exe conftest conftest.*; do
3997 test -f "$ac_file" || continue
3998 case $ac_file in
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 break;;
4002 * ) break;;
4003 esac
4004 done
4005 else
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details" "$LINENO" 5; }
4011 rm -f conftest conftest$ac_cv_exeext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4013 $as_echo "$ac_cv_exeext" >&6; }
4015 rm -f conftest.$ac_ext
4016 EXEEXT=$ac_cv_exeext
4017 ac_exeext=$EXEEXT
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #include <stdio.h>
4022 main ()
4024 FILE *f = fopen ("conftest.out", "w");
4025 return ferror (f) || fclose (f) != 0;
4028 return 0;
4030 _ACEOF
4031 ac_clean_files="$ac_clean_files conftest.out"
4032 # Check that the compiler produces executables we can run. If not, either
4033 # the compiler is broken, or we cross compile.
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4035 $as_echo_n "checking whether we are cross compiling... " >&6; }
4036 if test "$cross_compiling" != yes; then
4037 { { ac_try="$ac_link"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 if { ac_try='./conftest$ac_cv_exeext'
4049 { { case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_try") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; }; then
4059 cross_compiling=no
4060 else
4061 if test "$cross_compiling" = maybe; then
4062 cross_compiling=yes
4063 else
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $? "cannot run C compiled programs.
4067 If you meant to cross compile, use \`--host'.
4068 See \`config.log' for more details" "$LINENO" 5; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4073 $as_echo "$cross_compiling" >&6; }
4075 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4076 ac_clean_files=$ac_clean_files_save
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4078 $as_echo_n "checking for suffix of object files... " >&6; }
4079 if ${ac_cv_objext+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 rm -f conftest.o conftest.obj
4094 if { { ac_try="$ac_compile"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compile") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; then :
4105 for ac_file in conftest.o conftest.obj conftest.*; do
4106 test -f "$ac_file" || continue;
4107 case $ac_file in
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4110 break;;
4111 esac
4112 done
4113 else
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error $? "cannot compute suffix of object files: cannot compile
4120 See \`config.log' for more details" "$LINENO" 5; }
4122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4125 $as_echo "$ac_cv_objext" >&6; }
4126 OBJEXT=$ac_cv_objext
4127 ac_objext=$OBJEXT
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4130 if ${ac_cv_c_compiler_gnu+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4139 #ifndef __GNUC__
4140 choke me
4141 #endif
4144 return 0;
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_compiler_gnu=yes
4149 else
4150 ac_compiler_gnu=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4157 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4158 if test $ac_compiler_gnu = yes; then
4159 GCC=yes
4160 else
4161 GCC=
4163 ac_test_CFLAGS=${CFLAGS+set}
4164 ac_save_CFLAGS=$CFLAGS
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4166 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4167 if ${ac_cv_prog_cc_g+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_save_c_werror_flag=$ac_c_werror_flag
4171 ac_c_werror_flag=yes
4172 ac_cv_prog_cc_g=no
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4178 main ()
4182 return 0;
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 else
4188 CFLAGS=""
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 main ()
4197 return 0;
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4202 else
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 CFLAGS="-g"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4209 main ()
4213 return 0;
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_g=yes
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_c_werror_flag=$ac_save_c_werror_flag
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4227 $as_echo "$ac_cv_prog_cc_g" >&6; }
4228 if test "$ac_test_CFLAGS" = set; then
4229 CFLAGS=$ac_save_CFLAGS
4230 elif test $ac_cv_prog_cc_g = yes; then
4231 if test "$GCC" = yes; then
4232 CFLAGS="-g -O2"
4233 else
4234 CFLAGS="-g"
4236 else
4237 if test "$GCC" = yes; then
4238 CFLAGS="-O2"
4239 else
4240 CFLAGS=
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4244 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4245 if ${ac_cv_prog_cc_c89+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 ac_cv_prog_cc_c89=no
4249 ac_save_CC=$CC
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <stdarg.h>
4253 #include <stdio.h>
4254 struct stat;
4255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4256 struct buf { int x; };
4257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4258 static char *e (p, i)
4259 char **p;
4260 int i;
4262 return p[i];
4264 static char *f (char * (*g) (char **, int), char **p, ...)
4266 char *s;
4267 va_list v;
4268 va_start (v,p);
4269 s = g (p, va_arg (v,int));
4270 va_end (v);
4271 return s;
4274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4275 function prototypes and stuff, but not '\xHH' hex character constants.
4276 These don't provoke an error unfortunately, instead are silently treated
4277 as 'x'. The following induces an error, until -std is added to get
4278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4279 array size at least. It's necessary to write '\x00'==0 to get something
4280 that's true only with -std. */
4281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4284 inside strings and character constants. */
4285 #define FOO(x) 'x'
4286 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4288 int test (int i, double x);
4289 struct s1 {int (*f) (int a);};
4290 struct s2 {int (*f) (double a);};
4291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 int argc;
4293 char **argv;
4295 main ()
4297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 return 0;
4301 _ACEOF
4302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 CC="$ac_save_CC $ac_arg"
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_prog_cc_c89=$ac_arg
4309 rm -f core conftest.err conftest.$ac_objext
4310 test "x$ac_cv_prog_cc_c89" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC
4316 # AC_CACHE_VAL
4317 case "x$ac_cv_prog_cc_c89" in
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 $as_echo "none needed" >&6; } ;;
4321 xno)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4323 $as_echo "unsupported" >&6; } ;;
4325 CC="$CC $ac_cv_prog_cc_c89"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4328 esac
4329 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4345 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4346 if ${am_cv_prog_cc_c_o+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4353 main ()
4357 return 0;
4359 _ACEOF
4360 # Make sure it works both with $CC and with simple cc.
4361 # Following AC_PROG_CC_C_O, we do the test twice because some
4362 # compilers refuse to overwrite an existing .o file with -o,
4363 # though they will create one.
4364 am_cv_prog_cc_c_o=yes
4365 for am_i in 1 2; do
4366 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4367 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } \
4371 && test -f conftest2.$ac_objext; then
4372 : OK
4373 else
4374 am_cv_prog_cc_c_o=no
4375 break
4377 done
4378 rm -f core conftest*
4379 unset am_i
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4382 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4383 if test "$am_cv_prog_cc_c_o" != yes; then
4384 # Losing compiler, so override with the script.
4385 # FIXME: It is wrong to rewrite CC.
4386 # But if we don't then we get into trouble of one sort or another.
4387 # A longer-term fix would be to have automake use am__CC in this case,
4388 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4389 CC="$am_aux_dir/compile $CC"
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 DEPDIR="${am__leading_dot}deps"
4399 ac_config_commands="$ac_config_commands depfiles"
4402 am_make=${MAKE-make}
4403 cat > confinc << 'END'
4404 am__doit:
4405 @echo this is the am__doit target
4406 .PHONY: am__doit
4408 # If we don't find an include directive, just comment out the code.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4410 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4411 am__include="#"
4412 am__quote=
4413 _am_result=none
4414 # First try GNU make style include.
4415 echo "include confinc" > confmf
4416 # Ignore all kinds of additional output from 'make'.
4417 case `$am_make -s -f confmf 2> /dev/null` in #(
4418 *the\ am__doit\ target*)
4419 am__include=include
4420 am__quote=
4421 _am_result=GNU
4423 esac
4424 # Now try BSD make style include.
4425 if test "$am__include" = "#"; then
4426 echo '.include "confinc"' > confmf
4427 case `$am_make -s -f confmf 2> /dev/null` in #(
4428 *the\ am__doit\ target*)
4429 am__include=.include
4430 am__quote="\""
4431 _am_result=BSD
4433 esac
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4438 $as_echo "$_am_result" >&6; }
4439 rm -f confinc confmf
4441 # Check whether --enable-dependency-tracking was given.
4442 if test "${enable_dependency_tracking+set}" = set; then :
4443 enableval=$enable_dependency_tracking;
4446 if test "x$enable_dependency_tracking" != xno; then
4447 am_depcomp="$ac_aux_dir/depcomp"
4448 AMDEPBACKSLASH='\'
4449 am__nodep='_no'
4451 if test "x$enable_dependency_tracking" != xno; then
4452 AMDEP_TRUE=
4453 AMDEP_FALSE='#'
4454 else
4455 AMDEP_TRUE='#'
4456 AMDEP_FALSE=
4461 depcc="$CC" am_compiler_list=
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4464 $as_echo_n "checking dependency style of $depcc... " >&6; }
4465 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4469 # We make a subdir and do the tests there. Otherwise we can end up
4470 # making bogus files that we don't know about and never remove. For
4471 # instance it was reported that on HP-UX the gcc test will end up
4472 # making a dummy file named 'D' -- because '-MD' means "put the output
4473 # in D".
4474 rm -rf conftest.dir
4475 mkdir conftest.dir
4476 # Copy depcomp to subdir because otherwise we won't find it if we're
4477 # using a relative directory.
4478 cp "$am_depcomp" conftest.dir
4479 cd conftest.dir
4480 # We will build objects and dependencies in a subdirectory because
4481 # it helps to detect inapplicable dependency modes. For instance
4482 # both Tru64's cc and ICC support -MD to output dependencies as a
4483 # side effect of compilation, but ICC will put the dependencies in
4484 # the current directory while Tru64 will put them in the object
4485 # directory.
4486 mkdir sub
4488 am_cv_CC_dependencies_compiler_type=none
4489 if test "$am_compiler_list" = ""; then
4490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4492 am__universal=false
4493 case " $depcc " in #(
4494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4495 esac
4497 for depmode in $am_compiler_list; do
4498 # Setup a source with many dependencies, because some compilers
4499 # like to wrap large dependency lists on column 80 (with \), and
4500 # we should not choose a depcomp mode which is confused by this.
4502 # We need to recreate these files for each test, as the compiler may
4503 # overwrite some of them when testing with obscure command lines.
4504 # This happens at least with the AIX C compiler.
4505 : > sub/conftest.c
4506 for i in 1 2 3 4 5 6; do
4507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4508 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4509 # Solaris 10 /bin/sh.
4510 echo '/* dummy */' > sub/conftst$i.h
4511 done
4512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4514 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4515 # mode. It turns out that the SunPro C++ compiler does not properly
4516 # handle '-M -o', and we need to detect this. Also, some Intel
4517 # versions had trouble with output in subdirs.
4518 am__obj=sub/conftest.${OBJEXT-o}
4519 am__minus_obj="-o $am__obj"
4520 case $depmode in
4521 gcc)
4522 # This depmode causes a compiler race in universal mode.
4523 test "$am__universal" = false || continue
4525 nosideeffect)
4526 # After this tag, mechanisms are not by side-effect, so they'll
4527 # only be used when explicitly requested.
4528 if test "x$enable_dependency_tracking" = xyes; then
4529 continue
4530 else
4531 break
4534 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4535 # This compiler won't grok '-c -o', but also, the minuso test has
4536 # not run yet. These depmodes are late enough in the game, and
4537 # so weak that their functioning should not be impacted.
4538 am__obj=conftest.${OBJEXT-o}
4539 am__minus_obj=
4541 none) break ;;
4542 esac
4543 if depmode=$depmode \
4544 source=sub/conftest.c object=$am__obj \
4545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4547 >/dev/null 2>conftest.err &&
4548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4552 # icc doesn't choke on unknown options, it will just issue warnings
4553 # or remarks (even with -Werror). So we grep stderr for any message
4554 # that says an option was ignored or not supported.
4555 # When given -MP, icc 7.0 and 7.1 complain thusly:
4556 # icc: Command line warning: ignoring option '-M'; no argument required
4557 # The diagnosis changed in icc 8.0:
4558 # icc: Command line remark: option '-MP' not supported
4559 if (grep 'ignoring option' conftest.err ||
4560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4561 am_cv_CC_dependencies_compiler_type=$depmode
4562 break
4565 done
4567 cd ..
4568 rm -rf conftest.dir
4569 else
4570 am_cv_CC_dependencies_compiler_type=none
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4575 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4576 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4579 test "x$enable_dependency_tracking" != xno \
4580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4581 am__fastdepCC_TRUE=
4582 am__fastdepCC_FALSE='#'
4583 else
4584 am__fastdepCC_TRUE='#'
4585 am__fastdepCC_FALSE=
4589 ac_ext=cpp
4590 ac_cpp='$CXXCPP $CPPFLAGS'
4591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4594 if test -z "$CXX"; then
4595 if test -n "$CCC"; then
4596 CXX=$CCC
4597 else
4598 if test -n "$ac_tool_prefix"; then
4599 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if ${ac_cv_prog_CXX+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$CXX"; then
4609 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4622 done
4623 done
4624 IFS=$as_save_IFS
4628 CXX=$ac_cv_prog_CXX
4629 if test -n "$CXX"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4631 $as_echo "$CXX" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4638 test -n "$CXX" && break
4639 done
4641 if test -z "$CXX"; then
4642 ac_ct_CXX=$CXX
4643 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$ac_ct_CXX"; then
4653 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_ac_ct_CXX="$ac_prog"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4673 if test -n "$ac_ct_CXX"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4675 $as_echo "$ac_ct_CXX" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4682 test -n "$ac_ct_CXX" && break
4683 done
4685 if test "x$ac_ct_CXX" = x; then
4686 CXX="g++"
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694 CXX=$ac_ct_CXX
4700 # Provide some information about the compiler.
4701 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4702 set X $ac_compile
4703 ac_compiler=$2
4704 for ac_option in --version -v -V -qversion; do
4705 { { ac_try="$ac_compiler $ac_option >&5"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4713 ac_status=$?
4714 if test -s conftest.err; then
4715 sed '10a\
4716 ... rest of stderr output deleted ...
4717 10q' conftest.err >conftest.er1
4718 cat conftest.er1 >&5
4720 rm -f conftest.er1 conftest.err
4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722 test $ac_status = 0; }
4723 done
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4726 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4727 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4734 main ()
4736 #ifndef __GNUC__
4737 choke me
4738 #endif
4741 return 0;
4743 _ACEOF
4744 if ac_fn_cxx_try_compile "$LINENO"; then :
4745 ac_compiler_gnu=yes
4746 else
4747 ac_compiler_gnu=no
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4754 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4755 if test $ac_compiler_gnu = yes; then
4756 GXX=yes
4757 else
4758 GXX=
4760 ac_test_CXXFLAGS=${CXXFLAGS+set}
4761 ac_save_CXXFLAGS=$CXXFLAGS
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4763 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4764 if ${ac_cv_prog_cxx_g+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4768 ac_cxx_werror_flag=yes
4769 ac_cv_prog_cxx_g=no
4770 CXXFLAGS="-g"
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4779 return 0;
4781 _ACEOF
4782 if ac_fn_cxx_try_compile "$LINENO"; then :
4783 ac_cv_prog_cxx_g=yes
4784 else
4785 CXXFLAGS=""
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4790 main ()
4794 return 0;
4796 _ACEOF
4797 if ac_fn_cxx_try_compile "$LINENO"; then :
4799 else
4800 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4801 CXXFLAGS="-g"
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4806 main ()
4810 return 0;
4812 _ACEOF
4813 if ac_fn_cxx_try_compile "$LINENO"; then :
4814 ac_cv_prog_cxx_g=yes
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4824 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4825 if test "$ac_test_CXXFLAGS" = set; then
4826 CXXFLAGS=$ac_save_CXXFLAGS
4827 elif test $ac_cv_prog_cxx_g = yes; then
4828 if test "$GXX" = yes; then
4829 CXXFLAGS="-g -O2"
4830 else
4831 CXXFLAGS="-g"
4833 else
4834 if test "$GXX" = yes; then
4835 CXXFLAGS="-O2"
4836 else
4837 CXXFLAGS=
4840 ac_ext=c
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 depcc="$CXX" am_compiler_list=
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4849 $as_echo_n "checking dependency style of $depcc... " >&6; }
4850 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4854 # We make a subdir and do the tests there. Otherwise we can end up
4855 # making bogus files that we don't know about and never remove. For
4856 # instance it was reported that on HP-UX the gcc test will end up
4857 # making a dummy file named 'D' -- because '-MD' means "put the output
4858 # in D".
4859 rm -rf conftest.dir
4860 mkdir conftest.dir
4861 # Copy depcomp to subdir because otherwise we won't find it if we're
4862 # using a relative directory.
4863 cp "$am_depcomp" conftest.dir
4864 cd conftest.dir
4865 # We will build objects and dependencies in a subdirectory because
4866 # it helps to detect inapplicable dependency modes. For instance
4867 # both Tru64's cc and ICC support -MD to output dependencies as a
4868 # side effect of compilation, but ICC will put the dependencies in
4869 # the current directory while Tru64 will put them in the object
4870 # directory.
4871 mkdir sub
4873 am_cv_CXX_dependencies_compiler_type=none
4874 if test "$am_compiler_list" = ""; then
4875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4877 am__universal=false
4878 case " $depcc " in #(
4879 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4880 esac
4882 for depmode in $am_compiler_list; do
4883 # Setup a source with many dependencies, because some compilers
4884 # like to wrap large dependency lists on column 80 (with \), and
4885 # we should not choose a depcomp mode which is confused by this.
4887 # We need to recreate these files for each test, as the compiler may
4888 # overwrite some of them when testing with obscure command lines.
4889 # This happens at least with the AIX C compiler.
4890 : > sub/conftest.c
4891 for i in 1 2 3 4 5 6; do
4892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4894 # Solaris 10 /bin/sh.
4895 echo '/* dummy */' > sub/conftst$i.h
4896 done
4897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4900 # mode. It turns out that the SunPro C++ compiler does not properly
4901 # handle '-M -o', and we need to detect this. Also, some Intel
4902 # versions had trouble with output in subdirs.
4903 am__obj=sub/conftest.${OBJEXT-o}
4904 am__minus_obj="-o $am__obj"
4905 case $depmode in
4906 gcc)
4907 # This depmode causes a compiler race in universal mode.
4908 test "$am__universal" = false || continue
4910 nosideeffect)
4911 # After this tag, mechanisms are not by side-effect, so they'll
4912 # only be used when explicitly requested.
4913 if test "x$enable_dependency_tracking" = xyes; then
4914 continue
4915 else
4916 break
4919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4920 # This compiler won't grok '-c -o', but also, the minuso test has
4921 # not run yet. These depmodes are late enough in the game, and
4922 # so weak that their functioning should not be impacted.
4923 am__obj=conftest.${OBJEXT-o}
4924 am__minus_obj=
4926 none) break ;;
4927 esac
4928 if depmode=$depmode \
4929 source=sub/conftest.c object=$am__obj \
4930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4932 >/dev/null 2>conftest.err &&
4933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4937 # icc doesn't choke on unknown options, it will just issue warnings
4938 # or remarks (even with -Werror). So we grep stderr for any message
4939 # that says an option was ignored or not supported.
4940 # When given -MP, icc 7.0 and 7.1 complain thusly:
4941 # icc: Command line warning: ignoring option '-M'; no argument required
4942 # The diagnosis changed in icc 8.0:
4943 # icc: Command line remark: option '-MP' not supported
4944 if (grep 'ignoring option' conftest.err ||
4945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4946 am_cv_CXX_dependencies_compiler_type=$depmode
4947 break
4950 done
4952 cd ..
4953 rm -rf conftest.dir
4954 else
4955 am_cv_CXX_dependencies_compiler_type=none
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4960 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4961 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4964 test "x$enable_dependency_tracking" != xno \
4965 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4966 am__fastdepCXX_TRUE=
4967 am__fastdepCXX_FALSE='#'
4968 else
4969 am__fastdepCXX_TRUE='#'
4970 am__fastdepCXX_FALSE=
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4975 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4976 if ${ac_cv_path_GREP+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -z "$GREP"; then
4980 ac_path_GREP_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_prog in grep ggrep; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4990 as_fn_executable_p "$ac_path_GREP" || continue
4991 # Check for GNU ac_path_GREP and select it if it is found.
4992 # Check for GNU $ac_path_GREP
4993 case `"$ac_path_GREP" --version 2>&1` in
4994 *GNU*)
4995 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4997 ac_count=0
4998 $as_echo_n 0123456789 >"conftest.in"
4999 while :
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 $as_echo 'GREP' >> "conftest.nl"
5005 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 as_fn_arith $ac_count + 1 && ac_count=$as_val
5008 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_GREP="$ac_path_GREP"
5011 ac_path_GREP_max=$ac_count
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5015 done
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 esac
5019 $ac_path_GREP_found && break 3
5020 done
5021 done
5022 done
5023 IFS=$as_save_IFS
5024 if test -z "$ac_cv_path_GREP"; then
5025 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5027 else
5028 ac_cv_path_GREP=$GREP
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5033 $as_echo "$ac_cv_path_GREP" >&6; }
5034 GREP="$ac_cv_path_GREP"
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5045 # On Suns, sometimes $CPP names a directory.
5046 if test -n "$CPP" && test -d "$CPP"; then
5047 CPP=
5049 if test -z "$CPP"; then
5050 if ${ac_cv_prog_CPP+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 # Double quotes because CPP needs to be expanded
5054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5056 ac_preproc_ok=false
5057 for ac_c_preproc_warn_flag in '' yes
5059 # Use a header file that comes with gcc, so configuring glibc
5060 # with a fresh cross-compiler works.
5061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062 # <limits.h> exists even on freestanding compilers.
5063 # On the NeXT, cc -E runs the code through the compiler's parser,
5064 # not just through cpp. "Syntax error" is here to catch this case.
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #ifdef __STDC__
5068 # include <limits.h>
5069 #else
5070 # include <assert.h>
5071 #endif
5072 Syntax error
5073 _ACEOF
5074 if ac_fn_c_try_cpp "$LINENO"; then :
5076 else
5077 # Broken: fails on valid input.
5078 continue
5080 rm -f conftest.err conftest.i conftest.$ac_ext
5082 # OK, works on sane cases. Now check whether nonexistent headers
5083 # can be detected and how.
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086 #include <ac_nonexistent.h>
5087 _ACEOF
5088 if ac_fn_c_try_cpp "$LINENO"; then :
5089 # Broken: success on invalid input.
5090 continue
5091 else
5092 # Passes both tests.
5093 ac_preproc_ok=:
5094 break
5096 rm -f conftest.err conftest.i conftest.$ac_ext
5098 done
5099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5100 rm -f conftest.i conftest.err conftest.$ac_ext
5101 if $ac_preproc_ok; then :
5102 break
5105 done
5106 ac_cv_prog_CPP=$CPP
5109 CPP=$ac_cv_prog_CPP
5110 else
5111 ac_cv_prog_CPP=$CPP
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5114 $as_echo "$CPP" >&6; }
5115 ac_preproc_ok=false
5116 for ac_c_preproc_warn_flag in '' yes
5118 # Use a header file that comes with gcc, so configuring glibc
5119 # with a fresh cross-compiler works.
5120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5121 # <limits.h> exists even on freestanding compilers.
5122 # On the NeXT, cc -E runs the code through the compiler's parser,
5123 # not just through cpp. "Syntax error" is here to catch this case.
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 #ifdef __STDC__
5127 # include <limits.h>
5128 #else
5129 # include <assert.h>
5130 #endif
5131 Syntax error
5132 _ACEOF
5133 if ac_fn_c_try_cpp "$LINENO"; then :
5135 else
5136 # Broken: fails on valid input.
5137 continue
5139 rm -f conftest.err conftest.i conftest.$ac_ext
5141 # OK, works on sane cases. Now check whether nonexistent headers
5142 # can be detected and how.
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #include <ac_nonexistent.h>
5146 _ACEOF
5147 if ac_fn_c_try_cpp "$LINENO"; then :
5148 # Broken: success on invalid input.
5149 continue
5150 else
5151 # Passes both tests.
5152 ac_preproc_ok=:
5153 break
5155 rm -f conftest.err conftest.i conftest.$ac_ext
5157 done
5158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5159 rm -f conftest.i conftest.err conftest.$ac_ext
5160 if $ac_preproc_ok; then :
5162 else
5163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5165 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5166 See \`config.log' for more details" "$LINENO" 5; }
5169 ac_ext=c
5170 ac_cpp='$CPP $CPPFLAGS'
5171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5177 $as_echo_n "checking for egrep... " >&6; }
5178 if ${ac_cv_path_EGREP+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5182 then ac_cv_path_EGREP="$GREP -E"
5183 else
5184 if test -z "$EGREP"; then
5185 ac_path_EGREP_found=false
5186 # Loop through the user's path and test for each of PROGNAME-LIST
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_prog in egrep; do
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5195 as_fn_executable_p "$ac_path_EGREP" || continue
5196 # Check for GNU ac_path_EGREP and select it if it is found.
5197 # Check for GNU $ac_path_EGREP
5198 case `"$ac_path_EGREP" --version 2>&1` in
5199 *GNU*)
5200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5202 ac_count=0
5203 $as_echo_n 0123456789 >"conftest.in"
5204 while :
5206 cat "conftest.in" "conftest.in" >"conftest.tmp"
5207 mv "conftest.tmp" "conftest.in"
5208 cp "conftest.in" "conftest.nl"
5209 $as_echo 'EGREP' >> "conftest.nl"
5210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5212 as_fn_arith $ac_count + 1 && ac_count=$as_val
5213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5214 # Best one so far, save it but keep looking for a better one
5215 ac_cv_path_EGREP="$ac_path_EGREP"
5216 ac_path_EGREP_max=$ac_count
5218 # 10*(2^10) chars as input seems more than enough
5219 test $ac_count -gt 10 && break
5220 done
5221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5222 esac
5224 $ac_path_EGREP_found && break 3
5225 done
5226 done
5227 done
5228 IFS=$as_save_IFS
5229 if test -z "$ac_cv_path_EGREP"; then
5230 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232 else
5233 ac_cv_path_EGREP=$EGREP
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5239 $as_echo "$ac_cv_path_EGREP" >&6; }
5240 EGREP="$ac_cv_path_EGREP"
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5244 $as_echo_n "checking for ANSI C header files... " >&6; }
5245 if ${ac_cv_header_stdc+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 #include <stdlib.h>
5251 #include <stdarg.h>
5252 #include <string.h>
5253 #include <float.h>
5256 main ()
5260 return 0;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264 ac_cv_header_stdc=yes
5265 else
5266 ac_cv_header_stdc=no
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 if test $ac_cv_header_stdc = yes; then
5271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <string.h>
5276 _ACEOF
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278 $EGREP "memchr" >/dev/null 2>&1; then :
5280 else
5281 ac_cv_header_stdc=no
5283 rm -f conftest*
5287 if test $ac_cv_header_stdc = yes; then
5288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 #include <stdlib.h>
5293 _ACEOF
5294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5295 $EGREP "free" >/dev/null 2>&1; then :
5297 else
5298 ac_cv_header_stdc=no
5300 rm -f conftest*
5304 if test $ac_cv_header_stdc = yes; then
5305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5306 if test "$cross_compiling" = yes; then :
5308 else
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311 #include <ctype.h>
5312 #include <stdlib.h>
5313 #if ((' ' & 0x0FF) == 0x020)
5314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5316 #else
5317 # define ISLOWER(c) \
5318 (('a' <= (c) && (c) <= 'i') \
5319 || ('j' <= (c) && (c) <= 'r') \
5320 || ('s' <= (c) && (c) <= 'z'))
5321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5322 #endif
5324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5326 main ()
5328 int i;
5329 for (i = 0; i < 256; i++)
5330 if (XOR (islower (i), ISLOWER (i))
5331 || toupper (i) != TOUPPER (i))
5332 return 2;
5333 return 0;
5335 _ACEOF
5336 if ac_fn_c_try_run "$LINENO"; then :
5338 else
5339 ac_cv_header_stdc=no
5341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5342 conftest.$ac_objext conftest.beam conftest.$ac_ext
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5348 $as_echo "$ac_cv_header_stdc" >&6; }
5349 if test $ac_cv_header_stdc = yes; then
5351 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5355 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5357 inttypes.h stdint.h unistd.h
5358 do :
5359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5360 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5363 cat >>confdefs.h <<_ACEOF
5364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 _ACEOF
5369 done
5373 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5374 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5375 MINIX=yes
5376 else
5377 MINIX=
5381 if test "$MINIX" = yes; then
5383 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5386 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5389 $as_echo "#define _MINIX 1" >>confdefs.h
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5395 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5396 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 # define __EXTENSIONS__ 1
5403 $ac_includes_default
5405 main ()
5409 return 0;
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 ac_cv_safe_to_define___extensions__=yes
5414 else
5415 ac_cv_safe_to_define___extensions__=no
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5420 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5421 test $ac_cv_safe_to_define___extensions__ = yes &&
5422 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5424 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5426 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5428 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5430 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5441 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5442 if test -n "$ac_tool_prefix"; then
5443 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5444 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 case $PKG_CONFIG in
5451 [\\/]* | ?:[\\/]*)
5452 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5466 done
5467 done
5468 IFS=$as_save_IFS
5471 esac
5473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5474 if test -n "$PKG_CONFIG"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5476 $as_echo "$PKG_CONFIG" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5484 if test -z "$ac_cv_path_PKG_CONFIG"; then
5485 ac_pt_PKG_CONFIG=$PKG_CONFIG
5486 # Extract the first word of "pkg-config", so it can be a program name with args.
5487 set dummy pkg-config; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 case $ac_pt_PKG_CONFIG in
5494 [\\/]* | ?:[\\/]*)
5495 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5509 done
5510 done
5511 IFS=$as_save_IFS
5514 esac
5516 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5517 if test -n "$ac_pt_PKG_CONFIG"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5519 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5525 if test "x$ac_pt_PKG_CONFIG" = x; then
5526 PKG_CONFIG=""
5527 else
5528 case $cross_compiling:$ac_tool_warned in
5529 yes:)
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5532 ac_tool_warned=yes ;;
5533 esac
5534 PKG_CONFIG=$ac_pt_PKG_CONFIG
5536 else
5537 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5541 if test -n "$PKG_CONFIG"; then
5542 _pkg_min_version=0.9.0
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5544 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5545 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 PKG_CONFIG=""
5555 case `pwd` in
5556 *\ * | *\ *)
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5558 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5559 esac
5563 macro_version='2.2.7a'
5564 macro_revision='1.3134'
5578 ltmain="$ac_aux_dir/ltmain.sh"
5580 # Backslashify metacharacters that are still active within
5581 # double-quoted strings.
5582 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5584 # Same as above, but do not quote variable references.
5585 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5587 # Sed substitution to delay expansion of an escaped shell variable in a
5588 # double_quote_subst'ed string.
5589 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5591 # Sed substitution to delay expansion of an escaped single quote.
5592 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5594 # Sed substitution to avoid accidental globbing in evaled expressions
5595 no_glob_subst='s/\*/\\\*/g'
5597 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5598 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5599 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5602 $as_echo_n "checking how to print strings... " >&6; }
5603 # Test print first, because it will be a builtin if present.
5604 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5605 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5606 ECHO='print -r --'
5607 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5608 ECHO='printf %s\n'
5609 else
5610 # Use this function as a fallback that always works.
5611 func_fallback_echo ()
5613 eval 'cat <<_LTECHO_EOF
5615 _LTECHO_EOF'
5617 ECHO='func_fallback_echo'
5620 # func_echo_all arg...
5621 # Invoke $ECHO with all args, space-separated.
5622 func_echo_all ()
5624 $ECHO ""
5627 case "$ECHO" in
5628 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5629 $as_echo "printf" >&6; } ;;
5630 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5631 $as_echo "print -r" >&6; } ;;
5632 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5633 $as_echo "cat" >&6; } ;;
5634 esac
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5650 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5651 if ${ac_cv_path_SED+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5655 for ac_i in 1 2 3 4 5 6 7; do
5656 ac_script="$ac_script$as_nl$ac_script"
5657 done
5658 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5659 { ac_script=; unset ac_script;}
5660 if test -z "$SED"; then
5661 ac_path_SED_found=false
5662 # Loop through the user's path and test for each of PROGNAME-LIST
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_prog in sed gsed; do
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5671 as_fn_executable_p "$ac_path_SED" || continue
5672 # Check for GNU ac_path_SED and select it if it is found.
5673 # Check for GNU $ac_path_SED
5674 case `"$ac_path_SED" --version 2>&1` in
5675 *GNU*)
5676 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5678 ac_count=0
5679 $as_echo_n 0123456789 >"conftest.in"
5680 while :
5682 cat "conftest.in" "conftest.in" >"conftest.tmp"
5683 mv "conftest.tmp" "conftest.in"
5684 cp "conftest.in" "conftest.nl"
5685 $as_echo '' >> "conftest.nl"
5686 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5688 as_fn_arith $ac_count + 1 && ac_count=$as_val
5689 if test $ac_count -gt ${ac_path_SED_max-0}; then
5690 # Best one so far, save it but keep looking for a better one
5691 ac_cv_path_SED="$ac_path_SED"
5692 ac_path_SED_max=$ac_count
5694 # 10*(2^10) chars as input seems more than enough
5695 test $ac_count -gt 10 && break
5696 done
5697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5698 esac
5700 $ac_path_SED_found && break 3
5701 done
5702 done
5703 done
5704 IFS=$as_save_IFS
5705 if test -z "$ac_cv_path_SED"; then
5706 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5708 else
5709 ac_cv_path_SED=$SED
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5714 $as_echo "$ac_cv_path_SED" >&6; }
5715 SED="$ac_cv_path_SED"
5716 rm -f conftest.sed
5718 test -z "$SED" && SED=sed
5719 Xsed="$SED -e 1s/^X//"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5732 $as_echo_n "checking for fgrep... " >&6; }
5733 if ${ac_cv_path_FGREP+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5737 then ac_cv_path_FGREP="$GREP -F"
5738 else
5739 if test -z "$FGREP"; then
5740 ac_path_FGREP_found=false
5741 # Loop through the user's path and test for each of PROGNAME-LIST
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_prog in fgrep; do
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5750 as_fn_executable_p "$ac_path_FGREP" || continue
5751 # Check for GNU ac_path_FGREP and select it if it is found.
5752 # Check for GNU $ac_path_FGREP
5753 case `"$ac_path_FGREP" --version 2>&1` in
5754 *GNU*)
5755 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5757 ac_count=0
5758 $as_echo_n 0123456789 >"conftest.in"
5759 while :
5761 cat "conftest.in" "conftest.in" >"conftest.tmp"
5762 mv "conftest.tmp" "conftest.in"
5763 cp "conftest.in" "conftest.nl"
5764 $as_echo 'FGREP' >> "conftest.nl"
5765 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5767 as_fn_arith $ac_count + 1 && ac_count=$as_val
5768 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5769 # Best one so far, save it but keep looking for a better one
5770 ac_cv_path_FGREP="$ac_path_FGREP"
5771 ac_path_FGREP_max=$ac_count
5773 # 10*(2^10) chars as input seems more than enough
5774 test $ac_count -gt 10 && break
5775 done
5776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5777 esac
5779 $ac_path_FGREP_found && break 3
5780 done
5781 done
5782 done
5783 IFS=$as_save_IFS
5784 if test -z "$ac_cv_path_FGREP"; then
5785 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5787 else
5788 ac_cv_path_FGREP=$FGREP
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5794 $as_echo "$ac_cv_path_FGREP" >&6; }
5795 FGREP="$ac_cv_path_FGREP"
5798 test -z "$GREP" && GREP=grep
5818 # Check whether --with-gnu-ld was given.
5819 if test "${with_gnu_ld+set}" = set; then :
5820 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5821 else
5822 with_gnu_ld=no
5825 ac_prog=ld
5826 if test "$GCC" = yes; then
5827 # Check if gcc -print-prog-name=ld gives a path.
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5829 $as_echo_n "checking for ld used by $CC... " >&6; }
5830 case $host in
5831 *-*-mingw*)
5832 # gcc leaves a trailing carriage return which upsets mingw
5833 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5835 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5836 esac
5837 case $ac_prog in
5838 # Accept absolute paths.
5839 [\\/]* | ?:[\\/]*)
5840 re_direlt='/[^/][^/]*/\.\./'
5841 # Canonicalize the pathname of ld
5842 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5843 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5844 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5845 done
5846 test -z "$LD" && LD="$ac_prog"
5849 # If it fails, then pretend we aren't using GCC.
5850 ac_prog=ld
5853 # If it is relative, then search for the first ld in PATH.
5854 with_gnu_ld=unknown
5856 esac
5857 elif test "$with_gnu_ld" = yes; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5859 $as_echo_n "checking for GNU ld... " >&6; }
5860 else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5862 $as_echo_n "checking for non-GNU ld... " >&6; }
5864 if ${lt_cv_path_LD+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 if test -z "$LD"; then
5868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5869 for ac_dir in $PATH; do
5870 IFS="$lt_save_ifs"
5871 test -z "$ac_dir" && ac_dir=.
5872 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5873 lt_cv_path_LD="$ac_dir/$ac_prog"
5874 # Check to see if the program is GNU ld. I'd rather use --version,
5875 # but apparently some variants of GNU ld only accept -v.
5876 # Break only if it was the GNU/non-GNU ld that we prefer.
5877 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5878 *GNU* | *'with BFD'*)
5879 test "$with_gnu_ld" != no && break
5882 test "$with_gnu_ld" != yes && break
5884 esac
5886 done
5887 IFS="$lt_save_ifs"
5888 else
5889 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5893 LD="$lt_cv_path_LD"
5894 if test -n "$LD"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5896 $as_echo "$LD" >&6; }
5897 else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5901 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5904 if ${lt_cv_prog_gnu_ld+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5908 case `$LD -v 2>&1 </dev/null` in
5909 *GNU* | *'with BFD'*)
5910 lt_cv_prog_gnu_ld=yes
5913 lt_cv_prog_gnu_ld=no
5915 esac
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5918 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5919 with_gnu_ld=$lt_cv_prog_gnu_ld
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5930 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5931 if ${lt_cv_path_NM+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$NM"; then
5935 # Let the user override the nm to test.
5936 lt_nm_to_check="$NM"
5937 else
5938 lt_nm_to_check="${ac_tool_prefix}nm"
5939 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5940 lt_nm_to_check="$lt_nm_to_check nm"
5943 for lt_tmp_nm in "$lt_nm_to_check"; do
5944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5945 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5946 IFS="$lt_save_ifs"
5947 test -z "$ac_dir" && ac_dir=.
5948 # Strip out any user-provided options from the nm to test twice,
5949 # the first time to test to see if nm (rather than its options) has
5950 # an explicit path, the second time to yield a file which can be
5951 # nm'ed itself.
5952 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5953 case "$tmp_nm_path" in
5954 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5955 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5956 esac
5957 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5958 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5959 # Check to see if the nm accepts a BSD-compat flag.
5960 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5961 # nm: unknown option "B" ignored
5962 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5963 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5964 break
5967 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5968 *$tmp_nm*)
5969 lt_cv_path_NM="$tmp_nm -p"
5970 break
5973 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5974 continue # so that we can try to find one that supports BSD flags
5976 esac
5978 esac
5980 done
5981 IFS="$lt_save_ifs"
5982 done
5983 : ${lt_cv_path_NM=no}
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5986 $as_echo "$lt_cv_path_NM" >&6; }
5987 if test "$lt_cv_path_NM" != "no"; then
5988 NM="$lt_cv_path_NM"
5989 else
5990 # Didn't find any BSD compatible name lister, look for dumpbin.
5991 if test -n "$DUMPBIN"; then :
5992 # Let the user override the test.
5993 else
5994 if test -n "$ac_tool_prefix"; then
5995 for ac_prog in dumpbin "link -dump"
5997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_prog_DUMPBIN+:} false; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if test -n "$DUMPBIN"; then
6005 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6014 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6018 done
6019 done
6020 IFS=$as_save_IFS
6024 DUMPBIN=$ac_cv_prog_DUMPBIN
6025 if test -n "$DUMPBIN"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6027 $as_echo "$DUMPBIN" >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6034 test -n "$DUMPBIN" && break
6035 done
6037 if test -z "$DUMPBIN"; then
6038 ac_ct_DUMPBIN=$DUMPBIN
6039 for ac_prog in dumpbin "link -dump"
6041 # Extract the first word of "$ac_prog", so it can be a program name with args.
6042 set dummy $ac_prog; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test -n "$ac_ct_DUMPBIN"; then
6049 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6062 done
6063 done
6064 IFS=$as_save_IFS
6068 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6069 if test -n "$ac_ct_DUMPBIN"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6071 $as_echo "$ac_ct_DUMPBIN" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6078 test -n "$ac_ct_DUMPBIN" && break
6079 done
6081 if test "x$ac_ct_DUMPBIN" = x; then
6082 DUMPBIN=":"
6083 else
6084 case $cross_compiling:$ac_tool_warned in
6085 yes:)
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088 ac_tool_warned=yes ;;
6089 esac
6090 DUMPBIN=$ac_ct_DUMPBIN
6094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6095 *COFF*)
6096 DUMPBIN="$DUMPBIN -symbols"
6099 DUMPBIN=:
6101 esac
6104 if test "$DUMPBIN" != ":"; then
6105 NM="$DUMPBIN"
6108 test -z "$NM" && NM=nm
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6116 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6117 if ${lt_cv_nm_interface+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 lt_cv_nm_interface="BSD nm"
6121 echo "int some_variable = 0;" > conftest.$ac_ext
6122 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6123 (eval "$ac_compile" 2>conftest.err)
6124 cat conftest.err >&5
6125 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6126 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6127 cat conftest.err >&5
6128 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6129 cat conftest.out >&5
6130 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6131 lt_cv_nm_interface="MS dumpbin"
6133 rm -f conftest*
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6136 $as_echo "$lt_cv_nm_interface" >&6; }
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6139 $as_echo_n "checking whether ln -s works... " >&6; }
6140 LN_S=$as_ln_s
6141 if test "$LN_S" = "ln -s"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6143 $as_echo "yes" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6146 $as_echo "no, using $LN_S" >&6; }
6149 # find the maximum length of command line arguments
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6151 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6152 if ${lt_cv_sys_max_cmd_len+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6156 teststring="ABCD"
6158 case $build_os in
6159 msdosdjgpp*)
6160 # On DJGPP, this test can blow up pretty badly due to problems in libc
6161 # (any single argument exceeding 2000 bytes causes a buffer overrun
6162 # during glob expansion). Even if it were fixed, the result of this
6163 # check would be larger than it should be.
6164 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6167 gnu*)
6168 # Under GNU Hurd, this test is not required because there is
6169 # no limit to the length of command line arguments.
6170 # Libtool will interpret -1 as no limit whatsoever
6171 lt_cv_sys_max_cmd_len=-1;
6174 cygwin* | mingw* | cegcc*)
6175 # On Win9x/ME, this test blows up -- it succeeds, but takes
6176 # about 5 minutes as the teststring grows exponentially.
6177 # Worse, since 9x/ME are not pre-emptively multitasking,
6178 # you end up with a "frozen" computer, even though with patience
6179 # the test eventually succeeds (with a max line length of 256k).
6180 # Instead, let's just punt: use the minimum linelength reported by
6181 # all of the supported platforms: 8192 (on NT/2K/XP).
6182 lt_cv_sys_max_cmd_len=8192;
6185 mint*)
6186 # On MiNT this can take a long time and run out of memory.
6187 lt_cv_sys_max_cmd_len=8192;
6190 amigaos*)
6191 # On AmigaOS with pdksh, this test takes hours, literally.
6192 # So we just punt and use a minimum line length of 8192.
6193 lt_cv_sys_max_cmd_len=8192;
6196 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6197 # This has been around since 386BSD, at least. Likely further.
6198 if test -x /sbin/sysctl; then
6199 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6200 elif test -x /usr/sbin/sysctl; then
6201 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6202 else
6203 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6205 # And add a safety zone
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6210 interix*)
6211 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6212 lt_cv_sys_max_cmd_len=196608
6215 osf*)
6216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6218 # nice to cause kernel panics so lets avoid the loop below.
6219 # First set a reasonable default.
6220 lt_cv_sys_max_cmd_len=16384
6222 if test -x /sbin/sysconfig; then
6223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6225 esac
6228 sco3.2v5*)
6229 lt_cv_sys_max_cmd_len=102400
6231 sysv5* | sco5v6* | sysv4.2uw2*)
6232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6233 if test -n "$kargmax"; then
6234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6235 else
6236 lt_cv_sys_max_cmd_len=32768
6240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6241 if test -n "$lt_cv_sys_max_cmd_len"; then
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6244 else
6245 # Make teststring a little bigger before we do anything with it.
6246 # a 1K string should be a reasonable start.
6247 for i in 1 2 3 4 5 6 7 8 ; do
6248 teststring=$teststring$teststring
6249 done
6250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6251 # If test is not a shell built-in, we'll probably end up computing a
6252 # maximum length that is only half of the actual maximum length, but
6253 # we can't tell.
6254 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6255 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6256 test $i != 17 # 1/2 MB should be enough
6258 i=`expr $i + 1`
6259 teststring=$teststring$teststring
6260 done
6261 # Only check the string length outside the loop.
6262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6263 teststring=
6264 # Add a significant safety factor because C++ compilers can tack on
6265 # massive amounts of additional arguments before passing them to the
6266 # linker. It appears as though 1/2 is a usable value.
6267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6270 esac
6274 if test -n $lt_cv_sys_max_cmd_len ; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6279 $as_echo "none" >&6; }
6281 max_cmd_len=$lt_cv_sys_max_cmd_len
6288 : ${CP="cp -f"}
6289 : ${MV="mv -f"}
6290 : ${RM="rm -f"}
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6293 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6294 # Try some XSI features
6295 xsi_shell=no
6296 ( _lt_dummy="a/b/c"
6297 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6298 = c,a/b,, \
6299 && eval 'test $(( 1 + 1 )) -eq 2 \
6300 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6301 && xsi_shell=yes
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6303 $as_echo "$xsi_shell" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6307 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6308 lt_shell_append=no
6309 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6310 >/dev/null 2>&1 \
6311 && lt_shell_append=yes
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6313 $as_echo "$lt_shell_append" >&6; }
6316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6317 lt_unset=unset
6318 else
6319 lt_unset=false
6326 # test EBCDIC or ASCII
6327 case `echo X|tr X '\101'` in
6328 A) # ASCII based system
6329 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6330 lt_SP2NL='tr \040 \012'
6331 lt_NL2SP='tr \015\012 \040\040'
6333 *) # EBCDIC based system
6334 lt_SP2NL='tr \100 \n'
6335 lt_NL2SP='tr \r\n \100\100'
6337 esac
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6348 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6349 if ${lt_cv_ld_reload_flag+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 lt_cv_ld_reload_flag='-r'
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6355 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6356 reload_flag=$lt_cv_ld_reload_flag
6357 case $reload_flag in
6358 "" | " "*) ;;
6359 *) reload_flag=" $reload_flag" ;;
6360 esac
6361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6362 case $host_os in
6363 darwin*)
6364 if test "$GCC" = yes; then
6365 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6366 else
6367 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6370 esac
6380 if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_OBJDUMP+:} false; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 if test -n "$OBJDUMP"; then
6389 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6402 done
6403 done
6404 IFS=$as_save_IFS
6408 OBJDUMP=$ac_cv_prog_OBJDUMP
6409 if test -n "$OBJDUMP"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6411 $as_echo "$OBJDUMP" >&6; }
6412 else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6419 if test -z "$ac_cv_prog_OBJDUMP"; then
6420 ac_ct_OBJDUMP=$OBJDUMP
6421 # Extract the first word of "objdump", so it can be a program name with args.
6422 set dummy objdump; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test -n "$ac_ct_OBJDUMP"; then
6429 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6442 done
6443 done
6444 IFS=$as_save_IFS
6448 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6449 if test -n "$ac_ct_OBJDUMP"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6451 $as_echo "$ac_ct_OBJDUMP" >&6; }
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6457 if test "x$ac_ct_OBJDUMP" = x; then
6458 OBJDUMP="false"
6459 else
6460 case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6465 esac
6466 OBJDUMP=$ac_ct_OBJDUMP
6468 else
6469 OBJDUMP="$ac_cv_prog_OBJDUMP"
6472 test -z "$OBJDUMP" && OBJDUMP=objdump
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6483 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6484 if ${lt_cv_deplibs_check_method+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 lt_cv_file_magic_cmd='$MAGIC_CMD'
6488 lt_cv_file_magic_test_file=
6489 lt_cv_deplibs_check_method='unknown'
6490 # Need to set the preceding variable on all platforms that support
6491 # interlibrary dependencies.
6492 # 'none' -- dependencies not supported.
6493 # `unknown' -- same as none, but documents that we really don't know.
6494 # 'pass_all' -- all dependencies passed with no checks.
6495 # 'test_compile' -- check by making test program.
6496 # 'file_magic [[regex]]' -- check by looking for files in library path
6497 # which responds to the $file_magic_cmd with a given extended regex.
6498 # If you have `file' or equivalent on your system and you're not sure
6499 # whether `pass_all' will *always* work, you probably want this one.
6501 case $host_os in
6502 aix[4-9]*)
6503 lt_cv_deplibs_check_method=pass_all
6506 beos*)
6507 lt_cv_deplibs_check_method=pass_all
6510 bsdi[45]*)
6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6512 lt_cv_file_magic_cmd='/usr/bin/file -L'
6513 lt_cv_file_magic_test_file=/shlib/libc.so
6516 cygwin*)
6517 # func_win32_libid is a shell function defined in ltmain.sh
6518 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6519 lt_cv_file_magic_cmd='func_win32_libid'
6522 mingw* | pw32*)
6523 # Base MSYS/MinGW do not provide the 'file' command needed by
6524 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6525 # unless we find 'file', for example because we are cross-compiling.
6526 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6527 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6529 lt_cv_file_magic_cmd='func_win32_libid'
6530 else
6531 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6532 lt_cv_file_magic_cmd='$OBJDUMP -f'
6536 cegcc*)
6537 # use the weaker test based on 'objdump'. See mingw*.
6538 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6539 lt_cv_file_magic_cmd='$OBJDUMP -f'
6542 darwin* | rhapsody*)
6543 lt_cv_deplibs_check_method=pass_all
6546 freebsd* | dragonfly*)
6547 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6548 case $host_cpu in
6549 i*86 )
6550 # Not sure whether the presence of OpenBSD here was a mistake.
6551 # Let's accept both of them until this is cleared up.
6552 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6553 lt_cv_file_magic_cmd=/usr/bin/file
6554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6556 esac
6557 else
6558 lt_cv_deplibs_check_method=pass_all
6562 gnu*)
6563 lt_cv_deplibs_check_method=pass_all
6566 haiku*)
6567 lt_cv_deplibs_check_method=pass_all
6570 hpux10.20* | hpux11*)
6571 lt_cv_file_magic_cmd=/usr/bin/file
6572 case $host_cpu in
6573 ia64*)
6574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6575 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6577 hppa*64*)
6578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6579 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6583 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6585 esac
6588 interix[3-9]*)
6589 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6593 irix5* | irix6* | nonstopux*)
6594 case $LD in
6595 *-32|*"-32 ") libmagic=32-bit;;
6596 *-n32|*"-n32 ") libmagic=N32;;
6597 *-64|*"-64 ") libmagic=64-bit;;
6598 *) libmagic=never-match;;
6599 esac
6600 lt_cv_deplibs_check_method=pass_all
6603 # This must be Linux ELF.
6604 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6605 lt_cv_deplibs_check_method=pass_all
6608 netbsd*)
6609 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6611 else
6612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6616 newos6*)
6617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6618 lt_cv_file_magic_cmd=/usr/bin/file
6619 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6622 *nto* | *qnx*)
6623 lt_cv_deplibs_check_method=pass_all
6626 openbsd*)
6627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6629 else
6630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6634 osf3* | osf4* | osf5*)
6635 lt_cv_deplibs_check_method=pass_all
6638 rdos*)
6639 lt_cv_deplibs_check_method=pass_all
6642 solaris*)
6643 lt_cv_deplibs_check_method=pass_all
6646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6647 lt_cv_deplibs_check_method=pass_all
6650 sysv4 | sysv4.3*)
6651 case $host_vendor in
6652 motorola)
6653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6656 ncr)
6657 lt_cv_deplibs_check_method=pass_all
6659 sequent)
6660 lt_cv_file_magic_cmd='/bin/file'
6661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6663 sni)
6664 lt_cv_file_magic_cmd='/bin/file'
6665 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6666 lt_cv_file_magic_test_file=/lib/libc.so
6668 siemens)
6669 lt_cv_deplibs_check_method=pass_all
6672 lt_cv_deplibs_check_method=pass_all
6674 esac
6677 tpf*)
6678 lt_cv_deplibs_check_method=pass_all
6680 vxworks*)
6681 # Assume VxWorks cross toolchains are built on Linux, possibly
6682 # as canadian for Windows hosts.
6683 lt_cv_deplibs_check_method=pass_all
6685 esac
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6689 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6690 file_magic_cmd=$lt_cv_file_magic_cmd
6691 deplibs_check_method=$lt_cv_deplibs_check_method
6692 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6705 plugin_option=
6706 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6707 for plugin in $plugin_names; do
6708 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6709 if test x$plugin_so = x$plugin; then
6710 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6712 if test x$plugin_so != x$plugin; then
6713 plugin_option="--plugin $plugin_so"
6714 break
6716 done
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ar; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_prog_AR+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$AR"; then
6727 ac_cv_prog_AR="$AR" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_AR="${ac_tool_prefix}ar"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6740 done
6741 done
6742 IFS=$as_save_IFS
6746 AR=$ac_cv_prog_AR
6747 if test -n "$AR"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6749 $as_echo "$AR" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6757 if test -z "$ac_cv_prog_AR"; then
6758 ac_ct_AR=$AR
6759 # Extract the first word of "ar", so it can be a program name with args.
6760 set dummy ar; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 if test -n "$ac_ct_AR"; then
6767 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6776 ac_cv_prog_ac_ct_AR="ar"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6780 done
6781 done
6782 IFS=$as_save_IFS
6786 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6787 if test -n "$ac_ct_AR"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6789 $as_echo "$ac_ct_AR" >&6; }
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6795 if test "x$ac_ct_AR" = x; then
6796 AR="false"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802 ac_tool_warned=yes ;;
6803 esac
6804 AR=$ac_ct_AR
6806 else
6807 AR="$ac_cv_prog_AR"
6810 test -z "$AR" && AR=ar
6811 if test -n "$plugin_option"; then
6812 if $AR --help 2>&1 | grep -q "\--plugin"; then
6813 touch conftest.c
6814 $AR $plugin_option rc conftest.a conftest.c
6815 if test "$?" != 0; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6817 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6818 else
6819 AR="$AR $plugin_option"
6821 rm -f conftest.*
6824 test -z "$AR_FLAGS" && AR_FLAGS=cru
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}strip; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_STRIP+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 if test -n "$STRIP"; then
6845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6858 done
6859 done
6860 IFS=$as_save_IFS
6864 STRIP=$ac_cv_prog_STRIP
6865 if test -n "$STRIP"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6867 $as_echo "$STRIP" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6875 if test -z "$ac_cv_prog_STRIP"; then
6876 ac_ct_STRIP=$STRIP
6877 # Extract the first word of "strip", so it can be a program name with args.
6878 set dummy strip; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 if test -n "$ac_ct_STRIP"; then
6885 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_ac_ct_STRIP="strip"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6898 done
6899 done
6900 IFS=$as_save_IFS
6904 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6905 if test -n "$ac_ct_STRIP"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6907 $as_echo "$ac_ct_STRIP" >&6; }
6908 else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6913 if test "x$ac_ct_STRIP" = x; then
6914 STRIP=":"
6915 else
6916 case $cross_compiling:$ac_tool_warned in
6917 yes:)
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920 ac_tool_warned=yes ;;
6921 esac
6922 STRIP=$ac_ct_STRIP
6924 else
6925 STRIP="$ac_cv_prog_STRIP"
6928 test -z "$STRIP" && STRIP=:
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_RANLIB+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$RANLIB"; then
6944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6963 RANLIB=$ac_cv_prog_RANLIB
6964 if test -n "$RANLIB"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6966 $as_echo "$RANLIB" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6974 if test -z "$ac_cv_prog_RANLIB"; then
6975 ac_ct_RANLIB=$RANLIB
6976 # Extract the first word of "ranlib", so it can be a program name with args.
6977 set dummy ranlib; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_RANLIB"; then
6984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_ac_ct_RANLIB="ranlib"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7004 if test -n "$ac_ct_RANLIB"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7006 $as_echo "$ac_ct_RANLIB" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7012 if test "x$ac_ct_RANLIB" = x; then
7013 RANLIB=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 RANLIB=$ac_ct_RANLIB
7023 else
7024 RANLIB="$ac_cv_prog_RANLIB"
7027 test -z "$RANLIB" && RANLIB=:
7028 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7029 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7030 RANLIB="$RANLIB $plugin_option"
7039 # Determine commands to create old-style static archives.
7040 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7041 old_postinstall_cmds='chmod 644 $oldlib'
7042 old_postuninstall_cmds=
7044 if test -n "$RANLIB"; then
7045 case $host_os in
7046 openbsd*)
7047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7052 esac
7053 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7056 case $host_os in
7057 darwin*)
7058 lock_old_archive_extraction=yes ;;
7060 lock_old_archive_extraction=no ;;
7061 esac
7101 # If no C compiler was specified, use CC.
7102 LTCC=${LTCC-"$CC"}
7104 # If no C compiler flags were specified, use CFLAGS.
7105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7107 # Allow CC to be a program name with arguments.
7108 compiler=$CC
7111 # Check for command to grab the raw symbol name followed by C symbol from nm.
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7113 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7114 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7118 # These are sane defaults that work on at least a few old systems.
7119 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7121 # Character class describing NM global symbol codes.
7122 symcode='[BCDEGRST]'
7124 # Regexp to match symbols that can be accessed directly from C.
7125 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7127 # Define system-specific variables.
7128 case $host_os in
7129 aix*)
7130 symcode='[BCDT]'
7132 cygwin* | mingw* | pw32* | cegcc*)
7133 symcode='[ABCDGISTW]'
7135 hpux*)
7136 if test "$host_cpu" = ia64; then
7137 symcode='[ABCDEGRST]'
7140 irix* | nonstopux*)
7141 symcode='[BCDEGRST]'
7143 osf*)
7144 symcode='[BCDEGQRST]'
7146 solaris*)
7147 symcode='[BCDRT]'
7149 sco3.2v5*)
7150 symcode='[DT]'
7152 sysv4.2uw2*)
7153 symcode='[DT]'
7155 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7156 symcode='[ABDT]'
7158 sysv4)
7159 symcode='[DFNSTU]'
7161 esac
7163 # If we're using GNU nm, then use its standard symbol codes.
7164 case `$NM -V 2>&1` in
7165 *GNU* | *'with BFD'*)
7166 symcode='[ABCDGIRSTW]' ;;
7167 esac
7169 # Transform an extracted symbol line into a proper C declaration.
7170 # Some systems (esp. on ia64) link data and code symbols differently,
7171 # so use this general approach.
7172 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7174 # Transform an extracted symbol line into symbol name and symbol address
7175 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7176 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7178 # Handle CRLF in mingw tool chain
7179 opt_cr=
7180 case $build_os in
7181 mingw*)
7182 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7184 esac
7186 # Try without a prefix underscore, then with it.
7187 for ac_symprfx in "" "_"; do
7189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7190 symxfrm="\\1 $ac_symprfx\\2 \\2"
7192 # Write the raw and C identifiers.
7193 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7194 # Fake it for dumpbin and say T for any non-static function
7195 # and D for any global variable.
7196 # Also find C++ and __fastcall symbols from MSVC++,
7197 # which start with @ or ?.
7198 lt_cv_sys_global_symbol_pipe="$AWK '"\
7199 " {last_section=section; section=\$ 3};"\
7200 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7201 " \$ 0!~/External *\|/{next};"\
7202 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7203 " {if(hide[section]) next};"\
7204 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7205 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7206 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7207 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7208 " ' prfx=^$ac_symprfx"
7209 else
7210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7213 # Check to see that the pipe works correctly.
7214 pipe_works=no
7216 rm -f conftest*
7217 cat > conftest.$ac_ext <<_LT_EOF
7218 #ifdef __cplusplus
7219 extern "C" {
7220 #endif
7221 char nm_test_var;
7222 void nm_test_func(void);
7223 void nm_test_func(void){}
7224 #ifdef __cplusplus
7226 #endif
7227 int main(){nm_test_var='a';nm_test_func();return(0);}
7228 _LT_EOF
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 # Now try to grab the symbols.
7236 nlist=conftest.nm
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7238 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7239 ac_status=$?
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; } && test -s "$nlist"; then
7242 # Try sorting and uniquifying the output.
7243 if sort "$nlist" | uniq > "$nlist"T; then
7244 mv -f "$nlist"T "$nlist"
7245 else
7246 rm -f "$nlist"T
7249 # Make sure that we snagged all the symbols we need.
7250 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7251 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7252 cat <<_LT_EOF > conftest.$ac_ext
7253 #ifdef __cplusplus
7254 extern "C" {
7255 #endif
7257 _LT_EOF
7258 # Now generate the symbol file.
7259 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7261 cat <<_LT_EOF >> conftest.$ac_ext
7263 /* The mapping between symbol names and symbols. */
7264 const struct {
7265 const char *name;
7266 void *address;
7268 lt__PROGRAM__LTX_preloaded_symbols[] =
7270 { "@PROGRAM@", (void *) 0 },
7271 _LT_EOF
7272 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7273 cat <<\_LT_EOF >> conftest.$ac_ext
7274 {0, (void *) 0}
7277 /* This works around a problem in FreeBSD linker */
7278 #ifdef FREEBSD_WORKAROUND
7279 static const void *lt_preloaded_setup() {
7280 return lt__PROGRAM__LTX_preloaded_symbols;
7282 #endif
7284 #ifdef __cplusplus
7286 #endif
7287 _LT_EOF
7288 # Now try linking the two files.
7289 mv conftest.$ac_objext conftstm.$ac_objext
7290 lt_save_LIBS="$LIBS"
7291 lt_save_CFLAGS="$CFLAGS"
7292 LIBS="conftstm.$ac_objext"
7293 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7295 (eval $ac_link) 2>&5
7296 ac_status=$?
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7299 pipe_works=yes
7301 LIBS="$lt_save_LIBS"
7302 CFLAGS="$lt_save_CFLAGS"
7303 else
7304 echo "cannot find nm_test_func in $nlist" >&5
7306 else
7307 echo "cannot find nm_test_var in $nlist" >&5
7309 else
7310 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7312 else
7313 echo "$progname: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7316 rm -rf conftest* conftst*
7318 # Do not use the global_symbol_pipe unless it works.
7319 if test "$pipe_works" = yes; then
7320 break
7321 else
7322 lt_cv_sys_global_symbol_pipe=
7324 done
7328 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7329 lt_cv_sys_global_symbol_to_cdecl=
7331 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7333 $as_echo "failed" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7336 $as_echo "ok" >&6; }
7360 # Check whether --enable-libtool-lock was given.
7361 if test "${enable_libtool_lock+set}" = set; then :
7362 enableval=$enable_libtool_lock;
7365 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7367 # Some flags need to be propagated to the compiler or linker for good
7368 # libtool support.
7369 case $host in
7370 ia64-*-hpux*)
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7375 ac_status=$?
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `/usr/bin/file conftest.$ac_objext` in
7379 *ELF-32*)
7380 HPUX_IA64_MODE="32"
7382 *ELF-64*)
7383 HPUX_IA64_MODE="64"
7385 esac
7387 rm -rf conftest*
7389 *-*-irix6*)
7390 # Find out which ABI we are using.
7391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393 (eval $ac_compile) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 if test "$lt_cv_prog_gnu_ld" = yes; then
7398 case `/usr/bin/file conftest.$ac_objext` in
7399 *32-bit*)
7400 LD="${LD-ld} -melf32bsmip"
7402 *N32*)
7403 LD="${LD-ld} -melf32bmipn32"
7405 *64-bit*)
7406 LD="${LD-ld} -melf64bmip"
7408 esac
7409 else
7410 case `/usr/bin/file conftest.$ac_objext` in
7411 *32-bit*)
7412 LD="${LD-ld} -32"
7414 *N32*)
7415 LD="${LD-ld} -n32"
7417 *64-bit*)
7418 LD="${LD-ld} -64"
7420 esac
7423 rm -rf conftest*
7426 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7427 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7428 # Find out which ABI we are using.
7429 echo 'int i;' > conftest.$ac_ext
7430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7431 (eval $ac_compile) 2>&5
7432 ac_status=$?
7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434 test $ac_status = 0; }; then
7435 case `/usr/bin/file conftest.o` in
7436 *32-bit*)
7437 case $host in
7438 x86_64-*kfreebsd*-gnu)
7439 LD="${LD-ld} -m elf_i386_fbsd"
7441 x86_64-*linux*)
7442 case `/usr/bin/file conftest.o` in
7443 *x86-64*)
7444 LD="${LD-ld} -m elf32_x86_64"
7447 LD="${LD-ld} -m elf_i386"
7449 esac
7451 powerpc64le-*linux*)
7452 LD="${LD-ld} -m elf32lppclinux"
7454 powerpc64-*linux*)
7455 LD="${LD-ld} -m elf32ppclinux"
7457 s390x-*linux*)
7458 LD="${LD-ld} -m elf_s390"
7460 sparc64-*linux*)
7461 LD="${LD-ld} -m elf32_sparc"
7463 esac
7465 *64-bit*)
7466 case $host in
7467 x86_64-*kfreebsd*-gnu)
7468 LD="${LD-ld} -m elf_x86_64_fbsd"
7470 x86_64-*linux*)
7471 LD="${LD-ld} -m elf_x86_64"
7473 powerpcle-*linux*)
7474 LD="${LD-ld} -m elf64lppc"
7476 powerpc-*linux*)
7477 LD="${LD-ld} -m elf64ppc"
7479 s390*-*linux*|s390*-*tpf*)
7480 LD="${LD-ld} -m elf64_s390"
7482 sparc*-*linux*)
7483 LD="${LD-ld} -m elf64_sparc"
7485 esac
7487 esac
7489 rm -rf conftest*
7492 *-*-sco3.2v5*)
7493 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7494 SAVE_CFLAGS="$CFLAGS"
7495 CFLAGS="$CFLAGS -belf"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7497 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7498 if ${lt_cv_cc_needs_belf+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 ac_ext=c
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7511 main ()
7515 return 0;
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519 lt_cv_cc_needs_belf=yes
7520 else
7521 lt_cv_cc_needs_belf=no
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7533 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7536 CFLAGS="$SAVE_CFLAGS"
7539 sparc*-*solaris*)
7540 # Find out which ABI we are using.
7541 echo 'int i;' > conftest.$ac_ext
7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7543 (eval $ac_compile) 2>&5
7544 ac_status=$?
7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546 test $ac_status = 0; }; then
7547 case `/usr/bin/file conftest.o` in
7548 *64-bit*)
7549 case $lt_cv_prog_gnu_ld in
7550 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7552 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7553 LD="${LD-ld} -64"
7556 esac
7558 esac
7560 rm -rf conftest*
7562 esac
7564 need_locks="$enable_libtool_lock"
7567 case $host_os in
7568 rhapsody* | darwin*)
7569 if test -n "$ac_tool_prefix"; then
7570 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 if test -n "$DSYMUTIL"; then
7578 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7591 done
7592 done
7593 IFS=$as_save_IFS
7597 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7598 if test -n "$DSYMUTIL"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7600 $as_echo "$DSYMUTIL" >&6; }
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7608 if test -z "$ac_cv_prog_DSYMUTIL"; then
7609 ac_ct_DSYMUTIL=$DSYMUTIL
7610 # Extract the first word of "dsymutil", so it can be a program name with args.
7611 set dummy dsymutil; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 if test -n "$ac_ct_DSYMUTIL"; then
7618 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7631 done
7632 done
7633 IFS=$as_save_IFS
7637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7638 if test -n "$ac_ct_DSYMUTIL"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7640 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7646 if test "x$ac_ct_DSYMUTIL" = x; then
7647 DSYMUTIL=":"
7648 else
7649 case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655 DSYMUTIL=$ac_ct_DSYMUTIL
7657 else
7658 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7661 if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_prog_NMEDIT+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 if test -n "$NMEDIT"; then
7670 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7683 done
7684 done
7685 IFS=$as_save_IFS
7689 NMEDIT=$ac_cv_prog_NMEDIT
7690 if test -n "$NMEDIT"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7692 $as_echo "$NMEDIT" >&6; }
7693 else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7700 if test -z "$ac_cv_prog_NMEDIT"; then
7701 ac_ct_NMEDIT=$NMEDIT
7702 # Extract the first word of "nmedit", so it can be a program name with args.
7703 set dummy nmedit; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 if test -n "$ac_ct_NMEDIT"; then
7710 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7723 done
7724 done
7725 IFS=$as_save_IFS
7729 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7730 if test -n "$ac_ct_NMEDIT"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7732 $as_echo "$ac_ct_NMEDIT" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7738 if test "x$ac_ct_NMEDIT" = x; then
7739 NMEDIT=":"
7740 else
7741 case $cross_compiling:$ac_tool_warned in
7742 yes:)
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7746 esac
7747 NMEDIT=$ac_ct_NMEDIT
7749 else
7750 NMEDIT="$ac_cv_prog_NMEDIT"
7753 if test -n "$ac_tool_prefix"; then
7754 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_LIPO+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 if test -n "$LIPO"; then
7762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7775 done
7776 done
7777 IFS=$as_save_IFS
7781 LIPO=$ac_cv_prog_LIPO
7782 if test -n "$LIPO"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7784 $as_echo "$LIPO" >&6; }
7785 else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7792 if test -z "$ac_cv_prog_LIPO"; then
7793 ac_ct_LIPO=$LIPO
7794 # Extract the first word of "lipo", so it can be a program name with args.
7795 set dummy lipo; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$ac_ct_LIPO"; then
7802 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_ac_ct_LIPO="lipo"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7817 IFS=$as_save_IFS
7821 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7822 if test -n "$ac_ct_LIPO"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7824 $as_echo "$ac_ct_LIPO" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7830 if test "x$ac_ct_LIPO" = x; then
7831 LIPO=":"
7832 else
7833 case $cross_compiling:$ac_tool_warned in
7834 yes:)
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7838 esac
7839 LIPO=$ac_ct_LIPO
7841 else
7842 LIPO="$ac_cv_prog_LIPO"
7845 if test -n "$ac_tool_prefix"; then
7846 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7847 set dummy ${ac_tool_prefix}otool; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_prog_OTOOL+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 if test -n "$OTOOL"; then
7854 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 break 2
7867 done
7868 done
7869 IFS=$as_save_IFS
7873 OTOOL=$ac_cv_prog_OTOOL
7874 if test -n "$OTOOL"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7876 $as_echo "$OTOOL" >&6; }
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7884 if test -z "$ac_cv_prog_OTOOL"; then
7885 ac_ct_OTOOL=$OTOOL
7886 # Extract the first word of "otool", so it can be a program name with args.
7887 set dummy otool; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$ac_ct_OTOOL"; then
7894 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903 ac_cv_prog_ac_ct_OTOOL="otool"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7907 done
7908 done
7909 IFS=$as_save_IFS
7913 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7914 if test -n "$ac_ct_OTOOL"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7916 $as_echo "$ac_ct_OTOOL" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7922 if test "x$ac_ct_OTOOL" = x; then
7923 OTOOL=":"
7924 else
7925 case $cross_compiling:$ac_tool_warned in
7926 yes:)
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929 ac_tool_warned=yes ;;
7930 esac
7931 OTOOL=$ac_ct_OTOOL
7933 else
7934 OTOOL="$ac_cv_prog_OTOOL"
7937 if test -n "$ac_tool_prefix"; then
7938 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_OTOOL64+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$OTOOL64"; then
7946 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7959 done
7960 done
7961 IFS=$as_save_IFS
7965 OTOOL64=$ac_cv_prog_OTOOL64
7966 if test -n "$OTOOL64"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7968 $as_echo "$OTOOL64" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7976 if test -z "$ac_cv_prog_OTOOL64"; then
7977 ac_ct_OTOOL64=$OTOOL64
7978 # Extract the first word of "otool64", so it can be a program name with args.
7979 set dummy otool64; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$ac_ct_OTOOL64"; then
7986 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_ac_ct_OTOOL64="otool64"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7999 done
8000 done
8001 IFS=$as_save_IFS
8005 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8006 if test -n "$ac_ct_OTOOL64"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8008 $as_echo "$ac_ct_OTOOL64" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8014 if test "x$ac_ct_OTOOL64" = x; then
8015 OTOOL64=":"
8016 else
8017 case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023 OTOOL64=$ac_ct_OTOOL64
8025 else
8026 OTOOL64="$ac_cv_prog_OTOOL64"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8056 $as_echo_n "checking for -single_module linker flag... " >&6; }
8057 if ${lt_cv_apple_cc_single_mod+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 lt_cv_apple_cc_single_mod=no
8061 if test -z "${LT_MULTI_MODULE}"; then
8062 # By default we will add the -single_module flag. You can override
8063 # by either setting the environment variable LT_MULTI_MODULE
8064 # non-empty at configure time, or by adding -multi_module to the
8065 # link flags.
8066 rm -rf libconftest.dylib*
8067 echo "int foo(void){return 1;}" > conftest.c
8068 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069 -dynamiclib -Wl,-single_module conftest.c" >&5
8070 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8071 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8072 _lt_result=$?
8073 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8074 lt_cv_apple_cc_single_mod=yes
8075 else
8076 cat conftest.err >&5
8078 rm -rf libconftest.dylib*
8079 rm -f conftest.*
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8083 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8086 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 lt_cv_ld_exported_symbols_list=no
8090 save_LDFLAGS=$LDFLAGS
8091 echo "_main" > conftest.sym
8092 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8097 main ()
8101 return 0;
8103 _ACEOF
8104 if ac_fn_c_try_link "$LINENO"; then :
8105 lt_cv_ld_exported_symbols_list=yes
8106 else
8107 lt_cv_ld_exported_symbols_list=no
8109 rm -f core conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111 LDFLAGS="$save_LDFLAGS"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8115 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8117 $as_echo_n "checking for -force_load linker flag... " >&6; }
8118 if ${lt_cv_ld_force_load+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 lt_cv_ld_force_load=no
8122 cat > conftest.c << _LT_EOF
8123 int forced_loaded() { return 2;}
8124 _LT_EOF
8125 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8126 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8127 echo "$AR cru libconftest.a conftest.o" >&5
8128 $AR cru libconftest.a conftest.o 2>&5
8129 cat > conftest.c << _LT_EOF
8130 int main() { return 0;}
8131 _LT_EOF
8132 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8133 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8134 _lt_result=$?
8135 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8136 lt_cv_ld_force_load=yes
8137 else
8138 cat conftest.err >&5
8140 rm -f conftest.err libconftest.a conftest conftest.c
8141 rm -rf conftest.dSYM
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8145 $as_echo "$lt_cv_ld_force_load" >&6; }
8146 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8147 # build without first building modern cctools / linker.
8148 case $host_cpu-$host_os in
8149 *-rhapsody* | *-darwin1.[012])
8150 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8151 *-darwin1.*)
8152 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8153 *-darwin*)
8154 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8155 # deployment target is forced to an earlier version.
8156 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8157 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8159 10.[012][,.]*)
8160 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8164 esac
8166 esac
8167 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8168 _lt_dar_single_mod='$single_module'
8170 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8171 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8172 else
8173 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8175 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8176 _lt_dsymutil='~$DSYMUTIL $lib || :'
8177 else
8178 _lt_dsymutil=
8181 esac
8183 for ac_header in dlfcn.h
8184 do :
8185 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8187 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8188 cat >>confdefs.h <<_ACEOF
8189 #define HAVE_DLFCN_H 1
8190 _ACEOF
8194 done
8201 # Set options
8205 enable_dlopen=no
8208 enable_win32_dll=no
8211 # Check whether --enable-shared was given.
8212 if test "${enable_shared+set}" = set; then :
8213 enableval=$enable_shared; p=${PACKAGE-default}
8214 case $enableval in
8215 yes) enable_shared=yes ;;
8216 no) enable_shared=no ;;
8218 enable_shared=no
8219 # Look at the argument we got. We use all the common list separators.
8220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8221 for pkg in $enableval; do
8222 IFS="$lt_save_ifs"
8223 if test "X$pkg" = "X$p"; then
8224 enable_shared=yes
8226 done
8227 IFS="$lt_save_ifs"
8229 esac
8230 else
8231 enable_shared=yes
8242 # Check whether --enable-static was given.
8243 if test "${enable_static+set}" = set; then :
8244 enableval=$enable_static; p=${PACKAGE-default}
8245 case $enableval in
8246 yes) enable_static=yes ;;
8247 no) enable_static=no ;;
8249 enable_static=no
8250 # Look at the argument we got. We use all the common list separators.
8251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8252 for pkg in $enableval; do
8253 IFS="$lt_save_ifs"
8254 if test "X$pkg" = "X$p"; then
8255 enable_static=yes
8257 done
8258 IFS="$lt_save_ifs"
8260 esac
8261 else
8262 enable_static=yes
8274 # Check whether --with-pic was given.
8275 if test "${with_pic+set}" = set; then :
8276 withval=$with_pic; pic_mode="$withval"
8277 else
8278 pic_mode=default
8282 test -z "$pic_mode" && pic_mode=default
8290 # Check whether --enable-fast-install was given.
8291 if test "${enable_fast_install+set}" = set; then :
8292 enableval=$enable_fast_install; p=${PACKAGE-default}
8293 case $enableval in
8294 yes) enable_fast_install=yes ;;
8295 no) enable_fast_install=no ;;
8297 enable_fast_install=no
8298 # Look at the argument we got. We use all the common list separators.
8299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8300 for pkg in $enableval; do
8301 IFS="$lt_save_ifs"
8302 if test "X$pkg" = "X$p"; then
8303 enable_fast_install=yes
8305 done
8306 IFS="$lt_save_ifs"
8308 esac
8309 else
8310 enable_fast_install=yes
8323 # This can be used to rebuild libtool when needed
8324 LIBTOOL_DEPS="$ltmain"
8326 # Always use our own libtool.
8327 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8354 test -z "$LN_S" && LN_S="ln -s"
8369 if test -n "${ZSH_VERSION+set}" ; then
8370 setopt NO_GLOB_SUBST
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8374 $as_echo_n "checking for objdir... " >&6; }
8375 if ${lt_cv_objdir+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 rm -f .libs 2>/dev/null
8379 mkdir .libs 2>/dev/null
8380 if test -d .libs; then
8381 lt_cv_objdir=.libs
8382 else
8383 # MS-DOS does not allow filenames that begin with a dot.
8384 lt_cv_objdir=_libs
8386 rmdir .libs 2>/dev/null
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8389 $as_echo "$lt_cv_objdir" >&6; }
8390 objdir=$lt_cv_objdir
8396 cat >>confdefs.h <<_ACEOF
8397 #define LT_OBJDIR "$lt_cv_objdir/"
8398 _ACEOF
8403 case $host_os in
8404 aix3*)
8405 # AIX sometimes has problems with the GCC collect2 program. For some
8406 # reason, if we set the COLLECT_NAMES environment variable, the problems
8407 # vanish in a puff of smoke.
8408 if test "X${COLLECT_NAMES+set}" != Xset; then
8409 COLLECT_NAMES=
8410 export COLLECT_NAMES
8413 esac
8415 # Global variables:
8416 ofile=libtool
8417 can_build_shared=yes
8419 # All known linkers require a `.a' archive for static linking (except MSVC,
8420 # which needs '.lib').
8421 libext=a
8423 with_gnu_ld="$lt_cv_prog_gnu_ld"
8425 old_CC="$CC"
8426 old_CFLAGS="$CFLAGS"
8428 # Set sane defaults for various variables
8429 test -z "$CC" && CC=cc
8430 test -z "$LTCC" && LTCC=$CC
8431 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8432 test -z "$LD" && LD=ld
8433 test -z "$ac_objext" && ac_objext=o
8435 for cc_temp in $compiler""; do
8436 case $cc_temp in
8437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8439 \-*) ;;
8440 *) break;;
8441 esac
8442 done
8443 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8446 # Only perform the check for file, if the check method requires it
8447 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8448 case $deplibs_check_method in
8449 file_magic*)
8450 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8452 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8453 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 case $MAGIC_CMD in
8457 [\\/*] | ?:[\\/]*)
8458 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8461 lt_save_MAGIC_CMD="$MAGIC_CMD"
8462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8464 for ac_dir in $ac_dummy; do
8465 IFS="$lt_save_ifs"
8466 test -z "$ac_dir" && ac_dir=.
8467 if test -f $ac_dir/${ac_tool_prefix}file; then
8468 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8469 if test -n "$file_magic_test_file"; then
8470 case $deplibs_check_method in
8471 "file_magic "*)
8472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8475 $EGREP "$file_magic_regex" > /dev/null; then
8477 else
8478 cat <<_LT_EOF 1>&2
8480 *** Warning: the command libtool uses to detect shared libraries,
8481 *** $file_magic_cmd, produces output that libtool cannot recognize.
8482 *** The result is that libtool may fail to recognize shared libraries
8483 *** as such. This will affect the creation of libtool libraries that
8484 *** depend on shared libraries, but programs linked with such libtool
8485 *** libraries will work regardless of this problem. Nevertheless, you
8486 *** may want to report the problem to your system manager and/or to
8487 *** bug-libtool@gnu.org
8489 _LT_EOF
8490 fi ;;
8491 esac
8493 break
8495 done
8496 IFS="$lt_save_ifs"
8497 MAGIC_CMD="$lt_save_MAGIC_CMD"
8499 esac
8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503 if test -n "$MAGIC_CMD"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8505 $as_echo "$MAGIC_CMD" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8515 if test -z "$lt_cv_path_MAGIC_CMD"; then
8516 if test -n "$ac_tool_prefix"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8518 $as_echo_n "checking for file... " >&6; }
8519 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 case $MAGIC_CMD in
8523 [\\/*] | ?:[\\/]*)
8524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8527 lt_save_MAGIC_CMD="$MAGIC_CMD"
8528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8530 for ac_dir in $ac_dummy; do
8531 IFS="$lt_save_ifs"
8532 test -z "$ac_dir" && ac_dir=.
8533 if test -f $ac_dir/file; then
8534 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8535 if test -n "$file_magic_test_file"; then
8536 case $deplibs_check_method in
8537 "file_magic "*)
8538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8541 $EGREP "$file_magic_regex" > /dev/null; then
8543 else
8544 cat <<_LT_EOF 1>&2
8546 *** Warning: the command libtool uses to detect shared libraries,
8547 *** $file_magic_cmd, produces output that libtool cannot recognize.
8548 *** The result is that libtool may fail to recognize shared libraries
8549 *** as such. This will affect the creation of libtool libraries that
8550 *** depend on shared libraries, but programs linked with such libtool
8551 *** libraries will work regardless of this problem. Nevertheless, you
8552 *** may want to report the problem to your system manager and/or to
8553 *** bug-libtool@gnu.org
8555 _LT_EOF
8556 fi ;;
8557 esac
8559 break
8561 done
8562 IFS="$lt_save_ifs"
8563 MAGIC_CMD="$lt_save_MAGIC_CMD"
8565 esac
8568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8569 if test -n "$MAGIC_CMD"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8571 $as_echo "$MAGIC_CMD" >&6; }
8572 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8578 else
8579 MAGIC_CMD=:
8585 esac
8587 # Use C for the default configuration in the libtool script
8589 lt_save_CC="$CC"
8590 ac_ext=c
8591 ac_cpp='$CPP $CPPFLAGS'
8592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8597 # Source file extension for C test sources.
8598 ac_ext=c
8600 # Object file extension for compiled C test sources.
8601 objext=o
8602 objext=$objext
8604 # Code to be used in simple compile tests
8605 lt_simple_compile_test_code="int some_variable = 0;"
8607 # Code to be used in simple link tests
8608 lt_simple_link_test_code='int main(){return(0);}'
8616 # If no C compiler was specified, use CC.
8617 LTCC=${LTCC-"$CC"}
8619 # If no C compiler flags were specified, use CFLAGS.
8620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8622 # Allow CC to be a program name with arguments.
8623 compiler=$CC
8625 # Save the default compiler, since it gets overwritten when the other
8626 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8627 compiler_DEFAULT=$CC
8629 # save warnings/boilerplate of simple test code
8630 ac_outfile=conftest.$ac_objext
8631 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8632 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8633 _lt_compiler_boilerplate=`cat conftest.err`
8634 $RM conftest*
8636 ac_outfile=conftest.$ac_objext
8637 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8638 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8639 _lt_linker_boilerplate=`cat conftest.err`
8640 $RM -r conftest*
8643 ## CAVEAT EMPTOR:
8644 ## There is no encapsulation within the following macros, do not change
8645 ## the running order or otherwise move them around unless you know exactly
8646 ## what you are doing...
8647 if test -n "$compiler"; then
8649 lt_prog_compiler_no_builtin_flag=
8651 if test "$GCC" = yes; then
8652 case $cc_basename in
8653 nvcc*)
8654 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8656 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8657 esac
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8660 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8661 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 lt_cv_prog_compiler_rtti_exceptions=no
8665 ac_outfile=conftest.$ac_objext
8666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8667 lt_compiler_flag="-fno-rtti -fno-exceptions"
8668 # Insert the option either (1) after the last *FLAGS variable, or
8669 # (2) before a word containing "conftest.", or (3) at the end.
8670 # Note that $ac_compile itself does not contain backslashes and begins
8671 # with a dollar sign (not a hyphen), so the echo should work correctly.
8672 # The option is referenced via a variable to avoid confusing sed.
8673 lt_compile=`echo "$ac_compile" | $SED \
8674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8676 -e 's:$: $lt_compiler_flag:'`
8677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8678 (eval "$lt_compile" 2>conftest.err)
8679 ac_status=$?
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 if (exit $ac_status) && test -s "$ac_outfile"; then
8683 # The compiler can only warn and ignore the option if not recognized
8684 # So say no if there are warnings other than the usual output.
8685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8688 lt_cv_prog_compiler_rtti_exceptions=yes
8691 $RM conftest*
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8695 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8697 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8698 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8699 else
8710 lt_prog_compiler_wl=
8711 lt_prog_compiler_pic=
8712 lt_prog_compiler_static=
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8715 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8717 if test "$GCC" = yes; then
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_static='-static'
8721 case $host_os in
8722 aix*)
8723 # All AIX code is PIC.
8724 if test "$host_cpu" = ia64; then
8725 # AIX 5 now supports IA64 processor
8726 lt_prog_compiler_static='-Bstatic'
8728 lt_prog_compiler_pic='-fPIC'
8731 amigaos*)
8732 case $host_cpu in
8733 powerpc)
8734 # see comment about AmigaOS4 .so support
8735 lt_prog_compiler_pic='-fPIC'
8737 m68k)
8738 # FIXME: we need at least 68020 code to build shared libraries, but
8739 # adding the `-m68020' flag to GCC prevents building anything better,
8740 # like `-m68040'.
8741 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8743 esac
8746 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8747 # PIC is the default for these OSes.
8750 mingw* | cygwin* | pw32* | os2* | cegcc*)
8751 # This hack is so that the source file can tell whether it is being
8752 # built for inclusion in a dll (and should export symbols for example).
8753 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8754 # (--disable-auto-import) libraries
8755 lt_prog_compiler_pic='-DDLL_EXPORT'
8758 darwin* | rhapsody*)
8759 # PIC is the default on this platform
8760 # Common symbols not allowed in MH_DYLIB files
8761 lt_prog_compiler_pic='-fno-common'
8764 haiku*)
8765 # PIC is the default for Haiku.
8766 # The "-static" flag exists, but is broken.
8767 lt_prog_compiler_static=
8770 hpux*)
8771 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8772 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8773 # sets the default TLS model and affects inlining.
8774 case $host_cpu in
8775 hppa*64*)
8776 # +Z the default
8779 lt_prog_compiler_pic='-fPIC'
8781 esac
8784 interix[3-9]*)
8785 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8786 # Instead, we relocate shared libraries at runtime.
8789 msdosdjgpp*)
8790 # Just because we use GCC doesn't mean we suddenly get shared libraries
8791 # on systems that don't support them.
8792 lt_prog_compiler_can_build_shared=no
8793 enable_shared=no
8796 *nto* | *qnx*)
8797 # QNX uses GNU C++, but need to define -shared option too, otherwise
8798 # it will coredump.
8799 lt_prog_compiler_pic='-fPIC -shared'
8802 sysv4*MP*)
8803 if test -d /usr/nec; then
8804 lt_prog_compiler_pic=-Kconform_pic
8809 lt_prog_compiler_pic='-fPIC'
8811 esac
8813 case $cc_basename in
8814 nvcc*) # Cuda Compiler Driver 2.2
8815 lt_prog_compiler_wl='-Xlinker '
8816 lt_prog_compiler_pic='-Xcompiler -fPIC'
8818 esac
8819 else
8820 # PORTME Check for flag to pass linker flags through the system compiler.
8821 case $host_os in
8822 aix*)
8823 lt_prog_compiler_wl='-Wl,'
8824 if test "$host_cpu" = ia64; then
8825 # AIX 5 now supports IA64 processor
8826 lt_prog_compiler_static='-Bstatic'
8827 else
8828 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8832 mingw* | cygwin* | pw32* | os2* | cegcc*)
8833 # This hack is so that the source file can tell whether it is being
8834 # built for inclusion in a dll (and should export symbols for example).
8835 lt_prog_compiler_pic='-DDLL_EXPORT'
8838 hpux9* | hpux10* | hpux11*)
8839 lt_prog_compiler_wl='-Wl,'
8840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8841 # not for PA HP-UX.
8842 case $host_cpu in
8843 hppa*64*|ia64*)
8844 # +Z the default
8847 lt_prog_compiler_pic='+Z'
8849 esac
8850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8851 lt_prog_compiler_static='${wl}-a ${wl}archive'
8854 irix5* | irix6* | nonstopux*)
8855 lt_prog_compiler_wl='-Wl,'
8856 # PIC (with -KPIC) is the default.
8857 lt_prog_compiler_static='-non_shared'
8860 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8861 case $cc_basename in
8862 # old Intel for x86_64 which still supported -KPIC.
8863 ecc*)
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-static'
8868 # icc used to be incompatible with GCC.
8869 # ICC 10 doesn't accept -KPIC any more.
8870 icc* | ifort*)
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-fPIC'
8873 lt_prog_compiler_static='-static'
8875 # Lahey Fortran 8.1.
8876 lf95*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='--shared'
8879 lt_prog_compiler_static='--static'
8881 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8882 # Portland Group compilers (*not* the Pentium gcc compiler,
8883 # which looks to be a dead project)
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_pic='-fpic'
8886 lt_prog_compiler_static='-Bstatic'
8888 ccc*)
8889 lt_prog_compiler_wl='-Wl,'
8890 # All Alpha code is PIC.
8891 lt_prog_compiler_static='-non_shared'
8893 xl* | bgxl* | bgf* | mpixl*)
8894 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-qpic'
8897 lt_prog_compiler_static='-qstaticlink'
8900 case `$CC -V 2>&1 | sed 5q` in
8901 *Sun\ F* | *Sun*Fortran*)
8902 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 lt_prog_compiler_wl=''
8907 *Sun\ C*)
8908 # Sun C 5.9
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 lt_prog_compiler_wl='-Wl,'
8913 esac
8915 esac
8918 newsos6)
8919 lt_prog_compiler_pic='-KPIC'
8920 lt_prog_compiler_static='-Bstatic'
8923 *nto* | *qnx*)
8924 # QNX uses GNU C++, but need to define -shared option too, otherwise
8925 # it will coredump.
8926 lt_prog_compiler_pic='-fPIC -shared'
8929 osf3* | osf4* | osf5*)
8930 lt_prog_compiler_wl='-Wl,'
8931 # All OSF/1 code is PIC.
8932 lt_prog_compiler_static='-non_shared'
8935 rdos*)
8936 lt_prog_compiler_static='-non_shared'
8939 solaris*)
8940 lt_prog_compiler_pic='-KPIC'
8941 lt_prog_compiler_static='-Bstatic'
8942 case $cc_basename in
8943 f77* | f90* | f95*)
8944 lt_prog_compiler_wl='-Qoption ld ';;
8946 lt_prog_compiler_wl='-Wl,';;
8947 esac
8950 sunos4*)
8951 lt_prog_compiler_wl='-Qoption ld '
8952 lt_prog_compiler_pic='-PIC'
8953 lt_prog_compiler_static='-Bstatic'
8956 sysv4 | sysv4.2uw2* | sysv4.3*)
8957 lt_prog_compiler_wl='-Wl,'
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-Bstatic'
8962 sysv4*MP*)
8963 if test -d /usr/nec ;then
8964 lt_prog_compiler_pic='-Kconform_pic'
8965 lt_prog_compiler_static='-Bstatic'
8969 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_pic='-KPIC'
8972 lt_prog_compiler_static='-Bstatic'
8975 unicos*)
8976 lt_prog_compiler_wl='-Wl,'
8977 lt_prog_compiler_can_build_shared=no
8980 uts4*)
8981 lt_prog_compiler_pic='-pic'
8982 lt_prog_compiler_static='-Bstatic'
8986 lt_prog_compiler_can_build_shared=no
8988 esac
8991 case $host_os in
8992 # For platforms which do not support PIC, -DPIC is meaningless:
8993 *djgpp*)
8994 lt_prog_compiler_pic=
8997 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8999 esac
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9001 $as_echo "$lt_prog_compiler_pic" >&6; }
9009 # Check to make sure the PIC flag actually works.
9011 if test -n "$lt_prog_compiler_pic"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9013 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9014 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 lt_cv_prog_compiler_pic_works=no
9018 ac_outfile=conftest.$ac_objext
9019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9020 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9021 # Insert the option either (1) after the last *FLAGS variable, or
9022 # (2) before a word containing "conftest.", or (3) at the end.
9023 # Note that $ac_compile itself does not contain backslashes and begins
9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
9025 # The option is referenced via a variable to avoid confusing sed.
9026 lt_compile=`echo "$ac_compile" | $SED \
9027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9029 -e 's:$: $lt_compiler_flag:'`
9030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9031 (eval "$lt_compile" 2>conftest.err)
9032 ac_status=$?
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 if (exit $ac_status) && test -s "$ac_outfile"; then
9036 # The compiler can only warn and ignore the option if not recognized
9037 # So say no if there are warnings other than the usual output.
9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9041 lt_cv_prog_compiler_pic_works=yes
9044 $RM conftest*
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9048 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9050 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9051 case $lt_prog_compiler_pic in
9052 "" | " "*) ;;
9053 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9054 esac
9055 else
9056 lt_prog_compiler_pic=
9057 lt_prog_compiler_can_build_shared=no
9068 # Check to make sure the static flag actually works.
9070 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9072 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9073 if ${lt_cv_prog_compiler_static_works+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 lt_cv_prog_compiler_static_works=no
9077 save_LDFLAGS="$LDFLAGS"
9078 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9079 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081 # The linker can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 if test -s conftest.err; then
9084 # Append any errors to the config.log.
9085 cat conftest.err 1>&5
9086 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if diff conftest.exp conftest.er2 >/dev/null; then
9089 lt_cv_prog_compiler_static_works=yes
9091 else
9092 lt_cv_prog_compiler_static_works=yes
9095 $RM -r conftest*
9096 LDFLAGS="$save_LDFLAGS"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9100 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9102 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9104 else
9105 lt_prog_compiler_static=
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9116 if ${lt_cv_prog_compiler_c_o+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 lt_cv_prog_compiler_c_o=no
9120 $RM -r conftest 2>/dev/null
9121 mkdir conftest
9122 cd conftest
9123 mkdir out
9124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9126 lt_compiler_flag="-o out/conftest2.$ac_objext"
9127 # Insert the option either (1) after the last *FLAGS variable, or
9128 # (2) before a word containing "conftest.", or (3) at the end.
9129 # Note that $ac_compile itself does not contain backslashes and begins
9130 # with a dollar sign (not a hyphen), so the echo should work correctly.
9131 lt_compile=`echo "$ac_compile" | $SED \
9132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9134 -e 's:$: $lt_compiler_flag:'`
9135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9136 (eval "$lt_compile" 2>out/conftest.err)
9137 ac_status=$?
9138 cat out/conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9141 then
9142 # The compiler can only warn and ignore the option if not recognized
9143 # So say no if there are warnings
9144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9147 lt_cv_prog_compiler_c_o=yes
9150 chmod u+w . 2>&5
9151 $RM conftest*
9152 # SGI C++ compiler will create directory out/ii_files/ for
9153 # template instantiation
9154 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9155 $RM out/* && rmdir out
9156 cd ..
9157 $RM -r conftest
9158 $RM conftest*
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9162 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9171 if ${lt_cv_prog_compiler_c_o+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 lt_cv_prog_compiler_c_o=no
9175 $RM -r conftest 2>/dev/null
9176 mkdir conftest
9177 cd conftest
9178 mkdir out
9179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181 lt_compiler_flag="-o out/conftest2.$ac_objext"
9182 # Insert the option either (1) after the last *FLAGS variable, or
9183 # (2) before a word containing "conftest.", or (3) at the end.
9184 # Note that $ac_compile itself does not contain backslashes and begins
9185 # with a dollar sign (not a hyphen), so the echo should work correctly.
9186 lt_compile=`echo "$ac_compile" | $SED \
9187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9189 -e 's:$: $lt_compiler_flag:'`
9190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9191 (eval "$lt_compile" 2>out/conftest.err)
9192 ac_status=$?
9193 cat out/conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9196 then
9197 # The compiler can only warn and ignore the option if not recognized
9198 # So say no if there are warnings
9199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9202 lt_cv_prog_compiler_c_o=yes
9205 chmod u+w . 2>&5
9206 $RM conftest*
9207 # SGI C++ compiler will create directory out/ii_files/ for
9208 # template instantiation
9209 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9210 $RM out/* && rmdir out
9211 cd ..
9212 $RM -r conftest
9213 $RM conftest*
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9217 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9222 hard_links="nottested"
9223 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9224 # do not overwrite the value of need_locks provided by the user
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9226 $as_echo_n "checking if we can lock with hard links... " >&6; }
9227 hard_links=yes
9228 $RM conftest*
9229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9230 touch conftest.a
9231 ln conftest.a conftest.b 2>&5 || hard_links=no
9232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9234 $as_echo "$hard_links" >&6; }
9235 if test "$hard_links" = no; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9237 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9238 need_locks=warn
9240 else
9241 need_locks=no
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9250 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9252 runpath_var=
9253 allow_undefined_flag=
9254 always_export_symbols=no
9255 archive_cmds=
9256 archive_expsym_cmds=
9257 compiler_needs_object=no
9258 enable_shared_with_static_runtimes=no
9259 export_dynamic_flag_spec=
9260 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9261 hardcode_automatic=no
9262 hardcode_direct=no
9263 hardcode_direct_absolute=no
9264 hardcode_libdir_flag_spec=
9265 hardcode_libdir_flag_spec_ld=
9266 hardcode_libdir_separator=
9267 hardcode_minus_L=no
9268 hardcode_shlibpath_var=unsupported
9269 inherit_rpath=no
9270 link_all_deplibs=unknown
9271 module_cmds=
9272 module_expsym_cmds=
9273 old_archive_from_new_cmds=
9274 old_archive_from_expsyms_cmds=
9275 thread_safe_flag_spec=
9276 whole_archive_flag_spec=
9277 # include_expsyms should be a list of space-separated symbols to be *always*
9278 # included in the symbol list
9279 include_expsyms=
9280 # exclude_expsyms can be an extended regexp of symbols to exclude
9281 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9282 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9283 # as well as any symbol that contains `d'.
9284 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9285 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9286 # platforms (ab)use it in PIC code, but their linkers get confused if
9287 # the symbol is explicitly referenced. Since portable code cannot
9288 # rely on this symbol name, it's probably fine to never include it in
9289 # preloaded symbol tables.
9290 # Exclude shared library initialization/finalization symbols.
9291 extract_expsyms_cmds=
9293 case $host_os in
9294 cygwin* | mingw* | pw32* | cegcc*)
9295 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9296 # When not using gcc, we currently assume that we are using
9297 # Microsoft Visual C++.
9298 if test "$GCC" != yes; then
9299 with_gnu_ld=no
9302 interix*)
9303 # we just hope/assume this is gcc and not c89 (= MSVC++)
9304 with_gnu_ld=yes
9306 openbsd*)
9307 with_gnu_ld=no
9309 esac
9311 ld_shlibs=yes
9313 # On some targets, GNU ld is compatible enough with the native linker
9314 # that we're better off using the native interface for both.
9315 lt_use_gnu_ld_interface=no
9316 if test "$with_gnu_ld" = yes; then
9317 case $host_os in
9318 aix*)
9319 # The AIX port of GNU ld has always aspired to compatibility
9320 # with the native linker. However, as the warning in the GNU ld
9321 # block says, versions before 2.19.5* couldn't really create working
9322 # shared libraries, regardless of the interface used.
9323 case `$LD -v 2>&1` in
9324 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9325 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9326 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9328 lt_use_gnu_ld_interface=yes
9330 esac
9333 lt_use_gnu_ld_interface=yes
9335 esac
9338 if test "$lt_use_gnu_ld_interface" = yes; then
9339 # If archive_cmds runs LD, not CC, wlarc should be empty
9340 wlarc='${wl}'
9342 # Set some defaults for GNU ld with shared library support. These
9343 # are reset later if shared libraries are not supported. Putting them
9344 # here allows them to be overridden if necessary.
9345 runpath_var=LD_RUN_PATH
9346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347 export_dynamic_flag_spec='${wl}--export-dynamic'
9348 # ancient GNU ld didn't support --whole-archive et. al.
9349 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9350 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9351 else
9352 whole_archive_flag_spec=
9354 supports_anon_versioning=no
9355 case `$LD -v 2>&1` in
9356 *GNU\ gold*) supports_anon_versioning=yes ;;
9357 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9358 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9359 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9360 *\ 2.11.*) ;; # other 2.11 versions
9361 *) supports_anon_versioning=yes ;;
9362 esac
9364 # See if GNU ld supports shared libraries.
9365 case $host_os in
9366 aix[3-9]*)
9367 # On AIX/PPC, the GNU linker is very broken
9368 if test "$host_cpu" != ia64; then
9369 ld_shlibs=no
9370 cat <<_LT_EOF 1>&2
9372 *** Warning: the GNU linker, at least up to release 2.19, is reported
9373 *** to be unable to reliably create shared libraries on AIX.
9374 *** Therefore, libtool is disabling shared libraries support. If you
9375 *** really care for shared libraries, you may want to install binutils
9376 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9377 *** You will then need to restart the configuration process.
9379 _LT_EOF
9383 amigaos*)
9384 case $host_cpu in
9385 powerpc)
9386 # see comment about AmigaOS4 .so support
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 archive_expsym_cmds=''
9390 m68k)
9391 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9392 hardcode_libdir_flag_spec='-L$libdir'
9393 hardcode_minus_L=yes
9395 esac
9398 beos*)
9399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9400 allow_undefined_flag=unsupported
9401 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9402 # support --undefined. This deserves some investigation. FIXME
9403 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 else
9405 ld_shlibs=no
9409 cygwin* | mingw* | pw32* | cegcc*)
9410 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9411 # as there is no search path for DLLs.
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 export_dynamic_flag_spec='${wl}--export-all-symbols'
9414 allow_undefined_flag=unsupported
9415 always_export_symbols=no
9416 enable_shared_with_static_runtimes=yes
9417 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9419 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9421 # If the export-symbols file already is a .def file (1st line
9422 # is EXPORTS), use it as is; otherwise, prepend...
9423 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9424 cp $export_symbols $output_objdir/$soname.def;
9425 else
9426 echo EXPORTS > $output_objdir/$soname.def;
9427 cat $export_symbols >> $output_objdir/$soname.def;
9429 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9430 else
9431 ld_shlibs=no
9435 haiku*)
9436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437 link_all_deplibs=yes
9440 interix[3-9]*)
9441 hardcode_direct=no
9442 hardcode_shlibpath_var=no
9443 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9444 export_dynamic_flag_spec='${wl}-E'
9445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9446 # Instead, shared libraries are loaded at an image base (0x10000000 by
9447 # default) and relocated if they conflict, which is a slow very memory
9448 # consuming and fragmenting process. To avoid this, we pick a random,
9449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9451 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9452 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9455 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9456 tmp_diet=no
9457 if test "$host_os" = linux-dietlibc; then
9458 case $cc_basename in
9459 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9460 esac
9462 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9463 && test "$tmp_diet" = no
9464 then
9465 tmp_addflag=' $pic_flag'
9466 tmp_sharedflag='-shared'
9467 case $cc_basename,$host_cpu in
9468 pgcc*) # Portland Group C compiler
9469 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9470 tmp_addflag=' $pic_flag'
9472 pgf77* | pgf90* | pgf95* | pgfortran*)
9473 # Portland Group f77 and f90 compilers
9474 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9475 tmp_addflag=' $pic_flag -Mnomain' ;;
9476 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9477 tmp_addflag=' -i_dynamic' ;;
9478 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9479 tmp_addflag=' -i_dynamic -nofor_main' ;;
9480 ifc* | ifort*) # Intel Fortran compiler
9481 tmp_addflag=' -nofor_main' ;;
9482 lf95*) # Lahey Fortran 8.1
9483 whole_archive_flag_spec=
9484 tmp_sharedflag='--shared' ;;
9485 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9486 tmp_sharedflag='-qmkshrobj'
9487 tmp_addflag= ;;
9488 nvcc*) # Cuda Compiler Driver 2.2
9489 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9490 compiler_needs_object=yes
9492 esac
9493 case `$CC -V 2>&1 | sed 5q` in
9494 *Sun\ C*) # Sun C 5.9
9495 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9496 compiler_needs_object=yes
9497 tmp_sharedflag='-G' ;;
9498 *Sun\ F*) # Sun Fortran 8.3
9499 tmp_sharedflag='-G' ;;
9500 esac
9501 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 if test "x$supports_anon_versioning" = xyes; then
9504 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9505 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9506 echo "local: *; };" >> $output_objdir/$libname.ver~
9507 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9510 case $cc_basename in
9511 xlf* | bgf* | bgxlf* | mpixlf*)
9512 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9513 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9514 hardcode_libdir_flag_spec=
9515 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9516 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9517 if test "x$supports_anon_versioning" = xyes; then
9518 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9520 echo "local: *; };" >> $output_objdir/$libname.ver~
9521 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9524 esac
9525 else
9526 ld_shlibs=no
9530 netbsd*)
9531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9532 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9533 wlarc=
9534 else
9535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9536 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9540 solaris*)
9541 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9542 ld_shlibs=no
9543 cat <<_LT_EOF 1>&2
9545 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9546 *** create shared libraries on Solaris systems. Therefore, libtool
9547 *** is disabling shared libraries support. We urge you to upgrade GNU
9548 *** binutils to release 2.9.1 or newer. Another option is to modify
9549 *** your PATH or compiler configuration so that the native linker is
9550 *** used, and then restart.
9552 _LT_EOF
9553 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9556 else
9557 ld_shlibs=no
9561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9562 case `$LD -v 2>&1` in
9563 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9564 ld_shlibs=no
9565 cat <<_LT_EOF 1>&2
9567 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9568 *** reliably create shared libraries on SCO systems. Therefore, libtool
9569 *** is disabling shared libraries support. We urge you to upgrade GNU
9570 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9571 *** your PATH or compiler configuration so that the native linker is
9572 *** used, and then restart.
9574 _LT_EOF
9577 # For security reasons, it is highly recommended that you always
9578 # use absolute paths for naming shared libraries, and exclude the
9579 # DT_RUNPATH tag from executables and libraries. But doing so
9580 # requires that you compile everything twice, which is a pain.
9581 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585 else
9586 ld_shlibs=no
9589 esac
9592 sunos4*)
9593 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9594 wlarc=
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9603 else
9604 ld_shlibs=no
9607 esac
9609 if test "$ld_shlibs" = no; then
9610 runpath_var=
9611 hardcode_libdir_flag_spec=
9612 export_dynamic_flag_spec=
9613 whole_archive_flag_spec=
9615 else
9616 # PORTME fill in a description of your system's linker (not GNU ld)
9617 case $host_os in
9618 aix3*)
9619 allow_undefined_flag=unsupported
9620 always_export_symbols=yes
9621 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9622 # Note: this linker hardcodes the directories in LIBPATH if there
9623 # are no directories specified by -L.
9624 hardcode_minus_L=yes
9625 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9626 # Neither direct hardcoding nor static linking is supported with a
9627 # broken collect2.
9628 hardcode_direct=unsupported
9632 aix[4-9]*)
9633 if test "$host_cpu" = ia64; then
9634 # On IA64, the linker does run time linking by default, so we don't
9635 # have to do anything special.
9636 aix_use_runtimelinking=no
9637 exp_sym_flag='-Bexport'
9638 no_entry_flag=""
9639 else
9640 # If we're using GNU nm, then we don't want the "-C" option.
9641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9642 # Also, AIX nm treats weak defined symbols like other global
9643 # defined symbols, whereas GNU nm marks them as "W".
9644 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9645 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9646 else
9647 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9649 aix_use_runtimelinking=no
9651 # Test if we are trying to use run time linking or normal
9652 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9653 # need to do runtime linking.
9654 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9655 for ld_flag in $LDFLAGS; do
9656 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9657 aix_use_runtimelinking=yes
9658 break
9660 done
9662 esac
9664 exp_sym_flag='-bexport'
9665 no_entry_flag='-bnoentry'
9668 # When large executables or shared objects are built, AIX ld can
9669 # have problems creating the table of contents. If linking a library
9670 # or program results in "error TOC overflow" add -mminimal-toc to
9671 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9672 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9674 archive_cmds=''
9675 hardcode_direct=yes
9676 hardcode_direct_absolute=yes
9677 hardcode_libdir_separator=':'
9678 link_all_deplibs=yes
9679 file_list_spec='${wl}-f,'
9681 if test "$GCC" = yes; then
9682 case $host_os in aix4.[012]|aix4.[012].*)
9683 # We only want to do this on AIX 4.2 and lower, the check
9684 # below for broken collect2 doesn't work under 4.3+
9685 collect2name=`${CC} -print-prog-name=collect2`
9686 if test -f "$collect2name" &&
9687 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9688 then
9689 # We have reworked collect2
9691 else
9692 # We have old collect2
9693 hardcode_direct=unsupported
9694 # It fails to find uninstalled libraries when the uninstalled
9695 # path is not listed in the libpath. Setting hardcode_minus_L
9696 # to unsupported forces relinking
9697 hardcode_minus_L=yes
9698 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_libdir_separator=
9702 esac
9703 shared_flag='-shared'
9704 if test "$aix_use_runtimelinking" = yes; then
9705 shared_flag="$shared_flag "'${wl}-G'
9707 else
9708 # not using gcc
9709 if test "$host_cpu" = ia64; then
9710 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9711 # chokes on -Wl,-G. The following line is correct:
9712 shared_flag='-G'
9713 else
9714 if test "$aix_use_runtimelinking" = yes; then
9715 shared_flag='${wl}-G'
9716 else
9717 shared_flag='${wl}-bM:SRE'
9722 export_dynamic_flag_spec='${wl}-bexpall'
9723 # It seems that -bexpall does not export symbols beginning with
9724 # underscore (_), so it is better to generate a list of symbols to export.
9725 always_export_symbols=yes
9726 if test "$aix_use_runtimelinking" = yes; then
9727 # Warning - without using the other runtime loading flags (-brtl),
9728 # -berok will link without error, but may produce a broken library.
9729 allow_undefined_flag='-berok'
9730 # Determine the default libpath from the value encoded in an
9731 # empty executable.
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9736 main ()
9740 return 0;
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9745 lt_aix_libpath_sed='
9746 /Import File Strings/,/^$/ {
9747 /^0/ {
9748 s/^0 *\(.*\)$/\1/
9752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753 # Check for a 64-bit object if we didn't find anything.
9754 if test -z "$aix_libpath"; then
9755 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9758 rm -f core conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9762 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9763 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9764 else
9765 if test "$host_cpu" = ia64; then
9766 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9767 allow_undefined_flag="-z nodefs"
9768 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9769 else
9770 # Determine the default libpath from the value encoded in an
9771 # empty executable.
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9776 main ()
9780 return 0;
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9785 lt_aix_libpath_sed='
9786 /Import File Strings/,/^$/ {
9787 /^0/ {
9788 s/^0 *\(.*\)$/\1/
9792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793 # Check for a 64-bit object if we didn't find anything.
9794 if test -z "$aix_libpath"; then
9795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9802 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9803 # Warning - without using the other run time loading flags,
9804 # -berok will link without error, but may produce a broken library.
9805 no_undefined_flag=' ${wl}-bernotok'
9806 allow_undefined_flag=' ${wl}-berok'
9807 if test "$with_gnu_ld" = yes; then
9808 # We only use this code for GNU lds that support --whole-archive.
9809 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9810 else
9811 # Exported symbols can be pulled into shared objects from archives
9812 whole_archive_flag_spec='$convenience'
9814 archive_cmds_need_lc=yes
9815 # This is similar to how AIX traditionally builds its shared libraries.
9816 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9821 amigaos*)
9822 case $host_cpu in
9823 powerpc)
9824 # see comment about AmigaOS4 .so support
9825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9826 archive_expsym_cmds=''
9828 m68k)
9829 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9830 hardcode_libdir_flag_spec='-L$libdir'
9831 hardcode_minus_L=yes
9833 esac
9836 bsdi[45]*)
9837 export_dynamic_flag_spec=-rdynamic
9840 cygwin* | mingw* | pw32* | cegcc*)
9841 # When not using gcc, we currently assume that we are using
9842 # Microsoft Visual C++.
9843 # hardcode_libdir_flag_spec is actually meaningless, as there is
9844 # no search path for DLLs.
9845 hardcode_libdir_flag_spec=' '
9846 allow_undefined_flag=unsupported
9847 # Tell ltmain to make .lib files, not .a files.
9848 libext=lib
9849 # Tell ltmain to make .dll files, not .so files.
9850 shrext_cmds=".dll"
9851 # FIXME: Setting linknames here is a bad hack.
9852 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9853 # The linker will automatically build a .lib file if we build a DLL.
9854 old_archive_from_new_cmds='true'
9855 # FIXME: Should let the user specify the lib program.
9856 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9857 fix_srcfile_path='`cygpath -w "$srcfile"`'
9858 enable_shared_with_static_runtimes=yes
9861 darwin* | rhapsody*)
9864 archive_cmds_need_lc=no
9865 hardcode_direct=no
9866 hardcode_automatic=yes
9867 hardcode_shlibpath_var=unsupported
9868 if test "$lt_cv_ld_force_load" = "yes"; then
9869 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9870 else
9871 whole_archive_flag_spec=''
9873 link_all_deplibs=yes
9874 allow_undefined_flag="$_lt_dar_allow_undefined"
9875 case $cc_basename in
9876 ifort*) _lt_dar_can_shared=yes ;;
9877 *) _lt_dar_can_shared=$GCC ;;
9878 esac
9879 if test "$_lt_dar_can_shared" = "yes"; then
9880 output_verbose_link_cmd=func_echo_all
9881 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9882 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9883 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9884 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9886 else
9887 ld_shlibs=no
9892 dgux*)
9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_libdir_flag_spec='-L$libdir'
9895 hardcode_shlibpath_var=no
9898 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9899 # support. Future versions do this automatically, but an explicit c++rt0.o
9900 # does not break anything, and helps significantly (at the cost of a little
9901 # extra space).
9902 freebsd2.2*)
9903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9904 hardcode_libdir_flag_spec='-R$libdir'
9905 hardcode_direct=yes
9906 hardcode_shlibpath_var=no
9909 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9910 freebsd2.*)
9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912 hardcode_direct=yes
9913 hardcode_minus_L=yes
9914 hardcode_shlibpath_var=no
9917 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9918 freebsd* | dragonfly*)
9919 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9920 hardcode_libdir_flag_spec='-R$libdir'
9921 hardcode_direct=yes
9922 hardcode_shlibpath_var=no
9925 hpux9*)
9926 if test "$GCC" = yes; then
9927 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9928 else
9929 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9931 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9932 hardcode_libdir_separator=:
9933 hardcode_direct=yes
9935 # hardcode_minus_L: Not really in the search PATH,
9936 # but as the default location of the library.
9937 hardcode_minus_L=yes
9938 export_dynamic_flag_spec='${wl}-E'
9941 hpux10*)
9942 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9943 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9944 else
9945 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9947 if test "$with_gnu_ld" = no; then
9948 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9949 hardcode_libdir_flag_spec_ld='+b $libdir'
9950 hardcode_libdir_separator=:
9951 hardcode_direct=yes
9952 hardcode_direct_absolute=yes
9953 export_dynamic_flag_spec='${wl}-E'
9954 # hardcode_minus_L: Not really in the search PATH,
9955 # but as the default location of the library.
9956 hardcode_minus_L=yes
9960 hpux11*)
9961 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9962 case $host_cpu in
9963 hppa*64*)
9964 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9966 ia64*)
9967 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9972 esac
9973 else
9974 case $host_cpu in
9975 hppa*64*)
9976 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9978 ia64*)
9979 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9983 # Older versions of the 11.00 compiler do not understand -b yet
9984 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9986 $as_echo_n "checking if $CC understands -b... " >&6; }
9987 if ${lt_cv_prog_compiler__b+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 lt_cv_prog_compiler__b=no
9991 save_LDFLAGS="$LDFLAGS"
9992 LDFLAGS="$LDFLAGS -b"
9993 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9994 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9995 # The linker can only warn and ignore the option if not recognized
9996 # So say no if there are warnings
9997 if test -s conftest.err; then
9998 # Append any errors to the config.log.
9999 cat conftest.err 1>&5
10000 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10002 if diff conftest.exp conftest.er2 >/dev/null; then
10003 lt_cv_prog_compiler__b=yes
10005 else
10006 lt_cv_prog_compiler__b=yes
10009 $RM -r conftest*
10010 LDFLAGS="$save_LDFLAGS"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10014 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10016 if test x"$lt_cv_prog_compiler__b" = xyes; then
10017 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10018 else
10019 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10023 esac
10025 if test "$with_gnu_ld" = no; then
10026 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10027 hardcode_libdir_separator=:
10029 case $host_cpu in
10030 hppa*64*|ia64*)
10031 hardcode_direct=no
10032 hardcode_shlibpath_var=no
10035 hardcode_direct=yes
10036 hardcode_direct_absolute=yes
10037 export_dynamic_flag_spec='${wl}-E'
10039 # hardcode_minus_L: Not really in the search PATH,
10040 # but as the default location of the library.
10041 hardcode_minus_L=yes
10043 esac
10047 irix5* | irix6* | nonstopux*)
10048 if test "$GCC" = yes; then
10049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10050 # Try to use the -exported_symbol ld option, if it does not
10051 # work, assume that -exports_file does not work either and
10052 # implicitly export all symbols.
10053 save_LDFLAGS="$LDFLAGS"
10054 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057 int foo(void) {}
10058 _ACEOF
10059 if ac_fn_c_try_link "$LINENO"; then :
10060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10063 rm -f core conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LDFLAGS="$save_LDFLAGS"
10066 else
10067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10070 archive_cmds_need_lc='no'
10071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10072 hardcode_libdir_separator=:
10073 inherit_rpath=yes
10074 link_all_deplibs=yes
10077 netbsd*)
10078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10080 else
10081 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10083 hardcode_libdir_flag_spec='-R$libdir'
10084 hardcode_direct=yes
10085 hardcode_shlibpath_var=no
10088 newsos6)
10089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090 hardcode_direct=yes
10091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10092 hardcode_libdir_separator=:
10093 hardcode_shlibpath_var=no
10096 *nto* | *qnx*)
10099 openbsd*)
10100 if test -f /usr/libexec/ld.so; then
10101 hardcode_direct=yes
10102 hardcode_shlibpath_var=no
10103 hardcode_direct_absolute=yes
10104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10105 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10107 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10108 export_dynamic_flag_spec='${wl}-E'
10109 else
10110 case $host_os in
10111 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10112 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_libdir_flag_spec='-R$libdir'
10116 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10117 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10119 esac
10121 else
10122 ld_shlibs=no
10126 os2*)
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 hardcode_minus_L=yes
10129 allow_undefined_flag=unsupported
10130 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10131 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10134 osf3*)
10135 if test "$GCC" = yes; then
10136 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10137 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10138 else
10139 allow_undefined_flag=' -expect_unresolved \*'
10140 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10142 archive_cmds_need_lc='no'
10143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144 hardcode_libdir_separator=:
10147 osf4* | osf5*) # as osf3* with the addition of -msym flag
10148 if test "$GCC" = yes; then
10149 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10150 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10152 else
10153 allow_undefined_flag=' -expect_unresolved \*'
10154 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10155 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10156 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10158 # Both c and cxx compiler support -rpath directly
10159 hardcode_libdir_flag_spec='-rpath $libdir'
10161 archive_cmds_need_lc='no'
10162 hardcode_libdir_separator=:
10165 solaris*)
10166 no_undefined_flag=' -z defs'
10167 if test "$GCC" = yes; then
10168 wlarc='${wl}'
10169 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10171 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10172 else
10173 case `$CC -V 2>&1` in
10174 *"Compilers 5.0"*)
10175 wlarc=''
10176 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10178 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10181 wlarc='${wl}'
10182 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10184 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10186 esac
10188 hardcode_libdir_flag_spec='-R$libdir'
10189 hardcode_shlibpath_var=no
10190 case $host_os in
10191 solaris2.[0-5] | solaris2.[0-5].*) ;;
10193 # The compiler driver will combine and reorder linker options,
10194 # but understands `-z linker_flag'. GCC discards it without `$wl',
10195 # but is careful enough not to reorder.
10196 # Supported since Solaris 2.6 (maybe 2.5.1?)
10197 if test "$GCC" = yes; then
10198 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10199 else
10200 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10203 esac
10204 link_all_deplibs=yes
10207 sunos4*)
10208 if test "x$host_vendor" = xsequent; then
10209 # Use $CC to link under sequent, because it throws in some extra .o
10210 # files that make .init and .fini sections work.
10211 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10212 else
10213 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_libdir_flag_spec='-L$libdir'
10216 hardcode_direct=yes
10217 hardcode_minus_L=yes
10218 hardcode_shlibpath_var=no
10221 sysv4)
10222 case $host_vendor in
10223 sni)
10224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225 hardcode_direct=yes # is this really true???
10227 siemens)
10228 ## LD is ld it makes a PLAMLIB
10229 ## CC just makes a GrossModule.
10230 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10231 reload_cmds='$CC -r -o $output$reload_objs'
10232 hardcode_direct=no
10234 motorola)
10235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10236 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10238 esac
10239 runpath_var='LD_RUN_PATH'
10240 hardcode_shlibpath_var=no
10243 sysv4.3*)
10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 hardcode_shlibpath_var=no
10246 export_dynamic_flag_spec='-Bexport'
10249 sysv4*MP*)
10250 if test -d /usr/nec; then
10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_shlibpath_var=no
10253 runpath_var=LD_RUN_PATH
10254 hardcode_runpath_var=yes
10255 ld_shlibs=yes
10259 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10260 no_undefined_flag='${wl}-z,text'
10261 archive_cmds_need_lc=no
10262 hardcode_shlibpath_var=no
10263 runpath_var='LD_RUN_PATH'
10265 if test "$GCC" = yes; then
10266 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 else
10269 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 sysv5* | sco3.2v5* | sco5v6*)
10275 # Note: We can NOT use -z defs as we might desire, because we do not
10276 # link with -lc, and that would cause any symbols used from libc to
10277 # always be unresolved, which means just about no library would
10278 # ever link correctly. If we're not using GNU ld we use -z text
10279 # though, which does catch some bad symbols but isn't as heavy-handed
10280 # as -z defs.
10281 no_undefined_flag='${wl}-z,text'
10282 allow_undefined_flag='${wl}-z,nodefs'
10283 archive_cmds_need_lc=no
10284 hardcode_shlibpath_var=no
10285 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10286 hardcode_libdir_separator=':'
10287 link_all_deplibs=yes
10288 export_dynamic_flag_spec='${wl}-Bexport'
10289 runpath_var='LD_RUN_PATH'
10291 if test "$GCC" = yes; then
10292 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 else
10295 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 uts4*)
10301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_libdir_flag_spec='-L$libdir'
10303 hardcode_shlibpath_var=no
10307 ld_shlibs=no
10309 esac
10311 if test x$host_vendor = xsni; then
10312 case $host in
10313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10314 export_dynamic_flag_spec='${wl}-Blargedynsym'
10316 esac
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10321 $as_echo "$ld_shlibs" >&6; }
10322 test "$ld_shlibs" = no && can_build_shared=no
10324 with_gnu_ld=$with_gnu_ld
10341 # Do we need to explicitly link libc?
10343 case "x$archive_cmds_need_lc" in
10344 x|xyes)
10345 # Assume -lc should be added
10346 archive_cmds_need_lc=yes
10348 if test "$enable_shared" = yes && test "$GCC" = yes; then
10349 case $archive_cmds in
10350 *'~'*)
10351 # FIXME: we may have to deal with multi-command sequences.
10353 '$CC '*)
10354 # Test whether the compiler implicitly links with -lc since on some
10355 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10356 # to ld, don't add -lc before -lgcc.
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10358 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10359 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 $RM conftest*
10363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10366 (eval $ac_compile) 2>&5
10367 ac_status=$?
10368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10369 test $ac_status = 0; } 2>conftest.err; then
10370 soname=conftest
10371 lib=conftest
10372 libobjs=conftest.$ac_objext
10373 deplibs=
10374 wl=$lt_prog_compiler_wl
10375 pic_flag=$lt_prog_compiler_pic
10376 compiler_flags=-v
10377 linker_flags=-v
10378 verstring=
10379 output_objdir=.
10380 libname=conftest
10381 lt_save_allow_undefined_flag=$allow_undefined_flag
10382 allow_undefined_flag=
10383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10384 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10385 ac_status=$?
10386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10387 test $ac_status = 0; }
10388 then
10389 lt_cv_archive_cmds_need_lc=no
10390 else
10391 lt_cv_archive_cmds_need_lc=yes
10393 allow_undefined_flag=$lt_save_allow_undefined_flag
10394 else
10395 cat conftest.err 1>&5
10397 $RM conftest*
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10401 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10402 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10404 esac
10407 esac
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10566 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10568 if test "$GCC" = yes; then
10569 case $host_os in
10570 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10571 *) lt_awk_arg="/^libraries:/" ;;
10572 esac
10573 case $host_os in
10574 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10575 *) lt_sed_strip_eq="s,=/,/,g" ;;
10576 esac
10577 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10578 case $lt_search_path_spec in
10579 *\;*)
10580 # if the path contains ";" then we assume it to be the separator
10581 # otherwise default to the standard path separator (i.e. ":") - it is
10582 # assumed that no part of a normal pathname contains ";" but that should
10583 # okay in the real world where ";" in dirpaths is itself problematic.
10584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10587 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10589 esac
10590 # Ok, now we have the path, separated by spaces, we can step through it
10591 # and add multilib dir if necessary.
10592 lt_tmp_lt_search_path_spec=
10593 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10594 for lt_sys_path in $lt_search_path_spec; do
10595 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10597 else
10598 test -d "$lt_sys_path" && \
10599 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10601 done
10602 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10603 BEGIN {RS=" "; FS="/|\n";} {
10604 lt_foo="";
10605 lt_count=0;
10606 for (lt_i = NF; lt_i > 0; lt_i--) {
10607 if ($lt_i != "" && $lt_i != ".") {
10608 if ($lt_i == "..") {
10609 lt_count++;
10610 } else {
10611 if (lt_count == 0) {
10612 lt_foo="/" $lt_i lt_foo;
10613 } else {
10614 lt_count--;
10619 if (lt_foo != "") { lt_freq[lt_foo]++; }
10620 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10622 # AWK program above erroneously prepends '/' to C:/dos/paths
10623 # for these hosts.
10624 case $host_os in
10625 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10626 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10627 esac
10628 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10629 else
10630 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10632 library_names_spec=
10633 libname_spec='lib$name'
10634 soname_spec=
10635 shrext_cmds=".so"
10636 postinstall_cmds=
10637 postuninstall_cmds=
10638 finish_cmds=
10639 finish_eval=
10640 shlibpath_var=
10641 shlibpath_overrides_runpath=unknown
10642 version_type=none
10643 dynamic_linker="$host_os ld.so"
10644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10645 need_lib_prefix=unknown
10646 hardcode_into_libs=no
10648 # when you set need_version to no, make sure it does not cause -set_version
10649 # flags to be left without arguments
10650 need_version=unknown
10652 case $host_os in
10653 aix3*)
10654 version_type=linux
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10656 shlibpath_var=LIBPATH
10658 # AIX 3 has no versioning support, so we append a major version to the name.
10659 soname_spec='${libname}${release}${shared_ext}$major'
10662 aix[4-9]*)
10663 version_type=linux
10664 need_lib_prefix=no
10665 need_version=no
10666 hardcode_into_libs=yes
10667 if test "$host_cpu" = ia64; then
10668 # AIX 5 supports IA64
10669 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 else
10672 # With GCC up to 2.95.x, collect2 would create an import file
10673 # for dependence libraries. The import file would start with
10674 # the line `#! .'. This would cause the generated library to
10675 # depend on `.', always an invalid library. This was fixed in
10676 # development snapshots of GCC prior to 3.0.
10677 case $host_os in
10678 aix4 | aix4.[01] | aix4.[01].*)
10679 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10680 echo ' yes '
10681 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10683 else
10684 can_build_shared=no
10687 esac
10688 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10689 # soname into executable. Probably we can add versioning support to
10690 # collect2, so additional links can be useful in future.
10691 if test "$aix_use_runtimelinking" = yes; then
10692 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10693 # instead of lib<name>.a to let people know that these are not
10694 # typical AIX shared libraries.
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 else
10697 # We preserve .a as extension for shared libraries through AIX4.2
10698 # and later when we are not doing run time linking.
10699 library_names_spec='${libname}${release}.a $libname.a'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LIBPATH
10706 amigaos*)
10707 case $host_cpu in
10708 powerpc)
10709 # Since July 2007 AmigaOS4 officially supports .so libraries.
10710 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 m68k)
10714 library_names_spec='$libname.ixlibrary $libname.a'
10715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10716 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10718 esac
10721 beos*)
10722 library_names_spec='${libname}${shared_ext}'
10723 dynamic_linker="$host_os ld.so"
10724 shlibpath_var=LIBRARY_PATH
10727 bsdi[45]*)
10728 version_type=linux
10729 need_version=no
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10735 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10736 # the default ld.so.conf also contains /usr/contrib/lib and
10737 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10738 # libtool to hard-code these into programs
10741 cygwin* | mingw* | pw32* | cegcc*)
10742 version_type=windows
10743 shrext_cmds=".dll"
10744 need_version=no
10745 need_lib_prefix=no
10747 case $GCC,$host_os in
10748 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10749 library_names_spec='$libname.dll.a'
10750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10751 postinstall_cmds='base_file=`basename \${file}`~
10752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10753 dldir=$destdir/`dirname \$dlpath`~
10754 test -d \$dldir || mkdir -p \$dldir~
10755 $install_prog $dir/$dlname \$dldir/$dlname~
10756 chmod a+x \$dldir/$dlname~
10757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10761 dlpath=$dir/\$dldll~
10762 $RM \$dlpath'
10763 shlibpath_overrides_runpath=yes
10765 case $host_os in
10766 cygwin*)
10767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10772 mingw* | cegcc*)
10773 # MinGW DLLs use traditional 'lib' prefix
10774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10776 pw32*)
10777 # pw32 DLLs use 'pw' prefix rather than 'lib'
10778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10780 esac
10784 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10786 esac
10787 dynamic_linker='Win32 ld.exe'
10788 # FIXME: first we should search . and the directory the executable is in
10789 shlibpath_var=PATH
10792 darwin* | rhapsody*)
10793 dynamic_linker="$host_os dyld"
10794 version_type=darwin
10795 need_lib_prefix=no
10796 need_version=no
10797 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10798 soname_spec='${libname}${release}${major}$shared_ext'
10799 shlibpath_overrides_runpath=yes
10800 shlibpath_var=DYLD_LIBRARY_PATH
10801 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10803 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10804 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10807 dgux*)
10808 version_type=linux
10809 need_lib_prefix=no
10810 need_version=no
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 shlibpath_var=LD_LIBRARY_PATH
10816 freebsd* | dragonfly*)
10817 # DragonFly does not have aout. When/if they implement a new
10818 # versioning mechanism, adjust this.
10819 if test -x /usr/bin/objformat; then
10820 objformat=`/usr/bin/objformat`
10821 else
10822 case $host_os in
10823 freebsd[23].*) objformat=aout ;;
10824 *) objformat=elf ;;
10825 esac
10827 version_type=freebsd-$objformat
10828 case $version_type in
10829 freebsd-elf*)
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10831 need_version=no
10832 need_lib_prefix=no
10834 freebsd-*)
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10836 need_version=yes
10838 esac
10839 shlibpath_var=LD_LIBRARY_PATH
10840 case $host_os in
10841 freebsd2.*)
10842 shlibpath_overrides_runpath=yes
10844 freebsd3.[01]* | freebsdelf3.[01]*)
10845 shlibpath_overrides_runpath=yes
10846 hardcode_into_libs=yes
10848 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10849 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10850 shlibpath_overrides_runpath=no
10851 hardcode_into_libs=yes
10853 *) # from 4.6 on, and DragonFly
10854 shlibpath_overrides_runpath=yes
10855 hardcode_into_libs=yes
10857 esac
10860 haiku*)
10861 version_type=linux
10862 need_lib_prefix=no
10863 need_version=no
10864 dynamic_linker="$host_os runtime_loader"
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 shlibpath_var=LIBRARY_PATH
10868 shlibpath_overrides_runpath=yes
10869 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10870 hardcode_into_libs=yes
10873 hpux9* | hpux10* | hpux11*)
10874 # Give a soname corresponding to the major version so that dld.sl refuses to
10875 # link against other versions.
10876 version_type=sunos
10877 need_lib_prefix=no
10878 need_version=no
10879 case $host_cpu in
10880 ia64*)
10881 shrext_cmds='.so'
10882 hardcode_into_libs=yes
10883 dynamic_linker="$host_os dld.so"
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 if test "X$HPUX_IA64_MODE" = X32; then
10889 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10890 else
10891 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10895 hppa*64*)
10896 shrext_cmds='.sl'
10897 hardcode_into_libs=yes
10898 dynamic_linker="$host_os dld.sl"
10899 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10907 shrext_cmds='.sl'
10908 dynamic_linker="$host_os dld.sl"
10909 shlibpath_var=SHLIB_PATH
10910 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10914 esac
10915 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10916 postinstall_cmds='chmod 555 $lib'
10917 # or fails outright, so override atomically:
10918 install_override_mode=555
10921 interix[3-9]*)
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 shlibpath_overrides_runpath=no
10930 hardcode_into_libs=yes
10933 irix5* | irix6* | nonstopux*)
10934 case $host_os in
10935 nonstopux*) version_type=nonstopux ;;
10937 if test "$lt_cv_prog_gnu_ld" = yes; then
10938 version_type=linux
10939 else
10940 version_type=irix
10941 fi ;;
10942 esac
10943 need_lib_prefix=no
10944 need_version=no
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10947 case $host_os in
10948 irix5* | nonstopux*)
10949 libsuff= shlibsuff=
10952 case $LD in # libtool.m4 will add one of these switches to LD
10953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10954 libsuff= shlibsuff= libmagic=32-bit;;
10955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10956 libsuff=32 shlibsuff=N32 libmagic=N32;;
10957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10959 *) libsuff= shlibsuff= libmagic=never-match;;
10960 esac
10962 esac
10963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10964 shlibpath_overrides_runpath=no
10965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10967 hardcode_into_libs=yes
10970 # No shared lib support for Linux oldld, aout, or coff.
10971 linux*oldld* | linux*aout* | linux*coff*)
10972 dynamic_linker=no
10975 # This must be Linux ELF.
10977 # uclinux* changes (here and below) have been submitted to the libtool
10978 # project, but have not yet been accepted: they are GCC-local changes
10979 # for the time being. (See
10980 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10981 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10982 version_type=linux
10983 need_lib_prefix=no
10984 need_version=no
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=no
10991 # Some binutils ld are patched to set DT_RUNPATH
10992 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 lt_cv_shlibpath_overrides_runpath=no
10996 save_LDFLAGS=$LDFLAGS
10997 save_libdir=$libdir
10998 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10999 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11004 main ()
11008 return 0;
11010 _ACEOF
11011 if ac_fn_c_try_link "$LINENO"; then :
11012 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11013 lt_cv_shlibpath_overrides_runpath=yes
11016 rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018 LDFLAGS=$save_LDFLAGS
11019 libdir=$save_libdir
11023 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11025 # This implies no fast_install, which is unacceptable.
11026 # Some rework will be needed to allow for fast_install
11027 # before this can be enabled.
11028 hardcode_into_libs=yes
11030 # Append ld.so.conf contents to the search path
11031 if test -f /etc/ld.so.conf; then
11032 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11033 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11036 # We used to test for /lib/ld.so.1 and disable shared libraries on
11037 # powerpc, because MkLinux only supported shared libraries with the
11038 # GNU dynamic linker. Since this was broken with cross compilers,
11039 # most powerpc-linux boxes support dynamic linking these days and
11040 # people can always --disable-shared, the test was removed, and we
11041 # assume the GNU/Linux dynamic linker is in use.
11042 dynamic_linker='GNU/Linux ld.so'
11045 netbsd*)
11046 version_type=sunos
11047 need_lib_prefix=no
11048 need_version=no
11049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11052 dynamic_linker='NetBSD (a.out) ld.so'
11053 else
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 dynamic_linker='NetBSD ld.elf_so'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 hardcode_into_libs=yes
11063 newsos6)
11064 version_type=linux
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=yes
11070 *nto* | *qnx*)
11071 version_type=qnx
11072 need_lib_prefix=no
11073 need_version=no
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 shlibpath_overrides_runpath=no
11078 hardcode_into_libs=yes
11079 dynamic_linker='ldqnx.so'
11082 openbsd*)
11083 version_type=sunos
11084 sys_lib_dlsearch_path_spec="/usr/lib"
11085 need_lib_prefix=no
11086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11087 case $host_os in
11088 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11089 *) need_version=no ;;
11090 esac
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11095 case $host_os in
11096 openbsd2.[89] | openbsd2.[89].*)
11097 shlibpath_overrides_runpath=no
11100 shlibpath_overrides_runpath=yes
11102 esac
11103 else
11104 shlibpath_overrides_runpath=yes
11108 os2*)
11109 libname_spec='$name'
11110 shrext_cmds=".dll"
11111 need_lib_prefix=no
11112 library_names_spec='$libname${shared_ext} $libname.a'
11113 dynamic_linker='OS/2 ld.exe'
11114 shlibpath_var=LIBPATH
11117 osf3* | osf4* | osf5*)
11118 version_type=osf
11119 need_lib_prefix=no
11120 need_version=no
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11128 rdos*)
11129 dynamic_linker=no
11132 solaris*)
11133 version_type=linux
11134 need_lib_prefix=no
11135 need_version=no
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 shlibpath_overrides_runpath=yes
11140 hardcode_into_libs=yes
11141 # ldd complains unless libraries are executable
11142 postinstall_cmds='chmod +x $lib'
11145 sunos4*)
11146 version_type=sunos
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=yes
11151 if test "$with_gnu_ld" = yes; then
11152 need_lib_prefix=no
11154 need_version=yes
11157 sysv4 | sysv4.3*)
11158 version_type=linux
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 case $host_vendor in
11163 sni)
11164 shlibpath_overrides_runpath=no
11165 need_lib_prefix=no
11166 runpath_var=LD_RUN_PATH
11168 siemens)
11169 need_lib_prefix=no
11171 motorola)
11172 need_lib_prefix=no
11173 need_version=no
11174 shlibpath_overrides_runpath=no
11175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11177 esac
11180 sysv4*MP*)
11181 if test -d /usr/nec ;then
11182 version_type=linux
11183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11184 soname_spec='$libname${shared_ext}.$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11190 version_type=freebsd-elf
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 hardcode_into_libs=yes
11198 if test "$with_gnu_ld" = yes; then
11199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11200 else
11201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11202 case $host_os in
11203 sco3.2v5*)
11204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11206 esac
11208 sys_lib_dlsearch_path_spec='/usr/lib'
11211 tpf*)
11212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11213 version_type=linux
11214 need_lib_prefix=no
11215 need_version=no
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath=no
11219 hardcode_into_libs=yes
11222 uts4*)
11223 version_type=linux
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11229 # Shared libraries for VwWorks, >= 7 only at this stage
11230 # and (fpic) still incompatible with "large" code models
11231 # in a few configurations. Only for RTP mode in any case,
11232 # and upon explicit request at configure time.
11233 vxworks7*)
11234 dynamic_linker=no
11235 case ${with_multisubdir}-${enable_shared} in
11236 *large*)
11238 *mrtp*-yes)
11239 version_type=linux
11240 need_lib_prefix=no
11241 need_version=no
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 dynamic_linker="$host_os module_loader"
11246 esac
11249 dynamic_linker=no
11251 esac
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11253 $as_echo "$dynamic_linker" >&6; }
11254 test "$dynamic_linker" = no && can_build_shared=no
11256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11257 if test "$GCC" = yes; then
11258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11261 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11262 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11264 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11265 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11360 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11361 hardcode_action=
11362 if test -n "$hardcode_libdir_flag_spec" ||
11363 test -n "$runpath_var" ||
11364 test "X$hardcode_automatic" = "Xyes" ; then
11366 # We can hardcode non-existent directories.
11367 if test "$hardcode_direct" != no &&
11368 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11369 # have to relink, otherwise we might link with an installed library
11370 # when we should be linking with a yet-to-be-installed one
11371 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11372 test "$hardcode_minus_L" != no; then
11373 # Linking always hardcodes the temporary library directory.
11374 hardcode_action=relink
11375 else
11376 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11377 hardcode_action=immediate
11379 else
11380 # We cannot hardcode anything, or else we can only hardcode existing
11381 # directories.
11382 hardcode_action=unsupported
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11385 $as_echo "$hardcode_action" >&6; }
11387 if test "$hardcode_action" = relink ||
11388 test "$inherit_rpath" = yes; then
11389 # Fast installation is not supported
11390 enable_fast_install=no
11391 elif test "$shlibpath_overrides_runpath" = yes ||
11392 test "$enable_shared" = no; then
11393 # Fast installation is not necessary
11394 enable_fast_install=needless
11402 if test "x$enable_dlopen" != xyes; then
11403 enable_dlopen=unknown
11404 enable_dlopen_self=unknown
11405 enable_dlopen_self_static=unknown
11406 else
11407 lt_cv_dlopen=no
11408 lt_cv_dlopen_libs=
11410 case $host_os in
11411 beos*)
11412 lt_cv_dlopen="load_add_on"
11413 lt_cv_dlopen_libs=
11414 lt_cv_dlopen_self=yes
11417 mingw* | pw32* | cegcc*)
11418 lt_cv_dlopen="LoadLibrary"
11419 lt_cv_dlopen_libs=
11422 cygwin*)
11423 lt_cv_dlopen="dlopen"
11424 lt_cv_dlopen_libs=
11427 darwin*)
11428 # if libdl is installed we need to link against it
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11430 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11431 if ${ac_cv_lib_dl_dlopen+:} false; then :
11432 $as_echo_n "(cached) " >&6
11433 else
11434 ac_check_lib_save_LIBS=$LIBS
11435 LIBS="-ldl $LIBS"
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11439 /* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 char dlopen ();
11447 main ()
11449 return dlopen ();
11451 return 0;
11453 _ACEOF
11454 if ac_fn_c_try_link "$LINENO"; then :
11455 ac_cv_lib_dl_dlopen=yes
11456 else
11457 ac_cv_lib_dl_dlopen=no
11459 rm -f core conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11461 LIBS=$ac_check_lib_save_LIBS
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11464 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11465 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11467 else
11469 lt_cv_dlopen="dyld"
11470 lt_cv_dlopen_libs=
11471 lt_cv_dlopen_self=yes
11478 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11479 if test "x$ac_cv_func_shl_load" = xyes; then :
11480 lt_cv_dlopen="shl_load"
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11483 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11484 if ${ac_cv_lib_dld_shl_load+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 ac_check_lib_save_LIBS=$LIBS
11488 LIBS="-ldld $LIBS"
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11492 /* Override any GCC internal prototype to avoid an error.
11493 Use char because int might match the return type of a GCC
11494 builtin and then its argument prototype would still apply. */
11495 #ifdef __cplusplus
11496 extern "C"
11497 #endif
11498 char shl_load ();
11500 main ()
11502 return shl_load ();
11504 return 0;
11506 _ACEOF
11507 if ac_fn_c_try_link "$LINENO"; then :
11508 ac_cv_lib_dld_shl_load=yes
11509 else
11510 ac_cv_lib_dld_shl_load=no
11512 rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11514 LIBS=$ac_check_lib_save_LIBS
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11517 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11518 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11519 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11520 else
11521 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11522 if test "x$ac_cv_func_dlopen" = xyes; then :
11523 lt_cv_dlopen="dlopen"
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11526 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11527 if ${ac_cv_lib_dl_dlopen+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-ldl $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char dlopen ();
11543 main ()
11545 return dlopen ();
11547 return 0;
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_lib_dl_dlopen=yes
11552 else
11553 ac_cv_lib_dl_dlopen=no
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11560 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11561 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11565 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11566 if ${ac_cv_lib_svld_dlopen+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-lsvld $LIBS"
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 char dlopen ();
11582 main ()
11584 return dlopen ();
11586 return 0;
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_lib_svld_dlopen=yes
11591 else
11592 ac_cv_lib_svld_dlopen=no
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11599 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11600 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11604 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11605 if ${ac_cv_lib_dld_dld_link+:} false; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 ac_check_lib_save_LIBS=$LIBS
11609 LIBS="-ldld $LIBS"
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11613 /* Override any GCC internal prototype to avoid an error.
11614 Use char because int might match the return type of a GCC
11615 builtin and then its argument prototype would still apply. */
11616 #ifdef __cplusplus
11617 extern "C"
11618 #endif
11619 char dld_link ();
11621 main ()
11623 return dld_link ();
11625 return 0;
11627 _ACEOF
11628 if ac_fn_c_try_link "$LINENO"; then :
11629 ac_cv_lib_dld_dld_link=yes
11630 else
11631 ac_cv_lib_dld_dld_link=no
11633 rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635 LIBS=$ac_check_lib_save_LIBS
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11638 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11639 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11640 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11659 esac
11661 if test "x$lt_cv_dlopen" != xno; then
11662 enable_dlopen=yes
11663 else
11664 enable_dlopen=no
11667 case $lt_cv_dlopen in
11668 dlopen)
11669 save_CPPFLAGS="$CPPFLAGS"
11670 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11672 save_LDFLAGS="$LDFLAGS"
11673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11675 save_LIBS="$LIBS"
11676 LIBS="$lt_cv_dlopen_libs $LIBS"
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11679 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11680 if ${lt_cv_dlopen_self+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 if test "$cross_compiling" = yes; then :
11684 lt_cv_dlopen_self=cross
11685 else
11686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11687 lt_status=$lt_dlunknown
11688 cat > conftest.$ac_ext <<_LT_EOF
11689 #line 11689 "configure"
11690 #include "confdefs.h"
11692 #if HAVE_DLFCN_H
11693 #include <dlfcn.h>
11694 #endif
11696 #include <stdio.h>
11698 #ifdef RTLD_GLOBAL
11699 # define LT_DLGLOBAL RTLD_GLOBAL
11700 #else
11701 # ifdef DL_GLOBAL
11702 # define LT_DLGLOBAL DL_GLOBAL
11703 # else
11704 # define LT_DLGLOBAL 0
11705 # endif
11706 #endif
11708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11709 find out it does not work in some platform. */
11710 #ifndef LT_DLLAZY_OR_NOW
11711 # ifdef RTLD_LAZY
11712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11713 # else
11714 # ifdef DL_LAZY
11715 # define LT_DLLAZY_OR_NOW DL_LAZY
11716 # else
11717 # ifdef RTLD_NOW
11718 # define LT_DLLAZY_OR_NOW RTLD_NOW
11719 # else
11720 # ifdef DL_NOW
11721 # define LT_DLLAZY_OR_NOW DL_NOW
11722 # else
11723 # define LT_DLLAZY_OR_NOW 0
11724 # endif
11725 # endif
11726 # endif
11727 # endif
11728 #endif
11730 /* When -fvisbility=hidden is used, assume the code has been annotated
11731 correspondingly for the symbols needed. */
11732 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11733 void fnord () __attribute__((visibility("default")));
11734 #endif
11736 void fnord () { int i=42; }
11737 int main ()
11739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11740 int status = $lt_dlunknown;
11742 if (self)
11744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11745 else
11747 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11748 else puts (dlerror ());
11750 /* dlclose (self); */
11752 else
11753 puts (dlerror ());
11755 return status;
11757 _LT_EOF
11758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11759 (eval $ac_link) 2>&5
11760 ac_status=$?
11761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11762 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11763 (./conftest; exit; ) >&5 2>/dev/null
11764 lt_status=$?
11765 case x$lt_status in
11766 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11767 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11768 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11769 esac
11770 else :
11771 # compilation failed
11772 lt_cv_dlopen_self=no
11775 rm -fr conftest*
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11780 $as_echo "$lt_cv_dlopen_self" >&6; }
11782 if test "x$lt_cv_dlopen_self" = xyes; then
11783 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11785 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11786 if ${lt_cv_dlopen_self_static+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 if test "$cross_compiling" = yes; then :
11790 lt_cv_dlopen_self_static=cross
11791 else
11792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11793 lt_status=$lt_dlunknown
11794 cat > conftest.$ac_ext <<_LT_EOF
11795 #line 11795 "configure"
11796 #include "confdefs.h"
11798 #if HAVE_DLFCN_H
11799 #include <dlfcn.h>
11800 #endif
11802 #include <stdio.h>
11804 #ifdef RTLD_GLOBAL
11805 # define LT_DLGLOBAL RTLD_GLOBAL
11806 #else
11807 # ifdef DL_GLOBAL
11808 # define LT_DLGLOBAL DL_GLOBAL
11809 # else
11810 # define LT_DLGLOBAL 0
11811 # endif
11812 #endif
11814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11815 find out it does not work in some platform. */
11816 #ifndef LT_DLLAZY_OR_NOW
11817 # ifdef RTLD_LAZY
11818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11819 # else
11820 # ifdef DL_LAZY
11821 # define LT_DLLAZY_OR_NOW DL_LAZY
11822 # else
11823 # ifdef RTLD_NOW
11824 # define LT_DLLAZY_OR_NOW RTLD_NOW
11825 # else
11826 # ifdef DL_NOW
11827 # define LT_DLLAZY_OR_NOW DL_NOW
11828 # else
11829 # define LT_DLLAZY_OR_NOW 0
11830 # endif
11831 # endif
11832 # endif
11833 # endif
11834 #endif
11836 /* When -fvisbility=hidden is used, assume the code has been annotated
11837 correspondingly for the symbols needed. */
11838 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11839 void fnord () __attribute__((visibility("default")));
11840 #endif
11842 void fnord () { int i=42; }
11843 int main ()
11845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11846 int status = $lt_dlunknown;
11848 if (self)
11850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11851 else
11853 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11854 else puts (dlerror ());
11856 /* dlclose (self); */
11858 else
11859 puts (dlerror ());
11861 return status;
11863 _LT_EOF
11864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11865 (eval $ac_link) 2>&5
11866 ac_status=$?
11867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11869 (./conftest; exit; ) >&5 2>/dev/null
11870 lt_status=$?
11871 case x$lt_status in
11872 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11873 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11874 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11875 esac
11876 else :
11877 # compilation failed
11878 lt_cv_dlopen_self_static=no
11881 rm -fr conftest*
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11886 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11889 CPPFLAGS="$save_CPPFLAGS"
11890 LDFLAGS="$save_LDFLAGS"
11891 LIBS="$save_LIBS"
11893 esac
11895 case $lt_cv_dlopen_self in
11896 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11897 *) enable_dlopen_self=unknown ;;
11898 esac
11900 case $lt_cv_dlopen_self_static in
11901 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11902 *) enable_dlopen_self_static=unknown ;;
11903 esac
11922 striplib=
11923 old_striplib=
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11925 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11926 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11927 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11928 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; }
11931 else
11932 # FIXME - insert some real tests, host_os isn't really good enough
11933 case $host_os in
11934 darwin*)
11935 if test -n "$STRIP" ; then
11936 striplib="$STRIP -x"
11937 old_striplib="$STRIP -S"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11939 $as_echo "yes" >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11949 esac
11963 # Report which library types will actually be built
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11965 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11967 $as_echo "$can_build_shared" >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11970 $as_echo_n "checking whether to build shared libraries... " >&6; }
11971 test "$can_build_shared" = "no" && enable_shared=no
11973 # On AIX, shared libraries and static libraries use the same namespace, and
11974 # are all built from PIC.
11975 case $host_os in
11976 aix3*)
11977 test "$enable_shared" = yes && enable_static=no
11978 if test -n "$RANLIB"; then
11979 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11980 postinstall_cmds='$RANLIB $lib'
11984 aix[4-9]*)
11985 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11986 test "$enable_shared" = yes && enable_static=no
11989 esac
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11991 $as_echo "$enable_shared" >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11994 $as_echo_n "checking whether to build static libraries... " >&6; }
11995 # Make sure either enable_shared or enable_static is yes.
11996 test "$enable_shared" = yes || enable_static=yes
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11998 $as_echo "$enable_static" >&6; }
12004 ac_ext=c
12005 ac_cpp='$CPP $CPPFLAGS'
12006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010 CC="$lt_save_CC"
12012 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12013 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12014 (test "X$CXX" != "Xg++"))) ; then
12015 ac_ext=cpp
12016 ac_cpp='$CXXCPP $CPPFLAGS'
12017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12021 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12022 if test -z "$CXXCPP"; then
12023 if ${ac_cv_prog_CXXCPP+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 # Double quotes because CXXCPP needs to be expanded
12027 for CXXCPP in "$CXX -E" "/lib/cpp"
12029 ac_preproc_ok=false
12030 for ac_cxx_preproc_warn_flag in '' yes
12032 # Use a header file that comes with gcc, so configuring glibc
12033 # with a fresh cross-compiler works.
12034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 # <limits.h> exists even on freestanding compilers.
12036 # On the NeXT, cc -E runs the code through the compiler's parser,
12037 # not just through cpp. "Syntax error" is here to catch this case.
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040 #ifdef __STDC__
12041 # include <limits.h>
12042 #else
12043 # include <assert.h>
12044 #endif
12045 Syntax error
12046 _ACEOF
12047 if ac_fn_cxx_try_cpp "$LINENO"; then :
12049 else
12050 # Broken: fails on valid input.
12051 continue
12053 rm -f conftest.err conftest.i conftest.$ac_ext
12055 # OK, works on sane cases. Now check whether nonexistent headers
12056 # can be detected and how.
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <ac_nonexistent.h>
12060 _ACEOF
12061 if ac_fn_cxx_try_cpp "$LINENO"; then :
12062 # Broken: success on invalid input.
12063 continue
12064 else
12065 # Passes both tests.
12066 ac_preproc_ok=:
12067 break
12069 rm -f conftest.err conftest.i conftest.$ac_ext
12071 done
12072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12073 rm -f conftest.i conftest.err conftest.$ac_ext
12074 if $ac_preproc_ok; then :
12075 break
12078 done
12079 ac_cv_prog_CXXCPP=$CXXCPP
12082 CXXCPP=$ac_cv_prog_CXXCPP
12083 else
12084 ac_cv_prog_CXXCPP=$CXXCPP
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12087 $as_echo "$CXXCPP" >&6; }
12088 ac_preproc_ok=false
12089 for ac_cxx_preproc_warn_flag in '' yes
12091 # Use a header file that comes with gcc, so configuring glibc
12092 # with a fresh cross-compiler works.
12093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12094 # <limits.h> exists even on freestanding compilers.
12095 # On the NeXT, cc -E runs the code through the compiler's parser,
12096 # not just through cpp. "Syntax error" is here to catch this case.
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #ifdef __STDC__
12100 # include <limits.h>
12101 #else
12102 # include <assert.h>
12103 #endif
12104 Syntax error
12105 _ACEOF
12106 if ac_fn_cxx_try_cpp "$LINENO"; then :
12108 else
12109 # Broken: fails on valid input.
12110 continue
12112 rm -f conftest.err conftest.i conftest.$ac_ext
12114 # OK, works on sane cases. Now check whether nonexistent headers
12115 # can be detected and how.
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12118 #include <ac_nonexistent.h>
12119 _ACEOF
12120 if ac_fn_cxx_try_cpp "$LINENO"; then :
12121 # Broken: success on invalid input.
12122 continue
12123 else
12124 # Passes both tests.
12125 ac_preproc_ok=:
12126 break
12128 rm -f conftest.err conftest.i conftest.$ac_ext
12130 done
12131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12132 rm -f conftest.i conftest.err conftest.$ac_ext
12133 if $ac_preproc_ok; then :
12135 else
12136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12138 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12139 See \`config.log' for more details" "$LINENO" 5; }
12142 ac_ext=c
12143 ac_cpp='$CPP $CPPFLAGS'
12144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12148 else
12149 _lt_caught_CXX_error=yes
12152 ac_ext=cpp
12153 ac_cpp='$CXXCPP $CPPFLAGS'
12154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12158 archive_cmds_need_lc_CXX=no
12159 allow_undefined_flag_CXX=
12160 always_export_symbols_CXX=no
12161 archive_expsym_cmds_CXX=
12162 compiler_needs_object_CXX=no
12163 export_dynamic_flag_spec_CXX=
12164 hardcode_direct_CXX=no
12165 hardcode_direct_absolute_CXX=no
12166 hardcode_libdir_flag_spec_CXX=
12167 hardcode_libdir_flag_spec_ld_CXX=
12168 hardcode_libdir_separator_CXX=
12169 hardcode_minus_L_CXX=no
12170 hardcode_shlibpath_var_CXX=unsupported
12171 hardcode_automatic_CXX=no
12172 inherit_rpath_CXX=no
12173 module_cmds_CXX=
12174 module_expsym_cmds_CXX=
12175 link_all_deplibs_CXX=unknown
12176 old_archive_cmds_CXX=$old_archive_cmds
12177 reload_flag_CXX=$reload_flag
12178 reload_cmds_CXX=$reload_cmds
12179 no_undefined_flag_CXX=
12180 whole_archive_flag_spec_CXX=
12181 enable_shared_with_static_runtimes_CXX=no
12183 # Source file extension for C++ test sources.
12184 ac_ext=cpp
12186 # Object file extension for compiled C++ test sources.
12187 objext=o
12188 objext_CXX=$objext
12190 # No sense in running all these tests if we already determined that
12191 # the CXX compiler isn't working. Some variables (like enable_shared)
12192 # are currently assumed to apply to all compilers on this platform,
12193 # and will be corrupted by setting them based on a non-working compiler.
12194 if test "$_lt_caught_CXX_error" != yes; then
12195 # Code to be used in simple compile tests
12196 lt_simple_compile_test_code="int some_variable = 0;"
12198 # Code to be used in simple link tests
12199 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12201 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12208 # If no C compiler was specified, use CC.
12209 LTCC=${LTCC-"$CC"}
12211 # If no C compiler flags were specified, use CFLAGS.
12212 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12214 # Allow CC to be a program name with arguments.
12215 compiler=$CC
12218 # save warnings/boilerplate of simple test code
12219 ac_outfile=conftest.$ac_objext
12220 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12221 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12222 _lt_compiler_boilerplate=`cat conftest.err`
12223 $RM conftest*
12225 ac_outfile=conftest.$ac_objext
12226 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12227 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12228 _lt_linker_boilerplate=`cat conftest.err`
12229 $RM -r conftest*
12232 # Allow CC to be a program name with arguments.
12233 lt_save_CC=$CC
12234 lt_save_LD=$LD
12235 lt_save_GCC=$GCC
12236 GCC=$GXX
12237 lt_save_with_gnu_ld=$with_gnu_ld
12238 lt_save_path_LD=$lt_cv_path_LD
12239 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12240 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12241 else
12242 $as_unset lt_cv_prog_gnu_ld
12244 if test -n "${lt_cv_path_LDCXX+set}"; then
12245 lt_cv_path_LD=$lt_cv_path_LDCXX
12246 else
12247 $as_unset lt_cv_path_LD
12249 test -z "${LDCXX+set}" || LD=$LDCXX
12250 CC=${CXX-"c++"}
12251 compiler=$CC
12252 compiler_CXX=$CC
12253 for cc_temp in $compiler""; do
12254 case $cc_temp in
12255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12257 \-*) ;;
12258 *) break;;
12259 esac
12260 done
12261 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12264 if test -n "$compiler"; then
12265 # We don't want -fno-exception when compiling C++ code, so set the
12266 # no_builtin_flag separately
12267 if test "$GXX" = yes; then
12268 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12269 else
12270 lt_prog_compiler_no_builtin_flag_CXX=
12273 if test "$GXX" = yes; then
12274 # Set up default GNU C++ configuration
12278 # Check whether --with-gnu-ld was given.
12279 if test "${with_gnu_ld+set}" = set; then :
12280 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12281 else
12282 with_gnu_ld=no
12285 ac_prog=ld
12286 if test "$GCC" = yes; then
12287 # Check if gcc -print-prog-name=ld gives a path.
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12289 $as_echo_n "checking for ld used by $CC... " >&6; }
12290 case $host in
12291 *-*-mingw*)
12292 # gcc leaves a trailing carriage return which upsets mingw
12293 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12295 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12296 esac
12297 case $ac_prog in
12298 # Accept absolute paths.
12299 [\\/]* | ?:[\\/]*)
12300 re_direlt='/[^/][^/]*/\.\./'
12301 # Canonicalize the pathname of ld
12302 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12303 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12304 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12305 done
12306 test -z "$LD" && LD="$ac_prog"
12309 # If it fails, then pretend we aren't using GCC.
12310 ac_prog=ld
12313 # If it is relative, then search for the first ld in PATH.
12314 with_gnu_ld=unknown
12316 esac
12317 elif test "$with_gnu_ld" = yes; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12319 $as_echo_n "checking for GNU ld... " >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12322 $as_echo_n "checking for non-GNU ld... " >&6; }
12324 if ${lt_cv_path_LD+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 if test -z "$LD"; then
12328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12329 for ac_dir in $PATH; do
12330 IFS="$lt_save_ifs"
12331 test -z "$ac_dir" && ac_dir=.
12332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12333 lt_cv_path_LD="$ac_dir/$ac_prog"
12334 # Check to see if the program is GNU ld. I'd rather use --version,
12335 # but apparently some variants of GNU ld only accept -v.
12336 # Break only if it was the GNU/non-GNU ld that we prefer.
12337 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12338 *GNU* | *'with BFD'*)
12339 test "$with_gnu_ld" != no && break
12342 test "$with_gnu_ld" != yes && break
12344 esac
12346 done
12347 IFS="$lt_save_ifs"
12348 else
12349 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12353 LD="$lt_cv_path_LD"
12354 if test -n "$LD"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12356 $as_echo "$LD" >&6; }
12357 else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12361 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12363 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12364 if ${lt_cv_prog_gnu_ld+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12368 case `$LD -v 2>&1 </dev/null` in
12369 *GNU* | *'with BFD'*)
12370 lt_cv_prog_gnu_ld=yes
12373 lt_cv_prog_gnu_ld=no
12375 esac
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12378 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12379 with_gnu_ld=$lt_cv_prog_gnu_ld
12387 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12388 # archiving commands below assume that GNU ld is being used.
12389 if test "$with_gnu_ld" = yes; then
12390 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12391 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12396 # If archive_cmds runs LD, not CC, wlarc should be empty
12397 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12398 # investigate it a little bit more. (MM)
12399 wlarc='${wl}'
12401 # ancient GNU ld didn't support --whole-archive et. al.
12402 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12403 $GREP 'no-whole-archive' > /dev/null; then
12404 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12405 else
12406 whole_archive_flag_spec_CXX=
12408 else
12409 with_gnu_ld=no
12410 wlarc=
12412 # A generic and very simple default shared library creation
12413 # command for GNU C++ for the case where it uses the native
12414 # linker, instead of GNU ld. If possible, this setting should
12415 # overridden to take advantage of the native linker features on
12416 # the platform it is being used on.
12417 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12420 # Commands to make compiler produce verbose output that lists
12421 # what "hidden" libraries, object files and flags are used when
12422 # linking a shared library.
12423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12425 else
12426 GXX=no
12427 with_gnu_ld=no
12428 wlarc=
12431 # PORTME: fill in a description of your system's C++ link characteristics
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12433 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12434 ld_shlibs_CXX=yes
12435 case $host_os in
12436 aix3*)
12437 # FIXME: insert proper C++ library support
12438 ld_shlibs_CXX=no
12440 aix[4-9]*)
12441 if test "$host_cpu" = ia64; then
12442 # On IA64, the linker does run time linking by default, so we don't
12443 # have to do anything special.
12444 aix_use_runtimelinking=no
12445 exp_sym_flag='-Bexport'
12446 no_entry_flag=""
12447 else
12448 aix_use_runtimelinking=no
12450 # Test if we are trying to use run time linking or normal
12451 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12452 # need to do runtime linking.
12453 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12454 for ld_flag in $LDFLAGS; do
12455 case $ld_flag in
12456 *-brtl*)
12457 aix_use_runtimelinking=yes
12458 break
12460 esac
12461 done
12463 esac
12465 exp_sym_flag='-bexport'
12466 no_entry_flag='-bnoentry'
12469 # When large executables or shared objects are built, AIX ld can
12470 # have problems creating the table of contents. If linking a library
12471 # or program results in "error TOC overflow" add -mminimal-toc to
12472 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12473 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12475 archive_cmds_CXX=''
12476 hardcode_direct_CXX=yes
12477 hardcode_direct_absolute_CXX=yes
12478 hardcode_libdir_separator_CXX=':'
12479 link_all_deplibs_CXX=yes
12480 file_list_spec_CXX='${wl}-f,'
12482 if test "$GXX" = yes; then
12483 case $host_os in aix4.[012]|aix4.[012].*)
12484 # We only want to do this on AIX 4.2 and lower, the check
12485 # below for broken collect2 doesn't work under 4.3+
12486 collect2name=`${CC} -print-prog-name=collect2`
12487 if test -f "$collect2name" &&
12488 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12489 then
12490 # We have reworked collect2
12492 else
12493 # We have old collect2
12494 hardcode_direct_CXX=unsupported
12495 # It fails to find uninstalled libraries when the uninstalled
12496 # path is not listed in the libpath. Setting hardcode_minus_L
12497 # to unsupported forces relinking
12498 hardcode_minus_L_CXX=yes
12499 hardcode_libdir_flag_spec_CXX='-L$libdir'
12500 hardcode_libdir_separator_CXX=
12502 esac
12503 shared_flag='-shared'
12504 if test "$aix_use_runtimelinking" = yes; then
12505 shared_flag="$shared_flag "'${wl}-G'
12507 else
12508 # not using gcc
12509 if test "$host_cpu" = ia64; then
12510 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12511 # chokes on -Wl,-G. The following line is correct:
12512 shared_flag='-G'
12513 else
12514 if test "$aix_use_runtimelinking" = yes; then
12515 shared_flag='${wl}-G'
12516 else
12517 shared_flag='${wl}-bM:SRE'
12522 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12523 # It seems that -bexpall does not export symbols beginning with
12524 # underscore (_), so it is better to generate a list of symbols to
12525 # export.
12526 always_export_symbols_CXX=yes
12527 if test "$aix_use_runtimelinking" = yes; then
12528 # Warning - without using the other runtime loading flags (-brtl),
12529 # -berok will link without error, but may produce a broken library.
12530 allow_undefined_flag_CXX='-berok'
12531 # Determine the default libpath from the value encoded in an empty
12532 # executable.
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12537 main ()
12541 return 0;
12543 _ACEOF
12544 if ac_fn_cxx_try_link "$LINENO"; then :
12546 lt_aix_libpath_sed='
12547 /Import File Strings/,/^$/ {
12548 /^0/ {
12549 s/^0 *\(.*\)$/\1/
12553 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12554 # Check for a 64-bit object if we didn't find anything.
12555 if test -z "$aix_libpath"; then
12556 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12559 rm -f core conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12563 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12565 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12566 else
12567 if test "$host_cpu" = ia64; then
12568 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12569 allow_undefined_flag_CXX="-z nodefs"
12570 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12571 else
12572 # Determine the default libpath from the value encoded in an
12573 # empty executable.
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12578 main ()
12582 return 0;
12584 _ACEOF
12585 if ac_fn_cxx_try_link "$LINENO"; then :
12587 lt_aix_libpath_sed='
12588 /Import File Strings/,/^$/ {
12589 /^0/ {
12590 s/^0 *\(.*\)$/\1/
12594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12595 # Check for a 64-bit object if we didn't find anything.
12596 if test -z "$aix_libpath"; then
12597 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12600 rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12604 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12605 # Warning - without using the other run time loading flags,
12606 # -berok will link without error, but may produce a broken library.
12607 no_undefined_flag_CXX=' ${wl}-bernotok'
12608 allow_undefined_flag_CXX=' ${wl}-berok'
12609 if test "$with_gnu_ld" = yes; then
12610 # We only use this code for GNU lds that support --whole-archive.
12611 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12612 else
12613 # Exported symbols can be pulled into shared objects from archives
12614 whole_archive_flag_spec_CXX='$convenience'
12616 archive_cmds_need_lc_CXX=yes
12617 # This is similar to how AIX traditionally builds its shared
12618 # libraries.
12619 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12624 beos*)
12625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12626 allow_undefined_flag_CXX=unsupported
12627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12628 # support --undefined. This deserves some investigation. FIXME
12629 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630 else
12631 ld_shlibs_CXX=no
12635 chorus*)
12636 case $cc_basename in
12638 # FIXME: insert proper C++ library support
12639 ld_shlibs_CXX=no
12641 esac
12644 cygwin* | mingw* | pw32* | cegcc*)
12645 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12646 # as there is no search path for DLLs.
12647 hardcode_libdir_flag_spec_CXX='-L$libdir'
12648 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12649 allow_undefined_flag_CXX=unsupported
12650 always_export_symbols_CXX=no
12651 enable_shared_with_static_runtimes_CXX=yes
12653 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12654 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12655 # If the export-symbols file already is a .def file (1st line
12656 # is EXPORTS), use it as is; otherwise, prepend...
12657 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12658 cp $export_symbols $output_objdir/$soname.def;
12659 else
12660 echo EXPORTS > $output_objdir/$soname.def;
12661 cat $export_symbols >> $output_objdir/$soname.def;
12663 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12664 else
12665 ld_shlibs_CXX=no
12668 darwin* | rhapsody*)
12671 archive_cmds_need_lc_CXX=no
12672 hardcode_direct_CXX=no
12673 hardcode_automatic_CXX=yes
12674 hardcode_shlibpath_var_CXX=unsupported
12675 if test "$lt_cv_ld_force_load" = "yes"; then
12676 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12677 else
12678 whole_archive_flag_spec_CXX=''
12680 link_all_deplibs_CXX=yes
12681 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12682 case $cc_basename in
12683 ifort*) _lt_dar_can_shared=yes ;;
12684 *) _lt_dar_can_shared=$GCC ;;
12685 esac
12686 if test "$_lt_dar_can_shared" = "yes"; then
12687 output_verbose_link_cmd=func_echo_all
12688 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12689 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12690 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12691 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12692 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12693 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12694 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12697 else
12698 ld_shlibs_CXX=no
12703 dgux*)
12704 case $cc_basename in
12705 ec++*)
12706 # FIXME: insert proper C++ library support
12707 ld_shlibs_CXX=no
12709 ghcx*)
12710 # Green Hills C++ Compiler
12711 # FIXME: insert proper C++ library support
12712 ld_shlibs_CXX=no
12715 # FIXME: insert proper C++ library support
12716 ld_shlibs_CXX=no
12718 esac
12721 freebsd2.*)
12722 # C++ shared libraries reported to be fairly broken before
12723 # switch to ELF
12724 ld_shlibs_CXX=no
12727 freebsd-elf*)
12728 archive_cmds_need_lc_CXX=no
12731 freebsd* | dragonfly*)
12732 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12733 # conventions
12734 ld_shlibs_CXX=yes
12737 gnu*)
12740 haiku*)
12741 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12742 link_all_deplibs_CXX=yes
12745 hpux9*)
12746 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12747 hardcode_libdir_separator_CXX=:
12748 export_dynamic_flag_spec_CXX='${wl}-E'
12749 hardcode_direct_CXX=yes
12750 hardcode_minus_L_CXX=yes # Not in the search PATH,
12751 # but as the default
12752 # location of the library.
12754 case $cc_basename in
12755 CC*)
12756 # FIXME: insert proper C++ library support
12757 ld_shlibs_CXX=no
12759 aCC*)
12760 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12761 # Commands to make compiler produce verbose output that lists
12762 # what "hidden" libraries, object files and flags are used when
12763 # linking a shared library.
12765 # There doesn't appear to be a way to prevent this compiler from
12766 # explicitly linking system object files so we need to strip them
12767 # from the output so that they don't get included in the library
12768 # dependencies.
12769 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12772 if test "$GXX" = yes; then
12773 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12774 else
12775 # FIXME: insert proper C++ library support
12776 ld_shlibs_CXX=no
12779 esac
12782 hpux10*|hpux11*)
12783 if test $with_gnu_ld = no; then
12784 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12785 hardcode_libdir_separator_CXX=:
12787 case $host_cpu in
12788 hppa*64*|ia64*)
12791 export_dynamic_flag_spec_CXX='${wl}-E'
12793 esac
12795 case $host_cpu in
12796 hppa*64*|ia64*)
12797 hardcode_direct_CXX=no
12798 hardcode_shlibpath_var_CXX=no
12801 hardcode_direct_CXX=yes
12802 hardcode_direct_absolute_CXX=yes
12803 hardcode_minus_L_CXX=yes # Not in the search PATH,
12804 # but as the default
12805 # location of the library.
12807 esac
12809 case $cc_basename in
12810 CC*)
12811 # FIXME: insert proper C++ library support
12812 ld_shlibs_CXX=no
12814 aCC*)
12815 case $host_cpu in
12816 hppa*64*)
12817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12819 ia64*)
12820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825 esac
12826 # Commands to make compiler produce verbose output that lists
12827 # what "hidden" libraries, object files and flags are used when
12828 # linking a shared library.
12830 # There doesn't appear to be a way to prevent this compiler from
12831 # explicitly linking system object files so we need to strip them
12832 # from the output so that they don't get included in the library
12833 # dependencies.
12834 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12837 if test "$GXX" = yes; then
12838 if test $with_gnu_ld = no; then
12839 case $host_cpu in
12840 hppa*64*)
12841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12843 ia64*)
12844 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849 esac
12851 else
12852 # FIXME: insert proper C++ library support
12853 ld_shlibs_CXX=no
12856 esac
12859 interix[3-9]*)
12860 hardcode_direct_CXX=no
12861 hardcode_shlibpath_var_CXX=no
12862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12863 export_dynamic_flag_spec_CXX='${wl}-E'
12864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12865 # Instead, shared libraries are loaded at an image base (0x10000000 by
12866 # default) and relocated if they conflict, which is a slow very memory
12867 # consuming and fragmenting process. To avoid this, we pick a random,
12868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12870 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12871 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12873 irix5* | irix6*)
12874 case $cc_basename in
12875 CC*)
12876 # SGI C++
12877 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12879 # Archives containing C++ object files must be created using
12880 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12881 # necessary to make sure instantiated templates are included
12882 # in the archive.
12883 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12886 if test "$GXX" = yes; then
12887 if test "$with_gnu_ld" = no; then
12888 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12889 else
12890 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12893 link_all_deplibs_CXX=yes
12895 esac
12896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12897 hardcode_libdir_separator_CXX=:
12898 inherit_rpath_CXX=yes
12901 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12902 case $cc_basename in
12903 KCC*)
12904 # Kuck and Associates, Inc. (KAI) C++ Compiler
12906 # KCC will only create a shared library if the output file
12907 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12908 # to its proper name (with version) after linking.
12909 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12910 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12911 # Commands to make compiler produce verbose output that lists
12912 # what "hidden" libraries, object files and flags are used when
12913 # linking a shared library.
12915 # There doesn't appear to be a way to prevent this compiler from
12916 # explicitly linking system object files so we need to strip them
12917 # from the output so that they don't get included in the library
12918 # dependencies.
12919 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12924 # Archives containing C++ object files must be created using
12925 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12926 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12928 icpc* | ecpc* )
12929 # Intel C++
12930 with_gnu_ld=yes
12931 # version 8.0 and above of icpc choke on multiply defined symbols
12932 # if we add $predep_objects and $postdep_objects, however 7.1 and
12933 # earlier do not add the objects themselves.
12934 case `$CC -V 2>&1` in
12935 *"Version 7."*)
12936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12939 *) # Version 8.0 or newer
12940 tmp_idyn=
12941 case $host_cpu in
12942 ia64*) tmp_idyn=' -i_dynamic';;
12943 esac
12944 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12947 esac
12948 archive_cmds_need_lc_CXX=no
12949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12951 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12953 pgCC* | pgcpp*)
12954 # Portland Group C++ compiler
12955 case `$CC -V` in
12956 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12957 prelink_cmds_CXX='tpldir=Template.dir~
12958 rm -rf $tpldir~
12959 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12960 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12961 old_archive_cmds_CXX='tpldir=Template.dir~
12962 rm -rf $tpldir~
12963 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12964 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12965 $RANLIB $oldlib'
12966 archive_cmds_CXX='tpldir=Template.dir~
12967 rm -rf $tpldir~
12968 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12969 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12970 archive_expsym_cmds_CXX='tpldir=Template.dir~
12971 rm -rf $tpldir~
12972 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12973 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12975 *) # Version 6 and above use weak symbols
12976 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12977 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12979 esac
12981 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12983 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12985 cxx*)
12986 # Compaq C++
12987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12988 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12990 runpath_var=LD_RUN_PATH
12991 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12992 hardcode_libdir_separator_CXX=:
12994 # Commands to make compiler produce verbose output that lists
12995 # what "hidden" libraries, object files and flags are used when
12996 # linking a shared library.
12998 # There doesn't appear to be a way to prevent this compiler from
12999 # explicitly linking system object files so we need to strip them
13000 # from the output so that they don't get included in the library
13001 # dependencies.
13002 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13004 xl* | mpixl* | bgxl*)
13005 # IBM XL 8.0 on PPC, with GNU ld
13006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13008 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13009 if test "x$supports_anon_versioning" = xyes; then
13010 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13012 echo "local: *; };" >> $output_objdir/$libname.ver~
13013 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13017 case `$CC -V 2>&1 | sed 5q` in
13018 *Sun\ C*)
13019 # Sun C++ 5.9
13020 no_undefined_flag_CXX=' -zdefs'
13021 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13022 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13023 hardcode_libdir_flag_spec_CXX='-R$libdir'
13024 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13025 compiler_needs_object_CXX=yes
13027 # Not sure whether something based on
13028 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13029 # would be better.
13030 output_verbose_link_cmd='func_echo_all'
13032 # Archives containing C++ object files must be created using
13033 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13034 # necessary to make sure instantiated templates are included
13035 # in the archive.
13036 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13038 esac
13040 esac
13043 lynxos*)
13044 # FIXME: insert proper C++ library support
13045 ld_shlibs_CXX=no
13048 m88k*)
13049 # FIXME: insert proper C++ library support
13050 ld_shlibs_CXX=no
13053 mvs*)
13054 case $cc_basename in
13055 cxx*)
13056 # FIXME: insert proper C++ library support
13057 ld_shlibs_CXX=no
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13063 esac
13066 netbsd*)
13067 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13069 wlarc=
13070 hardcode_libdir_flag_spec_CXX='-R$libdir'
13071 hardcode_direct_CXX=yes
13072 hardcode_shlibpath_var_CXX=no
13074 # Workaround some broken pre-1.5 toolchains
13075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13078 *nto* | *qnx*)
13079 ld_shlibs_CXX=yes
13082 openbsd2*)
13083 # C++ shared libraries are fairly broken
13084 ld_shlibs_CXX=no
13087 openbsd*)
13088 if test -f /usr/libexec/ld.so; then
13089 hardcode_direct_CXX=yes
13090 hardcode_shlibpath_var_CXX=no
13091 hardcode_direct_absolute_CXX=yes
13092 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13095 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13096 export_dynamic_flag_spec_CXX='${wl}-E'
13097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13099 output_verbose_link_cmd=func_echo_all
13100 else
13101 ld_shlibs_CXX=no
13105 osf3* | osf4* | osf5*)
13106 case $cc_basename in
13107 KCC*)
13108 # Kuck and Associates, Inc. (KAI) C++ Compiler
13110 # KCC will only create a shared library if the output file
13111 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13112 # to its proper name (with version) after linking.
13113 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13116 hardcode_libdir_separator_CXX=:
13118 # Archives containing C++ object files must be created using
13119 # the KAI C++ compiler.
13120 case $host in
13121 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13122 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13123 esac
13125 RCC*)
13126 # Rational C++ 2.4.1
13127 # FIXME: insert proper C++ library support
13128 ld_shlibs_CXX=no
13130 cxx*)
13131 case $host in
13132 osf3*)
13133 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13134 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13138 allow_undefined_flag_CXX=' -expect_unresolved \*'
13139 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13141 echo "-hidden">> $lib.exp~
13142 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13143 $RM $lib.exp'
13144 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13146 esac
13148 hardcode_libdir_separator_CXX=:
13150 # Commands to make compiler produce verbose output that lists
13151 # what "hidden" libraries, object files and flags are used when
13152 # linking a shared library.
13154 # There doesn't appear to be a way to prevent this compiler from
13155 # explicitly linking system object files so we need to strip them
13156 # from the output so that they don't get included in the library
13157 # dependencies.
13158 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13161 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13162 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13163 case $host in
13164 osf3*)
13165 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13168 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13170 esac
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13173 hardcode_libdir_separator_CXX=:
13175 # Commands to make compiler produce verbose output that lists
13176 # what "hidden" libraries, object files and flags are used when
13177 # linking a shared library.
13178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13180 else
13181 # FIXME: insert proper C++ library support
13182 ld_shlibs_CXX=no
13185 esac
13188 psos*)
13189 # FIXME: insert proper C++ library support
13190 ld_shlibs_CXX=no
13193 sunos4*)
13194 case $cc_basename in
13195 CC*)
13196 # Sun C++ 4.x
13197 # FIXME: insert proper C++ library support
13198 ld_shlibs_CXX=no
13200 lcc*)
13201 # Lucid
13202 # FIXME: insert proper C++ library support
13203 ld_shlibs_CXX=no
13206 # FIXME: insert proper C++ library support
13207 ld_shlibs_CXX=no
13209 esac
13212 solaris*)
13213 case $cc_basename in
13214 CC*)
13215 # Sun C++ 4.2, 5.x and Centerline C++
13216 archive_cmds_need_lc_CXX=yes
13217 no_undefined_flag_CXX=' -zdefs'
13218 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13219 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13220 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13222 hardcode_libdir_flag_spec_CXX='-R$libdir'
13223 hardcode_shlibpath_var_CXX=no
13224 case $host_os in
13225 solaris2.[0-5] | solaris2.[0-5].*) ;;
13227 # The compiler driver will combine and reorder linker options,
13228 # but understands `-z linker_flag'.
13229 # Supported since Solaris 2.6 (maybe 2.5.1?)
13230 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13232 esac
13233 link_all_deplibs_CXX=yes
13235 output_verbose_link_cmd='func_echo_all'
13237 # Archives containing C++ object files must be created using
13238 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13239 # necessary to make sure instantiated templates are included
13240 # in the archive.
13241 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13243 gcx*)
13244 # Green Hills C++ Compiler
13245 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13247 # The C++ compiler must be used to create the archive.
13248 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13251 # GNU C++ compiler with Solaris linker
13252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13253 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13254 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13255 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13256 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13257 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13259 # Commands to make compiler produce verbose output that lists
13260 # what "hidden" libraries, object files and flags are used when
13261 # linking a shared library.
13262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13263 else
13264 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13265 # platform.
13266 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13267 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13268 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13270 # Commands to make compiler produce verbose output that lists
13271 # what "hidden" libraries, object files and flags are used when
13272 # linking a shared library.
13273 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13276 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13277 case $host_os in
13278 solaris2.[0-5] | solaris2.[0-5].*) ;;
13280 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13282 esac
13285 esac
13288 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13289 no_undefined_flag_CXX='${wl}-z,text'
13290 archive_cmds_need_lc_CXX=no
13291 hardcode_shlibpath_var_CXX=no
13292 runpath_var='LD_RUN_PATH'
13294 case $cc_basename in
13295 CC*)
13296 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13303 esac
13306 sysv5* | sco3.2v5* | sco5v6*)
13307 # Note: We can NOT use -z defs as we might desire, because we do not
13308 # link with -lc, and that would cause any symbols used from libc to
13309 # always be unresolved, which means just about no library would
13310 # ever link correctly. If we're not using GNU ld we use -z text
13311 # though, which does catch some bad symbols but isn't as heavy-handed
13312 # as -z defs.
13313 no_undefined_flag_CXX='${wl}-z,text'
13314 allow_undefined_flag_CXX='${wl}-z,nodefs'
13315 archive_cmds_need_lc_CXX=no
13316 hardcode_shlibpath_var_CXX=no
13317 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13318 hardcode_libdir_separator_CXX=':'
13319 link_all_deplibs_CXX=yes
13320 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13321 runpath_var='LD_RUN_PATH'
13323 case $cc_basename in
13324 CC*)
13325 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13328 '"$old_archive_cmds_CXX"
13329 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13330 '"$reload_cmds_CXX"
13333 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 esac
13339 tandem*)
13340 case $cc_basename in
13341 NCC*)
13342 # NonStop-UX NCC 3.20
13343 # FIXME: insert proper C++ library support
13344 ld_shlibs_CXX=no
13347 # FIXME: insert proper C++ library support
13348 ld_shlibs_CXX=no
13350 esac
13353 vxworks*)
13354 # For VxWorks ports, we assume the use of a GNU linker with
13355 # standard elf conventions.
13356 ld_shlibs_CXX=yes
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13363 esac
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13366 $as_echo "$ld_shlibs_CXX" >&6; }
13367 test "$ld_shlibs_CXX" = no && can_build_shared=no
13369 GCC_CXX="$GXX"
13370 LD_CXX="$LD"
13372 ## CAVEAT EMPTOR:
13373 ## There is no encapsulation within the following macros, do not change
13374 ## the running order or otherwise move them around unless you know exactly
13375 ## what you are doing...
13376 # Dependencies to place before and after the object being linked:
13377 predep_objects_CXX=
13378 postdep_objects_CXX=
13379 predeps_CXX=
13380 postdeps_CXX=
13381 compiler_lib_search_path_CXX=
13383 cat > conftest.$ac_ext <<_LT_EOF
13384 class Foo
13386 public:
13387 Foo (void) { a = 0; }
13388 private:
13389 int a;
13391 _LT_EOF
13393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13394 (eval $ac_compile) 2>&5
13395 ac_status=$?
13396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397 test $ac_status = 0; }; then
13398 # Parse the compiler output and extract the necessary
13399 # objects, libraries and library flags.
13401 # Sentinel used to keep track of whether or not we are before
13402 # the conftest object file.
13403 pre_test_object_deps_done=no
13405 for p in `eval "$output_verbose_link_cmd"`; do
13406 case $p in
13408 -L* | -R* | -l*)
13409 # Some compilers place space between "-{L,R}" and the path.
13410 # Remove the space.
13411 if test $p = "-L" ||
13412 test $p = "-R"; then
13413 prev=$p
13414 continue
13415 else
13416 prev=
13419 if test "$pre_test_object_deps_done" = no; then
13420 case $p in
13421 -L* | -R*)
13422 # Internal compiler library paths should come after those
13423 # provided the user. The postdeps already come after the
13424 # user supplied libs so there is no need to process them.
13425 if test -z "$compiler_lib_search_path_CXX"; then
13426 compiler_lib_search_path_CXX="${prev}${p}"
13427 else
13428 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13431 # The "-l" case would never come before the object being
13432 # linked, so don't bother handling this case.
13433 esac
13434 else
13435 if test -z "$postdeps_CXX"; then
13436 postdeps_CXX="${prev}${p}"
13437 else
13438 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13443 *.$objext)
13444 # This assumes that the test object file only shows up
13445 # once in the compiler output.
13446 if test "$p" = "conftest.$objext"; then
13447 pre_test_object_deps_done=yes
13448 continue
13451 if test "$pre_test_object_deps_done" = no; then
13452 if test -z "$predep_objects_CXX"; then
13453 predep_objects_CXX="$p"
13454 else
13455 predep_objects_CXX="$predep_objects_CXX $p"
13457 else
13458 if test -z "$postdep_objects_CXX"; then
13459 postdep_objects_CXX="$p"
13460 else
13461 postdep_objects_CXX="$postdep_objects_CXX $p"
13466 *) ;; # Ignore the rest.
13468 esac
13469 done
13471 # Clean up.
13472 rm -f a.out a.exe
13473 else
13474 echo "libtool.m4: error: problem compiling CXX test program"
13477 $RM -f confest.$objext
13479 # PORTME: override above test on systems where it is broken
13480 case $host_os in
13481 interix[3-9]*)
13482 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13483 # hack all around it, let's just trust "g++" to DTRT.
13484 predep_objects_CXX=
13485 postdep_objects_CXX=
13486 postdeps_CXX=
13489 linux*)
13490 case `$CC -V 2>&1 | sed 5q` in
13491 *Sun\ C*)
13492 # Sun C++ 5.9
13494 # The more standards-conforming stlport4 library is
13495 # incompatible with the Cstd library. Avoid specifying
13496 # it if it's in CXXFLAGS. Ignore libCrun as
13497 # -library=stlport4 depends on it.
13498 case " $CXX $CXXFLAGS " in
13499 *" -library=stlport4 "*)
13500 solaris_use_stlport4=yes
13502 esac
13504 if test "$solaris_use_stlport4" != yes; then
13505 postdeps_CXX='-library=Cstd -library=Crun'
13508 esac
13511 solaris*)
13512 case $cc_basename in
13513 CC*)
13514 # The more standards-conforming stlport4 library is
13515 # incompatible with the Cstd library. Avoid specifying
13516 # it if it's in CXXFLAGS. Ignore libCrun as
13517 # -library=stlport4 depends on it.
13518 case " $CXX $CXXFLAGS " in
13519 *" -library=stlport4 "*)
13520 solaris_use_stlport4=yes
13522 esac
13524 # Adding this requires a known-good setup of shared libraries for
13525 # Sun compiler versions before 5.6, else PIC objects from an old
13526 # archive will be linked into the output, leading to subtle bugs.
13527 if test "$solaris_use_stlport4" != yes; then
13528 postdeps_CXX='-library=Cstd -library=Crun'
13531 esac
13533 esac
13536 case " $postdeps_CXX " in
13537 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13538 esac
13539 compiler_lib_search_dirs_CXX=
13540 if test -n "${compiler_lib_search_path_CXX}"; then
13541 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13574 lt_prog_compiler_wl_CXX=
13575 lt_prog_compiler_pic_CXX=
13576 lt_prog_compiler_static_CXX=
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13579 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13581 # C++ specific cases for pic, static, wl, etc.
13582 if test "$GXX" = yes; then
13583 lt_prog_compiler_wl_CXX='-Wl,'
13584 lt_prog_compiler_static_CXX='-static'
13586 case $host_os in
13587 aix*)
13588 # All AIX code is PIC.
13589 if test "$host_cpu" = ia64; then
13590 # AIX 5 now supports IA64 processor
13591 lt_prog_compiler_static_CXX='-Bstatic'
13593 lt_prog_compiler_pic_CXX='-fPIC'
13596 amigaos*)
13597 case $host_cpu in
13598 powerpc)
13599 # see comment about AmigaOS4 .so support
13600 lt_prog_compiler_pic_CXX='-fPIC'
13602 m68k)
13603 # FIXME: we need at least 68020 code to build shared libraries, but
13604 # adding the `-m68020' flag to GCC prevents building anything better,
13605 # like `-m68040'.
13606 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13608 esac
13611 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13612 # PIC is the default for these OSes.
13614 mingw* | cygwin* | os2* | pw32* | cegcc*)
13615 # This hack is so that the source file can tell whether it is being
13616 # built for inclusion in a dll (and should export symbols for example).
13617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13618 # (--disable-auto-import) libraries
13619 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13621 darwin* | rhapsody*)
13622 # PIC is the default on this platform
13623 # Common symbols not allowed in MH_DYLIB files
13624 lt_prog_compiler_pic_CXX='-fno-common'
13626 *djgpp*)
13627 # DJGPP does not support shared libraries at all
13628 lt_prog_compiler_pic_CXX=
13630 haiku*)
13631 # PIC is the default for Haiku.
13632 # The "-static" flag exists, but is broken.
13633 lt_prog_compiler_static_CXX=
13635 interix[3-9]*)
13636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13637 # Instead, we relocate shared libraries at runtime.
13639 sysv4*MP*)
13640 if test -d /usr/nec; then
13641 lt_prog_compiler_pic_CXX=-Kconform_pic
13644 hpux*)
13645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13647 # sets the default TLS model and affects inlining.
13648 case $host_cpu in
13649 hppa*64*)
13652 lt_prog_compiler_pic_CXX='-fPIC'
13654 esac
13656 *qnx* | *nto*)
13657 # QNX uses GNU C++, but need to define -shared option too, otherwise
13658 # it will coredump.
13659 lt_prog_compiler_pic_CXX='-fPIC -shared'
13662 lt_prog_compiler_pic_CXX='-fPIC'
13664 esac
13665 else
13666 case $host_os in
13667 aix[4-9]*)
13668 # All AIX code is PIC.
13669 if test "$host_cpu" = ia64; then
13670 # AIX 5 now supports IA64 processor
13671 lt_prog_compiler_static_CXX='-Bstatic'
13672 else
13673 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13676 chorus*)
13677 case $cc_basename in
13678 cxch68*)
13679 # Green Hills C++ Compiler
13680 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13682 esac
13684 dgux*)
13685 case $cc_basename in
13686 ec++*)
13687 lt_prog_compiler_pic_CXX='-KPIC'
13689 ghcx*)
13690 # Green Hills C++ Compiler
13691 lt_prog_compiler_pic_CXX='-pic'
13695 esac
13697 freebsd* | dragonfly*)
13698 # FreeBSD uses GNU C++
13700 hpux9* | hpux10* | hpux11*)
13701 case $cc_basename in
13702 CC*)
13703 lt_prog_compiler_wl_CXX='-Wl,'
13704 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13705 if test "$host_cpu" != ia64; then
13706 lt_prog_compiler_pic_CXX='+Z'
13709 aCC*)
13710 lt_prog_compiler_wl_CXX='-Wl,'
13711 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13712 case $host_cpu in
13713 hppa*64*|ia64*)
13714 # +Z the default
13717 lt_prog_compiler_pic_CXX='+Z'
13719 esac
13723 esac
13725 interix*)
13726 # This is c89, which is MS Visual C++ (no shared libs)
13727 # Anyone wants to do a port?
13729 irix5* | irix6* | nonstopux*)
13730 case $cc_basename in
13731 CC*)
13732 lt_prog_compiler_wl_CXX='-Wl,'
13733 lt_prog_compiler_static_CXX='-non_shared'
13734 # CC pic flag -KPIC is the default.
13738 esac
13740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13741 case $cc_basename in
13742 KCC*)
13743 # KAI C++ Compiler
13744 lt_prog_compiler_wl_CXX='--backend -Wl,'
13745 lt_prog_compiler_pic_CXX='-fPIC'
13747 ecpc* )
13748 # old Intel C++ for x86_64 which still supported -KPIC.
13749 lt_prog_compiler_wl_CXX='-Wl,'
13750 lt_prog_compiler_pic_CXX='-KPIC'
13751 lt_prog_compiler_static_CXX='-static'
13753 icpc* )
13754 # Intel C++, used to be incompatible with GCC.
13755 # ICC 10 doesn't accept -KPIC any more.
13756 lt_prog_compiler_wl_CXX='-Wl,'
13757 lt_prog_compiler_pic_CXX='-fPIC'
13758 lt_prog_compiler_static_CXX='-static'
13760 pgCC* | pgcpp*)
13761 # Portland Group C++ compiler
13762 lt_prog_compiler_wl_CXX='-Wl,'
13763 lt_prog_compiler_pic_CXX='-fpic'
13764 lt_prog_compiler_static_CXX='-Bstatic'
13766 cxx*)
13767 # Compaq C++
13768 # Make sure the PIC flag is empty. It appears that all Alpha
13769 # Linux and Compaq Tru64 Unix objects are PIC.
13770 lt_prog_compiler_pic_CXX=
13771 lt_prog_compiler_static_CXX='-non_shared'
13773 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13774 # IBM XL 8.0, 9.0 on PPC and BlueGene
13775 lt_prog_compiler_wl_CXX='-Wl,'
13776 lt_prog_compiler_pic_CXX='-qpic'
13777 lt_prog_compiler_static_CXX='-qstaticlink'
13780 case `$CC -V 2>&1 | sed 5q` in
13781 *Sun\ C*)
13782 # Sun C++ 5.9
13783 lt_prog_compiler_pic_CXX='-KPIC'
13784 lt_prog_compiler_static_CXX='-Bstatic'
13785 lt_prog_compiler_wl_CXX='-Qoption ld '
13787 esac
13789 esac
13791 lynxos*)
13793 m88k*)
13795 mvs*)
13796 case $cc_basename in
13797 cxx*)
13798 lt_prog_compiler_pic_CXX='-W c,exportall'
13802 esac
13804 netbsd*)
13806 *qnx* | *nto*)
13807 # QNX uses GNU C++, but need to define -shared option too, otherwise
13808 # it will coredump.
13809 lt_prog_compiler_pic_CXX='-fPIC -shared'
13811 osf3* | osf4* | osf5*)
13812 case $cc_basename in
13813 KCC*)
13814 lt_prog_compiler_wl_CXX='--backend -Wl,'
13816 RCC*)
13817 # Rational C++ 2.4.1
13818 lt_prog_compiler_pic_CXX='-pic'
13820 cxx*)
13821 # Digital/Compaq C++
13822 lt_prog_compiler_wl_CXX='-Wl,'
13823 # Make sure the PIC flag is empty. It appears that all Alpha
13824 # Linux and Compaq Tru64 Unix objects are PIC.
13825 lt_prog_compiler_pic_CXX=
13826 lt_prog_compiler_static_CXX='-non_shared'
13830 esac
13832 psos*)
13834 solaris*)
13835 case $cc_basename in
13836 CC*)
13837 # Sun C++ 4.2, 5.x and Centerline C++
13838 lt_prog_compiler_pic_CXX='-KPIC'
13839 lt_prog_compiler_static_CXX='-Bstatic'
13840 lt_prog_compiler_wl_CXX='-Qoption ld '
13842 gcx*)
13843 # Green Hills C++ Compiler
13844 lt_prog_compiler_pic_CXX='-PIC'
13848 esac
13850 sunos4*)
13851 case $cc_basename in
13852 CC*)
13853 # Sun C++ 4.x
13854 lt_prog_compiler_pic_CXX='-pic'
13855 lt_prog_compiler_static_CXX='-Bstatic'
13857 lcc*)
13858 # Lucid
13859 lt_prog_compiler_pic_CXX='-pic'
13863 esac
13865 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13866 case $cc_basename in
13867 CC*)
13868 lt_prog_compiler_wl_CXX='-Wl,'
13869 lt_prog_compiler_pic_CXX='-KPIC'
13870 lt_prog_compiler_static_CXX='-Bstatic'
13872 esac
13874 tandem*)
13875 case $cc_basename in
13876 NCC*)
13877 # NonStop-UX NCC 3.20
13878 lt_prog_compiler_pic_CXX='-KPIC'
13882 esac
13884 vxworks*)
13887 lt_prog_compiler_can_build_shared_CXX=no
13889 esac
13892 case $host_os in
13893 # For platforms which do not support PIC, -DPIC is meaningless:
13894 *djgpp*)
13895 lt_prog_compiler_pic_CXX=
13898 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13900 esac
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13902 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13907 # Check to make sure the PIC flag actually works.
13909 if test -n "$lt_prog_compiler_pic_CXX"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13911 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13912 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 lt_cv_prog_compiler_pic_works_CXX=no
13916 ac_outfile=conftest.$ac_objext
13917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13918 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13919 # Insert the option either (1) after the last *FLAGS variable, or
13920 # (2) before a word containing "conftest.", or (3) at the end.
13921 # Note that $ac_compile itself does not contain backslashes and begins
13922 # with a dollar sign (not a hyphen), so the echo should work correctly.
13923 # The option is referenced via a variable to avoid confusing sed.
13924 lt_compile=`echo "$ac_compile" | $SED \
13925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13927 -e 's:$: $lt_compiler_flag:'`
13928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13929 (eval "$lt_compile" 2>conftest.err)
13930 ac_status=$?
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 if (exit $ac_status) && test -s "$ac_outfile"; then
13934 # The compiler can only warn and ignore the option if not recognized
13935 # So say no if there are warnings other than the usual output.
13936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13939 lt_cv_prog_compiler_pic_works_CXX=yes
13942 $RM conftest*
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13946 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13948 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13949 case $lt_prog_compiler_pic_CXX in
13950 "" | " "*) ;;
13951 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13952 esac
13953 else
13954 lt_prog_compiler_pic_CXX=
13955 lt_prog_compiler_can_build_shared_CXX=no
13963 # Check to make sure the static flag actually works.
13965 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13967 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13968 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 lt_cv_prog_compiler_static_works_CXX=no
13972 save_LDFLAGS="$LDFLAGS"
13973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13974 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13976 # The linker can only warn and ignore the option if not recognized
13977 # So say no if there are warnings
13978 if test -s conftest.err; then
13979 # Append any errors to the config.log.
13980 cat conftest.err 1>&5
13981 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13983 if diff conftest.exp conftest.er2 >/dev/null; then
13984 lt_cv_prog_compiler_static_works_CXX=yes
13986 else
13987 lt_cv_prog_compiler_static_works_CXX=yes
13990 $RM -r conftest*
13991 LDFLAGS="$save_LDFLAGS"
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13995 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13997 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13999 else
14000 lt_prog_compiler_static_CXX=
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14008 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 lt_cv_prog_compiler_c_o_CXX=no
14012 $RM -r conftest 2>/dev/null
14013 mkdir conftest
14014 cd conftest
14015 mkdir out
14016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14018 lt_compiler_flag="-o out/conftest2.$ac_objext"
14019 # Insert the option either (1) after the last *FLAGS variable, or
14020 # (2) before a word containing "conftest.", or (3) at the end.
14021 # Note that $ac_compile itself does not contain backslashes and begins
14022 # with a dollar sign (not a hyphen), so the echo should work correctly.
14023 lt_compile=`echo "$ac_compile" | $SED \
14024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14026 -e 's:$: $lt_compiler_flag:'`
14027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14028 (eval "$lt_compile" 2>out/conftest.err)
14029 ac_status=$?
14030 cat out/conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14033 then
14034 # The compiler can only warn and ignore the option if not recognized
14035 # So say no if there are warnings
14036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14039 lt_cv_prog_compiler_c_o_CXX=yes
14042 chmod u+w . 2>&5
14043 $RM conftest*
14044 # SGI C++ compiler will create directory out/ii_files/ for
14045 # template instantiation
14046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14047 $RM out/* && rmdir out
14048 cd ..
14049 $RM -r conftest
14050 $RM conftest*
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14054 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14060 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 lt_cv_prog_compiler_c_o_CXX=no
14064 $RM -r conftest 2>/dev/null
14065 mkdir conftest
14066 cd conftest
14067 mkdir out
14068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14070 lt_compiler_flag="-o out/conftest2.$ac_objext"
14071 # Insert the option either (1) after the last *FLAGS variable, or
14072 # (2) before a word containing "conftest.", or (3) at the end.
14073 # Note that $ac_compile itself does not contain backslashes and begins
14074 # with a dollar sign (not a hyphen), so the echo should work correctly.
14075 lt_compile=`echo "$ac_compile" | $SED \
14076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14078 -e 's:$: $lt_compiler_flag:'`
14079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14080 (eval "$lt_compile" 2>out/conftest.err)
14081 ac_status=$?
14082 cat out/conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14085 then
14086 # The compiler can only warn and ignore the option if not recognized
14087 # So say no if there are warnings
14088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14091 lt_cv_prog_compiler_c_o_CXX=yes
14094 chmod u+w . 2>&5
14095 $RM conftest*
14096 # SGI C++ compiler will create directory out/ii_files/ for
14097 # template instantiation
14098 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14099 $RM out/* && rmdir out
14100 cd ..
14101 $RM -r conftest
14102 $RM conftest*
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14106 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14111 hard_links="nottested"
14112 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14113 # do not overwrite the value of need_locks provided by the user
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14115 $as_echo_n "checking if we can lock with hard links... " >&6; }
14116 hard_links=yes
14117 $RM conftest*
14118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14119 touch conftest.a
14120 ln conftest.a conftest.b 2>&5 || hard_links=no
14121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14123 $as_echo "$hard_links" >&6; }
14124 if test "$hard_links" = no; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14126 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14127 need_locks=warn
14129 else
14130 need_locks=no
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14138 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14139 case $host_os in
14140 aix[4-9]*)
14141 # If we're using GNU nm, then we don't want the "-C" option.
14142 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14143 # Also, AIX nm treats weak defined symbols like other global defined
14144 # symbols, whereas GNU nm marks them as "W".
14145 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14146 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14147 else
14148 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14151 pw32*)
14152 export_symbols_cmds_CXX="$ltdll_cmds"
14154 cygwin* | mingw* | cegcc*)
14155 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14160 esac
14161 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14164 $as_echo "$ld_shlibs_CXX" >&6; }
14165 test "$ld_shlibs_CXX" = no && can_build_shared=no
14167 with_gnu_ld_CXX=$with_gnu_ld
14175 # Do we need to explicitly link libc?
14177 case "x$archive_cmds_need_lc_CXX" in
14178 x|xyes)
14179 # Assume -lc should be added
14180 archive_cmds_need_lc_CXX=yes
14182 if test "$enable_shared" = yes && test "$GCC" = yes; then
14183 case $archive_cmds_CXX in
14184 *'~'*)
14185 # FIXME: we may have to deal with multi-command sequences.
14187 '$CC '*)
14188 # Test whether the compiler implicitly links with -lc since on some
14189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14190 # to ld, don't add -lc before -lgcc.
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14192 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14193 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 $RM conftest*
14197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14200 (eval $ac_compile) 2>&5
14201 ac_status=$?
14202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14203 test $ac_status = 0; } 2>conftest.err; then
14204 soname=conftest
14205 lib=conftest
14206 libobjs=conftest.$ac_objext
14207 deplibs=
14208 wl=$lt_prog_compiler_wl_CXX
14209 pic_flag=$lt_prog_compiler_pic_CXX
14210 compiler_flags=-v
14211 linker_flags=-v
14212 verstring=
14213 output_objdir=.
14214 libname=conftest
14215 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14216 allow_undefined_flag_CXX=
14217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14218 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14219 ac_status=$?
14220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14221 test $ac_status = 0; }
14222 then
14223 lt_cv_archive_cmds_need_lc_CXX=no
14224 else
14225 lt_cv_archive_cmds_need_lc_CXX=yes
14227 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14228 else
14229 cat conftest.err 1>&5
14231 $RM conftest*
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14235 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14236 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14238 esac
14241 esac
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14307 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14309 library_names_spec=
14310 libname_spec='lib$name'
14311 soname_spec=
14312 shrext_cmds=".so"
14313 postinstall_cmds=
14314 postuninstall_cmds=
14315 finish_cmds=
14316 finish_eval=
14317 shlibpath_var=
14318 shlibpath_overrides_runpath=unknown
14319 version_type=none
14320 dynamic_linker="$host_os ld.so"
14321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14322 need_lib_prefix=unknown
14323 hardcode_into_libs=no
14325 # when you set need_version to no, make sure it does not cause -set_version
14326 # flags to be left without arguments
14327 need_version=unknown
14329 case $host_os in
14330 aix3*)
14331 version_type=linux
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14333 shlibpath_var=LIBPATH
14335 # AIX 3 has no versioning support, so we append a major version to the name.
14336 soname_spec='${libname}${release}${shared_ext}$major'
14339 aix[4-9]*)
14340 version_type=linux
14341 need_lib_prefix=no
14342 need_version=no
14343 hardcode_into_libs=yes
14344 if test "$host_cpu" = ia64; then
14345 # AIX 5 supports IA64
14346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14347 shlibpath_var=LD_LIBRARY_PATH
14348 else
14349 # With GCC up to 2.95.x, collect2 would create an import file
14350 # for dependence libraries. The import file would start with
14351 # the line `#! .'. This would cause the generated library to
14352 # depend on `.', always an invalid library. This was fixed in
14353 # development snapshots of GCC prior to 3.0.
14354 case $host_os in
14355 aix4 | aix4.[01] | aix4.[01].*)
14356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14357 echo ' yes '
14358 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14360 else
14361 can_build_shared=no
14364 esac
14365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14366 # soname into executable. Probably we can add versioning support to
14367 # collect2, so additional links can be useful in future.
14368 if test "$aix_use_runtimelinking" = yes; then
14369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14370 # instead of lib<name>.a to let people know that these are not
14371 # typical AIX shared libraries.
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373 else
14374 # We preserve .a as extension for shared libraries through AIX4.2
14375 # and later when we are not doing run time linking.
14376 library_names_spec='${libname}${release}.a $libname.a'
14377 soname_spec='${libname}${release}${shared_ext}$major'
14379 shlibpath_var=LIBPATH
14383 amigaos*)
14384 case $host_cpu in
14385 powerpc)
14386 # Since July 2007 AmigaOS4 officially supports .so libraries.
14387 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 m68k)
14391 library_names_spec='$libname.ixlibrary $libname.a'
14392 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14393 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14395 esac
14398 beos*)
14399 library_names_spec='${libname}${shared_ext}'
14400 dynamic_linker="$host_os ld.so"
14401 shlibpath_var=LIBRARY_PATH
14404 bsdi[45]*)
14405 version_type=linux
14406 need_version=no
14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408 soname_spec='${libname}${release}${shared_ext}$major'
14409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14410 shlibpath_var=LD_LIBRARY_PATH
14411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14413 # the default ld.so.conf also contains /usr/contrib/lib and
14414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14415 # libtool to hard-code these into programs
14418 cygwin* | mingw* | pw32* | cegcc*)
14419 version_type=windows
14420 shrext_cmds=".dll"
14421 need_version=no
14422 need_lib_prefix=no
14424 case $GCC,$host_os in
14425 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14426 library_names_spec='$libname.dll.a'
14427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14428 postinstall_cmds='base_file=`basename \${file}`~
14429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14430 dldir=$destdir/`dirname \$dlpath`~
14431 test -d \$dldir || mkdir -p \$dldir~
14432 $install_prog $dir/$dlname \$dldir/$dlname~
14433 chmod a+x \$dldir/$dlname~
14434 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14435 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14438 dlpath=$dir/\$dldll~
14439 $RM \$dlpath'
14440 shlibpath_overrides_runpath=yes
14442 case $host_os in
14443 cygwin*)
14444 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14448 mingw* | cegcc*)
14449 # MinGW DLLs use traditional 'lib' prefix
14450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14452 pw32*)
14453 # pw32 DLLs use 'pw' prefix rather than 'lib'
14454 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14456 esac
14460 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14462 esac
14463 dynamic_linker='Win32 ld.exe'
14464 # FIXME: first we should search . and the directory the executable is in
14465 shlibpath_var=PATH
14468 darwin* | rhapsody*)
14469 dynamic_linker="$host_os dyld"
14470 version_type=darwin
14471 need_lib_prefix=no
14472 need_version=no
14473 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14474 soname_spec='${libname}${release}${major}$shared_ext'
14475 shlibpath_overrides_runpath=yes
14476 shlibpath_var=DYLD_LIBRARY_PATH
14477 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14482 dgux*)
14483 version_type=linux
14484 need_lib_prefix=no
14485 need_version=no
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 shlibpath_var=LD_LIBRARY_PATH
14491 freebsd* | dragonfly*)
14492 # DragonFly does not have aout. When/if they implement a new
14493 # versioning mechanism, adjust this.
14494 if test -x /usr/bin/objformat; then
14495 objformat=`/usr/bin/objformat`
14496 else
14497 case $host_os in
14498 freebsd[23].*) objformat=aout ;;
14499 *) objformat=elf ;;
14500 esac
14502 version_type=freebsd-$objformat
14503 case $version_type in
14504 freebsd-elf*)
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14506 need_version=no
14507 need_lib_prefix=no
14509 freebsd-*)
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14511 need_version=yes
14513 esac
14514 shlibpath_var=LD_LIBRARY_PATH
14515 case $host_os in
14516 freebsd2.*)
14517 shlibpath_overrides_runpath=yes
14519 freebsd3.[01]* | freebsdelf3.[01]*)
14520 shlibpath_overrides_runpath=yes
14521 hardcode_into_libs=yes
14523 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14524 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14525 shlibpath_overrides_runpath=no
14526 hardcode_into_libs=yes
14528 *) # from 4.6 on, and DragonFly
14529 shlibpath_overrides_runpath=yes
14530 hardcode_into_libs=yes
14532 esac
14535 haiku*)
14536 version_type=linux
14537 need_lib_prefix=no
14538 need_version=no
14539 dynamic_linker="$host_os runtime_loader"
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 shlibpath_var=LIBRARY_PATH
14543 shlibpath_overrides_runpath=yes
14544 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14545 hardcode_into_libs=yes
14548 hpux9* | hpux10* | hpux11*)
14549 # Give a soname corresponding to the major version so that dld.sl refuses to
14550 # link against other versions.
14551 version_type=sunos
14552 need_lib_prefix=no
14553 need_version=no
14554 case $host_cpu in
14555 ia64*)
14556 shrext_cmds='.so'
14557 hardcode_into_libs=yes
14558 dynamic_linker="$host_os dld.so"
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 if test "X$HPUX_IA64_MODE" = X32; then
14564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14565 else
14566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14570 hppa*64*)
14571 shrext_cmds='.sl'
14572 hardcode_into_libs=yes
14573 dynamic_linker="$host_os dld.sl"
14574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14582 shrext_cmds='.sl'
14583 dynamic_linker="$host_os dld.sl"
14584 shlibpath_var=SHLIB_PATH
14585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14589 esac
14590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14591 postinstall_cmds='chmod 555 $lib'
14592 # or fails outright, so override atomically:
14593 install_override_mode=555
14596 interix[3-9]*)
14597 version_type=linux
14598 need_lib_prefix=no
14599 need_version=no
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 shlibpath_overrides_runpath=no
14605 hardcode_into_libs=yes
14608 irix5* | irix6* | nonstopux*)
14609 case $host_os in
14610 nonstopux*) version_type=nonstopux ;;
14612 if test "$lt_cv_prog_gnu_ld" = yes; then
14613 version_type=linux
14614 else
14615 version_type=irix
14616 fi ;;
14617 esac
14618 need_lib_prefix=no
14619 need_version=no
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14622 case $host_os in
14623 irix5* | nonstopux*)
14624 libsuff= shlibsuff=
14627 case $LD in # libtool.m4 will add one of these switches to LD
14628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14629 libsuff= shlibsuff= libmagic=32-bit;;
14630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14631 libsuff=32 shlibsuff=N32 libmagic=N32;;
14632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14634 *) libsuff= shlibsuff= libmagic=never-match;;
14635 esac
14637 esac
14638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14639 shlibpath_overrides_runpath=no
14640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14642 hardcode_into_libs=yes
14645 # No shared lib support for Linux oldld, aout, or coff.
14646 linux*oldld* | linux*aout* | linux*coff*)
14647 dynamic_linker=no
14650 # This must be Linux ELF.
14652 # uclinux* changes (here and below) have been submitted to the libtool
14653 # project, but have not yet been accepted: they are GCC-local changes
14654 # for the time being. (See
14655 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14656 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14657 version_type=linux
14658 need_lib_prefix=no
14659 need_version=no
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=no
14666 # Some binutils ld are patched to set DT_RUNPATH
14667 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14668 $as_echo_n "(cached) " >&6
14669 else
14670 lt_cv_shlibpath_overrides_runpath=no
14671 save_LDFLAGS=$LDFLAGS
14672 save_libdir=$libdir
14673 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14674 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14679 main ()
14683 return 0;
14685 _ACEOF
14686 if ac_fn_cxx_try_link "$LINENO"; then :
14687 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14688 lt_cv_shlibpath_overrides_runpath=yes
14691 rm -f core conftest.err conftest.$ac_objext \
14692 conftest$ac_exeext conftest.$ac_ext
14693 LDFLAGS=$save_LDFLAGS
14694 libdir=$save_libdir
14698 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14700 # This implies no fast_install, which is unacceptable.
14701 # Some rework will be needed to allow for fast_install
14702 # before this can be enabled.
14703 hardcode_into_libs=yes
14705 # Append ld.so.conf contents to the search path
14706 if test -f /etc/ld.so.conf; then
14707 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14708 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14711 # We used to test for /lib/ld.so.1 and disable shared libraries on
14712 # powerpc, because MkLinux only supported shared libraries with the
14713 # GNU dynamic linker. Since this was broken with cross compilers,
14714 # most powerpc-linux boxes support dynamic linking these days and
14715 # people can always --disable-shared, the test was removed, and we
14716 # assume the GNU/Linux dynamic linker is in use.
14717 dynamic_linker='GNU/Linux ld.so'
14720 netbsd*)
14721 version_type=sunos
14722 need_lib_prefix=no
14723 need_version=no
14724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14727 dynamic_linker='NetBSD (a.out) ld.so'
14728 else
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 dynamic_linker='NetBSD ld.elf_so'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 shlibpath_overrides_runpath=yes
14735 hardcode_into_libs=yes
14738 newsos6)
14739 version_type=linux
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 shlibpath_var=LD_LIBRARY_PATH
14742 shlibpath_overrides_runpath=yes
14745 *nto* | *qnx*)
14746 version_type=qnx
14747 need_lib_prefix=no
14748 need_version=no
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=no
14753 hardcode_into_libs=yes
14754 dynamic_linker='ldqnx.so'
14757 openbsd*)
14758 version_type=sunos
14759 sys_lib_dlsearch_path_spec="/usr/lib"
14760 need_lib_prefix=no
14761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14762 case $host_os in
14763 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14764 *) need_version=no ;;
14765 esac
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14770 case $host_os in
14771 openbsd2.[89] | openbsd2.[89].*)
14772 shlibpath_overrides_runpath=no
14775 shlibpath_overrides_runpath=yes
14777 esac
14778 else
14779 shlibpath_overrides_runpath=yes
14783 os2*)
14784 libname_spec='$name'
14785 shrext_cmds=".dll"
14786 need_lib_prefix=no
14787 library_names_spec='$libname${shared_ext} $libname.a'
14788 dynamic_linker='OS/2 ld.exe'
14789 shlibpath_var=LIBPATH
14792 osf3* | osf4* | osf5*)
14793 version_type=osf
14794 need_lib_prefix=no
14795 need_version=no
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14803 rdos*)
14804 dynamic_linker=no
14807 solaris*)
14808 version_type=linux
14809 need_lib_prefix=no
14810 need_version=no
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14812 soname_spec='${libname}${release}${shared_ext}$major'
14813 shlibpath_var=LD_LIBRARY_PATH
14814 shlibpath_overrides_runpath=yes
14815 hardcode_into_libs=yes
14816 # ldd complains unless libraries are executable
14817 postinstall_cmds='chmod +x $lib'
14820 sunos4*)
14821 version_type=sunos
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath=yes
14826 if test "$with_gnu_ld" = yes; then
14827 need_lib_prefix=no
14829 need_version=yes
14832 sysv4 | sysv4.3*)
14833 version_type=linux
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 case $host_vendor in
14838 sni)
14839 shlibpath_overrides_runpath=no
14840 need_lib_prefix=no
14841 runpath_var=LD_RUN_PATH
14843 siemens)
14844 need_lib_prefix=no
14846 motorola)
14847 need_lib_prefix=no
14848 need_version=no
14849 shlibpath_overrides_runpath=no
14850 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14852 esac
14855 sysv4*MP*)
14856 if test -d /usr/nec ;then
14857 version_type=linux
14858 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14859 soname_spec='$libname${shared_ext}.$major'
14860 shlibpath_var=LD_LIBRARY_PATH
14864 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14865 version_type=freebsd-elf
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=yes
14872 hardcode_into_libs=yes
14873 if test "$with_gnu_ld" = yes; then
14874 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14875 else
14876 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14877 case $host_os in
14878 sco3.2v5*)
14879 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14881 esac
14883 sys_lib_dlsearch_path_spec='/usr/lib'
14886 tpf*)
14887 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14888 version_type=linux
14889 need_lib_prefix=no
14890 need_version=no
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 shlibpath_overrides_runpath=no
14894 hardcode_into_libs=yes
14897 uts4*)
14898 version_type=linux
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900 soname_spec='${libname}${release}${shared_ext}$major'
14901 shlibpath_var=LD_LIBRARY_PATH
14904 # Shared libraries for VwWorks, >= 7 only at this stage
14905 # and (fpic) still incompatible with "large" code models
14906 # in a few configurations. Only for RTP mode in any case,
14907 # and upon explicit request at configure time.
14908 vxworks7*)
14909 dynamic_linker=no
14910 case ${with_multisubdir}-${enable_shared} in
14911 *large*)
14913 *mrtp*-yes)
14914 version_type=linux
14915 need_lib_prefix=no
14916 need_version=no
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 dynamic_linker="$host_os module_loader"
14921 esac
14924 dynamic_linker=no
14926 esac
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14928 $as_echo "$dynamic_linker" >&6; }
14929 test "$dynamic_linker" = no && can_build_shared=no
14931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14932 if test "$GCC" = yes; then
14933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14936 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14937 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14939 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14940 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14981 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14982 hardcode_action_CXX=
14983 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14984 test -n "$runpath_var_CXX" ||
14985 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14987 # We can hardcode non-existent directories.
14988 if test "$hardcode_direct_CXX" != no &&
14989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14990 # have to relink, otherwise we might link with an installed library
14991 # when we should be linking with a yet-to-be-installed one
14992 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14993 test "$hardcode_minus_L_CXX" != no; then
14994 # Linking always hardcodes the temporary library directory.
14995 hardcode_action_CXX=relink
14996 else
14997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14998 hardcode_action_CXX=immediate
15000 else
15001 # We cannot hardcode anything, or else we can only hardcode existing
15002 # directories.
15003 hardcode_action_CXX=unsupported
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15006 $as_echo "$hardcode_action_CXX" >&6; }
15008 if test "$hardcode_action_CXX" = relink ||
15009 test "$inherit_rpath_CXX" = yes; then
15010 # Fast installation is not supported
15011 enable_fast_install=no
15012 elif test "$shlibpath_overrides_runpath" = yes ||
15013 test "$enable_shared" = no; then
15014 # Fast installation is not necessary
15015 enable_fast_install=needless
15024 fi # test -n "$compiler"
15026 CC=$lt_save_CC
15027 LDCXX=$LD
15028 LD=$lt_save_LD
15029 GCC=$lt_save_GCC
15030 with_gnu_ld=$lt_save_with_gnu_ld
15031 lt_cv_path_LDCXX=$lt_cv_path_LD
15032 lt_cv_path_LD=$lt_save_path_LD
15033 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15034 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15035 fi # test "$_lt_caught_CXX_error" != yes
15037 ac_ext=c
15038 ac_cpp='$CPP $CPPFLAGS'
15039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15055 ac_config_commands="$ac_config_commands libtool"
15060 # Only expand once:
15064 # The tests for host and target for $enable_largefile require
15065 # canonical names.
15069 # As the $enable_largefile decision depends on --enable-plugins we must set it
15070 # even in directories otherwise not depending on the $plugins option.
15073 maybe_plugins=no
15074 for ac_header in dlfcn.h
15075 do :
15076 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15078 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15079 cat >>confdefs.h <<_ACEOF
15080 #define HAVE_DLFCN_H 1
15081 _ACEOF
15082 maybe_plugins=yes
15085 done
15087 for ac_header in windows.h
15088 do :
15089 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15091 if test "x$ac_cv_header_windows_h" = xyes; then :
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_WINDOWS_H 1
15094 _ACEOF
15095 maybe_plugins=yes
15098 done
15101 # Check whether --enable-plugins was given.
15102 if test "${enable_plugins+set}" = set; then :
15103 enableval=$enable_plugins; case "${enableval}" in
15104 no) plugins=no ;;
15105 *) plugins=yes
15106 if test "$maybe_plugins" != "yes" ; then
15107 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15108 fi ;;
15109 esac
15110 else
15111 plugins=$maybe_plugins
15115 if test "$plugins" = "yes"; then
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15117 $as_echo_n "checking for library containing dlsym... " >&6; }
15118 if ${ac_cv_search_dlsym+:} false; then :
15119 $as_echo_n "(cached) " >&6
15120 else
15121 ac_func_search_save_LIBS=$LIBS
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15125 /* Override any GCC internal prototype to avoid an error.
15126 Use char because int might match the return type of a GCC
15127 builtin and then its argument prototype would still apply. */
15128 #ifdef __cplusplus
15129 extern "C"
15130 #endif
15131 char dlsym ();
15133 main ()
15135 return dlsym ();
15137 return 0;
15139 _ACEOF
15140 for ac_lib in '' dl; do
15141 if test -z "$ac_lib"; then
15142 ac_res="none required"
15143 else
15144 ac_res=-l$ac_lib
15145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15147 if ac_fn_c_try_link "$LINENO"; then :
15148 ac_cv_search_dlsym=$ac_res
15150 rm -f core conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext
15152 if ${ac_cv_search_dlsym+:} false; then :
15153 break
15155 done
15156 if ${ac_cv_search_dlsym+:} false; then :
15158 else
15159 ac_cv_search_dlsym=no
15161 rm conftest.$ac_ext
15162 LIBS=$ac_func_search_save_LIBS
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15165 $as_echo "$ac_cv_search_dlsym" >&6; }
15166 ac_res=$ac_cv_search_dlsym
15167 if test "$ac_res" != no; then :
15168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15175 case "${host}" in
15176 sparc-*-solaris*|i?86-*-solaris*)
15177 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15178 # were mutually exclusive until Solaris 11.3. Without procfs support,
15179 # the bfd/ elf module cannot provide certain routines such as
15180 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15181 # explicitly requested large-file support through the
15182 # --enable-largefile switch, disable large-file support in favor of
15183 # procfs support.
15185 # Check if <sys/procfs.h> is incompatible with large-file support.
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 #define _FILE_OFFSET_BITS 64
15189 #define _STRUCTURED_PROC 1
15190 #include <sys/procfs.h>
15192 main ()
15196 return 0;
15198 _ACEOF
15199 if ac_fn_c_try_compile "$LINENO"; then :
15200 acx_cv_procfs_lfs=yes
15201 else
15202 acx_cv_procfs_lfs=no
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 # Forcefully disable large-file support only if necessary, gdb is in
15207 # tree and enabled.
15208 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15209 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15210 : ${enable_largefile="no"}
15211 if test "$plugins" = yes; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15213 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15214 $as_echo "$as_me: WARNING:
15215 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15216 plugins=no
15220 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15221 # benefit of g++ 9+ which predefines it on Solaris.
15222 if test "$enable_largefile" = no; then
15223 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15227 esac
15229 # Check whether --enable-largefile was given.
15230 if test "${enable_largefile+set}" = set; then :
15231 enableval=$enable_largefile;
15234 if test "$enable_largefile" != no; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15237 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15238 if ${ac_cv_sys_largefile_CC+:} false; then :
15239 $as_echo_n "(cached) " >&6
15240 else
15241 ac_cv_sys_largefile_CC=no
15242 if test "$GCC" != yes; then
15243 ac_save_CC=$CC
15244 while :; do
15245 # IRIX 6.2 and later do not support large files by default,
15246 # so use the C compiler's -n32 option if that helps.
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15249 #include <sys/types.h>
15250 /* Check that off_t can represent 2**63 - 1 correctly.
15251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15252 since some C++ compilers masquerading as C compilers
15253 incorrectly reject 9223372036854775807. */
15254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15256 && LARGE_OFF_T % 2147483647 == 1)
15257 ? 1 : -1];
15259 main ()
15263 return 0;
15265 _ACEOF
15266 if ac_fn_c_try_compile "$LINENO"; then :
15267 break
15269 rm -f core conftest.err conftest.$ac_objext
15270 CC="$CC -n32"
15271 if ac_fn_c_try_compile "$LINENO"; then :
15272 ac_cv_sys_largefile_CC=' -n32'; break
15274 rm -f core conftest.err conftest.$ac_objext
15275 break
15276 done
15277 CC=$ac_save_CC
15278 rm -f conftest.$ac_ext
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15282 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15283 if test "$ac_cv_sys_largefile_CC" != no; then
15284 CC=$CC$ac_cv_sys_largefile_CC
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15288 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15289 if ${ac_cv_sys_file_offset_bits+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 while :; do
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295 #include <sys/types.h>
15296 /* Check that off_t can represent 2**63 - 1 correctly.
15297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15298 since some C++ compilers masquerading as C compilers
15299 incorrectly reject 9223372036854775807. */
15300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15302 && LARGE_OFF_T % 2147483647 == 1)
15303 ? 1 : -1];
15305 main ()
15309 return 0;
15311 _ACEOF
15312 if ac_fn_c_try_compile "$LINENO"; then :
15313 ac_cv_sys_file_offset_bits=no; break
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 #define _FILE_OFFSET_BITS 64
15319 #include <sys/types.h>
15320 /* Check that off_t can represent 2**63 - 1 correctly.
15321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15322 since some C++ compilers masquerading as C compilers
15323 incorrectly reject 9223372036854775807. */
15324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15326 && LARGE_OFF_T % 2147483647 == 1)
15327 ? 1 : -1];
15329 main ()
15333 return 0;
15335 _ACEOF
15336 if ac_fn_c_try_compile "$LINENO"; then :
15337 ac_cv_sys_file_offset_bits=64; break
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 ac_cv_sys_file_offset_bits=unknown
15341 break
15342 done
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15345 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15346 case $ac_cv_sys_file_offset_bits in #(
15347 no | unknown) ;;
15349 cat >>confdefs.h <<_ACEOF
15350 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15351 _ACEOF
15353 esac
15354 rm -rf conftest*
15355 if test $ac_cv_sys_file_offset_bits = unknown; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15357 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15358 if ${ac_cv_sys_large_files+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 while :; do
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364 #include <sys/types.h>
15365 /* Check that off_t can represent 2**63 - 1 correctly.
15366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15367 since some C++ compilers masquerading as C compilers
15368 incorrectly reject 9223372036854775807. */
15369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15371 && LARGE_OFF_T % 2147483647 == 1)
15372 ? 1 : -1];
15374 main ()
15378 return 0;
15380 _ACEOF
15381 if ac_fn_c_try_compile "$LINENO"; then :
15382 ac_cv_sys_large_files=no; break
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387 #define _LARGE_FILES 1
15388 #include <sys/types.h>
15389 /* Check that off_t can represent 2**63 - 1 correctly.
15390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15391 since some C++ compilers masquerading as C compilers
15392 incorrectly reject 9223372036854775807. */
15393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15395 && LARGE_OFF_T % 2147483647 == 1)
15396 ? 1 : -1];
15398 main ()
15402 return 0;
15404 _ACEOF
15405 if ac_fn_c_try_compile "$LINENO"; then :
15406 ac_cv_sys_large_files=1; break
15408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409 ac_cv_sys_large_files=unknown
15410 break
15411 done
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15414 $as_echo "$ac_cv_sys_large_files" >&6; }
15415 case $ac_cv_sys_large_files in #(
15416 no | unknown) ;;
15418 cat >>confdefs.h <<_ACEOF
15419 #define _LARGE_FILES $ac_cv_sys_large_files
15420 _ACEOF
15422 esac
15423 rm -rf conftest*
15431 ac_checking=
15432 . ${srcdir}/../bfd/development.sh
15433 test "$development" = true && ac_checking=yes
15434 # Check whether --enable-checking was given.
15435 if test "${enable_checking+set}" = set; then :
15436 enableval=$enable_checking; case "${enableval}" in
15437 no|none) ac_checking= ;;
15438 *) ac_checking=yes ;;
15439 esac
15441 if test x$ac_checking != x ; then
15443 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15448 # Check whether --with-lib-path was given.
15449 if test "${with_lib_path+set}" = set; then :
15450 withval=$with_lib_path; LIB_PATH=$withval
15453 # Check whether --enable-targets was given.
15454 if test "${enable_targets+set}" = set; then :
15455 enableval=$enable_targets; case "${enableval}" in
15456 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15458 no) enable_targets= ;;
15459 *) enable_targets=$enableval ;;
15460 esac
15463 # Check whether --enable-64-bit-bfd was given.
15464 if test "${enable_64_bit_bfd+set}" = set; then :
15465 enableval=$enable_64_bit_bfd; case $enableval in #(
15466 yes|no) :
15467 ;; #(
15468 *) :
15469 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15470 *) :
15472 esac
15473 else
15474 enable_64_bit_bfd=no
15478 if test "x$enable_64_bit_bfd" = "xno"; then :
15479 # The cast to long int works around a bug in the HP C Compiler
15480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15482 # This bug is HP SR number 8606223364.
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15484 $as_echo_n "checking size of void *... " >&6; }
15485 if ${ac_cv_sizeof_void_p+:} false; then :
15486 $as_echo_n "(cached) " >&6
15487 else
15488 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15490 else
15491 if test "$ac_cv_type_void_p" = yes; then
15492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15494 as_fn_error 77 "cannot compute sizeof (void *)
15495 See \`config.log' for more details" "$LINENO" 5; }
15496 else
15497 ac_cv_sizeof_void_p=0
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15503 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15507 cat >>confdefs.h <<_ACEOF
15508 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15509 _ACEOF
15512 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15513 enable_64_bit_bfd=yes
15518 if test "x$enable_64_bit_bfd" = "xyes"; then
15519 ENABLE_BFD_64_BIT_TRUE=
15520 ENABLE_BFD_64_BIT_FALSE='#'
15521 else
15522 ENABLE_BFD_64_BIT_TRUE='#'
15523 ENABLE_BFD_64_BIT_FALSE=
15529 # Check whether --with-sysroot was given.
15530 if test "${with_sysroot+set}" = set; then :
15531 withval=$with_sysroot;
15532 case ${with_sysroot} in
15533 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15534 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15535 esac
15537 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15538 use_sysroot=yes
15540 if test "x$prefix" = xNONE; then
15541 test_prefix=/usr/local
15542 else
15543 test_prefix=$prefix
15545 if test "x$exec_prefix" = xNONE; then
15546 test_exec_prefix=$test_prefix
15547 else
15548 test_exec_prefix=$exec_prefix
15550 case ${TARGET_SYSTEM_ROOT} in
15551 "${test_prefix}"|"${test_prefix}/"*|\
15552 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15553 '${prefix}'|'${prefix}/'*|\
15554 '${exec_prefix}'|'${exec_prefix}/'*)
15555 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15556 TARGET_SYSTEM_ROOT_DEFINE="$t"
15558 esac
15560 else
15562 use_sysroot=no
15563 TARGET_SYSTEM_ROOT=
15564 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15572 # Check whether --enable-gold was given.
15573 if test "${enable_gold+set}" = set; then :
15574 enableval=$enable_gold; case "${enableval}" in
15575 default)
15576 install_as_default=no
15577 installed_linker=ld.bfd
15579 yes|no)
15580 install_as_default=yes
15581 installed_linker=ld.bfd
15584 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15586 esac
15587 else
15588 install_as_default=yes
15589 installed_linker=ld.bfd
15595 # Check whether --enable-got was given.
15596 if test "${enable_got+set}" = set; then :
15597 enableval=$enable_got; case "${enableval}" in
15598 target | single | negative | multigot) got_handling=$enableval ;;
15599 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15600 esac
15601 else
15602 got_handling=target
15606 case "${got_handling}" in
15607 target)
15609 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15611 single)
15613 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15615 negative)
15617 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15619 multigot)
15621 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15623 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15624 esac
15626 # PR gas/19109
15627 # Decide the default method for compressing debug sections.
15628 ac_default_compressed_debug_sections=unset
15629 # Provide a configure time option to override our default.
15630 # Check whether --enable-compressed_debug_sections was given.
15631 if test "${enable_compressed_debug_sections+set}" = set; then :
15632 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15633 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15634 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15635 esac
15638 # Select default compression algorithm.
15639 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15640 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15641 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15642 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15643 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15644 esac
15647 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15648 ac_default_new_dtags=unset
15649 # Provide a configure time option to override our default.
15650 # Check whether --enable-new_dtags was given.
15651 if test "${enable_new_dtags+set}" = set; then :
15652 enableval=$enable_new_dtags; case "${enableval}" in
15653 yes) ac_default_new_dtags=1 ;;
15654 no) ac_default_new_dtags=0 ;;
15655 esac
15658 # Decide if -z relro should be enabled in ELF linker by default.
15659 ac_default_ld_z_relro=unset
15660 # Provide a configure time option to override our default.
15661 # Check whether --enable-relro was given.
15662 if test "${enable_relro+set}" = set; then :
15663 enableval=$enable_relro; case "${enableval}" in
15664 yes) ac_default_ld_z_relro=1 ;;
15665 no) ac_default_ld_z_relro=0 ;;
15666 esac
15669 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15670 ac_default_ld_textrel_check=unset
15671 # Check whether --enable-textrel-check was given.
15672 if test "${enable_textrel_check+set}" = set; then :
15673 enableval=$enable_textrel_check; case "${enableval}" in
15674 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15675 esac
15679 # Decide if -z separate-code should be enabled in ELF linker by default.
15680 ac_default_ld_z_separate_code=unset
15681 # Check whether --enable-separate-code was given.
15682 if test "${enable_separate_code+set}" = set; then :
15683 enableval=$enable_separate_code; case "${enableval}" in
15684 yes) ac_default_ld_z_separate_code=1 ;;
15685 no) ac_default_ld_z_separate_code=0 ;;
15686 esac
15690 # Decide if --rosegment should be enabled in the ELF linker by default.
15691 ac_default_ld_rosegment=unset
15692 # Check whether --enable-rosegment was given.
15693 if test "${enable_rosegment+set}" = set; then :
15694 enableval=$enable_rosegment; case "${enableval}" in
15695 yes) ac_default_ld_rosegment=1 ;;
15696 no) ac_default_ld_rosegment=0 ;;
15697 esac
15701 # Decide if -z mark-plt should be enabled in ELF x86-64 linker by default.
15702 ac_default_ld_z_mark_plt=unset
15703 # Check whether --enable-mark-plt was given.
15704 if test "${enable_mark_plt+set}" = set; then :
15705 enableval=$enable_mark_plt; case "${enableval}" in
15706 yes) ac_default_ld_z_mark_plt=1 ;;
15707 no) ac_default_ld_z_mark_plt=0 ;;
15708 esac
15713 # By default warn when an executable stack is created due to object files
15714 # requesting such, not when the user specifies -z execstack.
15715 ac_default_ld_warn_execstack=2
15716 # Check whether --enable-warn-execstack was given.
15717 if test "${enable_warn_execstack+set}" = set; then :
15718 enableval=$enable_warn_execstack; case "${enableval}" in
15719 yes) ac_default_ld_warn_execstack=1 ;;
15720 no) ac_default_ld_warn_execstack=0 ;;
15721 esac
15725 ac_default_ld_error_execstack=0
15726 # Check whether --enable-error-execstack was given.
15727 if test "${enable_error_execstack+set}" = set; then :
15728 enableval=$enable_error_execstack; case "${enableval}" in
15729 yes) ac_default_ld_error_execstack=1 ;;
15730 no) ac_default_ld_error_execstack=0 ;;
15731 esac
15735 ac_default_ld_warn_rwx_segments=unset
15736 # Check whether --enable-warn-rwx-segments was given.
15737 if test "${enable_warn_rwx_segments+set}" = set; then :
15738 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15739 yes) ac_default_ld_warn_rwx_segments=1 ;;
15740 no) ac_default_ld_warn_rwx_segments=0 ;;
15741 esac
15745 ac_default_ld_error_rwx_segments=0
15746 # Check whether --enable-error-rwx-segments was given.
15747 if test "${enable_error_rwx_segments+set}" = set; then :
15748 enableval=$enable_error_rwx_segments; case "${enableval}" in
15749 yes) ac_default_ld_error_rwx_segments=1 ;;
15750 no) ac_default_ld_error_rwx_segments=0 ;;
15751 esac
15755 ac_default_ld_default_execstack=unset
15756 # Check whether --enable-default-execstack was given.
15757 if test "${enable_default_execstack+set}" = set; then :
15758 enableval=$enable_default_execstack; case "${enableval}" in
15759 yes) ac_default_ld_default_execstack=1 ;;
15760 no) ac_default_ld_default_execstack=0 ;;
15761 esac
15766 # Decide if --error-handling-script should be supported.
15767 ac_support_error_handling_script=unset
15768 # Check whether --enable-error-handling-script was given.
15769 if test "${enable_error_handling_script+set}" = set; then :
15770 enableval=$enable_error_handling_script; case "${enableval}" in
15771 yes) ac_support_error_handling_script=1 ;;
15772 no) ac_support_error_handling_script=0 ;;
15773 esac
15777 # Decide which "--hash-style" to use by default
15778 # Provide a configure time option to override our default.
15779 # Check whether --enable-default-hash-style was given.
15780 if test "${enable_default_hash_style+set}" = set; then :
15781 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15782 sysv | gnu | both) ;;
15783 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15784 esac
15785 else
15786 case "${target}" in
15787 # Enable gnu hash only on GNU targets, but not mips
15788 mips*-*-*) enable_default_hash_style=sysv ;;
15789 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15790 *) enable_default_hash_style=sysv ;;
15791 esac
15795 case "${enable_default_hash_style}" in
15796 sysv | both) ac_default_emit_sysv_hash=1 ;;
15797 *) ac_default_emit_sysv_hash=0 ;;
15798 esac
15800 case "${enable_default_hash_style}" in
15801 gnu | both) ac_default_emit_gnu_hash=1 ;;
15802 *) ac_default_emit_gnu_hash=0 ;;
15803 esac
15805 # Check whether --enable-initfini-array was given.
15806 if test "${enable_initfini_array+set}" = set; then :
15807 enableval=$enable_initfini_array; case "${enableval}" in
15808 yes|no) ;;
15809 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15810 esac
15811 else
15812 enable_initfini_array=yes
15816 if test $enable_initfini_array = yes; then
15818 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15822 # Check whether --enable-libctf was given.
15823 if test "${enable_libctf+set}" = set; then :
15824 enableval=$enable_libctf;
15825 case "$enableval" in
15826 yes|no) ;;
15827 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15828 esac
15830 else
15831 enable_libctf=yes
15835 if test "${enable_libctf}" = yes; then
15837 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15840 if test "${enable_libctf}" = yes; then
15841 ENABLE_LIBCTF_TRUE=
15842 ENABLE_LIBCTF_FALSE='#'
15843 else
15844 ENABLE_LIBCTF_TRUE='#'
15845 ENABLE_LIBCTF_FALSE=
15850 # Used to validate --package-metadata= input. Disabled by default.
15851 # Check whether --enable-jansson was given.
15852 if test "${enable_jansson+set}" = set; then :
15853 enableval=$enable_jansson; enable_jansson=$enableval
15854 else
15855 enable_jansson="no"
15859 if test "x$enable_jansson" != "xno"; then :
15861 pkg_failed=no
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15863 $as_echo_n "checking for jansson... " >&6; }
15865 if test -n "$JANSSON_CFLAGS"; then
15866 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15867 elif test -n "$PKG_CONFIG"; then
15868 if test -n "$PKG_CONFIG" && \
15869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15870 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15871 ac_status=$?
15872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15873 test $ac_status = 0; }; then
15874 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15875 test "x$?" != "x0" && pkg_failed=yes
15876 else
15877 pkg_failed=yes
15879 else
15880 pkg_failed=untried
15882 if test -n "$JANSSON_LIBS"; then
15883 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15884 elif test -n "$PKG_CONFIG"; then
15885 if test -n "$PKG_CONFIG" && \
15886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15887 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15888 ac_status=$?
15889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15890 test $ac_status = 0; }; then
15891 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15892 test "x$?" != "x0" && pkg_failed=yes
15893 else
15894 pkg_failed=yes
15896 else
15897 pkg_failed=untried
15900 if test $pkg_failed = no; then
15901 pkg_save_LDFLAGS="$LDFLAGS"
15902 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15907 main ()
15911 return 0;
15913 _ACEOF
15914 if ac_fn_c_try_link "$LINENO"; then :
15916 else
15917 pkg_failed=yes
15919 rm -f core conftest.err conftest.$ac_objext \
15920 conftest$ac_exeext conftest.$ac_ext
15921 LDFLAGS=$pkg_save_LDFLAGS
15926 if test $pkg_failed = yes; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15928 $as_echo "no" >&6; }
15930 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15931 _pkg_short_errors_supported=yes
15932 else
15933 _pkg_short_errors_supported=no
15935 if test $_pkg_short_errors_supported = yes; then
15936 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15937 else
15938 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15940 # Put the nasty error message in config.log where it belongs
15941 echo "$JANSSON_PKG_ERRORS" >&5
15943 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15944 elif test $pkg_failed = untried; then
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15947 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15948 else
15949 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15950 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15952 $as_echo "yes" >&6; }
15955 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15965 # Set the 'development' global.
15966 . $srcdir/../bfd/development.sh
15968 # Set acp_cpp_for_build variable
15969 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15971 # Default set of GCC warnings to enable.
15972 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15973 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15975 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15978 __GNUC__
15979 _ACEOF
15980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15981 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15983 else
15984 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15986 rm -f conftest*
15989 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991 /* end confdefs.h. */
15992 __GNUC__
15993 _ACEOF
15994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15995 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15997 else
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 __clang__
16001 _ACEOF
16002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16003 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16004 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
16006 rm -f conftest*
16009 rm -f conftest*
16012 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
16013 WARN_WRITE_STRINGS=""
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16016 __GNUC__
16017 _ACEOF
16018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16019 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16021 else
16022 WARN_WRITE_STRINGS="-Wwrite-strings"
16024 rm -f conftest*
16027 # Verify CC_FOR_BUILD to be compatible with warning flags
16029 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032 __GNUC__
16033 _ACEOF
16034 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16035 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16037 else
16038 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16040 rm -f conftest*
16043 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16046 __GNUC__
16047 _ACEOF
16048 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16049 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16051 else
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16054 __clang__
16055 _ACEOF
16056 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16057 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16058 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16060 rm -f conftest*
16063 rm -f conftest*
16066 # Check whether --enable-werror was given.
16067 if test "${enable_werror+set}" = set; then :
16068 enableval=$enable_werror; case "${enableval}" in
16069 yes | y) ERROR_ON_WARNING="yes" ;;
16070 no | n) ERROR_ON_WARNING="no" ;;
16071 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16072 esac
16076 # Disable -Wformat by default when using gcc on mingw
16077 case "${host}" in
16078 *-*-mingw32*)
16079 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16080 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
16081 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16084 *) ;;
16085 esac
16087 # Enable -Werror by default when using gcc. Turn it off for releases.
16088 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16089 ERROR_ON_WARNING=yes
16092 NO_WERROR=
16093 if test "${ERROR_ON_WARNING}" = yes ; then
16094 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
16095 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16096 NO_WERROR="-Wno-error"
16099 if test "${GCC}" = yes ; then
16100 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16101 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
16104 # Check whether --enable-build-warnings was given.
16105 if test "${enable_build_warnings+set}" = set; then :
16106 enableval=$enable_build_warnings; case "${enableval}" in
16107 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16108 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16109 no) if test "${GCC}" = yes ; then
16110 WARN_CFLAGS="-w"
16111 WARN_CFLAGS_FOR_BUILD="-w"
16112 fi;;
16113 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16114 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16115 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16116 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16117 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16118 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16119 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16120 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16121 esac
16125 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16126 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16137 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16138 if ${am_cv_val_LC_MESSAGES+:} false; then :
16139 $as_echo_n "(cached) " >&6
16140 else
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143 #include <locale.h>
16145 main ()
16147 return LC_MESSAGES
16149 return 0;
16151 _ACEOF
16152 if ac_fn_c_try_link "$LINENO"; then :
16153 am_cv_val_LC_MESSAGES=yes
16154 else
16155 am_cv_val_LC_MESSAGES=no
16157 rm -f core conftest.err conftest.$ac_objext \
16158 conftest$ac_exeext conftest.$ac_ext
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16161 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16162 if test $am_cv_val_LC_MESSAGES = yes; then
16164 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16169 ac_config_headers="$ac_config_headers config.h:config.in"
16172 # PR 14072
16175 if test -z "$target" ; then
16176 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16178 if test -z "$host" ; then
16179 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16182 # host-specific stuff:
16184 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16186 MKINSTALLDIRS=
16187 if test -n "$ac_aux_dir"; then
16188 case "$ac_aux_dir" in
16189 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16190 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16191 esac
16193 if test -z "$MKINSTALLDIRS"; then
16194 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16200 $as_echo_n "checking whether NLS is requested... " >&6; }
16201 # Check whether --enable-nls was given.
16202 if test "${enable_nls+set}" = set; then :
16203 enableval=$enable_nls; USE_NLS=$enableval
16204 else
16205 USE_NLS=yes
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16209 $as_echo "$USE_NLS" >&6; }
16216 # Prepare PATH_SEPARATOR.
16217 # The user is always right.
16218 if test "${PATH_SEPARATOR+set}" != set; then
16219 echo "#! /bin/sh" >conf$$.sh
16220 echo "exit 0" >>conf$$.sh
16221 chmod +x conf$$.sh
16222 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16223 PATH_SEPARATOR=';'
16224 else
16225 PATH_SEPARATOR=:
16227 rm -f conf$$.sh
16230 # Find out how to test for executable files. Don't use a zero-byte file,
16231 # as systems may use methods other than mode bits to determine executability.
16232 cat >conf$$.file <<_ASEOF
16233 #! /bin/sh
16234 exit 0
16235 _ASEOF
16236 chmod +x conf$$.file
16237 if test -x conf$$.file >/dev/null 2>&1; then
16238 ac_executable_p="test -x"
16239 else
16240 ac_executable_p="test -f"
16242 rm -f conf$$.file
16244 # Extract the first word of "msgfmt", so it can be a program name with args.
16245 set dummy msgfmt; ac_word=$2
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16247 $as_echo_n "checking for $ac_word... " >&6; }
16248 if ${ac_cv_path_MSGFMT+:} false; then :
16249 $as_echo_n "(cached) " >&6
16250 else
16251 case "$MSGFMT" in
16252 [\\/]* | ?:[\\/]*)
16253 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16256 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16257 for ac_dir in $PATH; do
16258 IFS="$ac_save_IFS"
16259 test -z "$ac_dir" && ac_dir=.
16260 for ac_exec_ext in '' $ac_executable_extensions; do
16261 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16262 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16263 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16264 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16265 break 2
16268 done
16269 done
16270 IFS="$ac_save_IFS"
16271 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16273 esac
16275 MSGFMT="$ac_cv_path_MSGFMT"
16276 if test "$MSGFMT" != ":"; then
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16278 $as_echo "$MSGFMT" >&6; }
16279 else
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281 $as_echo "no" >&6; }
16284 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16285 set dummy gmsgfmt; ac_word=$2
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16287 $as_echo_n "checking for $ac_word... " >&6; }
16288 if ${ac_cv_path_GMSGFMT+:} false; then :
16289 $as_echo_n "(cached) " >&6
16290 else
16291 case $GMSGFMT in
16292 [\\/]* | ?:[\\/]*)
16293 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16297 for as_dir in $PATH
16299 IFS=$as_save_IFS
16300 test -z "$as_dir" && as_dir=.
16301 for ac_exec_ext in '' $ac_executable_extensions; do
16302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16303 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16305 break 2
16307 done
16308 done
16309 IFS=$as_save_IFS
16311 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16313 esac
16315 GMSGFMT=$ac_cv_path_GMSGFMT
16316 if test -n "$GMSGFMT"; then
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16318 $as_echo "$GMSGFMT" >&6; }
16319 else
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321 $as_echo "no" >&6; }
16327 # Prepare PATH_SEPARATOR.
16328 # The user is always right.
16329 if test "${PATH_SEPARATOR+set}" != set; then
16330 echo "#! /bin/sh" >conf$$.sh
16331 echo "exit 0" >>conf$$.sh
16332 chmod +x conf$$.sh
16333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16334 PATH_SEPARATOR=';'
16335 else
16336 PATH_SEPARATOR=:
16338 rm -f conf$$.sh
16341 # Find out how to test for executable files. Don't use a zero-byte file,
16342 # as systems may use methods other than mode bits to determine executability.
16343 cat >conf$$.file <<_ASEOF
16344 #! /bin/sh
16345 exit 0
16346 _ASEOF
16347 chmod +x conf$$.file
16348 if test -x conf$$.file >/dev/null 2>&1; then
16349 ac_executable_p="test -x"
16350 else
16351 ac_executable_p="test -f"
16353 rm -f conf$$.file
16355 # Extract the first word of "xgettext", so it can be a program name with args.
16356 set dummy xgettext; ac_word=$2
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16358 $as_echo_n "checking for $ac_word... " >&6; }
16359 if ${ac_cv_path_XGETTEXT+:} false; then :
16360 $as_echo_n "(cached) " >&6
16361 else
16362 case "$XGETTEXT" in
16363 [\\/]* | ?:[\\/]*)
16364 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16367 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16368 for ac_dir in $PATH; do
16369 IFS="$ac_save_IFS"
16370 test -z "$ac_dir" && ac_dir=.
16371 for ac_exec_ext in '' $ac_executable_extensions; do
16372 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16373 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16374 (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
16375 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16376 break 2
16379 done
16380 done
16381 IFS="$ac_save_IFS"
16382 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16384 esac
16386 XGETTEXT="$ac_cv_path_XGETTEXT"
16387 if test "$XGETTEXT" != ":"; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16389 $as_echo "$XGETTEXT" >&6; }
16390 else
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16392 $as_echo "no" >&6; }
16395 rm -f messages.po
16398 # Prepare PATH_SEPARATOR.
16399 # The user is always right.
16400 if test "${PATH_SEPARATOR+set}" != set; then
16401 echo "#! /bin/sh" >conf$$.sh
16402 echo "exit 0" >>conf$$.sh
16403 chmod +x conf$$.sh
16404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16405 PATH_SEPARATOR=';'
16406 else
16407 PATH_SEPARATOR=:
16409 rm -f conf$$.sh
16412 # Find out how to test for executable files. Don't use a zero-byte file,
16413 # as systems may use methods other than mode bits to determine executability.
16414 cat >conf$$.file <<_ASEOF
16415 #! /bin/sh
16416 exit 0
16417 _ASEOF
16418 chmod +x conf$$.file
16419 if test -x conf$$.file >/dev/null 2>&1; then
16420 ac_executable_p="test -x"
16421 else
16422 ac_executable_p="test -f"
16424 rm -f conf$$.file
16426 # Extract the first word of "msgmerge", so it can be a program name with args.
16427 set dummy msgmerge; ac_word=$2
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16429 $as_echo_n "checking for $ac_word... " >&6; }
16430 if ${ac_cv_path_MSGMERGE+:} false; then :
16431 $as_echo_n "(cached) " >&6
16432 else
16433 case "$MSGMERGE" in
16434 [\\/]* | ?:[\\/]*)
16435 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16438 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16439 for ac_dir in $PATH; do
16440 IFS="$ac_save_IFS"
16441 test -z "$ac_dir" && ac_dir=.
16442 for ac_exec_ext in '' $ac_executable_extensions; do
16443 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16444 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16445 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16446 break 2
16449 done
16450 done
16451 IFS="$ac_save_IFS"
16452 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16454 esac
16456 MSGMERGE="$ac_cv_path_MSGMERGE"
16457 if test "$MSGMERGE" != ":"; then
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16459 $as_echo "$MSGMERGE" >&6; }
16460 else
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462 $as_echo "no" >&6; }
16466 if test "$GMSGFMT" != ":"; then
16467 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16468 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16470 else
16471 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16473 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16474 GMSGFMT=":"
16478 if test "$XGETTEXT" != ":"; then
16479 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16480 (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
16482 else
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16484 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16485 XGETTEXT=":"
16487 rm -f messages.po
16490 ac_config_commands="$ac_config_commands default-1"
16494 if test "X$prefix" = "XNONE"; then
16495 acl_final_prefix="$ac_default_prefix"
16496 else
16497 acl_final_prefix="$prefix"
16499 if test "X$exec_prefix" = "XNONE"; then
16500 acl_final_exec_prefix='${prefix}'
16501 else
16502 acl_final_exec_prefix="$exec_prefix"
16504 acl_save_prefix="$prefix"
16505 prefix="$acl_final_prefix"
16506 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16507 prefix="$acl_save_prefix"
16510 # Check whether --with-gnu-ld was given.
16511 if test "${with_gnu_ld+set}" = set; then :
16512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16513 else
16514 with_gnu_ld=no
16517 # Prepare PATH_SEPARATOR.
16518 # The user is always right.
16519 if test "${PATH_SEPARATOR+set}" != set; then
16520 echo "#! /bin/sh" >conf$$.sh
16521 echo "exit 0" >>conf$$.sh
16522 chmod +x conf$$.sh
16523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16524 PATH_SEPARATOR=';'
16525 else
16526 PATH_SEPARATOR=:
16528 rm -f conf$$.sh
16530 ac_prog=ld
16531 if test "$GCC" = yes; then
16532 # Check if gcc -print-prog-name=ld gives a path.
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16534 $as_echo_n "checking for ld used by GCC... " >&6; }
16535 case $host in
16536 *-*-mingw*)
16537 # gcc leaves a trailing carriage return which upsets mingw
16538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16541 esac
16542 case $ac_prog in
16543 # Accept absolute paths.
16544 [\\/]* | [A-Za-z]:[\\/]*)
16545 re_direlt='/[^/][^/]*/\.\./'
16546 # Canonicalize the path of ld
16547 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16548 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16549 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16550 done
16551 test -z "$LD" && LD="$ac_prog"
16554 # If it fails, then pretend we aren't using GCC.
16555 ac_prog=ld
16558 # If it is relative, then search for the first ld in PATH.
16559 with_gnu_ld=unknown
16561 esac
16562 elif test "$with_gnu_ld" = yes; then
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16564 $as_echo_n "checking for GNU ld... " >&6; }
16565 else
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16567 $as_echo_n "checking for non-GNU ld... " >&6; }
16569 if ${acl_cv_path_LD+:} false; then :
16570 $as_echo_n "(cached) " >&6
16571 else
16572 if test -z "$LD"; then
16573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16574 for ac_dir in $PATH; do
16575 test -z "$ac_dir" && ac_dir=.
16576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16577 acl_cv_path_LD="$ac_dir/$ac_prog"
16578 # Check to see if the program is GNU ld. I'd rather use --version,
16579 # but apparently some GNU ld's only accept -v.
16580 # Break only if it was the GNU/non-GNU ld that we prefer.
16581 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
16582 test "$with_gnu_ld" != no && break
16583 else
16584 test "$with_gnu_ld" != yes && break
16587 done
16588 IFS="$ac_save_ifs"
16589 else
16590 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16594 LD="$acl_cv_path_LD"
16595 if test -n "$LD"; then
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16597 $as_echo "$LD" >&6; }
16598 else
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16600 $as_echo "no" >&6; }
16602 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16604 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16605 if ${acl_cv_prog_gnu_ld+:} false; then :
16606 $as_echo_n "(cached) " >&6
16607 else
16608 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16609 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
16610 acl_cv_prog_gnu_ld=yes
16611 else
16612 acl_cv_prog_gnu_ld=no
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16616 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16617 with_gnu_ld=$acl_cv_prog_gnu_ld
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16622 $as_echo_n "checking for shared library run path origin... " >&6; }
16623 if ${acl_cv_rpath+:} false; then :
16624 $as_echo_n "(cached) " >&6
16625 else
16627 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16628 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16629 . ./conftest.sh
16630 rm -f ./conftest.sh
16631 acl_cv_rpath=done
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16635 $as_echo "$acl_cv_rpath" >&6; }
16636 wl="$acl_cv_wl"
16637 libext="$acl_cv_libext"
16638 shlibext="$acl_cv_shlibext"
16639 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16640 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16641 hardcode_direct="$acl_cv_hardcode_direct"
16642 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16643 # Check whether --enable-rpath was given.
16644 if test "${enable_rpath+set}" = set; then :
16645 enableval=$enable_rpath; :
16646 else
16647 enable_rpath=yes
16657 use_additional=yes
16659 acl_save_prefix="$prefix"
16660 prefix="$acl_final_prefix"
16661 acl_save_exec_prefix="$exec_prefix"
16662 exec_prefix="$acl_final_exec_prefix"
16664 eval additional_includedir=\"$includedir\"
16665 eval additional_libdir=\"$libdir\"
16667 exec_prefix="$acl_save_exec_prefix"
16668 prefix="$acl_save_prefix"
16671 # Check whether --with-libiconv-prefix was given.
16672 if test "${with_libiconv_prefix+set}" = set; then :
16673 withval=$with_libiconv_prefix;
16674 if test "X$withval" = "Xno"; then
16675 use_additional=no
16676 else
16677 if test "X$withval" = "X"; then
16679 acl_save_prefix="$prefix"
16680 prefix="$acl_final_prefix"
16681 acl_save_exec_prefix="$exec_prefix"
16682 exec_prefix="$acl_final_exec_prefix"
16684 eval additional_includedir=\"$includedir\"
16685 eval additional_libdir=\"$libdir\"
16687 exec_prefix="$acl_save_exec_prefix"
16688 prefix="$acl_save_prefix"
16690 else
16691 additional_includedir="$withval/include"
16692 additional_libdir="$withval/lib"
16699 # Check whether --with-libiconv-type was given.
16700 if test "${with_libiconv_type+set}" = set; then :
16701 withval=$with_libiconv_type; with_libiconv_type=$withval
16702 else
16703 with_libiconv_type=auto
16706 lib_type=`eval echo \$with_libiconv_type`
16708 LIBICONV=
16709 LTLIBICONV=
16710 INCICONV=
16711 rpathdirs=
16712 ltrpathdirs=
16713 names_already_handled=
16714 names_next_round='iconv '
16715 while test -n "$names_next_round"; do
16716 names_this_round="$names_next_round"
16717 names_next_round=
16718 for name in $names_this_round; do
16719 already_handled=
16720 for n in $names_already_handled; do
16721 if test "$n" = "$name"; then
16722 already_handled=yes
16723 break
16725 done
16726 if test -z "$already_handled"; then
16727 names_already_handled="$names_already_handled $name"
16728 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16729 eval value=\"\$HAVE_LIB$uppername\"
16730 if test -n "$value"; then
16731 if test "$value" = yes; then
16732 eval value=\"\$LIB$uppername\"
16733 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16734 eval value=\"\$LTLIB$uppername\"
16735 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16736 else
16739 else
16740 found_dir=
16741 found_la=
16742 found_so=
16743 found_a=
16744 if test $use_additional = yes; then
16745 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16746 found_dir="$additional_libdir"
16747 found_so="$additional_libdir/lib$name.$shlibext"
16748 if test -f "$additional_libdir/lib$name.la"; then
16749 found_la="$additional_libdir/lib$name.la"
16751 elif test x$lib_type != xshared; then
16752 if test -f "$additional_libdir/lib$name.$libext"; then
16753 found_dir="$additional_libdir"
16754 found_a="$additional_libdir/lib$name.$libext"
16755 if test -f "$additional_libdir/lib$name.la"; then
16756 found_la="$additional_libdir/lib$name.la"
16761 if test "X$found_dir" = "X"; then
16762 for x in $LDFLAGS $LTLIBICONV; do
16764 acl_save_prefix="$prefix"
16765 prefix="$acl_final_prefix"
16766 acl_save_exec_prefix="$exec_prefix"
16767 exec_prefix="$acl_final_exec_prefix"
16768 eval x=\"$x\"
16769 exec_prefix="$acl_save_exec_prefix"
16770 prefix="$acl_save_prefix"
16772 case "$x" in
16773 -L*)
16774 dir=`echo "X$x" | sed -e 's/^X-L//'`
16775 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16776 found_dir="$dir"
16777 found_so="$dir/lib$name.$shlibext"
16778 if test -f "$dir/lib$name.la"; then
16779 found_la="$dir/lib$name.la"
16781 elif test x$lib_type != xshared; then
16782 if test -f "$dir/lib$name.$libext"; then
16783 found_dir="$dir"
16784 found_a="$dir/lib$name.$libext"
16785 if test -f "$dir/lib$name.la"; then
16786 found_la="$dir/lib$name.la"
16791 esac
16792 if test "X$found_dir" != "X"; then
16793 break
16795 done
16797 if test "X$found_dir" != "X"; then
16798 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16799 if test "X$found_so" != "X"; then
16800 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16802 else
16803 haveit=
16804 for x in $ltrpathdirs; do
16805 if test "X$x" = "X$found_dir"; then
16806 haveit=yes
16807 break
16809 done
16810 if test -z "$haveit"; then
16811 ltrpathdirs="$ltrpathdirs $found_dir"
16813 if test "$hardcode_direct" = yes; then
16814 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16815 else
16816 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16818 haveit=
16819 for x in $rpathdirs; do
16820 if test "X$x" = "X$found_dir"; then
16821 haveit=yes
16822 break
16824 done
16825 if test -z "$haveit"; then
16826 rpathdirs="$rpathdirs $found_dir"
16828 else
16829 haveit=
16830 for x in $LDFLAGS $LIBICONV; do
16832 acl_save_prefix="$prefix"
16833 prefix="$acl_final_prefix"
16834 acl_save_exec_prefix="$exec_prefix"
16835 exec_prefix="$acl_final_exec_prefix"
16836 eval x=\"$x\"
16837 exec_prefix="$acl_save_exec_prefix"
16838 prefix="$acl_save_prefix"
16840 if test "X$x" = "X-L$found_dir"; then
16841 haveit=yes
16842 break
16844 done
16845 if test -z "$haveit"; then
16846 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16848 if test "$hardcode_minus_L" != no; then
16849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16850 else
16851 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16856 else
16857 if test "X$found_a" != "X"; then
16858 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16859 else
16860 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16863 additional_includedir=
16864 case "$found_dir" in
16865 */lib | */lib/)
16866 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16867 additional_includedir="$basedir/include"
16869 esac
16870 if test "X$additional_includedir" != "X"; then
16871 if test "X$additional_includedir" != "X/usr/include"; then
16872 haveit=
16873 if test "X$additional_includedir" = "X/usr/local/include"; then
16874 if test -n "$GCC"; then
16875 case $host_os in
16876 linux*) haveit=yes;;
16877 esac
16880 if test -z "$haveit"; then
16881 for x in $CPPFLAGS $INCICONV; do
16883 acl_save_prefix="$prefix"
16884 prefix="$acl_final_prefix"
16885 acl_save_exec_prefix="$exec_prefix"
16886 exec_prefix="$acl_final_exec_prefix"
16887 eval x=\"$x\"
16888 exec_prefix="$acl_save_exec_prefix"
16889 prefix="$acl_save_prefix"
16891 if test "X$x" = "X-I$additional_includedir"; then
16892 haveit=yes
16893 break
16895 done
16896 if test -z "$haveit"; then
16897 if test -d "$additional_includedir"; then
16898 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16904 if test -n "$found_la"; then
16905 save_libdir="$libdir"
16906 case "$found_la" in
16907 */* | *\\*) . "$found_la" ;;
16908 *) . "./$found_la" ;;
16909 esac
16910 libdir="$save_libdir"
16911 for dep in $dependency_libs; do
16912 case "$dep" in
16913 -L*)
16914 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16915 if test "X$additional_libdir" != "X/usr/lib"; then
16916 haveit=
16917 if test "X$additional_libdir" = "X/usr/local/lib"; then
16918 if test -n "$GCC"; then
16919 case $host_os in
16920 linux*) haveit=yes;;
16921 esac
16924 if test -z "$haveit"; then
16925 haveit=
16926 for x in $LDFLAGS $LIBICONV; do
16928 acl_save_prefix="$prefix"
16929 prefix="$acl_final_prefix"
16930 acl_save_exec_prefix="$exec_prefix"
16931 exec_prefix="$acl_final_exec_prefix"
16932 eval x=\"$x\"
16933 exec_prefix="$acl_save_exec_prefix"
16934 prefix="$acl_save_prefix"
16936 if test "X$x" = "X-L$additional_libdir"; then
16937 haveit=yes
16938 break
16940 done
16941 if test -z "$haveit"; then
16942 if test -d "$additional_libdir"; then
16943 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16946 haveit=
16947 for x in $LDFLAGS $LTLIBICONV; do
16949 acl_save_prefix="$prefix"
16950 prefix="$acl_final_prefix"
16951 acl_save_exec_prefix="$exec_prefix"
16952 exec_prefix="$acl_final_exec_prefix"
16953 eval x=\"$x\"
16954 exec_prefix="$acl_save_exec_prefix"
16955 prefix="$acl_save_prefix"
16957 if test "X$x" = "X-L$additional_libdir"; then
16958 haveit=yes
16959 break
16961 done
16962 if test -z "$haveit"; then
16963 if test -d "$additional_libdir"; then
16964 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16970 -R*)
16971 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16972 if test "$enable_rpath" != no; then
16973 haveit=
16974 for x in $rpathdirs; do
16975 if test "X$x" = "X$dir"; then
16976 haveit=yes
16977 break
16979 done
16980 if test -z "$haveit"; then
16981 rpathdirs="$rpathdirs $dir"
16983 haveit=
16984 for x in $ltrpathdirs; do
16985 if test "X$x" = "X$dir"; then
16986 haveit=yes
16987 break
16989 done
16990 if test -z "$haveit"; then
16991 ltrpathdirs="$ltrpathdirs $dir"
16995 -l*)
16996 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16998 *.la)
16999 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17002 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17005 esac
17006 done
17008 else
17009 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17010 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17012 else
17013 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
17014 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
17019 done
17020 done
17021 if test "X$rpathdirs" != "X"; then
17022 if test -n "$hardcode_libdir_separator"; then
17023 alldirs=
17024 for found_dir in $rpathdirs; do
17025 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17026 done
17027 acl_save_libdir="$libdir"
17028 libdir="$alldirs"
17029 eval flag=\"$hardcode_libdir_flag_spec\"
17030 libdir="$acl_save_libdir"
17031 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17032 else
17033 for found_dir in $rpathdirs; do
17034 acl_save_libdir="$libdir"
17035 libdir="$found_dir"
17036 eval flag=\"$hardcode_libdir_flag_spec\"
17037 libdir="$acl_save_libdir"
17038 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17039 done
17042 if test "X$ltrpathdirs" != "X"; then
17043 for found_dir in $ltrpathdirs; do
17044 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17045 done
17052 if test -f ../gettext/uninstalled-config.sh; then
17053 relative_builddir='$(top_builddir)/../gettext'
17054 . ../gettext/uninstalled-config.sh
17055 else
17056 # The sister gettext directory doesn't exist and won't collect information on
17057 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17082 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17083 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17084 $as_echo_n "(cached) " >&6
17085 else
17086 gt_save_LIBS="$LIBS"
17087 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 #include <CoreFoundation/CFPreferences.h>
17092 main ()
17094 CFPreferencesCopyAppValue(NULL, NULL)
17096 return 0;
17098 _ACEOF
17099 if ac_fn_c_try_link "$LINENO"; then :
17100 gt_cv_func_CFPreferencesCopyAppValue=yes
17101 else
17102 gt_cv_func_CFPreferencesCopyAppValue=no
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS="$gt_save_LIBS"
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17109 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17110 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17112 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17116 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17117 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17118 $as_echo_n "(cached) " >&6
17119 else
17120 gt_save_LIBS="$LIBS"
17121 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #include <CoreFoundation/CFLocale.h>
17126 main ()
17128 CFLocaleCopyPreferredLanguages();
17130 return 0;
17132 _ACEOF
17133 if ac_fn_c_try_link "$LINENO"; then :
17134 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17135 else
17136 gt_cv_func_CFLocaleCopyPreferredLanguages=no
17138 rm -f core conftest.err conftest.$ac_objext \
17139 conftest$ac_exeext conftest.$ac_ext
17140 LIBS="$gt_save_LIBS"
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17143 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17144 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17146 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17149 INTL_MACOSX_LIBS=
17150 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17151 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17152 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17160 LIBINTL=
17161 LTLIBINTL=
17162 POSUB=
17164 case " $gt_needs " in
17165 *" need-formatstring-macros "*) gt_api_version=3 ;;
17166 *" need-ngettext "*) gt_api_version=2 ;;
17167 *) gt_api_version=1 ;;
17168 esac
17169 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17170 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17172 if test "$USE_NLS" = "yes"; then
17173 gt_use_preinstalled_gnugettext=no
17176 if test $gt_api_version -ge 3; then
17177 gt_revision_test_code='
17178 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17179 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17180 #endif
17181 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17183 else
17184 gt_revision_test_code=
17186 if test $gt_api_version -ge 2; then
17187 gt_expression_test_code=' + * ngettext ("", "", 0)'
17188 else
17189 gt_expression_test_code=
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17193 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17194 if eval \${$gt_func_gnugettext_libc+:} false; then :
17195 $as_echo_n "(cached) " >&6
17196 else
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17200 #include <libintl.h>
17201 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17202 extern int _nl_msg_cat_cntr;
17203 extern int *_nl_domain_bindings;
17204 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17205 #else
17206 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17207 #endif
17208 $gt_revision_test_code
17211 main ()
17214 bindtextdomain ("", "");
17215 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17218 return 0;
17220 _ACEOF
17221 if ac_fn_c_try_link "$LINENO"; then :
17222 eval "$gt_func_gnugettext_libc=yes"
17223 else
17224 eval "$gt_func_gnugettext_libc=no"
17226 rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
17229 eval ac_res=\$$gt_func_gnugettext_libc
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17231 $as_echo "$ac_res" >&6; }
17233 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17239 am_save_CPPFLAGS="$CPPFLAGS"
17241 for element in $INCICONV; do
17242 haveit=
17243 for x in $CPPFLAGS; do
17245 acl_save_prefix="$prefix"
17246 prefix="$acl_final_prefix"
17247 acl_save_exec_prefix="$exec_prefix"
17248 exec_prefix="$acl_final_exec_prefix"
17249 eval x=\"$x\"
17250 exec_prefix="$acl_save_exec_prefix"
17251 prefix="$acl_save_prefix"
17253 if test "X$x" = "X$element"; then
17254 haveit=yes
17255 break
17257 done
17258 if test -z "$haveit"; then
17259 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17261 done
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17265 $as_echo_n "checking for iconv... " >&6; }
17266 if ${am_cv_func_iconv+:} false; then :
17267 $as_echo_n "(cached) " >&6
17268 else
17270 am_cv_func_iconv="no, consider installing GNU libiconv"
17271 am_cv_lib_iconv=no
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17275 #include <stdlib.h>
17276 #include <iconv.h>
17279 main ()
17281 iconv_t cd = iconv_open("","");
17282 iconv(cd,NULL,NULL,NULL,NULL);
17283 iconv_close(cd);
17285 return 0;
17287 _ACEOF
17288 if ac_fn_c_try_link "$LINENO"; then :
17289 am_cv_func_iconv=yes
17291 rm -f core conftest.err conftest.$ac_objext \
17292 conftest$ac_exeext conftest.$ac_ext
17293 if test "$am_cv_func_iconv" != yes; then
17294 am_save_LIBS="$LIBS"
17295 LIBS="$LIBS $LIBICONV"
17296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297 /* end confdefs.h. */
17299 #include <stdlib.h>
17300 #include <iconv.h>
17303 main ()
17305 iconv_t cd = iconv_open("","");
17306 iconv(cd,NULL,NULL,NULL,NULL);
17307 iconv_close(cd);
17309 return 0;
17311 _ACEOF
17312 if ac_fn_c_try_link "$LINENO"; then :
17313 am_cv_lib_iconv=yes
17314 am_cv_func_iconv=yes
17316 rm -f core conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
17318 LIBS="$am_save_LIBS"
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17323 $as_echo "$am_cv_func_iconv" >&6; }
17324 if test "$am_cv_func_iconv" = yes; then
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17326 $as_echo_n "checking for working iconv... " >&6; }
17327 if ${am_cv_func_iconv_works+:} false; then :
17328 $as_echo_n "(cached) " >&6
17329 else
17331 am_save_LIBS="$LIBS"
17332 if test $am_cv_lib_iconv = yes; then
17333 LIBS="$LIBS $LIBICONV"
17335 am_cv_func_iconv_works=no
17336 for ac_iconv_const in '' 'const'; do
17337 if test "$cross_compiling" = yes; then :
17338 case "$host_os" in
17339 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17340 *) am_cv_func_iconv_works="guessing yes" ;;
17341 esac
17342 else
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17346 #include <iconv.h>
17347 #include <string.h>
17349 #ifndef ICONV_CONST
17350 # define ICONV_CONST $ac_iconv_const
17351 #endif
17354 main ()
17356 int result = 0;
17357 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17358 successful returns. This is even documented in
17359 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17361 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17362 if (cd_utf8_to_88591 != (iconv_t)(-1))
17364 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17365 char buf[10];
17366 ICONV_CONST char *inptr = input;
17367 size_t inbytesleft = strlen (input);
17368 char *outptr = buf;
17369 size_t outbytesleft = sizeof (buf);
17370 size_t res = iconv (cd_utf8_to_88591,
17371 &inptr, &inbytesleft,
17372 &outptr, &outbytesleft);
17373 if (res == 0)
17374 result |= 1;
17375 iconv_close (cd_utf8_to_88591);
17378 /* Test against Solaris 10 bug: Failures are not distinguishable from
17379 successful returns. */
17381 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17382 if (cd_ascii_to_88591 != (iconv_t)(-1))
17384 static ICONV_CONST char input[] = "\263";
17385 char buf[10];
17386 ICONV_CONST char *inptr = input;
17387 size_t inbytesleft = strlen (input);
17388 char *outptr = buf;
17389 size_t outbytesleft = sizeof (buf);
17390 size_t res = iconv (cd_ascii_to_88591,
17391 &inptr, &inbytesleft,
17392 &outptr, &outbytesleft);
17393 if (res == 0)
17394 result |= 2;
17395 iconv_close (cd_ascii_to_88591);
17398 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17400 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17401 if (cd_88591_to_utf8 != (iconv_t)(-1))
17403 static ICONV_CONST char input[] = "\304";
17404 static char buf[2] = { (char)0xDE, (char)0xAD };
17405 ICONV_CONST char *inptr = input;
17406 size_t inbytesleft = 1;
17407 char *outptr = buf;
17408 size_t outbytesleft = 1;
17409 size_t res = iconv (cd_88591_to_utf8,
17410 &inptr, &inbytesleft,
17411 &outptr, &outbytesleft);
17412 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17413 result |= 4;
17414 iconv_close (cd_88591_to_utf8);
17417 #if 0 /* This bug could be worked around by the caller. */
17418 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17420 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17421 if (cd_88591_to_utf8 != (iconv_t)(-1))
17423 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17424 char buf[50];
17425 ICONV_CONST char *inptr = input;
17426 size_t inbytesleft = strlen (input);
17427 char *outptr = buf;
17428 size_t outbytesleft = sizeof (buf);
17429 size_t res = iconv (cd_88591_to_utf8,
17430 &inptr, &inbytesleft,
17431 &outptr, &outbytesleft);
17432 if ((int)res > 0)
17433 result |= 8;
17434 iconv_close (cd_88591_to_utf8);
17437 #endif
17438 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17439 provided. */
17441 /* Try standardized names. */
17442 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17443 /* Try IRIX, OSF/1 names. */
17444 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17445 /* Try AIX names. */
17446 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17447 /* Try HP-UX names. */
17448 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17449 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17450 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17451 result |= 16;
17452 if (cd1 != (iconv_t)(-1))
17453 iconv_close (cd1);
17454 if (cd2 != (iconv_t)(-1))
17455 iconv_close (cd2);
17456 if (cd3 != (iconv_t)(-1))
17457 iconv_close (cd3);
17458 if (cd4 != (iconv_t)(-1))
17459 iconv_close (cd4);
17461 return result;
17464 return 0;
17466 _ACEOF
17467 if ac_fn_c_try_run "$LINENO"; then :
17468 am_cv_func_iconv_works=yes
17470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17471 conftest.$ac_objext conftest.beam conftest.$ac_ext
17474 test "$am_cv_func_iconv_works" = no || break
17475 done
17476 LIBS="$am_save_LIBS"
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17480 $as_echo "$am_cv_func_iconv_works" >&6; }
17481 case "$am_cv_func_iconv_works" in
17482 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17483 *) am_func_iconv=yes ;;
17484 esac
17485 else
17486 am_func_iconv=no am_cv_lib_iconv=no
17488 if test "$am_func_iconv" = yes; then
17490 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17493 if test "$am_cv_lib_iconv" = yes; then
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17495 $as_echo_n "checking how to link with libiconv... " >&6; }
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17497 $as_echo "$LIBICONV" >&6; }
17498 else
17499 CPPFLAGS="$am_save_CPPFLAGS"
17500 LIBICONV=
17501 LTLIBICONV=
17509 use_additional=yes
17511 acl_save_prefix="$prefix"
17512 prefix="$acl_final_prefix"
17513 acl_save_exec_prefix="$exec_prefix"
17514 exec_prefix="$acl_final_exec_prefix"
17516 eval additional_includedir=\"$includedir\"
17517 eval additional_libdir=\"$libdir\"
17519 exec_prefix="$acl_save_exec_prefix"
17520 prefix="$acl_save_prefix"
17523 # Check whether --with-libintl-prefix was given.
17524 if test "${with_libintl_prefix+set}" = set; then :
17525 withval=$with_libintl_prefix;
17526 if test "X$withval" = "Xno"; then
17527 use_additional=no
17528 else
17529 if test "X$withval" = "X"; then
17531 acl_save_prefix="$prefix"
17532 prefix="$acl_final_prefix"
17533 acl_save_exec_prefix="$exec_prefix"
17534 exec_prefix="$acl_final_exec_prefix"
17536 eval additional_includedir=\"$includedir\"
17537 eval additional_libdir=\"$libdir\"
17539 exec_prefix="$acl_save_exec_prefix"
17540 prefix="$acl_save_prefix"
17542 else
17543 additional_includedir="$withval/include"
17544 additional_libdir="$withval/lib"
17551 # Check whether --with-libintl-type was given.
17552 if test "${with_libintl_type+set}" = set; then :
17553 withval=$with_libintl_type; with_libintl_type=$withval
17554 else
17555 with_libintl_type=auto
17558 lib_type=`eval echo \$with_libintl_type`
17560 LIBINTL=
17561 LTLIBINTL=
17562 INCINTL=
17563 rpathdirs=
17564 ltrpathdirs=
17565 names_already_handled=
17566 names_next_round='intl '
17567 while test -n "$names_next_round"; do
17568 names_this_round="$names_next_round"
17569 names_next_round=
17570 for name in $names_this_round; do
17571 already_handled=
17572 for n in $names_already_handled; do
17573 if test "$n" = "$name"; then
17574 already_handled=yes
17575 break
17577 done
17578 if test -z "$already_handled"; then
17579 names_already_handled="$names_already_handled $name"
17580 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17581 eval value=\"\$HAVE_LIB$uppername\"
17582 if test -n "$value"; then
17583 if test "$value" = yes; then
17584 eval value=\"\$LIB$uppername\"
17585 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17586 eval value=\"\$LTLIB$uppername\"
17587 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17588 else
17591 else
17592 found_dir=
17593 found_la=
17594 found_so=
17595 found_a=
17596 if test $use_additional = yes; then
17597 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17598 found_dir="$additional_libdir"
17599 found_so="$additional_libdir/lib$name.$shlibext"
17600 if test -f "$additional_libdir/lib$name.la"; then
17601 found_la="$additional_libdir/lib$name.la"
17603 elif test x$lib_type != xshared; then
17604 if test -f "$additional_libdir/lib$name.$libext"; then
17605 found_dir="$additional_libdir"
17606 found_a="$additional_libdir/lib$name.$libext"
17607 if test -f "$additional_libdir/lib$name.la"; then
17608 found_la="$additional_libdir/lib$name.la"
17613 if test "X$found_dir" = "X"; then
17614 for x in $LDFLAGS $LTLIBINTL; do
17616 acl_save_prefix="$prefix"
17617 prefix="$acl_final_prefix"
17618 acl_save_exec_prefix="$exec_prefix"
17619 exec_prefix="$acl_final_exec_prefix"
17620 eval x=\"$x\"
17621 exec_prefix="$acl_save_exec_prefix"
17622 prefix="$acl_save_prefix"
17624 case "$x" in
17625 -L*)
17626 dir=`echo "X$x" | sed -e 's/^X-L//'`
17627 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17628 found_dir="$dir"
17629 found_so="$dir/lib$name.$shlibext"
17630 if test -f "$dir/lib$name.la"; then
17631 found_la="$dir/lib$name.la"
17633 elif test x$lib_type != xshared; then
17634 if test -f "$dir/lib$name.$libext"; then
17635 found_dir="$dir"
17636 found_a="$dir/lib$name.$libext"
17637 if test -f "$dir/lib$name.la"; then
17638 found_la="$dir/lib$name.la"
17643 esac
17644 if test "X$found_dir" != "X"; then
17645 break
17647 done
17649 if test "X$found_dir" != "X"; then
17650 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17651 if test "X$found_so" != "X"; then
17652 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17653 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17654 else
17655 haveit=
17656 for x in $ltrpathdirs; do
17657 if test "X$x" = "X$found_dir"; then
17658 haveit=yes
17659 break
17661 done
17662 if test -z "$haveit"; then
17663 ltrpathdirs="$ltrpathdirs $found_dir"
17665 if test "$hardcode_direct" = yes; then
17666 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17667 else
17668 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17669 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17670 haveit=
17671 for x in $rpathdirs; do
17672 if test "X$x" = "X$found_dir"; then
17673 haveit=yes
17674 break
17676 done
17677 if test -z "$haveit"; then
17678 rpathdirs="$rpathdirs $found_dir"
17680 else
17681 haveit=
17682 for x in $LDFLAGS $LIBINTL; do
17684 acl_save_prefix="$prefix"
17685 prefix="$acl_final_prefix"
17686 acl_save_exec_prefix="$exec_prefix"
17687 exec_prefix="$acl_final_exec_prefix"
17688 eval x=\"$x\"
17689 exec_prefix="$acl_save_exec_prefix"
17690 prefix="$acl_save_prefix"
17692 if test "X$x" = "X-L$found_dir"; then
17693 haveit=yes
17694 break
17696 done
17697 if test -z "$haveit"; then
17698 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17700 if test "$hardcode_minus_L" != no; then
17701 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17702 else
17703 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17708 else
17709 if test "X$found_a" != "X"; then
17710 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17711 else
17712 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17715 additional_includedir=
17716 case "$found_dir" in
17717 */lib | */lib/)
17718 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17719 additional_includedir="$basedir/include"
17721 esac
17722 if test "X$additional_includedir" != "X"; then
17723 if test "X$additional_includedir" != "X/usr/include"; then
17724 haveit=
17725 if test "X$additional_includedir" = "X/usr/local/include"; then
17726 if test -n "$GCC"; then
17727 case $host_os in
17728 linux*) haveit=yes;;
17729 esac
17732 if test -z "$haveit"; then
17733 for x in $CPPFLAGS $INCINTL; do
17735 acl_save_prefix="$prefix"
17736 prefix="$acl_final_prefix"
17737 acl_save_exec_prefix="$exec_prefix"
17738 exec_prefix="$acl_final_exec_prefix"
17739 eval x=\"$x\"
17740 exec_prefix="$acl_save_exec_prefix"
17741 prefix="$acl_save_prefix"
17743 if test "X$x" = "X-I$additional_includedir"; then
17744 haveit=yes
17745 break
17747 done
17748 if test -z "$haveit"; then
17749 if test -d "$additional_includedir"; then
17750 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17756 if test -n "$found_la"; then
17757 save_libdir="$libdir"
17758 case "$found_la" in
17759 */* | *\\*) . "$found_la" ;;
17760 *) . "./$found_la" ;;
17761 esac
17762 libdir="$save_libdir"
17763 for dep in $dependency_libs; do
17764 case "$dep" in
17765 -L*)
17766 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17767 if test "X$additional_libdir" != "X/usr/lib"; then
17768 haveit=
17769 if test "X$additional_libdir" = "X/usr/local/lib"; then
17770 if test -n "$GCC"; then
17771 case $host_os in
17772 linux*) haveit=yes;;
17773 esac
17776 if test -z "$haveit"; then
17777 haveit=
17778 for x in $LDFLAGS $LIBINTL; do
17780 acl_save_prefix="$prefix"
17781 prefix="$acl_final_prefix"
17782 acl_save_exec_prefix="$exec_prefix"
17783 exec_prefix="$acl_final_exec_prefix"
17784 eval x=\"$x\"
17785 exec_prefix="$acl_save_exec_prefix"
17786 prefix="$acl_save_prefix"
17788 if test "X$x" = "X-L$additional_libdir"; then
17789 haveit=yes
17790 break
17792 done
17793 if test -z "$haveit"; then
17794 if test -d "$additional_libdir"; then
17795 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17798 haveit=
17799 for x in $LDFLAGS $LTLIBINTL; do
17801 acl_save_prefix="$prefix"
17802 prefix="$acl_final_prefix"
17803 acl_save_exec_prefix="$exec_prefix"
17804 exec_prefix="$acl_final_exec_prefix"
17805 eval x=\"$x\"
17806 exec_prefix="$acl_save_exec_prefix"
17807 prefix="$acl_save_prefix"
17809 if test "X$x" = "X-L$additional_libdir"; then
17810 haveit=yes
17811 break
17813 done
17814 if test -z "$haveit"; then
17815 if test -d "$additional_libdir"; then
17816 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17822 -R*)
17823 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17824 if test "$enable_rpath" != no; then
17825 haveit=
17826 for x in $rpathdirs; do
17827 if test "X$x" = "X$dir"; then
17828 haveit=yes
17829 break
17831 done
17832 if test -z "$haveit"; then
17833 rpathdirs="$rpathdirs $dir"
17835 haveit=
17836 for x in $ltrpathdirs; do
17837 if test "X$x" = "X$dir"; then
17838 haveit=yes
17839 break
17841 done
17842 if test -z "$haveit"; then
17843 ltrpathdirs="$ltrpathdirs $dir"
17847 -l*)
17848 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17850 *.la)
17851 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17854 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17855 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17857 esac
17858 done
17860 else
17861 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17862 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17863 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17864 else
17865 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
17866 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
17871 done
17872 done
17873 if test "X$rpathdirs" != "X"; then
17874 if test -n "$hardcode_libdir_separator"; then
17875 alldirs=
17876 for found_dir in $rpathdirs; do
17877 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17878 done
17879 acl_save_libdir="$libdir"
17880 libdir="$alldirs"
17881 eval flag=\"$hardcode_libdir_flag_spec\"
17882 libdir="$acl_save_libdir"
17883 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17884 else
17885 for found_dir in $rpathdirs; do
17886 acl_save_libdir="$libdir"
17887 libdir="$found_dir"
17888 eval flag=\"$hardcode_libdir_flag_spec\"
17889 libdir="$acl_save_libdir"
17890 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17891 done
17894 if test "X$ltrpathdirs" != "X"; then
17895 for found_dir in $ltrpathdirs; do
17896 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17897 done
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17901 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17902 if eval \${$gt_func_gnugettext_libintl+:} false; then :
17903 $as_echo_n "(cached) " >&6
17904 else
17905 gt_save_CPPFLAGS="$CPPFLAGS"
17906 CPPFLAGS="$CPPFLAGS $INCINTL"
17907 gt_save_LIBS="$LIBS"
17908 LIBS="$LIBS $LIBINTL"
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17912 #include <libintl.h>
17913 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17914 extern int _nl_msg_cat_cntr;
17915 extern
17916 #ifdef __cplusplus
17918 #endif
17919 const char *_nl_expand_alias (const char *);
17920 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17921 #else
17922 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17923 #endif
17924 $gt_revision_test_code
17927 main ()
17930 bindtextdomain ("", "");
17931 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17934 return 0;
17936 _ACEOF
17937 if ac_fn_c_try_link "$LINENO"; then :
17938 eval "$gt_func_gnugettext_libintl=yes"
17939 else
17940 eval "$gt_func_gnugettext_libintl=no"
17942 rm -f core conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17944 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17945 LIBS="$LIBS $LIBICONV"
17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17949 #include <libintl.h>
17950 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17951 extern int _nl_msg_cat_cntr;
17952 extern
17953 #ifdef __cplusplus
17955 #endif
17956 const char *_nl_expand_alias (const char *);
17957 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17958 #else
17959 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17960 #endif
17961 $gt_revision_test_code
17964 main ()
17967 bindtextdomain ("", "");
17968 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17971 return 0;
17973 _ACEOF
17974 if ac_fn_c_try_link "$LINENO"; then :
17975 LIBINTL="$LIBINTL $LIBICONV"
17976 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17977 eval "$gt_func_gnugettext_libintl=yes"
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17983 CPPFLAGS="$gt_save_CPPFLAGS"
17984 LIBS="$gt_save_LIBS"
17986 eval ac_res=\$$gt_func_gnugettext_libintl
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17988 $as_echo "$ac_res" >&6; }
17991 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17992 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17993 && test "$PACKAGE" != gettext-runtime \
17994 && test "$PACKAGE" != gettext-tools; }; then
17995 gt_use_preinstalled_gnugettext=yes
17996 else
17997 LIBINTL=
17998 LTLIBINTL=
17999 INCINTL=
18004 if test -n "$INTL_MACOSX_LIBS"; then
18005 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18006 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18007 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18008 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18012 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18013 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18015 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18017 else
18018 USE_NLS=no
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18023 $as_echo_n "checking whether to use NLS... " >&6; }
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18025 $as_echo "$USE_NLS" >&6; }
18026 if test "$USE_NLS" = "yes"; then
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18028 $as_echo_n "checking where the gettext function comes from... " >&6; }
18029 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18030 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18031 gt_source="external libintl"
18032 else
18033 gt_source="libc"
18035 else
18036 gt_source="included intl directory"
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18039 $as_echo "$gt_source" >&6; }
18042 if test "$USE_NLS" = "yes"; then
18044 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18045 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18047 $as_echo_n "checking how to link with libintl... " >&6; }
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18049 $as_echo "$LIBINTL" >&6; }
18051 for element in $INCINTL; do
18052 haveit=
18053 for x in $CPPFLAGS; do
18055 acl_save_prefix="$prefix"
18056 prefix="$acl_final_prefix"
18057 acl_save_exec_prefix="$exec_prefix"
18058 exec_prefix="$acl_final_exec_prefix"
18059 eval x=\"$x\"
18060 exec_prefix="$acl_save_exec_prefix"
18061 prefix="$acl_save_prefix"
18063 if test "X$x" = "X$element"; then
18064 haveit=yes
18065 break
18067 done
18068 if test -z "$haveit"; then
18069 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18071 done
18076 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18079 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18083 POSUB=po
18088 INTLLIBS="$LIBINTL"
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18108 $as_echo_n "checking whether NLS is requested... " >&6; }
18109 if test x"$USE_NLS" != xyes; then
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18111 $as_echo "no" >&6; }
18112 else
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18114 $as_echo "yes" >&6; }
18116 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18120 $as_echo_n "checking for catalogs to be installed... " >&6; }
18121 # Look for .po and .gmo files in the source directory.
18122 CATALOGS=
18123 XLINGUAS=
18124 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
18125 # If there aren't any .gmo files the shell will give us the
18126 # literal string "../path/to/srcdir/po/*.gmo" which has to be
18127 # weeded out.
18128 case "$cat" in *\**)
18129 continue;;
18130 esac
18131 # The quadruple backslash is collapsed to a double backslash
18132 # by the backticks, then collapsed again by the double quotes,
18133 # leaving us with one backslash in the sed expression (right
18134 # before the dot that mustn't act as a wildcard).
18135 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18136 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
18137 # The user is allowed to set LINGUAS to a list of languages to
18138 # install catalogs for. If it's empty that means "all of them."
18139 if test "x$LINGUAS" = x; then
18140 CATALOGS="$CATALOGS $cat"
18141 XLINGUAS="$XLINGUAS $lang"
18142 else
18143 case "$LINGUAS" in *$lang*)
18144 CATALOGS="$CATALOGS $cat"
18145 XLINGUAS="$XLINGUAS $lang"
18147 esac
18149 done
18150 LINGUAS="$XLINGUAS"
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18152 $as_echo "$LINGUAS" >&6; }
18155 DATADIRNAME=share
18157 INSTOBJEXT=.mo
18159 GENCAT=gencat
18161 CATOBJEXT=.gmo
18168 # Prepare PATH_SEPARATOR.
18169 # The user is always right.
18170 if test "${PATH_SEPARATOR+set}" != set; then
18171 echo "#! /bin/sh" >conf$$.sh
18172 echo "exit 0" >>conf$$.sh
18173 chmod +x conf$$.sh
18174 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18175 PATH_SEPARATOR=';'
18176 else
18177 PATH_SEPARATOR=:
18179 rm -f conf$$.sh
18182 # Find out how to test for executable files. Don't use a zero-byte file,
18183 # as systems may use methods other than mode bits to determine executability.
18184 cat >conf$$.file <<_ASEOF
18185 #! /bin/sh
18186 exit 0
18187 _ASEOF
18188 chmod +x conf$$.file
18189 if test -x conf$$.file >/dev/null 2>&1; then
18190 ac_executable_p="test -x"
18191 else
18192 ac_executable_p="test -f"
18194 rm -f conf$$.file
18196 # Extract the first word of "msgfmt", so it can be a program name with args.
18197 set dummy msgfmt; ac_word=$2
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18199 $as_echo_n "checking for $ac_word... " >&6; }
18200 if ${ac_cv_path_MSGFMT+:} false; then :
18201 $as_echo_n "(cached) " >&6
18202 else
18203 case "$MSGFMT" in
18204 [\\/]* | ?:[\\/]*)
18205 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18208 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18209 for ac_dir in $PATH; do
18210 IFS="$ac_save_IFS"
18211 test -z "$ac_dir" && ac_dir=.
18212 for ac_exec_ext in '' $ac_executable_extensions; do
18213 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18214 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
18215 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18216 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18217 break 2
18220 done
18221 done
18222 IFS="$ac_save_IFS"
18223 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18225 esac
18227 MSGFMT="$ac_cv_path_MSGFMT"
18228 if test "$MSGFMT" != ":"; then
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18230 $as_echo "$MSGFMT" >&6; }
18231 else
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 $as_echo "no" >&6; }
18236 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18237 set dummy gmsgfmt; ac_word=$2
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18239 $as_echo_n "checking for $ac_word... " >&6; }
18240 if ${ac_cv_path_GMSGFMT+:} false; then :
18241 $as_echo_n "(cached) " >&6
18242 else
18243 case $GMSGFMT in
18244 [\\/]* | ?:[\\/]*)
18245 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18249 for as_dir in $PATH
18251 IFS=$as_save_IFS
18252 test -z "$as_dir" && as_dir=.
18253 for ac_exec_ext in '' $ac_executable_extensions; do
18254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18255 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18257 break 2
18259 done
18260 done
18261 IFS=$as_save_IFS
18263 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18265 esac
18267 GMSGFMT=$ac_cv_path_GMSGFMT
18268 if test -n "$GMSGFMT"; then
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18270 $as_echo "$GMSGFMT" >&6; }
18271 else
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18273 $as_echo "no" >&6; }
18279 # Prepare PATH_SEPARATOR.
18280 # The user is always right.
18281 if test "${PATH_SEPARATOR+set}" != set; then
18282 echo "#! /bin/sh" >conf$$.sh
18283 echo "exit 0" >>conf$$.sh
18284 chmod +x conf$$.sh
18285 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18286 PATH_SEPARATOR=';'
18287 else
18288 PATH_SEPARATOR=:
18290 rm -f conf$$.sh
18293 # Find out how to test for executable files. Don't use a zero-byte file,
18294 # as systems may use methods other than mode bits to determine executability.
18295 cat >conf$$.file <<_ASEOF
18296 #! /bin/sh
18297 exit 0
18298 _ASEOF
18299 chmod +x conf$$.file
18300 if test -x conf$$.file >/dev/null 2>&1; then
18301 ac_executable_p="test -x"
18302 else
18303 ac_executable_p="test -f"
18305 rm -f conf$$.file
18307 # Extract the first word of "xgettext", so it can be a program name with args.
18308 set dummy xgettext; ac_word=$2
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18310 $as_echo_n "checking for $ac_word... " >&6; }
18311 if ${ac_cv_path_XGETTEXT+:} false; then :
18312 $as_echo_n "(cached) " >&6
18313 else
18314 case "$XGETTEXT" in
18315 [\\/]* | ?:[\\/]*)
18316 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18319 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18320 for ac_dir in $PATH; do
18321 IFS="$ac_save_IFS"
18322 test -z "$ac_dir" && ac_dir=.
18323 for ac_exec_ext in '' $ac_executable_extensions; do
18324 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18325 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18326 (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
18327 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18328 break 2
18331 done
18332 done
18333 IFS="$ac_save_IFS"
18334 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18336 esac
18338 XGETTEXT="$ac_cv_path_XGETTEXT"
18339 if test "$XGETTEXT" != ":"; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18341 $as_echo "$XGETTEXT" >&6; }
18342 else
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344 $as_echo "no" >&6; }
18347 rm -f messages.po
18350 # Prepare PATH_SEPARATOR.
18351 # The user is always right.
18352 if test "${PATH_SEPARATOR+set}" != set; then
18353 echo "#! /bin/sh" >conf$$.sh
18354 echo "exit 0" >>conf$$.sh
18355 chmod +x conf$$.sh
18356 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18357 PATH_SEPARATOR=';'
18358 else
18359 PATH_SEPARATOR=:
18361 rm -f conf$$.sh
18364 # Find out how to test for executable files. Don't use a zero-byte file,
18365 # as systems may use methods other than mode bits to determine executability.
18366 cat >conf$$.file <<_ASEOF
18367 #! /bin/sh
18368 exit 0
18369 _ASEOF
18370 chmod +x conf$$.file
18371 if test -x conf$$.file >/dev/null 2>&1; then
18372 ac_executable_p="test -x"
18373 else
18374 ac_executable_p="test -f"
18376 rm -f conf$$.file
18378 # Extract the first word of "msgmerge", so it can be a program name with args.
18379 set dummy msgmerge; ac_word=$2
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18381 $as_echo_n "checking for $ac_word... " >&6; }
18382 if ${ac_cv_path_MSGMERGE+:} false; then :
18383 $as_echo_n "(cached) " >&6
18384 else
18385 case "$MSGMERGE" in
18386 [\\/]* | ?:[\\/]*)
18387 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18390 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18391 for ac_dir in $PATH; do
18392 IFS="$ac_save_IFS"
18393 test -z "$ac_dir" && ac_dir=.
18394 for ac_exec_ext in '' $ac_executable_extensions; do
18395 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18396 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
18397 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18398 break 2
18401 done
18402 done
18403 IFS="$ac_save_IFS"
18404 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18406 esac
18408 MSGMERGE="$ac_cv_path_MSGMERGE"
18409 if test "$MSGMERGE" != ":"; then
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18411 $as_echo "$MSGMERGE" >&6; }
18412 else
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414 $as_echo "no" >&6; }
18418 if test "$GMSGFMT" != ":"; then
18419 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18420 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18422 else
18423 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18425 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18426 GMSGFMT=":"
18430 if test "$XGETTEXT" != ":"; then
18431 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18432 (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
18434 else
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18436 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18437 XGETTEXT=":"
18439 rm -f messages.po
18442 ac_config_commands="$ac_config_commands default-2"
18448 for ac_prog in 'bison -y' byacc
18450 # Extract the first word of "$ac_prog", so it can be a program name with args.
18451 set dummy $ac_prog; ac_word=$2
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18453 $as_echo_n "checking for $ac_word... " >&6; }
18454 if ${ac_cv_prog_YACC+:} false; then :
18455 $as_echo_n "(cached) " >&6
18456 else
18457 if test -n "$YACC"; then
18458 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18459 else
18460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18461 for as_dir in $PATH
18463 IFS=$as_save_IFS
18464 test -z "$as_dir" && as_dir=.
18465 for ac_exec_ext in '' $ac_executable_extensions; do
18466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18467 ac_cv_prog_YACC="$ac_prog"
18468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18469 break 2
18471 done
18472 done
18473 IFS=$as_save_IFS
18477 YACC=$ac_cv_prog_YACC
18478 if test -n "$YACC"; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18480 $as_echo "$YACC" >&6; }
18481 else
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18483 $as_echo "no" >&6; }
18487 test -n "$YACC" && break
18488 done
18489 test -n "$YACC" || YACC="yacc"
18491 for ac_prog in flex lex
18493 # Extract the first word of "$ac_prog", so it can be a program name with args.
18494 set dummy $ac_prog; ac_word=$2
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18496 $as_echo_n "checking for $ac_word... " >&6; }
18497 if ${ac_cv_prog_LEX+:} false; then :
18498 $as_echo_n "(cached) " >&6
18499 else
18500 if test -n "$LEX"; then
18501 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18502 else
18503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18504 for as_dir in $PATH
18506 IFS=$as_save_IFS
18507 test -z "$as_dir" && as_dir=.
18508 for ac_exec_ext in '' $ac_executable_extensions; do
18509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18510 ac_cv_prog_LEX="$ac_prog"
18511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18512 break 2
18514 done
18515 done
18516 IFS=$as_save_IFS
18520 LEX=$ac_cv_prog_LEX
18521 if test -n "$LEX"; then
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18523 $as_echo "$LEX" >&6; }
18524 else
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18526 $as_echo "no" >&6; }
18530 test -n "$LEX" && break
18531 done
18532 test -n "$LEX" || LEX=":"
18534 case "$LEX" in
18535 :|*"missing "*) ;;
18536 *) cat >conftest.l <<_ACEOF
18538 a { ECHO; }
18539 b { REJECT; }
18540 c { yymore (); }
18541 d { yyless (1); }
18542 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18543 yyless ((input () != 0)); }
18544 f { unput (yytext[0]); }
18545 . { BEGIN INITIAL; }
18547 #ifdef YYTEXT_POINTER
18548 extern char *yytext;
18549 #endif
18551 main (void)
18553 return ! yylex () + ! yywrap ();
18555 _ACEOF
18556 { { ac_try="$LEX conftest.l"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560 esac
18561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18562 $as_echo "$ac_try_echo"; } >&5
18563 (eval "$LEX conftest.l") 2>&5
18564 ac_status=$?
18565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18566 test $ac_status = 0; }
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18568 $as_echo_n "checking lex output file root... " >&6; }
18569 if ${ac_cv_prog_lex_root+:} false; then :
18570 $as_echo_n "(cached) " >&6
18571 else
18573 if test -f lex.yy.c; then
18574 ac_cv_prog_lex_root=lex.yy
18575 elif test -f lexyy.c; then
18576 ac_cv_prog_lex_root=lexyy
18577 else
18578 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18582 $as_echo "$ac_cv_prog_lex_root" >&6; }
18583 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18585 if test -z "${LEXLIB+set}"; then
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18587 $as_echo_n "checking lex library... " >&6; }
18588 if ${ac_cv_lib_lex+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18592 ac_save_LIBS=$LIBS
18593 ac_cv_lib_lex='none needed'
18594 for ac_lib in '' -lfl -ll; do
18595 LIBS="$ac_lib $ac_save_LIBS"
18596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598 `cat $LEX_OUTPUT_ROOT.c`
18599 _ACEOF
18600 if ac_fn_c_try_link "$LINENO"; then :
18601 ac_cv_lib_lex=$ac_lib
18603 rm -f core conftest.err conftest.$ac_objext \
18604 conftest$ac_exeext conftest.$ac_ext
18605 test "$ac_cv_lib_lex" != 'none needed' && break
18606 done
18607 LIBS=$ac_save_LIBS
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18611 $as_echo "$ac_cv_lib_lex" >&6; }
18612 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18617 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18618 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18619 $as_echo_n "(cached) " >&6
18620 else
18621 # POSIX says lex can declare yytext either as a pointer or an array; the
18622 # default is implementation-dependent. Figure out which it is, since
18623 # not all implementations provide the %pointer and %array declarations.
18624 ac_cv_prog_lex_yytext_pointer=no
18625 ac_save_LIBS=$LIBS
18626 LIBS="$LEXLIB $ac_save_LIBS"
18627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h. */
18630 #define YYTEXT_POINTER 1
18631 `cat $LEX_OUTPUT_ROOT.c`
18632 _ACEOF
18633 if ac_fn_c_try_link "$LINENO"; then :
18634 ac_cv_prog_lex_yytext_pointer=yes
18636 rm -f core conftest.err conftest.$ac_objext \
18637 conftest$ac_exeext conftest.$ac_ext
18638 LIBS=$ac_save_LIBS
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18642 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18643 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18645 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18648 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18650 esac
18651 if test "$LEX" = :; then
18652 LEX=${am_missing_run}flex
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18657 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18658 # Check whether --enable-maintainer-mode was given.
18659 if test "${enable_maintainer_mode+set}" = set; then :
18660 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18661 else
18662 USE_MAINTAINER_MODE=no
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18666 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18667 if test $USE_MAINTAINER_MODE = yes; then
18668 MAINTAINER_MODE_TRUE=
18669 MAINTAINER_MODE_FALSE='#'
18670 else
18671 MAINTAINER_MODE_TRUE='#'
18672 MAINTAINER_MODE_FALSE=
18675 MAINT=$MAINTAINER_MODE_TRUE
18678 if false; then
18679 GENINSRC_NEVER_TRUE=
18680 GENINSRC_NEVER_FALSE='#'
18681 else
18682 GENINSRC_NEVER_TRUE='#'
18683 GENINSRC_NEVER_FALSE=
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18687 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
18688 if ${gcc_cv_prog_cmp_skip+:} false; then :
18689 $as_echo_n "(cached) " >&6
18690 else
18691 echo abfoo >t1
18692 echo cdfoo >t2
18693 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
18694 if cmp t1 t2 2 2 > /dev/null 2>&1; then
18695 if cmp t1 t2 1 1 > /dev/null 2>&1; then
18697 else
18698 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18701 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18702 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18704 else
18705 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18708 rm t1 t2
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18712 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
18713 do_compare="$gcc_cv_prog_cmp_skip"
18717 . ${srcdir}/configure.host
18722 # We use headers from include/ that check various HAVE_*_H macros, thus
18723 # should ensure they are set by configure. This is true even when C99
18724 # guarantees they are available.
18725 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18726 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18727 # Besides those, we need to check anything used in ld/ not in C99.
18728 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18729 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18730 sys/types.h unistd.h
18731 do :
18732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18733 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18734 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18735 cat >>confdefs.h <<_ACEOF
18736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18737 _ACEOF
18741 done
18743 for ac_func in close glob lseek mkstemp open realpath waitpid
18744 do :
18745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18747 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18748 cat >>confdefs.h <<_ACEOF
18749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18750 _ACEOF
18753 done
18757 case "${host}" in
18758 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18760 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18762 esac
18764 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18765 if test "x$ac_cv_have_decl_environ" = xyes; then :
18766 ac_have_decl=1
18767 else
18768 ac_have_decl=0
18771 cat >>confdefs.h <<_ACEOF
18772 #define HAVE_DECL_ENVIRON $ac_have_decl
18773 _ACEOF
18774 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18775 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18776 ac_have_decl=1
18777 else
18778 ac_have_decl=0
18781 cat >>confdefs.h <<_ACEOF
18782 #define HAVE_DECL_STPCPY $ac_have_decl
18783 _ACEOF
18789 for ac_header in $ac_header_list
18790 do :
18791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18795 cat >>confdefs.h <<_ACEOF
18796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18797 _ACEOF
18801 done
18809 save_ASAN_OPTIONS="$ASAN_OPTIONS"
18810 ASAN_OPTIONS=detect_leaks=0
18811 export ASAN_OPTIONS
18813 for ac_func in getpagesize
18814 do :
18815 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18816 if test "x$ac_cv_func_getpagesize" = xyes; then :
18817 cat >>confdefs.h <<_ACEOF
18818 #define HAVE_GETPAGESIZE 1
18819 _ACEOF
18822 done
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18825 $as_echo_n "checking for working mmap... " >&6; }
18826 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18827 $as_echo_n "(cached) " >&6
18828 else
18829 if test "$cross_compiling" = yes; then :
18830 ac_cv_func_mmap_fixed_mapped=no
18831 else
18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h. */
18834 $ac_includes_default
18835 /* malloc might have been renamed as rpl_malloc. */
18836 #undef malloc
18838 /* Thanks to Mike Haertel and Jim Avera for this test.
18839 Here is a matrix of mmap possibilities:
18840 mmap private not fixed
18841 mmap private fixed at somewhere currently unmapped
18842 mmap private fixed at somewhere already mapped
18843 mmap shared not fixed
18844 mmap shared fixed at somewhere currently unmapped
18845 mmap shared fixed at somewhere already mapped
18846 For private mappings, we should verify that changes cannot be read()
18847 back from the file, nor mmap's back from the file at a different
18848 address. (There have been systems where private was not correctly
18849 implemented like the infamous i386 svr4.0, and systems where the
18850 VM page cache was not coherent with the file system buffer cache
18851 like early versions of FreeBSD and possibly contemporary NetBSD.)
18852 For shared mappings, we should conversely verify that changes get
18853 propagated back to all the places they're supposed to be.
18855 Grep wants private fixed already mapped.
18856 The main things grep needs to know about mmap are:
18857 * does it exist and is it safe to write into the mmap'd area
18858 * how to use it (BSD variants) */
18860 #include <fcntl.h>
18861 #include <sys/mman.h>
18863 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18864 char *malloc ();
18865 #endif
18867 /* This mess was copied from the GNU getpagesize.h. */
18868 #ifndef HAVE_GETPAGESIZE
18869 # ifdef _SC_PAGESIZE
18870 # define getpagesize() sysconf(_SC_PAGESIZE)
18871 # else /* no _SC_PAGESIZE */
18872 # ifdef HAVE_SYS_PARAM_H
18873 # include <sys/param.h>
18874 # ifdef EXEC_PAGESIZE
18875 # define getpagesize() EXEC_PAGESIZE
18876 # else /* no EXEC_PAGESIZE */
18877 # ifdef NBPG
18878 # define getpagesize() NBPG * CLSIZE
18879 # ifndef CLSIZE
18880 # define CLSIZE 1
18881 # endif /* no CLSIZE */
18882 # else /* no NBPG */
18883 # ifdef NBPC
18884 # define getpagesize() NBPC
18885 # else /* no NBPC */
18886 # ifdef PAGESIZE
18887 # define getpagesize() PAGESIZE
18888 # endif /* PAGESIZE */
18889 # endif /* no NBPC */
18890 # endif /* no NBPG */
18891 # endif /* no EXEC_PAGESIZE */
18892 # else /* no HAVE_SYS_PARAM_H */
18893 # define getpagesize() 8192 /* punt totally */
18894 # endif /* no HAVE_SYS_PARAM_H */
18895 # endif /* no _SC_PAGESIZE */
18897 #endif /* no HAVE_GETPAGESIZE */
18900 main ()
18902 char *data, *data2, *data3;
18903 const char *cdata2;
18904 int i, pagesize;
18905 int fd, fd2;
18907 pagesize = getpagesize ();
18909 /* First, make a file with some known garbage in it. */
18910 data = (char *) malloc (pagesize);
18911 if (!data)
18912 return 1;
18913 for (i = 0; i < pagesize; ++i)
18914 *(data + i) = rand ();
18915 umask (0);
18916 fd = creat ("conftest.mmap", 0600);
18917 if (fd < 0)
18918 return 2;
18919 if (write (fd, data, pagesize) != pagesize)
18920 return 3;
18921 close (fd);
18923 /* Next, check that the tail of a page is zero-filled. File must have
18924 non-zero length, otherwise we risk SIGBUS for entire page. */
18925 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18926 if (fd2 < 0)
18927 return 4;
18928 cdata2 = "";
18929 if (write (fd2, cdata2, 1) != 1)
18930 return 5;
18931 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18932 if (data2 == MAP_FAILED)
18933 return 6;
18934 for (i = 0; i < pagesize; ++i)
18935 if (*(data2 + i))
18936 return 7;
18937 close (fd2);
18938 if (munmap (data2, pagesize))
18939 return 8;
18941 /* Next, try to mmap the file at a fixed address which already has
18942 something else allocated at it. If we can, also make sure that
18943 we see the same garbage. */
18944 fd = open ("conftest.mmap", O_RDWR);
18945 if (fd < 0)
18946 return 9;
18947 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18948 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18949 return 10;
18950 for (i = 0; i < pagesize; ++i)
18951 if (*(data + i) != *(data2 + i))
18952 return 11;
18954 /* Finally, make sure that changes to the mapped area do not
18955 percolate back to the file as seen by read(). (This is a bug on
18956 some variants of i386 svr4.0.) */
18957 for (i = 0; i < pagesize; ++i)
18958 *(data2 + i) = *(data2 + i) + 1;
18959 data3 = (char *) malloc (pagesize);
18960 if (!data3)
18961 return 12;
18962 if (read (fd, data3, pagesize) != pagesize)
18963 return 13;
18964 for (i = 0; i < pagesize; ++i)
18965 if (*(data + i) != *(data3 + i))
18966 return 14;
18967 close (fd);
18968 return 0;
18970 _ACEOF
18971 if ac_fn_c_try_run "$LINENO"; then :
18972 ac_cv_func_mmap_fixed_mapped=yes
18973 else
18974 ac_cv_func_mmap_fixed_mapped=no
18976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18977 conftest.$ac_objext conftest.beam conftest.$ac_ext
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18982 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18983 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18985 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18988 rm -f conftest.mmap conftest.txt
18990 ASAN_OPTIONS="$save_ASAN_OPTIONS"
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18994 $as_echo_n "checking for library containing dlopen... " >&6; }
18995 if ${ac_cv_search_dlopen+:} false; then :
18996 $as_echo_n "(cached) " >&6
18997 else
18998 ac_func_search_save_LIBS=$LIBS
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19002 /* Override any GCC internal prototype to avoid an error.
19003 Use char because int might match the return type of a GCC
19004 builtin and then its argument prototype would still apply. */
19005 #ifdef __cplusplus
19006 extern "C"
19007 #endif
19008 char dlopen ();
19010 main ()
19012 return dlopen ();
19014 return 0;
19016 _ACEOF
19017 for ac_lib in '' dl; do
19018 if test -z "$ac_lib"; then
19019 ac_res="none required"
19020 else
19021 ac_res=-l$ac_lib
19022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19024 if ac_fn_c_try_link "$LINENO"; then :
19025 ac_cv_search_dlopen=$ac_res
19027 rm -f core conftest.err conftest.$ac_objext \
19028 conftest$ac_exeext
19029 if ${ac_cv_search_dlopen+:} false; then :
19030 break
19032 done
19033 if ${ac_cv_search_dlopen+:} false; then :
19035 else
19036 ac_cv_search_dlopen=no
19038 rm conftest.$ac_ext
19039 LIBS=$ac_func_search_save_LIBS
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19042 $as_echo "$ac_cv_search_dlopen" >&6; }
19043 ac_res=$ac_cv_search_dlopen
19044 if test "$ac_res" != no; then :
19045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
19051 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
19052 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
19053 $as_echo_n "(cached) " >&6
19054 else
19055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19056 /* end confdefs.h. */
19057 #include <unistd.h>
19059 main ()
19061 extern int getopt (int, char *const*, const char *);
19063 return 0;
19065 _ACEOF
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067 ld_cv_decl_getopt_unistd_h=yes
19068 else
19069 ld_cv_decl_getopt_unistd_h=no
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19075 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
19076 if test $ld_cv_decl_getopt_unistd_h = yes; then
19078 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19083 $as_echo_n "checking whether to use xxhash... " >&6; }
19085 # Check whether --with-xxhash was given.
19086 if test "${with_xxhash+set}" = set; then :
19087 withval=$with_xxhash;
19088 else
19089 with_xxhash=auto
19092 if test "x$with_xxhash" != "xno"; then
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19096 #define XXH_INLINE_ALL
19097 #include <xxhash.h>
19098 XXH128_hash_t r;
19099 void foo (void) { r = XXH128("foo", 3, 0); }
19101 _ACEOF
19102 if ac_fn_c_try_compile "$LINENO"; then :
19104 with_xxhash=yes
19106 $as_echo "#define WITH_XXHASH 1" >>confdefs.h
19109 else
19111 if test "$with_xxhash" = yes; then
19112 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
19114 with_xxhash=no
19116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19119 $as_echo "$with_xxhash" >&6; }
19121 # Link in zlib/zstd if we can. This allows us to read and write
19122 # compressed debug sections.
19124 # Use the system's zlib library.
19125 zlibdir="-L\$(top_builddir)/../zlib"
19126 zlibinc="-I\$(top_srcdir)/../zlib"
19128 # Check whether --with-system-zlib was given.
19129 if test "${with_system_zlib+set}" = set; then :
19130 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19131 zlibdir=
19132 zlibinc=
19142 # Check whether --with-zstd was given.
19143 if test "${with_zstd+set}" = set; then :
19144 withval=$with_zstd;
19145 else
19146 with_zstd=auto
19150 if test "$with_zstd" != no; then :
19152 pkg_failed=no
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19154 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19156 if test -n "$ZSTD_CFLAGS"; then
19157 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19158 elif test -n "$PKG_CONFIG"; then
19159 if test -n "$PKG_CONFIG" && \
19160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19161 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19162 ac_status=$?
19163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19164 test $ac_status = 0; }; then
19165 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19166 test "x$?" != "x0" && pkg_failed=yes
19167 else
19168 pkg_failed=yes
19170 else
19171 pkg_failed=untried
19173 if test -n "$ZSTD_LIBS"; then
19174 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19175 elif test -n "$PKG_CONFIG"; then
19176 if test -n "$PKG_CONFIG" && \
19177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19178 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19179 ac_status=$?
19180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19181 test $ac_status = 0; }; then
19182 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19183 test "x$?" != "x0" && pkg_failed=yes
19184 else
19185 pkg_failed=yes
19187 else
19188 pkg_failed=untried
19191 if test $pkg_failed = no; then
19192 pkg_save_LDFLAGS="$LDFLAGS"
19193 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19195 /* end confdefs.h. */
19198 main ()
19202 return 0;
19204 _ACEOF
19205 if ac_fn_c_try_link "$LINENO"; then :
19207 else
19208 pkg_failed=yes
19210 rm -f core conftest.err conftest.$ac_objext \
19211 conftest$ac_exeext conftest.$ac_ext
19212 LDFLAGS=$pkg_save_LDFLAGS
19217 if test $pkg_failed = yes; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19219 $as_echo "no" >&6; }
19221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19222 _pkg_short_errors_supported=yes
19223 else
19224 _pkg_short_errors_supported=no
19226 if test $_pkg_short_errors_supported = yes; then
19227 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19228 else
19229 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19231 # Put the nasty error message in config.log where it belongs
19232 echo "$ZSTD_PKG_ERRORS" >&5
19235 if test "$with_zstd" = yes; then
19236 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19239 elif test $pkg_failed = untried; then
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19241 $as_echo "no" >&6; }
19243 if test "$with_zstd" = yes; then
19244 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19247 else
19248 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19249 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19251 $as_echo "yes" >&6; }
19254 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19262 # target-specific stuff:
19264 all_targets=
19265 EMUL=
19266 all_emuls=
19267 all_emul_extras=
19268 all_libpath=
19269 TDIRS=
19271 elf_list_options=false
19272 elf_shlib_list_options=false
19273 elf_plt_unwind_list_options=false
19274 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19276 if test "$targ_alias" = "all"; then
19277 all_targets=true
19278 elf_list_options=true
19279 elf_shlib_list_options=true
19280 elf_plt_unwind_list_options=true
19281 else
19282 # Canonicalize the secondary target names.
19283 result=`$ac_config_sub $targ_alias 2>/dev/null`
19284 if test -n "$result"; then
19285 targ=$result
19286 else
19287 targ=$targ_alias
19290 . ${srcdir}/configure.tgt
19292 if test "$targ" = "$target"; then
19293 EMUL=$targ_emul
19296 if test x${enable_64_bit_bfd} = xno; then
19297 . ${srcdir}/../bfd/config.bfd
19300 if test x${enable_64_bit_bfd} = xyes; then
19301 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19302 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19305 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
19306 case " $all_emuls " in
19307 *" e${i}.o "*) ;;
19309 all_emuls="$all_emuls e${i}.o"
19310 eval result=\$tdir_$i
19311 test -z "$result" && result=$targ_alias
19312 TDIRS="$TDIRS
19313 tdir_$i=$result"
19314 case "${i}" in
19315 *elf*)
19316 elf_list_options=true
19319 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
19320 elf_list_options=true
19323 esac
19324 if test "$elf_list_options" = "true"; then
19325 source_sh()
19327 . $1
19329 source_sh ${srcdir}/emulparams/${i}.sh
19330 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
19331 elf_shlib_list_options=true
19333 if test x${PLT_UNWIND} = xyes; then
19334 elf_plt_unwind_list_options=true
19338 esac
19339 done
19341 for i in $targ_emul $targ_extra_libpath; do
19342 case " $all_libpath " in
19343 *" ${i} "*) ;;
19345 if test -z "$all_libpath"; then
19346 all_libpath=${i}
19347 else
19348 all_libpath="$all_libpath ${i}"
19351 esac
19352 done
19354 for i in $targ_extra_ofiles; do
19355 case " $all_emul_extras " in
19356 *" ${i} "*) ;;
19358 all_emul_extras="$all_emul_extras ${i}"
19360 esac
19361 done
19364 done
19366 if test x$ac_default_compressed_debug_sections = xyes ; then
19368 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19373 cat >>confdefs.h <<_ACEOF
19374 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19375 _ACEOF
19378 if test "${ac_default_new_dtags}" = unset; then
19379 ac_default_new_dtags=0
19382 cat >>confdefs.h <<_ACEOF
19383 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19384 _ACEOF
19387 if test "${ac_default_ld_z_relro}" = unset; then
19388 ac_default_ld_z_relro=0
19391 cat >>confdefs.h <<_ACEOF
19392 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19393 _ACEOF
19396 ac_default_ld_textrel_check_warning=0
19397 case "${ac_default_ld_textrel_check}" in
19398 unset|no)
19399 ac_default_ld_textrel_check=textrel_check_none
19401 yes|warning)
19402 ac_default_ld_textrel_check=textrel_check_warning
19403 ac_default_ld_textrel_check_warning=1
19405 error)
19406 ac_default_ld_textrel_check=textrel_check_error
19408 esac
19410 cat >>confdefs.h <<_ACEOF
19411 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19412 _ACEOF
19415 cat >>confdefs.h <<_ACEOF
19416 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19417 _ACEOF
19420 if test "${ac_default_ld_z_separate_code}" = unset; then
19421 ac_default_ld_z_separate_code=0
19424 cat >>confdefs.h <<_ACEOF
19425 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19426 _ACEOF
19429 if test "${ac_default_ld_rosegment}" = unset; then
19430 ac_default_ld_rosegment=0
19433 cat >>confdefs.h <<_ACEOF
19434 #define DEFAULT_LD_ROSEGMENT $ac_default_ld_rosegment
19435 _ACEOF
19438 if test "${ac_default_ld_z_mark_plt}" = unset; then
19439 ac_default_ld_z_mark_plt=0
19442 cat >>confdefs.h <<_ACEOF
19443 #define DEFAULT_LD_Z_MARK_PLT $ac_default_ld_z_mark_plt
19444 _ACEOF
19449 cat >>confdefs.h <<_ACEOF
19450 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19451 _ACEOF
19455 cat >>confdefs.h <<_ACEOF
19456 #define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19457 _ACEOF
19460 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
19461 ac_default_ld_warn_rwx_segments=1
19464 cat >>confdefs.h <<_ACEOF
19465 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19466 _ACEOF
19470 cat >>confdefs.h <<_ACEOF
19471 #define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19472 _ACEOF
19475 if test "${ac_default_ld_default_execstack}" = unset; then
19476 ac_default_ld_default_execstack=1
19479 cat >>confdefs.h <<_ACEOF
19480 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19481 _ACEOF
19485 if test "${ac_support_error_handling_script}" = unset; then
19486 ac_support_error_handling_script=1
19489 cat >>confdefs.h <<_ACEOF
19490 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19491 _ACEOF
19495 cat >>confdefs.h <<_ACEOF
19496 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19497 _ACEOF
19501 cat >>confdefs.h <<_ACEOF
19502 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19503 _ACEOF
19514 if test x${all_targets} = xtrue; then
19515 if test x${enable_64_bit_bfd} = xyes; then
19516 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
19517 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
19518 else
19519 EMULATION_OFILES='$(ALL_EMULATIONS)'
19520 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
19522 else
19523 EMULATION_OFILES=$all_emuls
19524 EMUL_EXTRA_OFILES=$all_emul_extras
19530 EMULATION_LIBPATH=$all_libpath
19533 if test x${enable_static} = xno; then
19534 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
19535 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19536 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
19537 else
19538 TESTBFDLIB="../bfd/.libs/libbfd.a"
19539 TESTCTFLIB="../libctf/.libs/libctf.a"
19540 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
19542 if test "${enable_libctf}" = no; then
19543 TESTCTFLIB=
19549 target_vendor=${target_vendor=$host_vendor}
19550 case "$target_vendor" in
19551 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19552 *) EXTRA_SHLIB_EXTENSION= ;;
19553 esac
19555 case "$target_os" in
19556 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19557 esac
19559 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19561 cat >>confdefs.h <<_ACEOF
19562 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19563 _ACEOF
19567 ac_config_commands="$ac_config_commands default"
19575 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
19577 cat >confcache <<\_ACEOF
19578 # This file is a shell script that caches the results of configure
19579 # tests run on this system so they can be shared between configure
19580 # scripts and configure runs, see configure's option --config-cache.
19581 # It is not useful on other systems. If it contains results you don't
19582 # want to keep, you may remove or edit it.
19584 # config.status only pays attention to the cache file if you give it
19585 # the --recheck option to rerun configure.
19587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19589 # following values.
19591 _ACEOF
19593 # The following way of writing the cache mishandles newlines in values,
19594 # but we know of no workaround that is simple, portable, and efficient.
19595 # So, we kill variables containing newlines.
19596 # Ultrix sh set writes to stderr and can't be redirected directly,
19597 # and sets the high bit in the cache file unless we assign to the vars.
19599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19600 eval ac_val=\$$ac_var
19601 case $ac_val in #(
19602 *${as_nl}*)
19603 case $ac_var in #(
19604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19606 esac
19607 case $ac_var in #(
19608 _ | IFS | as_nl) ;; #(
19609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19610 *) { eval $ac_var=; unset $ac_var;} ;;
19611 esac ;;
19612 esac
19613 done
19615 (set) 2>&1 |
19616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19617 *${as_nl}ac_space=\ *)
19618 # `set' does not quote correctly, so add quotes: double-quote
19619 # substitution turns \\\\ into \\, and sed turns \\ into \.
19620 sed -n \
19621 "s/'/'\\\\''/g;
19622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19623 ;; #(
19625 # `set' quotes correctly as required by POSIX, so do not add quotes.
19626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19628 esac |
19629 sort
19631 sed '
19632 /^ac_cv_env_/b end
19633 t clear
19634 :clear
19635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19636 t end
19637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19638 :end' >>confcache
19639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19640 if test -w "$cache_file"; then
19641 if test "x$cache_file" != "x/dev/null"; then
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19643 $as_echo "$as_me: updating cache $cache_file" >&6;}
19644 if test ! -f "$cache_file" || test -h "$cache_file"; then
19645 cat confcache >"$cache_file"
19646 else
19647 case $cache_file in #(
19648 */* | ?:*)
19649 mv -f confcache "$cache_file"$$ &&
19650 mv -f "$cache_file"$$ "$cache_file" ;; #(
19652 mv -f confcache "$cache_file" ;;
19653 esac
19656 else
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19658 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19661 rm -f confcache
19663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19664 # Let make expand exec_prefix.
19665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19667 DEFS=-DHAVE_CONFIG_H
19669 ac_libobjs=
19670 ac_ltlibobjs=
19672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19673 # 1. Remove the extension, and $U if already installed.
19674 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19675 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19676 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19677 # will be set to the directory where LIBOBJS objects are built.
19678 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19679 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19680 done
19681 LIBOBJS=$ac_libobjs
19683 LTLIBOBJS=$ac_ltlibobjs
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19687 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19688 if test -n "$am_sleep_pid"; then
19689 # Hide warnings about reused PIDs.
19690 wait $am_sleep_pid 2>/dev/null
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19693 $as_echo "done" >&6; }
19694 if test -n "$EXEEXT"; then
19695 am__EXEEXT_TRUE=
19696 am__EXEEXT_FALSE='#'
19697 else
19698 am__EXEEXT_TRUE='#'
19699 am__EXEEXT_FALSE=
19702 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19703 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19706 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19707 as_fn_error $? "conditional \"AMDEP\" was never defined.
19708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19710 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19711 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19714 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19715 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19718 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
19719 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
19720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19722 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19723 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
19724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19726 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19727 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19730 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
19731 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
19732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735 : "${CONFIG_STATUS=./config.status}"
19736 ac_write_fail=0
19737 ac_clean_files_save=$ac_clean_files
19738 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19740 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19741 as_write_fail=0
19742 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19743 #! $SHELL
19744 # Generated by $as_me.
19745 # Run this file to recreate the current configuration.
19746 # Compiler output produced by configure, useful for debugging
19747 # configure, is in config.log if it exists.
19749 debug=false
19750 ac_cs_recheck=false
19751 ac_cs_silent=false
19753 SHELL=\${CONFIG_SHELL-$SHELL}
19754 export SHELL
19755 _ASEOF
19756 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19757 ## -------------------- ##
19758 ## M4sh Initialization. ##
19759 ## -------------------- ##
19761 # Be more Bourne compatible
19762 DUALCASE=1; export DUALCASE # for MKS sh
19763 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19764 emulate sh
19765 NULLCMD=:
19766 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19767 # is contrary to our usage. Disable this feature.
19768 alias -g '${1+"$@"}'='"$@"'
19769 setopt NO_GLOB_SUBST
19770 else
19771 case `(set -o) 2>/dev/null` in #(
19772 *posix*) :
19773 set -o posix ;; #(
19774 *) :
19776 esac
19780 as_nl='
19782 export as_nl
19783 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19784 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19785 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19786 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19787 # Prefer a ksh shell builtin over an external printf program on Solaris,
19788 # but without wasting forks for bash or zsh.
19789 if test -z "$BASH_VERSION$ZSH_VERSION" \
19790 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19791 as_echo='print -r --'
19792 as_echo_n='print -rn --'
19793 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19794 as_echo='printf %s\n'
19795 as_echo_n='printf %s'
19796 else
19797 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19798 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19799 as_echo_n='/usr/ucb/echo -n'
19800 else
19801 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19802 as_echo_n_body='eval
19803 arg=$1;
19804 case $arg in #(
19805 *"$as_nl"*)
19806 expr "X$arg" : "X\\(.*\\)$as_nl";
19807 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19808 esac;
19809 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19811 export as_echo_n_body
19812 as_echo_n='sh -c $as_echo_n_body as_echo'
19814 export as_echo_body
19815 as_echo='sh -c $as_echo_body as_echo'
19818 # The user is always right.
19819 if test "${PATH_SEPARATOR+set}" != set; then
19820 PATH_SEPARATOR=:
19821 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19822 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19823 PATH_SEPARATOR=';'
19828 # IFS
19829 # We need space, tab and new line, in precisely that order. Quoting is
19830 # there to prevent editors from complaining about space-tab.
19831 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19832 # splitting by setting IFS to empty value.)
19833 IFS=" "" $as_nl"
19835 # Find who we are. Look in the path if we contain no directory separator.
19836 as_myself=
19837 case $0 in #((
19838 *[\\/]* ) as_myself=$0 ;;
19839 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19840 for as_dir in $PATH
19842 IFS=$as_save_IFS
19843 test -z "$as_dir" && as_dir=.
19844 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19845 done
19846 IFS=$as_save_IFS
19849 esac
19850 # We did not find ourselves, most probably we were run as `sh COMMAND'
19851 # in which case we are not to be found in the path.
19852 if test "x$as_myself" = x; then
19853 as_myself=$0
19855 if test ! -f "$as_myself"; then
19856 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19857 exit 1
19860 # Unset variables that we do not need and which cause bugs (e.g. in
19861 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19862 # suppresses any "Segmentation fault" message there. '((' could
19863 # trigger a bug in pdksh 5.2.14.
19864 for as_var in BASH_ENV ENV MAIL MAILPATH
19865 do eval test x\${$as_var+set} = xset \
19866 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19867 done
19868 PS1='$ '
19869 PS2='> '
19870 PS4='+ '
19872 # NLS nuisances.
19873 LC_ALL=C
19874 export LC_ALL
19875 LANGUAGE=C
19876 export LANGUAGE
19878 # CDPATH.
19879 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19882 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19883 # ----------------------------------------
19884 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19885 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19886 # script with STATUS, using 1 if that was 0.
19887 as_fn_error ()
19889 as_status=$1; test $as_status -eq 0 && as_status=1
19890 if test "$4"; then
19891 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19892 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19894 $as_echo "$as_me: error: $2" >&2
19895 as_fn_exit $as_status
19896 } # as_fn_error
19899 # as_fn_set_status STATUS
19900 # -----------------------
19901 # Set $? to STATUS, without forking.
19902 as_fn_set_status ()
19904 return $1
19905 } # as_fn_set_status
19907 # as_fn_exit STATUS
19908 # -----------------
19909 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19910 as_fn_exit ()
19912 set +e
19913 as_fn_set_status $1
19914 exit $1
19915 } # as_fn_exit
19917 # as_fn_unset VAR
19918 # ---------------
19919 # Portably unset VAR.
19920 as_fn_unset ()
19922 { eval $1=; unset $1;}
19924 as_unset=as_fn_unset
19925 # as_fn_append VAR VALUE
19926 # ----------------------
19927 # Append the text in VALUE to the end of the definition contained in VAR. Take
19928 # advantage of any shell optimizations that allow amortized linear growth over
19929 # repeated appends, instead of the typical quadratic growth present in naive
19930 # implementations.
19931 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19932 eval 'as_fn_append ()
19934 eval $1+=\$2
19936 else
19937 as_fn_append ()
19939 eval $1=\$$1\$2
19941 fi # as_fn_append
19943 # as_fn_arith ARG...
19944 # ------------------
19945 # Perform arithmetic evaluation on the ARGs, and store the result in the
19946 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19947 # must be portable across $(()) and expr.
19948 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19949 eval 'as_fn_arith ()
19951 as_val=$(( $* ))
19953 else
19954 as_fn_arith ()
19956 as_val=`expr "$@" || test $? -eq 1`
19958 fi # as_fn_arith
19961 if expr a : '\(a\)' >/dev/null 2>&1 &&
19962 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19963 as_expr=expr
19964 else
19965 as_expr=false
19968 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19969 as_basename=basename
19970 else
19971 as_basename=false
19974 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19975 as_dirname=dirname
19976 else
19977 as_dirname=false
19980 as_me=`$as_basename -- "$0" ||
19981 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19982 X"$0" : 'X\(//\)$' \| \
19983 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19984 $as_echo X/"$0" |
19985 sed '/^.*\/\([^/][^/]*\)\/*$/{
19986 s//\1/
19989 /^X\/\(\/\/\)$/{
19990 s//\1/
19993 /^X\/\(\/\).*/{
19994 s//\1/
19997 s/.*/./; q'`
19999 # Avoid depending upon Character Ranges.
20000 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20001 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20002 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20003 as_cr_digits='0123456789'
20004 as_cr_alnum=$as_cr_Letters$as_cr_digits
20006 ECHO_C= ECHO_N= ECHO_T=
20007 case `echo -n x` in #(((((
20008 -n*)
20009 case `echo 'xy\c'` in
20010 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20011 xy) ECHO_C='\c';;
20012 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20013 ECHO_T=' ';;
20014 esac;;
20016 ECHO_N='-n';;
20017 esac
20019 rm -f conf$$ conf$$.exe conf$$.file
20020 if test -d conf$$.dir; then
20021 rm -f conf$$.dir/conf$$.file
20022 else
20023 rm -f conf$$.dir
20024 mkdir conf$$.dir 2>/dev/null
20026 if (echo >conf$$.file) 2>/dev/null; then
20027 if ln -s conf$$.file conf$$ 2>/dev/null; then
20028 as_ln_s='ln -s'
20029 # ... but there are two gotchas:
20030 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20031 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20032 # In both cases, we have to default to `cp -pR'.
20033 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20034 as_ln_s='cp -pR'
20035 elif ln conf$$.file conf$$ 2>/dev/null; then
20036 as_ln_s=ln
20037 else
20038 as_ln_s='cp -pR'
20040 else
20041 as_ln_s='cp -pR'
20043 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20044 rmdir conf$$.dir 2>/dev/null
20047 # as_fn_mkdir_p
20048 # -------------
20049 # Create "$as_dir" as a directory, including parents if necessary.
20050 as_fn_mkdir_p ()
20053 case $as_dir in #(
20054 -*) as_dir=./$as_dir;;
20055 esac
20056 test -d "$as_dir" || eval $as_mkdir_p || {
20057 as_dirs=
20058 while :; do
20059 case $as_dir in #(
20060 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20061 *) as_qdir=$as_dir;;
20062 esac
20063 as_dirs="'$as_qdir' $as_dirs"
20064 as_dir=`$as_dirname -- "$as_dir" ||
20065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20066 X"$as_dir" : 'X\(//\)[^/]' \| \
20067 X"$as_dir" : 'X\(//\)$' \| \
20068 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20069 $as_echo X"$as_dir" |
20070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20071 s//\1/
20074 /^X\(\/\/\)[^/].*/{
20075 s//\1/
20078 /^X\(\/\/\)$/{
20079 s//\1/
20082 /^X\(\/\).*/{
20083 s//\1/
20086 s/.*/./; q'`
20087 test -d "$as_dir" && break
20088 done
20089 test -z "$as_dirs" || eval "mkdir $as_dirs"
20090 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20093 } # as_fn_mkdir_p
20094 if mkdir -p . 2>/dev/null; then
20095 as_mkdir_p='mkdir -p "$as_dir"'
20096 else
20097 test -d ./-p && rmdir ./-p
20098 as_mkdir_p=false
20102 # as_fn_executable_p FILE
20103 # -----------------------
20104 # Test if FILE is an executable regular file.
20105 as_fn_executable_p ()
20107 test -f "$1" && test -x "$1"
20108 } # as_fn_executable_p
20109 as_test_x='test -x'
20110 as_executable_p=as_fn_executable_p
20112 # Sed expression to map a string onto a valid CPP name.
20113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20115 # Sed expression to map a string onto a valid variable name.
20116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20119 exec 6>&1
20120 ## ----------------------------------- ##
20121 ## Main body of $CONFIG_STATUS script. ##
20122 ## ----------------------------------- ##
20123 _ASEOF
20124 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20127 # Save the log message, to keep $0 and so on meaningful, and to
20128 # report actual input values of CONFIG_FILES etc. instead of their
20129 # values after options handling.
20130 ac_log="
20131 This file was extended by ld $as_me 2.43.50, which was
20132 generated by GNU Autoconf 2.69. Invocation command line was
20134 CONFIG_FILES = $CONFIG_FILES
20135 CONFIG_HEADERS = $CONFIG_HEADERS
20136 CONFIG_LINKS = $CONFIG_LINKS
20137 CONFIG_COMMANDS = $CONFIG_COMMANDS
20138 $ $0 $@
20140 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20143 _ACEOF
20145 case $ac_config_files in *"
20146 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20147 esac
20149 case $ac_config_headers in *"
20150 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20151 esac
20154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20155 # Files that config.status was made for.
20156 config_files="$ac_config_files"
20157 config_headers="$ac_config_headers"
20158 config_commands="$ac_config_commands"
20160 _ACEOF
20162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20163 ac_cs_usage="\
20164 \`$as_me' instantiates files and other configuration actions
20165 from templates according to the current configuration. Unless the files
20166 and actions are specified as TAGs, all are instantiated by default.
20168 Usage: $0 [OPTION]... [TAG]...
20170 -h, --help print this help, then exit
20171 -V, --version print version number and configuration settings, then exit
20172 --config print configuration, then exit
20173 -q, --quiet, --silent
20174 do not print progress messages
20175 -d, --debug don't remove temporary files
20176 --recheck update $as_me by reconfiguring in the same conditions
20177 --file=FILE[:TEMPLATE]
20178 instantiate the configuration file FILE
20179 --header=FILE[:TEMPLATE]
20180 instantiate the configuration header FILE
20182 Configuration files:
20183 $config_files
20185 Configuration headers:
20186 $config_headers
20188 Configuration commands:
20189 $config_commands
20191 Report bugs to the package provider."
20193 _ACEOF
20194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20195 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20196 ac_cs_version="\\
20197 ld config.status 2.43.50
20198 configured by $0, generated by GNU Autoconf 2.69,
20199 with options \\"\$ac_cs_config\\"
20201 Copyright (C) 2012 Free Software Foundation, Inc.
20202 This config.status script is free software; the Free Software Foundation
20203 gives unlimited permission to copy, distribute and modify it."
20205 ac_pwd='$ac_pwd'
20206 srcdir='$srcdir'
20207 INSTALL='$INSTALL'
20208 MKDIR_P='$MKDIR_P'
20209 AWK='$AWK'
20210 test -n "\$AWK" || AWK=awk
20211 _ACEOF
20213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20214 # The default lists apply if the user does not specify any file.
20215 ac_need_defaults=:
20216 while test $# != 0
20218 case $1 in
20219 --*=?*)
20220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20221 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20222 ac_shift=:
20224 --*=)
20225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20226 ac_optarg=
20227 ac_shift=:
20230 ac_option=$1
20231 ac_optarg=$2
20232 ac_shift=shift
20234 esac
20236 case $ac_option in
20237 # Handling of the options.
20238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20239 ac_cs_recheck=: ;;
20240 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20241 $as_echo "$ac_cs_version"; exit ;;
20242 --config | --confi | --conf | --con | --co | --c )
20243 $as_echo "$ac_cs_config"; exit ;;
20244 --debug | --debu | --deb | --de | --d | -d )
20245 debug=: ;;
20246 --file | --fil | --fi | --f )
20247 $ac_shift
20248 case $ac_optarg in
20249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20250 '') as_fn_error $? "missing file argument" ;;
20251 esac
20252 as_fn_append CONFIG_FILES " '$ac_optarg'"
20253 ac_need_defaults=false;;
20254 --header | --heade | --head | --hea )
20255 $ac_shift
20256 case $ac_optarg in
20257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20258 esac
20259 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20260 ac_need_defaults=false;;
20261 --he | --h)
20262 # Conflict between --help and --header
20263 as_fn_error $? "ambiguous option: \`$1'
20264 Try \`$0 --help' for more information.";;
20265 --help | --hel | -h )
20266 $as_echo "$ac_cs_usage"; exit ;;
20267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20269 ac_cs_silent=: ;;
20271 # This is an error.
20272 -*) as_fn_error $? "unrecognized option: \`$1'
20273 Try \`$0 --help' for more information." ;;
20275 *) as_fn_append ac_config_targets " $1"
20276 ac_need_defaults=false ;;
20278 esac
20279 shift
20280 done
20282 ac_configure_extra_args=
20284 if $ac_cs_silent; then
20285 exec 6>/dev/null
20286 ac_configure_extra_args="$ac_configure_extra_args --silent"
20289 _ACEOF
20290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20291 if \$ac_cs_recheck; then
20292 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20293 shift
20294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20295 CONFIG_SHELL='$SHELL'
20296 export CONFIG_SHELL
20297 exec "\$@"
20300 _ACEOF
20301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20302 exec 5>>config.log
20304 echo
20305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20306 ## Running $as_me. ##
20307 _ASBOX
20308 $as_echo "$ac_log"
20309 } >&5
20311 _ACEOF
20312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20314 # INIT-COMMANDS
20316 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20319 # The HP-UX ksh and POSIX shell print the target directory to stdout
20320 # if CDPATH is set.
20321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20323 sed_quote_subst='$sed_quote_subst'
20324 double_quote_subst='$double_quote_subst'
20325 delay_variable_subst='$delay_variable_subst'
20326 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20327 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20328 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20329 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20330 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20331 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20332 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20333 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20334 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20335 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20336 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20337 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20338 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20339 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20340 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20341 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20342 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20343 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20344 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20345 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20346 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20347 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20348 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20349 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20350 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20351 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20352 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20353 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20354 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20355 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20356 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20359 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20360 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20361 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20362 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20363 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20364 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20365 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20366 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20367 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20368 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20369 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20370 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20371 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20372 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20373 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20375 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20376 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20377 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20378 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20379 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20380 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20381 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20382 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20383 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20384 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20385 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20386 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20387 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20388 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20389 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20390 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20391 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20392 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20393 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20394 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20395 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20396 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20397 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20398 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20399 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20400 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20401 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20402 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20403 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20404 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20405 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20406 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20407 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20408 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20409 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20410 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20411 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20412 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20413 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20414 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20415 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20416 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20417 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20418 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20419 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20420 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20421 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20422 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20423 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20424 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20425 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20426 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20427 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20428 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20429 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20430 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20431 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20432 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20433 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20434 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20435 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20436 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20437 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20438 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20439 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20440 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20441 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20442 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20443 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20444 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20445 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20446 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20447 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20448 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20449 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20450 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20451 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20452 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20453 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20454 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20455 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20456 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20457 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20458 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20459 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20460 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20461 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20462 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20463 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20464 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20465 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20466 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20467 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20468 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20469 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20470 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20471 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20472 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20473 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20474 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20475 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20476 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20477 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20478 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20479 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20480 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20481 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20482 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20483 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20484 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20485 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20486 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20487 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20488 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20489 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20490 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20491 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20492 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20493 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20494 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20495 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20496 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20497 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20498 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20499 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20500 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20502 LTCC='$LTCC'
20503 LTCFLAGS='$LTCFLAGS'
20504 compiler='$compiler_DEFAULT'
20506 # A function that is used when there is no print builtin or printf.
20507 func_fallback_echo ()
20509 eval 'cat <<_LTECHO_EOF
20511 _LTECHO_EOF'
20514 # Quote evaled strings.
20515 for var in SHELL \
20516 ECHO \
20517 SED \
20518 GREP \
20519 EGREP \
20520 FGREP \
20521 LD \
20522 NM \
20523 LN_S \
20524 lt_SP2NL \
20525 lt_NL2SP \
20526 reload_flag \
20527 OBJDUMP \
20528 deplibs_check_method \
20529 file_magic_cmd \
20530 AR \
20531 AR_FLAGS \
20532 STRIP \
20533 RANLIB \
20534 CC \
20535 CFLAGS \
20536 compiler \
20537 lt_cv_sys_global_symbol_pipe \
20538 lt_cv_sys_global_symbol_to_cdecl \
20539 lt_cv_sys_global_symbol_to_c_name_address \
20540 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20541 lt_prog_compiler_no_builtin_flag \
20542 lt_prog_compiler_wl \
20543 lt_prog_compiler_pic \
20544 lt_prog_compiler_static \
20545 lt_cv_prog_compiler_c_o \
20546 need_locks \
20547 DSYMUTIL \
20548 NMEDIT \
20549 LIPO \
20550 OTOOL \
20551 OTOOL64 \
20552 shrext_cmds \
20553 export_dynamic_flag_spec \
20554 whole_archive_flag_spec \
20555 compiler_needs_object \
20556 with_gnu_ld \
20557 allow_undefined_flag \
20558 no_undefined_flag \
20559 hardcode_libdir_flag_spec \
20560 hardcode_libdir_flag_spec_ld \
20561 hardcode_libdir_separator \
20562 fix_srcfile_path \
20563 exclude_expsyms \
20564 include_expsyms \
20565 file_list_spec \
20566 variables_saved_for_relink \
20567 libname_spec \
20568 library_names_spec \
20569 soname_spec \
20570 install_override_mode \
20571 finish_eval \
20572 old_striplib \
20573 striplib \
20574 compiler_lib_search_dirs \
20575 predep_objects \
20576 postdep_objects \
20577 predeps \
20578 postdeps \
20579 compiler_lib_search_path \
20580 LD_CXX \
20581 reload_flag_CXX \
20582 compiler_CXX \
20583 lt_prog_compiler_no_builtin_flag_CXX \
20584 lt_prog_compiler_wl_CXX \
20585 lt_prog_compiler_pic_CXX \
20586 lt_prog_compiler_static_CXX \
20587 lt_cv_prog_compiler_c_o_CXX \
20588 export_dynamic_flag_spec_CXX \
20589 whole_archive_flag_spec_CXX \
20590 compiler_needs_object_CXX \
20591 with_gnu_ld_CXX \
20592 allow_undefined_flag_CXX \
20593 no_undefined_flag_CXX \
20594 hardcode_libdir_flag_spec_CXX \
20595 hardcode_libdir_flag_spec_ld_CXX \
20596 hardcode_libdir_separator_CXX \
20597 fix_srcfile_path_CXX \
20598 exclude_expsyms_CXX \
20599 include_expsyms_CXX \
20600 file_list_spec_CXX \
20601 compiler_lib_search_dirs_CXX \
20602 predep_objects_CXX \
20603 postdep_objects_CXX \
20604 predeps_CXX \
20605 postdeps_CXX \
20606 compiler_lib_search_path_CXX; do
20607 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20608 *[\\\\\\\`\\"\\\$]*)
20609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20614 esac
20615 done
20617 # Double-quote double-evaled strings.
20618 for var in reload_cmds \
20619 old_postinstall_cmds \
20620 old_postuninstall_cmds \
20621 old_archive_cmds \
20622 extract_expsyms_cmds \
20623 old_archive_from_new_cmds \
20624 old_archive_from_expsyms_cmds \
20625 archive_cmds \
20626 archive_expsym_cmds \
20627 module_cmds \
20628 module_expsym_cmds \
20629 export_symbols_cmds \
20630 prelink_cmds \
20631 postinstall_cmds \
20632 postuninstall_cmds \
20633 finish_cmds \
20634 sys_lib_search_path_spec \
20635 sys_lib_dlsearch_path_spec \
20636 reload_cmds_CXX \
20637 old_archive_cmds_CXX \
20638 old_archive_from_new_cmds_CXX \
20639 old_archive_from_expsyms_cmds_CXX \
20640 archive_cmds_CXX \
20641 archive_expsym_cmds_CXX \
20642 module_cmds_CXX \
20643 module_expsym_cmds_CXX \
20644 export_symbols_cmds_CXX \
20645 prelink_cmds_CXX; do
20646 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20647 *[\\\\\\\`\\"\\\$]*)
20648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20653 esac
20654 done
20656 ac_aux_dir='$ac_aux_dir'
20657 xsi_shell='$xsi_shell'
20658 lt_shell_append='$lt_shell_append'
20660 # See if we are running on zsh, and set the options which allow our
20661 # commands through without removal of \ escapes INIT.
20662 if test -n "\${ZSH_VERSION+set}" ; then
20663 setopt NO_GLOB_SUBST
20667 PACKAGE='$PACKAGE'
20668 VERSION='$VERSION'
20669 TIMESTAMP='$TIMESTAMP'
20670 RM='$RM'
20671 ofile='$ofile'
20677 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20678 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20679 # from automake.
20680 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20681 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20682 LINGUAS="${LINGUAS-%UNSET%}"
20684 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20685 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20686 # from automake.
20687 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20688 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20689 LINGUAS="${LINGUAS-%UNSET%}"
20693 _ACEOF
20695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20697 # Handling of arguments.
20698 for ac_config_target in $ac_config_targets
20700 case $ac_config_target in
20701 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20702 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20703 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20704 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20705 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20706 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20707 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20708 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20710 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20711 esac
20712 done
20715 # If the user did not use the arguments to specify the items to instantiate,
20716 # then the envvar interface is used. Set only those that are not.
20717 # We use the long form for the default assignment because of an extremely
20718 # bizarre bug on SunOS 4.1.3.
20719 if $ac_need_defaults; then
20720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20725 # Have a temporary directory for convenience. Make it in the build tree
20726 # simply because there is no reason against having it here, and in addition,
20727 # creating and moving files from /tmp can sometimes cause problems.
20728 # Hook for its removal unless debugging.
20729 # Note that there is a small window in which the directory will not be cleaned:
20730 # after its creation but before its name has been assigned to `$tmp'.
20731 $debug ||
20733 tmp= ac_tmp=
20734 trap 'exit_status=$?
20735 : "${ac_tmp:=$tmp}"
20736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20738 trap 'as_fn_exit 1' 1 2 13 15
20740 # Create a (secure) tmp directory for tmp files.
20743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20744 test -d "$tmp"
20745 } ||
20747 tmp=./conf$$-$RANDOM
20748 (umask 077 && mkdir "$tmp")
20749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20750 ac_tmp=$tmp
20752 # Set up the scripts for CONFIG_FILES section.
20753 # No need to generate them if there are no CONFIG_FILES.
20754 # This happens for instance with `./config.status config.h'.
20755 if test -n "$CONFIG_FILES"; then
20758 ac_cr=`echo X | tr X '\015'`
20759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20760 # But we know of no other shell where ac_cr would be empty at this
20761 # point, so we can use a bashism as a fallback.
20762 if test "x$ac_cr" = x; then
20763 eval ac_cr=\$\'\\r\'
20765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20767 ac_cs_awk_cr='\\r'
20768 else
20769 ac_cs_awk_cr=$ac_cr
20772 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20773 _ACEOF
20777 echo "cat >conf$$subs.awk <<_ACEOF" &&
20778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20779 echo "_ACEOF"
20780 } >conf$$subs.sh ||
20781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20783 ac_delim='%!_!# '
20784 for ac_last_try in false false false false false :; do
20785 . ./conf$$subs.sh ||
20786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20789 if test $ac_delim_n = $ac_delim_num; then
20790 break
20791 elif $ac_last_try; then
20792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20793 else
20794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20796 done
20797 rm -f conf$$subs.sh
20799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20800 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20801 _ACEOF
20802 sed -n '
20804 s/^/S["/; s/!.*/"]=/
20807 s/^[^!]*!//
20808 :repl
20809 t repl
20810 s/'"$ac_delim"'$//
20811 t delim
20814 s/\(.\{148\}\)..*/\1/
20815 t more1
20816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20819 b repl
20820 :more1
20821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20824 s/.\{148\}//
20825 t nl
20826 :delim
20828 s/\(.\{148\}\)..*/\1/
20829 t more2
20830 s/["\\]/\\&/g; s/^/"/; s/$/"/
20833 :more2
20834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20837 s/.\{148\}//
20838 t delim
20839 ' <conf$$subs.awk | sed '
20840 /^[^""]/{
20842 s/\n//
20844 ' >>$CONFIG_STATUS || ac_write_fail=1
20845 rm -f conf$$subs.awk
20846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20847 _ACAWK
20848 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20849 for (key in S) S_is_set[key] = 1
20850 FS = "\a"
20854 line = $ 0
20855 nfields = split(line, field, "@")
20856 substed = 0
20857 len = length(field[1])
20858 for (i = 2; i < nfields; i++) {
20859 key = field[i]
20860 keylen = length(key)
20861 if (S_is_set[key]) {
20862 value = S[key]
20863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20864 len += length(value) + length(field[++i])
20865 substed = 1
20866 } else
20867 len += 1 + keylen
20870 print line
20873 _ACAWK
20874 _ACEOF
20875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20876 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20877 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20878 else
20880 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20881 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20882 _ACEOF
20884 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20885 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20886 # trailing colons and then remove the whole line if VPATH becomes empty
20887 # (actually we leave an empty line to preserve line numbers).
20888 if test "x$srcdir" = x.; then
20889 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20891 s///
20892 s/^/:/
20893 s/[ ]*$/:/
20894 s/:\$(srcdir):/:/g
20895 s/:\${srcdir}:/:/g
20896 s/:@srcdir@:/:/g
20897 s/^:*//
20898 s/:*$//
20900 s/\(=[ ]*\).*/\1/
20902 s/\n//
20903 s/^[^=]*=[ ]*$//
20907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20908 fi # test -n "$CONFIG_FILES"
20910 # Set up the scripts for CONFIG_HEADERS section.
20911 # No need to generate them if there are no CONFIG_HEADERS.
20912 # This happens for instance with `./config.status Makefile'.
20913 if test -n "$CONFIG_HEADERS"; then
20914 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20915 BEGIN {
20916 _ACEOF
20918 # Transform confdefs.h into an awk script `defines.awk', embedded as
20919 # here-document in config.status, that substitutes the proper values into
20920 # config.h.in to produce config.h.
20922 # Create a delimiter string that does not exist in confdefs.h, to ease
20923 # handling of long lines.
20924 ac_delim='%!_!# '
20925 for ac_last_try in false false :; do
20926 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20927 if test -z "$ac_tt"; then
20928 break
20929 elif $ac_last_try; then
20930 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20931 else
20932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20934 done
20936 # For the awk script, D is an array of macro values keyed by name,
20937 # likewise P contains macro parameters if any. Preserve backslash
20938 # newline sequences.
20940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20941 sed -n '
20942 s/.\{148\}/&'"$ac_delim"'/g
20943 t rset
20944 :rset
20945 s/^[ ]*#[ ]*define[ ][ ]*/ /
20946 t def
20948 :def
20949 s/\\$//
20950 t bsnl
20951 s/["\\]/\\&/g
20952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20953 D["\1"]=" \3"/p
20954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20956 :bsnl
20957 s/["\\]/\\&/g
20958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20959 D["\1"]=" \3\\\\\\n"\\/p
20960 t cont
20961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20962 t cont
20964 :cont
20966 s/.\{148\}/&'"$ac_delim"'/g
20967 t clear
20968 :clear
20969 s/\\$//
20970 t bsnlc
20971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20973 :bsnlc
20974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20975 b cont
20976 ' <confdefs.h | sed '
20977 s/'"$ac_delim"'/"\\\
20978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20981 for (key in D) D_is_set[key] = 1
20982 FS = "\a"
20984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20985 line = \$ 0
20986 split(line, arg, " ")
20987 if (arg[1] == "#") {
20988 defundef = arg[2]
20989 mac1 = arg[3]
20990 } else {
20991 defundef = substr(arg[1], 2)
20992 mac1 = arg[2]
20994 split(mac1, mac2, "(") #)
20995 macro = mac2[1]
20996 prefix = substr(line, 1, index(line, defundef) - 1)
20997 if (D_is_set[macro]) {
20998 # Preserve the white space surrounding the "#".
20999 print prefix "define", macro P[macro] D[macro]
21000 next
21001 } else {
21002 # Replace #undef with comments. This is necessary, for example,
21003 # in the case of _POSIX_SOURCE, which is predefined and required
21004 # on some systems where configure will not decide to define it.
21005 if (defundef == "undef") {
21006 print "/*", prefix defundef, macro, "*/"
21007 next
21011 { print }
21012 _ACAWK
21013 _ACEOF
21014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21015 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21016 fi # test -n "$CONFIG_HEADERS"
21019 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21020 shift
21021 for ac_tag
21023 case $ac_tag in
21024 :[FHLC]) ac_mode=$ac_tag; continue;;
21025 esac
21026 case $ac_mode$ac_tag in
21027 :[FHL]*:*);;
21028 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21029 :[FH]-) ac_tag=-:-;;
21030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21031 esac
21032 ac_save_IFS=$IFS
21033 IFS=:
21034 set x $ac_tag
21035 IFS=$ac_save_IFS
21036 shift
21037 ac_file=$1
21038 shift
21040 case $ac_mode in
21041 :L) ac_source=$1;;
21042 :[FH])
21043 ac_file_inputs=
21044 for ac_f
21046 case $ac_f in
21047 -) ac_f="$ac_tmp/stdin";;
21048 *) # Look for the file first in the build tree, then in the source tree
21049 # (if the path is not absolute). The absolute path cannot be DOS-style,
21050 # because $ac_f cannot contain `:'.
21051 test -f "$ac_f" ||
21052 case $ac_f in
21053 [\\/$]*) false;;
21054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21055 esac ||
21056 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21057 esac
21058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21059 as_fn_append ac_file_inputs " '$ac_f'"
21060 done
21062 # Let's still pretend it is `configure' which instantiates (i.e., don't
21063 # use $as_me), people would be surprised to read:
21064 # /* config.h. Generated by config.status. */
21065 configure_input='Generated from '`
21066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21067 `' by configure.'
21068 if test x"$ac_file" != x-; then
21069 configure_input="$ac_file. $configure_input"
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21071 $as_echo "$as_me: creating $ac_file" >&6;}
21073 # Neutralize special characters interpreted by sed in replacement strings.
21074 case $configure_input in #(
21075 *\&* | *\|* | *\\* )
21076 ac_sed_conf_input=`$as_echo "$configure_input" |
21077 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21078 *) ac_sed_conf_input=$configure_input;;
21079 esac
21081 case $ac_tag in
21082 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21084 esac
21086 esac
21088 ac_dir=`$as_dirname -- "$ac_file" ||
21089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21090 X"$ac_file" : 'X\(//\)[^/]' \| \
21091 X"$ac_file" : 'X\(//\)$' \| \
21092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21093 $as_echo X"$ac_file" |
21094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21095 s//\1/
21098 /^X\(\/\/\)[^/].*/{
21099 s//\1/
21102 /^X\(\/\/\)$/{
21103 s//\1/
21106 /^X\(\/\).*/{
21107 s//\1/
21110 s/.*/./; q'`
21111 as_dir="$ac_dir"; as_fn_mkdir_p
21112 ac_builddir=.
21114 case "$ac_dir" in
21115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21118 # A ".." for each directory in $ac_dir_suffix.
21119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21120 case $ac_top_builddir_sub in
21121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21123 esac ;;
21124 esac
21125 ac_abs_top_builddir=$ac_pwd
21126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21127 # for backward compatibility:
21128 ac_top_builddir=$ac_top_build_prefix
21130 case $srcdir in
21131 .) # We are building in place.
21132 ac_srcdir=.
21133 ac_top_srcdir=$ac_top_builddir_sub
21134 ac_abs_top_srcdir=$ac_pwd ;;
21135 [\\/]* | ?:[\\/]* ) # Absolute name.
21136 ac_srcdir=$srcdir$ac_dir_suffix;
21137 ac_top_srcdir=$srcdir
21138 ac_abs_top_srcdir=$srcdir ;;
21139 *) # Relative name.
21140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21141 ac_top_srcdir=$ac_top_build_prefix$srcdir
21142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21143 esac
21144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21147 case $ac_mode in
21150 # CONFIG_FILE
21153 case $INSTALL in
21154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21155 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21156 esac
21157 ac_MKDIR_P=$MKDIR_P
21158 case $MKDIR_P in
21159 [\\/$]* | ?:[\\/]* ) ;;
21160 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21161 esac
21162 _ACEOF
21164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21165 # If the template does not know about datarootdir, expand it.
21166 # FIXME: This hack should be removed a few years after 2.60.
21167 ac_datarootdir_hack=; ac_datarootdir_seen=
21168 ac_sed_dataroot='
21169 /datarootdir/ {
21173 /@datadir@/p
21174 /@docdir@/p
21175 /@infodir@/p
21176 /@localedir@/p
21177 /@mandir@/p'
21178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21179 *datarootdir*) ac_datarootdir_seen=yes;;
21180 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21183 _ACEOF
21184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21185 ac_datarootdir_hack='
21186 s&@datadir@&$datadir&g
21187 s&@docdir@&$docdir&g
21188 s&@infodir@&$infodir&g
21189 s&@localedir@&$localedir&g
21190 s&@mandir@&$mandir&g
21191 s&\\\${datarootdir}&$datarootdir&g' ;;
21192 esac
21193 _ACEOF
21195 # Neutralize VPATH when `$srcdir' = `.'.
21196 # Shell code in configure.ac might set extrasub.
21197 # FIXME: do we really want to maintain this feature?
21198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21199 ac_sed_extra="$ac_vpsub
21200 $extrasub
21201 _ACEOF
21202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21205 s|@configure_input@|$ac_sed_conf_input|;t t
21206 s&@top_builddir@&$ac_top_builddir_sub&;t t
21207 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21208 s&@srcdir@&$ac_srcdir&;t t
21209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21210 s&@top_srcdir@&$ac_top_srcdir&;t t
21211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21212 s&@builddir@&$ac_builddir&;t t
21213 s&@abs_builddir@&$ac_abs_builddir&;t t
21214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21215 s&@INSTALL@&$ac_INSTALL&;t t
21216 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21217 $ac_datarootdir_hack
21219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21220 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21223 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21225 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21227 which seems to be undefined. Please make sure it is defined" >&5
21228 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21229 which seems to be undefined. Please make sure it is defined" >&2;}
21231 rm -f "$ac_tmp/stdin"
21232 case $ac_file in
21233 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21234 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21235 esac \
21236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21240 # CONFIG_HEADER
21242 if test x"$ac_file" != x-; then
21244 $as_echo "/* $configure_input */" \
21245 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21246 } >"$ac_tmp/config.h" \
21247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21248 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21250 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21251 else
21252 rm -f "$ac_file"
21253 mv "$ac_tmp/config.h" "$ac_file" \
21254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21256 else
21257 $as_echo "/* $configure_input */" \
21258 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21259 || as_fn_error $? "could not create -" "$LINENO" 5
21261 # Compute "$ac_file"'s index in $config_headers.
21262 _am_arg="$ac_file"
21263 _am_stamp_count=1
21264 for _am_header in $config_headers :; do
21265 case $_am_header in
21266 $_am_arg | $_am_arg:* )
21267 break ;;
21269 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21270 esac
21271 done
21272 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21273 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21274 X"$_am_arg" : 'X\(//\)[^/]' \| \
21275 X"$_am_arg" : 'X\(//\)$' \| \
21276 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21277 $as_echo X"$_am_arg" |
21278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21279 s//\1/
21282 /^X\(\/\/\)[^/].*/{
21283 s//\1/
21286 /^X\(\/\/\)$/{
21287 s//\1/
21290 /^X\(\/\).*/{
21291 s//\1/
21294 s/.*/./; q'`/stamp-h$_am_stamp_count
21297 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21298 $as_echo "$as_me: executing $ac_file commands" >&6;}
21300 esac
21303 case $ac_file$ac_mode in
21304 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21305 # Older Autoconf quotes --file arguments for eval, but not when files
21306 # are listed without --file. Let's play safe and only enable the eval
21307 # if we detect the quoting.
21308 case $CONFIG_FILES in
21309 *\'*) eval set x "$CONFIG_FILES" ;;
21310 *) set x $CONFIG_FILES ;;
21311 esac
21312 shift
21313 for mf
21315 # Strip MF so we end up with the name of the file.
21316 mf=`echo "$mf" | sed -e 's/:.*$//'`
21317 # Check whether this is an Automake generated Makefile or not.
21318 # We used to match only the files named 'Makefile.in', but
21319 # some people rename them; so instead we look at the file content.
21320 # Grep'ing the first line is not enough: some people post-process
21321 # each Makefile.in and add a new line on top of each file to say so.
21322 # Grep'ing the whole file is not good either: AIX grep has a line
21323 # limit of 2048, but all sed's we know have understand at least 4000.
21324 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21325 dirpart=`$as_dirname -- "$mf" ||
21326 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21327 X"$mf" : 'X\(//\)[^/]' \| \
21328 X"$mf" : 'X\(//\)$' \| \
21329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21330 $as_echo X"$mf" |
21331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21332 s//\1/
21335 /^X\(\/\/\)[^/].*/{
21336 s//\1/
21339 /^X\(\/\/\)$/{
21340 s//\1/
21343 /^X\(\/\).*/{
21344 s//\1/
21347 s/.*/./; q'`
21348 else
21349 continue
21351 # Extract the definition of DEPDIR, am__include, and am__quote
21352 # from the Makefile without running 'make'.
21353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21354 test -z "$DEPDIR" && continue
21355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21356 test -z "$am__include" && continue
21357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21358 # Find all dependency output files, they are included files with
21359 # $(DEPDIR) in their names. We invoke sed twice because it is the
21360 # simplest approach to changing $(DEPDIR) to its actual value in the
21361 # expansion.
21362 for file in `sed -n "
21363 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21364 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21365 # Make sure the directory exists.
21366 test -f "$dirpart/$file" && continue
21367 fdir=`$as_dirname -- "$file" ||
21368 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21369 X"$file" : 'X\(//\)[^/]' \| \
21370 X"$file" : 'X\(//\)$' \| \
21371 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21372 $as_echo X"$file" |
21373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21374 s//\1/
21377 /^X\(\/\/\)[^/].*/{
21378 s//\1/
21381 /^X\(\/\/\)$/{
21382 s//\1/
21385 /^X\(\/\).*/{
21386 s//\1/
21389 s/.*/./; q'`
21390 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21391 # echo "creating $dirpart/$file"
21392 echo '# dummy' > "$dirpart/$file"
21393 done
21394 done
21397 "libtool":C)
21399 # See if we are running on zsh, and set the options which allow our
21400 # commands through without removal of \ escapes.
21401 if test -n "${ZSH_VERSION+set}" ; then
21402 setopt NO_GLOB_SUBST
21405 cfgfile="${ofile}T"
21406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21407 $RM "$cfgfile"
21409 cat <<_LT_EOF >> "$cfgfile"
21410 #! $SHELL
21412 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21413 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21415 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21417 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21418 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21419 # Written by Gordon Matzigkeit, 1996
21421 # This file is part of GNU Libtool.
21423 # GNU Libtool is free software; you can redistribute it and/or
21424 # modify it under the terms of the GNU General Public License as
21425 # published by the Free Software Foundation; either version 2 of
21426 # the License, or (at your option) any later version.
21428 # As a special exception to the GNU General Public License,
21429 # if you distribute this file as part of a program or library that
21430 # is built using GNU Libtool, you may include this file under the
21431 # same distribution terms that you use for the rest of that program.
21433 # GNU Libtool is distributed in the hope that it will be useful,
21434 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21435 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21436 # GNU General Public License for more details.
21438 # You should have received a copy of the GNU General Public License
21439 # along with GNU Libtool; see the file COPYING. If not, a copy
21440 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21441 # obtained by writing to the Free Software Foundation, Inc.,
21442 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21445 # The names of the tagged configurations supported by this script.
21446 available_tags="CXX "
21448 # ### BEGIN LIBTOOL CONFIG
21450 # Which release of libtool.m4 was used?
21451 macro_version=$macro_version
21452 macro_revision=$macro_revision
21454 # Whether or not to build shared libraries.
21455 build_libtool_libs=$enable_shared
21457 # Whether or not to build static libraries.
21458 build_old_libs=$enable_static
21460 # What type of objects to build.
21461 pic_mode=$pic_mode
21463 # Whether or not to optimize for fast installation.
21464 fast_install=$enable_fast_install
21466 # Shell to use when invoking shell scripts.
21467 SHELL=$lt_SHELL
21469 # An echo program that protects backslashes.
21470 ECHO=$lt_ECHO
21472 # The host system.
21473 host_alias=$host_alias
21474 host=$host
21475 host_os=$host_os
21477 # The build system.
21478 build_alias=$build_alias
21479 build=$build
21480 build_os=$build_os
21482 # A sed program that does not truncate output.
21483 SED=$lt_SED
21485 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21486 Xsed="\$SED -e 1s/^X//"
21488 # A grep program that handles long lines.
21489 GREP=$lt_GREP
21491 # An ERE matcher.
21492 EGREP=$lt_EGREP
21494 # A literal string matcher.
21495 FGREP=$lt_FGREP
21497 # A BSD- or MS-compatible name lister.
21498 NM=$lt_NM
21500 # Whether we need soft or hard links.
21501 LN_S=$lt_LN_S
21503 # What is the maximum length of a command?
21504 max_cmd_len=$max_cmd_len
21506 # Object file suffix (normally "o").
21507 objext=$ac_objext
21509 # Executable file suffix (normally "").
21510 exeext=$exeext
21512 # whether the shell understands "unset".
21513 lt_unset=$lt_unset
21515 # turn spaces into newlines.
21516 SP2NL=$lt_lt_SP2NL
21518 # turn newlines into spaces.
21519 NL2SP=$lt_lt_NL2SP
21521 # An object symbol dumper.
21522 OBJDUMP=$lt_OBJDUMP
21524 # Method to check whether dependent libraries are shared objects.
21525 deplibs_check_method=$lt_deplibs_check_method
21527 # Command to use when deplibs_check_method == "file_magic".
21528 file_magic_cmd=$lt_file_magic_cmd
21530 # The archiver.
21531 AR=$lt_AR
21532 AR_FLAGS=$lt_AR_FLAGS
21534 # A symbol stripping program.
21535 STRIP=$lt_STRIP
21537 # Commands used to install an old-style archive.
21538 RANLIB=$lt_RANLIB
21539 old_postinstall_cmds=$lt_old_postinstall_cmds
21540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21542 # Whether to use a lock for old archive extraction.
21543 lock_old_archive_extraction=$lock_old_archive_extraction
21545 # A C compiler.
21546 LTCC=$lt_CC
21548 # LTCC compiler flags.
21549 LTCFLAGS=$lt_CFLAGS
21551 # Take the output of nm and produce a listing of raw symbols and C names.
21552 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21554 # Transform the output of nm in a proper C declaration.
21555 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21557 # Transform the output of nm in a C name address pair.
21558 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21560 # Transform the output of nm in a C name address pair when lib prefix is needed.
21561 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21563 # The name of the directory that contains temporary libtool files.
21564 objdir=$objdir
21566 # Used to examine libraries when file_magic_cmd begins with "file".
21567 MAGIC_CMD=$MAGIC_CMD
21569 # Must we lock files when doing compilation?
21570 need_locks=$lt_need_locks
21572 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21573 DSYMUTIL=$lt_DSYMUTIL
21575 # Tool to change global to local symbols on Mac OS X.
21576 NMEDIT=$lt_NMEDIT
21578 # Tool to manipulate fat objects and archives on Mac OS X.
21579 LIPO=$lt_LIPO
21581 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21582 OTOOL=$lt_OTOOL
21584 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21585 OTOOL64=$lt_OTOOL64
21587 # Old archive suffix (normally "a").
21588 libext=$libext
21590 # Shared library suffix (normally ".so").
21591 shrext_cmds=$lt_shrext_cmds
21593 # The commands to extract the exported symbol list from a shared archive.
21594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21596 # Variables whose values should be saved in libtool wrapper scripts and
21597 # restored at link time.
21598 variables_saved_for_relink=$lt_variables_saved_for_relink
21600 # Do we need the "lib" prefix for modules?
21601 need_lib_prefix=$need_lib_prefix
21603 # Do we need a version for libraries?
21604 need_version=$need_version
21606 # Library versioning type.
21607 version_type=$version_type
21609 # Shared library runtime path variable.
21610 runpath_var=$runpath_var
21612 # Shared library path variable.
21613 shlibpath_var=$shlibpath_var
21615 # Is shlibpath searched before the hard-coded library search path?
21616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21618 # Format of library name prefix.
21619 libname_spec=$lt_libname_spec
21621 # List of archive names. First name is the real one, the rest are links.
21622 # The last name is the one that the linker finds with -lNAME
21623 library_names_spec=$lt_library_names_spec
21625 # The coded name of the library, if different from the real name.
21626 soname_spec=$lt_soname_spec
21628 # Permission mode override for installation of shared libraries.
21629 install_override_mode=$lt_install_override_mode
21631 # Command to use after installation of a shared archive.
21632 postinstall_cmds=$lt_postinstall_cmds
21634 # Command to use after uninstallation of a shared archive.
21635 postuninstall_cmds=$lt_postuninstall_cmds
21637 # Commands used to finish a libtool library installation in a directory.
21638 finish_cmds=$lt_finish_cmds
21640 # As "finish_cmds", except a single script fragment to be evaled but
21641 # not shown.
21642 finish_eval=$lt_finish_eval
21644 # Whether we should hardcode library paths into libraries.
21645 hardcode_into_libs=$hardcode_into_libs
21647 # Compile-time system search path for libraries.
21648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21650 # Run-time system search path for libraries.
21651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21653 # Whether dlopen is supported.
21654 dlopen_support=$enable_dlopen
21656 # Whether dlopen of programs is supported.
21657 dlopen_self=$enable_dlopen_self
21659 # Whether dlopen of statically linked programs is supported.
21660 dlopen_self_static=$enable_dlopen_self_static
21662 # Commands to strip libraries.
21663 old_striplib=$lt_old_striplib
21664 striplib=$lt_striplib
21667 # The linker used to build libraries.
21668 LD=$lt_LD
21670 # How to create reloadable object files.
21671 reload_flag=$lt_reload_flag
21672 reload_cmds=$lt_reload_cmds
21674 # Commands used to build an old-style archive.
21675 old_archive_cmds=$lt_old_archive_cmds
21677 # A language specific compiler.
21678 CC=$lt_compiler
21680 # Is the compiler the GNU compiler?
21681 with_gcc=$GCC
21683 # Compiler flag to turn off builtin functions.
21684 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21686 # How to pass a linker flag through the compiler.
21687 wl=$lt_lt_prog_compiler_wl
21689 # Additional compiler flags for building library objects.
21690 pic_flag=$lt_lt_prog_compiler_pic
21692 # Compiler flag to prevent dynamic linking.
21693 link_static_flag=$lt_lt_prog_compiler_static
21695 # Does compiler simultaneously support -c and -o options?
21696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21698 # Whether or not to add -lc for building shared libraries.
21699 build_libtool_need_lc=$archive_cmds_need_lc
21701 # Whether or not to disallow shared libs when runtime libs are static.
21702 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21704 # Compiler flag to allow reflexive dlopens.
21705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21707 # Compiler flag to generate shared objects directly from archives.
21708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21710 # Whether the compiler copes with passing no objects directly.
21711 compiler_needs_object=$lt_compiler_needs_object
21713 # Create an old-style archive from a shared archive.
21714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21716 # Create a temporary old-style archive to link instead of a shared archive.
21717 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21719 # Commands used to build a shared archive.
21720 archive_cmds=$lt_archive_cmds
21721 archive_expsym_cmds=$lt_archive_expsym_cmds
21723 # Commands used to build a loadable module if different from building
21724 # a shared archive.
21725 module_cmds=$lt_module_cmds
21726 module_expsym_cmds=$lt_module_expsym_cmds
21728 # Whether we are building with GNU ld or not.
21729 with_gnu_ld=$lt_with_gnu_ld
21731 # Flag that allows shared libraries with undefined symbols to be built.
21732 allow_undefined_flag=$lt_allow_undefined_flag
21734 # Flag that enforces no undefined symbols.
21735 no_undefined_flag=$lt_no_undefined_flag
21737 # Flag to hardcode \$libdir into a binary during linking.
21738 # This must work even if \$libdir does not exist
21739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21741 # If ld is used when linking, flag to hardcode \$libdir into a binary
21742 # during linking. This must work even if \$libdir does not exist.
21743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21745 # Whether we need a single "-rpath" flag with a separated argument.
21746 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21748 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21749 # DIR into the resulting binary.
21750 hardcode_direct=$hardcode_direct
21752 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21753 # DIR into the resulting binary and the resulting library dependency is
21754 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21755 # library is relocated.
21756 hardcode_direct_absolute=$hardcode_direct_absolute
21758 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21759 # into the resulting binary.
21760 hardcode_minus_L=$hardcode_minus_L
21762 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21763 # into the resulting binary.
21764 hardcode_shlibpath_var=$hardcode_shlibpath_var
21766 # Set to "yes" if building a shared library automatically hardcodes DIR
21767 # into the library and all subsequent libraries and executables linked
21768 # against it.
21769 hardcode_automatic=$hardcode_automatic
21771 # Set to yes if linker adds runtime paths of dependent libraries
21772 # to runtime path list.
21773 inherit_rpath=$inherit_rpath
21775 # Whether libtool must link a program against all its dependency libraries.
21776 link_all_deplibs=$link_all_deplibs
21778 # Fix the shell variable \$srcfile for the compiler.
21779 fix_srcfile_path=$lt_fix_srcfile_path
21781 # Set to "yes" if exported symbols are required.
21782 always_export_symbols=$always_export_symbols
21784 # The commands to list exported symbols.
21785 export_symbols_cmds=$lt_export_symbols_cmds
21787 # Symbols that should not be listed in the preloaded symbols.
21788 exclude_expsyms=$lt_exclude_expsyms
21790 # Symbols that must always be exported.
21791 include_expsyms=$lt_include_expsyms
21793 # Commands necessary for linking programs (against libraries) with templates.
21794 prelink_cmds=$lt_prelink_cmds
21796 # Specify filename containing input files.
21797 file_list_spec=$lt_file_list_spec
21799 # How to hardcode a shared library path into an executable.
21800 hardcode_action=$hardcode_action
21802 # The directories searched by this compiler when creating a shared library.
21803 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21805 # Dependencies to place before and after the objects being linked to
21806 # create a shared library.
21807 predep_objects=$lt_predep_objects
21808 postdep_objects=$lt_postdep_objects
21809 predeps=$lt_predeps
21810 postdeps=$lt_postdeps
21812 # The library search path used internally by the compiler when linking
21813 # a shared library.
21814 compiler_lib_search_path=$lt_compiler_lib_search_path
21816 # ### END LIBTOOL CONFIG
21818 _LT_EOF
21820 case $host_os in
21821 aix3*)
21822 cat <<\_LT_EOF >> "$cfgfile"
21823 # AIX sometimes has problems with the GCC collect2 program. For some
21824 # reason, if we set the COLLECT_NAMES environment variable, the problems
21825 # vanish in a puff of smoke.
21826 if test "X${COLLECT_NAMES+set}" != Xset; then
21827 COLLECT_NAMES=
21828 export COLLECT_NAMES
21830 _LT_EOF
21832 esac
21835 ltmain="$ac_aux_dir/ltmain.sh"
21838 # We use sed instead of cat because bash on DJGPP gets confused if
21839 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21840 # text mode, it properly converts lines to CR/LF. This bash problem
21841 # is reportedly fixed, but why not run on old versions too?
21842 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21843 || (rm -f "$cfgfile"; exit 1)
21845 case $xsi_shell in
21846 yes)
21847 cat << \_LT_EOF >> "$cfgfile"
21849 # func_dirname file append nondir_replacement
21850 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21851 # otherwise set result to NONDIR_REPLACEMENT.
21852 func_dirname ()
21854 case ${1} in
21855 */*) func_dirname_result="${1%/*}${2}" ;;
21856 * ) func_dirname_result="${3}" ;;
21857 esac
21860 # func_basename file
21861 func_basename ()
21863 func_basename_result="${1##*/}"
21866 # func_dirname_and_basename file append nondir_replacement
21867 # perform func_basename and func_dirname in a single function
21868 # call:
21869 # dirname: Compute the dirname of FILE. If nonempty,
21870 # add APPEND to the result, otherwise set result
21871 # to NONDIR_REPLACEMENT.
21872 # value returned in "$func_dirname_result"
21873 # basename: Compute filename of FILE.
21874 # value retuned in "$func_basename_result"
21875 # Implementation must be kept synchronized with func_dirname
21876 # and func_basename. For efficiency, we do not delegate to
21877 # those functions but instead duplicate the functionality here.
21878 func_dirname_and_basename ()
21880 case ${1} in
21881 */*) func_dirname_result="${1%/*}${2}" ;;
21882 * ) func_dirname_result="${3}" ;;
21883 esac
21884 func_basename_result="${1##*/}"
21887 # func_stripname prefix suffix name
21888 # strip PREFIX and SUFFIX off of NAME.
21889 # PREFIX and SUFFIX must not contain globbing or regex special
21890 # characters, hashes, percent signs, but SUFFIX may contain a leading
21891 # dot (in which case that matches only a dot).
21892 func_stripname ()
21894 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21895 # positional parameters, so assign one to ordinary parameter first.
21896 func_stripname_result=${3}
21897 func_stripname_result=${func_stripname_result#"${1}"}
21898 func_stripname_result=${func_stripname_result%"${2}"}
21901 # func_opt_split
21902 func_opt_split ()
21904 func_opt_split_opt=${1%%=*}
21905 func_opt_split_arg=${1#*=}
21908 # func_lo2o object
21909 func_lo2o ()
21911 case ${1} in
21912 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21913 *) func_lo2o_result=${1} ;;
21914 esac
21917 # func_xform libobj-or-source
21918 func_xform ()
21920 func_xform_result=${1%.*}.lo
21923 # func_arith arithmetic-term...
21924 func_arith ()
21926 func_arith_result=$(( $* ))
21929 # func_len string
21930 # STRING may not start with a hyphen.
21931 func_len ()
21933 func_len_result=${#1}
21936 _LT_EOF
21938 *) # Bourne compatible functions.
21939 cat << \_LT_EOF >> "$cfgfile"
21941 # func_dirname file append nondir_replacement
21942 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21943 # otherwise set result to NONDIR_REPLACEMENT.
21944 func_dirname ()
21946 # Extract subdirectory from the argument.
21947 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21948 if test "X$func_dirname_result" = "X${1}"; then
21949 func_dirname_result="${3}"
21950 else
21951 func_dirname_result="$func_dirname_result${2}"
21955 # func_basename file
21956 func_basename ()
21958 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21962 # func_stripname prefix suffix name
21963 # strip PREFIX and SUFFIX off of NAME.
21964 # PREFIX and SUFFIX must not contain globbing or regex special
21965 # characters, hashes, percent signs, but SUFFIX may contain a leading
21966 # dot (in which case that matches only a dot).
21967 # func_strip_suffix prefix name
21968 func_stripname ()
21970 case ${2} in
21971 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21972 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21973 esac
21976 # sed scripts:
21977 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21978 my_sed_long_arg='1s/^-[^=]*=//'
21980 # func_opt_split
21981 func_opt_split ()
21983 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21984 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21987 # func_lo2o object
21988 func_lo2o ()
21990 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
21993 # func_xform libobj-or-source
21994 func_xform ()
21996 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21999 # func_arith arithmetic-term...
22000 func_arith ()
22002 func_arith_result=`expr "$@"`
22005 # func_len string
22006 # STRING may not start with a hyphen.
22007 func_len ()
22009 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22012 _LT_EOF
22013 esac
22015 case $lt_shell_append in
22016 yes)
22017 cat << \_LT_EOF >> "$cfgfile"
22019 # func_append var value
22020 # Append VALUE to the end of shell variable VAR.
22021 func_append ()
22023 eval "$1+=\$2"
22025 _LT_EOF
22028 cat << \_LT_EOF >> "$cfgfile"
22030 # func_append var value
22031 # Append VALUE to the end of shell variable VAR.
22032 func_append ()
22034 eval "$1=\$$1\$2"
22037 _LT_EOF
22039 esac
22042 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22043 || (rm -f "$cfgfile"; exit 1)
22045 mv -f "$cfgfile" "$ofile" ||
22046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22047 chmod +x "$ofile"
22050 cat <<_LT_EOF >> "$ofile"
22052 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22054 # The linker used to build libraries.
22055 LD=$lt_LD_CXX
22057 # How to create reloadable object files.
22058 reload_flag=$lt_reload_flag_CXX
22059 reload_cmds=$lt_reload_cmds_CXX
22061 # Commands used to build an old-style archive.
22062 old_archive_cmds=$lt_old_archive_cmds_CXX
22064 # A language specific compiler.
22065 CC=$lt_compiler_CXX
22067 # Is the compiler the GNU compiler?
22068 with_gcc=$GCC_CXX
22070 # Compiler flag to turn off builtin functions.
22071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22073 # How to pass a linker flag through the compiler.
22074 wl=$lt_lt_prog_compiler_wl_CXX
22076 # Additional compiler flags for building library objects.
22077 pic_flag=$lt_lt_prog_compiler_pic_CXX
22079 # Compiler flag to prevent dynamic linking.
22080 link_static_flag=$lt_lt_prog_compiler_static_CXX
22082 # Does compiler simultaneously support -c and -o options?
22083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22085 # Whether or not to add -lc for building shared libraries.
22086 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22088 # Whether or not to disallow shared libs when runtime libs are static.
22089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22091 # Compiler flag to allow reflexive dlopens.
22092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22094 # Compiler flag to generate shared objects directly from archives.
22095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22097 # Whether the compiler copes with passing no objects directly.
22098 compiler_needs_object=$lt_compiler_needs_object_CXX
22100 # Create an old-style archive from a shared archive.
22101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22103 # Create a temporary old-style archive to link instead of a shared archive.
22104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22106 # Commands used to build a shared archive.
22107 archive_cmds=$lt_archive_cmds_CXX
22108 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22110 # Commands used to build a loadable module if different from building
22111 # a shared archive.
22112 module_cmds=$lt_module_cmds_CXX
22113 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22115 # Whether we are building with GNU ld or not.
22116 with_gnu_ld=$lt_with_gnu_ld_CXX
22118 # Flag that allows shared libraries with undefined symbols to be built.
22119 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22121 # Flag that enforces no undefined symbols.
22122 no_undefined_flag=$lt_no_undefined_flag_CXX
22124 # Flag to hardcode \$libdir into a binary during linking.
22125 # This must work even if \$libdir does not exist
22126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22128 # If ld is used when linking, flag to hardcode \$libdir into a binary
22129 # during linking. This must work even if \$libdir does not exist.
22130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22132 # Whether we need a single "-rpath" flag with a separated argument.
22133 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22136 # DIR into the resulting binary.
22137 hardcode_direct=$hardcode_direct_CXX
22139 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22140 # DIR into the resulting binary and the resulting library dependency is
22141 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22142 # library is relocated.
22143 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22145 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22146 # into the resulting binary.
22147 hardcode_minus_L=$hardcode_minus_L_CXX
22149 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22150 # into the resulting binary.
22151 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22153 # Set to "yes" if building a shared library automatically hardcodes DIR
22154 # into the library and all subsequent libraries and executables linked
22155 # against it.
22156 hardcode_automatic=$hardcode_automatic_CXX
22158 # Set to yes if linker adds runtime paths of dependent libraries
22159 # to runtime path list.
22160 inherit_rpath=$inherit_rpath_CXX
22162 # Whether libtool must link a program against all its dependency libraries.
22163 link_all_deplibs=$link_all_deplibs_CXX
22165 # Fix the shell variable \$srcfile for the compiler.
22166 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22168 # Set to "yes" if exported symbols are required.
22169 always_export_symbols=$always_export_symbols_CXX
22171 # The commands to list exported symbols.
22172 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22174 # Symbols that should not be listed in the preloaded symbols.
22175 exclude_expsyms=$lt_exclude_expsyms_CXX
22177 # Symbols that must always be exported.
22178 include_expsyms=$lt_include_expsyms_CXX
22180 # Commands necessary for linking programs (against libraries) with templates.
22181 prelink_cmds=$lt_prelink_cmds_CXX
22183 # Specify filename containing input files.
22184 file_list_spec=$lt_file_list_spec_CXX
22186 # How to hardcode a shared library path into an executable.
22187 hardcode_action=$hardcode_action_CXX
22189 # The directories searched by this compiler when creating a shared library.
22190 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22192 # Dependencies to place before and after the objects being linked to
22193 # create a shared library.
22194 predep_objects=$lt_predep_objects_CXX
22195 postdep_objects=$lt_postdep_objects_CXX
22196 predeps=$lt_predeps_CXX
22197 postdeps=$lt_postdeps_CXX
22199 # The library search path used internally by the compiler when linking
22200 # a shared library.
22201 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22203 # ### END LIBTOOL TAG CONFIG: CXX
22204 _LT_EOF
22207 "default-1":C)
22208 for ac_file in $CONFIG_FILES; do
22209 # Support "outfile[:infile[:infile...]]"
22210 case "$ac_file" in
22211 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22212 esac
22213 # PO directories have a Makefile.in generated from Makefile.in.in.
22214 case "$ac_file" in */Makefile.in)
22215 # Adjust a relative srcdir.
22216 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22217 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22218 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22219 # In autoconf-2.13 it is called $ac_given_srcdir.
22220 # In autoconf-2.50 it is called $srcdir.
22221 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22222 case "$ac_given_srcdir" in
22223 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22224 /*) top_srcdir="$ac_given_srcdir" ;;
22225 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22226 esac
22227 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22228 rm -f "$ac_dir/POTFILES"
22229 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22230 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22231 POMAKEFILEDEPS="POTFILES.in"
22232 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22233 # on $ac_dir but don't depend on user-specified configuration
22234 # parameters.
22235 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22236 # The LINGUAS file contains the set of available languages.
22237 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22238 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22240 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22241 # Hide the ALL_LINGUAS assigment from automake.
22242 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22243 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22244 else
22245 # The set of available languages was given in configure.ac.
22246 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22248 case "$ac_given_srcdir" in
22249 .) srcdirpre= ;;
22250 *) srcdirpre='$(srcdir)/' ;;
22251 esac
22252 POFILES=
22253 GMOFILES=
22254 UPDATEPOFILES=
22255 DUMMYPOFILES=
22256 for lang in $ALL_LINGUAS; do
22257 POFILES="$POFILES $srcdirpre$lang.po"
22258 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22259 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22260 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22261 done
22262 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22263 # environment variable.
22264 INST_LINGUAS=
22265 if test -n "$ALL_LINGUAS"; then
22266 for presentlang in $ALL_LINGUAS; do
22267 useit=no
22268 if test "%UNSET%" != "$LINGUAS"; then
22269 desiredlanguages="$LINGUAS"
22270 else
22271 desiredlanguages="$ALL_LINGUAS"
22273 for desiredlang in $desiredlanguages; do
22274 # Use the presentlang catalog if desiredlang is
22275 # a. equal to presentlang, or
22276 # b. a variant of presentlang (because in this case,
22277 # presentlang can be used as a fallback for messages
22278 # which are not translated in the desiredlang catalog).
22279 case "$desiredlang" in
22280 "$presentlang"*) useit=yes;;
22281 esac
22282 done
22283 if test $useit = yes; then
22284 INST_LINGUAS="$INST_LINGUAS $presentlang"
22286 done
22288 CATALOGS=
22289 if test -n "$INST_LINGUAS"; then
22290 for lang in $INST_LINGUAS; do
22291 CATALOGS="$CATALOGS $lang.gmo"
22292 done
22294 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22295 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"
22296 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22297 if test -f "$f"; then
22298 case "$f" in
22299 *.orig | *.bak | *~) ;;
22300 *) cat "$f" >> "$ac_dir/Makefile" ;;
22301 esac
22303 done
22306 esac
22307 done ;;
22308 "default-2":C)
22309 for ac_file in $CONFIG_FILES; do
22310 # Support "outfile[:infile[:infile...]]"
22311 case "$ac_file" in
22312 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22313 esac
22314 # PO directories have a Makefile.in generated from Makefile.in.in.
22315 case "$ac_file" in */Makefile.in)
22316 # Adjust a relative srcdir.
22317 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22318 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22319 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22320 # In autoconf-2.13 it is called $ac_given_srcdir.
22321 # In autoconf-2.50 it is called $srcdir.
22322 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22323 case "$ac_given_srcdir" in
22324 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22325 /*) top_srcdir="$ac_given_srcdir" ;;
22326 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22327 esac
22328 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22329 rm -f "$ac_dir/POTFILES"
22330 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22331 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22332 POMAKEFILEDEPS="POTFILES.in"
22333 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22334 # on $ac_dir but don't depend on user-specified configuration
22335 # parameters.
22336 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22337 # The LINGUAS file contains the set of available languages.
22338 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22339 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22341 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22342 # Hide the ALL_LINGUAS assigment from automake.
22343 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22344 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22345 else
22346 # The set of available languages was given in configure.ac.
22347 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22349 case "$ac_given_srcdir" in
22350 .) srcdirpre= ;;
22351 *) srcdirpre='$(srcdir)/' ;;
22352 esac
22353 POFILES=
22354 GMOFILES=
22355 UPDATEPOFILES=
22356 DUMMYPOFILES=
22357 for lang in $ALL_LINGUAS; do
22358 POFILES="$POFILES $srcdirpre$lang.po"
22359 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22360 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22361 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22362 done
22363 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22364 # environment variable.
22365 INST_LINGUAS=
22366 if test -n "$ALL_LINGUAS"; then
22367 for presentlang in $ALL_LINGUAS; do
22368 useit=no
22369 if test "%UNSET%" != "$LINGUAS"; then
22370 desiredlanguages="$LINGUAS"
22371 else
22372 desiredlanguages="$ALL_LINGUAS"
22374 for desiredlang in $desiredlanguages; do
22375 # Use the presentlang catalog if desiredlang is
22376 # a. equal to presentlang, or
22377 # b. a variant of presentlang (because in this case,
22378 # presentlang can be used as a fallback for messages
22379 # which are not translated in the desiredlang catalog).
22380 case "$desiredlang" in
22381 "$presentlang"*) useit=yes;;
22382 esac
22383 done
22384 if test $useit = yes; then
22385 INST_LINGUAS="$INST_LINGUAS $presentlang"
22387 done
22389 CATALOGS=
22390 if test -n "$INST_LINGUAS"; then
22391 for lang in $INST_LINGUAS; do
22392 CATALOGS="$CATALOGS $lang.gmo"
22393 done
22395 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22396 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"
22397 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22398 if test -f "$f"; then
22399 case "$f" in
22400 *.orig | *.bak | *~) ;;
22401 *) cat "$f" >> "$ac_dir/Makefile" ;;
22402 esac
22404 done
22407 esac
22408 done ;;
22409 "default":C)
22410 case "$srcdir" in
22411 .) srcdirpre= ;;
22412 *) srcdirpre='$(srcdir)/' ;;
22413 esac
22414 POFILES=
22415 GMOFILES=
22416 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22417 if test $lang != dummy; then
22418 POFILES="$POFILES $srcdirpre$lang.po"
22419 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22421 done
22422 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22423 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22424 -e "s,@POFILES@,$POFILES," \
22425 -e "s,@GMOFILES@,$GMOFILES," \
22426 po/Makefile.in > po/Makefile ;;
22428 esac
22429 done # for ac_tag
22432 as_fn_exit 0
22433 _ACEOF
22434 ac_clean_files=$ac_clean_files_save
22436 test $ac_write_fail = 0 ||
22437 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22440 # configure is writing to config.log, and then calls config.status.
22441 # config.status does its own redirection, appending to config.log.
22442 # Unfortunately, on DOS this fails, as config.log is still kept open
22443 # by configure, so config.status won't be able to write to it; its
22444 # output is simply discarded. So we exec the FD to /dev/null,
22445 # effectively closing config.log, so it can be properly (re)opened and
22446 # appended to by config.status. When coming back to configure, we
22447 # need to make the FD available again.
22448 if test "$no_create" != yes; then
22449 ac_cs_success=:
22450 ac_config_status_args=
22451 test "$silent" = yes &&
22452 ac_config_status_args="$ac_config_status_args --quiet"
22453 exec 5>/dev/null
22454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22455 exec 5>>config.log
22456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22457 # would make configure fail if this is the last instruction.
22458 $ac_cs_success || as_fn_exit 1
22460 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22462 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22467 touch config.status.tmp
22468 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
22469 sed '/as_fn_exit 0/i \
22470 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22471 touch --reference=Makefile Makefile.tmp \
22472 mv Makefile.tmp Makefile \
22473 ' config.status > config.status.tmp
22474 touch --reference=config.status config.status.tmp
22475 mv config.status.tmp config.status
22476 chmod +x config.status
22477 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
22478 touch --reference=Makefile Makefile.tmp
22479 mv Makefile.tmp Makefile
22480 else
22481 rm -f config.status.tmp