Daily bump.
[gcc.git] / libvtv / configure
bloba7889161c50b9c9faace38f345ad1fff6ec4d509
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Vtable Verification Runtime Library 1.0.
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='GNU Vtable Verification Runtime Library'
589 PACKAGE_TARNAME='libvtv'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
595 ac_unique_file="vtv_rts.h"
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 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 VTV_NO_OBSTACK_FALSE
638 VTV_NO_OBSTACK_TRUE
639 VTV_CYGMIN_FALSE
640 VTV_CYGMIN_TRUE
641 XCFLAGS
642 libtool_VERSION
643 ENABLE_DARWIN_AT_RPATH_FALSE
644 ENABLE_DARWIN_AT_RPATH_TRUE
645 enable_static
646 enable_shared
647 lt_host_flags
648 CXXCPP
649 OTOOL64
650 OTOOL
651 LIPO
652 NMEDIT
653 DSYMUTIL
654 OBJDUMP
655 LN_S
657 ac_ct_DUMPBIN
658 DUMPBIN
660 FGREP
662 LIBTOOL
663 RANLIB
666 CCASFLAGS
667 CCAS
668 am__fastdepCXX_FALSE
669 am__fastdepCXX_TRUE
670 CXXDEPMODE
671 ac_ct_CXX
672 CXXFLAGS
674 toolexeclibdir
675 toolexecdir
676 toplevel_srcdir
677 toplevel_builddir
678 libvtv_srcdir
679 libvtv_builddir
680 MAINT
681 MAINTAINER_MODE_FALSE
682 MAINTAINER_MODE_TRUE
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 am__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 CCDEPMODE
690 am__nodep
691 AMDEPBACKSLASH
692 AMDEP_FALSE
693 AMDEP_TRUE
694 am__quote
695 am__include
696 DEPDIR
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 ENABLE_VTABLE_VERIFY_FALSE
721 ENABLE_VTABLE_VERIFY_TRUE
722 EGREP
723 GREP
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
732 LIBSTDCXX_RAW_CXX_LDFLAGS
733 LIBSTDCXX_RAW_CXX_CXXFLAGS
734 target_noncanonical
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 multi_basedir
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_multilib
790 enable_version_specific_runtime_libs
791 enable_vtable_verify
792 enable_dependency_tracking
793 enable_silent_rules
794 enable_maintainer_mode
795 with_toolexeclibdir
796 enable_shared
797 enable_static
798 with_pic
799 enable_fast_install
800 with_gnu_ld
801 enable_libtool_lock
802 enable_darwin_at_rpath
803 enable_cet
804 with_gcc_major_version_only
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
815 CXXCPP'
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
866 ac_prev=
867 ac_dashdash=
868 for ac_option
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
877 case $ac_option in
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
881 esac
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
887 ac_dashdash=yes ;;
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
906 --config-cache | -C)
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 esac
1224 done
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279 test "$silent" = yes && exec 6>/dev/null
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1308 /^X\(\/\/\)$/{
1309 s//\1/
1312 /^X\(\/\).*/{
1313 s//\1/
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1321 else
1322 ac_srcdir_defaulted=no
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1411 cat <<\_ACEOF
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422 _ACEOF
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1428 esac
1429 cat <<\_ACEOF
1431 Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-multilib build many library versions (default)
1436 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1437 --enable-vtable-verify Enable vtable verification feature
1438 --enable-dependency-tracking
1439 do not reject slow dependency extractors
1440 --disable-dependency-tracking
1441 speeds up one-time build
1442 --enable-silent-rules less verbose build output (undo: "make V=1")
1443 --disable-silent-rules verbose build output (undo: "make V=0")
1444 --enable-maintainer-mode
1445 enable make rules and dependencies not useful (and
1446 sometimes confusing) to the casual installer
1447 --enable-shared[=PKGS] build shared libraries [default=yes]
1448 --enable-static[=PKGS] build static libraries [default=yes]
1449 --enable-fast-install[=PKGS]
1450 optimize for fast installation [default=yes]
1451 --disable-libtool-lock avoid locking (might break parallel builds)
1452 --enable-darwin-at-rpath
1453 install libraries with @rpath/library-name, requires
1454 rpaths to be added to executables
1455 --enable-cet enable Intel CET in target libraries [default=auto]
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-toolexeclibdir=DIR
1461 install libraries built with a cross compiler within
1463 --with-pic try to use only PIC/non-PIC objects [default=use
1464 both]
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-gcc-major-version-only
1467 use only GCC major number in filesystem paths
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 LIBS libraries to pass to the linker, e.g. -l<library>
1475 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1477 CPP C preprocessor
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1480 CXXCPP C++ preprocessor
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1486 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1487 General help using GNU software: <http://www.gnu.org/gethelp/>.
1488 _ACEOF
1489 ac_status=$?
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 GNU Vtable Verification Runtime Library configure 1.0
1551 generated by GNU Autoconf 2.69
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_c_try_compile
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_cpp
1639 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642 # the include files in INCLUDES and setting the cache variable VAR
1643 # accordingly.
1644 ac_fn_c_check_header_mongrel ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if eval \${$3+:} false; then :
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 else
1657 # Is the header compilable?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659 $as_echo_n "checking $2 usability... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1667 else
1668 ac_header_compiler=no
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672 $as_echo "$ac_header_compiler" >&6; }
1674 # Is the header present?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676 $as_echo_n "checking $2 presence... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1683 else
1684 ac_header_preproc=no
1686 rm -f conftest.err conftest.i conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688 $as_echo "$ac_header_preproc" >&6; }
1690 # So? What about this header?
1691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692 yes:no: )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 no:yes:* )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 esac
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 eval "$3=\$ac_header_compiler"
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_mongrel
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_run
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_c_try_link LINENO
1800 # -----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_link ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 test -x conftest$ac_exeext
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_link
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860 #define $2 innocuous_$2
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1873 #undef $2
1875 /* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1890 main ()
1892 return $2 ();
1894 return 0;
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898 eval "$3=yes"
1899 else
1900 eval "$3=no"
1902 rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_func
1912 # ac_fn_cxx_try_compile LINENO
1913 # ----------------------------
1914 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_compile ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 rm -f conftest.$ac_objext
1919 if { { ac_try="$ac_compile"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_compile") 2>conftest.err
1927 ac_status=$?
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && {
1935 test -z "$ac_cxx_werror_flag" ||
1936 test ! -s conftest.err
1937 } && test -s conftest.$ac_objext; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1948 } # ac_fn_cxx_try_compile
1950 # ac_fn_cxx_try_cpp LINENO
1951 # ------------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_cxx_try_cpp ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } > conftest.i && {
1972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1973 test ! -s conftest.err
1974 }; then :
1975 ac_retval=0
1976 else
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1980 ac_retval=1
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_cxx_try_cpp
1987 # ac_fn_cxx_try_link LINENO
1988 # -------------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_link ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest$ac_exeext && {
2013 test "$cross_compiling" = yes ||
2014 test -x conftest$ac_exeext
2015 }; then :
2016 ac_retval=0
2017 else
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_retval=1
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2031 } # ac_fn_cxx_try_link
2032 cat >config.log <<_ACEOF
2033 This file contains any messages produced by compilers while
2034 running configure, to aid debugging if configure makes a mistake.
2036 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
2037 generated by GNU Autoconf 2.69. Invocation command line was
2039 $ $0 $@
2041 _ACEOF
2042 exec 5>>config.log
2044 cat <<_ASUNAME
2045 ## --------- ##
2046 ## Platform. ##
2047 ## --------- ##
2049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2056 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2058 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2059 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2061 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2062 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2063 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2064 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2066 _ASUNAME
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 $as_echo "PATH: $as_dir"
2074 done
2075 IFS=$as_save_IFS
2077 } >&5
2079 cat >&5 <<_ACEOF
2082 ## ----------- ##
2083 ## Core tests. ##
2084 ## ----------- ##
2086 _ACEOF
2089 # Keep a trace of the command line.
2090 # Strip out --no-create and --no-recursion so they do not pile up.
2091 # Strip out --silent because we don't want to record it for future runs.
2092 # Also quote any args containing shell meta-characters.
2093 # Make two passes to allow for proper duplicate-argument suppression.
2094 ac_configure_args=
2095 ac_configure_args0=
2096 ac_configure_args1=
2097 ac_must_keep_next=false
2098 for ac_pass in 1 2
2100 for ac_arg
2102 case $ac_arg in
2103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2105 | -silent | --silent | --silen | --sile | --sil)
2106 continue ;;
2107 *\'*)
2108 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2109 esac
2110 case $ac_pass in
2111 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113 as_fn_append ac_configure_args1 " '$ac_arg'"
2114 if test $ac_must_keep_next = true; then
2115 ac_must_keep_next=false # Got value, back to normal.
2116 else
2117 case $ac_arg in
2118 *=* | --config-cache | -C | -disable-* | --disable-* \
2119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2121 | -with-* | --with-* | -without-* | --without-* | --x)
2122 case "$ac_configure_args0 " in
2123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2124 esac
2126 -* ) ac_must_keep_next=true ;;
2127 esac
2129 as_fn_append ac_configure_args " '$ac_arg'"
2131 esac
2132 done
2133 done
2134 { ac_configure_args0=; unset ac_configure_args0;}
2135 { ac_configure_args1=; unset ac_configure_args1;}
2137 # When interrupted or exit'd, cleanup temporary files, and complete
2138 # config.log. We remove comments because anyway the quotes in there
2139 # would cause problems or look ugly.
2140 # WARNING: Use '\'' to represent an apostrophe within the trap.
2141 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2142 trap 'exit_status=$?
2143 # Save into config.log some information that might help in debugging.
2145 echo
2147 $as_echo "## ---------------- ##
2148 ## Cache variables. ##
2149 ## ---------------- ##"
2150 echo
2151 # The following way of writing the cache mishandles newlines in values,
2153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in #(
2156 *${as_nl}*)
2157 case $ac_var in #(
2158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2160 esac
2161 case $ac_var in #(
2162 _ | IFS | as_nl) ;; #(
2163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2164 *) { eval $ac_var=; unset $ac_var;} ;;
2165 esac ;;
2166 esac
2167 done
2168 (set) 2>&1 |
2169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2170 *${as_nl}ac_space=\ *)
2171 sed -n \
2172 "s/'\''/'\''\\\\'\'''\''/g;
2173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174 ;; #(
2176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178 esac |
2179 sort
2181 echo
2183 $as_echo "## ----------------- ##
2184 ## Output variables. ##
2185 ## ----------------- ##"
2186 echo
2187 for ac_var in $ac_subst_vars
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2197 if test -n "$ac_subst_files"; then
2198 $as_echo "## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##"
2201 echo
2202 for ac_var in $ac_subst_files
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 $as_echo "$ac_var='\''$ac_val'\''"
2209 done | sort
2210 echo
2213 if test -s confdefs.h; then
2214 $as_echo "## ----------- ##
2215 ## confdefs.h. ##
2216 ## ----------- ##"
2217 echo
2218 cat confdefs.h
2219 echo
2221 test "$ac_signal" != 0 &&
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
2224 } >&5
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2227 exit $exit_status
2229 for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2231 done
2232 ac_signal=0
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2237 $as_echo "/* confdefs.h */" > confdefs.h
2239 # Predefined preprocessor variables.
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_NAME "$PACKAGE_NAME"
2243 _ACEOF
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2247 _ACEOF
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2251 _ACEOF
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2255 _ACEOF
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259 _ACEOF
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_URL "$PACKAGE_URL"
2263 _ACEOF
2266 # Let the site file select an alternate cache file if it wants to.
2267 # Prefer an explicitly selected file to automatically selected ones.
2268 ac_site_file1=NONE
2269 ac_site_file2=NONE
2270 if test -n "$CONFIG_SITE"; then
2271 # We do not want a PATH search for config.site.
2272 case $CONFIG_SITE in #((
2273 -*) ac_site_file1=./$CONFIG_SITE;;
2274 */*) ac_site_file1=$CONFIG_SITE;;
2275 *) ac_site_file1=./$CONFIG_SITE;;
2276 esac
2277 elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2280 else
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
2284 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 test "x$ac_site_file" = xNONE && continue
2287 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2290 sed 's/^/| /' "$ac_site_file" >&5
2291 . "$ac_site_file" \
2292 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294 as_fn_error $? "failed to load site script $ac_site_file
2295 See \`config.log' for more details" "$LINENO" 5; }
2297 done
2299 if test -r "$cache_file"; then
2300 # Some versions of bash will fail to source /dev/null (special files
2301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304 $as_echo "$as_me: loading cache $cache_file" >&6;}
2305 case $cache_file in
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
2308 esac
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312 $as_echo "$as_me: creating cache $cache_file" >&6;}
2313 >$cache_file
2316 # Check that the precious variables saved in the cache have kept the same
2317 # value.
2318 ac_cache_corrupted=false
2319 for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2325 set,)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,set)
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2333 ,);;
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x $ac_old_val`
2338 ac_new_val_w=`echo x $ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2342 ac_cache_corrupted=:
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2352 fi;;
2353 esac
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2356 case $ac_new_val in
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2359 esac
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 esac
2365 done
2366 if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2373 ## -------------------- ##
2374 ## Main body of script. ##
2375 ## -------------------- ##
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 #AC_INIT(package-unused, version-unused, libvtv)
2390 # Default to --enable-multilib
2391 # Check whether --enable-multilib was given.
2392 if test "${enable_multilib+set}" = set; then :
2393 enableval=$enable_multilib; case "$enableval" in
2394 yes) multilib=yes ;;
2395 no) multilib=no ;;
2396 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2397 esac
2398 else
2399 multilib=yes
2403 # We may get other options which we leave undocumented:
2404 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2405 # See config-ml.in if you want the gory details.
2407 if test "$srcdir" = "."; then
2408 if test "$with_target_subdir" != "."; then
2409 multi_basedir="$srcdir/$with_multisrctop../.."
2410 else
2411 multi_basedir="$srcdir/$with_multisrctop.."
2413 else
2414 multi_basedir="$srcdir/.."
2418 # Even if the default multilib is not a cross compilation,
2419 # it may be that some of the other multilibs are.
2420 if test $cross_compiling = no && test $multilib = yes \
2421 && test "x${with_multisubdir}" != x ; then
2422 cross_compiling=maybe
2425 ac_config_commands="$ac_config_commands default-1"
2428 # -------
2429 # Options
2430 # -------
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2432 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2433 # Check whether --enable-version-specific-runtime-libs was given.
2434 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2435 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2436 yes) version_specific_libs=yes ;;
2437 no) version_specific_libs=no ;;
2438 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2439 esac
2440 else
2441 version_specific_libs=no
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2445 $as_echo "$version_specific_libs" >&6; }
2447 # Do not delete or change the following two lines. For why, see
2448 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2449 ac_aux_dir=
2450 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451 if test -f "$ac_dir/install-sh"; then
2452 ac_aux_dir=$ac_dir
2453 ac_install_sh="$ac_aux_dir/install-sh -c"
2454 break
2455 elif test -f "$ac_dir/install.sh"; then
2456 ac_aux_dir=$ac_dir
2457 ac_install_sh="$ac_aux_dir/install.sh -c"
2458 break
2459 elif test -f "$ac_dir/shtool"; then
2460 ac_aux_dir=$ac_dir
2461 ac_install_sh="$ac_aux_dir/shtool install -c"
2462 break
2464 done
2465 if test -z "$ac_aux_dir"; then
2466 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2474 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2475 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2478 # Make sure we can run config.sub.
2479 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2480 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2483 $as_echo_n "checking build system type... " >&6; }
2484 if ${ac_cv_build+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 ac_build_alias=$build_alias
2488 test "x$ac_build_alias" = x &&
2489 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2490 test "x$ac_build_alias" = x &&
2491 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2492 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2497 $as_echo "$ac_cv_build" >&6; }
2498 case $ac_cv_build in
2499 *-*-*) ;;
2500 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2501 esac
2502 build=$ac_cv_build
2503 ac_save_IFS=$IFS; IFS='-'
2504 set x $ac_cv_build
2505 shift
2506 build_cpu=$1
2507 build_vendor=$2
2508 shift; shift
2509 # Remember, the first character of IFS is used to create $*,
2510 # except with old shells:
2511 build_os=$*
2512 IFS=$ac_save_IFS
2513 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2517 $as_echo_n "checking host system type... " >&6; }
2518 if ${ac_cv_host+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test "x$host_alias" = x; then
2522 ac_cv_host=$ac_cv_build
2523 else
2524 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2525 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2530 $as_echo "$ac_cv_host" >&6; }
2531 case $ac_cv_host in
2532 *-*-*) ;;
2533 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2534 esac
2535 host=$ac_cv_host
2536 ac_save_IFS=$IFS; IFS='-'
2537 set x $ac_cv_host
2538 shift
2539 host_cpu=$1
2540 host_vendor=$2
2541 shift; shift
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2544 host_os=$*
2545 IFS=$ac_save_IFS
2546 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2550 $as_echo_n "checking target system type... " >&6; }
2551 if ${ac_cv_target+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test "x$target_alias" = x; then
2555 ac_cv_target=$ac_cv_host
2556 else
2557 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2563 $as_echo "$ac_cv_target" >&6; }
2564 case $ac_cv_target in
2565 *-*-*) ;;
2566 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2567 esac
2568 target=$ac_cv_target
2569 ac_save_IFS=$IFS; IFS='-'
2570 set x $ac_cv_target
2571 shift
2572 target_cpu=$1
2573 target_vendor=$2
2574 shift; shift
2575 # Remember, the first character of IFS is used to create $*,
2576 # except with old shells:
2577 target_os=$*
2578 IFS=$ac_save_IFS
2579 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2582 # The aliases save the names the user supplied, while $host etc.
2583 # will get canonicalized.
2584 test -n "$target_alias" &&
2585 test "$program_prefix$program_suffix$program_transform_name" = \
2586 NONENONEs,x,x, &&
2587 program_prefix=${target_alias}-
2589 target_alias=${target_alias-$host_alias}
2591 case ${build_alias} in
2592 "") build_noncanonical=${build} ;;
2593 *) build_noncanonical=${build_alias} ;;
2594 esac
2596 case ${host_alias} in
2597 "") host_noncanonical=${build_noncanonical} ;;
2598 *) host_noncanonical=${host_alias} ;;
2599 esac
2601 case ${target_alias} in
2602 "") target_noncanonical=${host_noncanonical} ;;
2603 *) target_noncanonical=${target_alias} ;;
2604 esac
2610 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2611 -I\$(top_builddir)/../libstdc++-v3/include \
2612 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2613 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2614 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2615 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2620 # Expand $ac_aux_dir to an absolute path.
2621 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_CC+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2650 done
2651 done
2652 IFS=$as_save_IFS
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2667 if test -z "$ac_cv_prog_CC"; then
2668 ac_ct_CC=$CC
2669 # Extract the first word of "gcc", so it can be a program name with args.
2670 set dummy gcc; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_ac_ct_CC="gcc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2690 done
2691 done
2692 IFS=$as_save_IFS
2696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697 if test -n "$ac_ct_CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2699 $as_echo "$ac_ct_CC" >&6; }
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2705 if test "x$ac_ct_CC" = x; then
2706 CC=""
2707 else
2708 case $cross_compiling:$ac_tool_warned in
2709 yes:)
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2712 ac_tool_warned=yes ;;
2713 esac
2714 CC=$ac_ct_CC
2716 else
2717 CC="$ac_cv_prog_CC"
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}cc; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_CC+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_CC="${ac_tool_prefix}cc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2743 done
2744 done
2745 IFS=$as_save_IFS
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2761 if test -z "$CC"; then
2762 # Extract the first word of "cc", so it can be a program name with args.
2763 set dummy cc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 ac_prog_rejected=no
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2781 ac_prog_rejected=yes
2782 continue
2784 ac_cv_prog_CC="cc"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2788 done
2789 done
2790 IFS=$as_save_IFS
2792 if test $ac_prog_rejected = yes; then
2793 # We found a bogon in the path, so make sure we never use it.
2794 set dummy $ac_cv_prog_CC
2795 shift
2796 if test $# != 0; then
2797 # We chose a different compiler from the bogus one.
2798 # However, it has the same basename, so the bogon will be chosen
2799 # first if we set CC to just the basename; use the full file name.
2800 shift
2801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2810 else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2817 if test -z "$CC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 for ac_prog in cl.exe
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_CC+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2842 done
2843 done
2844 IFS=$as_save_IFS
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 $as_echo "$CC" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2858 test -n "$CC" && break
2859 done
2861 if test -z "$CC"; then
2862 ac_ct_CC=$CC
2863 for ac_prog in cl.exe
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_ac_ct_CC="$ac_prog"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2888 IFS=$as_save_IFS
2892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2893 if test -n "$ac_ct_CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2895 $as_echo "$ac_ct_CC" >&6; }
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2902 test -n "$ac_ct_CC" && break
2903 done
2905 if test "x$ac_ct_CC" = x; then
2906 CC=""
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912 ac_tool_warned=yes ;;
2913 esac
2914 CC=$ac_ct_CC
2921 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 as_fn_error $? "no acceptable C compiler found in \$PATH
2924 See \`config.log' for more details" "$LINENO" 5; }
2926 # Provide some information about the compiler.
2927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2928 set X $ac_compile
2929 ac_compiler=$2
2930 for ac_option in --version -v -V -qversion; do
2931 { { ac_try="$ac_compiler $ac_option >&5"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2939 ac_status=$?
2940 if test -s conftest.err; then
2941 sed '10a\
2942 ... rest of stderr output deleted ...
2943 10q' conftest.err >conftest.er1
2944 cat conftest.er1 >&5
2946 rm -f conftest.er1 conftest.err
2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948 test $ac_status = 0; }
2949 done
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2955 main ()
2959 return 0;
2961 _ACEOF
2962 ac_clean_files_save=$ac_clean_files
2963 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2964 # Try to create an executable without -o first, disregard a.out.
2965 # It will help us diagnose broken compilers, and finding out an intuition
2966 # of exeext.
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2968 $as_echo_n "checking whether the C compiler works... " >&6; }
2969 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971 # The possible output files:
2972 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2974 ac_rmfiles=
2975 for ac_file in $ac_files
2977 case $ac_file in
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2980 esac
2981 done
2982 rm -f $ac_rmfiles
2984 if { { ac_try="$ac_link_default"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_link_default") 2>&5
2992 ac_status=$?
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; then :
2995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2996 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2997 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2998 # so that the user can short-circuit this test for compilers unknown to
2999 # Autoconf.
3000 for ac_file in $ac_files ''
3002 test -f "$ac_file" || continue
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3006 [ab].out )
3007 # We found the default executable, but exeext='' is most
3008 # certainly right.
3009 break;;
3010 *.* )
3011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3012 then :; else
3013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3015 # We set ac_cv_exeext here because the later test for it is not
3016 # safe: cross compilers may not add the suffix if given an `-o'
3017 # argument, so we may need to know it at that point already.
3018 # Even if this section looks crufty: it has the advantage of
3019 # actually working.
3020 break;;
3022 break;;
3023 esac
3024 done
3025 test "$ac_cv_exeext" = no && ac_cv_exeext=
3027 else
3028 ac_file=''
3030 if test -z "$ac_file"; then :
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 $as_echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error 77 "C compiler cannot create executables
3039 See \`config.log' for more details" "$LINENO" 5; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3045 $as_echo_n "checking for C compiler default output file name... " >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3047 $as_echo "$ac_file" >&6; }
3048 ac_exeext=$ac_cv_exeext
3050 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3051 ac_clean_files=$ac_clean_files_save
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3053 $as_echo_n "checking for suffix of executables... " >&6; }
3054 if { { ac_try="$ac_link"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3068 # `rm'.
3069 for ac_file in conftest.exe conftest conftest.*; do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 break;;
3075 * ) break;;
3076 esac
3077 done
3078 else
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 rm -f conftest conftest$ac_cv_exeext
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3086 $as_echo "$ac_cv_exeext" >&6; }
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3090 ac_exeext=$EXEEXT
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3093 #include <stdio.h>
3095 main ()
3097 FILE *f = fopen ("conftest.out", "w");
3098 return ferror (f) || fclose (f) != 0;
3101 return 0;
3103 _ACEOF
3104 ac_clean_files="$ac_clean_files conftest.out"
3105 # Check that the compiler produces executables we can run. If not, either
3106 # the compiler is broken, or we cross compile.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3108 $as_echo_n "checking whether we are cross compiling... " >&6; }
3109 if test "$cross_compiling" != yes; then
3110 { { ac_try="$ac_link"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_link") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }
3121 if { ac_try='./conftest$ac_cv_exeext'
3122 { { case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; }; then
3132 cross_compiling=no
3133 else
3134 if test "$cross_compiling" = maybe; then
3135 cross_compiling=yes
3136 else
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "cannot run C compiled programs.
3140 If you meant to cross compile, use \`--host'.
3141 See \`config.log' for more details" "$LINENO" 5; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3146 $as_echo "$cross_compiling" >&6; }
3148 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3149 ac_clean_files=$ac_clean_files_save
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3151 $as_echo_n "checking for suffix of object files... " >&6; }
3152 if ${ac_cv_objext+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3159 main ()
3163 return 0;
3165 _ACEOF
3166 rm -f conftest.o conftest.obj
3167 if { { ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_compile") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; then :
3178 for ac_file in conftest.o conftest.obj conftest.*; do
3179 test -f "$ac_file" || continue;
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3183 break;;
3184 esac
3185 done
3186 else
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot compute suffix of object files: cannot compile
3193 See \`config.log' for more details" "$LINENO" 5; }
3195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3198 $as_echo "$ac_cv_objext" >&6; }
3199 OBJEXT=$ac_cv_objext
3200 ac_objext=$OBJEXT
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3203 if ${ac_cv_c_compiler_gnu+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3210 main ()
3212 #ifndef __GNUC__
3213 choke me
3214 #endif
3217 return 0;
3219 _ACEOF
3220 if ac_fn_c_try_compile "$LINENO"; then :
3221 ac_compiler_gnu=yes
3222 else
3223 ac_compiler_gnu=no
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3231 if test $ac_compiler_gnu = yes; then
3232 GCC=yes
3233 else
3234 GCC=
3236 ac_test_CFLAGS=${CFLAGS+set}
3237 ac_save_CFLAGS=$CFLAGS
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3240 if ${ac_cv_prog_cc_g+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 ac_save_c_werror_flag=$ac_c_werror_flag
3244 ac_c_werror_flag=yes
3245 ac_cv_prog_cc_g=no
3246 CFLAGS="-g"
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3251 main ()
3255 return 0;
3257 _ACEOF
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_cv_prog_cc_g=yes
3260 else
3261 CFLAGS=""
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3266 main ()
3270 return 0;
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3275 else
3276 ac_c_werror_flag=$ac_save_c_werror_flag
3277 CFLAGS="-g"
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3282 main ()
3286 return 0;
3288 _ACEOF
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_cv_prog_cc_g=yes
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3300 $as_echo "$ac_cv_prog_cc_g" >&6; }
3301 if test "$ac_test_CFLAGS" = set; then
3302 CFLAGS=$ac_save_CFLAGS
3303 elif test $ac_cv_prog_cc_g = yes; then
3304 if test "$GCC" = yes; then
3305 CFLAGS="-g -O2"
3306 else
3307 CFLAGS="-g"
3309 else
3310 if test "$GCC" = yes; then
3311 CFLAGS="-O2"
3312 else
3313 CFLAGS=
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3318 if ${ac_cv_prog_cc_c89+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 ac_cv_prog_cc_c89=no
3322 ac_save_CC=$CC
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325 #include <stdarg.h>
3326 #include <stdio.h>
3327 struct stat;
3328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3329 struct buf { int x; };
3330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331 static char *e (p, i)
3332 char **p;
3333 int i;
3335 return p[i];
3337 static char *f (char * (*g) (char **, int), char **p, ...)
3339 char *s;
3340 va_list v;
3341 va_start (v,p);
3342 s = g (p, va_arg (v,int));
3343 va_end (v);
3344 return s;
3347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3348 function prototypes and stuff, but not '\xHH' hex character constants.
3349 These don't provoke an error unfortunately, instead are silently treated
3350 as 'x'. The following induces an error, until -std is added to get
3351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3352 array size at least. It's necessary to write '\x00'==0 to get something
3353 that's true only with -std. */
3354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3357 inside strings and character constants. */
3358 #define FOO(x) 'x'
3359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 int argc;
3366 char **argv;
3368 main ()
3370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3372 return 0;
3374 _ACEOF
3375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3378 CC="$ac_save_CC $ac_arg"
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_c89=$ac_arg
3382 rm -f core conftest.err conftest.$ac_objext
3383 test "x$ac_cv_prog_cc_c89" != "xno" && break
3384 done
3385 rm -f conftest.$ac_ext
3386 CC=$ac_save_CC
3389 # AC_CACHE_VAL
3390 case "x$ac_cv_prog_cc_c89" in
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3393 $as_echo "none needed" >&6; } ;;
3394 xno)
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3396 $as_echo "unsupported" >&6; } ;;
3398 CC="$CC $ac_cv_prog_cc_c89"
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3401 esac
3402 if test "x$ac_cv_prog_cc_c89" != xno; then :
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3418 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3419 if ${am_cv_prog_cc_c_o+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3426 main ()
3430 return 0;
3432 _ACEOF
3433 # Make sure it works both with $CC and with simple cc.
3434 # Following AC_PROG_CC_C_O, we do the test twice because some
3435 # compilers refuse to overwrite an existing .o file with -o,
3436 # though they will create one.
3437 am_cv_prog_cc_c_o=yes
3438 for am_i in 1 2; do
3439 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3440 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } \
3444 && test -f conftest2.$ac_objext; then
3445 : OK
3446 else
3447 am_cv_prog_cc_c_o=no
3448 break
3450 done
3451 rm -f core conftest*
3452 unset am_i
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3455 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3456 if test "$am_cv_prog_cc_c_o" != yes; then
3457 # Losing compiler, so override with the script.
3458 # FIXME: It is wrong to rewrite CC.
3459 # But if we don't then we get into trouble of one sort or another.
3460 # A longer-term fix would be to have automake use am__CC in this case,
3461 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3462 CC="$am_aux_dir/compile $CC"
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3478 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3479 # On Suns, sometimes $CPP names a directory.
3480 if test -n "$CPP" && test -d "$CPP"; then
3481 CPP=
3483 if test -z "$CPP"; then
3484 if ${ac_cv_prog_CPP+:} false; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 # Double quotes because CPP needs to be expanded
3488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3490 ac_preproc_ok=false
3491 for ac_c_preproc_warn_flag in '' yes
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506 Syntax error
3507 _ACEOF
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3510 else
3511 # Broken: fails on valid input.
3512 continue
3514 rm -f conftest.err conftest.i conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if ac_fn_c_try_cpp "$LINENO"; then :
3523 # Broken: success on invalid input.
3524 continue
3525 else
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.i conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then :
3536 break
3539 done
3540 ac_cv_prog_CPP=$CPP
3543 CPP=$ac_cv_prog_CPP
3544 else
3545 ac_cv_prog_CPP=$CPP
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3548 $as_echo "$CPP" >&6; }
3549 ac_preproc_ok=false
3550 for ac_c_preproc_warn_flag in '' yes
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560 #ifdef __STDC__
3561 # include <limits.h>
3562 #else
3563 # include <assert.h>
3564 #endif
3565 Syntax error
3566 _ACEOF
3567 if ac_fn_c_try_cpp "$LINENO"; then :
3569 else
3570 # Broken: fails on valid input.
3571 continue
3573 rm -f conftest.err conftest.i conftest.$ac_ext
3575 # OK, works on sane cases. Now check whether nonexistent headers
3576 # can be detected and how.
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #include <ac_nonexistent.h>
3580 _ACEOF
3581 if ac_fn_c_try_cpp "$LINENO"; then :
3582 # Broken: success on invalid input.
3583 continue
3584 else
3585 # Passes both tests.
3586 ac_preproc_ok=:
3587 break
3589 rm -f conftest.err conftest.i conftest.$ac_ext
3591 done
3592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593 rm -f conftest.i conftest.err conftest.$ac_ext
3594 if $ac_preproc_ok; then :
3596 else
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3600 See \`config.log' for more details" "$LINENO" 5; }
3603 ac_ext=c
3604 ac_cpp='$CPP $CPPFLAGS'
3605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3611 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3612 if ${ac_cv_path_GREP+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -z "$GREP"; then
3616 ac_path_GREP_found=false
3617 # Loop through the user's path and test for each of PROGNAME-LIST
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_prog in grep ggrep; do
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3626 as_fn_executable_p "$ac_path_GREP" || continue
3627 # Check for GNU ac_path_GREP and select it if it is found.
3628 # Check for GNU $ac_path_GREP
3629 case `"$ac_path_GREP" --version 2>&1` in
3630 *GNU*)
3631 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3633 ac_count=0
3634 $as_echo_n 0123456789 >"conftest.in"
3635 while :
3637 cat "conftest.in" "conftest.in" >"conftest.tmp"
3638 mv "conftest.tmp" "conftest.in"
3639 cp "conftest.in" "conftest.nl"
3640 $as_echo 'GREP' >> "conftest.nl"
3641 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3643 as_fn_arith $ac_count + 1 && ac_count=$as_val
3644 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3645 # Best one so far, save it but keep looking for a better one
3646 ac_cv_path_GREP="$ac_path_GREP"
3647 ac_path_GREP_max=$ac_count
3649 # 10*(2^10) chars as input seems more than enough
3650 test $ac_count -gt 10 && break
3651 done
3652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3653 esac
3655 $ac_path_GREP_found && break 3
3656 done
3657 done
3658 done
3659 IFS=$as_save_IFS
3660 if test -z "$ac_cv_path_GREP"; then
3661 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3663 else
3664 ac_cv_path_GREP=$GREP
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3669 $as_echo "$ac_cv_path_GREP" >&6; }
3670 GREP="$ac_cv_path_GREP"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3674 $as_echo_n "checking for egrep... " >&6; }
3675 if ${ac_cv_path_EGREP+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3679 then ac_cv_path_EGREP="$GREP -E"
3680 else
3681 if test -z "$EGREP"; then
3682 ac_path_EGREP_found=false
3683 # Loop through the user's path and test for each of PROGNAME-LIST
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_prog in egrep; do
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3692 as_fn_executable_p "$ac_path_EGREP" || continue
3693 # Check for GNU ac_path_EGREP and select it if it is found.
3694 # Check for GNU $ac_path_EGREP
3695 case `"$ac_path_EGREP" --version 2>&1` in
3696 *GNU*)
3697 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3699 ac_count=0
3700 $as_echo_n 0123456789 >"conftest.in"
3701 while :
3703 cat "conftest.in" "conftest.in" >"conftest.tmp"
3704 mv "conftest.tmp" "conftest.in"
3705 cp "conftest.in" "conftest.nl"
3706 $as_echo 'EGREP' >> "conftest.nl"
3707 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709 as_fn_arith $ac_count + 1 && ac_count=$as_val
3710 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3711 # Best one so far, save it but keep looking for a better one
3712 ac_cv_path_EGREP="$ac_path_EGREP"
3713 ac_path_EGREP_max=$ac_count
3715 # 10*(2^10) chars as input seems more than enough
3716 test $ac_count -gt 10 && break
3717 done
3718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719 esac
3721 $ac_path_EGREP_found && break 3
3722 done
3723 done
3724 done
3725 IFS=$as_save_IFS
3726 if test -z "$ac_cv_path_EGREP"; then
3727 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3729 else
3730 ac_cv_path_EGREP=$EGREP
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3736 $as_echo "$ac_cv_path_EGREP" >&6; }
3737 EGREP="$ac_cv_path_EGREP"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3741 $as_echo_n "checking for ANSI C header files... " >&6; }
3742 if ${ac_cv_header_stdc+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #include <stdlib.h>
3748 #include <stdarg.h>
3749 #include <string.h>
3750 #include <float.h>
3753 main ()
3757 return 0;
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_header_stdc=yes
3762 else
3763 ac_cv_header_stdc=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 if test $ac_cv_header_stdc = yes; then
3768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <string.h>
3773 _ACEOF
3774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 $EGREP "memchr" >/dev/null 2>&1; then :
3777 else
3778 ac_cv_header_stdc=no
3780 rm -f conftest*
3784 if test $ac_cv_header_stdc = yes; then
3785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <stdlib.h>
3790 _ACEOF
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 $EGREP "free" >/dev/null 2>&1; then :
3794 else
3795 ac_cv_header_stdc=no
3797 rm -f conftest*
3801 if test $ac_cv_header_stdc = yes; then
3802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3803 if test "$cross_compiling" = yes; then :
3805 else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #include <ctype.h>
3809 #include <stdlib.h>
3810 #if ((' ' & 0x0FF) == 0x020)
3811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3813 #else
3814 # define ISLOWER(c) \
3815 (('a' <= (c) && (c) <= 'i') \
3816 || ('j' <= (c) && (c) <= 'r') \
3817 || ('s' <= (c) && (c) <= 'z'))
3818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3819 #endif
3821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3823 main ()
3825 int i;
3826 for (i = 0; i < 256; i++)
3827 if (XOR (islower (i), ISLOWER (i))
3828 || toupper (i) != TOUPPER (i))
3829 return 2;
3830 return 0;
3832 _ACEOF
3833 if ac_fn_c_try_run "$LINENO"; then :
3835 else
3836 ac_cv_header_stdc=no
3838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3839 conftest.$ac_objext conftest.beam conftest.$ac_ext
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3845 $as_echo "$ac_cv_header_stdc" >&6; }
3846 if test $ac_cv_header_stdc = yes; then
3848 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3852 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3853 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3854 inttypes.h stdint.h unistd.h
3855 do :
3856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3857 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3860 cat >>confdefs.h <<_ACEOF
3861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3862 _ACEOF
3866 done
3870 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3871 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3872 MINIX=yes
3873 else
3874 MINIX=
3878 if test "$MINIX" = yes; then
3880 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3883 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3886 $as_echo "#define _MINIX 1" >>confdefs.h
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3892 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3893 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3899 # define __EXTENSIONS__ 1
3900 $ac_includes_default
3902 main ()
3906 return 0;
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_safe_to_define___extensions__=yes
3911 else
3912 ac_cv_safe_to_define___extensions__=no
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3917 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3918 test $ac_cv_safe_to_define___extensions__ = yes &&
3919 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3921 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3923 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3925 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3927 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3931 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3933 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3934 # Check whether --enable-vtable-verify was given.
3935 if test "${enable_vtable_verify+set}" = set; then :
3936 enableval=$enable_vtable_verify; case "$enableval" in
3937 yes) enable_vtable_verify=yes ;;
3938 no) enable_vtable_verify=no ;;
3939 *) enable_vtable_verify=no;;
3940 esac
3941 else
3942 enable_vtable_verify=no
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3946 $as_echo "$enable_vtable_verify" >&6; }
3948 # See if supported.
3949 unset VTV_SUPPORTED
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3951 $as_echo_n "checking for host support for vtable verification... " >&6; }
3952 . ${srcdir}/configure.tgt
3953 case ${host} in
3954 *-*-solaris2*)
3955 # libvtv requires init priority support, which depends on the linker
3956 # used on Solaris.
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3958 $as_echo_n "checking for init priority support... " >&6; }
3959 if ${libvtv_cv_init_priority+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3967 main ()
3969 void ip (void) __attribute__ ((constructor (1)));
3971 return 0;
3973 _ACEOF
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 libgcc_cv_init_priority=yes
3976 else
3977 libgcc_cv_init_priority=no
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3982 $as_echo "$libvtv_cv_init_priority" >&6; }
3983 if test x$libvtv_cv_init_priority = xno; then
3984 VTV_SUPPORTED=no
3986 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3987 # configure.tgt restricting to libvtv to Solaris 11+.
3989 esac
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3991 $as_echo "$VTV_SUPPORTED" >&6; }
3993 # Decide if it's usable.
3994 use_vtable_verify=no
3995 if test "x$VTV_SUPPORTED" = "xyes"; then
3996 if test "x$enable_vtable_verify" = "xyes"; then
3997 use_vtable_verify=yes
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3999 $as_echo "$as_me: using vtable verification" >&6;}
4002 if test $use_vtable_verify = yes; then
4003 ENABLE_VTABLE_VERIFY_TRUE=
4004 ENABLE_VTABLE_VERIFY_FALSE='#'
4005 else
4006 ENABLE_VTABLE_VERIFY_TRUE='#'
4007 ENABLE_VTABLE_VERIFY_FALSE=
4011 am__api_version='1.15'
4013 # Find a good install program. We prefer a C program (faster),
4014 # so one script is as good as another. But avoid the broken or
4015 # incompatible versions:
4016 # SysV /etc/install, /usr/sbin/install
4017 # SunOS /usr/etc/install
4018 # IRIX /sbin/install
4019 # AIX /bin/install
4020 # AmigaOS /C/install, which installs bootblocks on floppy discs
4021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4024 # OS/2's system install, which has a completely different semantic
4025 # ./install, which can be erroneously created by make from ./install.sh.
4026 # Reject install programs that cannot install multiple files.
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4028 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4029 if test -z "$INSTALL"; then
4030 if ${ac_cv_path_install+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 # Account for people who put trailing slashes in PATH elements.
4039 case $as_dir/ in #((
4040 ./ | .// | /[cC]/* | \
4041 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4042 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4043 /usr/ucb/* ) ;;
4045 # OSF1 and SCO ODT 3.0 have their own names for install.
4046 # Don't use installbsd from OSF since it installs stuff as root
4047 # by default.
4048 for ac_prog in ginstall scoinst install; do
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4051 if test $ac_prog = install &&
4052 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4053 # AIX install. It has an incompatible calling convention.
4055 elif test $ac_prog = install &&
4056 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4057 # program-specific install script used by HP pwplus--don't use.
4059 else
4060 rm -rf conftest.one conftest.two conftest.dir
4061 echo one > conftest.one
4062 echo two > conftest.two
4063 mkdir conftest.dir
4064 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4065 test -s conftest.one && test -s conftest.two &&
4066 test -s conftest.dir/conftest.one &&
4067 test -s conftest.dir/conftest.two
4068 then
4069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4070 break 3
4074 done
4075 done
4077 esac
4079 done
4080 IFS=$as_save_IFS
4082 rm -rf conftest.one conftest.two conftest.dir
4085 if test "${ac_cv_path_install+set}" = set; then
4086 INSTALL=$ac_cv_path_install
4087 else
4088 # As a last resort, use the slow shell script. Don't cache a
4089 # value for INSTALL within a source directory, because that will
4090 # break other packages using the cache if that directory is
4091 # removed, or if the value is a relative name.
4092 INSTALL=$ac_install_sh
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4096 $as_echo "$INSTALL" >&6; }
4098 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4099 # It thinks the first close brace ends the variable substitution.
4100 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4102 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4104 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4107 $as_echo_n "checking whether build environment is sane... " >&6; }
4108 # Reject unsafe characters in $srcdir or the absolute working directory
4109 # name. Accept space and tab only in the latter.
4110 am_lf='
4112 case `pwd` in
4113 *[\\\"\#\$\&\'\`$am_lf]*)
4114 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4115 esac
4116 case $srcdir in
4117 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4118 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4119 esac
4121 # Do 'set' in a subshell so we don't clobber the current shell's
4122 # arguments. Must try -L first in case configure is actually a
4123 # symlink; some systems play weird games with the mod time of symlinks
4124 # (eg FreeBSD returns the mod time of the symlink's containing
4125 # directory).
4126 if (
4127 am_has_slept=no
4128 for am_try in 1 2; do
4129 echo "timestamp, slept: $am_has_slept" > conftest.file
4130 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4131 if test "$*" = "X"; then
4132 # -L didn't work.
4133 set X `ls -t "$srcdir/configure" conftest.file`
4135 if test "$*" != "X $srcdir/configure conftest.file" \
4136 && test "$*" != "X conftest.file $srcdir/configure"; then
4138 # If neither matched, then we have a broken ls. This can happen
4139 # if, for instance, CONFIG_SHELL is bash and it inherits a
4140 # broken ls alias from the environment. This has actually
4141 # happened. Such a system could not be considered "sane".
4142 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4143 alias in your environment" "$LINENO" 5
4145 if test "$2" = conftest.file || test $am_try -eq 2; then
4146 break
4148 # Just in case.
4149 sleep 1
4150 am_has_slept=yes
4151 done
4152 test "$2" = conftest.file
4154 then
4155 # Ok.
4157 else
4158 as_fn_error $? "newly created file is older than distributed files!
4159 Check your system clock" "$LINENO" 5
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4162 $as_echo "yes" >&6; }
4163 # If we didn't sleep, we still need to ensure time stamps of config.status and
4164 # generated files are strictly newer.
4165 am_sleep_pid=
4166 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4167 ( sleep 1 ) &
4168 am_sleep_pid=$!
4171 rm -f conftest.file
4173 test "$program_prefix" != NONE &&
4174 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4175 # Use a double $ so make ignores it.
4176 test "$program_suffix" != NONE &&
4177 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4178 # Double any \ or $.
4179 # By default was `s,x,x', remove it if useless.
4180 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4181 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4183 if test x"${MISSING+set}" != xset; then
4184 case $am_aux_dir in
4185 *\ * | *\ *)
4186 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4188 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4189 esac
4191 # Use eval to expand $SHELL
4192 if eval "$MISSING --is-lightweight"; then
4193 am_missing_run="$MISSING "
4194 else
4195 am_missing_run=
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4197 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4200 if test x"${install_sh+set}" != xset; then
4201 case $am_aux_dir in
4202 *\ * | *\ *)
4203 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4205 install_sh="\${SHELL} $am_aux_dir/install-sh"
4206 esac
4209 # Installed binaries are usually stripped using 'strip' when the user
4210 # run "make install-strip". However 'strip' might not be the right
4211 # tool to use in cross-compilation environments, therefore Automake
4212 # will honor the 'STRIP' environment variable to overrule this program.
4213 if test "$cross_compiling" != no; then
4214 if test -n "$ac_tool_prefix"; then
4215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4216 set dummy ${ac_tool_prefix}strip; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_STRIP+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -n "$STRIP"; then
4223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4236 done
4237 done
4238 IFS=$as_save_IFS
4242 STRIP=$ac_cv_prog_STRIP
4243 if test -n "$STRIP"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4245 $as_echo "$STRIP" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4253 if test -z "$ac_cv_prog_STRIP"; then
4254 ac_ct_STRIP=$STRIP
4255 # Extract the first word of "strip", so it can be a program name with args.
4256 set dummy strip; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$ac_ct_STRIP"; then
4263 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_ac_ct_STRIP="strip"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4278 IFS=$as_save_IFS
4282 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4283 if test -n "$ac_ct_STRIP"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4285 $as_echo "$ac_ct_STRIP" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4291 if test "x$ac_ct_STRIP" = x; then
4292 STRIP=":"
4293 else
4294 case $cross_compiling:$ac_tool_warned in
4295 yes:)
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4298 ac_tool_warned=yes ;;
4299 esac
4300 STRIP=$ac_ct_STRIP
4302 else
4303 STRIP="$ac_cv_prog_STRIP"
4307 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4310 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4311 if test -z "$MKDIR_P"; then
4312 if ${ac_cv_path_mkdir+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_prog in mkdir gmkdir; do
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4323 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4324 'mkdir (GNU coreutils) '* | \
4325 'mkdir (coreutils) '* | \
4326 'mkdir (fileutils) '4.1*)
4327 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4328 break 3;;
4329 esac
4330 done
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 test -d ./--version && rmdir ./--version
4338 if test "${ac_cv_path_mkdir+set}" = set; then
4339 MKDIR_P="$ac_cv_path_mkdir -p"
4340 else
4341 # As a last resort, use the slow shell script. Don't cache a
4342 # value for MKDIR_P within a source directory, because that will
4343 # break other packages using the cache if that directory is
4344 # removed, or if the value is a relative name.
4345 MKDIR_P="$ac_install_sh -d"
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4349 $as_echo "$MKDIR_P" >&6; }
4351 for ac_prog in gawk mawk nawk awk
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_AWK+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$AWK"; then
4361 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_AWK="$ac_prog"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4376 IFS=$as_save_IFS
4380 AWK=$ac_cv_prog_AWK
4381 if test -n "$AWK"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4383 $as_echo "$AWK" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4390 test -n "$AWK" && break
4391 done
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4394 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4395 set x ${MAKE-make}
4396 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4397 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 cat >conftest.make <<\_ACEOF
4401 SHELL = /bin/sh
4402 all:
4403 @echo '@@@%%%=$(MAKE)=@@@%%%'
4404 _ACEOF
4405 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4406 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4407 *@@@%%%=?*=@@@%%%*)
4408 eval ac_cv_prog_make_${ac_make}_set=yes;;
4410 eval ac_cv_prog_make_${ac_make}_set=no;;
4411 esac
4412 rm -f conftest.make
4414 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416 $as_echo "yes" >&6; }
4417 SET_MAKE=
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 SET_MAKE="MAKE=${MAKE-make}"
4424 rm -rf .tst 2>/dev/null
4425 mkdir .tst 2>/dev/null
4426 if test -d .tst; then
4427 am__leading_dot=.
4428 else
4429 am__leading_dot=_
4431 rmdir .tst 2>/dev/null
4433 DEPDIR="${am__leading_dot}deps"
4435 ac_config_commands="$ac_config_commands depfiles"
4438 am_make=${MAKE-make}
4439 cat > confinc << 'END'
4440 am__doit:
4441 @echo this is the am__doit target
4442 .PHONY: am__doit
4444 # If we don't find an include directive, just comment out the code.
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4446 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4447 am__include="#"
4448 am__quote=
4449 _am_result=none
4450 # First try GNU make style include.
4451 echo "include confinc" > confmf
4452 # Ignore all kinds of additional output from 'make'.
4453 case `$am_make -s -f confmf 2> /dev/null` in #(
4454 *the\ am__doit\ target*)
4455 am__include=include
4456 am__quote=
4457 _am_result=GNU
4459 esac
4460 # Now try BSD make style include.
4461 if test "$am__include" = "#"; then
4462 echo '.include "confinc"' > confmf
4463 case `$am_make -s -f confmf 2> /dev/null` in #(
4464 *the\ am__doit\ target*)
4465 am__include=.include
4466 am__quote="\""
4467 _am_result=BSD
4469 esac
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4474 $as_echo "$_am_result" >&6; }
4475 rm -f confinc confmf
4477 # Check whether --enable-dependency-tracking was given.
4478 if test "${enable_dependency_tracking+set}" = set; then :
4479 enableval=$enable_dependency_tracking;
4482 if test "x$enable_dependency_tracking" != xno; then
4483 am_depcomp="$ac_aux_dir/depcomp"
4484 AMDEPBACKSLASH='\'
4485 am__nodep='_no'
4487 if test "x$enable_dependency_tracking" != xno; then
4488 AMDEP_TRUE=
4489 AMDEP_FALSE='#'
4490 else
4491 AMDEP_TRUE='#'
4492 AMDEP_FALSE=
4496 # Check whether --enable-silent-rules was given.
4497 if test "${enable_silent_rules+set}" = set; then :
4498 enableval=$enable_silent_rules;
4501 case $enable_silent_rules in # (((
4502 yes) AM_DEFAULT_VERBOSITY=0;;
4503 no) AM_DEFAULT_VERBOSITY=1;;
4504 *) AM_DEFAULT_VERBOSITY=1;;
4505 esac
4506 am_make=${MAKE-make}
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4508 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4509 if ${am_cv_make_support_nested_variables+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if $as_echo 'TRUE=$(BAR$(V))
4513 BAR0=false
4514 BAR1=true
4516 am__doit:
4517 @$(TRUE)
4518 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4519 am_cv_make_support_nested_variables=yes
4520 else
4521 am_cv_make_support_nested_variables=no
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4525 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4526 if test $am_cv_make_support_nested_variables = yes; then
4527 AM_V='$(V)'
4528 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4529 else
4530 AM_V=$AM_DEFAULT_VERBOSITY
4531 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4533 AM_BACKSLASH='\'
4535 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4536 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4537 # is not polluted with repeated "-I."
4538 am__isrc=' -I$(srcdir)'
4539 # test to see if srcdir already configured
4540 if test -f $srcdir/config.status; then
4541 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4545 # test whether we have cygpath
4546 if test -z "$CYGPATH_W"; then
4547 if (cygpath --version) >/dev/null 2>/dev/null; then
4548 CYGPATH_W='cygpath -w'
4549 else
4550 CYGPATH_W=echo
4555 # Define the identity of the package.
4556 PACKAGE='libvtv'
4557 VERSION='1.0'
4560 cat >>confdefs.h <<_ACEOF
4561 #define PACKAGE "$PACKAGE"
4562 _ACEOF
4565 cat >>confdefs.h <<_ACEOF
4566 #define VERSION "$VERSION"
4567 _ACEOF
4569 # Some tools Automake needs.
4571 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4574 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4577 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4580 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4583 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4585 # For better backward compatibility. To be removed once Automake 1.9.x
4586 # dies out for good. For more background, see:
4587 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4588 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4589 mkdir_p='$(MKDIR_P)'
4591 # We need awk for the "check" target (and possibly the TAP driver). The
4592 # system "awk" is bad on some platforms.
4593 # Always define AMTAR for backward compatibility. Yes, it's still used
4594 # in the wild :-( We should find a proper way to deprecate it ...
4595 AMTAR='$${TAR-tar}'
4598 # We'll loop over all known methods to create a tar archive until one works.
4599 _am_tools='gnutar pax cpio none'
4601 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4607 depcc="$CC" am_compiler_list=
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4610 $as_echo_n "checking dependency style of $depcc... " >&6; }
4611 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4615 # We make a subdir and do the tests there. Otherwise we can end up
4616 # making bogus files that we don't know about and never remove. For
4617 # instance it was reported that on HP-UX the gcc test will end up
4618 # making a dummy file named 'D' -- because '-MD' means "put the output
4619 # in D".
4620 rm -rf conftest.dir
4621 mkdir conftest.dir
4622 # Copy depcomp to subdir because otherwise we won't find it if we're
4623 # using a relative directory.
4624 cp "$am_depcomp" conftest.dir
4625 cd conftest.dir
4626 # We will build objects and dependencies in a subdirectory because
4627 # it helps to detect inapplicable dependency modes. For instance
4628 # both Tru64's cc and ICC support -MD to output dependencies as a
4629 # side effect of compilation, but ICC will put the dependencies in
4630 # the current directory while Tru64 will put them in the object
4631 # directory.
4632 mkdir sub
4634 am_cv_CC_dependencies_compiler_type=none
4635 if test "$am_compiler_list" = ""; then
4636 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4638 am__universal=false
4639 case " $depcc " in #(
4640 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4641 esac
4643 for depmode in $am_compiler_list; do
4644 # Setup a source with many dependencies, because some compilers
4645 # like to wrap large dependency lists on column 80 (with \), and
4646 # we should not choose a depcomp mode which is confused by this.
4648 # We need to recreate these files for each test, as the compiler may
4649 # overwrite some of them when testing with obscure command lines.
4650 # This happens at least with the AIX C compiler.
4651 : > sub/conftest.c
4652 for i in 1 2 3 4 5 6; do
4653 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4654 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4655 # Solaris 10 /bin/sh.
4656 echo '/* dummy */' > sub/conftst$i.h
4657 done
4658 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4660 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4661 # mode. It turns out that the SunPro C++ compiler does not properly
4662 # handle '-M -o', and we need to detect this. Also, some Intel
4663 # versions had trouble with output in subdirs.
4664 am__obj=sub/conftest.${OBJEXT-o}
4665 am__minus_obj="-o $am__obj"
4666 case $depmode in
4667 gcc)
4668 # This depmode causes a compiler race in universal mode.
4669 test "$am__universal" = false || continue
4671 nosideeffect)
4672 # After this tag, mechanisms are not by side-effect, so they'll
4673 # only be used when explicitly requested.
4674 if test "x$enable_dependency_tracking" = xyes; then
4675 continue
4676 else
4677 break
4680 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4681 # This compiler won't grok '-c -o', but also, the minuso test has
4682 # not run yet. These depmodes are late enough in the game, and
4683 # so weak that their functioning should not be impacted.
4684 am__obj=conftest.${OBJEXT-o}
4685 am__minus_obj=
4687 none) break ;;
4688 esac
4689 if depmode=$depmode \
4690 source=sub/conftest.c object=$am__obj \
4691 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4692 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4693 >/dev/null 2>conftest.err &&
4694 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4696 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4698 # icc doesn't choke on unknown options, it will just issue warnings
4699 # or remarks (even with -Werror). So we grep stderr for any message
4700 # that says an option was ignored or not supported.
4701 # When given -MP, icc 7.0 and 7.1 complain thusly:
4702 # icc: Command line warning: ignoring option '-M'; no argument required
4703 # The diagnosis changed in icc 8.0:
4704 # icc: Command line remark: option '-MP' not supported
4705 if (grep 'ignoring option' conftest.err ||
4706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4707 am_cv_CC_dependencies_compiler_type=$depmode
4708 break
4711 done
4713 cd ..
4714 rm -rf conftest.dir
4715 else
4716 am_cv_CC_dependencies_compiler_type=none
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4721 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4722 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4725 test "x$enable_dependency_tracking" != xno \
4726 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4727 am__fastdepCC_TRUE=
4728 am__fastdepCC_FALSE='#'
4729 else
4730 am__fastdepCC_TRUE='#'
4731 am__fastdepCC_FALSE=
4736 # POSIX will say in a future version that running "rm -f" with no argument
4737 # is OK; and we want to be able to make that assumption in our Makefile
4738 # recipes. So use an aggressive probe to check that the usage we want is
4739 # actually supported "in the wild" to an acceptable degree.
4740 # See automake bug#10828.
4741 # To make any issue more visible, cause the running configure to be aborted
4742 # by default if the 'rm' program in use doesn't match our expectations; the
4743 # user can still override this though.
4744 if rm -f && rm -fr && rm -rf; then : OK; else
4745 cat >&2 <<'END'
4746 Oops!
4748 Your 'rm' program seems unable to run without file operands specified
4749 on the command line, even when the '-f' option is present. This is contrary
4750 to the behaviour of most rm programs out there, and not conforming with
4751 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4753 Please tell bug-automake@gnu.org about your system, including the value
4754 of your $PATH and any error possibly output before this message. This
4755 can help us improve future automake versions.
4758 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4759 echo 'Configuration will proceed anyway, since you have set the' >&2
4760 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4761 echo >&2
4762 else
4763 cat >&2 <<'END'
4764 Aborting the configuration process, to ensure you take notice of the issue.
4766 You can download and install GNU coreutils to get an 'rm' implementation
4767 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4769 If you want to complete the configuration process using your problematic
4770 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4771 to "yes", and re-run configure.
4774 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4780 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4781 # Check whether --enable-maintainer-mode was given.
4782 if test "${enable_maintainer_mode+set}" = set; then :
4783 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4784 else
4785 USE_MAINTAINER_MODE=no
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4789 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4790 if test $USE_MAINTAINER_MODE = yes; then
4791 MAINTAINER_MODE_TRUE=
4792 MAINTAINER_MODE_FALSE='#'
4793 else
4794 MAINTAINER_MODE_TRUE='#'
4795 MAINTAINER_MODE_FALSE=
4798 MAINT=$MAINTAINER_MODE_TRUE
4804 # These need to be absolute paths, yet at the same time need to
4805 # canonicalize only relative paths, because then amd will not unmount
4806 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4807 libvtv_builddir=`${PWDCMD-pwd}`
4808 case $srcdir in
4809 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4810 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4811 esac
4812 toplevel_builddir=${libvtv_builddir}/..
4813 toplevel_srcdir=${libvtv_srcdir}/..
4821 # Check whether --with-toolexeclibdir was given.
4822 if test "${with_toolexeclibdir+set}" = set; then :
4823 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
4827 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
4829 esac
4830 else
4831 with_toolexeclibdir=no
4836 # Calculate toolexeclibdir
4837 # Also toolexecdir, though it's only used in toolexeclibdir
4838 case ${version_specific_libs} in
4839 yes)
4840 # Need the gcc compiler version to know where to install libraries
4841 # and header files if --enable-version-specific-runtime-libs option
4842 # is selected.
4843 toolexecdir='$(libdir)/gcc/$(target_alias)'
4844 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4847 if test -n "$with_cross_host" &&
4848 test x"$with_cross_host" != x"no"; then
4849 # Install a library built with a cross compiler in tooldir, not libdir.
4850 toolexecdir='$(exec_prefix)/$(target_alias)'
4851 case ${with_toolexeclibdir} in
4853 toolexeclibdir='$(toolexecdir)/lib'
4856 toolexeclibdir=${with_toolexeclibdir}
4858 esac
4859 else
4860 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4861 toolexeclibdir='$(libdir)'
4863 multi_os_directory=`$CC -print-multi-os-directory`
4864 case $multi_os_directory in
4865 .) ;; # Avoid trailing /.
4866 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4867 esac
4869 esac
4874 for ac_func in __secure_getenv
4875 do :
4876 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4877 if test "x$ac_cv_func___secure_getenv" = xyes; then :
4878 cat >>confdefs.h <<_ACEOF
4879 #define HAVE___SECURE_GETENV 1
4880 _ACEOF
4883 done
4887 for ac_func in secure_getenv
4888 do :
4889 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4890 if test "x$ac_cv_func_secure_getenv" = xyes; then :
4891 cat >>confdefs.h <<_ACEOF
4892 #define HAVE_SECURE_GETENV 1
4893 _ACEOF
4896 done
4899 for ac_func in getexecname __fortify_fail
4900 do :
4901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4904 cat >>confdefs.h <<_ACEOF
4905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4906 _ACEOF
4909 done
4912 # Check for programs.
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4922 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_CC+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$CC"; then
4929 ac_cv_prog_CC="$CC" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 CC=$ac_cv_prog_CC
4949 if test -n "$CC"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4951 $as_echo "$CC" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4959 if test -z "$ac_cv_prog_CC"; then
4960 ac_ct_CC=$CC
4961 # Extract the first word of "gcc", so it can be a program name with args.
4962 set dummy gcc; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$ac_ct_CC"; then
4969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_ac_ct_CC="gcc"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4989 if test -n "$ac_ct_CC"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4991 $as_echo "$ac_ct_CC" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4997 if test "x$ac_ct_CC" = x; then
4998 CC=""
4999 else
5000 case $cross_compiling:$ac_tool_warned in
5001 yes:)
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5004 ac_tool_warned=yes ;;
5005 esac
5006 CC=$ac_ct_CC
5008 else
5009 CC="$ac_cv_prog_CC"
5012 if test -z "$CC"; then
5013 if test -n "$ac_tool_prefix"; then
5014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5015 set dummy ${ac_tool_prefix}cc; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_CC+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -n "$CC"; then
5022 ac_cv_prog_CC="$CC" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_CC="${ac_tool_prefix}cc"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5035 done
5036 done
5037 IFS=$as_save_IFS
5041 CC=$ac_cv_prog_CC
5042 if test -n "$CC"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5044 $as_echo "$CC" >&6; }
5045 else
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5053 if test -z "$CC"; then
5054 # Extract the first word of "cc", so it can be a program name with args.
5055 set dummy cc; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_CC+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$CC"; then
5062 ac_cv_prog_CC="$CC" # Let the user override the test.
5063 else
5064 ac_prog_rejected=no
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5073 ac_prog_rejected=yes
5074 continue
5076 ac_cv_prog_CC="cc"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5080 done
5081 done
5082 IFS=$as_save_IFS
5084 if test $ac_prog_rejected = yes; then
5085 # We found a bogon in the path, so make sure we never use it.
5086 set dummy $ac_cv_prog_CC
5087 shift
5088 if test $# != 0; then
5089 # We chose a different compiler from the bogus one.
5090 # However, it has the same basename, so the bogon will be chosen
5091 # first if we set CC to just the basename; use the full file name.
5092 shift
5093 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5098 CC=$ac_cv_prog_CC
5099 if test -n "$CC"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5101 $as_echo "$CC" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5109 if test -z "$CC"; then
5110 if test -n "$ac_tool_prefix"; then
5111 for ac_prog in cl.exe
5113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_CC+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -n "$CC"; then
5121 ac_cv_prog_CC="$CC" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5134 done
5135 done
5136 IFS=$as_save_IFS
5140 CC=$ac_cv_prog_CC
5141 if test -n "$CC"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5143 $as_echo "$CC" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 test -n "$CC" && break
5151 done
5153 if test -z "$CC"; then
5154 ac_ct_CC=$CC
5155 for ac_prog in cl.exe
5157 # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$ac_ct_CC"; then
5165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_CC="$ac_prog"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5180 IFS=$as_save_IFS
5184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5185 if test -n "$ac_ct_CC"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5187 $as_echo "$ac_ct_CC" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5194 test -n "$ac_ct_CC" && break
5195 done
5197 if test "x$ac_ct_CC" = x; then
5198 CC=""
5199 else
5200 case $cross_compiling:$ac_tool_warned in
5201 yes:)
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5204 ac_tool_warned=yes ;;
5205 esac
5206 CC=$ac_ct_CC
5213 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 as_fn_error $? "no acceptable C compiler found in \$PATH
5216 See \`config.log' for more details" "$LINENO" 5; }
5218 # Provide some information about the compiler.
5219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5220 set X $ac_compile
5221 ac_compiler=$2
5222 for ac_option in --version -v -V -qversion; do
5223 { { ac_try="$ac_compiler $ac_option >&5"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5229 $as_echo "$ac_try_echo"; } >&5
5230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5231 ac_status=$?
5232 if test -s conftest.err; then
5233 sed '10a\
5234 ... rest of stderr output deleted ...
5235 10q' conftest.err >conftest.er1
5236 cat conftest.er1 >&5
5238 rm -f conftest.er1 conftest.err
5239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5240 test $ac_status = 0; }
5241 done
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5244 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5245 if ${ac_cv_c_compiler_gnu+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5252 main ()
5254 #ifndef __GNUC__
5255 choke me
5256 #endif
5259 return 0;
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_compiler_gnu=yes
5264 else
5265 ac_compiler_gnu=no
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5272 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5273 if test $ac_compiler_gnu = yes; then
5274 GCC=yes
5275 else
5276 GCC=
5278 ac_test_CFLAGS=${CFLAGS+set}
5279 ac_save_CFLAGS=$CFLAGS
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5281 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5282 if ${ac_cv_prog_cc_g+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 ac_save_c_werror_flag=$ac_c_werror_flag
5286 ac_c_werror_flag=yes
5287 ac_cv_prog_cc_g=no
5288 CFLAGS="-g"
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5293 main ()
5297 return 0;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_prog_cc_g=yes
5302 else
5303 CFLAGS=""
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5308 main ()
5312 return 0;
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"; then :
5317 else
5318 ac_c_werror_flag=$ac_save_c_werror_flag
5319 CFLAGS="-g"
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5324 main ()
5328 return 0;
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 ac_cv_prog_cc_g=yes
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 ac_c_werror_flag=$ac_save_c_werror_flag
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5342 $as_echo "$ac_cv_prog_cc_g" >&6; }
5343 if test "$ac_test_CFLAGS" = set; then
5344 CFLAGS=$ac_save_CFLAGS
5345 elif test $ac_cv_prog_cc_g = yes; then
5346 if test "$GCC" = yes; then
5347 CFLAGS="-g -O2"
5348 else
5349 CFLAGS="-g"
5351 else
5352 if test "$GCC" = yes; then
5353 CFLAGS="-O2"
5354 else
5355 CFLAGS=
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5359 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5360 if ${ac_cv_prog_cc_c89+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 ac_cv_prog_cc_c89=no
5364 ac_save_CC=$CC
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #include <stdarg.h>
5368 #include <stdio.h>
5369 struct stat;
5370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5371 struct buf { int x; };
5372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5373 static char *e (p, i)
5374 char **p;
5375 int i;
5377 return p[i];
5379 static char *f (char * (*g) (char **, int), char **p, ...)
5381 char *s;
5382 va_list v;
5383 va_start (v,p);
5384 s = g (p, va_arg (v,int));
5385 va_end (v);
5386 return s;
5389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5390 function prototypes and stuff, but not '\xHH' hex character constants.
5391 These don't provoke an error unfortunately, instead are silently treated
5392 as 'x'. The following induces an error, until -std is added to get
5393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5394 array size at least. It's necessary to write '\x00'==0 to get something
5395 that's true only with -std. */
5396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5399 inside strings and character constants. */
5400 #define FOO(x) 'x'
5401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5403 int test (int i, double x);
5404 struct s1 {int (*f) (int a);};
5405 struct s2 {int (*f) (double a);};
5406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5407 int argc;
5408 char **argv;
5410 main ()
5412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5414 return 0;
5416 _ACEOF
5417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5420 CC="$ac_save_CC $ac_arg"
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_prog_cc_c89=$ac_arg
5424 rm -f core conftest.err conftest.$ac_objext
5425 test "x$ac_cv_prog_cc_c89" != "xno" && break
5426 done
5427 rm -f conftest.$ac_ext
5428 CC=$ac_save_CC
5431 # AC_CACHE_VAL
5432 case "x$ac_cv_prog_cc_c89" in
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5435 $as_echo "none needed" >&6; } ;;
5436 xno)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5438 $as_echo "unsupported" >&6; } ;;
5440 CC="$CC $ac_cv_prog_cc_c89"
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5442 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5443 esac
5444 if test "x$ac_cv_prog_cc_c89" != xno; then :
5448 ac_ext=c
5449 ac_cpp='$CPP $CPPFLAGS'
5450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454 ac_ext=c
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5460 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5461 if ${am_cv_prog_cc_c_o+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5468 main ()
5472 return 0;
5474 _ACEOF
5475 # Make sure it works both with $CC and with simple cc.
5476 # Following AC_PROG_CC_C_O, we do the test twice because some
5477 # compilers refuse to overwrite an existing .o file with -o,
5478 # though they will create one.
5479 am_cv_prog_cc_c_o=yes
5480 for am_i in 1 2; do
5481 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5482 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } \
5486 && test -f conftest2.$ac_objext; then
5487 : OK
5488 else
5489 am_cv_prog_cc_c_o=no
5490 break
5492 done
5493 rm -f core conftest*
5494 unset am_i
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5497 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5498 if test "$am_cv_prog_cc_c_o" != yes; then
5499 # Losing compiler, so override with the script.
5500 # FIXME: It is wrong to rewrite CC.
5501 # But if we don't then we get into trouble of one sort or another.
5502 # A longer-term fix would be to have automake use am__CC in this case,
5503 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5504 CC="$am_aux_dir/compile $CC"
5506 ac_ext=c
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513 ac_ext=cpp
5514 ac_cpp='$CXXCPP $CPPFLAGS'
5515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5518 if test -z "$CXX"; then
5519 if test -n "$CCC"; then
5520 CXX=$CCC
5521 else
5522 if test -n "$ac_tool_prefix"; then
5523 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_CXX+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$CXX"; then
5533 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5546 done
5547 done
5548 IFS=$as_save_IFS
5552 CXX=$ac_cv_prog_CXX
5553 if test -n "$CXX"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5555 $as_echo "$CXX" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 test -n "$CXX" && break
5563 done
5565 if test -z "$CXX"; then
5566 ac_ct_CXX=$CXX
5567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$ac_ct_CXX"; then
5577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_ac_ct_CXX="$ac_prog"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5590 done
5591 done
5592 IFS=$as_save_IFS
5596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5597 if test -n "$ac_ct_CXX"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5599 $as_echo "$ac_ct_CXX" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5606 test -n "$ac_ct_CXX" && break
5607 done
5609 if test "x$ac_ct_CXX" = x; then
5610 CXX="g++"
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613 yes:)
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned=yes ;;
5617 esac
5618 CXX=$ac_ct_CXX
5624 # Provide some information about the compiler.
5625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5626 set X $ac_compile
5627 ac_compiler=$2
5628 for ac_option in --version -v -V -qversion; do
5629 { { ac_try="$ac_compiler $ac_option >&5"
5630 case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5637 ac_status=$?
5638 if test -s conftest.err; then
5639 sed '10a\
5640 ... rest of stderr output deleted ...
5641 10q' conftest.err >conftest.er1
5642 cat conftest.er1 >&5
5644 rm -f conftest.er1 conftest.err
5645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5646 test $ac_status = 0; }
5647 done
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5650 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5651 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5658 main ()
5660 #ifndef __GNUC__
5661 choke me
5662 #endif
5665 return 0;
5667 _ACEOF
5668 if ac_fn_cxx_try_compile "$LINENO"; then :
5669 ac_compiler_gnu=yes
5670 else
5671 ac_compiler_gnu=no
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5679 if test $ac_compiler_gnu = yes; then
5680 GXX=yes
5681 else
5682 GXX=
5684 ac_test_CXXFLAGS=${CXXFLAGS+set}
5685 ac_save_CXXFLAGS=$CXXFLAGS
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5688 if ${ac_cv_prog_cxx_g+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5692 ac_cxx_werror_flag=yes
5693 ac_cv_prog_cxx_g=no
5694 CXXFLAGS="-g"
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5699 main ()
5703 return 0;
5705 _ACEOF
5706 if ac_fn_cxx_try_compile "$LINENO"; then :
5707 ac_cv_prog_cxx_g=yes
5708 else
5709 CXXFLAGS=""
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5714 main ()
5718 return 0;
5720 _ACEOF
5721 if ac_fn_cxx_try_compile "$LINENO"; then :
5723 else
5724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5725 CXXFLAGS="-g"
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5730 main ()
5734 return 0;
5736 _ACEOF
5737 if ac_fn_cxx_try_compile "$LINENO"; then :
5738 ac_cv_prog_cxx_g=yes
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5748 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5749 if test "$ac_test_CXXFLAGS" = set; then
5750 CXXFLAGS=$ac_save_CXXFLAGS
5751 elif test $ac_cv_prog_cxx_g = yes; then
5752 if test "$GXX" = yes; then
5753 CXXFLAGS="-g -O2"
5754 else
5755 CXXFLAGS="-g"
5757 else
5758 if test "$GXX" = yes; then
5759 CXXFLAGS="-O2"
5760 else
5761 CXXFLAGS=
5764 ac_ext=c
5765 ac_cpp='$CPP $CPPFLAGS'
5766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5770 depcc="$CXX" am_compiler_list=
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5773 $as_echo_n "checking dependency style of $depcc... " >&6; }
5774 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5778 # We make a subdir and do the tests there. Otherwise we can end up
5779 # making bogus files that we don't know about and never remove. For
5780 # instance it was reported that on HP-UX the gcc test will end up
5781 # making a dummy file named 'D' -- because '-MD' means "put the output
5782 # in D".
5783 rm -rf conftest.dir
5784 mkdir conftest.dir
5785 # Copy depcomp to subdir because otherwise we won't find it if we're
5786 # using a relative directory.
5787 cp "$am_depcomp" conftest.dir
5788 cd conftest.dir
5789 # We will build objects and dependencies in a subdirectory because
5790 # it helps to detect inapplicable dependency modes. For instance
5791 # both Tru64's cc and ICC support -MD to output dependencies as a
5792 # side effect of compilation, but ICC will put the dependencies in
5793 # the current directory while Tru64 will put them in the object
5794 # directory.
5795 mkdir sub
5797 am_cv_CXX_dependencies_compiler_type=none
5798 if test "$am_compiler_list" = ""; then
5799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5801 am__universal=false
5802 case " $depcc " in #(
5803 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5804 esac
5806 for depmode in $am_compiler_list; do
5807 # Setup a source with many dependencies, because some compilers
5808 # like to wrap large dependency lists on column 80 (with \), and
5809 # we should not choose a depcomp mode which is confused by this.
5811 # We need to recreate these files for each test, as the compiler may
5812 # overwrite some of them when testing with obscure command lines.
5813 # This happens at least with the AIX C compiler.
5814 : > sub/conftest.c
5815 for i in 1 2 3 4 5 6; do
5816 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5817 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5818 # Solaris 10 /bin/sh.
5819 echo '/* dummy */' > sub/conftst$i.h
5820 done
5821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5823 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5824 # mode. It turns out that the SunPro C++ compiler does not properly
5825 # handle '-M -o', and we need to detect this. Also, some Intel
5826 # versions had trouble with output in subdirs.
5827 am__obj=sub/conftest.${OBJEXT-o}
5828 am__minus_obj="-o $am__obj"
5829 case $depmode in
5830 gcc)
5831 # This depmode causes a compiler race in universal mode.
5832 test "$am__universal" = false || continue
5834 nosideeffect)
5835 # After this tag, mechanisms are not by side-effect, so they'll
5836 # only be used when explicitly requested.
5837 if test "x$enable_dependency_tracking" = xyes; then
5838 continue
5839 else
5840 break
5843 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5844 # This compiler won't grok '-c -o', but also, the minuso test has
5845 # not run yet. These depmodes are late enough in the game, and
5846 # so weak that their functioning should not be impacted.
5847 am__obj=conftest.${OBJEXT-o}
5848 am__minus_obj=
5850 none) break ;;
5851 esac
5852 if depmode=$depmode \
5853 source=sub/conftest.c object=$am__obj \
5854 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5855 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5856 >/dev/null 2>conftest.err &&
5857 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5858 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5859 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5860 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5861 # icc doesn't choke on unknown options, it will just issue warnings
5862 # or remarks (even with -Werror). So we grep stderr for any message
5863 # that says an option was ignored or not supported.
5864 # When given -MP, icc 7.0 and 7.1 complain thusly:
5865 # icc: Command line warning: ignoring option '-M'; no argument required
5866 # The diagnosis changed in icc 8.0:
5867 # icc: Command line remark: option '-MP' not supported
5868 if (grep 'ignoring option' conftest.err ||
5869 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5870 am_cv_CXX_dependencies_compiler_type=$depmode
5871 break
5874 done
5876 cd ..
5877 rm -rf conftest.dir
5878 else
5879 am_cv_CXX_dependencies_compiler_type=none
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5884 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5885 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5888 test "x$enable_dependency_tracking" != xno \
5889 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5890 am__fastdepCXX_TRUE=
5891 am__fastdepCXX_FALSE='#'
5892 else
5893 am__fastdepCXX_TRUE='#'
5894 am__fastdepCXX_FALSE=
5905 # Newer automakes demand CCAS and CCASFLAGS.
5906 : ${CCAS='$(CC)'}
5907 : ${CCASFLAGS='$(CFLAGS)'}
5911 if test -n "$ac_tool_prefix"; then
5912 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5913 set dummy ${ac_tool_prefix}as; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_AS+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$AS"; then
5920 ac_cv_prog_AS="$AS" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_AS="${ac_tool_prefix}as"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5933 done
5934 done
5935 IFS=$as_save_IFS
5939 AS=$ac_cv_prog_AS
5940 if test -n "$AS"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5942 $as_echo "$AS" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5950 if test -z "$ac_cv_prog_AS"; then
5951 ac_ct_AS=$AS
5952 # Extract the first word of "as", so it can be a program name with args.
5953 set dummy as; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if test -n "$ac_ct_AS"; then
5960 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_AS="as"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5973 done
5974 done
5975 IFS=$as_save_IFS
5979 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5980 if test -n "$ac_ct_AS"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5982 $as_echo "$ac_ct_AS" >&6; }
5983 else
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5988 if test "x$ac_ct_AS" = x; then
5989 AS=""
5990 else
5991 case $cross_compiling:$ac_tool_warned in
5992 yes:)
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 ac_tool_warned=yes ;;
5996 esac
5997 AS=$ac_ct_AS
5999 else
6000 AS="$ac_cv_prog_AS"
6003 if test -n "$ac_tool_prefix"; then
6004 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6005 set dummy ${ac_tool_prefix}ar; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_AR+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 if test -n "$AR"; then
6012 ac_cv_prog_AR="$AR" # Let the user override the test.
6013 else
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021 ac_cv_prog_AR="${ac_tool_prefix}ar"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6025 done
6026 done
6027 IFS=$as_save_IFS
6031 AR=$ac_cv_prog_AR
6032 if test -n "$AR"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6034 $as_echo "$AR" >&6; }
6035 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6042 if test -z "$ac_cv_prog_AR"; then
6043 ac_ct_AR=$AR
6044 # Extract the first word of "ar", so it can be a program name with args.
6045 set dummy ar; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test -n "$ac_ct_AR"; then
6052 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_ac_ct_AR="ar"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6065 done
6066 done
6067 IFS=$as_save_IFS
6071 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6072 if test -n "$ac_ct_AR"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6074 $as_echo "$ac_ct_AR" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6080 if test "x$ac_ct_AR" = x; then
6081 AR=""
6082 else
6083 case $cross_compiling:$ac_tool_warned in
6084 yes:)
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6087 ac_tool_warned=yes ;;
6088 esac
6089 AR=$ac_ct_AR
6091 else
6092 AR="$ac_cv_prog_AR"
6095 if test -n "$ac_tool_prefix"; then
6096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_RANLIB+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 if test -n "$RANLIB"; then
6104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6117 done
6118 done
6119 IFS=$as_save_IFS
6123 RANLIB=$ac_cv_prog_RANLIB
6124 if test -n "$RANLIB"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6126 $as_echo "$RANLIB" >&6; }
6127 else
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6134 if test -z "$ac_cv_prog_RANLIB"; then
6135 ac_ct_RANLIB=$RANLIB
6136 # Extract the first word of "ranlib", so it can be a program name with args.
6137 set dummy ranlib; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 if test -n "$ac_ct_RANLIB"; then
6144 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_ac_ct_RANLIB="ranlib"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6157 done
6158 done
6159 IFS=$as_save_IFS
6163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6164 if test -n "$ac_ct_RANLIB"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6166 $as_echo "$ac_ct_RANLIB" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6172 if test "x$ac_ct_RANLIB" = x; then
6173 RANLIB=":"
6174 else
6175 case $cross_compiling:$ac_tool_warned in
6176 yes:)
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6179 ac_tool_warned=yes ;;
6180 esac
6181 RANLIB=$ac_ct_RANLIB
6183 else
6184 RANLIB="$ac_cv_prog_RANLIB"
6188 # Configure libtool
6189 enable_dlopen=yes
6193 case `pwd` in
6194 *\ * | *\ *)
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6196 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6197 esac
6201 macro_version='2.2.7a'
6202 macro_revision='1.3134'
6216 ltmain="$ac_aux_dir/ltmain.sh"
6218 # Backslashify metacharacters that are still active within
6219 # double-quoted strings.
6220 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6222 # Same as above, but do not quote variable references.
6223 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6225 # Sed substitution to delay expansion of an escaped shell variable in a
6226 # double_quote_subst'ed string.
6227 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6229 # Sed substitution to delay expansion of an escaped single quote.
6230 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6232 # Sed substitution to avoid accidental globbing in evaled expressions
6233 no_glob_subst='s/\*/\\\*/g'
6235 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6236 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6237 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6240 $as_echo_n "checking how to print strings... " >&6; }
6241 # Test print first, because it will be a builtin if present.
6242 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6243 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6244 ECHO='print -r --'
6245 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6246 ECHO='printf %s\n'
6247 else
6248 # Use this function as a fallback that always works.
6249 func_fallback_echo ()
6251 eval 'cat <<_LTECHO_EOF
6253 _LTECHO_EOF'
6255 ECHO='func_fallback_echo'
6258 # func_echo_all arg...
6259 # Invoke $ECHO with all args, space-separated.
6260 func_echo_all ()
6262 $ECHO ""
6265 case "$ECHO" in
6266 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6267 $as_echo "printf" >&6; } ;;
6268 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6269 $as_echo "print -r" >&6; } ;;
6270 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6271 $as_echo "cat" >&6; } ;;
6272 esac
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6288 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6289 if ${ac_cv_path_SED+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6293 for ac_i in 1 2 3 4 5 6 7; do
6294 ac_script="$ac_script$as_nl$ac_script"
6295 done
6296 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6297 { ac_script=; unset ac_script;}
6298 if test -z "$SED"; then
6299 ac_path_SED_found=false
6300 # Loop through the user's path and test for each of PROGNAME-LIST
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_prog in sed gsed; do
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6309 as_fn_executable_p "$ac_path_SED" || continue
6310 # Check for GNU ac_path_SED and select it if it is found.
6311 # Check for GNU $ac_path_SED
6312 case `"$ac_path_SED" --version 2>&1` in
6313 *GNU*)
6314 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6316 ac_count=0
6317 $as_echo_n 0123456789 >"conftest.in"
6318 while :
6320 cat "conftest.in" "conftest.in" >"conftest.tmp"
6321 mv "conftest.tmp" "conftest.in"
6322 cp "conftest.in" "conftest.nl"
6323 $as_echo '' >> "conftest.nl"
6324 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6326 as_fn_arith $ac_count + 1 && ac_count=$as_val
6327 if test $ac_count -gt ${ac_path_SED_max-0}; then
6328 # Best one so far, save it but keep looking for a better one
6329 ac_cv_path_SED="$ac_path_SED"
6330 ac_path_SED_max=$ac_count
6332 # 10*(2^10) chars as input seems more than enough
6333 test $ac_count -gt 10 && break
6334 done
6335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6336 esac
6338 $ac_path_SED_found && break 3
6339 done
6340 done
6341 done
6342 IFS=$as_save_IFS
6343 if test -z "$ac_cv_path_SED"; then
6344 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6346 else
6347 ac_cv_path_SED=$SED
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6352 $as_echo "$ac_cv_path_SED" >&6; }
6353 SED="$ac_cv_path_SED"
6354 rm -f conftest.sed
6356 test -z "$SED" && SED=sed
6357 Xsed="$SED -e 1s/^X//"
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6370 $as_echo_n "checking for fgrep... " >&6; }
6371 if ${ac_cv_path_FGREP+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6375 then ac_cv_path_FGREP="$GREP -F"
6376 else
6377 if test -z "$FGREP"; then
6378 ac_path_FGREP_found=false
6379 # Loop through the user's path and test for each of PROGNAME-LIST
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_prog in fgrep; do
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6388 as_fn_executable_p "$ac_path_FGREP" || continue
6389 # Check for GNU ac_path_FGREP and select it if it is found.
6390 # Check for GNU $ac_path_FGREP
6391 case `"$ac_path_FGREP" --version 2>&1` in
6392 *GNU*)
6393 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6395 ac_count=0
6396 $as_echo_n 0123456789 >"conftest.in"
6397 while :
6399 cat "conftest.in" "conftest.in" >"conftest.tmp"
6400 mv "conftest.tmp" "conftest.in"
6401 cp "conftest.in" "conftest.nl"
6402 $as_echo 'FGREP' >> "conftest.nl"
6403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6405 as_fn_arith $ac_count + 1 && ac_count=$as_val
6406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6407 # Best one so far, save it but keep looking for a better one
6408 ac_cv_path_FGREP="$ac_path_FGREP"
6409 ac_path_FGREP_max=$ac_count
6411 # 10*(2^10) chars as input seems more than enough
6412 test $ac_count -gt 10 && break
6413 done
6414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6415 esac
6417 $ac_path_FGREP_found && break 3
6418 done
6419 done
6420 done
6421 IFS=$as_save_IFS
6422 if test -z "$ac_cv_path_FGREP"; then
6423 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6425 else
6426 ac_cv_path_FGREP=$FGREP
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6432 $as_echo "$ac_cv_path_FGREP" >&6; }
6433 FGREP="$ac_cv_path_FGREP"
6436 test -z "$GREP" && GREP=grep
6456 # Check whether --with-gnu-ld was given.
6457 if test "${with_gnu_ld+set}" = set; then :
6458 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6459 else
6460 with_gnu_ld=no
6463 ac_prog=ld
6464 if test "$GCC" = yes; then
6465 # Check if gcc -print-prog-name=ld gives a path.
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6467 $as_echo_n "checking for ld used by $CC... " >&6; }
6468 case $host in
6469 *-*-mingw*)
6470 # gcc leaves a trailing carriage return which upsets mingw
6471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6474 esac
6475 case $ac_prog in
6476 # Accept absolute paths.
6477 [\\/]* | ?:[\\/]*)
6478 re_direlt='/[^/][^/]*/\.\./'
6479 # Canonicalize the pathname of ld
6480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6483 done
6484 test -z "$LD" && LD="$ac_prog"
6487 # If it fails, then pretend we aren't using GCC.
6488 ac_prog=ld
6491 # If it is relative, then search for the first ld in PATH.
6492 with_gnu_ld=unknown
6494 esac
6495 elif test "$with_gnu_ld" = yes; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6497 $as_echo_n "checking for GNU ld... " >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6500 $as_echo_n "checking for non-GNU ld... " >&6; }
6502 if ${lt_cv_path_LD+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 if test -z "$LD"; then
6506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6507 for ac_dir in $PATH; do
6508 IFS="$lt_save_ifs"
6509 test -z "$ac_dir" && ac_dir=.
6510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6511 lt_cv_path_LD="$ac_dir/$ac_prog"
6512 # Check to see if the program is GNU ld. I'd rather use --version,
6513 # but apparently some variants of GNU ld only accept -v.
6514 # Break only if it was the GNU/non-GNU ld that we prefer.
6515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6516 *GNU* | *'with BFD'*)
6517 test "$with_gnu_ld" != no && break
6520 test "$with_gnu_ld" != yes && break
6522 esac
6524 done
6525 IFS="$lt_save_ifs"
6526 else
6527 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6531 LD="$lt_cv_path_LD"
6532 if test -n "$LD"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6534 $as_echo "$LD" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6539 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6541 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6542 if ${lt_cv_prog_gnu_ld+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6546 case `$LD -v 2>&1 </dev/null` in
6547 *GNU* | *'with BFD'*)
6548 lt_cv_prog_gnu_ld=yes
6551 lt_cv_prog_gnu_ld=no
6553 esac
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6556 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6557 with_gnu_ld=$lt_cv_prog_gnu_ld
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6568 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6569 if ${lt_cv_path_NM+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 if test -n "$NM"; then
6573 # Let the user override the nm to test.
6574 lt_nm_to_check="$NM"
6575 else
6576 lt_nm_to_check="${ac_tool_prefix}nm"
6577 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6578 lt_nm_to_check="$lt_nm_to_check nm"
6581 for lt_tmp_nm in "$lt_nm_to_check"; do
6582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6583 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6584 IFS="$lt_save_ifs"
6585 test -z "$ac_dir" && ac_dir=.
6586 # Strip out any user-provided options from the nm to test twice,
6587 # the first time to test to see if nm (rather than its options) has
6588 # an explicit path, the second time to yield a file which can be
6589 # nm'ed itself.
6590 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6591 case "$tmp_nm_path" in
6592 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6593 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6594 esac
6595 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6596 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6597 # Check to see if the nm accepts a BSD-compat flag.
6598 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6599 # nm: unknown option "B" ignored
6600 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6601 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6602 break
6605 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6606 *$tmp_nm*)
6607 lt_cv_path_NM="$tmp_nm -p"
6608 break
6611 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6612 continue # so that we can try to find one that supports BSD flags
6614 esac
6616 esac
6618 done
6619 IFS="$lt_save_ifs"
6620 done
6621 : ${lt_cv_path_NM=no}
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6624 $as_echo "$lt_cv_path_NM" >&6; }
6625 if test "$lt_cv_path_NM" != "no"; then
6626 NM="$lt_cv_path_NM"
6627 else
6628 # Didn't find any BSD compatible name lister, look for dumpbin.
6629 if test -n "$DUMPBIN"; then :
6630 # Let the user override the test.
6631 else
6632 if test -n "$ac_tool_prefix"; then
6633 for ac_prog in dumpbin "link -dump"
6635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if ${ac_cv_prog_DUMPBIN+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 if test -n "$DUMPBIN"; then
6643 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6656 done
6657 done
6658 IFS=$as_save_IFS
6662 DUMPBIN=$ac_cv_prog_DUMPBIN
6663 if test -n "$DUMPBIN"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6665 $as_echo "$DUMPBIN" >&6; }
6666 else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6672 test -n "$DUMPBIN" && break
6673 done
6675 if test -z "$DUMPBIN"; then
6676 ac_ct_DUMPBIN=$DUMPBIN
6677 for ac_prog in dumpbin "link -dump"
6679 # Extract the first word of "$ac_prog", so it can be a program name with args.
6680 set dummy $ac_prog; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 if test -n "$ac_ct_DUMPBIN"; then
6687 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6700 done
6701 done
6702 IFS=$as_save_IFS
6706 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6707 if test -n "$ac_ct_DUMPBIN"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6709 $as_echo "$ac_ct_DUMPBIN" >&6; }
6710 else
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6716 test -n "$ac_ct_DUMPBIN" && break
6717 done
6719 if test "x$ac_ct_DUMPBIN" = x; then
6720 DUMPBIN=":"
6721 else
6722 case $cross_compiling:$ac_tool_warned in
6723 yes:)
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728 DUMPBIN=$ac_ct_DUMPBIN
6732 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6733 *COFF*)
6734 DUMPBIN="$DUMPBIN -symbols"
6737 DUMPBIN=:
6739 esac
6742 if test "$DUMPBIN" != ":"; then
6743 NM="$DUMPBIN"
6746 test -z "$NM" && NM=nm
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6754 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6755 if ${lt_cv_nm_interface+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 lt_cv_nm_interface="BSD nm"
6759 echo "int some_variable = 0;" > conftest.$ac_ext
6760 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6761 (eval "$ac_compile" 2>conftest.err)
6762 cat conftest.err >&5
6763 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6765 cat conftest.err >&5
6766 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6767 cat conftest.out >&5
6768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6769 lt_cv_nm_interface="MS dumpbin"
6771 rm -f conftest*
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6774 $as_echo "$lt_cv_nm_interface" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6777 $as_echo_n "checking whether ln -s works... " >&6; }
6778 LN_S=$as_ln_s
6779 if test "$LN_S" = "ln -s"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6781 $as_echo "yes" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6784 $as_echo "no, using $LN_S" >&6; }
6787 # find the maximum length of command line arguments
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6789 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6790 if ${lt_cv_sys_max_cmd_len+:} false; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6794 teststring="ABCD"
6796 case $build_os in
6797 msdosdjgpp*)
6798 # On DJGPP, this test can blow up pretty badly due to problems in libc
6799 # (any single argument exceeding 2000 bytes causes a buffer overrun
6800 # during glob expansion). Even if it were fixed, the result of this
6801 # check would be larger than it should be.
6802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6805 gnu*)
6806 # Under GNU Hurd, this test is not required because there is
6807 # no limit to the length of command line arguments.
6808 # Libtool will interpret -1 as no limit whatsoever
6809 lt_cv_sys_max_cmd_len=-1;
6812 cygwin* | mingw* | cegcc*)
6813 # On Win9x/ME, this test blows up -- it succeeds, but takes
6814 # about 5 minutes as the teststring grows exponentially.
6815 # Worse, since 9x/ME are not pre-emptively multitasking,
6816 # you end up with a "frozen" computer, even though with patience
6817 # the test eventually succeeds (with a max line length of 256k).
6818 # Instead, let's just punt: use the minimum linelength reported by
6819 # all of the supported platforms: 8192 (on NT/2K/XP).
6820 lt_cv_sys_max_cmd_len=8192;
6823 mint*)
6824 # On MiNT this can take a long time and run out of memory.
6825 lt_cv_sys_max_cmd_len=8192;
6828 amigaos*)
6829 # On AmigaOS with pdksh, this test takes hours, literally.
6830 # So we just punt and use a minimum line length of 8192.
6831 lt_cv_sys_max_cmd_len=8192;
6834 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6835 # This has been around since 386BSD, at least. Likely further.
6836 if test -x /sbin/sysctl; then
6837 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6838 elif test -x /usr/sbin/sysctl; then
6839 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6840 else
6841 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6843 # And add a safety zone
6844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6848 interix*)
6849 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6850 lt_cv_sys_max_cmd_len=196608
6853 osf*)
6854 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6855 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6856 # nice to cause kernel panics so lets avoid the loop below.
6857 # First set a reasonable default.
6858 lt_cv_sys_max_cmd_len=16384
6860 if test -x /sbin/sysconfig; then
6861 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6862 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6863 esac
6866 sco3.2v5*)
6867 lt_cv_sys_max_cmd_len=102400
6869 sysv5* | sco5v6* | sysv4.2uw2*)
6870 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6871 if test -n "$kargmax"; then
6872 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6873 else
6874 lt_cv_sys_max_cmd_len=32768
6878 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6879 if test -n "$lt_cv_sys_max_cmd_len"; then
6880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6882 else
6883 # Make teststring a little bigger before we do anything with it.
6884 # a 1K string should be a reasonable start.
6885 for i in 1 2 3 4 5 6 7 8 ; do
6886 teststring=$teststring$teststring
6887 done
6888 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6889 # If test is not a shell built-in, we'll probably end up computing a
6890 # maximum length that is only half of the actual maximum length, but
6891 # we can't tell.
6892 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6893 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6894 test $i != 17 # 1/2 MB should be enough
6896 i=`expr $i + 1`
6897 teststring=$teststring$teststring
6898 done
6899 # Only check the string length outside the loop.
6900 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6901 teststring=
6902 # Add a significant safety factor because C++ compilers can tack on
6903 # massive amounts of additional arguments before passing them to the
6904 # linker. It appears as though 1/2 is a usable value.
6905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6908 esac
6912 if test -n $lt_cv_sys_max_cmd_len ; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6914 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6917 $as_echo "none" >&6; }
6919 max_cmd_len=$lt_cv_sys_max_cmd_len
6926 : ${CP="cp -f"}
6927 : ${MV="mv -f"}
6928 : ${RM="rm -f"}
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6931 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6932 # Try some XSI features
6933 xsi_shell=no
6934 ( _lt_dummy="a/b/c"
6935 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6936 = c,a/b,, \
6937 && eval 'test $(( 1 + 1 )) -eq 2 \
6938 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6939 && xsi_shell=yes
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6941 $as_echo "$xsi_shell" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6946 lt_shell_append=no
6947 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6948 >/dev/null 2>&1 \
6949 && lt_shell_append=yes
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6951 $as_echo "$lt_shell_append" >&6; }
6954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6955 lt_unset=unset
6956 else
6957 lt_unset=false
6964 # test EBCDIC or ASCII
6965 case `echo X|tr X '\101'` in
6966 A) # ASCII based system
6967 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6968 lt_SP2NL='tr \040 \012'
6969 lt_NL2SP='tr \015\012 \040\040'
6971 *) # EBCDIC based system
6972 lt_SP2NL='tr \100 \n'
6973 lt_NL2SP='tr \r\n \100\100'
6975 esac
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6986 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6987 if ${lt_cv_ld_reload_flag+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 lt_cv_ld_reload_flag='-r'
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6993 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6994 reload_flag=$lt_cv_ld_reload_flag
6995 case $reload_flag in
6996 "" | " "*) ;;
6997 *) reload_flag=" $reload_flag" ;;
6998 esac
6999 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7000 case $host_os in
7001 darwin*)
7002 if test "$GCC" = yes; then
7003 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7004 else
7005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7008 esac
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_OBJDUMP+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test -n "$OBJDUMP"; then
7027 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7040 done
7041 done
7042 IFS=$as_save_IFS
7046 OBJDUMP=$ac_cv_prog_OBJDUMP
7047 if test -n "$OBJDUMP"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7049 $as_echo "$OBJDUMP" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7057 if test -z "$ac_cv_prog_OBJDUMP"; then
7058 ac_ct_OBJDUMP=$OBJDUMP
7059 # Extract the first word of "objdump", so it can be a program name with args.
7060 set dummy objdump; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 if test -n "$ac_ct_OBJDUMP"; then
7067 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7080 done
7081 done
7082 IFS=$as_save_IFS
7086 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7087 if test -n "$ac_ct_OBJDUMP"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7089 $as_echo "$ac_ct_OBJDUMP" >&6; }
7090 else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7095 if test "x$ac_ct_OBJDUMP" = x; then
7096 OBJDUMP="false"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099 yes:)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102 ac_tool_warned=yes ;;
7103 esac
7104 OBJDUMP=$ac_ct_OBJDUMP
7106 else
7107 OBJDUMP="$ac_cv_prog_OBJDUMP"
7110 test -z "$OBJDUMP" && OBJDUMP=objdump
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7121 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7122 if ${lt_cv_deplibs_check_method+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 lt_cv_file_magic_cmd='$MAGIC_CMD'
7126 lt_cv_file_magic_test_file=
7127 lt_cv_deplibs_check_method='unknown'
7128 # Need to set the preceding variable on all platforms that support
7129 # interlibrary dependencies.
7130 # 'none' -- dependencies not supported.
7131 # `unknown' -- same as none, but documents that we really don't know.
7132 # 'pass_all' -- all dependencies passed with no checks.
7133 # 'test_compile' -- check by making test program.
7134 # 'file_magic [[regex]]' -- check by looking for files in library path
7135 # which responds to the $file_magic_cmd with a given extended regex.
7136 # If you have `file' or equivalent on your system and you're not sure
7137 # whether `pass_all' will *always* work, you probably want this one.
7139 case $host_os in
7140 aix[4-9]*)
7141 lt_cv_deplibs_check_method=pass_all
7144 beos*)
7145 lt_cv_deplibs_check_method=pass_all
7148 bsdi[45]*)
7149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7150 lt_cv_file_magic_cmd='/usr/bin/file -L'
7151 lt_cv_file_magic_test_file=/shlib/libc.so
7154 cygwin*)
7155 # func_win32_libid is a shell function defined in ltmain.sh
7156 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7157 lt_cv_file_magic_cmd='func_win32_libid'
7160 mingw* | pw32*)
7161 # Base MSYS/MinGW do not provide the 'file' command needed by
7162 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7163 # unless we find 'file', for example because we are cross-compiling.
7164 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7165 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7166 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7167 lt_cv_file_magic_cmd='func_win32_libid'
7168 else
7169 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7170 lt_cv_file_magic_cmd='$OBJDUMP -f'
7174 cegcc*)
7175 # use the weaker test based on 'objdump'. See mingw*.
7176 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7177 lt_cv_file_magic_cmd='$OBJDUMP -f'
7180 darwin* | rhapsody*)
7181 lt_cv_deplibs_check_method=pass_all
7184 freebsd* | dragonfly*)
7185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7186 case $host_cpu in
7187 i*86 )
7188 # Not sure whether the presence of OpenBSD here was a mistake.
7189 # Let's accept both of them until this is cleared up.
7190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7191 lt_cv_file_magic_cmd=/usr/bin/file
7192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7194 esac
7195 else
7196 lt_cv_deplibs_check_method=pass_all
7200 gnu*)
7201 lt_cv_deplibs_check_method=pass_all
7204 haiku*)
7205 lt_cv_deplibs_check_method=pass_all
7208 hpux10.20* | hpux11*)
7209 lt_cv_file_magic_cmd=/usr/bin/file
7210 case $host_cpu in
7211 ia64*)
7212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7213 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7215 hppa*64*)
7216 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]'
7217 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7221 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7223 esac
7226 interix[3-9]*)
7227 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7231 irix5* | irix6* | nonstopux*)
7232 case $LD in
7233 *-32|*"-32 ") libmagic=32-bit;;
7234 *-n32|*"-n32 ") libmagic=N32;;
7235 *-64|*"-64 ") libmagic=64-bit;;
7236 *) libmagic=never-match;;
7237 esac
7238 lt_cv_deplibs_check_method=pass_all
7241 # This must be Linux ELF.
7242 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7243 lt_cv_deplibs_check_method=pass_all
7246 netbsd*)
7247 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7249 else
7250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7254 newos6*)
7255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7256 lt_cv_file_magic_cmd=/usr/bin/file
7257 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7260 *nto* | *qnx*)
7261 lt_cv_deplibs_check_method=pass_all
7264 openbsd*)
7265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7267 else
7268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7272 osf3* | osf4* | osf5*)
7273 lt_cv_deplibs_check_method=pass_all
7276 rdos*)
7277 lt_cv_deplibs_check_method=pass_all
7280 solaris*)
7281 lt_cv_deplibs_check_method=pass_all
7284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7285 lt_cv_deplibs_check_method=pass_all
7288 sysv4 | sysv4.3*)
7289 case $host_vendor in
7290 motorola)
7291 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]'
7292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7294 ncr)
7295 lt_cv_deplibs_check_method=pass_all
7297 sequent)
7298 lt_cv_file_magic_cmd='/bin/file'
7299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7301 sni)
7302 lt_cv_file_magic_cmd='/bin/file'
7303 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7304 lt_cv_file_magic_test_file=/lib/libc.so
7306 siemens)
7307 lt_cv_deplibs_check_method=pass_all
7310 lt_cv_deplibs_check_method=pass_all
7312 esac
7315 tpf*)
7316 lt_cv_deplibs_check_method=pass_all
7318 vxworks*)
7319 # Assume VxWorks cross toolchains are built on Linux, possibly
7320 # as canadian for Windows hosts.
7321 lt_cv_deplibs_check_method=pass_all
7323 esac
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7327 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7328 file_magic_cmd=$lt_cv_file_magic_cmd
7329 deplibs_check_method=$lt_cv_deplibs_check_method
7330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7343 plugin_option=
7344 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7345 for plugin in $plugin_names; do
7346 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7347 if test x$plugin_so = x$plugin; then
7348 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7350 if test x$plugin_so != x$plugin; then
7351 plugin_option="--plugin $plugin_so"
7352 break
7354 done
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}ar; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_prog_AR+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 if test -n "$AR"; then
7365 ac_cv_prog_AR="$AR" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_AR="${ac_tool_prefix}ar"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7378 done
7379 done
7380 IFS=$as_save_IFS
7384 AR=$ac_cv_prog_AR
7385 if test -n "$AR"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7387 $as_echo "$AR" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7395 if test -z "$ac_cv_prog_AR"; then
7396 ac_ct_AR=$AR
7397 # Extract the first word of "ar", so it can be a program name with args.
7398 set dummy ar; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test -n "$ac_ct_AR"; then
7405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_ac_ct_AR="ar"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7418 done
7419 done
7420 IFS=$as_save_IFS
7424 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7425 if test -n "$ac_ct_AR"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7427 $as_echo "$ac_ct_AR" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7433 if test "x$ac_ct_AR" = x; then
7434 AR="false"
7435 else
7436 case $cross_compiling:$ac_tool_warned in
7437 yes:)
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440 ac_tool_warned=yes ;;
7441 esac
7442 AR=$ac_ct_AR
7444 else
7445 AR="$ac_cv_prog_AR"
7448 test -z "$AR" && AR=ar
7449 if test -n "$plugin_option"; then
7450 if $AR --help 2>&1 | grep -q "\--plugin"; then
7451 touch conftest.c
7452 $AR $plugin_option rc conftest.a conftest.c
7453 if test "$?" != 0; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7455 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7456 else
7457 AR="$AR $plugin_option"
7459 rm -f conftest.*
7462 test -z "$AR_FLAGS" && AR_FLAGS=cru
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}strip; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_STRIP+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$STRIP"; then
7483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7496 done
7497 done
7498 IFS=$as_save_IFS
7502 STRIP=$ac_cv_prog_STRIP
7503 if test -n "$STRIP"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7505 $as_echo "$STRIP" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test -z "$ac_cv_prog_STRIP"; then
7514 ac_ct_STRIP=$STRIP
7515 # Extract the first word of "strip", so it can be a program name with args.
7516 set dummy strip; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$ac_ct_STRIP"; then
7523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_ac_ct_STRIP="strip"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7536 done
7537 done
7538 IFS=$as_save_IFS
7542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7543 if test -n "$ac_ct_STRIP"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7545 $as_echo "$ac_ct_STRIP" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7551 if test "x$ac_ct_STRIP" = x; then
7552 STRIP=":"
7553 else
7554 case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560 STRIP=$ac_ct_STRIP
7562 else
7563 STRIP="$ac_cv_prog_STRIP"
7566 test -z "$STRIP" && STRIP=:
7573 if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_RANLIB+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 if test -n "$RANLIB"; then
7582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7595 done
7596 done
7597 IFS=$as_save_IFS
7601 RANLIB=$ac_cv_prog_RANLIB
7602 if test -n "$RANLIB"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7604 $as_echo "$RANLIB" >&6; }
7605 else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7612 if test -z "$ac_cv_prog_RANLIB"; then
7613 ac_ct_RANLIB=$RANLIB
7614 # Extract the first word of "ranlib", so it can be a program name with args.
7615 set dummy ranlib; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 if test -n "$ac_ct_RANLIB"; then
7622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_ac_ct_RANLIB="ranlib"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7635 done
7636 done
7637 IFS=$as_save_IFS
7641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7642 if test -n "$ac_ct_RANLIB"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7644 $as_echo "$ac_ct_RANLIB" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7650 if test "x$ac_ct_RANLIB" = x; then
7651 RANLIB=":"
7652 else
7653 case $cross_compiling:$ac_tool_warned in
7654 yes:)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7658 esac
7659 RANLIB=$ac_ct_RANLIB
7661 else
7662 RANLIB="$ac_cv_prog_RANLIB"
7665 test -z "$RANLIB" && RANLIB=:
7666 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7667 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7668 RANLIB="$RANLIB $plugin_option"
7677 # Determine commands to create old-style static archives.
7678 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7679 old_postinstall_cmds='chmod 644 $oldlib'
7680 old_postuninstall_cmds=
7682 if test -n "$RANLIB"; then
7683 case $host_os in
7684 openbsd*)
7685 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7690 esac
7691 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7694 case $host_os in
7695 darwin*)
7696 lock_old_archive_extraction=yes ;;
7698 lock_old_archive_extraction=no ;;
7699 esac
7739 # If no C compiler was specified, use CC.
7740 LTCC=${LTCC-"$CC"}
7742 # If no C compiler flags were specified, use CFLAGS.
7743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7745 # Allow CC to be a program name with arguments.
7746 compiler=$CC
7749 # Check for command to grab the raw symbol name followed by C symbol from nm.
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7751 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7752 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7756 # These are sane defaults that work on at least a few old systems.
7757 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7759 # Character class describing NM global symbol codes.
7760 symcode='[BCDEGRST]'
7762 # Regexp to match symbols that can be accessed directly from C.
7763 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7765 # Define system-specific variables.
7766 case $host_os in
7767 aix*)
7768 symcode='[BCDT]'
7770 cygwin* | mingw* | pw32* | cegcc*)
7771 symcode='[ABCDGISTW]'
7773 hpux*)
7774 if test "$host_cpu" = ia64; then
7775 symcode='[ABCDEGRST]'
7778 irix* | nonstopux*)
7779 symcode='[BCDEGRST]'
7781 osf*)
7782 symcode='[BCDEGQRST]'
7784 solaris*)
7785 symcode='[BCDRT]'
7787 sco3.2v5*)
7788 symcode='[DT]'
7790 sysv4.2uw2*)
7791 symcode='[DT]'
7793 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7794 symcode='[ABDT]'
7796 sysv4)
7797 symcode='[DFNSTU]'
7799 esac
7801 # If we're using GNU nm, then use its standard symbol codes.
7802 case `$NM -V 2>&1` in
7803 *GNU* | *'with BFD'*)
7804 symcode='[ABCDGIRSTW]' ;;
7805 esac
7807 # Transform an extracted symbol line into a proper C declaration.
7808 # Some systems (esp. on ia64) link data and code symbols differently,
7809 # so use this general approach.
7810 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7812 # Transform an extracted symbol line into symbol name and symbol address
7813 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7814 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'"
7816 # Handle CRLF in mingw tool chain
7817 opt_cr=
7818 case $build_os in
7819 mingw*)
7820 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7822 esac
7824 # Try without a prefix underscore, then with it.
7825 for ac_symprfx in "" "_"; do
7827 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7828 symxfrm="\\1 $ac_symprfx\\2 \\2"
7830 # Write the raw and C identifiers.
7831 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7832 # Fake it for dumpbin and say T for any non-static function
7833 # and D for any global variable.
7834 # Also find C++ and __fastcall symbols from MSVC++,
7835 # which start with @ or ?.
7836 lt_cv_sys_global_symbol_pipe="$AWK '"\
7837 " {last_section=section; section=\$ 3};"\
7838 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7839 " \$ 0!~/External *\|/{next};"\
7840 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7841 " {if(hide[section]) next};"\
7842 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7843 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7844 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7845 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7846 " ' prfx=^$ac_symprfx"
7847 else
7848 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7851 # Check to see that the pipe works correctly.
7852 pipe_works=no
7854 rm -f conftest*
7855 cat > conftest.$ac_ext <<_LT_EOF
7856 #ifdef __cplusplus
7857 extern "C" {
7858 #endif
7859 char nm_test_var;
7860 void nm_test_func(void);
7861 void nm_test_func(void){}
7862 #ifdef __cplusplus
7864 #endif
7865 int main(){nm_test_var='a';nm_test_func();return(0);}
7866 _LT_EOF
7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7869 (eval $ac_compile) 2>&5
7870 ac_status=$?
7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; }; then
7873 # Now try to grab the symbols.
7874 nlist=conftest.nm
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7876 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7877 ac_status=$?
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; } && test -s "$nlist"; then
7880 # Try sorting and uniquifying the output.
7881 if sort "$nlist" | uniq > "$nlist"T; then
7882 mv -f "$nlist"T "$nlist"
7883 else
7884 rm -f "$nlist"T
7887 # Make sure that we snagged all the symbols we need.
7888 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7889 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7890 cat <<_LT_EOF > conftest.$ac_ext
7891 #ifdef __cplusplus
7892 extern "C" {
7893 #endif
7895 _LT_EOF
7896 # Now generate the symbol file.
7897 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7899 cat <<_LT_EOF >> conftest.$ac_ext
7901 /* The mapping between symbol names and symbols. */
7902 const struct {
7903 const char *name;
7904 void *address;
7906 lt__PROGRAM__LTX_preloaded_symbols[] =
7908 { "@PROGRAM@", (void *) 0 },
7909 _LT_EOF
7910 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7911 cat <<\_LT_EOF >> conftest.$ac_ext
7912 {0, (void *) 0}
7915 /* This works around a problem in FreeBSD linker */
7916 #ifdef FREEBSD_WORKAROUND
7917 static const void *lt_preloaded_setup() {
7918 return lt__PROGRAM__LTX_preloaded_symbols;
7920 #endif
7922 #ifdef __cplusplus
7924 #endif
7925 _LT_EOF
7926 # Now try linking the two files.
7927 mv conftest.$ac_objext conftstm.$ac_objext
7928 lt_save_LIBS="$LIBS"
7929 lt_save_CFLAGS="$CFLAGS"
7930 LIBS="conftstm.$ac_objext"
7931 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7933 (eval $ac_link) 2>&5
7934 ac_status=$?
7935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7936 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7937 pipe_works=yes
7939 LIBS="$lt_save_LIBS"
7940 CFLAGS="$lt_save_CFLAGS"
7941 else
7942 echo "cannot find nm_test_func in $nlist" >&5
7944 else
7945 echo "cannot find nm_test_var in $nlist" >&5
7947 else
7948 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7950 else
7951 echo "$progname: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7954 rm -rf conftest* conftst*
7956 # Do not use the global_symbol_pipe unless it works.
7957 if test "$pipe_works" = yes; then
7958 break
7959 else
7960 lt_cv_sys_global_symbol_pipe=
7962 done
7966 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7967 lt_cv_sys_global_symbol_to_cdecl=
7969 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7971 $as_echo "failed" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7974 $as_echo "ok" >&6; }
7998 # Check whether --enable-libtool-lock was given.
7999 if test "${enable_libtool_lock+set}" = set; then :
8000 enableval=$enable_libtool_lock;
8003 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8005 # Some flags need to be propagated to the compiler or linker for good
8006 # libtool support.
8007 case $host in
8008 ia64-*-hpux*)
8009 # Find out which ABI we are using.
8010 echo 'int i;' > conftest.$ac_ext
8011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8012 (eval $ac_compile) 2>&5
8013 ac_status=$?
8014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015 test $ac_status = 0; }; then
8016 case `/usr/bin/file conftest.$ac_objext` in
8017 *ELF-32*)
8018 HPUX_IA64_MODE="32"
8020 *ELF-64*)
8021 HPUX_IA64_MODE="64"
8023 esac
8025 rm -rf conftest*
8027 *-*-irix6*)
8028 # Find out which ABI we are using.
8029 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8031 (eval $ac_compile) 2>&5
8032 ac_status=$?
8033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034 test $ac_status = 0; }; then
8035 if test "$lt_cv_prog_gnu_ld" = yes; then
8036 case `/usr/bin/file conftest.$ac_objext` in
8037 *32-bit*)
8038 LD="${LD-ld} -melf32bsmip"
8040 *N32*)
8041 LD="${LD-ld} -melf32bmipn32"
8043 *64-bit*)
8044 LD="${LD-ld} -melf64bmip"
8046 esac
8047 else
8048 case `/usr/bin/file conftest.$ac_objext` in
8049 *32-bit*)
8050 LD="${LD-ld} -32"
8052 *N32*)
8053 LD="${LD-ld} -n32"
8055 *64-bit*)
8056 LD="${LD-ld} -64"
8058 esac
8061 rm -rf conftest*
8064 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8065 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8066 # Find out which ABI we are using.
8067 echo 'int i;' > conftest.$ac_ext
8068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8069 (eval $ac_compile) 2>&5
8070 ac_status=$?
8071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8072 test $ac_status = 0; }; then
8073 case `/usr/bin/file conftest.o` in
8074 *32-bit*)
8075 case $host in
8076 x86_64-*kfreebsd*-gnu)
8077 LD="${LD-ld} -m elf_i386_fbsd"
8079 x86_64-*linux*)
8080 case `/usr/bin/file conftest.o` in
8081 *x86-64*)
8082 LD="${LD-ld} -m elf32_x86_64"
8085 LD="${LD-ld} -m elf_i386"
8087 esac
8089 powerpc64le-*linux*)
8090 LD="${LD-ld} -m elf32lppclinux"
8092 powerpc64-*linux*)
8093 LD="${LD-ld} -m elf32ppclinux"
8095 s390x-*linux*)
8096 LD="${LD-ld} -m elf_s390"
8098 sparc64-*linux*)
8099 LD="${LD-ld} -m elf32_sparc"
8101 esac
8103 *64-bit*)
8104 case $host in
8105 x86_64-*kfreebsd*-gnu)
8106 LD="${LD-ld} -m elf_x86_64_fbsd"
8108 x86_64-*linux*)
8109 LD="${LD-ld} -m elf_x86_64"
8111 powerpcle-*linux*)
8112 LD="${LD-ld} -m elf64lppc"
8114 powerpc-*linux*)
8115 LD="${LD-ld} -m elf64ppc"
8117 s390*-*linux*|s390*-*tpf*)
8118 LD="${LD-ld} -m elf64_s390"
8120 sparc*-*linux*)
8121 LD="${LD-ld} -m elf64_sparc"
8123 esac
8125 esac
8127 rm -rf conftest*
8130 *-*-sco3.2v5*)
8131 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8132 SAVE_CFLAGS="$CFLAGS"
8133 CFLAGS="$CFLAGS -belf"
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8135 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8136 if ${lt_cv_cc_needs_belf+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 ac_ext=c
8140 ac_cpp='$CPP $CPPFLAGS'
8141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8149 main ()
8153 return 0;
8155 _ACEOF
8156 if ac_fn_c_try_link "$LINENO"; then :
8157 lt_cv_cc_needs_belf=yes
8158 else
8159 lt_cv_cc_needs_belf=no
8161 rm -f core conftest.err conftest.$ac_objext \
8162 conftest$ac_exeext conftest.$ac_ext
8163 ac_ext=c
8164 ac_cpp='$CPP $CPPFLAGS'
8165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8171 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8172 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8173 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8174 CFLAGS="$SAVE_CFLAGS"
8177 sparc*-*solaris*)
8178 # Find out which ABI we are using.
8179 echo 'int i;' > conftest.$ac_ext
8180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8181 (eval $ac_compile) 2>&5
8182 ac_status=$?
8183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8184 test $ac_status = 0; }; then
8185 case `/usr/bin/file conftest.o` in
8186 *64-bit*)
8187 case $lt_cv_prog_gnu_ld in
8188 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8190 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8191 LD="${LD-ld} -64"
8194 esac
8196 esac
8198 rm -rf conftest*
8200 esac
8202 need_locks="$enable_libtool_lock"
8205 case $host_os in
8206 rhapsody* | darwin*)
8207 if test -n "$ac_tool_prefix"; then
8208 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8209 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 if test -n "$DSYMUTIL"; then
8216 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8229 done
8230 done
8231 IFS=$as_save_IFS
8235 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8236 if test -n "$DSYMUTIL"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8238 $as_echo "$DSYMUTIL" >&6; }
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8246 if test -z "$ac_cv_prog_DSYMUTIL"; then
8247 ac_ct_DSYMUTIL=$DSYMUTIL
8248 # Extract the first word of "dsymutil", so it can be a program name with args.
8249 set dummy dsymutil; ac_word=$2
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251 $as_echo_n "checking for $ac_word... " >&6; }
8252 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 if test -n "$ac_ct_DSYMUTIL"; then
8256 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8257 else
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 for as_dir in $PATH
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 break 2
8269 done
8270 done
8271 IFS=$as_save_IFS
8275 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8276 if test -n "$ac_ct_DSYMUTIL"; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8278 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8279 else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8284 if test "x$ac_ct_DSYMUTIL" = x; then
8285 DSYMUTIL=":"
8286 else
8287 case $cross_compiling:$ac_tool_warned in
8288 yes:)
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8291 ac_tool_warned=yes ;;
8292 esac
8293 DSYMUTIL=$ac_ct_DSYMUTIL
8295 else
8296 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8299 if test -n "$ac_tool_prefix"; then
8300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8301 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_prog_NMEDIT+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 if test -n "$NMEDIT"; then
8308 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8321 done
8322 done
8323 IFS=$as_save_IFS
8327 NMEDIT=$ac_cv_prog_NMEDIT
8328 if test -n "$NMEDIT"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8330 $as_echo "$NMEDIT" >&6; }
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8338 if test -z "$ac_cv_prog_NMEDIT"; then
8339 ac_ct_NMEDIT=$NMEDIT
8340 # Extract the first word of "nmedit", so it can be a program name with args.
8341 set dummy nmedit; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 if test -n "$ac_ct_NMEDIT"; then
8348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8361 done
8362 done
8363 IFS=$as_save_IFS
8367 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8368 if test -n "$ac_ct_NMEDIT"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8370 $as_echo "$ac_ct_NMEDIT" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8376 if test "x$ac_ct_NMEDIT" = x; then
8377 NMEDIT=":"
8378 else
8379 case $cross_compiling:$ac_tool_warned in
8380 yes:)
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8383 ac_tool_warned=yes ;;
8384 esac
8385 NMEDIT=$ac_ct_NMEDIT
8387 else
8388 NMEDIT="$ac_cv_prog_NMEDIT"
8391 if test -n "$ac_tool_prefix"; then
8392 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8393 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_LIPO+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 if test -n "$LIPO"; then
8400 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8413 done
8414 done
8415 IFS=$as_save_IFS
8419 LIPO=$ac_cv_prog_LIPO
8420 if test -n "$LIPO"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8422 $as_echo "$LIPO" >&6; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8430 if test -z "$ac_cv_prog_LIPO"; then
8431 ac_ct_LIPO=$LIPO
8432 # Extract the first word of "lipo", so it can be a program name with args.
8433 set dummy lipo; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 $as_echo_n "checking for $ac_word... " >&6; }
8436 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 if test -n "$ac_ct_LIPO"; then
8440 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8441 else
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 for as_dir in $PATH
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8449 ac_cv_prog_ac_ct_LIPO="lipo"
8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 break 2
8453 done
8454 done
8455 IFS=$as_save_IFS
8459 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8460 if test -n "$ac_ct_LIPO"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8462 $as_echo "$ac_ct_LIPO" >&6; }
8463 else
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8468 if test "x$ac_ct_LIPO" = x; then
8469 LIPO=":"
8470 else
8471 case $cross_compiling:$ac_tool_warned in
8472 yes:)
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8475 ac_tool_warned=yes ;;
8476 esac
8477 LIPO=$ac_ct_LIPO
8479 else
8480 LIPO="$ac_cv_prog_LIPO"
8483 if test -n "$ac_tool_prefix"; then
8484 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8485 set dummy ${ac_tool_prefix}otool; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if ${ac_cv_prog_OTOOL+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 if test -n "$OTOOL"; then
8492 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8493 else
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 break 2
8505 done
8506 done
8507 IFS=$as_save_IFS
8511 OTOOL=$ac_cv_prog_OTOOL
8512 if test -n "$OTOOL"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8514 $as_echo "$OTOOL" >&6; }
8515 else
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8522 if test -z "$ac_cv_prog_OTOOL"; then
8523 ac_ct_OTOOL=$OTOOL
8524 # Extract the first word of "otool", so it can be a program name with args.
8525 set dummy otool; ac_word=$2
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527 $as_echo_n "checking for $ac_word... " >&6; }
8528 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 if test -n "$ac_ct_OTOOL"; then
8532 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541 ac_cv_prog_ac_ct_OTOOL="otool"
8542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 break 2
8545 done
8546 done
8547 IFS=$as_save_IFS
8551 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8552 if test -n "$ac_ct_OTOOL"; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8554 $as_echo "$ac_ct_OTOOL" >&6; }
8555 else
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8560 if test "x$ac_ct_OTOOL" = x; then
8561 OTOOL=":"
8562 else
8563 case $cross_compiling:$ac_tool_warned in
8564 yes:)
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8567 ac_tool_warned=yes ;;
8568 esac
8569 OTOOL=$ac_ct_OTOOL
8571 else
8572 OTOOL="$ac_cv_prog_OTOOL"
8575 if test -n "$ac_tool_prefix"; then
8576 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8577 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if ${ac_cv_prog_OTOOL64+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 if test -n "$OTOOL64"; then
8584 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8585 else
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8597 done
8598 done
8599 IFS=$as_save_IFS
8603 OTOOL64=$ac_cv_prog_OTOOL64
8604 if test -n "$OTOOL64"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8606 $as_echo "$OTOOL64" >&6; }
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8614 if test -z "$ac_cv_prog_OTOOL64"; then
8615 ac_ct_OTOOL64=$OTOOL64
8616 # Extract the first word of "otool64", so it can be a program name with args.
8617 set dummy otool64; ac_word=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 if test -n "$ac_ct_OTOOL64"; then
8624 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8625 else
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633 ac_cv_prog_ac_ct_OTOOL64="otool64"
8634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 break 2
8637 done
8638 done
8639 IFS=$as_save_IFS
8643 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8644 if test -n "$ac_ct_OTOOL64"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8646 $as_echo "$ac_ct_OTOOL64" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8652 if test "x$ac_ct_OTOOL64" = x; then
8653 OTOOL64=":"
8654 else
8655 case $cross_compiling:$ac_tool_warned in
8656 yes:)
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8659 ac_tool_warned=yes ;;
8660 esac
8661 OTOOL64=$ac_ct_OTOOL64
8663 else
8664 OTOOL64="$ac_cv_prog_OTOOL64"
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8694 $as_echo_n "checking for -single_module linker flag... " >&6; }
8695 if ${lt_cv_apple_cc_single_mod+:} false; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 lt_cv_apple_cc_single_mod=no
8699 if test -z "${LT_MULTI_MODULE}"; then
8700 # By default we will add the -single_module flag. You can override
8701 # by either setting the environment variable LT_MULTI_MODULE
8702 # non-empty at configure time, or by adding -multi_module to the
8703 # link flags.
8704 rm -rf libconftest.dylib*
8705 echo "int foo(void){return 1;}" > conftest.c
8706 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8707 -dynamiclib -Wl,-single_module conftest.c" >&5
8708 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8709 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8710 _lt_result=$?
8711 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8712 lt_cv_apple_cc_single_mod=yes
8713 else
8714 cat conftest.err >&5
8716 rm -rf libconftest.dylib*
8717 rm -f conftest.*
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8721 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8723 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8724 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 lt_cv_ld_exported_symbols_list=no
8728 save_LDFLAGS=$LDFLAGS
8729 echo "_main" > conftest.sym
8730 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8735 main ()
8739 return 0;
8741 _ACEOF
8742 if ac_fn_c_try_link "$LINENO"; then :
8743 lt_cv_ld_exported_symbols_list=yes
8744 else
8745 lt_cv_ld_exported_symbols_list=no
8747 rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LDFLAGS="$save_LDFLAGS"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8755 $as_echo_n "checking for -force_load linker flag... " >&6; }
8756 if ${lt_cv_ld_force_load+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 lt_cv_ld_force_load=no
8760 cat > conftest.c << _LT_EOF
8761 int forced_loaded() { return 2;}
8762 _LT_EOF
8763 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8764 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8765 echo "$AR cru libconftest.a conftest.o" >&5
8766 $AR cru libconftest.a conftest.o 2>&5
8767 cat > conftest.c << _LT_EOF
8768 int main() { return 0;}
8769 _LT_EOF
8770 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8771 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8772 _lt_result=$?
8773 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8774 lt_cv_ld_force_load=yes
8775 else
8776 cat conftest.err >&5
8778 rm -f conftest.err libconftest.a conftest conftest.c
8779 rm -rf conftest.dSYM
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8783 $as_echo "$lt_cv_ld_force_load" >&6; }
8784 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8785 # build without first building modern cctools / linker.
8786 case $host_cpu-$host_os in
8787 *-rhapsody* | *-darwin1.[012])
8788 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8789 *-darwin1.*)
8790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8791 *-darwin*)
8792 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8793 # deployment target is forced to an earlier version.
8794 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8795 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8797 10.[012][,.]*)
8798 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8802 esac
8804 esac
8805 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8806 _lt_dar_single_mod='$single_module'
8808 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8809 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8810 else
8811 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8813 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8814 _lt_dsymutil='~$DSYMUTIL $lib || :'
8815 else
8816 _lt_dsymutil=
8819 esac
8821 for ac_header in dlfcn.h
8822 do :
8823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8825 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8826 cat >>confdefs.h <<_ACEOF
8827 #define HAVE_DLFCN_H 1
8828 _ACEOF
8832 done
8839 # Set options
8844 enable_win32_dll=no
8847 # Check whether --enable-shared was given.
8848 if test "${enable_shared+set}" = set; then :
8849 enableval=$enable_shared; p=${PACKAGE-default}
8850 case $enableval in
8851 yes) enable_shared=yes ;;
8852 no) enable_shared=no ;;
8854 enable_shared=no
8855 # Look at the argument we got. We use all the common list separators.
8856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8857 for pkg in $enableval; do
8858 IFS="$lt_save_ifs"
8859 if test "X$pkg" = "X$p"; then
8860 enable_shared=yes
8862 done
8863 IFS="$lt_save_ifs"
8865 esac
8866 else
8867 enable_shared=yes
8878 # Check whether --enable-static was given.
8879 if test "${enable_static+set}" = set; then :
8880 enableval=$enable_static; p=${PACKAGE-default}
8881 case $enableval in
8882 yes) enable_static=yes ;;
8883 no) enable_static=no ;;
8885 enable_static=no
8886 # Look at the argument we got. We use all the common list separators.
8887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8888 for pkg in $enableval; do
8889 IFS="$lt_save_ifs"
8890 if test "X$pkg" = "X$p"; then
8891 enable_static=yes
8893 done
8894 IFS="$lt_save_ifs"
8896 esac
8897 else
8898 enable_static=yes
8910 # Check whether --with-pic was given.
8911 if test "${with_pic+set}" = set; then :
8912 withval=$with_pic; pic_mode="$withval"
8913 else
8914 pic_mode=default
8918 test -z "$pic_mode" && pic_mode=default
8926 # Check whether --enable-fast-install was given.
8927 if test "${enable_fast_install+set}" = set; then :
8928 enableval=$enable_fast_install; p=${PACKAGE-default}
8929 case $enableval in
8930 yes) enable_fast_install=yes ;;
8931 no) enable_fast_install=no ;;
8933 enable_fast_install=no
8934 # Look at the argument we got. We use all the common list separators.
8935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8936 for pkg in $enableval; do
8937 IFS="$lt_save_ifs"
8938 if test "X$pkg" = "X$p"; then
8939 enable_fast_install=yes
8941 done
8942 IFS="$lt_save_ifs"
8944 esac
8945 else
8946 enable_fast_install=yes
8959 # This can be used to rebuild libtool when needed
8960 LIBTOOL_DEPS="$ltmain"
8962 # Always use our own libtool.
8963 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8990 test -z "$LN_S" && LN_S="ln -s"
9005 if test -n "${ZSH_VERSION+set}" ; then
9006 setopt NO_GLOB_SUBST
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9010 $as_echo_n "checking for objdir... " >&6; }
9011 if ${lt_cv_objdir+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 rm -f .libs 2>/dev/null
9015 mkdir .libs 2>/dev/null
9016 if test -d .libs; then
9017 lt_cv_objdir=.libs
9018 else
9019 # MS-DOS does not allow filenames that begin with a dot.
9020 lt_cv_objdir=_libs
9022 rmdir .libs 2>/dev/null
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9025 $as_echo "$lt_cv_objdir" >&6; }
9026 objdir=$lt_cv_objdir
9032 cat >>confdefs.h <<_ACEOF
9033 #define LT_OBJDIR "$lt_cv_objdir/"
9034 _ACEOF
9039 case $host_os in
9040 aix3*)
9041 # AIX sometimes has problems with the GCC collect2 program. For some
9042 # reason, if we set the COLLECT_NAMES environment variable, the problems
9043 # vanish in a puff of smoke.
9044 if test "X${COLLECT_NAMES+set}" != Xset; then
9045 COLLECT_NAMES=
9046 export COLLECT_NAMES
9049 esac
9051 # Global variables:
9052 ofile=libtool
9053 can_build_shared=yes
9055 # All known linkers require a `.a' archive for static linking (except MSVC,
9056 # which needs '.lib').
9057 libext=a
9059 with_gnu_ld="$lt_cv_prog_gnu_ld"
9061 old_CC="$CC"
9062 old_CFLAGS="$CFLAGS"
9064 # Set sane defaults for various variables
9065 test -z "$CC" && CC=cc
9066 test -z "$LTCC" && LTCC=$CC
9067 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9068 test -z "$LD" && LD=ld
9069 test -z "$ac_objext" && ac_objext=o
9071 for cc_temp in $compiler""; do
9072 case $cc_temp in
9073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9075 \-*) ;;
9076 *) break;;
9077 esac
9078 done
9079 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9082 # Only perform the check for file, if the check method requires it
9083 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9084 case $deplibs_check_method in
9085 file_magic*)
9086 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9088 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9089 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 case $MAGIC_CMD in
9093 [\\/*] | ?:[\\/]*)
9094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9097 lt_save_MAGIC_CMD="$MAGIC_CMD"
9098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9099 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9100 for ac_dir in $ac_dummy; do
9101 IFS="$lt_save_ifs"
9102 test -z "$ac_dir" && ac_dir=.
9103 if test -f $ac_dir/${ac_tool_prefix}file; then
9104 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9105 if test -n "$file_magic_test_file"; then
9106 case $deplibs_check_method in
9107 "file_magic "*)
9108 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9110 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9111 $EGREP "$file_magic_regex" > /dev/null; then
9113 else
9114 cat <<_LT_EOF 1>&2
9116 *** Warning: the command libtool uses to detect shared libraries,
9117 *** $file_magic_cmd, produces output that libtool cannot recognize.
9118 *** The result is that libtool may fail to recognize shared libraries
9119 *** as such. This will affect the creation of libtool libraries that
9120 *** depend on shared libraries, but programs linked with such libtool
9121 *** libraries will work regardless of this problem. Nevertheless, you
9122 *** may want to report the problem to your system manager and/or to
9123 *** bug-libtool@gnu.org
9125 _LT_EOF
9126 fi ;;
9127 esac
9129 break
9131 done
9132 IFS="$lt_save_ifs"
9133 MAGIC_CMD="$lt_save_MAGIC_CMD"
9135 esac
9138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9139 if test -n "$MAGIC_CMD"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9141 $as_echo "$MAGIC_CMD" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9151 if test -z "$lt_cv_path_MAGIC_CMD"; then
9152 if test -n "$ac_tool_prefix"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9154 $as_echo_n "checking for file... " >&6; }
9155 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 case $MAGIC_CMD in
9159 [\\/*] | ?:[\\/]*)
9160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9163 lt_save_MAGIC_CMD="$MAGIC_CMD"
9164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9166 for ac_dir in $ac_dummy; do
9167 IFS="$lt_save_ifs"
9168 test -z "$ac_dir" && ac_dir=.
9169 if test -f $ac_dir/file; then
9170 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9171 if test -n "$file_magic_test_file"; then
9172 case $deplibs_check_method in
9173 "file_magic "*)
9174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9177 $EGREP "$file_magic_regex" > /dev/null; then
9179 else
9180 cat <<_LT_EOF 1>&2
9182 *** Warning: the command libtool uses to detect shared libraries,
9183 *** $file_magic_cmd, produces output that libtool cannot recognize.
9184 *** The result is that libtool may fail to recognize shared libraries
9185 *** as such. This will affect the creation of libtool libraries that
9186 *** depend on shared libraries, but programs linked with such libtool
9187 *** libraries will work regardless of this problem. Nevertheless, you
9188 *** may want to report the problem to your system manager and/or to
9189 *** bug-libtool@gnu.org
9191 _LT_EOF
9192 fi ;;
9193 esac
9195 break
9197 done
9198 IFS="$lt_save_ifs"
9199 MAGIC_CMD="$lt_save_MAGIC_CMD"
9201 esac
9204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9205 if test -n "$MAGIC_CMD"; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9207 $as_echo "$MAGIC_CMD" >&6; }
9208 else
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210 $as_echo "no" >&6; }
9214 else
9215 MAGIC_CMD=:
9221 esac
9223 # Use C for the default configuration in the libtool script
9225 lt_save_CC="$CC"
9226 ac_ext=c
9227 ac_cpp='$CPP $CPPFLAGS'
9228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9233 # Source file extension for C test sources.
9234 ac_ext=c
9236 # Object file extension for compiled C test sources.
9237 objext=o
9238 objext=$objext
9240 # Code to be used in simple compile tests
9241 lt_simple_compile_test_code="int some_variable = 0;"
9243 # Code to be used in simple link tests
9244 lt_simple_link_test_code='int main(){return(0);}'
9252 # If no C compiler was specified, use CC.
9253 LTCC=${LTCC-"$CC"}
9255 # If no C compiler flags were specified, use CFLAGS.
9256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9258 # Allow CC to be a program name with arguments.
9259 compiler=$CC
9261 # Save the default compiler, since it gets overwritten when the other
9262 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9263 compiler_DEFAULT=$CC
9265 # save warnings/boilerplate of simple test code
9266 ac_outfile=conftest.$ac_objext
9267 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9268 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9269 _lt_compiler_boilerplate=`cat conftest.err`
9270 $RM conftest*
9272 ac_outfile=conftest.$ac_objext
9273 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9274 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9275 _lt_linker_boilerplate=`cat conftest.err`
9276 $RM -r conftest*
9279 ## CAVEAT EMPTOR:
9280 ## There is no encapsulation within the following macros, do not change
9281 ## the running order or otherwise move them around unless you know exactly
9282 ## what you are doing...
9283 if test -n "$compiler"; then
9285 lt_prog_compiler_no_builtin_flag=
9287 if test "$GCC" = yes; then
9288 case $cc_basename in
9289 nvcc*)
9290 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9292 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9293 esac
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9296 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9297 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 lt_cv_prog_compiler_rtti_exceptions=no
9301 ac_outfile=conftest.$ac_objext
9302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9303 lt_compiler_flag="-fno-rtti -fno-exceptions"
9304 # Insert the option either (1) after the last *FLAGS variable, or
9305 # (2) before a word containing "conftest.", or (3) at the end.
9306 # Note that $ac_compile itself does not contain backslashes and begins
9307 # with a dollar sign (not a hyphen), so the echo should work correctly.
9308 # The option is referenced via a variable to avoid confusing sed.
9309 lt_compile=`echo "$ac_compile" | $SED \
9310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9312 -e 's:$: $lt_compiler_flag:'`
9313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9314 (eval "$lt_compile" 2>conftest.err)
9315 ac_status=$?
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 if (exit $ac_status) && test -s "$ac_outfile"; then
9319 # The compiler can only warn and ignore the option if not recognized
9320 # So say no if there are warnings other than the usual output.
9321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9324 lt_cv_prog_compiler_rtti_exceptions=yes
9327 $RM conftest*
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9331 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9333 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9334 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9335 else
9346 lt_prog_compiler_wl=
9347 lt_prog_compiler_pic=
9348 lt_prog_compiler_static=
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9351 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9353 if test "$GCC" = yes; then
9354 lt_prog_compiler_wl='-Wl,'
9355 lt_prog_compiler_static='-static'
9357 case $host_os in
9358 aix*)
9359 # All AIX code is PIC.
9360 if test "$host_cpu" = ia64; then
9361 # AIX 5 now supports IA64 processor
9362 lt_prog_compiler_static='-Bstatic'
9364 lt_prog_compiler_pic='-fPIC'
9367 amigaos*)
9368 case $host_cpu in
9369 powerpc)
9370 # see comment about AmigaOS4 .so support
9371 lt_prog_compiler_pic='-fPIC'
9373 m68k)
9374 # FIXME: we need at least 68020 code to build shared libraries, but
9375 # adding the `-m68020' flag to GCC prevents building anything better,
9376 # like `-m68040'.
9377 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9379 esac
9382 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9383 # PIC is the default for these OSes.
9386 mingw* | cygwin* | pw32* | os2* | cegcc*)
9387 # This hack is so that the source file can tell whether it is being
9388 # built for inclusion in a dll (and should export symbols for example).
9389 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9390 # (--disable-auto-import) libraries
9391 lt_prog_compiler_pic='-DDLL_EXPORT'
9394 darwin* | rhapsody*)
9395 # PIC is the default on this platform
9396 # Common symbols not allowed in MH_DYLIB files
9397 lt_prog_compiler_pic='-fno-common'
9400 haiku*)
9401 # PIC is the default for Haiku.
9402 # The "-static" flag exists, but is broken.
9403 lt_prog_compiler_static=
9406 hpux*)
9407 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9408 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9409 # sets the default TLS model and affects inlining.
9410 case $host_cpu in
9411 hppa*64*)
9412 # +Z the default
9415 lt_prog_compiler_pic='-fPIC'
9417 esac
9420 interix[3-9]*)
9421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9422 # Instead, we relocate shared libraries at runtime.
9425 msdosdjgpp*)
9426 # Just because we use GCC doesn't mean we suddenly get shared libraries
9427 # on systems that don't support them.
9428 lt_prog_compiler_can_build_shared=no
9429 enable_shared=no
9432 *nto* | *qnx*)
9433 # QNX uses GNU C++, but need to define -shared option too, otherwise
9434 # it will coredump.
9435 lt_prog_compiler_pic='-fPIC -shared'
9438 sysv4*MP*)
9439 if test -d /usr/nec; then
9440 lt_prog_compiler_pic=-Kconform_pic
9445 lt_prog_compiler_pic='-fPIC'
9447 esac
9449 case $cc_basename in
9450 nvcc*) # Cuda Compiler Driver 2.2
9451 lt_prog_compiler_wl='-Xlinker '
9452 lt_prog_compiler_pic='-Xcompiler -fPIC'
9454 esac
9455 else
9456 # PORTME Check for flag to pass linker flags through the system compiler.
9457 case $host_os in
9458 aix*)
9459 lt_prog_compiler_wl='-Wl,'
9460 if test "$host_cpu" = ia64; then
9461 # AIX 5 now supports IA64 processor
9462 lt_prog_compiler_static='-Bstatic'
9463 else
9464 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9468 mingw* | cygwin* | pw32* | os2* | cegcc*)
9469 # This hack is so that the source file can tell whether it is being
9470 # built for inclusion in a dll (and should export symbols for example).
9471 lt_prog_compiler_pic='-DDLL_EXPORT'
9474 hpux9* | hpux10* | hpux11*)
9475 lt_prog_compiler_wl='-Wl,'
9476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9477 # not for PA HP-UX.
9478 case $host_cpu in
9479 hppa*64*|ia64*)
9480 # +Z the default
9483 lt_prog_compiler_pic='+Z'
9485 esac
9486 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9487 lt_prog_compiler_static='${wl}-a ${wl}archive'
9490 irix5* | irix6* | nonstopux*)
9491 lt_prog_compiler_wl='-Wl,'
9492 # PIC (with -KPIC) is the default.
9493 lt_prog_compiler_static='-non_shared'
9496 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9497 case $cc_basename in
9498 # old Intel for x86_64 which still supported -KPIC.
9499 ecc*)
9500 lt_prog_compiler_wl='-Wl,'
9501 lt_prog_compiler_pic='-KPIC'
9502 lt_prog_compiler_static='-static'
9504 # icc used to be incompatible with GCC.
9505 # ICC 10 doesn't accept -KPIC any more.
9506 icc* | ifort*)
9507 lt_prog_compiler_wl='-Wl,'
9508 lt_prog_compiler_pic='-fPIC'
9509 lt_prog_compiler_static='-static'
9511 # Lahey Fortran 8.1.
9512 lf95*)
9513 lt_prog_compiler_wl='-Wl,'
9514 lt_prog_compiler_pic='--shared'
9515 lt_prog_compiler_static='--static'
9517 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9518 # Portland Group compilers (*not* the Pentium gcc compiler,
9519 # which looks to be a dead project)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='-fpic'
9522 lt_prog_compiler_static='-Bstatic'
9524 ccc*)
9525 lt_prog_compiler_wl='-Wl,'
9526 # All Alpha code is PIC.
9527 lt_prog_compiler_static='-non_shared'
9529 xl* | bgxl* | bgf* | mpixl*)
9530 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9531 lt_prog_compiler_wl='-Wl,'
9532 lt_prog_compiler_pic='-qpic'
9533 lt_prog_compiler_static='-qstaticlink'
9536 case `$CC -V 2>&1 | sed 5q` in
9537 *Sun\ F* | *Sun*Fortran*)
9538 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9539 lt_prog_compiler_pic='-KPIC'
9540 lt_prog_compiler_static='-Bstatic'
9541 lt_prog_compiler_wl=''
9543 *Sun\ C*)
9544 # Sun C 5.9
9545 lt_prog_compiler_pic='-KPIC'
9546 lt_prog_compiler_static='-Bstatic'
9547 lt_prog_compiler_wl='-Wl,'
9549 esac
9551 esac
9554 newsos6)
9555 lt_prog_compiler_pic='-KPIC'
9556 lt_prog_compiler_static='-Bstatic'
9559 *nto* | *qnx*)
9560 # QNX uses GNU C++, but need to define -shared option too, otherwise
9561 # it will coredump.
9562 lt_prog_compiler_pic='-fPIC -shared'
9565 osf3* | osf4* | osf5*)
9566 lt_prog_compiler_wl='-Wl,'
9567 # All OSF/1 code is PIC.
9568 lt_prog_compiler_static='-non_shared'
9571 rdos*)
9572 lt_prog_compiler_static='-non_shared'
9575 solaris*)
9576 lt_prog_compiler_pic='-KPIC'
9577 lt_prog_compiler_static='-Bstatic'
9578 case $cc_basename in
9579 f77* | f90* | f95*)
9580 lt_prog_compiler_wl='-Qoption ld ';;
9582 lt_prog_compiler_wl='-Wl,';;
9583 esac
9586 sunos4*)
9587 lt_prog_compiler_wl='-Qoption ld '
9588 lt_prog_compiler_pic='-PIC'
9589 lt_prog_compiler_static='-Bstatic'
9592 sysv4 | sysv4.2uw2* | sysv4.3*)
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='-KPIC'
9595 lt_prog_compiler_static='-Bstatic'
9598 sysv4*MP*)
9599 if test -d /usr/nec ;then
9600 lt_prog_compiler_pic='-Kconform_pic'
9601 lt_prog_compiler_static='-Bstatic'
9605 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-KPIC'
9608 lt_prog_compiler_static='-Bstatic'
9611 unicos*)
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_can_build_shared=no
9616 uts4*)
9617 lt_prog_compiler_pic='-pic'
9618 lt_prog_compiler_static='-Bstatic'
9622 lt_prog_compiler_can_build_shared=no
9624 esac
9627 case $host_os in
9628 # For platforms which do not support PIC, -DPIC is meaningless:
9629 *djgpp*)
9630 lt_prog_compiler_pic=
9633 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9635 esac
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9637 $as_echo "$lt_prog_compiler_pic" >&6; }
9645 # Check to make sure the PIC flag actually works.
9647 if test -n "$lt_prog_compiler_pic"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9649 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9650 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 lt_cv_prog_compiler_pic_works=no
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9657 # Insert the option either (1) after the last *FLAGS variable, or
9658 # (2) before a word containing "conftest.", or (3) at the end.
9659 # Note that $ac_compile itself does not contain backslashes and begins
9660 # with a dollar sign (not a hyphen), so the echo should work correctly.
9661 # The option is referenced via a variable to avoid confusing sed.
9662 lt_compile=`echo "$ac_compile" | $SED \
9663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9665 -e 's:$: $lt_compiler_flag:'`
9666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9667 (eval "$lt_compile" 2>conftest.err)
9668 ac_status=$?
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 if (exit $ac_status) && test -s "$ac_outfile"; then
9672 # The compiler can only warn and ignore the option if not recognized
9673 # So say no if there are warnings other than the usual output.
9674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9677 lt_cv_prog_compiler_pic_works=yes
9680 $RM conftest*
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9684 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9686 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9687 case $lt_prog_compiler_pic in
9688 "" | " "*) ;;
9689 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9690 esac
9691 else
9692 lt_prog_compiler_pic=
9693 lt_prog_compiler_can_build_shared=no
9704 # Check to make sure the static flag actually works.
9706 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9708 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9709 if ${lt_cv_prog_compiler_static_works+:} false; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 lt_cv_prog_compiler_static_works=no
9713 save_LDFLAGS="$LDFLAGS"
9714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9717 # The linker can only warn and ignore the option if not recognized
9718 # So say no if there are warnings
9719 if test -s conftest.err; then
9720 # Append any errors to the config.log.
9721 cat conftest.err 1>&5
9722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9724 if diff conftest.exp conftest.er2 >/dev/null; then
9725 lt_cv_prog_compiler_static_works=yes
9727 else
9728 lt_cv_prog_compiler_static_works=yes
9731 $RM -r conftest*
9732 LDFLAGS="$save_LDFLAGS"
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9736 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9738 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9740 else
9741 lt_prog_compiler_static=
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9752 if ${lt_cv_prog_compiler_c_o+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 lt_cv_prog_compiler_c_o=no
9756 $RM -r conftest 2>/dev/null
9757 mkdir conftest
9758 cd conftest
9759 mkdir out
9760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9762 lt_compiler_flag="-o out/conftest2.$ac_objext"
9763 # Insert the option either (1) after the last *FLAGS variable, or
9764 # (2) before a word containing "conftest.", or (3) at the end.
9765 # Note that $ac_compile itself does not contain backslashes and begins
9766 # with a dollar sign (not a hyphen), so the echo should work correctly.
9767 lt_compile=`echo "$ac_compile" | $SED \
9768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9770 -e 's:$: $lt_compiler_flag:'`
9771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9772 (eval "$lt_compile" 2>out/conftest.err)
9773 ac_status=$?
9774 cat out/conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9777 then
9778 # The compiler can only warn and ignore the option if not recognized
9779 # So say no if there are warnings
9780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9783 lt_cv_prog_compiler_c_o=yes
9786 chmod u+w . 2>&5
9787 $RM conftest*
9788 # SGI C++ compiler will create directory out/ii_files/ for
9789 # template instantiation
9790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9791 $RM out/* && rmdir out
9792 cd ..
9793 $RM -r conftest
9794 $RM conftest*
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9798 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9806 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9807 if ${lt_cv_prog_compiler_c_o+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 lt_cv_prog_compiler_c_o=no
9811 $RM -r conftest 2>/dev/null
9812 mkdir conftest
9813 cd conftest
9814 mkdir out
9815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9817 lt_compiler_flag="-o out/conftest2.$ac_objext"
9818 # Insert the option either (1) after the last *FLAGS variable, or
9819 # (2) before a word containing "conftest.", or (3) at the end.
9820 # Note that $ac_compile itself does not contain backslashes and begins
9821 # with a dollar sign (not a hyphen), so the echo should work correctly.
9822 lt_compile=`echo "$ac_compile" | $SED \
9823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9825 -e 's:$: $lt_compiler_flag:'`
9826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9827 (eval "$lt_compile" 2>out/conftest.err)
9828 ac_status=$?
9829 cat out/conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9832 then
9833 # The compiler can only warn and ignore the option if not recognized
9834 # So say no if there are warnings
9835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9838 lt_cv_prog_compiler_c_o=yes
9841 chmod u+w . 2>&5
9842 $RM conftest*
9843 # SGI C++ compiler will create directory out/ii_files/ for
9844 # template instantiation
9845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9846 $RM out/* && rmdir out
9847 cd ..
9848 $RM -r conftest
9849 $RM conftest*
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9853 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9858 hard_links="nottested"
9859 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9860 # do not overwrite the value of need_locks provided by the user
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9862 $as_echo_n "checking if we can lock with hard links... " >&6; }
9863 hard_links=yes
9864 $RM conftest*
9865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9866 touch conftest.a
9867 ln conftest.a conftest.b 2>&5 || hard_links=no
9868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9870 $as_echo "$hard_links" >&6; }
9871 if test "$hard_links" = no; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9873 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9874 need_locks=warn
9876 else
9877 need_locks=no
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9888 runpath_var=
9889 allow_undefined_flag=
9890 always_export_symbols=no
9891 archive_cmds=
9892 archive_expsym_cmds=
9893 compiler_needs_object=no
9894 enable_shared_with_static_runtimes=no
9895 export_dynamic_flag_spec=
9896 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9897 hardcode_automatic=no
9898 hardcode_direct=no
9899 hardcode_direct_absolute=no
9900 hardcode_libdir_flag_spec=
9901 hardcode_libdir_flag_spec_ld=
9902 hardcode_libdir_separator=
9903 hardcode_minus_L=no
9904 hardcode_shlibpath_var=unsupported
9905 inherit_rpath=no
9906 link_all_deplibs=unknown
9907 module_cmds=
9908 module_expsym_cmds=
9909 old_archive_from_new_cmds=
9910 old_archive_from_expsyms_cmds=
9911 thread_safe_flag_spec=
9912 whole_archive_flag_spec=
9913 # include_expsyms should be a list of space-separated symbols to be *always*
9914 # included in the symbol list
9915 include_expsyms=
9916 # exclude_expsyms can be an extended regexp of symbols to exclude
9917 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9918 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9919 # as well as any symbol that contains `d'.
9920 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9921 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9922 # platforms (ab)use it in PIC code, but their linkers get confused if
9923 # the symbol is explicitly referenced. Since portable code cannot
9924 # rely on this symbol name, it's probably fine to never include it in
9925 # preloaded symbol tables.
9926 # Exclude shared library initialization/finalization symbols.
9927 extract_expsyms_cmds=
9929 case $host_os in
9930 cygwin* | mingw* | pw32* | cegcc*)
9931 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9932 # When not using gcc, we currently assume that we are using
9933 # Microsoft Visual C++.
9934 if test "$GCC" != yes; then
9935 with_gnu_ld=no
9938 interix*)
9939 # we just hope/assume this is gcc and not c89 (= MSVC++)
9940 with_gnu_ld=yes
9942 openbsd*)
9943 with_gnu_ld=no
9945 esac
9947 ld_shlibs=yes
9949 # On some targets, GNU ld is compatible enough with the native linker
9950 # that we're better off using the native interface for both.
9951 lt_use_gnu_ld_interface=no
9952 if test "$with_gnu_ld" = yes; then
9953 case $host_os in
9954 aix*)
9955 # The AIX port of GNU ld has always aspired to compatibility
9956 # with the native linker. However, as the warning in the GNU ld
9957 # block says, versions before 2.19.5* couldn't really create working
9958 # shared libraries, regardless of the interface used.
9959 case `$LD -v 2>&1` in
9960 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9961 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9962 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9964 lt_use_gnu_ld_interface=yes
9966 esac
9969 lt_use_gnu_ld_interface=yes
9971 esac
9974 if test "$lt_use_gnu_ld_interface" = yes; then
9975 # If archive_cmds runs LD, not CC, wlarc should be empty
9976 wlarc='${wl}'
9978 # Set some defaults for GNU ld with shared library support. These
9979 # are reset later if shared libraries are not supported. Putting them
9980 # here allows them to be overridden if necessary.
9981 runpath_var=LD_RUN_PATH
9982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983 export_dynamic_flag_spec='${wl}--export-dynamic'
9984 # ancient GNU ld didn't support --whole-archive et. al.
9985 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9986 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9987 else
9988 whole_archive_flag_spec=
9990 supports_anon_versioning=no
9991 case `$LD -v 2>&1` in
9992 *GNU\ gold*) supports_anon_versioning=yes ;;
9993 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9994 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9995 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9996 *\ 2.11.*) ;; # other 2.11 versions
9997 *) supports_anon_versioning=yes ;;
9998 esac
10000 # See if GNU ld supports shared libraries.
10001 case $host_os in
10002 aix[3-9]*)
10003 # On AIX/PPC, the GNU linker is very broken
10004 if test "$host_cpu" != ia64; then
10005 ld_shlibs=no
10006 cat <<_LT_EOF 1>&2
10008 *** Warning: the GNU linker, at least up to release 2.19, is reported
10009 *** to be unable to reliably create shared libraries on AIX.
10010 *** Therefore, libtool is disabling shared libraries support. If you
10011 *** really care for shared libraries, you may want to install binutils
10012 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10013 *** You will then need to restart the configuration process.
10015 _LT_EOF
10019 amigaos*)
10020 case $host_cpu in
10021 powerpc)
10022 # see comment about AmigaOS4 .so support
10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024 archive_expsym_cmds=''
10026 m68k)
10027 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)'
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_minus_L=yes
10031 esac
10034 beos*)
10035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10036 allow_undefined_flag=unsupported
10037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10038 # support --undefined. This deserves some investigation. FIXME
10039 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10040 else
10041 ld_shlibs=no
10045 cygwin* | mingw* | pw32* | cegcc*)
10046 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10047 # as there is no search path for DLLs.
10048 hardcode_libdir_flag_spec='-L$libdir'
10049 export_dynamic_flag_spec='${wl}--export-all-symbols'
10050 allow_undefined_flag=unsupported
10051 always_export_symbols=no
10052 enable_shared_with_static_runtimes=yes
10053 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10055 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10057 # If the export-symbols file already is a .def file (1st line
10058 # is EXPORTS), use it as is; otherwise, prepend...
10059 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10060 cp $export_symbols $output_objdir/$soname.def;
10061 else
10062 echo EXPORTS > $output_objdir/$soname.def;
10063 cat $export_symbols >> $output_objdir/$soname.def;
10065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10066 else
10067 ld_shlibs=no
10071 haiku*)
10072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073 link_all_deplibs=yes
10076 interix[3-9]*)
10077 hardcode_direct=no
10078 hardcode_shlibpath_var=no
10079 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10080 export_dynamic_flag_spec='${wl}-E'
10081 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10082 # Instead, shared libraries are loaded at an image base (0x10000000 by
10083 # default) and relocated if they conflict, which is a slow very memory
10084 # consuming and fragmenting process. To avoid this, we pick a random,
10085 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10086 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10088 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'
10091 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10092 tmp_diet=no
10093 if test "$host_os" = linux-dietlibc; then
10094 case $cc_basename in
10095 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10096 esac
10098 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10099 && test "$tmp_diet" = no
10100 then
10101 tmp_addflag=' $pic_flag'
10102 tmp_sharedflag='-shared'
10103 case $cc_basename,$host_cpu in
10104 pgcc*) # Portland Group C compiler
10105 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'
10106 tmp_addflag=' $pic_flag'
10108 pgf77* | pgf90* | pgf95* | pgfortran*)
10109 # Portland Group f77 and f90 compilers
10110 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'
10111 tmp_addflag=' $pic_flag -Mnomain' ;;
10112 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10113 tmp_addflag=' -i_dynamic' ;;
10114 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10115 tmp_addflag=' -i_dynamic -nofor_main' ;;
10116 ifc* | ifort*) # Intel Fortran compiler
10117 tmp_addflag=' -nofor_main' ;;
10118 lf95*) # Lahey Fortran 8.1
10119 whole_archive_flag_spec=
10120 tmp_sharedflag='--shared' ;;
10121 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10122 tmp_sharedflag='-qmkshrobj'
10123 tmp_addflag= ;;
10124 nvcc*) # Cuda Compiler Driver 2.2
10125 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'
10126 compiler_needs_object=yes
10128 esac
10129 case `$CC -V 2>&1 | sed 5q` in
10130 *Sun\ C*) # Sun C 5.9
10131 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'
10132 compiler_needs_object=yes
10133 tmp_sharedflag='-G' ;;
10134 *Sun\ F*) # Sun Fortran 8.3
10135 tmp_sharedflag='-G' ;;
10136 esac
10137 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10139 if test "x$supports_anon_versioning" = xyes; then
10140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10142 echo "local: *; };" >> $output_objdir/$libname.ver~
10143 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10146 case $cc_basename in
10147 xlf* | bgf* | bgxlf* | mpixlf*)
10148 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10149 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10150 hardcode_libdir_flag_spec=
10151 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10152 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10153 if test "x$supports_anon_versioning" = xyes; then
10154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10156 echo "local: *; };" >> $output_objdir/$libname.ver~
10157 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10160 esac
10161 else
10162 ld_shlibs=no
10166 netbsd*)
10167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10168 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10169 wlarc=
10170 else
10171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10176 solaris*)
10177 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10178 ld_shlibs=no
10179 cat <<_LT_EOF 1>&2
10181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10182 *** create shared libraries on Solaris systems. Therefore, libtool
10183 *** is disabling shared libraries support. We urge you to upgrade GNU
10184 *** binutils to release 2.9.1 or newer. Another option is to modify
10185 *** your PATH or compiler configuration so that the native linker is
10186 *** used, and then restart.
10188 _LT_EOF
10189 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10192 else
10193 ld_shlibs=no
10197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10198 case `$LD -v 2>&1` in
10199 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10200 ld_shlibs=no
10201 cat <<_LT_EOF 1>&2
10203 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10204 *** reliably create shared libraries on SCO systems. Therefore, libtool
10205 *** is disabling shared libraries support. We urge you to upgrade GNU
10206 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10207 *** your PATH or compiler configuration so that the native linker is
10208 *** used, and then restart.
10210 _LT_EOF
10213 # For security reasons, it is highly recommended that you always
10214 # use absolute paths for naming shared libraries, and exclude the
10215 # DT_RUNPATH tag from executables and libraries. But doing so
10216 # requires that you compile everything twice, which is a pain.
10217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10221 else
10222 ld_shlibs=no
10225 esac
10228 sunos4*)
10229 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10230 wlarc=
10231 hardcode_direct=yes
10232 hardcode_shlibpath_var=no
10236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10239 else
10240 ld_shlibs=no
10243 esac
10245 if test "$ld_shlibs" = no; then
10246 runpath_var=
10247 hardcode_libdir_flag_spec=
10248 export_dynamic_flag_spec=
10249 whole_archive_flag_spec=
10251 else
10252 # PORTME fill in a description of your system's linker (not GNU ld)
10253 case $host_os in
10254 aix3*)
10255 allow_undefined_flag=unsupported
10256 always_export_symbols=yes
10257 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'
10258 # Note: this linker hardcodes the directories in LIBPATH if there
10259 # are no directories specified by -L.
10260 hardcode_minus_L=yes
10261 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10262 # Neither direct hardcoding nor static linking is supported with a
10263 # broken collect2.
10264 hardcode_direct=unsupported
10268 aix[4-9]*)
10269 if test "$host_cpu" = ia64; then
10270 # On IA64, the linker does run time linking by default, so we don't
10271 # have to do anything special.
10272 aix_use_runtimelinking=no
10273 exp_sym_flag='-Bexport'
10274 no_entry_flag=""
10275 else
10276 # If we're using GNU nm, then we don't want the "-C" option.
10277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10278 # Also, AIX nm treats weak defined symbols like other global
10279 # defined symbols, whereas GNU nm marks them as "W".
10280 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10281 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'
10282 else
10283 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'
10285 aix_use_runtimelinking=no
10287 # Test if we are trying to use run time linking or normal
10288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10289 # need to do runtime linking.
10290 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10291 for ld_flag in $LDFLAGS; do
10292 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10293 aix_use_runtimelinking=yes
10294 break
10296 done
10298 esac
10300 exp_sym_flag='-bexport'
10301 no_entry_flag='-bnoentry'
10304 # When large executables or shared objects are built, AIX ld can
10305 # have problems creating the table of contents. If linking a library
10306 # or program results in "error TOC overflow" add -mminimal-toc to
10307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10310 archive_cmds=''
10311 hardcode_direct=yes
10312 hardcode_direct_absolute=yes
10313 hardcode_libdir_separator=':'
10314 link_all_deplibs=yes
10315 file_list_spec='${wl}-f,'
10317 if test "$GCC" = yes; then
10318 case $host_os in aix4.[012]|aix4.[012].*)
10319 # We only want to do this on AIX 4.2 and lower, the check
10320 # below for broken collect2 doesn't work under 4.3+
10321 collect2name=`${CC} -print-prog-name=collect2`
10322 if test -f "$collect2name" &&
10323 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10324 then
10325 # We have reworked collect2
10327 else
10328 # We have old collect2
10329 hardcode_direct=unsupported
10330 # It fails to find uninstalled libraries when the uninstalled
10331 # path is not listed in the libpath. Setting hardcode_minus_L
10332 # to unsupported forces relinking
10333 hardcode_minus_L=yes
10334 hardcode_libdir_flag_spec='-L$libdir'
10335 hardcode_libdir_separator=
10338 esac
10339 shared_flag='-shared'
10340 if test "$aix_use_runtimelinking" = yes; then
10341 shared_flag="$shared_flag "'${wl}-G'
10343 else
10344 # not using gcc
10345 if test "$host_cpu" = ia64; then
10346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10347 # chokes on -Wl,-G. The following line is correct:
10348 shared_flag='-G'
10349 else
10350 if test "$aix_use_runtimelinking" = yes; then
10351 shared_flag='${wl}-G'
10352 else
10353 shared_flag='${wl}-bM:SRE'
10358 export_dynamic_flag_spec='${wl}-bexpall'
10359 # It seems that -bexpall does not export symbols beginning with
10360 # underscore (_), so it is better to generate a list of symbols to export.
10361 always_export_symbols=yes
10362 if test "$aix_use_runtimelinking" = yes; then
10363 # Warning - without using the other runtime loading flags (-brtl),
10364 # -berok will link without error, but may produce a broken library.
10365 allow_undefined_flag='-berok'
10366 # Determine the default libpath from the value encoded in an
10367 # empty executable.
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10372 main ()
10376 return 0;
10378 _ACEOF
10379 if ac_fn_c_try_link "$LINENO"; then :
10381 lt_aix_libpath_sed='
10382 /Import File Strings/,/^$/ {
10383 /^0/ {
10384 s/^0 *\(.*\)$/\1/
10388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10389 # Check for a 64-bit object if we didn't find anything.
10390 if test -z "$aix_libpath"; then
10391 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10398 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10399 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"
10400 else
10401 if test "$host_cpu" = ia64; then
10402 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10403 allow_undefined_flag="-z nodefs"
10404 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"
10405 else
10406 # Determine the default libpath from the value encoded in an
10407 # empty executable.
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10412 main ()
10416 return 0;
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10421 lt_aix_libpath_sed='
10422 /Import File Strings/,/^$/ {
10423 /^0/ {
10424 s/^0 *\(.*\)$/\1/
10428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10429 # Check for a 64-bit object if we didn't find anything.
10430 if test -z "$aix_libpath"; then
10431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10439 # Warning - without using the other run time loading flags,
10440 # -berok will link without error, but may produce a broken library.
10441 no_undefined_flag=' ${wl}-bernotok'
10442 allow_undefined_flag=' ${wl}-berok'
10443 if test "$with_gnu_ld" = yes; then
10444 # We only use this code for GNU lds that support --whole-archive.
10445 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10446 else
10447 # Exported symbols can be pulled into shared objects from archives
10448 whole_archive_flag_spec='$convenience'
10450 archive_cmds_need_lc=yes
10451 # This is similar to how AIX traditionally builds its shared libraries.
10452 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'
10457 amigaos*)
10458 case $host_cpu in
10459 powerpc)
10460 # see comment about AmigaOS4 .so support
10461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462 archive_expsym_cmds=''
10464 m68k)
10465 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)'
10466 hardcode_libdir_flag_spec='-L$libdir'
10467 hardcode_minus_L=yes
10469 esac
10472 bsdi[45]*)
10473 export_dynamic_flag_spec=-rdynamic
10476 cygwin* | mingw* | pw32* | cegcc*)
10477 # When not using gcc, we currently assume that we are using
10478 # Microsoft Visual C++.
10479 # hardcode_libdir_flag_spec is actually meaningless, as there is
10480 # no search path for DLLs.
10481 hardcode_libdir_flag_spec=' '
10482 allow_undefined_flag=unsupported
10483 # Tell ltmain to make .lib files, not .a files.
10484 libext=lib
10485 # Tell ltmain to make .dll files, not .so files.
10486 shrext_cmds=".dll"
10487 # FIXME: Setting linknames here is a bad hack.
10488 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10489 # The linker will automatically build a .lib file if we build a DLL.
10490 old_archive_from_new_cmds='true'
10491 # FIXME: Should let the user specify the lib program.
10492 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10493 fix_srcfile_path='`cygpath -w "$srcfile"`'
10494 enable_shared_with_static_runtimes=yes
10497 darwin* | rhapsody*)
10501 # Publish an arg to allow the user to select that Darwin host (and target)
10502 # libraries should be given install-names like @rpath/libfoo.dylib. This
10503 # requires that the user of the library then adds an 'rpath' to the DSO that
10504 # needs access.
10505 # NOTE: there are defaults below, for systems that support rpaths. The person
10506 # configuring can override the defaults for any system version that supports
10507 # them - they are, however, forced off for system versions without support.
10508 # Check whether --enable-darwin-at-rpath was given.
10509 if test "${enable_darwin_at_rpath+set}" = set; then :
10510 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10511 # This is not supported before macOS 10.5 / Darwin9.
10512 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10513 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10515 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10516 enable_darwin_at_rpath=no
10518 esac
10520 else
10521 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10522 # As above, before 10.5 / Darwin9 this does not work.
10523 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10524 enable_darwin_at_rpath=no
10527 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10528 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10529 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10530 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10532 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10533 enable_darwin_at_rpath=yes
10535 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10536 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10538 esac
10543 archive_cmds_need_lc=no
10544 hardcode_direct=no
10545 hardcode_automatic=yes
10546 hardcode_shlibpath_var=unsupported
10547 if test "$lt_cv_ld_force_load" = "yes"; then
10548 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\"`'
10549 else
10550 whole_archive_flag_spec=''
10552 link_all_deplibs=yes
10553 allow_undefined_flag="$_lt_dar_allow_undefined"
10554 case $cc_basename in
10555 ifort*) _lt_dar_can_shared=yes ;;
10556 *) _lt_dar_can_shared=$GCC ;;
10557 esac
10558 if test "$_lt_dar_can_shared" = "yes"; then
10559 output_verbose_link_cmd=func_echo_all
10560 _lt_install_name='\$rpath/\$soname'
10561 if test "x$enable_darwin_at_rpath" = "xyes"; then
10562 _lt_install_name='@rpath/\$soname'
10564 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10565 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10566 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10567 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}"
10569 else
10570 ld_shlibs=no
10575 dgux*)
10576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10577 hardcode_libdir_flag_spec='-L$libdir'
10578 hardcode_shlibpath_var=no
10581 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10582 # support. Future versions do this automatically, but an explicit c++rt0.o
10583 # does not break anything, and helps significantly (at the cost of a little
10584 # extra space).
10585 freebsd2.2*)
10586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10587 hardcode_libdir_flag_spec='-R$libdir'
10588 hardcode_direct=yes
10589 hardcode_shlibpath_var=no
10592 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10593 freebsd2.*)
10594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_direct=yes
10596 hardcode_minus_L=yes
10597 hardcode_shlibpath_var=no
10600 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10601 freebsd* | dragonfly*)
10602 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10603 hardcode_libdir_flag_spec='-R$libdir'
10604 hardcode_direct=yes
10605 hardcode_shlibpath_var=no
10608 hpux9*)
10609 if test "$GCC" = yes; then
10610 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'
10611 else
10612 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'
10614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10615 hardcode_libdir_separator=:
10616 hardcode_direct=yes
10618 # hardcode_minus_L: Not really in the search PATH,
10619 # but as the default location of the library.
10620 hardcode_minus_L=yes
10621 export_dynamic_flag_spec='${wl}-E'
10624 hpux10*)
10625 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10626 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10627 else
10628 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10630 if test "$with_gnu_ld" = no; then
10631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10632 hardcode_libdir_flag_spec_ld='+b $libdir'
10633 hardcode_libdir_separator=:
10634 hardcode_direct=yes
10635 hardcode_direct_absolute=yes
10636 export_dynamic_flag_spec='${wl}-E'
10637 # hardcode_minus_L: Not really in the search PATH,
10638 # but as the default location of the library.
10639 hardcode_minus_L=yes
10643 hpux11*)
10644 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10645 case $host_cpu in
10646 hppa*64*)
10647 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10649 ia64*)
10650 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10655 esac
10656 else
10657 case $host_cpu in
10658 hppa*64*)
10659 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10661 ia64*)
10662 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10666 # Older versions of the 11.00 compiler do not understand -b yet
10667 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10669 $as_echo_n "checking if $CC understands -b... " >&6; }
10670 if ${lt_cv_prog_compiler__b+:} false; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 lt_cv_prog_compiler__b=no
10674 save_LDFLAGS="$LDFLAGS"
10675 LDFLAGS="$LDFLAGS -b"
10676 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10678 # The linker can only warn and ignore the option if not recognized
10679 # So say no if there are warnings
10680 if test -s conftest.err; then
10681 # Append any errors to the config.log.
10682 cat conftest.err 1>&5
10683 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10685 if diff conftest.exp conftest.er2 >/dev/null; then
10686 lt_cv_prog_compiler__b=yes
10688 else
10689 lt_cv_prog_compiler__b=yes
10692 $RM -r conftest*
10693 LDFLAGS="$save_LDFLAGS"
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10697 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10699 if test x"$lt_cv_prog_compiler__b" = xyes; then
10700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701 else
10702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10706 esac
10708 if test "$with_gnu_ld" = no; then
10709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10710 hardcode_libdir_separator=:
10712 case $host_cpu in
10713 hppa*64*|ia64*)
10714 hardcode_direct=no
10715 hardcode_shlibpath_var=no
10718 hardcode_direct=yes
10719 hardcode_direct_absolute=yes
10720 export_dynamic_flag_spec='${wl}-E'
10722 # hardcode_minus_L: Not really in the search PATH,
10723 # but as the default location of the library.
10724 hardcode_minus_L=yes
10726 esac
10730 irix5* | irix6* | nonstopux*)
10731 if test "$GCC" = yes; then
10732 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'
10733 # Try to use the -exported_symbol ld option, if it does not
10734 # work, assume that -exports_file does not work either and
10735 # implicitly export all symbols.
10736 save_LDFLAGS="$LDFLAGS"
10737 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 int foo(void) {}
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10743 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'
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LDFLAGS="$save_LDFLAGS"
10749 else
10750 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'
10751 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'
10753 archive_cmds_need_lc='no'
10754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10755 hardcode_libdir_separator=:
10756 inherit_rpath=yes
10757 link_all_deplibs=yes
10760 netbsd*)
10761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10763 else
10764 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10766 hardcode_libdir_flag_spec='-R$libdir'
10767 hardcode_direct=yes
10768 hardcode_shlibpath_var=no
10771 newsos6)
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_direct=yes
10774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10775 hardcode_libdir_separator=:
10776 hardcode_shlibpath_var=no
10779 *nto* | *qnx*)
10782 openbsd*)
10783 if test -f /usr/libexec/ld.so; then
10784 hardcode_direct=yes
10785 hardcode_shlibpath_var=no
10786 hardcode_direct_absolute=yes
10787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10789 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10791 export_dynamic_flag_spec='${wl}-E'
10792 else
10793 case $host_os in
10794 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10796 hardcode_libdir_flag_spec='-R$libdir'
10799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10802 esac
10804 else
10805 ld_shlibs=no
10809 os2*)
10810 hardcode_libdir_flag_spec='-L$libdir'
10811 hardcode_minus_L=yes
10812 allow_undefined_flag=unsupported
10813 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'
10814 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10817 osf3*)
10818 if test "$GCC" = yes; then
10819 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10820 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'
10821 else
10822 allow_undefined_flag=' -expect_unresolved \*'
10823 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'
10825 archive_cmds_need_lc='no'
10826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10827 hardcode_libdir_separator=:
10830 osf4* | osf5*) # as osf3* with the addition of -msym flag
10831 if test "$GCC" = yes; then
10832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10833 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'
10834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10835 else
10836 allow_undefined_flag=' -expect_unresolved \*'
10837 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'
10838 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~
10839 $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'
10841 # Both c and cxx compiler support -rpath directly
10842 hardcode_libdir_flag_spec='-rpath $libdir'
10844 archive_cmds_need_lc='no'
10845 hardcode_libdir_separator=:
10848 solaris*)
10849 no_undefined_flag=' -z defs'
10850 if test "$GCC" = yes; then
10851 wlarc='${wl}'
10852 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10855 else
10856 case `$CC -V 2>&1` in
10857 *"Compilers 5.0"*)
10858 wlarc=''
10859 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10861 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10864 wlarc='${wl}'
10865 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10867 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10869 esac
10871 hardcode_libdir_flag_spec='-R$libdir'
10872 hardcode_shlibpath_var=no
10873 case $host_os in
10874 solaris2.[0-5] | solaris2.[0-5].*) ;;
10876 # The compiler driver will combine and reorder linker options,
10877 # but understands `-z linker_flag'. GCC discards it without `$wl',
10878 # but is careful enough not to reorder.
10879 # Supported since Solaris 2.6 (maybe 2.5.1?)
10880 if test "$GCC" = yes; then
10881 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10882 else
10883 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10886 esac
10887 link_all_deplibs=yes
10890 sunos4*)
10891 if test "x$host_vendor" = xsequent; then
10892 # Use $CC to link under sequent, because it throws in some extra .o
10893 # files that make .init and .fini sections work.
10894 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10895 else
10896 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10898 hardcode_libdir_flag_spec='-L$libdir'
10899 hardcode_direct=yes
10900 hardcode_minus_L=yes
10901 hardcode_shlibpath_var=no
10904 sysv4)
10905 case $host_vendor in
10906 sni)
10907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 hardcode_direct=yes # is this really true???
10910 siemens)
10911 ## LD is ld it makes a PLAMLIB
10912 ## CC just makes a GrossModule.
10913 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10914 reload_cmds='$CC -r -o $output$reload_objs'
10915 hardcode_direct=no
10917 motorola)
10918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10921 esac
10922 runpath_var='LD_RUN_PATH'
10923 hardcode_shlibpath_var=no
10926 sysv4.3*)
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_shlibpath_var=no
10929 export_dynamic_flag_spec='-Bexport'
10932 sysv4*MP*)
10933 if test -d /usr/nec; then
10934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10935 hardcode_shlibpath_var=no
10936 runpath_var=LD_RUN_PATH
10937 hardcode_runpath_var=yes
10938 ld_shlibs=yes
10942 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10943 no_undefined_flag='${wl}-z,text'
10944 archive_cmds_need_lc=no
10945 hardcode_shlibpath_var=no
10946 runpath_var='LD_RUN_PATH'
10948 if test "$GCC" = yes; then
10949 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 else
10952 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 sysv5* | sco3.2v5* | sco5v6*)
10958 # Note: We can NOT use -z defs as we might desire, because we do not
10959 # link with -lc, and that would cause any symbols used from libc to
10960 # always be unresolved, which means just about no library would
10961 # ever link correctly. If we're not using GNU ld we use -z text
10962 # though, which does catch some bad symbols but isn't as heavy-handed
10963 # as -z defs.
10964 no_undefined_flag='${wl}-z,text'
10965 allow_undefined_flag='${wl}-z,nodefs'
10966 archive_cmds_need_lc=no
10967 hardcode_shlibpath_var=no
10968 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10969 hardcode_libdir_separator=':'
10970 link_all_deplibs=yes
10971 export_dynamic_flag_spec='${wl}-Bexport'
10972 runpath_var='LD_RUN_PATH'
10974 if test "$GCC" = yes; then
10975 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977 else
10978 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10983 uts4*)
10984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985 hardcode_libdir_flag_spec='-L$libdir'
10986 hardcode_shlibpath_var=no
10990 ld_shlibs=no
10992 esac
10994 if test x$host_vendor = xsni; then
10995 case $host in
10996 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10997 export_dynamic_flag_spec='${wl}-Blargedynsym'
10999 esac
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11004 $as_echo "$ld_shlibs" >&6; }
11005 test "$ld_shlibs" = no && can_build_shared=no
11007 with_gnu_ld=$with_gnu_ld
11024 # Do we need to explicitly link libc?
11026 case "x$archive_cmds_need_lc" in
11027 x|xyes)
11028 # Assume -lc should be added
11029 archive_cmds_need_lc=yes
11031 if test "$enable_shared" = yes && test "$GCC" = yes; then
11032 case $archive_cmds in
11033 *'~'*)
11034 # FIXME: we may have to deal with multi-command sequences.
11036 '$CC '*)
11037 # Test whether the compiler implicitly links with -lc since on some
11038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11039 # to ld, don't add -lc before -lgcc.
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11041 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11042 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 $RM conftest*
11046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11049 (eval $ac_compile) 2>&5
11050 ac_status=$?
11051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11052 test $ac_status = 0; } 2>conftest.err; then
11053 soname=conftest
11054 lib=conftest
11055 libobjs=conftest.$ac_objext
11056 deplibs=
11057 wl=$lt_prog_compiler_wl
11058 pic_flag=$lt_prog_compiler_pic
11059 compiler_flags=-v
11060 linker_flags=-v
11061 verstring=
11062 output_objdir=.
11063 libname=conftest
11064 lt_save_allow_undefined_flag=$allow_undefined_flag
11065 allow_undefined_flag=
11066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11067 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11068 ac_status=$?
11069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11070 test $ac_status = 0; }
11071 then
11072 lt_cv_archive_cmds_need_lc=no
11073 else
11074 lt_cv_archive_cmds_need_lc=yes
11076 allow_undefined_flag=$lt_save_allow_undefined_flag
11077 else
11078 cat conftest.err 1>&5
11080 $RM conftest*
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11084 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11085 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11087 esac
11090 esac
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11249 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11251 if test "$GCC" = yes; then
11252 case $host_os in
11253 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11254 *) lt_awk_arg="/^libraries:/" ;;
11255 esac
11256 case $host_os in
11257 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11258 *) lt_sed_strip_eq="s,=/,/,g" ;;
11259 esac
11260 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11261 case $lt_search_path_spec in
11262 *\;*)
11263 # if the path contains ";" then we assume it to be the separator
11264 # otherwise default to the standard path separator (i.e. ":") - it is
11265 # assumed that no part of a normal pathname contains ";" but that should
11266 # okay in the real world where ";" in dirpaths is itself problematic.
11267 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11270 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11272 esac
11273 # Ok, now we have the path, separated by spaces, we can step through it
11274 # and add multilib dir if necessary.
11275 lt_tmp_lt_search_path_spec=
11276 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11277 for lt_sys_path in $lt_search_path_spec; do
11278 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11279 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11280 else
11281 test -d "$lt_sys_path" && \
11282 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11284 done
11285 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11286 BEGIN {RS=" "; FS="/|\n";} {
11287 lt_foo="";
11288 lt_count=0;
11289 for (lt_i = NF; lt_i > 0; lt_i--) {
11290 if ($lt_i != "" && $lt_i != ".") {
11291 if ($lt_i == "..") {
11292 lt_count++;
11293 } else {
11294 if (lt_count == 0) {
11295 lt_foo="/" $lt_i lt_foo;
11296 } else {
11297 lt_count--;
11302 if (lt_foo != "") { lt_freq[lt_foo]++; }
11303 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11305 # AWK program above erroneously prepends '/' to C:/dos/paths
11306 # for these hosts.
11307 case $host_os in
11308 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11309 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11310 esac
11311 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11312 else
11313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11315 library_names_spec=
11316 libname_spec='lib$name'
11317 soname_spec=
11318 shrext_cmds=".so"
11319 postinstall_cmds=
11320 postuninstall_cmds=
11321 finish_cmds=
11322 finish_eval=
11323 shlibpath_var=
11324 shlibpath_overrides_runpath=unknown
11325 version_type=none
11326 dynamic_linker="$host_os ld.so"
11327 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11328 need_lib_prefix=unknown
11329 hardcode_into_libs=no
11331 # when you set need_version to no, make sure it does not cause -set_version
11332 # flags to be left without arguments
11333 need_version=unknown
11335 case $host_os in
11336 aix3*)
11337 version_type=linux
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11339 shlibpath_var=LIBPATH
11341 # AIX 3 has no versioning support, so we append a major version to the name.
11342 soname_spec='${libname}${release}${shared_ext}$major'
11345 aix[4-9]*)
11346 version_type=linux
11347 need_lib_prefix=no
11348 need_version=no
11349 hardcode_into_libs=yes
11350 if test "$host_cpu" = ia64; then
11351 # AIX 5 supports IA64
11352 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 else
11355 # With GCC up to 2.95.x, collect2 would create an import file
11356 # for dependence libraries. The import file would start with
11357 # the line `#! .'. This would cause the generated library to
11358 # depend on `.', always an invalid library. This was fixed in
11359 # development snapshots of GCC prior to 3.0.
11360 case $host_os in
11361 aix4 | aix4.[01] | aix4.[01].*)
11362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11363 echo ' yes '
11364 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11366 else
11367 can_build_shared=no
11370 esac
11371 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11372 # soname into executable. Probably we can add versioning support to
11373 # collect2, so additional links can be useful in future.
11374 if test "$aix_use_runtimelinking" = yes; then
11375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11376 # instead of lib<name>.a to let people know that these are not
11377 # typical AIX shared libraries.
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 else
11380 # We preserve .a as extension for shared libraries through AIX4.2
11381 # and later when we are not doing run time linking.
11382 library_names_spec='${libname}${release}.a $libname.a'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11385 shlibpath_var=LIBPATH
11389 amigaos*)
11390 case $host_cpu in
11391 powerpc)
11392 # Since July 2007 AmigaOS4 officially supports .so libraries.
11393 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 m68k)
11397 library_names_spec='$libname.ixlibrary $libname.a'
11398 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11399 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'
11401 esac
11404 beos*)
11405 library_names_spec='${libname}${shared_ext}'
11406 dynamic_linker="$host_os ld.so"
11407 shlibpath_var=LIBRARY_PATH
11410 bsdi[45]*)
11411 version_type=linux
11412 need_version=no
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11415 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11416 shlibpath_var=LD_LIBRARY_PATH
11417 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11418 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11419 # the default ld.so.conf also contains /usr/contrib/lib and
11420 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11421 # libtool to hard-code these into programs
11424 cygwin* | mingw* | pw32* | cegcc*)
11425 version_type=windows
11426 shrext_cmds=".dll"
11427 need_version=no
11428 need_lib_prefix=no
11430 case $GCC,$host_os in
11431 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11432 library_names_spec='$libname.dll.a'
11433 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11434 postinstall_cmds='base_file=`basename \${file}`~
11435 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11436 dldir=$destdir/`dirname \$dlpath`~
11437 test -d \$dldir || mkdir -p \$dldir~
11438 $install_prog $dir/$dlname \$dldir/$dlname~
11439 chmod a+x \$dldir/$dlname~
11440 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11441 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11444 dlpath=$dir/\$dldll~
11445 $RM \$dlpath'
11446 shlibpath_overrides_runpath=yes
11448 case $host_os in
11449 cygwin*)
11450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11455 mingw* | cegcc*)
11456 # MinGW DLLs use traditional 'lib' prefix
11457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11459 pw32*)
11460 # pw32 DLLs use 'pw' prefix rather than 'lib'
11461 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11463 esac
11467 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11469 esac
11470 dynamic_linker='Win32 ld.exe'
11471 # FIXME: first we should search . and the directory the executable is in
11472 shlibpath_var=PATH
11475 darwin* | rhapsody*)
11476 dynamic_linker="$host_os dyld"
11477 version_type=darwin
11478 need_lib_prefix=no
11479 need_version=no
11480 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11481 soname_spec='${libname}${release}${major}$shared_ext'
11482 shlibpath_overrides_runpath=yes
11483 shlibpath_var=DYLD_LIBRARY_PATH
11484 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11486 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11490 dgux*)
11491 version_type=linux
11492 need_lib_prefix=no
11493 need_version=no
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11499 freebsd* | dragonfly*)
11500 # DragonFly does not have aout. When/if they implement a new
11501 # versioning mechanism, adjust this.
11502 if test -x /usr/bin/objformat; then
11503 objformat=`/usr/bin/objformat`
11504 else
11505 case $host_os in
11506 freebsd[23].*) objformat=aout ;;
11507 *) objformat=elf ;;
11508 esac
11510 version_type=freebsd-$objformat
11511 case $version_type in
11512 freebsd-elf*)
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11514 need_version=no
11515 need_lib_prefix=no
11517 freebsd-*)
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11519 need_version=yes
11521 esac
11522 shlibpath_var=LD_LIBRARY_PATH
11523 case $host_os in
11524 freebsd2.*)
11525 shlibpath_overrides_runpath=yes
11527 freebsd3.[01]* | freebsdelf3.[01]*)
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11533 shlibpath_overrides_runpath=no
11534 hardcode_into_libs=yes
11536 *) # from 4.6 on, and DragonFly
11537 shlibpath_overrides_runpath=yes
11538 hardcode_into_libs=yes
11540 esac
11543 haiku*)
11544 version_type=linux
11545 need_lib_prefix=no
11546 need_version=no
11547 dynamic_linker="$host_os runtime_loader"
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LIBRARY_PATH
11551 shlibpath_overrides_runpath=yes
11552 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11553 hardcode_into_libs=yes
11556 hpux9* | hpux10* | hpux11*)
11557 # Give a soname corresponding to the major version so that dld.sl refuses to
11558 # link against other versions.
11559 version_type=sunos
11560 need_lib_prefix=no
11561 need_version=no
11562 case $host_cpu in
11563 ia64*)
11564 shrext_cmds='.so'
11565 hardcode_into_libs=yes
11566 dynamic_linker="$host_os dld.so"
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 if test "X$HPUX_IA64_MODE" = X32; then
11572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11573 else
11574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11578 hppa*64*)
11579 shrext_cmds='.sl'
11580 hardcode_into_libs=yes
11581 dynamic_linker="$host_os dld.sl"
11582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11590 shrext_cmds='.sl'
11591 dynamic_linker="$host_os dld.sl"
11592 shlibpath_var=SHLIB_PATH
11593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11597 esac
11598 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11599 postinstall_cmds='chmod 555 $lib'
11600 # or fails outright, so override atomically:
11601 install_override_mode=555
11604 interix[3-9]*)
11605 version_type=linux
11606 need_lib_prefix=no
11607 need_version=no
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=no
11613 hardcode_into_libs=yes
11616 irix5* | irix6* | nonstopux*)
11617 case $host_os in
11618 nonstopux*) version_type=nonstopux ;;
11620 if test "$lt_cv_prog_gnu_ld" = yes; then
11621 version_type=linux
11622 else
11623 version_type=irix
11624 fi ;;
11625 esac
11626 need_lib_prefix=no
11627 need_version=no
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11630 case $host_os in
11631 irix5* | nonstopux*)
11632 libsuff= shlibsuff=
11635 case $LD in # libtool.m4 will add one of these switches to LD
11636 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11637 libsuff= shlibsuff= libmagic=32-bit;;
11638 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11639 libsuff=32 shlibsuff=N32 libmagic=N32;;
11640 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11641 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11642 *) libsuff= shlibsuff= libmagic=never-match;;
11643 esac
11645 esac
11646 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11647 shlibpath_overrides_runpath=no
11648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11650 hardcode_into_libs=yes
11653 # No shared lib support for Linux oldld, aout, or coff.
11654 linux*oldld* | linux*aout* | linux*coff*)
11655 dynamic_linker=no
11658 # This must be Linux ELF.
11660 # uclinux* changes (here and below) have been submitted to the libtool
11661 # project, but have not yet been accepted: they are GCC-local changes
11662 # for the time being. (See
11663 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11664 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11665 version_type=linux
11666 need_lib_prefix=no
11667 need_version=no
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=no
11674 # Some binutils ld are patched to set DT_RUNPATH
11675 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 lt_cv_shlibpath_overrides_runpath=no
11679 save_LDFLAGS=$LDFLAGS
11680 save_libdir=$libdir
11681 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11682 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11687 main ()
11691 return 0;
11693 _ACEOF
11694 if ac_fn_c_try_link "$LINENO"; then :
11695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11696 lt_cv_shlibpath_overrides_runpath=yes
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11701 LDFLAGS=$save_LDFLAGS
11702 libdir=$save_libdir
11706 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11708 # This implies no fast_install, which is unacceptable.
11709 # Some rework will be needed to allow for fast_install
11710 # before this can be enabled.
11711 hardcode_into_libs=yes
11713 # Append ld.so.conf contents to the search path
11714 if test -f /etc/ld.so.conf; then
11715 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' ' '`
11716 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11719 # We used to test for /lib/ld.so.1 and disable shared libraries on
11720 # powerpc, because MkLinux only supported shared libraries with the
11721 # GNU dynamic linker. Since this was broken with cross compilers,
11722 # most powerpc-linux boxes support dynamic linking these days and
11723 # people can always --disable-shared, the test was removed, and we
11724 # assume the GNU/Linux dynamic linker is in use.
11725 dynamic_linker='GNU/Linux ld.so'
11728 netbsd*)
11729 version_type=sunos
11730 need_lib_prefix=no
11731 need_version=no
11732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11735 dynamic_linker='NetBSD (a.out) ld.so'
11736 else
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 dynamic_linker='NetBSD ld.elf_so'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11746 newsos6)
11747 version_type=linux
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11753 *nto* | *qnx*)
11754 version_type=qnx
11755 need_lib_prefix=no
11756 need_version=no
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=no
11761 hardcode_into_libs=yes
11762 dynamic_linker='ldqnx.so'
11765 openbsd*)
11766 version_type=sunos
11767 sys_lib_dlsearch_path_spec="/usr/lib"
11768 need_lib_prefix=no
11769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11770 case $host_os in
11771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11772 *) need_version=no ;;
11773 esac
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11778 case $host_os in
11779 openbsd2.[89] | openbsd2.[89].*)
11780 shlibpath_overrides_runpath=no
11783 shlibpath_overrides_runpath=yes
11785 esac
11786 else
11787 shlibpath_overrides_runpath=yes
11791 os2*)
11792 libname_spec='$name'
11793 shrext_cmds=".dll"
11794 need_lib_prefix=no
11795 library_names_spec='$libname${shared_ext} $libname.a'
11796 dynamic_linker='OS/2 ld.exe'
11797 shlibpath_var=LIBPATH
11800 osf3* | osf4* | osf5*)
11801 version_type=osf
11802 need_lib_prefix=no
11803 need_version=no
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11811 rdos*)
11812 dynamic_linker=no
11815 solaris*)
11816 version_type=linux
11817 need_lib_prefix=no
11818 need_version=no
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 shlibpath_overrides_runpath=yes
11823 hardcode_into_libs=yes
11824 # ldd complains unless libraries are executable
11825 postinstall_cmds='chmod +x $lib'
11828 sunos4*)
11829 version_type=sunos
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 if test "$with_gnu_ld" = yes; then
11835 need_lib_prefix=no
11837 need_version=yes
11840 sysv4 | sysv4.3*)
11841 version_type=linux
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 case $host_vendor in
11846 sni)
11847 shlibpath_overrides_runpath=no
11848 need_lib_prefix=no
11849 runpath_var=LD_RUN_PATH
11851 siemens)
11852 need_lib_prefix=no
11854 motorola)
11855 need_lib_prefix=no
11856 need_version=no
11857 shlibpath_overrides_runpath=no
11858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11860 esac
11863 sysv4*MP*)
11864 if test -d /usr/nec ;then
11865 version_type=linux
11866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11867 soname_spec='$libname${shared_ext}.$major'
11868 shlibpath_var=LD_LIBRARY_PATH
11872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11873 version_type=freebsd-elf
11874 need_lib_prefix=no
11875 need_version=no
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 shlibpath_overrides_runpath=yes
11880 hardcode_into_libs=yes
11881 if test "$with_gnu_ld" = yes; then
11882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11883 else
11884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11885 case $host_os in
11886 sco3.2v5*)
11887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11889 esac
11891 sys_lib_dlsearch_path_spec='/usr/lib'
11894 tpf*)
11895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11896 version_type=linux
11897 need_lib_prefix=no
11898 need_version=no
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=no
11902 hardcode_into_libs=yes
11905 uts4*)
11906 version_type=linux
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11912 # Shared libraries for VwWorks, >= 7 only at this stage
11913 # and (fpic) still incompatible with "large" code models
11914 # in a few configurations. Only for RTP mode in any case,
11915 # and upon explicit request at configure time.
11916 vxworks7*)
11917 dynamic_linker=no
11918 case ${with_multisubdir}-${enable_shared} in
11919 *large*)
11921 *mrtp*-yes)
11922 version_type=linux
11923 need_lib_prefix=no
11924 need_version=no
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11926 soname_spec='${libname}${release}${shared_ext}$major'
11927 dynamic_linker="$host_os module_loader"
11929 esac
11932 dynamic_linker=no
11934 esac
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11936 $as_echo "$dynamic_linker" >&6; }
11937 test "$dynamic_linker" = no && can_build_shared=no
11939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11940 if test "$GCC" = yes; then
11941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11944 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11947 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11948 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12043 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12044 hardcode_action=
12045 if test -n "$hardcode_libdir_flag_spec" ||
12046 test -n "$runpath_var" ||
12047 test "X$hardcode_automatic" = "Xyes" ; then
12049 # We can hardcode non-existent directories.
12050 if test "$hardcode_direct" != no &&
12051 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12052 # have to relink, otherwise we might link with an installed library
12053 # when we should be linking with a yet-to-be-installed one
12054 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12055 test "$hardcode_minus_L" != no; then
12056 # Linking always hardcodes the temporary library directory.
12057 hardcode_action=relink
12058 else
12059 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12060 hardcode_action=immediate
12062 else
12063 # We cannot hardcode anything, or else we can only hardcode existing
12064 # directories.
12065 hardcode_action=unsupported
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12068 $as_echo "$hardcode_action" >&6; }
12070 if test "$hardcode_action" = relink ||
12071 test "$inherit_rpath" = yes; then
12072 # Fast installation is not supported
12073 enable_fast_install=no
12074 elif test "$shlibpath_overrides_runpath" = yes ||
12075 test "$enable_shared" = no; then
12076 # Fast installation is not necessary
12077 enable_fast_install=needless
12085 if test "x$enable_dlopen" != xyes; then
12086 enable_dlopen=unknown
12087 enable_dlopen_self=unknown
12088 enable_dlopen_self_static=unknown
12089 else
12090 lt_cv_dlopen=no
12091 lt_cv_dlopen_libs=
12093 case $host_os in
12094 beos*)
12095 lt_cv_dlopen="load_add_on"
12096 lt_cv_dlopen_libs=
12097 lt_cv_dlopen_self=yes
12100 mingw* | pw32* | cegcc*)
12101 lt_cv_dlopen="LoadLibrary"
12102 lt_cv_dlopen_libs=
12105 cygwin*)
12106 lt_cv_dlopen="dlopen"
12107 lt_cv_dlopen_libs=
12110 darwin*)
12111 # if libdl is installed we need to link against it
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12113 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12114 if ${ac_cv_lib_dl_dlopen+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-ldl $LIBS"
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12122 /* Override any GCC internal prototype to avoid an error.
12123 Use char because int might match the return type of a GCC
12124 builtin and then its argument prototype would still apply. */
12125 #ifdef __cplusplus
12126 extern "C"
12127 #endif
12128 char dlopen ();
12130 main ()
12132 return dlopen ();
12134 return 0;
12136 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"; then :
12138 ac_cv_lib_dl_dlopen=yes
12139 else
12140 ac_cv_lib_dl_dlopen=no
12142 rm -f core conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12144 LIBS=$ac_check_lib_save_LIBS
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12147 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12148 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12149 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12150 else
12152 lt_cv_dlopen="dyld"
12153 lt_cv_dlopen_libs=
12154 lt_cv_dlopen_self=yes
12161 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12162 if test "x$ac_cv_func_shl_load" = xyes; then :
12163 lt_cv_dlopen="shl_load"
12164 else
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12166 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12167 if ${ac_cv_lib_dld_shl_load+:} false; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-ldld $LIBS"
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178 #ifdef __cplusplus
12179 extern "C"
12180 #endif
12181 char shl_load ();
12183 main ()
12185 return shl_load ();
12187 return 0;
12189 _ACEOF
12190 if ac_fn_c_try_link "$LINENO"; then :
12191 ac_cv_lib_dld_shl_load=yes
12192 else
12193 ac_cv_lib_dld_shl_load=no
12195 rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12200 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12201 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12202 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12203 else
12204 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12205 if test "x$ac_cv_func_dlopen" = xyes; then :
12206 lt_cv_dlopen="dlopen"
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12209 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12210 if ${ac_cv_lib_dl_dlopen+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-ldl $LIBS"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char dlopen ();
12226 main ()
12228 return dlopen ();
12230 return 0;
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_lib_dl_dlopen=yes
12235 else
12236 ac_cv_lib_dl_dlopen=no
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12244 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12246 else
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12248 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12249 if ${ac_cv_lib_svld_dlopen+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-lsvld $LIBS"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 char dlopen ();
12265 main ()
12267 return dlopen ();
12269 return 0;
12271 _ACEOF
12272 if ac_fn_c_try_link "$LINENO"; then :
12273 ac_cv_lib_svld_dlopen=yes
12274 else
12275 ac_cv_lib_svld_dlopen=no
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12282 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12283 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12287 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12288 if ${ac_cv_lib_dld_dld_link+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-ldld $LIBS"
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char dld_link ();
12304 main ()
12306 return dld_link ();
12308 return 0;
12310 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"; then :
12312 ac_cv_lib_dld_dld_link=yes
12313 else
12314 ac_cv_lib_dld_dld_link=no
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12321 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12322 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12323 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12342 esac
12344 if test "x$lt_cv_dlopen" != xno; then
12345 enable_dlopen=yes
12346 else
12347 enable_dlopen=no
12350 case $lt_cv_dlopen in
12351 dlopen)
12352 save_CPPFLAGS="$CPPFLAGS"
12353 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12355 save_LDFLAGS="$LDFLAGS"
12356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12358 save_LIBS="$LIBS"
12359 LIBS="$lt_cv_dlopen_libs $LIBS"
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12362 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12363 if ${lt_cv_dlopen_self+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 if test "$cross_compiling" = yes; then :
12367 lt_cv_dlopen_self=cross
12368 else
12369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12370 lt_status=$lt_dlunknown
12371 cat > conftest.$ac_ext <<_LT_EOF
12372 #line 12372 "configure"
12373 #include "confdefs.h"
12375 #if HAVE_DLFCN_H
12376 #include <dlfcn.h>
12377 #endif
12379 #include <stdio.h>
12381 #ifdef RTLD_GLOBAL
12382 # define LT_DLGLOBAL RTLD_GLOBAL
12383 #else
12384 # ifdef DL_GLOBAL
12385 # define LT_DLGLOBAL DL_GLOBAL
12386 # else
12387 # define LT_DLGLOBAL 0
12388 # endif
12389 #endif
12391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12392 find out it does not work in some platform. */
12393 #ifndef LT_DLLAZY_OR_NOW
12394 # ifdef RTLD_LAZY
12395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12396 # else
12397 # ifdef DL_LAZY
12398 # define LT_DLLAZY_OR_NOW DL_LAZY
12399 # else
12400 # ifdef RTLD_NOW
12401 # define LT_DLLAZY_OR_NOW RTLD_NOW
12402 # else
12403 # ifdef DL_NOW
12404 # define LT_DLLAZY_OR_NOW DL_NOW
12405 # else
12406 # define LT_DLLAZY_OR_NOW 0
12407 # endif
12408 # endif
12409 # endif
12410 # endif
12411 #endif
12413 /* When -fvisbility=hidden is used, assume the code has been annotated
12414 correspondingly for the symbols needed. */
12415 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12416 void fnord () __attribute__((visibility("default")));
12417 #endif
12419 void fnord () { int i=42; }
12420 int main ()
12422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12423 int status = $lt_dlunknown;
12425 if (self)
12427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12428 else
12430 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12431 else puts (dlerror ());
12433 /* dlclose (self); */
12435 else
12436 puts (dlerror ());
12438 return status;
12440 _LT_EOF
12441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12442 (eval $ac_link) 2>&5
12443 ac_status=$?
12444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12446 (./conftest; exit; ) >&5 2>/dev/null
12447 lt_status=$?
12448 case x$lt_status in
12449 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12450 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12451 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12452 esac
12453 else :
12454 # compilation failed
12455 lt_cv_dlopen_self=no
12458 rm -fr conftest*
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12463 $as_echo "$lt_cv_dlopen_self" >&6; }
12465 if test "x$lt_cv_dlopen_self" = xyes; then
12466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12468 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12469 if ${lt_cv_dlopen_self_static+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test "$cross_compiling" = yes; then :
12473 lt_cv_dlopen_self_static=cross
12474 else
12475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12476 lt_status=$lt_dlunknown
12477 cat > conftest.$ac_ext <<_LT_EOF
12478 #line 12478 "configure"
12479 #include "confdefs.h"
12481 #if HAVE_DLFCN_H
12482 #include <dlfcn.h>
12483 #endif
12485 #include <stdio.h>
12487 #ifdef RTLD_GLOBAL
12488 # define LT_DLGLOBAL RTLD_GLOBAL
12489 #else
12490 # ifdef DL_GLOBAL
12491 # define LT_DLGLOBAL DL_GLOBAL
12492 # else
12493 # define LT_DLGLOBAL 0
12494 # endif
12495 #endif
12497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12498 find out it does not work in some platform. */
12499 #ifndef LT_DLLAZY_OR_NOW
12500 # ifdef RTLD_LAZY
12501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12502 # else
12503 # ifdef DL_LAZY
12504 # define LT_DLLAZY_OR_NOW DL_LAZY
12505 # else
12506 # ifdef RTLD_NOW
12507 # define LT_DLLAZY_OR_NOW RTLD_NOW
12508 # else
12509 # ifdef DL_NOW
12510 # define LT_DLLAZY_OR_NOW DL_NOW
12511 # else
12512 # define LT_DLLAZY_OR_NOW 0
12513 # endif
12514 # endif
12515 # endif
12516 # endif
12517 #endif
12519 /* When -fvisbility=hidden is used, assume the code has been annotated
12520 correspondingly for the symbols needed. */
12521 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12522 void fnord () __attribute__((visibility("default")));
12523 #endif
12525 void fnord () { int i=42; }
12526 int main ()
12528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12529 int status = $lt_dlunknown;
12531 if (self)
12533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12534 else
12536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12537 else puts (dlerror ());
12539 /* dlclose (self); */
12541 else
12542 puts (dlerror ());
12544 return status;
12546 _LT_EOF
12547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12548 (eval $ac_link) 2>&5
12549 ac_status=$?
12550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12551 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12552 (./conftest; exit; ) >&5 2>/dev/null
12553 lt_status=$?
12554 case x$lt_status in
12555 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12556 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12557 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12558 esac
12559 else :
12560 # compilation failed
12561 lt_cv_dlopen_self_static=no
12564 rm -fr conftest*
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12569 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12572 CPPFLAGS="$save_CPPFLAGS"
12573 LDFLAGS="$save_LDFLAGS"
12574 LIBS="$save_LIBS"
12576 esac
12578 case $lt_cv_dlopen_self in
12579 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12580 *) enable_dlopen_self=unknown ;;
12581 esac
12583 case $lt_cv_dlopen_self_static in
12584 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12585 *) enable_dlopen_self_static=unknown ;;
12586 esac
12605 striplib=
12606 old_striplib=
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12608 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12609 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12610 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12611 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613 $as_echo "yes" >&6; }
12614 else
12615 # FIXME - insert some real tests, host_os isn't really good enough
12616 case $host_os in
12617 darwin*)
12618 if test -n "$STRIP" ; then
12619 striplib="$STRIP -x"
12620 old_striplib="$STRIP -S"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12623 else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12632 esac
12646 # Report which library types will actually be built
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12648 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12650 $as_echo "$can_build_shared" >&6; }
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12653 $as_echo_n "checking whether to build shared libraries... " >&6; }
12654 test "$can_build_shared" = "no" && enable_shared=no
12656 # On AIX, shared libraries and static libraries use the same namespace, and
12657 # are all built from PIC.
12658 case $host_os in
12659 aix3*)
12660 test "$enable_shared" = yes && enable_static=no
12661 if test -n "$RANLIB"; then
12662 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12663 postinstall_cmds='$RANLIB $lib'
12667 aix[4-9]*)
12668 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12669 test "$enable_shared" = yes && enable_static=no
12672 esac
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12674 $as_echo "$enable_shared" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12677 $as_echo_n "checking whether to build static libraries... " >&6; }
12678 # Make sure either enable_shared or enable_static is yes.
12679 test "$enable_shared" = yes || enable_static=yes
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12681 $as_echo "$enable_static" >&6; }
12687 ac_ext=c
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693 CC="$lt_save_CC"
12695 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12696 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12697 (test "X$CXX" != "Xg++"))) ; then
12698 ac_ext=cpp
12699 ac_cpp='$CXXCPP $CPPFLAGS'
12700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12704 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12705 if test -z "$CXXCPP"; then
12706 if ${ac_cv_prog_CXXCPP+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 # Double quotes because CXXCPP needs to be expanded
12710 for CXXCPP in "$CXX -E" "/lib/cpp"
12712 ac_preproc_ok=false
12713 for ac_cxx_preproc_warn_flag in '' yes
12715 # Use a header file that comes with gcc, so configuring glibc
12716 # with a fresh cross-compiler works.
12717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12718 # <limits.h> exists even on freestanding compilers.
12719 # On the NeXT, cc -E runs the code through the compiler's parser,
12720 # not just through cpp. "Syntax error" is here to catch this case.
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 #ifdef __STDC__
12724 # include <limits.h>
12725 #else
12726 # include <assert.h>
12727 #endif
12728 Syntax error
12729 _ACEOF
12730 if ac_fn_cxx_try_cpp "$LINENO"; then :
12732 else
12733 # Broken: fails on valid input.
12734 continue
12736 rm -f conftest.err conftest.i conftest.$ac_ext
12738 # OK, works on sane cases. Now check whether nonexistent headers
12739 # can be detected and how.
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742 #include <ac_nonexistent.h>
12743 _ACEOF
12744 if ac_fn_cxx_try_cpp "$LINENO"; then :
12745 # Broken: success on invalid input.
12746 continue
12747 else
12748 # Passes both tests.
12749 ac_preproc_ok=:
12750 break
12752 rm -f conftest.err conftest.i conftest.$ac_ext
12754 done
12755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12756 rm -f conftest.i conftest.err conftest.$ac_ext
12757 if $ac_preproc_ok; then :
12758 break
12761 done
12762 ac_cv_prog_CXXCPP=$CXXCPP
12765 CXXCPP=$ac_cv_prog_CXXCPP
12766 else
12767 ac_cv_prog_CXXCPP=$CXXCPP
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12770 $as_echo "$CXXCPP" >&6; }
12771 ac_preproc_ok=false
12772 for ac_cxx_preproc_warn_flag in '' yes
12774 # Use a header file that comes with gcc, so configuring glibc
12775 # with a fresh cross-compiler works.
12776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12777 # <limits.h> exists even on freestanding compilers.
12778 # On the NeXT, cc -E runs the code through the compiler's parser,
12779 # not just through cpp. "Syntax error" is here to catch this case.
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #ifdef __STDC__
12783 # include <limits.h>
12784 #else
12785 # include <assert.h>
12786 #endif
12787 Syntax error
12788 _ACEOF
12789 if ac_fn_cxx_try_cpp "$LINENO"; then :
12791 else
12792 # Broken: fails on valid input.
12793 continue
12795 rm -f conftest.err conftest.i conftest.$ac_ext
12797 # OK, works on sane cases. Now check whether nonexistent headers
12798 # can be detected and how.
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 #include <ac_nonexistent.h>
12802 _ACEOF
12803 if ac_fn_cxx_try_cpp "$LINENO"; then :
12804 # Broken: success on invalid input.
12805 continue
12806 else
12807 # Passes both tests.
12808 ac_preproc_ok=:
12809 break
12811 rm -f conftest.err conftest.i conftest.$ac_ext
12813 done
12814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12815 rm -f conftest.i conftest.err conftest.$ac_ext
12816 if $ac_preproc_ok; then :
12818 else
12819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12821 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12822 See \`config.log' for more details" "$LINENO" 5; }
12825 ac_ext=c
12826 ac_cpp='$CPP $CPPFLAGS'
12827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12831 else
12832 _lt_caught_CXX_error=yes
12835 ac_ext=cpp
12836 ac_cpp='$CXXCPP $CPPFLAGS'
12837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12841 archive_cmds_need_lc_CXX=no
12842 allow_undefined_flag_CXX=
12843 always_export_symbols_CXX=no
12844 archive_expsym_cmds_CXX=
12845 compiler_needs_object_CXX=no
12846 export_dynamic_flag_spec_CXX=
12847 hardcode_direct_CXX=no
12848 hardcode_direct_absolute_CXX=no
12849 hardcode_libdir_flag_spec_CXX=
12850 hardcode_libdir_flag_spec_ld_CXX=
12851 hardcode_libdir_separator_CXX=
12852 hardcode_minus_L_CXX=no
12853 hardcode_shlibpath_var_CXX=unsupported
12854 hardcode_automatic_CXX=no
12855 inherit_rpath_CXX=no
12856 module_cmds_CXX=
12857 module_expsym_cmds_CXX=
12858 link_all_deplibs_CXX=unknown
12859 old_archive_cmds_CXX=$old_archive_cmds
12860 reload_flag_CXX=$reload_flag
12861 reload_cmds_CXX=$reload_cmds
12862 no_undefined_flag_CXX=
12863 whole_archive_flag_spec_CXX=
12864 enable_shared_with_static_runtimes_CXX=no
12866 # Source file extension for C++ test sources.
12867 ac_ext=cpp
12869 # Object file extension for compiled C++ test sources.
12870 objext=o
12871 objext_CXX=$objext
12873 # No sense in running all these tests if we already determined that
12874 # the CXX compiler isn't working. Some variables (like enable_shared)
12875 # are currently assumed to apply to all compilers on this platform,
12876 # and will be corrupted by setting them based on a non-working compiler.
12877 if test "$_lt_caught_CXX_error" != yes; then
12878 # Code to be used in simple compile tests
12879 lt_simple_compile_test_code="int some_variable = 0;"
12881 # Code to be used in simple link tests
12882 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12891 # If no C compiler was specified, use CC.
12892 LTCC=${LTCC-"$CC"}
12894 # If no C compiler flags were specified, use CFLAGS.
12895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12897 # Allow CC to be a program name with arguments.
12898 compiler=$CC
12901 # save warnings/boilerplate of simple test code
12902 ac_outfile=conftest.$ac_objext
12903 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12905 _lt_compiler_boilerplate=`cat conftest.err`
12906 $RM conftest*
12908 ac_outfile=conftest.$ac_objext
12909 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12911 _lt_linker_boilerplate=`cat conftest.err`
12912 $RM -r conftest*
12915 # Allow CC to be a program name with arguments.
12916 lt_save_CC=$CC
12917 lt_save_LD=$LD
12918 lt_save_GCC=$GCC
12919 GCC=$GXX
12920 lt_save_with_gnu_ld=$with_gnu_ld
12921 lt_save_path_LD=$lt_cv_path_LD
12922 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12923 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12924 else
12925 $as_unset lt_cv_prog_gnu_ld
12927 if test -n "${lt_cv_path_LDCXX+set}"; then
12928 lt_cv_path_LD=$lt_cv_path_LDCXX
12929 else
12930 $as_unset lt_cv_path_LD
12932 test -z "${LDCXX+set}" || LD=$LDCXX
12933 CC=${CXX-"c++"}
12934 compiler=$CC
12935 compiler_CXX=$CC
12936 for cc_temp in $compiler""; do
12937 case $cc_temp in
12938 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12939 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12940 \-*) ;;
12941 *) break;;
12942 esac
12943 done
12944 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12947 if test -n "$compiler"; then
12948 # We don't want -fno-exception when compiling C++ code, so set the
12949 # no_builtin_flag separately
12950 if test "$GXX" = yes; then
12951 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12952 else
12953 lt_prog_compiler_no_builtin_flag_CXX=
12956 if test "$GXX" = yes; then
12957 # Set up default GNU C++ configuration
12961 # Check whether --with-gnu-ld was given.
12962 if test "${with_gnu_ld+set}" = set; then :
12963 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12964 else
12965 with_gnu_ld=no
12968 ac_prog=ld
12969 if test "$GCC" = yes; then
12970 # Check if gcc -print-prog-name=ld gives a path.
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12972 $as_echo_n "checking for ld used by $CC... " >&6; }
12973 case $host in
12974 *-*-mingw*)
12975 # gcc leaves a trailing carriage return which upsets mingw
12976 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12978 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12979 esac
12980 case $ac_prog in
12981 # Accept absolute paths.
12982 [\\/]* | ?:[\\/]*)
12983 re_direlt='/[^/][^/]*/\.\./'
12984 # Canonicalize the pathname of ld
12985 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12986 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12987 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12988 done
12989 test -z "$LD" && LD="$ac_prog"
12992 # If it fails, then pretend we aren't using GCC.
12993 ac_prog=ld
12996 # If it is relative, then search for the first ld in PATH.
12997 with_gnu_ld=unknown
12999 esac
13000 elif test "$with_gnu_ld" = yes; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13002 $as_echo_n "checking for GNU ld... " >&6; }
13003 else
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13005 $as_echo_n "checking for non-GNU ld... " >&6; }
13007 if ${lt_cv_path_LD+:} false; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 if test -z "$LD"; then
13011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13012 for ac_dir in $PATH; do
13013 IFS="$lt_save_ifs"
13014 test -z "$ac_dir" && ac_dir=.
13015 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13016 lt_cv_path_LD="$ac_dir/$ac_prog"
13017 # Check to see if the program is GNU ld. I'd rather use --version,
13018 # but apparently some variants of GNU ld only accept -v.
13019 # Break only if it was the GNU/non-GNU ld that we prefer.
13020 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13021 *GNU* | *'with BFD'*)
13022 test "$with_gnu_ld" != no && break
13025 test "$with_gnu_ld" != yes && break
13027 esac
13029 done
13030 IFS="$lt_save_ifs"
13031 else
13032 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13036 LD="$lt_cv_path_LD"
13037 if test -n "$LD"; then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13039 $as_echo "$LD" >&6; }
13040 else
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13044 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13046 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13047 if ${lt_cv_prog_gnu_ld+:} false; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13051 case `$LD -v 2>&1 </dev/null` in
13052 *GNU* | *'with BFD'*)
13053 lt_cv_prog_gnu_ld=yes
13056 lt_cv_prog_gnu_ld=no
13058 esac
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13061 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13062 with_gnu_ld=$lt_cv_prog_gnu_ld
13070 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13071 # archiving commands below assume that GNU ld is being used.
13072 if test "$with_gnu_ld" = yes; then
13073 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13074 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'
13076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13077 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13079 # If archive_cmds runs LD, not CC, wlarc should be empty
13080 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13081 # investigate it a little bit more. (MM)
13082 wlarc='${wl}'
13084 # ancient GNU ld didn't support --whole-archive et. al.
13085 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13086 $GREP 'no-whole-archive' > /dev/null; then
13087 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13088 else
13089 whole_archive_flag_spec_CXX=
13091 else
13092 with_gnu_ld=no
13093 wlarc=
13095 # A generic and very simple default shared library creation
13096 # command for GNU C++ for the case where it uses the native
13097 # linker, instead of GNU ld. If possible, this setting should
13098 # overridden to take advantage of the native linker features on
13099 # the platform it is being used on.
13100 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13103 # Commands to make compiler produce verbose output that lists
13104 # what "hidden" libraries, object files and flags are used when
13105 # linking a shared library.
13106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13108 else
13109 GXX=no
13110 with_gnu_ld=no
13111 wlarc=
13114 # PORTME: fill in a description of your system's C++ link characteristics
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13116 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13117 ld_shlibs_CXX=yes
13118 case $host_os in
13119 aix3*)
13120 # FIXME: insert proper C++ library support
13121 ld_shlibs_CXX=no
13123 aix[4-9]*)
13124 if test "$host_cpu" = ia64; then
13125 # On IA64, the linker does run time linking by default, so we don't
13126 # have to do anything special.
13127 aix_use_runtimelinking=no
13128 exp_sym_flag='-Bexport'
13129 no_entry_flag=""
13130 else
13131 aix_use_runtimelinking=no
13133 # Test if we are trying to use run time linking or normal
13134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13135 # need to do runtime linking.
13136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13137 for ld_flag in $LDFLAGS; do
13138 case $ld_flag in
13139 *-brtl*)
13140 aix_use_runtimelinking=yes
13141 break
13143 esac
13144 done
13146 esac
13148 exp_sym_flag='-bexport'
13149 no_entry_flag='-bnoentry'
13152 # When large executables or shared objects are built, AIX ld can
13153 # have problems creating the table of contents. If linking a library
13154 # or program results in "error TOC overflow" add -mminimal-toc to
13155 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13156 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13158 archive_cmds_CXX=''
13159 hardcode_direct_CXX=yes
13160 hardcode_direct_absolute_CXX=yes
13161 hardcode_libdir_separator_CXX=':'
13162 link_all_deplibs_CXX=yes
13163 file_list_spec_CXX='${wl}-f,'
13165 if test "$GXX" = yes; then
13166 case $host_os in aix4.[012]|aix4.[012].*)
13167 # We only want to do this on AIX 4.2 and lower, the check
13168 # below for broken collect2 doesn't work under 4.3+
13169 collect2name=`${CC} -print-prog-name=collect2`
13170 if test -f "$collect2name" &&
13171 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13172 then
13173 # We have reworked collect2
13175 else
13176 # We have old collect2
13177 hardcode_direct_CXX=unsupported
13178 # It fails to find uninstalled libraries when the uninstalled
13179 # path is not listed in the libpath. Setting hardcode_minus_L
13180 # to unsupported forces relinking
13181 hardcode_minus_L_CXX=yes
13182 hardcode_libdir_flag_spec_CXX='-L$libdir'
13183 hardcode_libdir_separator_CXX=
13185 esac
13186 shared_flag='-shared'
13187 if test "$aix_use_runtimelinking" = yes; then
13188 shared_flag="$shared_flag "'${wl}-G'
13190 else
13191 # not using gcc
13192 if test "$host_cpu" = ia64; then
13193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13194 # chokes on -Wl,-G. The following line is correct:
13195 shared_flag='-G'
13196 else
13197 if test "$aix_use_runtimelinking" = yes; then
13198 shared_flag='${wl}-G'
13199 else
13200 shared_flag='${wl}-bM:SRE'
13205 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13206 # It seems that -bexpall does not export symbols beginning with
13207 # underscore (_), so it is better to generate a list of symbols to
13208 # export.
13209 always_export_symbols_CXX=yes
13210 if test "$aix_use_runtimelinking" = yes; then
13211 # Warning - without using the other runtime loading flags (-brtl),
13212 # -berok will link without error, but may produce a broken library.
13213 allow_undefined_flag_CXX='-berok'
13214 # Determine the default libpath from the value encoded in an empty
13215 # executable.
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13220 main ()
13224 return 0;
13226 _ACEOF
13227 if ac_fn_cxx_try_link "$LINENO"; then :
13229 lt_aix_libpath_sed='
13230 /Import File Strings/,/^$/ {
13231 /^0/ {
13232 s/^0 *\(.*\)$/\1/
13236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13237 # Check for a 64-bit object if we didn't find anything.
13238 if test -z "$aix_libpath"; then
13239 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13242 rm -f core conftest.err conftest.$ac_objext \
13243 conftest$ac_exeext conftest.$ac_ext
13244 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13246 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13248 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"
13249 else
13250 if test "$host_cpu" = ia64; then
13251 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13252 allow_undefined_flag_CXX="-z nodefs"
13253 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"
13254 else
13255 # Determine the default libpath from the value encoded in an
13256 # empty executable.
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13261 main ()
13265 return 0;
13267 _ACEOF
13268 if ac_fn_cxx_try_link "$LINENO"; then :
13270 lt_aix_libpath_sed='
13271 /Import File Strings/,/^$/ {
13272 /^0/ {
13273 s/^0 *\(.*\)$/\1/
13277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13278 # Check for a 64-bit object if we didn't find anything.
13279 if test -z "$aix_libpath"; then
13280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13283 rm -f core conftest.err conftest.$ac_objext \
13284 conftest$ac_exeext conftest.$ac_ext
13285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13288 # Warning - without using the other run time loading flags,
13289 # -berok will link without error, but may produce a broken library.
13290 no_undefined_flag_CXX=' ${wl}-bernotok'
13291 allow_undefined_flag_CXX=' ${wl}-berok'
13292 if test "$with_gnu_ld" = yes; then
13293 # We only use this code for GNU lds that support --whole-archive.
13294 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13295 else
13296 # Exported symbols can be pulled into shared objects from archives
13297 whole_archive_flag_spec_CXX='$convenience'
13299 archive_cmds_need_lc_CXX=yes
13300 # This is similar to how AIX traditionally builds its shared
13301 # libraries.
13302 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'
13307 beos*)
13308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13309 allow_undefined_flag_CXX=unsupported
13310 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13311 # support --undefined. This deserves some investigation. FIXME
13312 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13313 else
13314 ld_shlibs_CXX=no
13318 chorus*)
13319 case $cc_basename in
13321 # FIXME: insert proper C++ library support
13322 ld_shlibs_CXX=no
13324 esac
13327 cygwin* | mingw* | pw32* | cegcc*)
13328 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13329 # as there is no search path for DLLs.
13330 hardcode_libdir_flag_spec_CXX='-L$libdir'
13331 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13332 allow_undefined_flag_CXX=unsupported
13333 always_export_symbols_CXX=no
13334 enable_shared_with_static_runtimes_CXX=yes
13336 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13337 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'
13338 # If the export-symbols file already is a .def file (1st line
13339 # is EXPORTS), use it as is; otherwise, prepend...
13340 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13341 cp $export_symbols $output_objdir/$soname.def;
13342 else
13343 echo EXPORTS > $output_objdir/$soname.def;
13344 cat $export_symbols >> $output_objdir/$soname.def;
13346 $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'
13347 else
13348 ld_shlibs_CXX=no
13351 darwin* | rhapsody*)
13355 # Publish an arg to allow the user to select that Darwin host (and target)
13356 # libraries should be given install-names like @rpath/libfoo.dylib. This
13357 # requires that the user of the library then adds an 'rpath' to the DSO that
13358 # needs access.
13359 # NOTE: there are defaults below, for systems that support rpaths. The person
13360 # configuring can override the defaults for any system version that supports
13361 # them - they are, however, forced off for system versions without support.
13362 # Check whether --enable-darwin-at-rpath was given.
13363 if test "${enable_darwin_at_rpath+set}" = set; then :
13364 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13365 # This is not supported before macOS 10.5 / Darwin9.
13366 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13367 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13369 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13370 enable_darwin_at_rpath=no
13372 esac
13374 else
13375 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13376 # As above, before 10.5 / Darwin9 this does not work.
13377 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13378 enable_darwin_at_rpath=no
13381 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13382 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13383 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13384 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13386 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13387 enable_darwin_at_rpath=yes
13389 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13390 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13392 esac
13397 archive_cmds_need_lc_CXX=no
13398 hardcode_direct_CXX=no
13399 hardcode_automatic_CXX=yes
13400 hardcode_shlibpath_var_CXX=unsupported
13401 if test "$lt_cv_ld_force_load" = "yes"; then
13402 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\"`'
13403 else
13404 whole_archive_flag_spec_CXX=''
13406 link_all_deplibs_CXX=yes
13407 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13408 case $cc_basename in
13409 ifort*) _lt_dar_can_shared=yes ;;
13410 *) _lt_dar_can_shared=$GCC ;;
13411 esac
13412 if test "$_lt_dar_can_shared" = "yes"; then
13413 output_verbose_link_cmd=func_echo_all
13414 _lt_install_name='\$rpath/\$soname'
13415 if test "x$enable_darwin_at_rpath" = "xyes"; then
13416 _lt_install_name='@rpath/\$soname'
13418 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13419 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13420 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13421 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}"
13422 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13423 _lt_install_name='\$rpath/\$soname'
13424 if test "x$enable_darwin_at_rpath" = "xyes"; then
13425 _lt_install_name='@rpath/\$soname'
13427 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
13428 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}"
13431 else
13432 ld_shlibs_CXX=no
13437 dgux*)
13438 case $cc_basename in
13439 ec++*)
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13443 ghcx*)
13444 # Green Hills C++ Compiler
13445 # FIXME: insert proper C++ library support
13446 ld_shlibs_CXX=no
13449 # FIXME: insert proper C++ library support
13450 ld_shlibs_CXX=no
13452 esac
13455 freebsd2.*)
13456 # C++ shared libraries reported to be fairly broken before
13457 # switch to ELF
13458 ld_shlibs_CXX=no
13461 freebsd-elf*)
13462 archive_cmds_need_lc_CXX=no
13465 freebsd* | dragonfly*)
13466 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13467 # conventions
13468 ld_shlibs_CXX=yes
13471 gnu*)
13474 haiku*)
13475 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13476 link_all_deplibs_CXX=yes
13479 hpux9*)
13480 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13481 hardcode_libdir_separator_CXX=:
13482 export_dynamic_flag_spec_CXX='${wl}-E'
13483 hardcode_direct_CXX=yes
13484 hardcode_minus_L_CXX=yes # Not in the search PATH,
13485 # but as the default
13486 # location of the library.
13488 case $cc_basename in
13489 CC*)
13490 # FIXME: insert proper C++ library support
13491 ld_shlibs_CXX=no
13493 aCC*)
13494 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'
13495 # Commands to make compiler produce verbose output that lists
13496 # what "hidden" libraries, object files and flags are used when
13497 # linking a shared library.
13499 # There doesn't appear to be a way to prevent this compiler from
13500 # explicitly linking system object files so we need to strip them
13501 # from the output so that they don't get included in the library
13502 # dependencies.
13503 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"'
13506 if test "$GXX" = yes; then
13507 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'
13508 else
13509 # FIXME: insert proper C++ library support
13510 ld_shlibs_CXX=no
13513 esac
13516 hpux10*|hpux11*)
13517 if test $with_gnu_ld = no; then
13518 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13519 hardcode_libdir_separator_CXX=:
13521 case $host_cpu in
13522 hppa*64*|ia64*)
13525 export_dynamic_flag_spec_CXX='${wl}-E'
13527 esac
13529 case $host_cpu in
13530 hppa*64*|ia64*)
13531 hardcode_direct_CXX=no
13532 hardcode_shlibpath_var_CXX=no
13535 hardcode_direct_CXX=yes
13536 hardcode_direct_absolute_CXX=yes
13537 hardcode_minus_L_CXX=yes # Not in the search PATH,
13538 # but as the default
13539 # location of the library.
13541 esac
13543 case $cc_basename in
13544 CC*)
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13548 aCC*)
13549 case $host_cpu in
13550 hppa*64*)
13551 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553 ia64*)
13554 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13557 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13559 esac
13560 # Commands to make compiler produce verbose output that lists
13561 # what "hidden" libraries, object files and flags are used when
13562 # linking a shared library.
13564 # There doesn't appear to be a way to prevent this compiler from
13565 # explicitly linking system object files so we need to strip them
13566 # from the output so that they don't get included in the library
13567 # dependencies.
13568 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"'
13571 if test "$GXX" = yes; then
13572 if test $with_gnu_ld = no; then
13573 case $host_cpu in
13574 hppa*64*)
13575 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13577 ia64*)
13578 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13581 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'
13583 esac
13585 else
13586 # FIXME: insert proper C++ library support
13587 ld_shlibs_CXX=no
13590 esac
13593 interix[3-9]*)
13594 hardcode_direct_CXX=no
13595 hardcode_shlibpath_var_CXX=no
13596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13597 export_dynamic_flag_spec_CXX='${wl}-E'
13598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13599 # Instead, shared libraries are loaded at an image base (0x10000000 by
13600 # default) and relocated if they conflict, which is a slow very memory
13601 # consuming and fragmenting process. To avoid this, we pick a random,
13602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13603 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13604 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'
13605 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'
13607 irix5* | irix6*)
13608 case $cc_basename in
13609 CC*)
13610 # SGI C++
13611 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'
13613 # Archives containing C++ object files must be created using
13614 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13615 # necessary to make sure instantiated templates are included
13616 # in the archive.
13617 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13620 if test "$GXX" = yes; then
13621 if test "$with_gnu_ld" = no; then
13622 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'
13623 else
13624 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'
13627 link_all_deplibs_CXX=yes
13629 esac
13630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13631 hardcode_libdir_separator_CXX=:
13632 inherit_rpath_CXX=yes
13635 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13636 case $cc_basename in
13637 KCC*)
13638 # Kuck and Associates, Inc. (KAI) C++ Compiler
13640 # KCC will only create a shared library if the output file
13641 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13642 # to its proper name (with version) after linking.
13643 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'
13644 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'
13645 # Commands to make compiler produce verbose output that lists
13646 # what "hidden" libraries, object files and flags are used when
13647 # linking a shared library.
13649 # There doesn't appear to be a way to prevent this compiler from
13650 # explicitly linking system object files so we need to strip them
13651 # from the output so that they don't get included in the library
13652 # dependencies.
13653 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"'
13655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13658 # Archives containing C++ object files must be created using
13659 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13660 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13662 icpc* | ecpc* )
13663 # Intel C++
13664 with_gnu_ld=yes
13665 # version 8.0 and above of icpc choke on multiply defined symbols
13666 # if we add $predep_objects and $postdep_objects, however 7.1 and
13667 # earlier do not add the objects themselves.
13668 case `$CC -V 2>&1` in
13669 *"Version 7."*)
13670 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13671 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'
13673 *) # Version 8.0 or newer
13674 tmp_idyn=
13675 case $host_cpu in
13676 ia64*) tmp_idyn=' -i_dynamic';;
13677 esac
13678 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13679 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'
13681 esac
13682 archive_cmds_need_lc_CXX=no
13683 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13684 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13685 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13687 pgCC* | pgcpp*)
13688 # Portland Group C++ compiler
13689 case `$CC -V` in
13690 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13691 prelink_cmds_CXX='tpldir=Template.dir~
13692 rm -rf $tpldir~
13693 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13694 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13695 old_archive_cmds_CXX='tpldir=Template.dir~
13696 rm -rf $tpldir~
13697 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13698 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13699 $RANLIB $oldlib'
13700 archive_cmds_CXX='tpldir=Template.dir~
13701 rm -rf $tpldir~
13702 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13703 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13704 archive_expsym_cmds_CXX='tpldir=Template.dir~
13705 rm -rf $tpldir~
13706 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13707 $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'
13709 *) # Version 6 and above use weak symbols
13710 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13711 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'
13713 esac
13715 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13717 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'
13719 cxx*)
13720 # Compaq C++
13721 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13722 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'
13724 runpath_var=LD_RUN_PATH
13725 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13726 hardcode_libdir_separator_CXX=:
13728 # Commands to make compiler produce verbose output that lists
13729 # what "hidden" libraries, object files and flags are used when
13730 # linking a shared library.
13732 # There doesn't appear to be a way to prevent this compiler from
13733 # explicitly linking system object files so we need to strip them
13734 # from the output so that they don't get included in the library
13735 # dependencies.
13736 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'
13738 xl* | mpixl* | bgxl*)
13739 # IBM XL 8.0 on PPC, with GNU ld
13740 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13741 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13742 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13743 if test "x$supports_anon_versioning" = xyes; then
13744 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13746 echo "local: *; };" >> $output_objdir/$libname.ver~
13747 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13751 case `$CC -V 2>&1 | sed 5q` in
13752 *Sun\ C*)
13753 # Sun C++ 5.9
13754 no_undefined_flag_CXX=' -zdefs'
13755 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13756 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'
13757 hardcode_libdir_flag_spec_CXX='-R$libdir'
13758 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'
13759 compiler_needs_object_CXX=yes
13761 # Not sure whether something based on
13762 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13763 # would be better.
13764 output_verbose_link_cmd='func_echo_all'
13766 # Archives containing C++ object files must be created using
13767 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13768 # necessary to make sure instantiated templates are included
13769 # in the archive.
13770 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13772 esac
13774 esac
13777 lynxos*)
13778 # FIXME: insert proper C++ library support
13779 ld_shlibs_CXX=no
13782 m88k*)
13783 # FIXME: insert proper C++ library support
13784 ld_shlibs_CXX=no
13787 mvs*)
13788 case $cc_basename in
13789 cxx*)
13790 # FIXME: insert proper C++ library support
13791 ld_shlibs_CXX=no
13794 # FIXME: insert proper C++ library support
13795 ld_shlibs_CXX=no
13797 esac
13800 netbsd*)
13801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13802 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13803 wlarc=
13804 hardcode_libdir_flag_spec_CXX='-R$libdir'
13805 hardcode_direct_CXX=yes
13806 hardcode_shlibpath_var_CXX=no
13808 # Workaround some broken pre-1.5 toolchains
13809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13812 *nto* | *qnx*)
13813 ld_shlibs_CXX=yes
13816 openbsd2*)
13817 # C++ shared libraries are fairly broken
13818 ld_shlibs_CXX=no
13821 openbsd*)
13822 if test -f /usr/libexec/ld.so; then
13823 hardcode_direct_CXX=yes
13824 hardcode_shlibpath_var_CXX=no
13825 hardcode_direct_absolute_CXX=yes
13826 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13829 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13830 export_dynamic_flag_spec_CXX='${wl}-E'
13831 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13833 output_verbose_link_cmd=func_echo_all
13834 else
13835 ld_shlibs_CXX=no
13839 osf3* | osf4* | osf5*)
13840 case $cc_basename in
13841 KCC*)
13842 # Kuck and Associates, Inc. (KAI) C++ Compiler
13844 # KCC will only create a shared library if the output file
13845 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13846 # to its proper name (with version) after linking.
13847 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'
13849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13850 hardcode_libdir_separator_CXX=:
13852 # Archives containing C++ object files must be created using
13853 # the KAI C++ compiler.
13854 case $host in
13855 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13856 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13857 esac
13859 RCC*)
13860 # Rational C++ 2.4.1
13861 # FIXME: insert proper C++ library support
13862 ld_shlibs_CXX=no
13864 cxx*)
13865 case $host in
13866 osf3*)
13867 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13868 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'
13869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13872 allow_undefined_flag_CXX=' -expect_unresolved \*'
13873 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'
13874 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13875 echo "-hidden">> $lib.exp~
13876 $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~
13877 $RM $lib.exp'
13878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13880 esac
13882 hardcode_libdir_separator_CXX=:
13884 # Commands to make compiler produce verbose output that lists
13885 # what "hidden" libraries, object files and flags are used when
13886 # linking a shared library.
13888 # There doesn't appear to be a way to prevent this compiler from
13889 # explicitly linking system object files so we need to strip them
13890 # from the output so that they don't get included in the library
13891 # dependencies.
13892 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"'
13895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13896 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13897 case $host in
13898 osf3*)
13899 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'
13902 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'
13904 esac
13906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13907 hardcode_libdir_separator_CXX=:
13909 # Commands to make compiler produce verbose output that lists
13910 # what "hidden" libraries, object files and flags are used when
13911 # linking a shared library.
13912 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13914 else
13915 # FIXME: insert proper C++ library support
13916 ld_shlibs_CXX=no
13919 esac
13922 psos*)
13923 # FIXME: insert proper C++ library support
13924 ld_shlibs_CXX=no
13927 sunos4*)
13928 case $cc_basename in
13929 CC*)
13930 # Sun C++ 4.x
13931 # FIXME: insert proper C++ library support
13932 ld_shlibs_CXX=no
13934 lcc*)
13935 # Lucid
13936 # FIXME: insert proper C++ library support
13937 ld_shlibs_CXX=no
13940 # FIXME: insert proper C++ library support
13941 ld_shlibs_CXX=no
13943 esac
13946 solaris*)
13947 case $cc_basename in
13948 CC*)
13949 # Sun C++ 4.2, 5.x and Centerline C++
13950 archive_cmds_need_lc_CXX=yes
13951 no_undefined_flag_CXX=' -zdefs'
13952 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13953 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13954 $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'
13956 hardcode_libdir_flag_spec_CXX='-R$libdir'
13957 hardcode_shlibpath_var_CXX=no
13958 case $host_os in
13959 solaris2.[0-5] | solaris2.[0-5].*) ;;
13961 # The compiler driver will combine and reorder linker options,
13962 # but understands `-z linker_flag'.
13963 # Supported since Solaris 2.6 (maybe 2.5.1?)
13964 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13966 esac
13967 link_all_deplibs_CXX=yes
13969 output_verbose_link_cmd='func_echo_all'
13971 # Archives containing C++ object files must be created using
13972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13973 # necessary to make sure instantiated templates are included
13974 # in the archive.
13975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13977 gcx*)
13978 # Green Hills C++ Compiler
13979 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13981 # The C++ compiler must be used to create the archive.
13982 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13985 # GNU C++ compiler with Solaris linker
13986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13987 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13988 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13989 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13990 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13991 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13993 # Commands to make compiler produce verbose output that lists
13994 # what "hidden" libraries, object files and flags are used when
13995 # linking a shared library.
13996 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13997 else
13998 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13999 # platform.
14000 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14001 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14002 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14004 # Commands to make compiler produce verbose output that lists
14005 # what "hidden" libraries, object files and flags are used when
14006 # linking a shared library.
14007 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14010 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14011 case $host_os in
14012 solaris2.[0-5] | solaris2.[0-5].*) ;;
14014 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14016 esac
14019 esac
14022 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14023 no_undefined_flag_CXX='${wl}-z,text'
14024 archive_cmds_need_lc_CXX=no
14025 hardcode_shlibpath_var_CXX=no
14026 runpath_var='LD_RUN_PATH'
14028 case $cc_basename in
14029 CC*)
14030 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14031 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14034 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14035 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14037 esac
14040 sysv5* | sco3.2v5* | sco5v6*)
14041 # Note: We can NOT use -z defs as we might desire, because we do not
14042 # link with -lc, and that would cause any symbols used from libc to
14043 # always be unresolved, which means just about no library would
14044 # ever link correctly. If we're not using GNU ld we use -z text
14045 # though, which does catch some bad symbols but isn't as heavy-handed
14046 # as -z defs.
14047 no_undefined_flag_CXX='${wl}-z,text'
14048 allow_undefined_flag_CXX='${wl}-z,nodefs'
14049 archive_cmds_need_lc_CXX=no
14050 hardcode_shlibpath_var_CXX=no
14051 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14052 hardcode_libdir_separator_CXX=':'
14053 link_all_deplibs_CXX=yes
14054 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14055 runpath_var='LD_RUN_PATH'
14057 case $cc_basename in
14058 CC*)
14059 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14060 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14062 '"$old_archive_cmds_CXX"
14063 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14064 '"$reload_cmds_CXX"
14067 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070 esac
14073 tandem*)
14074 case $cc_basename in
14075 NCC*)
14076 # NonStop-UX NCC 3.20
14077 # FIXME: insert proper C++ library support
14078 ld_shlibs_CXX=no
14081 # FIXME: insert proper C++ library support
14082 ld_shlibs_CXX=no
14084 esac
14087 vxworks*)
14088 # For VxWorks ports, we assume the use of a GNU linker with
14089 # standard elf conventions.
14090 ld_shlibs_CXX=yes
14094 # FIXME: insert proper C++ library support
14095 ld_shlibs_CXX=no
14097 esac
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14100 $as_echo "$ld_shlibs_CXX" >&6; }
14101 test "$ld_shlibs_CXX" = no && can_build_shared=no
14103 GCC_CXX="$GXX"
14104 LD_CXX="$LD"
14106 ## CAVEAT EMPTOR:
14107 ## There is no encapsulation within the following macros, do not change
14108 ## the running order or otherwise move them around unless you know exactly
14109 ## what you are doing...
14110 # Dependencies to place before and after the object being linked:
14111 predep_objects_CXX=
14112 postdep_objects_CXX=
14113 predeps_CXX=
14114 postdeps_CXX=
14115 compiler_lib_search_path_CXX=
14117 cat > conftest.$ac_ext <<_LT_EOF
14118 class Foo
14120 public:
14121 Foo (void) { a = 0; }
14122 private:
14123 int a;
14125 _LT_EOF
14127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14128 (eval $ac_compile) 2>&5
14129 ac_status=$?
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; }; then
14132 # Parse the compiler output and extract the necessary
14133 # objects, libraries and library flags.
14135 # Sentinel used to keep track of whether or not we are before
14136 # the conftest object file.
14137 pre_test_object_deps_done=no
14139 for p in `eval "$output_verbose_link_cmd"`; do
14140 case $p in
14142 -L* | -R* | -l*)
14143 # Some compilers place space between "-{L,R}" and the path.
14144 # Remove the space.
14145 if test $p = "-L" ||
14146 test $p = "-R"; then
14147 prev=$p
14148 continue
14149 else
14150 prev=
14153 if test "$pre_test_object_deps_done" = no; then
14154 case $p in
14155 -L* | -R*)
14156 # Internal compiler library paths should come after those
14157 # provided the user. The postdeps already come after the
14158 # user supplied libs so there is no need to process them.
14159 if test -z "$compiler_lib_search_path_CXX"; then
14160 compiler_lib_search_path_CXX="${prev}${p}"
14161 else
14162 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14165 # The "-l" case would never come before the object being
14166 # linked, so don't bother handling this case.
14167 esac
14168 else
14169 if test -z "$postdeps_CXX"; then
14170 postdeps_CXX="${prev}${p}"
14171 else
14172 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14177 *.$objext)
14178 # This assumes that the test object file only shows up
14179 # once in the compiler output.
14180 if test "$p" = "conftest.$objext"; then
14181 pre_test_object_deps_done=yes
14182 continue
14185 if test "$pre_test_object_deps_done" = no; then
14186 if test -z "$predep_objects_CXX"; then
14187 predep_objects_CXX="$p"
14188 else
14189 predep_objects_CXX="$predep_objects_CXX $p"
14191 else
14192 if test -z "$postdep_objects_CXX"; then
14193 postdep_objects_CXX="$p"
14194 else
14195 postdep_objects_CXX="$postdep_objects_CXX $p"
14200 *) ;; # Ignore the rest.
14202 esac
14203 done
14205 # Clean up.
14206 rm -f a.out a.exe
14207 else
14208 echo "libtool.m4: error: problem compiling CXX test program"
14211 $RM -f confest.$objext
14213 # PORTME: override above test on systems where it is broken
14214 case $host_os in
14215 interix[3-9]*)
14216 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14217 # hack all around it, let's just trust "g++" to DTRT.
14218 predep_objects_CXX=
14219 postdep_objects_CXX=
14220 postdeps_CXX=
14223 linux*)
14224 case `$CC -V 2>&1 | sed 5q` in
14225 *Sun\ C*)
14226 # Sun C++ 5.9
14228 # The more standards-conforming stlport4 library is
14229 # incompatible with the Cstd library. Avoid specifying
14230 # it if it's in CXXFLAGS. Ignore libCrun as
14231 # -library=stlport4 depends on it.
14232 case " $CXX $CXXFLAGS " in
14233 *" -library=stlport4 "*)
14234 solaris_use_stlport4=yes
14236 esac
14238 if test "$solaris_use_stlport4" != yes; then
14239 postdeps_CXX='-library=Cstd -library=Crun'
14242 esac
14245 solaris*)
14246 case $cc_basename in
14247 CC*)
14248 # The more standards-conforming stlport4 library is
14249 # incompatible with the Cstd library. Avoid specifying
14250 # it if it's in CXXFLAGS. Ignore libCrun as
14251 # -library=stlport4 depends on it.
14252 case " $CXX $CXXFLAGS " in
14253 *" -library=stlport4 "*)
14254 solaris_use_stlport4=yes
14256 esac
14258 # Adding this requires a known-good setup of shared libraries for
14259 # Sun compiler versions before 5.6, else PIC objects from an old
14260 # archive will be linked into the output, leading to subtle bugs.
14261 if test "$solaris_use_stlport4" != yes; then
14262 postdeps_CXX='-library=Cstd -library=Crun'
14265 esac
14267 esac
14270 case " $postdeps_CXX " in
14271 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14272 esac
14273 compiler_lib_search_dirs_CXX=
14274 if test -n "${compiler_lib_search_path_CXX}"; then
14275 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14308 lt_prog_compiler_wl_CXX=
14309 lt_prog_compiler_pic_CXX=
14310 lt_prog_compiler_static_CXX=
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14313 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14315 # C++ specific cases for pic, static, wl, etc.
14316 if test "$GXX" = yes; then
14317 lt_prog_compiler_wl_CXX='-Wl,'
14318 lt_prog_compiler_static_CXX='-static'
14320 case $host_os in
14321 aix*)
14322 # All AIX code is PIC.
14323 if test "$host_cpu" = ia64; then
14324 # AIX 5 now supports IA64 processor
14325 lt_prog_compiler_static_CXX='-Bstatic'
14327 lt_prog_compiler_pic_CXX='-fPIC'
14330 amigaos*)
14331 case $host_cpu in
14332 powerpc)
14333 # see comment about AmigaOS4 .so support
14334 lt_prog_compiler_pic_CXX='-fPIC'
14336 m68k)
14337 # FIXME: we need at least 68020 code to build shared libraries, but
14338 # adding the `-m68020' flag to GCC prevents building anything better,
14339 # like `-m68040'.
14340 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14342 esac
14345 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14346 # PIC is the default for these OSes.
14348 mingw* | cygwin* | os2* | pw32* | cegcc*)
14349 # This hack is so that the source file can tell whether it is being
14350 # built for inclusion in a dll (and should export symbols for example).
14351 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14352 # (--disable-auto-import) libraries
14353 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14355 darwin* | rhapsody*)
14356 # PIC is the default on this platform
14357 # Common symbols not allowed in MH_DYLIB files
14358 lt_prog_compiler_pic_CXX='-fno-common'
14360 *djgpp*)
14361 # DJGPP does not support shared libraries at all
14362 lt_prog_compiler_pic_CXX=
14364 haiku*)
14365 # PIC is the default for Haiku.
14366 # The "-static" flag exists, but is broken.
14367 lt_prog_compiler_static_CXX=
14369 interix[3-9]*)
14370 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14371 # Instead, we relocate shared libraries at runtime.
14373 sysv4*MP*)
14374 if test -d /usr/nec; then
14375 lt_prog_compiler_pic_CXX=-Kconform_pic
14378 hpux*)
14379 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14380 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14381 # sets the default TLS model and affects inlining.
14382 case $host_cpu in
14383 hppa*64*)
14386 lt_prog_compiler_pic_CXX='-fPIC'
14388 esac
14390 *qnx* | *nto*)
14391 # QNX uses GNU C++, but need to define -shared option too, otherwise
14392 # it will coredump.
14393 lt_prog_compiler_pic_CXX='-fPIC -shared'
14396 lt_prog_compiler_pic_CXX='-fPIC'
14398 esac
14399 else
14400 case $host_os in
14401 aix[4-9]*)
14402 # All AIX code is PIC.
14403 if test "$host_cpu" = ia64; then
14404 # AIX 5 now supports IA64 processor
14405 lt_prog_compiler_static_CXX='-Bstatic'
14406 else
14407 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14410 chorus*)
14411 case $cc_basename in
14412 cxch68*)
14413 # Green Hills C++ Compiler
14414 # _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"
14416 esac
14418 dgux*)
14419 case $cc_basename in
14420 ec++*)
14421 lt_prog_compiler_pic_CXX='-KPIC'
14423 ghcx*)
14424 # Green Hills C++ Compiler
14425 lt_prog_compiler_pic_CXX='-pic'
14429 esac
14431 freebsd* | dragonfly*)
14432 # FreeBSD uses GNU C++
14434 hpux9* | hpux10* | hpux11*)
14435 case $cc_basename in
14436 CC*)
14437 lt_prog_compiler_wl_CXX='-Wl,'
14438 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14439 if test "$host_cpu" != ia64; then
14440 lt_prog_compiler_pic_CXX='+Z'
14443 aCC*)
14444 lt_prog_compiler_wl_CXX='-Wl,'
14445 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14446 case $host_cpu in
14447 hppa*64*|ia64*)
14448 # +Z the default
14451 lt_prog_compiler_pic_CXX='+Z'
14453 esac
14457 esac
14459 interix*)
14460 # This is c89, which is MS Visual C++ (no shared libs)
14461 # Anyone wants to do a port?
14463 irix5* | irix6* | nonstopux*)
14464 case $cc_basename in
14465 CC*)
14466 lt_prog_compiler_wl_CXX='-Wl,'
14467 lt_prog_compiler_static_CXX='-non_shared'
14468 # CC pic flag -KPIC is the default.
14472 esac
14474 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14475 case $cc_basename in
14476 KCC*)
14477 # KAI C++ Compiler
14478 lt_prog_compiler_wl_CXX='--backend -Wl,'
14479 lt_prog_compiler_pic_CXX='-fPIC'
14481 ecpc* )
14482 # old Intel C++ for x86_64 which still supported -KPIC.
14483 lt_prog_compiler_wl_CXX='-Wl,'
14484 lt_prog_compiler_pic_CXX='-KPIC'
14485 lt_prog_compiler_static_CXX='-static'
14487 icpc* )
14488 # Intel C++, used to be incompatible with GCC.
14489 # ICC 10 doesn't accept -KPIC any more.
14490 lt_prog_compiler_wl_CXX='-Wl,'
14491 lt_prog_compiler_pic_CXX='-fPIC'
14492 lt_prog_compiler_static_CXX='-static'
14494 pgCC* | pgcpp*)
14495 # Portland Group C++ compiler
14496 lt_prog_compiler_wl_CXX='-Wl,'
14497 lt_prog_compiler_pic_CXX='-fpic'
14498 lt_prog_compiler_static_CXX='-Bstatic'
14500 cxx*)
14501 # Compaq C++
14502 # Make sure the PIC flag is empty. It appears that all Alpha
14503 # Linux and Compaq Tru64 Unix objects are PIC.
14504 lt_prog_compiler_pic_CXX=
14505 lt_prog_compiler_static_CXX='-non_shared'
14507 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14508 # IBM XL 8.0, 9.0 on PPC and BlueGene
14509 lt_prog_compiler_wl_CXX='-Wl,'
14510 lt_prog_compiler_pic_CXX='-qpic'
14511 lt_prog_compiler_static_CXX='-qstaticlink'
14514 case `$CC -V 2>&1 | sed 5q` in
14515 *Sun\ C*)
14516 # Sun C++ 5.9
14517 lt_prog_compiler_pic_CXX='-KPIC'
14518 lt_prog_compiler_static_CXX='-Bstatic'
14519 lt_prog_compiler_wl_CXX='-Qoption ld '
14521 esac
14523 esac
14525 lynxos*)
14527 m88k*)
14529 mvs*)
14530 case $cc_basename in
14531 cxx*)
14532 lt_prog_compiler_pic_CXX='-W c,exportall'
14536 esac
14538 netbsd*)
14540 *qnx* | *nto*)
14541 # QNX uses GNU C++, but need to define -shared option too, otherwise
14542 # it will coredump.
14543 lt_prog_compiler_pic_CXX='-fPIC -shared'
14545 osf3* | osf4* | osf5*)
14546 case $cc_basename in
14547 KCC*)
14548 lt_prog_compiler_wl_CXX='--backend -Wl,'
14550 RCC*)
14551 # Rational C++ 2.4.1
14552 lt_prog_compiler_pic_CXX='-pic'
14554 cxx*)
14555 # Digital/Compaq C++
14556 lt_prog_compiler_wl_CXX='-Wl,'
14557 # Make sure the PIC flag is empty. It appears that all Alpha
14558 # Linux and Compaq Tru64 Unix objects are PIC.
14559 lt_prog_compiler_pic_CXX=
14560 lt_prog_compiler_static_CXX='-non_shared'
14564 esac
14566 psos*)
14568 solaris*)
14569 case $cc_basename in
14570 CC*)
14571 # Sun C++ 4.2, 5.x and Centerline C++
14572 lt_prog_compiler_pic_CXX='-KPIC'
14573 lt_prog_compiler_static_CXX='-Bstatic'
14574 lt_prog_compiler_wl_CXX='-Qoption ld '
14576 gcx*)
14577 # Green Hills C++ Compiler
14578 lt_prog_compiler_pic_CXX='-PIC'
14582 esac
14584 sunos4*)
14585 case $cc_basename in
14586 CC*)
14587 # Sun C++ 4.x
14588 lt_prog_compiler_pic_CXX='-pic'
14589 lt_prog_compiler_static_CXX='-Bstatic'
14591 lcc*)
14592 # Lucid
14593 lt_prog_compiler_pic_CXX='-pic'
14597 esac
14599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14600 case $cc_basename in
14601 CC*)
14602 lt_prog_compiler_wl_CXX='-Wl,'
14603 lt_prog_compiler_pic_CXX='-KPIC'
14604 lt_prog_compiler_static_CXX='-Bstatic'
14606 esac
14608 tandem*)
14609 case $cc_basename in
14610 NCC*)
14611 # NonStop-UX NCC 3.20
14612 lt_prog_compiler_pic_CXX='-KPIC'
14616 esac
14618 vxworks*)
14621 lt_prog_compiler_can_build_shared_CXX=no
14623 esac
14626 case $host_os in
14627 # For platforms which do not support PIC, -DPIC is meaningless:
14628 *djgpp*)
14629 lt_prog_compiler_pic_CXX=
14632 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14634 esac
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14636 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14641 # Check to make sure the PIC flag actually works.
14643 if test -n "$lt_prog_compiler_pic_CXX"; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14645 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14646 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14649 lt_cv_prog_compiler_pic_works_CXX=no
14650 ac_outfile=conftest.$ac_objext
14651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14652 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14653 # Insert the option either (1) after the last *FLAGS variable, or
14654 # (2) before a word containing "conftest.", or (3) at the end.
14655 # Note that $ac_compile itself does not contain backslashes and begins
14656 # with a dollar sign (not a hyphen), so the echo should work correctly.
14657 # The option is referenced via a variable to avoid confusing sed.
14658 lt_compile=`echo "$ac_compile" | $SED \
14659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14661 -e 's:$: $lt_compiler_flag:'`
14662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14663 (eval "$lt_compile" 2>conftest.err)
14664 ac_status=$?
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 if (exit $ac_status) && test -s "$ac_outfile"; then
14668 # The compiler can only warn and ignore the option if not recognized
14669 # So say no if there are warnings other than the usual output.
14670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14673 lt_cv_prog_compiler_pic_works_CXX=yes
14676 $RM conftest*
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14680 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14682 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14683 case $lt_prog_compiler_pic_CXX in
14684 "" | " "*) ;;
14685 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14686 esac
14687 else
14688 lt_prog_compiler_pic_CXX=
14689 lt_prog_compiler_can_build_shared_CXX=no
14697 # Check to make sure the static flag actually works.
14699 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14701 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14702 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 lt_cv_prog_compiler_static_works_CXX=no
14706 save_LDFLAGS="$LDFLAGS"
14707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14710 # The linker can only warn and ignore the option if not recognized
14711 # So say no if there are warnings
14712 if test -s conftest.err; then
14713 # Append any errors to the config.log.
14714 cat conftest.err 1>&5
14715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717 if diff conftest.exp conftest.er2 >/dev/null; then
14718 lt_cv_prog_compiler_static_works_CXX=yes
14720 else
14721 lt_cv_prog_compiler_static_works_CXX=yes
14724 $RM -r conftest*
14725 LDFLAGS="$save_LDFLAGS"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14729 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14731 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14733 else
14734 lt_prog_compiler_static_CXX=
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14741 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14742 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14743 $as_echo_n "(cached) " >&6
14744 else
14745 lt_cv_prog_compiler_c_o_CXX=no
14746 $RM -r conftest 2>/dev/null
14747 mkdir conftest
14748 cd conftest
14749 mkdir out
14750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14752 lt_compiler_flag="-o out/conftest2.$ac_objext"
14753 # Insert the option either (1) after the last *FLAGS variable, or
14754 # (2) before a word containing "conftest.", or (3) at the end.
14755 # Note that $ac_compile itself does not contain backslashes and begins
14756 # with a dollar sign (not a hyphen), so the echo should work correctly.
14757 lt_compile=`echo "$ac_compile" | $SED \
14758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760 -e 's:$: $lt_compiler_flag:'`
14761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14762 (eval "$lt_compile" 2>out/conftest.err)
14763 ac_status=$?
14764 cat out/conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14767 then
14768 # The compiler can only warn and ignore the option if not recognized
14769 # So say no if there are warnings
14770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14773 lt_cv_prog_compiler_c_o_CXX=yes
14776 chmod u+w . 2>&5
14777 $RM conftest*
14778 # SGI C++ compiler will create directory out/ii_files/ for
14779 # template instantiation
14780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14781 $RM out/* && rmdir out
14782 cd ..
14783 $RM -r conftest
14784 $RM conftest*
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14788 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14794 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 lt_cv_prog_compiler_c_o_CXX=no
14798 $RM -r conftest 2>/dev/null
14799 mkdir conftest
14800 cd conftest
14801 mkdir out
14802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14804 lt_compiler_flag="-o out/conftest2.$ac_objext"
14805 # Insert the option either (1) after the last *FLAGS variable, or
14806 # (2) before a word containing "conftest.", or (3) at the end.
14807 # Note that $ac_compile itself does not contain backslashes and begins
14808 # with a dollar sign (not a hyphen), so the echo should work correctly.
14809 lt_compile=`echo "$ac_compile" | $SED \
14810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14812 -e 's:$: $lt_compiler_flag:'`
14813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14814 (eval "$lt_compile" 2>out/conftest.err)
14815 ac_status=$?
14816 cat out/conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14819 then
14820 # The compiler can only warn and ignore the option if not recognized
14821 # So say no if there are warnings
14822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14825 lt_cv_prog_compiler_c_o_CXX=yes
14828 chmod u+w . 2>&5
14829 $RM conftest*
14830 # SGI C++ compiler will create directory out/ii_files/ for
14831 # template instantiation
14832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14833 $RM out/* && rmdir out
14834 cd ..
14835 $RM -r conftest
14836 $RM conftest*
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14840 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14845 hard_links="nottested"
14846 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14847 # do not overwrite the value of need_locks provided by the user
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14849 $as_echo_n "checking if we can lock with hard links... " >&6; }
14850 hard_links=yes
14851 $RM conftest*
14852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14853 touch conftest.a
14854 ln conftest.a conftest.b 2>&5 || hard_links=no
14855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14857 $as_echo "$hard_links" >&6; }
14858 if test "$hard_links" = no; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14860 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14861 need_locks=warn
14863 else
14864 need_locks=no
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14870 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14873 case $host_os in
14874 aix[4-9]*)
14875 # If we're using GNU nm, then we don't want the "-C" option.
14876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14877 # Also, AIX nm treats weak defined symbols like other global defined
14878 # symbols, whereas GNU nm marks them as "W".
14879 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14880 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'
14881 else
14882 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'
14885 pw32*)
14886 export_symbols_cmds_CXX="$ltdll_cmds"
14888 cygwin* | mingw* | cegcc*)
14889 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'
14892 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14894 esac
14895 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14898 $as_echo "$ld_shlibs_CXX" >&6; }
14899 test "$ld_shlibs_CXX" = no && can_build_shared=no
14901 with_gnu_ld_CXX=$with_gnu_ld
14909 # Do we need to explicitly link libc?
14911 case "x$archive_cmds_need_lc_CXX" in
14912 x|xyes)
14913 # Assume -lc should be added
14914 archive_cmds_need_lc_CXX=yes
14916 if test "$enable_shared" = yes && test "$GCC" = yes; then
14917 case $archive_cmds_CXX in
14918 *'~'*)
14919 # FIXME: we may have to deal with multi-command sequences.
14921 '$CC '*)
14922 # Test whether the compiler implicitly links with -lc since on some
14923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14924 # to ld, don't add -lc before -lgcc.
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14926 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14927 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14928 $as_echo_n "(cached) " >&6
14929 else
14930 $RM conftest*
14931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14934 (eval $ac_compile) 2>&5
14935 ac_status=$?
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; } 2>conftest.err; then
14938 soname=conftest
14939 lib=conftest
14940 libobjs=conftest.$ac_objext
14941 deplibs=
14942 wl=$lt_prog_compiler_wl_CXX
14943 pic_flag=$lt_prog_compiler_pic_CXX
14944 compiler_flags=-v
14945 linker_flags=-v
14946 verstring=
14947 output_objdir=.
14948 libname=conftest
14949 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14950 allow_undefined_flag_CXX=
14951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14952 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14953 ac_status=$?
14954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955 test $ac_status = 0; }
14956 then
14957 lt_cv_archive_cmds_need_lc_CXX=no
14958 else
14959 lt_cv_archive_cmds_need_lc_CXX=yes
14961 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14962 else
14963 cat conftest.err 1>&5
14965 $RM conftest*
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14969 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14970 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14972 esac
14975 esac
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15041 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15043 library_names_spec=
15044 libname_spec='lib$name'
15045 soname_spec=
15046 shrext_cmds=".so"
15047 postinstall_cmds=
15048 postuninstall_cmds=
15049 finish_cmds=
15050 finish_eval=
15051 shlibpath_var=
15052 shlibpath_overrides_runpath=unknown
15053 version_type=none
15054 dynamic_linker="$host_os ld.so"
15055 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15056 need_lib_prefix=unknown
15057 hardcode_into_libs=no
15059 # when you set need_version to no, make sure it does not cause -set_version
15060 # flags to be left without arguments
15061 need_version=unknown
15063 case $host_os in
15064 aix3*)
15065 version_type=linux
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15067 shlibpath_var=LIBPATH
15069 # AIX 3 has no versioning support, so we append a major version to the name.
15070 soname_spec='${libname}${release}${shared_ext}$major'
15073 aix[4-9]*)
15074 version_type=linux
15075 need_lib_prefix=no
15076 need_version=no
15077 hardcode_into_libs=yes
15078 if test "$host_cpu" = ia64; then
15079 # AIX 5 supports IA64
15080 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 else
15083 # With GCC up to 2.95.x, collect2 would create an import file
15084 # for dependence libraries. The import file would start with
15085 # the line `#! .'. This would cause the generated library to
15086 # depend on `.', always an invalid library. This was fixed in
15087 # development snapshots of GCC prior to 3.0.
15088 case $host_os in
15089 aix4 | aix4.[01] | aix4.[01].*)
15090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15091 echo ' yes '
15092 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15094 else
15095 can_build_shared=no
15098 esac
15099 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15100 # soname into executable. Probably we can add versioning support to
15101 # collect2, so additional links can be useful in future.
15102 if test "$aix_use_runtimelinking" = yes; then
15103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15104 # instead of lib<name>.a to let people know that these are not
15105 # typical AIX shared libraries.
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 else
15108 # We preserve .a as extension for shared libraries through AIX4.2
15109 # and later when we are not doing run time linking.
15110 library_names_spec='${libname}${release}.a $libname.a'
15111 soname_spec='${libname}${release}${shared_ext}$major'
15113 shlibpath_var=LIBPATH
15117 amigaos*)
15118 case $host_cpu in
15119 powerpc)
15120 # Since July 2007 AmigaOS4 officially supports .so libraries.
15121 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124 m68k)
15125 library_names_spec='$libname.ixlibrary $libname.a'
15126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15127 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'
15129 esac
15132 beos*)
15133 library_names_spec='${libname}${shared_ext}'
15134 dynamic_linker="$host_os ld.so"
15135 shlibpath_var=LIBRARY_PATH
15138 bsdi[45]*)
15139 version_type=linux
15140 need_version=no
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15147 # the default ld.so.conf also contains /usr/contrib/lib and
15148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15149 # libtool to hard-code these into programs
15152 cygwin* | mingw* | pw32* | cegcc*)
15153 version_type=windows
15154 shrext_cmds=".dll"
15155 need_version=no
15156 need_lib_prefix=no
15158 case $GCC,$host_os in
15159 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15160 library_names_spec='$libname.dll.a'
15161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15162 postinstall_cmds='base_file=`basename \${file}`~
15163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15164 dldir=$destdir/`dirname \$dlpath`~
15165 test -d \$dldir || mkdir -p \$dldir~
15166 $install_prog $dir/$dlname \$dldir/$dlname~
15167 chmod a+x \$dldir/$dlname~
15168 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15169 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15172 dlpath=$dir/\$dldll~
15173 $RM \$dlpath'
15174 shlibpath_overrides_runpath=yes
15176 case $host_os in
15177 cygwin*)
15178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15179 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15182 mingw* | cegcc*)
15183 # MinGW DLLs use traditional 'lib' prefix
15184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15186 pw32*)
15187 # pw32 DLLs use 'pw' prefix rather than 'lib'
15188 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15190 esac
15194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15196 esac
15197 dynamic_linker='Win32 ld.exe'
15198 # FIXME: first we should search . and the directory the executable is in
15199 shlibpath_var=PATH
15202 darwin* | rhapsody*)
15203 dynamic_linker="$host_os dyld"
15204 version_type=darwin
15205 need_lib_prefix=no
15206 need_version=no
15207 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15208 soname_spec='${libname}${release}${major}$shared_ext'
15209 shlibpath_overrides_runpath=yes
15210 shlibpath_var=DYLD_LIBRARY_PATH
15211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15213 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15216 dgux*)
15217 version_type=linux
15218 need_lib_prefix=no
15219 need_version=no
15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15221 soname_spec='${libname}${release}${shared_ext}$major'
15222 shlibpath_var=LD_LIBRARY_PATH
15225 freebsd* | dragonfly*)
15226 # DragonFly does not have aout. When/if they implement a new
15227 # versioning mechanism, adjust this.
15228 if test -x /usr/bin/objformat; then
15229 objformat=`/usr/bin/objformat`
15230 else
15231 case $host_os in
15232 freebsd[23].*) objformat=aout ;;
15233 *) objformat=elf ;;
15234 esac
15236 version_type=freebsd-$objformat
15237 case $version_type in
15238 freebsd-elf*)
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15240 need_version=no
15241 need_lib_prefix=no
15243 freebsd-*)
15244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15245 need_version=yes
15247 esac
15248 shlibpath_var=LD_LIBRARY_PATH
15249 case $host_os in
15250 freebsd2.*)
15251 shlibpath_overrides_runpath=yes
15253 freebsd3.[01]* | freebsdelf3.[01]*)
15254 shlibpath_overrides_runpath=yes
15255 hardcode_into_libs=yes
15257 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15258 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15259 shlibpath_overrides_runpath=no
15260 hardcode_into_libs=yes
15262 *) # from 4.6 on, and DragonFly
15263 shlibpath_overrides_runpath=yes
15264 hardcode_into_libs=yes
15266 esac
15269 haiku*)
15270 version_type=linux
15271 need_lib_prefix=no
15272 need_version=no
15273 dynamic_linker="$host_os runtime_loader"
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 shlibpath_var=LIBRARY_PATH
15277 shlibpath_overrides_runpath=yes
15278 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15279 hardcode_into_libs=yes
15282 hpux9* | hpux10* | hpux11*)
15283 # Give a soname corresponding to the major version so that dld.sl refuses to
15284 # link against other versions.
15285 version_type=sunos
15286 need_lib_prefix=no
15287 need_version=no
15288 case $host_cpu in
15289 ia64*)
15290 shrext_cmds='.so'
15291 hardcode_into_libs=yes
15292 dynamic_linker="$host_os dld.so"
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 if test "X$HPUX_IA64_MODE" = X32; then
15298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15299 else
15300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15304 hppa*64*)
15305 shrext_cmds='.sl'
15306 hardcode_into_libs=yes
15307 dynamic_linker="$host_os dld.sl"
15308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15316 shrext_cmds='.sl'
15317 dynamic_linker="$host_os dld.sl"
15318 shlibpath_var=SHLIB_PATH
15319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15323 esac
15324 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15325 postinstall_cmds='chmod 555 $lib'
15326 # or fails outright, so override atomically:
15327 install_override_mode=555
15330 interix[3-9]*)
15331 version_type=linux
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=no
15339 hardcode_into_libs=yes
15342 irix5* | irix6* | nonstopux*)
15343 case $host_os in
15344 nonstopux*) version_type=nonstopux ;;
15346 if test "$lt_cv_prog_gnu_ld" = yes; then
15347 version_type=linux
15348 else
15349 version_type=irix
15350 fi ;;
15351 esac
15352 need_lib_prefix=no
15353 need_version=no
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15356 case $host_os in
15357 irix5* | nonstopux*)
15358 libsuff= shlibsuff=
15361 case $LD in # libtool.m4 will add one of these switches to LD
15362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15363 libsuff= shlibsuff= libmagic=32-bit;;
15364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15365 libsuff=32 shlibsuff=N32 libmagic=N32;;
15366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15368 *) libsuff= shlibsuff= libmagic=never-match;;
15369 esac
15371 esac
15372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15373 shlibpath_overrides_runpath=no
15374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15376 hardcode_into_libs=yes
15379 # No shared lib support for Linux oldld, aout, or coff.
15380 linux*oldld* | linux*aout* | linux*coff*)
15381 dynamic_linker=no
15384 # This must be Linux ELF.
15386 # uclinux* changes (here and below) have been submitted to the libtool
15387 # project, but have not yet been accepted: they are GCC-local changes
15388 # for the time being. (See
15389 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15390 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15391 version_type=linux
15392 need_lib_prefix=no
15393 need_version=no
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=no
15400 # Some binutils ld are patched to set DT_RUNPATH
15401 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 lt_cv_shlibpath_overrides_runpath=no
15405 save_LDFLAGS=$LDFLAGS
15406 save_libdir=$libdir
15407 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15408 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15413 main ()
15417 return 0;
15419 _ACEOF
15420 if ac_fn_cxx_try_link "$LINENO"; then :
15421 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15422 lt_cv_shlibpath_overrides_runpath=yes
15425 rm -f core conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
15427 LDFLAGS=$save_LDFLAGS
15428 libdir=$save_libdir
15432 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15434 # This implies no fast_install, which is unacceptable.
15435 # Some rework will be needed to allow for fast_install
15436 # before this can be enabled.
15437 hardcode_into_libs=yes
15439 # Append ld.so.conf contents to the search path
15440 if test -f /etc/ld.so.conf; then
15441 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' ' '`
15442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15445 # We used to test for /lib/ld.so.1 and disable shared libraries on
15446 # powerpc, because MkLinux only supported shared libraries with the
15447 # GNU dynamic linker. Since this was broken with cross compilers,
15448 # most powerpc-linux boxes support dynamic linking these days and
15449 # people can always --disable-shared, the test was removed, and we
15450 # assume the GNU/Linux dynamic linker is in use.
15451 dynamic_linker='GNU/Linux ld.so'
15454 netbsd*)
15455 version_type=sunos
15456 need_lib_prefix=no
15457 need_version=no
15458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15461 dynamic_linker='NetBSD (a.out) ld.so'
15462 else
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 dynamic_linker='NetBSD ld.elf_so'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=yes
15469 hardcode_into_libs=yes
15472 newsos6)
15473 version_type=linux
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=yes
15479 *nto* | *qnx*)
15480 version_type=qnx
15481 need_lib_prefix=no
15482 need_version=no
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=no
15487 hardcode_into_libs=yes
15488 dynamic_linker='ldqnx.so'
15491 openbsd*)
15492 version_type=sunos
15493 sys_lib_dlsearch_path_spec="/usr/lib"
15494 need_lib_prefix=no
15495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15496 case $host_os in
15497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15498 *) need_version=no ;;
15499 esac
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15504 case $host_os in
15505 openbsd2.[89] | openbsd2.[89].*)
15506 shlibpath_overrides_runpath=no
15509 shlibpath_overrides_runpath=yes
15511 esac
15512 else
15513 shlibpath_overrides_runpath=yes
15517 os2*)
15518 libname_spec='$name'
15519 shrext_cmds=".dll"
15520 need_lib_prefix=no
15521 library_names_spec='$libname${shared_ext} $libname.a'
15522 dynamic_linker='OS/2 ld.exe'
15523 shlibpath_var=LIBPATH
15526 osf3* | osf4* | osf5*)
15527 version_type=osf
15528 need_lib_prefix=no
15529 need_version=no
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15537 rdos*)
15538 dynamic_linker=no
15541 solaris*)
15542 version_type=linux
15543 need_lib_prefix=no
15544 need_version=no
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 shlibpath_var=LD_LIBRARY_PATH
15548 shlibpath_overrides_runpath=yes
15549 hardcode_into_libs=yes
15550 # ldd complains unless libraries are executable
15551 postinstall_cmds='chmod +x $lib'
15554 sunos4*)
15555 version_type=sunos
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=yes
15560 if test "$with_gnu_ld" = yes; then
15561 need_lib_prefix=no
15563 need_version=yes
15566 sysv4 | sysv4.3*)
15567 version_type=linux
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 shlibpath_var=LD_LIBRARY_PATH
15571 case $host_vendor in
15572 sni)
15573 shlibpath_overrides_runpath=no
15574 need_lib_prefix=no
15575 runpath_var=LD_RUN_PATH
15577 siemens)
15578 need_lib_prefix=no
15580 motorola)
15581 need_lib_prefix=no
15582 need_version=no
15583 shlibpath_overrides_runpath=no
15584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15586 esac
15589 sysv4*MP*)
15590 if test -d /usr/nec ;then
15591 version_type=linux
15592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15593 soname_spec='$libname${shared_ext}.$major'
15594 shlibpath_var=LD_LIBRARY_PATH
15598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15599 version_type=freebsd-elf
15600 need_lib_prefix=no
15601 need_version=no
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=yes
15606 hardcode_into_libs=yes
15607 if test "$with_gnu_ld" = yes; then
15608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15609 else
15610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15611 case $host_os in
15612 sco3.2v5*)
15613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15615 esac
15617 sys_lib_dlsearch_path_spec='/usr/lib'
15620 tpf*)
15621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15622 version_type=linux
15623 need_lib_prefix=no
15624 need_version=no
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 shlibpath_overrides_runpath=no
15628 hardcode_into_libs=yes
15631 uts4*)
15632 version_type=linux
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LD_LIBRARY_PATH
15638 # Shared libraries for VwWorks, >= 7 only at this stage
15639 # and (fpic) still incompatible with "large" code models
15640 # in a few configurations. Only for RTP mode in any case,
15641 # and upon explicit request at configure time.
15642 vxworks7*)
15643 dynamic_linker=no
15644 case ${with_multisubdir}-${enable_shared} in
15645 *large*)
15647 *mrtp*-yes)
15648 version_type=linux
15649 need_lib_prefix=no
15650 need_version=no
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652 soname_spec='${libname}${release}${shared_ext}$major'
15653 dynamic_linker="$host_os module_loader"
15655 esac
15658 dynamic_linker=no
15660 esac
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15662 $as_echo "$dynamic_linker" >&6; }
15663 test "$dynamic_linker" = no && can_build_shared=no
15665 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15666 if test "$GCC" = yes; then
15667 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15670 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15671 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15673 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15674 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15715 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15716 hardcode_action_CXX=
15717 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15718 test -n "$runpath_var_CXX" ||
15719 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15721 # We can hardcode non-existent directories.
15722 if test "$hardcode_direct_CXX" != no &&
15723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15724 # have to relink, otherwise we might link with an installed library
15725 # when we should be linking with a yet-to-be-installed one
15726 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15727 test "$hardcode_minus_L_CXX" != no; then
15728 # Linking always hardcodes the temporary library directory.
15729 hardcode_action_CXX=relink
15730 else
15731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15732 hardcode_action_CXX=immediate
15734 else
15735 # We cannot hardcode anything, or else we can only hardcode existing
15736 # directories.
15737 hardcode_action_CXX=unsupported
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15740 $as_echo "$hardcode_action_CXX" >&6; }
15742 if test "$hardcode_action_CXX" = relink ||
15743 test "$inherit_rpath_CXX" = yes; then
15744 # Fast installation is not supported
15745 enable_fast_install=no
15746 elif test "$shlibpath_overrides_runpath" = yes ||
15747 test "$enable_shared" = no; then
15748 # Fast installation is not necessary
15749 enable_fast_install=needless
15758 fi # test -n "$compiler"
15760 CC=$lt_save_CC
15761 LDCXX=$LD
15762 LD=$lt_save_LD
15763 GCC=$lt_save_GCC
15764 with_gnu_ld=$lt_save_with_gnu_ld
15765 lt_cv_path_LDCXX=$lt_cv_path_LD
15766 lt_cv_path_LD=$lt_save_path_LD
15767 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15768 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15769 fi # test "$_lt_caught_CXX_error" != yes
15771 ac_ext=c
15772 ac_cpp='$CPP $CPPFLAGS'
15773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15789 ac_config_commands="$ac_config_commands libtool"
15794 # Only expand once:
15800 case $host in
15801 *-cygwin* | *-mingw*)
15802 # 'host' will be top-level target in the case of a target lib,
15803 # we must compare to with_cross_host to decide if this is a native
15804 # or cross-compiler and select where to install dlls appropriately.
15805 if test -n "$with_cross_host" &&
15806 test x"$with_cross_host" != x"no"; then
15807 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15808 else
15809 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15813 lt_host_flags=
15815 esac
15821 if test x$enable_darwin_at_rpath = xyes; then
15822 ENABLE_DARWIN_AT_RPATH_TRUE=
15823 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15824 else
15825 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15826 ENABLE_DARWIN_AT_RPATH_FALSE=
15830 # For libtool versioning info, format is CURRENT:REVISION:AGE
15831 libtool_VERSION=1:0:0
15834 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15836 # Add CET specific flags if Intel CET is enabled.
15837 # Check whether --enable-cet was given.
15838 if test "${enable_cet+set}" = set; then :
15839 enableval=$enable_cet;
15840 case "$enableval" in
15841 yes|no|auto) ;;
15842 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
15843 esac
15845 else
15846 enable_cet=auto
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15851 $as_echo_n "checking for CET support... " >&6; }
15853 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
15854 case "$host" in
15855 i[34567]86-*-linux* | x86_64-*-linux*)
15856 case "$enable_cet" in
15857 auto)
15858 # Check if target supports multi-byte NOPs
15859 # and if compiler and assembler support CET insn.
15860 cet_save_CFLAGS="$CFLAGS"
15861 CFLAGS="$CFLAGS -fcf-protection"
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15866 main ()
15869 #if !defined(__SSE2__)
15870 #error target does not support multi-byte NOPs
15871 #else
15872 asm ("setssbsy");
15873 #endif
15876 return 0;
15878 _ACEOF
15879 if ac_fn_c_try_compile "$LINENO"; then :
15880 enable_cet=yes
15881 else
15882 enable_cet=no
15884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15885 CFLAGS="$cet_save_CFLAGS"
15887 yes)
15888 # Check if assembler supports CET.
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15893 main ()
15895 asm ("setssbsy");
15897 return 0;
15899 _ACEOF
15900 if ac_fn_c_try_compile "$LINENO"; then :
15902 else
15903 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 esac
15910 enable_cet=no
15912 esac
15913 if test x$enable_cet = xyes; then
15914 CET_FLAGS="-fcf-protection -mshstk"
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15916 $as_echo "yes" >&6; }
15917 else
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15922 XCFLAGS="$XCFLAGS $CET_FLAGS"
15926 if test "${multilib}" = "yes"; then
15927 multilib_arg="--enable-multilib"
15928 else
15929 multilib_arg=
15932 ac_config_files="$ac_config_files Makefile"
15935 if test "x$VTV_SUPPORTED" = "xyes"; then
15936 ac_config_files="$ac_config_files testsuite/Makefile"
15940 case "$target_os" in
15941 cygwin*|mingw32*)
15942 vtv_cygmin="yes"
15945 vtv_cygmin="no"
15947 esac
15949 if test $vtv_cygmin = yes; then
15950 VTV_CYGMIN_TRUE=
15951 VTV_CYGMIN_FALSE='#'
15952 else
15953 VTV_CYGMIN_TRUE='#'
15954 VTV_CYGMIN_FALSE=
15958 for ac_func in _obstack_begin
15959 do :
15960 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15961 if test "x$ac_cv_func__obstack_begin" = xyes; then :
15962 cat >>confdefs.h <<_ACEOF
15963 #define HAVE__OBSTACK_BEGIN 1
15964 _ACEOF
15967 done
15969 if test $ac_cv_func__obstack_begin = no; then
15970 VTV_NO_OBSTACK_TRUE=
15971 VTV_NO_OBSTACK_FALSE='#'
15972 else
15973 VTV_NO_OBSTACK_TRUE='#'
15974 VTV_NO_OBSTACK_FALSE=
15978 # Determine what GCC version number to use in filesystem paths.
15980 get_gcc_base_ver="cat"
15982 # Check whether --with-gcc-major-version-only was given.
15983 if test "${with_gcc_major_version_only+set}" = set; then :
15984 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15985 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
15993 cat >confcache <<\_ACEOF
15994 # This file is a shell script that caches the results of configure
15995 # tests run on this system so they can be shared between configure
15996 # scripts and configure runs, see configure's option --config-cache.
15997 # It is not useful on other systems. If it contains results you don't
15998 # want to keep, you may remove or edit it.
16000 # config.status only pays attention to the cache file if you give it
16001 # the --recheck option to rerun configure.
16003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16005 # following values.
16007 _ACEOF
16009 # The following way of writing the cache mishandles newlines in values,
16010 # but we know of no workaround that is simple, portable, and efficient.
16011 # So, we kill variables containing newlines.
16012 # Ultrix sh set writes to stderr and can't be redirected directly,
16013 # and sets the high bit in the cache file unless we assign to the vars.
16015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16016 eval ac_val=\$$ac_var
16017 case $ac_val in #(
16018 *${as_nl}*)
16019 case $ac_var in #(
16020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16022 esac
16023 case $ac_var in #(
16024 _ | IFS | as_nl) ;; #(
16025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16026 *) { eval $ac_var=; unset $ac_var;} ;;
16027 esac ;;
16028 esac
16029 done
16031 (set) 2>&1 |
16032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16033 *${as_nl}ac_space=\ *)
16034 # `set' does not quote correctly, so add quotes: double-quote
16035 # substitution turns \\\\ into \\, and sed turns \\ into \.
16036 sed -n \
16037 "s/'/'\\\\''/g;
16038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16039 ;; #(
16041 # `set' quotes correctly as required by POSIX, so do not add quotes.
16042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16044 esac |
16045 sort
16047 sed '
16048 /^ac_cv_env_/b end
16049 t clear
16050 :clear
16051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16052 t end
16053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16054 :end' >>confcache
16055 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16056 if test -w "$cache_file"; then
16057 if test "x$cache_file" != "x/dev/null"; then
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16059 $as_echo "$as_me: updating cache $cache_file" >&6;}
16060 if test ! -f "$cache_file" || test -h "$cache_file"; then
16061 cat confcache >"$cache_file"
16062 else
16063 case $cache_file in #(
16064 */* | ?:*)
16065 mv -f confcache "$cache_file"$$ &&
16066 mv -f "$cache_file"$$ "$cache_file" ;; #(
16068 mv -f confcache "$cache_file" ;;
16069 esac
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16074 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16077 rm -f confcache
16079 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16080 # Let make expand exec_prefix.
16081 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16083 # Transform confdefs.h into DEFS.
16084 # Protect against shell expansion while executing Makefile rules.
16085 # Protect against Makefile macro expansion.
16087 # If the first sed substitution is executed (which looks for macros that
16088 # take arguments), then branch to the quote section. Otherwise,
16089 # look for a macro that doesn't take arguments.
16090 ac_script='
16091 :mline
16092 /\\$/{
16094 s,\\\n,,
16095 b mline
16097 t clear
16098 :clear
16099 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16100 t quote
16101 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16102 t quote
16103 b any
16104 :quote
16105 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16106 s/\[/\\&/g
16107 s/\]/\\&/g
16108 s/\$/$$/g
16110 :any
16113 s/^\n//
16114 s/\n/ /g
16118 DEFS=`sed -n "$ac_script" confdefs.h`
16121 ac_libobjs=
16122 ac_ltlibobjs=
16124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16125 # 1. Remove the extension, and $U if already installed.
16126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16129 # will be set to the directory where LIBOBJS objects are built.
16130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16132 done
16133 LIBOBJS=$ac_libobjs
16135 LTLIBOBJS=$ac_ltlibobjs
16138 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
16139 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
16140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16143 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16144 if test -n "$am_sleep_pid"; then
16145 # Hide warnings about reused PIDs.
16146 wait $am_sleep_pid 2>/dev/null
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16149 $as_echo "done" >&6; }
16150 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16151 as_fn_error $? "conditional \"AMDEP\" was never defined.
16152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16154 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16155 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16158 if test -n "$EXEEXT"; then
16159 am__EXEEXT_TRUE=
16160 am__EXEEXT_FALSE='#'
16161 else
16162 am__EXEEXT_TRUE='#'
16163 am__EXEEXT_FALSE=
16166 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16167 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16170 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16171 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16174 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
16175 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
16176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16178 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
16179 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
16180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16182 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
16183 as_fn_error $? "conditional \"VTV_NO_OBSTACK\" was never defined.
16184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16187 : "${CONFIG_STATUS=./config.status}"
16188 ac_write_fail=0
16189 ac_clean_files_save=$ac_clean_files
16190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16192 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16193 as_write_fail=0
16194 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16195 #! $SHELL
16196 # Generated by $as_me.
16197 # Run this file to recreate the current configuration.
16198 # Compiler output produced by configure, useful for debugging
16199 # configure, is in config.log if it exists.
16201 debug=false
16202 ac_cs_recheck=false
16203 ac_cs_silent=false
16205 SHELL=\${CONFIG_SHELL-$SHELL}
16206 export SHELL
16207 _ASEOF
16208 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16209 ## -------------------- ##
16210 ## M4sh Initialization. ##
16211 ## -------------------- ##
16213 # Be more Bourne compatible
16214 DUALCASE=1; export DUALCASE # for MKS sh
16215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16216 emulate sh
16217 NULLCMD=:
16218 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16219 # is contrary to our usage. Disable this feature.
16220 alias -g '${1+"$@"}'='"$@"'
16221 setopt NO_GLOB_SUBST
16222 else
16223 case `(set -o) 2>/dev/null` in #(
16224 *posix*) :
16225 set -o posix ;; #(
16226 *) :
16228 esac
16232 as_nl='
16234 export as_nl
16235 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16236 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16237 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16238 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16239 # Prefer a ksh shell builtin over an external printf program on Solaris,
16240 # but without wasting forks for bash or zsh.
16241 if test -z "$BASH_VERSION$ZSH_VERSION" \
16242 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16243 as_echo='print -r --'
16244 as_echo_n='print -rn --'
16245 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16246 as_echo='printf %s\n'
16247 as_echo_n='printf %s'
16248 else
16249 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16250 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16251 as_echo_n='/usr/ucb/echo -n'
16252 else
16253 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16254 as_echo_n_body='eval
16255 arg=$1;
16256 case $arg in #(
16257 *"$as_nl"*)
16258 expr "X$arg" : "X\\(.*\\)$as_nl";
16259 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16260 esac;
16261 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16263 export as_echo_n_body
16264 as_echo_n='sh -c $as_echo_n_body as_echo'
16266 export as_echo_body
16267 as_echo='sh -c $as_echo_body as_echo'
16270 # The user is always right.
16271 if test "${PATH_SEPARATOR+set}" != set; then
16272 PATH_SEPARATOR=:
16273 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16274 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16275 PATH_SEPARATOR=';'
16280 # IFS
16281 # We need space, tab and new line, in precisely that order. Quoting is
16282 # there to prevent editors from complaining about space-tab.
16283 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16284 # splitting by setting IFS to empty value.)
16285 IFS=" "" $as_nl"
16287 # Find who we are. Look in the path if we contain no directory separator.
16288 as_myself=
16289 case $0 in #((
16290 *[\\/]* ) as_myself=$0 ;;
16291 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16292 for as_dir in $PATH
16294 IFS=$as_save_IFS
16295 test -z "$as_dir" && as_dir=.
16296 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16297 done
16298 IFS=$as_save_IFS
16301 esac
16302 # We did not find ourselves, most probably we were run as `sh COMMAND'
16303 # in which case we are not to be found in the path.
16304 if test "x$as_myself" = x; then
16305 as_myself=$0
16307 if test ! -f "$as_myself"; then
16308 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16309 exit 1
16312 # Unset variables that we do not need and which cause bugs (e.g. in
16313 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16314 # suppresses any "Segmentation fault" message there. '((' could
16315 # trigger a bug in pdksh 5.2.14.
16316 for as_var in BASH_ENV ENV MAIL MAILPATH
16317 do eval test x\${$as_var+set} = xset \
16318 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16319 done
16320 PS1='$ '
16321 PS2='> '
16322 PS4='+ '
16324 # NLS nuisances.
16325 LC_ALL=C
16326 export LC_ALL
16327 LANGUAGE=C
16328 export LANGUAGE
16330 # CDPATH.
16331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16334 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16335 # ----------------------------------------
16336 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16337 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16338 # script with STATUS, using 1 if that was 0.
16339 as_fn_error ()
16341 as_status=$1; test $as_status -eq 0 && as_status=1
16342 if test "$4"; then
16343 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16344 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16346 $as_echo "$as_me: error: $2" >&2
16347 as_fn_exit $as_status
16348 } # as_fn_error
16351 # as_fn_set_status STATUS
16352 # -----------------------
16353 # Set $? to STATUS, without forking.
16354 as_fn_set_status ()
16356 return $1
16357 } # as_fn_set_status
16359 # as_fn_exit STATUS
16360 # -----------------
16361 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16362 as_fn_exit ()
16364 set +e
16365 as_fn_set_status $1
16366 exit $1
16367 } # as_fn_exit
16369 # as_fn_unset VAR
16370 # ---------------
16371 # Portably unset VAR.
16372 as_fn_unset ()
16374 { eval $1=; unset $1;}
16376 as_unset=as_fn_unset
16377 # as_fn_append VAR VALUE
16378 # ----------------------
16379 # Append the text in VALUE to the end of the definition contained in VAR. Take
16380 # advantage of any shell optimizations that allow amortized linear growth over
16381 # repeated appends, instead of the typical quadratic growth present in naive
16382 # implementations.
16383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16384 eval 'as_fn_append ()
16386 eval $1+=\$2
16388 else
16389 as_fn_append ()
16391 eval $1=\$$1\$2
16393 fi # as_fn_append
16395 # as_fn_arith ARG...
16396 # ------------------
16397 # Perform arithmetic evaluation on the ARGs, and store the result in the
16398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16399 # must be portable across $(()) and expr.
16400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16401 eval 'as_fn_arith ()
16403 as_val=$(( $* ))
16405 else
16406 as_fn_arith ()
16408 as_val=`expr "$@" || test $? -eq 1`
16410 fi # as_fn_arith
16413 if expr a : '\(a\)' >/dev/null 2>&1 &&
16414 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16415 as_expr=expr
16416 else
16417 as_expr=false
16420 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16421 as_basename=basename
16422 else
16423 as_basename=false
16426 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16427 as_dirname=dirname
16428 else
16429 as_dirname=false
16432 as_me=`$as_basename -- "$0" ||
16433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16434 X"$0" : 'X\(//\)$' \| \
16435 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16436 $as_echo X/"$0" |
16437 sed '/^.*\/\([^/][^/]*\)\/*$/{
16438 s//\1/
16441 /^X\/\(\/\/\)$/{
16442 s//\1/
16445 /^X\/\(\/\).*/{
16446 s//\1/
16449 s/.*/./; q'`
16451 # Avoid depending upon Character Ranges.
16452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16455 as_cr_digits='0123456789'
16456 as_cr_alnum=$as_cr_Letters$as_cr_digits
16458 ECHO_C= ECHO_N= ECHO_T=
16459 case `echo -n x` in #(((((
16460 -n*)
16461 case `echo 'xy\c'` in
16462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16463 xy) ECHO_C='\c';;
16464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16465 ECHO_T=' ';;
16466 esac;;
16468 ECHO_N='-n';;
16469 esac
16471 rm -f conf$$ conf$$.exe conf$$.file
16472 if test -d conf$$.dir; then
16473 rm -f conf$$.dir/conf$$.file
16474 else
16475 rm -f conf$$.dir
16476 mkdir conf$$.dir 2>/dev/null
16478 if (echo >conf$$.file) 2>/dev/null; then
16479 if ln -s conf$$.file conf$$ 2>/dev/null; then
16480 as_ln_s='ln -s'
16481 # ... but there are two gotchas:
16482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16484 # In both cases, we have to default to `cp -pR'.
16485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16486 as_ln_s='cp -pR'
16487 elif ln conf$$.file conf$$ 2>/dev/null; then
16488 as_ln_s=ln
16489 else
16490 as_ln_s='cp -pR'
16492 else
16493 as_ln_s='cp -pR'
16495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16496 rmdir conf$$.dir 2>/dev/null
16499 # as_fn_mkdir_p
16500 # -------------
16501 # Create "$as_dir" as a directory, including parents if necessary.
16502 as_fn_mkdir_p ()
16505 case $as_dir in #(
16506 -*) as_dir=./$as_dir;;
16507 esac
16508 test -d "$as_dir" || eval $as_mkdir_p || {
16509 as_dirs=
16510 while :; do
16511 case $as_dir in #(
16512 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16513 *) as_qdir=$as_dir;;
16514 esac
16515 as_dirs="'$as_qdir' $as_dirs"
16516 as_dir=`$as_dirname -- "$as_dir" ||
16517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16518 X"$as_dir" : 'X\(//\)[^/]' \| \
16519 X"$as_dir" : 'X\(//\)$' \| \
16520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16521 $as_echo X"$as_dir" |
16522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16523 s//\1/
16526 /^X\(\/\/\)[^/].*/{
16527 s//\1/
16530 /^X\(\/\/\)$/{
16531 s//\1/
16534 /^X\(\/\).*/{
16535 s//\1/
16538 s/.*/./; q'`
16539 test -d "$as_dir" && break
16540 done
16541 test -z "$as_dirs" || eval "mkdir $as_dirs"
16542 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16545 } # as_fn_mkdir_p
16546 if mkdir -p . 2>/dev/null; then
16547 as_mkdir_p='mkdir -p "$as_dir"'
16548 else
16549 test -d ./-p && rmdir ./-p
16550 as_mkdir_p=false
16554 # as_fn_executable_p FILE
16555 # -----------------------
16556 # Test if FILE is an executable regular file.
16557 as_fn_executable_p ()
16559 test -f "$1" && test -x "$1"
16560 } # as_fn_executable_p
16561 as_test_x='test -x'
16562 as_executable_p=as_fn_executable_p
16564 # Sed expression to map a string onto a valid CPP name.
16565 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16567 # Sed expression to map a string onto a valid variable name.
16568 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16571 exec 6>&1
16572 ## ----------------------------------- ##
16573 ## Main body of $CONFIG_STATUS script. ##
16574 ## ----------------------------------- ##
16575 _ASEOF
16576 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16579 # Save the log message, to keep $0 and so on meaningful, and to
16580 # report actual input values of CONFIG_FILES etc. instead of their
16581 # values after options handling.
16582 ac_log="
16583 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16584 generated by GNU Autoconf 2.69. Invocation command line was
16586 CONFIG_FILES = $CONFIG_FILES
16587 CONFIG_HEADERS = $CONFIG_HEADERS
16588 CONFIG_LINKS = $CONFIG_LINKS
16589 CONFIG_COMMANDS = $CONFIG_COMMANDS
16590 $ $0 $@
16592 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16595 _ACEOF
16597 case $ac_config_files in *"
16598 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16599 esac
16603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16604 # Files that config.status was made for.
16605 config_files="$ac_config_files"
16606 config_commands="$ac_config_commands"
16608 _ACEOF
16610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16611 ac_cs_usage="\
16612 \`$as_me' instantiates files and other configuration actions
16613 from templates according to the current configuration. Unless the files
16614 and actions are specified as TAGs, all are instantiated by default.
16616 Usage: $0 [OPTION]... [TAG]...
16618 -h, --help print this help, then exit
16619 -V, --version print version number and configuration settings, then exit
16620 --config print configuration, then exit
16621 -q, --quiet, --silent
16622 do not print progress messages
16623 -d, --debug don't remove temporary files
16624 --recheck update $as_me by reconfiguring in the same conditions
16625 --file=FILE[:TEMPLATE]
16626 instantiate the configuration file FILE
16628 Configuration files:
16629 $config_files
16631 Configuration commands:
16632 $config_commands
16634 Report bugs to the package provider.
16635 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16636 General help using GNU software: <http://www.gnu.org/gethelp/>."
16638 _ACEOF
16639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16640 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16641 ac_cs_version="\\
16642 GNU Vtable Verification Runtime Library config.status 1.0
16643 configured by $0, generated by GNU Autoconf 2.69,
16644 with options \\"\$ac_cs_config\\"
16646 Copyright (C) 2012 Free Software Foundation, Inc.
16647 This config.status script is free software; the Free Software Foundation
16648 gives unlimited permission to copy, distribute and modify it."
16650 ac_pwd='$ac_pwd'
16651 srcdir='$srcdir'
16652 INSTALL='$INSTALL'
16653 MKDIR_P='$MKDIR_P'
16654 AWK='$AWK'
16655 test -n "\$AWK" || AWK=awk
16656 _ACEOF
16658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16659 # The default lists apply if the user does not specify any file.
16660 ac_need_defaults=:
16661 while test $# != 0
16663 case $1 in
16664 --*=?*)
16665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16666 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16667 ac_shift=:
16669 --*=)
16670 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16671 ac_optarg=
16672 ac_shift=:
16675 ac_option=$1
16676 ac_optarg=$2
16677 ac_shift=shift
16679 esac
16681 case $ac_option in
16682 # Handling of the options.
16683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16684 ac_cs_recheck=: ;;
16685 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16686 $as_echo "$ac_cs_version"; exit ;;
16687 --config | --confi | --conf | --con | --co | --c )
16688 $as_echo "$ac_cs_config"; exit ;;
16689 --debug | --debu | --deb | --de | --d | -d )
16690 debug=: ;;
16691 --file | --fil | --fi | --f )
16692 $ac_shift
16693 case $ac_optarg in
16694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16695 '') as_fn_error $? "missing file argument" ;;
16696 esac
16697 as_fn_append CONFIG_FILES " '$ac_optarg'"
16698 ac_need_defaults=false;;
16699 --he | --h | --help | --hel | -h )
16700 $as_echo "$ac_cs_usage"; exit ;;
16701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16703 ac_cs_silent=: ;;
16705 # This is an error.
16706 -*) as_fn_error $? "unrecognized option: \`$1'
16707 Try \`$0 --help' for more information." ;;
16709 *) as_fn_append ac_config_targets " $1"
16710 ac_need_defaults=false ;;
16712 esac
16713 shift
16714 done
16716 ac_configure_extra_args=
16718 if $ac_cs_silent; then
16719 exec 6>/dev/null
16720 ac_configure_extra_args="$ac_configure_extra_args --silent"
16723 _ACEOF
16724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725 if \$ac_cs_recheck; then
16726 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16727 shift
16728 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16729 CONFIG_SHELL='$SHELL'
16730 export CONFIG_SHELL
16731 exec "\$@"
16734 _ACEOF
16735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16736 exec 5>>config.log
16738 echo
16739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16740 ## Running $as_me. ##
16741 _ASBOX
16742 $as_echo "$ac_log"
16743 } >&5
16745 _ACEOF
16746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 # INIT-COMMANDS
16751 srcdir="$srcdir"
16752 host="$host"
16753 target="$target"
16754 with_multisubdir="$with_multisubdir"
16755 with_multisrctop="$with_multisrctop"
16756 with_target_subdir="$with_target_subdir"
16757 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16758 multi_basedir="$multi_basedir"
16759 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16760 CC="$CC"
16761 CXX="$CXX"
16762 GFORTRAN="$GFORTRAN"
16763 GDC="$GDC"
16764 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16767 # The HP-UX ksh and POSIX shell print the target directory to stdout
16768 # if CDPATH is set.
16769 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16771 sed_quote_subst='$sed_quote_subst'
16772 double_quote_subst='$double_quote_subst'
16773 delay_variable_subst='$delay_variable_subst'
16774 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16775 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16776 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16777 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16778 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16779 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16780 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16781 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16782 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16783 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16784 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16785 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16786 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16787 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16788 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16789 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16790 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16791 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16792 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16793 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16794 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16795 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16796 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16797 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16798 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16799 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16800 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16801 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16802 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16803 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16804 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16805 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16806 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16807 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16808 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16809 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16810 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16811 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16812 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16813 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16814 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16815 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16816 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16817 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16818 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16819 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16820 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16821 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16822 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"`'
16823 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16824 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16825 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16826 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16827 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16828 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16829 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16830 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16831 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16832 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16833 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16834 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16835 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16836 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16837 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16838 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16839 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16840 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16841 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16842 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16843 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16844 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16845 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16846 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16847 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16848 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16849 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16850 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16851 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16852 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16853 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16854 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16855 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16856 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16857 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16858 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16859 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16860 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16861 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16862 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16863 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16864 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16865 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16866 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16867 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16868 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16869 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16870 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16871 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16872 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16873 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16874 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16875 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16876 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16877 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16878 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16879 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16880 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16881 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16882 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16883 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16884 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16885 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16886 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16887 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16888 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16889 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16890 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16891 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16892 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16893 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16894 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16895 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16896 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16897 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16898 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16899 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16900 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16901 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16902 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16903 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16904 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16905 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16906 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16907 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16908 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16909 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16910 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16911 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16912 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16913 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16914 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16915 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16916 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16917 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16918 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16919 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16920 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16921 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16922 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16923 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16924 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16925 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16926 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16927 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16928 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16929 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16930 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16931 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16932 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16933 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16934 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16935 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16936 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16937 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16938 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16939 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16940 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16941 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16942 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16943 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16944 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16945 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16946 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16947 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16948 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16950 LTCC='$LTCC'
16951 LTCFLAGS='$LTCFLAGS'
16952 compiler='$compiler_DEFAULT'
16954 # A function that is used when there is no print builtin or printf.
16955 func_fallback_echo ()
16957 eval 'cat <<_LTECHO_EOF
16959 _LTECHO_EOF'
16962 # Quote evaled strings.
16963 for var in SHELL \
16964 ECHO \
16965 SED \
16966 GREP \
16967 EGREP \
16968 FGREP \
16969 LD \
16970 NM \
16971 LN_S \
16972 lt_SP2NL \
16973 lt_NL2SP \
16974 reload_flag \
16975 OBJDUMP \
16976 deplibs_check_method \
16977 file_magic_cmd \
16978 AR \
16979 AR_FLAGS \
16980 STRIP \
16981 RANLIB \
16982 CC \
16983 CFLAGS \
16984 compiler \
16985 lt_cv_sys_global_symbol_pipe \
16986 lt_cv_sys_global_symbol_to_cdecl \
16987 lt_cv_sys_global_symbol_to_c_name_address \
16988 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16989 lt_prog_compiler_no_builtin_flag \
16990 lt_prog_compiler_wl \
16991 lt_prog_compiler_pic \
16992 lt_prog_compiler_static \
16993 lt_cv_prog_compiler_c_o \
16994 need_locks \
16995 DSYMUTIL \
16996 NMEDIT \
16997 LIPO \
16998 OTOOL \
16999 OTOOL64 \
17000 shrext_cmds \
17001 export_dynamic_flag_spec \
17002 whole_archive_flag_spec \
17003 compiler_needs_object \
17004 with_gnu_ld \
17005 allow_undefined_flag \
17006 no_undefined_flag \
17007 hardcode_libdir_flag_spec \
17008 hardcode_libdir_flag_spec_ld \
17009 hardcode_libdir_separator \
17010 fix_srcfile_path \
17011 exclude_expsyms \
17012 include_expsyms \
17013 file_list_spec \
17014 variables_saved_for_relink \
17015 libname_spec \
17016 library_names_spec \
17017 soname_spec \
17018 install_override_mode \
17019 finish_eval \
17020 old_striplib \
17021 striplib \
17022 compiler_lib_search_dirs \
17023 predep_objects \
17024 postdep_objects \
17025 predeps \
17026 postdeps \
17027 compiler_lib_search_path \
17028 LD_CXX \
17029 reload_flag_CXX \
17030 compiler_CXX \
17031 lt_prog_compiler_no_builtin_flag_CXX \
17032 lt_prog_compiler_wl_CXX \
17033 lt_prog_compiler_pic_CXX \
17034 lt_prog_compiler_static_CXX \
17035 lt_cv_prog_compiler_c_o_CXX \
17036 export_dynamic_flag_spec_CXX \
17037 whole_archive_flag_spec_CXX \
17038 compiler_needs_object_CXX \
17039 with_gnu_ld_CXX \
17040 allow_undefined_flag_CXX \
17041 no_undefined_flag_CXX \
17042 hardcode_libdir_flag_spec_CXX \
17043 hardcode_libdir_flag_spec_ld_CXX \
17044 hardcode_libdir_separator_CXX \
17045 fix_srcfile_path_CXX \
17046 exclude_expsyms_CXX \
17047 include_expsyms_CXX \
17048 file_list_spec_CXX \
17049 compiler_lib_search_dirs_CXX \
17050 predep_objects_CXX \
17051 postdep_objects_CXX \
17052 predeps_CXX \
17053 postdeps_CXX \
17054 compiler_lib_search_path_CXX; do
17055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17056 *[\\\\\\\`\\"\\\$]*)
17057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17062 esac
17063 done
17065 # Double-quote double-evaled strings.
17066 for var in reload_cmds \
17067 old_postinstall_cmds \
17068 old_postuninstall_cmds \
17069 old_archive_cmds \
17070 extract_expsyms_cmds \
17071 old_archive_from_new_cmds \
17072 old_archive_from_expsyms_cmds \
17073 archive_cmds \
17074 archive_expsym_cmds \
17075 module_cmds \
17076 module_expsym_cmds \
17077 export_symbols_cmds \
17078 prelink_cmds \
17079 postinstall_cmds \
17080 postuninstall_cmds \
17081 finish_cmds \
17082 sys_lib_search_path_spec \
17083 sys_lib_dlsearch_path_spec \
17084 reload_cmds_CXX \
17085 old_archive_cmds_CXX \
17086 old_archive_from_new_cmds_CXX \
17087 old_archive_from_expsyms_cmds_CXX \
17088 archive_cmds_CXX \
17089 archive_expsym_cmds_CXX \
17090 module_cmds_CXX \
17091 module_expsym_cmds_CXX \
17092 export_symbols_cmds_CXX \
17093 prelink_cmds_CXX; do
17094 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17095 *[\\\\\\\`\\"\\\$]*)
17096 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17099 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17101 esac
17102 done
17104 ac_aux_dir='$ac_aux_dir'
17105 xsi_shell='$xsi_shell'
17106 lt_shell_append='$lt_shell_append'
17108 # See if we are running on zsh, and set the options which allow our
17109 # commands through without removal of \ escapes INIT.
17110 if test -n "\${ZSH_VERSION+set}" ; then
17111 setopt NO_GLOB_SUBST
17115 PACKAGE='$PACKAGE'
17116 VERSION='$VERSION'
17117 TIMESTAMP='$TIMESTAMP'
17118 RM='$RM'
17119 ofile='$ofile'
17126 _ACEOF
17128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17130 # Handling of arguments.
17131 for ac_config_target in $ac_config_targets
17133 case $ac_config_target in
17134 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17135 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17136 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17137 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17138 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17140 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17141 esac
17142 done
17145 # If the user did not use the arguments to specify the items to instantiate,
17146 # then the envvar interface is used. Set only those that are not.
17147 # We use the long form for the default assignment because of an extremely
17148 # bizarre bug on SunOS 4.1.3.
17149 if $ac_need_defaults; then
17150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17154 # Have a temporary directory for convenience. Make it in the build tree
17155 # simply because there is no reason against having it here, and in addition,
17156 # creating and moving files from /tmp can sometimes cause problems.
17157 # Hook for its removal unless debugging.
17158 # Note that there is a small window in which the directory will not be cleaned:
17159 # after its creation but before its name has been assigned to `$tmp'.
17160 $debug ||
17162 tmp= ac_tmp=
17163 trap 'exit_status=$?
17164 : "${ac_tmp:=$tmp}"
17165 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17167 trap 'as_fn_exit 1' 1 2 13 15
17169 # Create a (secure) tmp directory for tmp files.
17172 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17173 test -d "$tmp"
17174 } ||
17176 tmp=./conf$$-$RANDOM
17177 (umask 077 && mkdir "$tmp")
17178 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17179 ac_tmp=$tmp
17181 # Set up the scripts for CONFIG_FILES section.
17182 # No need to generate them if there are no CONFIG_FILES.
17183 # This happens for instance with `./config.status config.h'.
17184 if test -n "$CONFIG_FILES"; then
17187 ac_cr=`echo X | tr X '\015'`
17188 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17189 # But we know of no other shell where ac_cr would be empty at this
17190 # point, so we can use a bashism as a fallback.
17191 if test "x$ac_cr" = x; then
17192 eval ac_cr=\$\'\\r\'
17194 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17195 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17196 ac_cs_awk_cr='\\r'
17197 else
17198 ac_cs_awk_cr=$ac_cr
17201 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17202 _ACEOF
17206 echo "cat >conf$$subs.awk <<_ACEOF" &&
17207 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17208 echo "_ACEOF"
17209 } >conf$$subs.sh ||
17210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17211 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17212 ac_delim='%!_!# '
17213 for ac_last_try in false false false false false :; do
17214 . ./conf$$subs.sh ||
17215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17217 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17218 if test $ac_delim_n = $ac_delim_num; then
17219 break
17220 elif $ac_last_try; then
17221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17222 else
17223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17225 done
17226 rm -f conf$$subs.sh
17228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17229 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17230 _ACEOF
17231 sed -n '
17233 s/^/S["/; s/!.*/"]=/
17236 s/^[^!]*!//
17237 :repl
17238 t repl
17239 s/'"$ac_delim"'$//
17240 t delim
17243 s/\(.\{148\}\)..*/\1/
17244 t more1
17245 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17248 b repl
17249 :more1
17250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17253 s/.\{148\}//
17254 t nl
17255 :delim
17257 s/\(.\{148\}\)..*/\1/
17258 t more2
17259 s/["\\]/\\&/g; s/^/"/; s/$/"/
17262 :more2
17263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17266 s/.\{148\}//
17267 t delim
17268 ' <conf$$subs.awk | sed '
17269 /^[^""]/{
17271 s/\n//
17273 ' >>$CONFIG_STATUS || ac_write_fail=1
17274 rm -f conf$$subs.awk
17275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17276 _ACAWK
17277 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17278 for (key in S) S_is_set[key] = 1
17279 FS = "\a"
17283 line = $ 0
17284 nfields = split(line, field, "@")
17285 substed = 0
17286 len = length(field[1])
17287 for (i = 2; i < nfields; i++) {
17288 key = field[i]
17289 keylen = length(key)
17290 if (S_is_set[key]) {
17291 value = S[key]
17292 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17293 len += length(value) + length(field[++i])
17294 substed = 1
17295 } else
17296 len += 1 + keylen
17299 print line
17302 _ACAWK
17303 _ACEOF
17304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17305 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17306 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17307 else
17309 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17310 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17311 _ACEOF
17313 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17314 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17315 # trailing colons and then remove the whole line if VPATH becomes empty
17316 # (actually we leave an empty line to preserve line numbers).
17317 if test "x$srcdir" = x.; then
17318 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17320 s///
17321 s/^/:/
17322 s/[ ]*$/:/
17323 s/:\$(srcdir):/:/g
17324 s/:\${srcdir}:/:/g
17325 s/:@srcdir@:/:/g
17326 s/^:*//
17327 s/:*$//
17329 s/\(=[ ]*\).*/\1/
17331 s/\n//
17332 s/^[^=]*=[ ]*$//
17336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17337 fi # test -n "$CONFIG_FILES"
17340 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17341 shift
17342 for ac_tag
17344 case $ac_tag in
17345 :[FHLC]) ac_mode=$ac_tag; continue;;
17346 esac
17347 case $ac_mode$ac_tag in
17348 :[FHL]*:*);;
17349 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17350 :[FH]-) ac_tag=-:-;;
17351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17352 esac
17353 ac_save_IFS=$IFS
17354 IFS=:
17355 set x $ac_tag
17356 IFS=$ac_save_IFS
17357 shift
17358 ac_file=$1
17359 shift
17361 case $ac_mode in
17362 :L) ac_source=$1;;
17363 :[FH])
17364 ac_file_inputs=
17365 for ac_f
17367 case $ac_f in
17368 -) ac_f="$ac_tmp/stdin";;
17369 *) # Look for the file first in the build tree, then in the source tree
17370 # (if the path is not absolute). The absolute path cannot be DOS-style,
17371 # because $ac_f cannot contain `:'.
17372 test -f "$ac_f" ||
17373 case $ac_f in
17374 [\\/$]*) false;;
17375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17376 esac ||
17377 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17378 esac
17379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17380 as_fn_append ac_file_inputs " '$ac_f'"
17381 done
17383 # Let's still pretend it is `configure' which instantiates (i.e., don't
17384 # use $as_me), people would be surprised to read:
17385 # /* config.h. Generated by config.status. */
17386 configure_input='Generated from '`
17387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17388 `' by configure.'
17389 if test x"$ac_file" != x-; then
17390 configure_input="$ac_file. $configure_input"
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17392 $as_echo "$as_me: creating $ac_file" >&6;}
17394 # Neutralize special characters interpreted by sed in replacement strings.
17395 case $configure_input in #(
17396 *\&* | *\|* | *\\* )
17397 ac_sed_conf_input=`$as_echo "$configure_input" |
17398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17399 *) ac_sed_conf_input=$configure_input;;
17400 esac
17402 case $ac_tag in
17403 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17405 esac
17407 esac
17409 ac_dir=`$as_dirname -- "$ac_file" ||
17410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17411 X"$ac_file" : 'X\(//\)[^/]' \| \
17412 X"$ac_file" : 'X\(//\)$' \| \
17413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17414 $as_echo X"$ac_file" |
17415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17416 s//\1/
17419 /^X\(\/\/\)[^/].*/{
17420 s//\1/
17423 /^X\(\/\/\)$/{
17424 s//\1/
17427 /^X\(\/\).*/{
17428 s//\1/
17431 s/.*/./; q'`
17432 as_dir="$ac_dir"; as_fn_mkdir_p
17433 ac_builddir=.
17435 case "$ac_dir" in
17436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17439 # A ".." for each directory in $ac_dir_suffix.
17440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17441 case $ac_top_builddir_sub in
17442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17444 esac ;;
17445 esac
17446 ac_abs_top_builddir=$ac_pwd
17447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17448 # for backward compatibility:
17449 ac_top_builddir=$ac_top_build_prefix
17451 case $srcdir in
17452 .) # We are building in place.
17453 ac_srcdir=.
17454 ac_top_srcdir=$ac_top_builddir_sub
17455 ac_abs_top_srcdir=$ac_pwd ;;
17456 [\\/]* | ?:[\\/]* ) # Absolute name.
17457 ac_srcdir=$srcdir$ac_dir_suffix;
17458 ac_top_srcdir=$srcdir
17459 ac_abs_top_srcdir=$srcdir ;;
17460 *) # Relative name.
17461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17462 ac_top_srcdir=$ac_top_build_prefix$srcdir
17463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17464 esac
17465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17468 case $ac_mode in
17471 # CONFIG_FILE
17474 case $INSTALL in
17475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17477 esac
17478 ac_MKDIR_P=$MKDIR_P
17479 case $MKDIR_P in
17480 [\\/$]* | ?:[\\/]* ) ;;
17481 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17482 esac
17483 _ACEOF
17485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17486 # If the template does not know about datarootdir, expand it.
17487 # FIXME: This hack should be removed a few years after 2.60.
17488 ac_datarootdir_hack=; ac_datarootdir_seen=
17489 ac_sed_dataroot='
17490 /datarootdir/ {
17494 /@datadir@/p
17495 /@docdir@/p
17496 /@infodir@/p
17497 /@localedir@/p
17498 /@mandir@/p'
17499 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17500 *datarootdir*) ac_datarootdir_seen=yes;;
17501 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17503 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17504 _ACEOF
17505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17506 ac_datarootdir_hack='
17507 s&@datadir@&$datadir&g
17508 s&@docdir@&$docdir&g
17509 s&@infodir@&$infodir&g
17510 s&@localedir@&$localedir&g
17511 s&@mandir@&$mandir&g
17512 s&\\\${datarootdir}&$datarootdir&g' ;;
17513 esac
17514 _ACEOF
17516 # Neutralize VPATH when `$srcdir' = `.'.
17517 # Shell code in configure.ac might set extrasub.
17518 # FIXME: do we really want to maintain this feature?
17519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17520 ac_sed_extra="$ac_vpsub
17521 $extrasub
17522 _ACEOF
17523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17526 s|@configure_input@|$ac_sed_conf_input|;t t
17527 s&@top_builddir@&$ac_top_builddir_sub&;t t
17528 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17529 s&@srcdir@&$ac_srcdir&;t t
17530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17531 s&@top_srcdir@&$ac_top_srcdir&;t t
17532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17533 s&@builddir@&$ac_builddir&;t t
17534 s&@abs_builddir@&$ac_abs_builddir&;t t
17535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17536 s&@INSTALL@&$ac_INSTALL&;t t
17537 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17538 $ac_datarootdir_hack
17540 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17541 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17544 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17546 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17548 which seems to be undefined. Please make sure it is defined" >&5
17549 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17550 which seems to be undefined. Please make sure it is defined" >&2;}
17552 rm -f "$ac_tmp/stdin"
17553 case $ac_file in
17554 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17555 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17556 esac \
17557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17561 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17562 $as_echo "$as_me: executing $ac_file commands" >&6;}
17564 esac
17567 case $ac_file$ac_mode in
17568 "default-1":C)
17569 # Only add multilib support code if we just rebuilt the top-level
17570 # Makefile.
17571 case " $CONFIG_FILES " in
17572 *" Makefile "*)
17573 ac_file=Makefile . ${multi_basedir}/config-ml.in
17575 esac ;;
17576 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17577 # Older Autoconf quotes --file arguments for eval, but not when files
17578 # are listed without --file. Let's play safe and only enable the eval
17579 # if we detect the quoting.
17580 case $CONFIG_FILES in
17581 *\'*) eval set x "$CONFIG_FILES" ;;
17582 *) set x $CONFIG_FILES ;;
17583 esac
17584 shift
17585 for mf
17587 # Strip MF so we end up with the name of the file.
17588 mf=`echo "$mf" | sed -e 's/:.*$//'`
17589 # Check whether this is an Automake generated Makefile or not.
17590 # We used to match only the files named 'Makefile.in', but
17591 # some people rename them; so instead we look at the file content.
17592 # Grep'ing the first line is not enough: some people post-process
17593 # each Makefile.in and add a new line on top of each file to say so.
17594 # Grep'ing the whole file is not good either: AIX grep has a line
17595 # limit of 2048, but all sed's we know have understand at least 4000.
17596 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17597 dirpart=`$as_dirname -- "$mf" ||
17598 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17599 X"$mf" : 'X\(//\)[^/]' \| \
17600 X"$mf" : 'X\(//\)$' \| \
17601 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17602 $as_echo X"$mf" |
17603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17604 s//\1/
17607 /^X\(\/\/\)[^/].*/{
17608 s//\1/
17611 /^X\(\/\/\)$/{
17612 s//\1/
17615 /^X\(\/\).*/{
17616 s//\1/
17619 s/.*/./; q'`
17620 else
17621 continue
17623 # Extract the definition of DEPDIR, am__include, and am__quote
17624 # from the Makefile without running 'make'.
17625 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17626 test -z "$DEPDIR" && continue
17627 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17628 test -z "$am__include" && continue
17629 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17630 # Find all dependency output files, they are included files with
17631 # $(DEPDIR) in their names. We invoke sed twice because it is the
17632 # simplest approach to changing $(DEPDIR) to its actual value in the
17633 # expansion.
17634 for file in `sed -n "
17635 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17636 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17637 # Make sure the directory exists.
17638 test -f "$dirpart/$file" && continue
17639 fdir=`$as_dirname -- "$file" ||
17640 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17641 X"$file" : 'X\(//\)[^/]' \| \
17642 X"$file" : 'X\(//\)$' \| \
17643 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17644 $as_echo X"$file" |
17645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17646 s//\1/
17649 /^X\(\/\/\)[^/].*/{
17650 s//\1/
17653 /^X\(\/\/\)$/{
17654 s//\1/
17657 /^X\(\/\).*/{
17658 s//\1/
17661 s/.*/./; q'`
17662 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17663 # echo "creating $dirpart/$file"
17664 echo '# dummy' > "$dirpart/$file"
17665 done
17666 done
17669 "libtool":C)
17671 # See if we are running on zsh, and set the options which allow our
17672 # commands through without removal of \ escapes.
17673 if test -n "${ZSH_VERSION+set}" ; then
17674 setopt NO_GLOB_SUBST
17677 cfgfile="${ofile}T"
17678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17679 $RM "$cfgfile"
17681 cat <<_LT_EOF >> "$cfgfile"
17682 #! $SHELL
17684 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17685 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17689 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17690 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17691 # Written by Gordon Matzigkeit, 1996
17693 # This file is part of GNU Libtool.
17695 # GNU Libtool is free software; you can redistribute it and/or
17696 # modify it under the terms of the GNU General Public License as
17697 # published by the Free Software Foundation; either version 2 of
17698 # the License, or (at your option) any later version.
17700 # As a special exception to the GNU General Public License,
17701 # if you distribute this file as part of a program or library that
17702 # is built using GNU Libtool, you may include this file under the
17703 # same distribution terms that you use for the rest of that program.
17705 # GNU Libtool is distributed in the hope that it will be useful,
17706 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17707 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17708 # GNU General Public License for more details.
17710 # You should have received a copy of the GNU General Public License
17711 # along with GNU Libtool; see the file COPYING. If not, a copy
17712 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17713 # obtained by writing to the Free Software Foundation, Inc.,
17714 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17717 # The names of the tagged configurations supported by this script.
17718 available_tags="CXX "
17720 # ### BEGIN LIBTOOL CONFIG
17722 # Which release of libtool.m4 was used?
17723 macro_version=$macro_version
17724 macro_revision=$macro_revision
17726 # Whether or not to build shared libraries.
17727 build_libtool_libs=$enable_shared
17729 # Whether or not to build static libraries.
17730 build_old_libs=$enable_static
17732 # What type of objects to build.
17733 pic_mode=$pic_mode
17735 # Whether or not to optimize for fast installation.
17736 fast_install=$enable_fast_install
17738 # Shell to use when invoking shell scripts.
17739 SHELL=$lt_SHELL
17741 # An echo program that protects backslashes.
17742 ECHO=$lt_ECHO
17744 # The host system.
17745 host_alias=$host_alias
17746 host=$host
17747 host_os=$host_os
17749 # The build system.
17750 build_alias=$build_alias
17751 build=$build
17752 build_os=$build_os
17754 # A sed program that does not truncate output.
17755 SED=$lt_SED
17757 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17758 Xsed="\$SED -e 1s/^X//"
17760 # A grep program that handles long lines.
17761 GREP=$lt_GREP
17763 # An ERE matcher.
17764 EGREP=$lt_EGREP
17766 # A literal string matcher.
17767 FGREP=$lt_FGREP
17769 # A BSD- or MS-compatible name lister.
17770 NM=$lt_NM
17772 # Whether we need soft or hard links.
17773 LN_S=$lt_LN_S
17775 # What is the maximum length of a command?
17776 max_cmd_len=$max_cmd_len
17778 # Object file suffix (normally "o").
17779 objext=$ac_objext
17781 # Executable file suffix (normally "").
17782 exeext=$exeext
17784 # whether the shell understands "unset".
17785 lt_unset=$lt_unset
17787 # turn spaces into newlines.
17788 SP2NL=$lt_lt_SP2NL
17790 # turn newlines into spaces.
17791 NL2SP=$lt_lt_NL2SP
17793 # An object symbol dumper.
17794 OBJDUMP=$lt_OBJDUMP
17796 # Method to check whether dependent libraries are shared objects.
17797 deplibs_check_method=$lt_deplibs_check_method
17799 # Command to use when deplibs_check_method == "file_magic".
17800 file_magic_cmd=$lt_file_magic_cmd
17802 # The archiver.
17803 AR=$lt_AR
17804 AR_FLAGS=$lt_AR_FLAGS
17806 # A symbol stripping program.
17807 STRIP=$lt_STRIP
17809 # Commands used to install an old-style archive.
17810 RANLIB=$lt_RANLIB
17811 old_postinstall_cmds=$lt_old_postinstall_cmds
17812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17814 # Whether to use a lock for old archive extraction.
17815 lock_old_archive_extraction=$lock_old_archive_extraction
17817 # A C compiler.
17818 LTCC=$lt_CC
17820 # LTCC compiler flags.
17821 LTCFLAGS=$lt_CFLAGS
17823 # Take the output of nm and produce a listing of raw symbols and C names.
17824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17826 # Transform the output of nm in a proper C declaration.
17827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17829 # Transform the output of nm in a C name address pair.
17830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17832 # Transform the output of nm in a C name address pair when lib prefix is needed.
17833 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17835 # The name of the directory that contains temporary libtool files.
17836 objdir=$objdir
17838 # Used to examine libraries when file_magic_cmd begins with "file".
17839 MAGIC_CMD=$MAGIC_CMD
17841 # Must we lock files when doing compilation?
17842 need_locks=$lt_need_locks
17844 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17845 DSYMUTIL=$lt_DSYMUTIL
17847 # Tool to change global to local symbols on Mac OS X.
17848 NMEDIT=$lt_NMEDIT
17850 # Tool to manipulate fat objects and archives on Mac OS X.
17851 LIPO=$lt_LIPO
17853 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17854 OTOOL=$lt_OTOOL
17856 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17857 OTOOL64=$lt_OTOOL64
17859 # Old archive suffix (normally "a").
17860 libext=$libext
17862 # Shared library suffix (normally ".so").
17863 shrext_cmds=$lt_shrext_cmds
17865 # The commands to extract the exported symbol list from a shared archive.
17866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17868 # Variables whose values should be saved in libtool wrapper scripts and
17869 # restored at link time.
17870 variables_saved_for_relink=$lt_variables_saved_for_relink
17872 # Do we need the "lib" prefix for modules?
17873 need_lib_prefix=$need_lib_prefix
17875 # Do we need a version for libraries?
17876 need_version=$need_version
17878 # Library versioning type.
17879 version_type=$version_type
17881 # Shared library runtime path variable.
17882 runpath_var=$runpath_var
17884 # Shared library path variable.
17885 shlibpath_var=$shlibpath_var
17887 # Is shlibpath searched before the hard-coded library search path?
17888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17890 # Format of library name prefix.
17891 libname_spec=$lt_libname_spec
17893 # List of archive names. First name is the real one, the rest are links.
17894 # The last name is the one that the linker finds with -lNAME
17895 library_names_spec=$lt_library_names_spec
17897 # The coded name of the library, if different from the real name.
17898 soname_spec=$lt_soname_spec
17900 # Permission mode override for installation of shared libraries.
17901 install_override_mode=$lt_install_override_mode
17903 # Command to use after installation of a shared archive.
17904 postinstall_cmds=$lt_postinstall_cmds
17906 # Command to use after uninstallation of a shared archive.
17907 postuninstall_cmds=$lt_postuninstall_cmds
17909 # Commands used to finish a libtool library installation in a directory.
17910 finish_cmds=$lt_finish_cmds
17912 # As "finish_cmds", except a single script fragment to be evaled but
17913 # not shown.
17914 finish_eval=$lt_finish_eval
17916 # Whether we should hardcode library paths into libraries.
17917 hardcode_into_libs=$hardcode_into_libs
17919 # Compile-time system search path for libraries.
17920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17922 # Run-time system search path for libraries.
17923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17925 # Whether dlopen is supported.
17926 dlopen_support=$enable_dlopen
17928 # Whether dlopen of programs is supported.
17929 dlopen_self=$enable_dlopen_self
17931 # Whether dlopen of statically linked programs is supported.
17932 dlopen_self_static=$enable_dlopen_self_static
17934 # Commands to strip libraries.
17935 old_striplib=$lt_old_striplib
17936 striplib=$lt_striplib
17939 # The linker used to build libraries.
17940 LD=$lt_LD
17942 # How to create reloadable object files.
17943 reload_flag=$lt_reload_flag
17944 reload_cmds=$lt_reload_cmds
17946 # Commands used to build an old-style archive.
17947 old_archive_cmds=$lt_old_archive_cmds
17949 # A language specific compiler.
17950 CC=$lt_compiler
17952 # Is the compiler the GNU compiler?
17953 with_gcc=$GCC
17955 # Compiler flag to turn off builtin functions.
17956 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17958 # How to pass a linker flag through the compiler.
17959 wl=$lt_lt_prog_compiler_wl
17961 # Additional compiler flags for building library objects.
17962 pic_flag=$lt_lt_prog_compiler_pic
17964 # Compiler flag to prevent dynamic linking.
17965 link_static_flag=$lt_lt_prog_compiler_static
17967 # Does compiler simultaneously support -c and -o options?
17968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17970 # Whether or not to add -lc for building shared libraries.
17971 build_libtool_need_lc=$archive_cmds_need_lc
17973 # Whether or not to disallow shared libs when runtime libs are static.
17974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17976 # Compiler flag to allow reflexive dlopens.
17977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17979 # Compiler flag to generate shared objects directly from archives.
17980 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17982 # Whether the compiler copes with passing no objects directly.
17983 compiler_needs_object=$lt_compiler_needs_object
17985 # Create an old-style archive from a shared archive.
17986 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17988 # Create a temporary old-style archive to link instead of a shared archive.
17989 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17991 # Commands used to build a shared archive.
17992 archive_cmds=$lt_archive_cmds
17993 archive_expsym_cmds=$lt_archive_expsym_cmds
17995 # Commands used to build a loadable module if different from building
17996 # a shared archive.
17997 module_cmds=$lt_module_cmds
17998 module_expsym_cmds=$lt_module_expsym_cmds
18000 # Whether we are building with GNU ld or not.
18001 with_gnu_ld=$lt_with_gnu_ld
18003 # Flag that allows shared libraries with undefined symbols to be built.
18004 allow_undefined_flag=$lt_allow_undefined_flag
18006 # Flag that enforces no undefined symbols.
18007 no_undefined_flag=$lt_no_undefined_flag
18009 # Flag to hardcode \$libdir into a binary during linking.
18010 # This must work even if \$libdir does not exist
18011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18013 # If ld is used when linking, flag to hardcode \$libdir into a binary
18014 # during linking. This must work even if \$libdir does not exist.
18015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18017 # Whether we need a single "-rpath" flag with a separated argument.
18018 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18021 # DIR into the resulting binary.
18022 hardcode_direct=$hardcode_direct
18024 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18025 # DIR into the resulting binary and the resulting library dependency is
18026 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18027 # library is relocated.
18028 hardcode_direct_absolute=$hardcode_direct_absolute
18030 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18031 # into the resulting binary.
18032 hardcode_minus_L=$hardcode_minus_L
18034 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18035 # into the resulting binary.
18036 hardcode_shlibpath_var=$hardcode_shlibpath_var
18038 # Set to "yes" if building a shared library automatically hardcodes DIR
18039 # into the library and all subsequent libraries and executables linked
18040 # against it.
18041 hardcode_automatic=$hardcode_automatic
18043 # Set to yes if linker adds runtime paths of dependent libraries
18044 # to runtime path list.
18045 inherit_rpath=$inherit_rpath
18047 # Whether libtool must link a program against all its dependency libraries.
18048 link_all_deplibs=$link_all_deplibs
18050 # Fix the shell variable \$srcfile for the compiler.
18051 fix_srcfile_path=$lt_fix_srcfile_path
18053 # Set to "yes" if exported symbols are required.
18054 always_export_symbols=$always_export_symbols
18056 # The commands to list exported symbols.
18057 export_symbols_cmds=$lt_export_symbols_cmds
18059 # Symbols that should not be listed in the preloaded symbols.
18060 exclude_expsyms=$lt_exclude_expsyms
18062 # Symbols that must always be exported.
18063 include_expsyms=$lt_include_expsyms
18065 # Commands necessary for linking programs (against libraries) with templates.
18066 prelink_cmds=$lt_prelink_cmds
18068 # Specify filename containing input files.
18069 file_list_spec=$lt_file_list_spec
18071 # How to hardcode a shared library path into an executable.
18072 hardcode_action=$hardcode_action
18074 # The directories searched by this compiler when creating a shared library.
18075 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18077 # Dependencies to place before and after the objects being linked to
18078 # create a shared library.
18079 predep_objects=$lt_predep_objects
18080 postdep_objects=$lt_postdep_objects
18081 predeps=$lt_predeps
18082 postdeps=$lt_postdeps
18084 # The library search path used internally by the compiler when linking
18085 # a shared library.
18086 compiler_lib_search_path=$lt_compiler_lib_search_path
18088 # ### END LIBTOOL CONFIG
18090 _LT_EOF
18092 case $host_os in
18093 aix3*)
18094 cat <<\_LT_EOF >> "$cfgfile"
18095 # AIX sometimes has problems with the GCC collect2 program. For some
18096 # reason, if we set the COLLECT_NAMES environment variable, the problems
18097 # vanish in a puff of smoke.
18098 if test "X${COLLECT_NAMES+set}" != Xset; then
18099 COLLECT_NAMES=
18100 export COLLECT_NAMES
18102 _LT_EOF
18104 esac
18107 ltmain="$ac_aux_dir/ltmain.sh"
18110 # We use sed instead of cat because bash on DJGPP gets confused if
18111 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18112 # text mode, it properly converts lines to CR/LF. This bash problem
18113 # is reportedly fixed, but why not run on old versions too?
18114 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18115 || (rm -f "$cfgfile"; exit 1)
18117 case $xsi_shell in
18118 yes)
18119 cat << \_LT_EOF >> "$cfgfile"
18121 # func_dirname file append nondir_replacement
18122 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18123 # otherwise set result to NONDIR_REPLACEMENT.
18124 func_dirname ()
18126 case ${1} in
18127 */*) func_dirname_result="${1%/*}${2}" ;;
18128 * ) func_dirname_result="${3}" ;;
18129 esac
18132 # func_basename file
18133 func_basename ()
18135 func_basename_result="${1##*/}"
18138 # func_dirname_and_basename file append nondir_replacement
18139 # perform func_basename and func_dirname in a single function
18140 # call:
18141 # dirname: Compute the dirname of FILE. If nonempty,
18142 # add APPEND to the result, otherwise set result
18143 # to NONDIR_REPLACEMENT.
18144 # value returned in "$func_dirname_result"
18145 # basename: Compute filename of FILE.
18146 # value retuned in "$func_basename_result"
18147 # Implementation must be kept synchronized with func_dirname
18148 # and func_basename. For efficiency, we do not delegate to
18149 # those functions but instead duplicate the functionality here.
18150 func_dirname_and_basename ()
18152 case ${1} in
18153 */*) func_dirname_result="${1%/*}${2}" ;;
18154 * ) func_dirname_result="${3}" ;;
18155 esac
18156 func_basename_result="${1##*/}"
18159 # func_stripname prefix suffix name
18160 # strip PREFIX and SUFFIX off of NAME.
18161 # PREFIX and SUFFIX must not contain globbing or regex special
18162 # characters, hashes, percent signs, but SUFFIX may contain a leading
18163 # dot (in which case that matches only a dot).
18164 func_stripname ()
18166 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18167 # positional parameters, so assign one to ordinary parameter first.
18168 func_stripname_result=${3}
18169 func_stripname_result=${func_stripname_result#"${1}"}
18170 func_stripname_result=${func_stripname_result%"${2}"}
18173 # func_opt_split
18174 func_opt_split ()
18176 func_opt_split_opt=${1%%=*}
18177 func_opt_split_arg=${1#*=}
18180 # func_lo2o object
18181 func_lo2o ()
18183 case ${1} in
18184 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18185 *) func_lo2o_result=${1} ;;
18186 esac
18189 # func_xform libobj-or-source
18190 func_xform ()
18192 func_xform_result=${1%.*}.lo
18195 # func_arith arithmetic-term...
18196 func_arith ()
18198 func_arith_result=$(( $* ))
18201 # func_len string
18202 # STRING may not start with a hyphen.
18203 func_len ()
18205 func_len_result=${#1}
18208 _LT_EOF
18210 *) # Bourne compatible functions.
18211 cat << \_LT_EOF >> "$cfgfile"
18213 # func_dirname file append nondir_replacement
18214 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18215 # otherwise set result to NONDIR_REPLACEMENT.
18216 func_dirname ()
18218 # Extract subdirectory from the argument.
18219 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18220 if test "X$func_dirname_result" = "X${1}"; then
18221 func_dirname_result="${3}"
18222 else
18223 func_dirname_result="$func_dirname_result${2}"
18227 # func_basename file
18228 func_basename ()
18230 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18234 # func_stripname prefix suffix name
18235 # strip PREFIX and SUFFIX off of NAME.
18236 # PREFIX and SUFFIX must not contain globbing or regex special
18237 # characters, hashes, percent signs, but SUFFIX may contain a leading
18238 # dot (in which case that matches only a dot).
18239 # func_strip_suffix prefix name
18240 func_stripname ()
18242 case ${2} in
18243 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18244 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18245 esac
18248 # sed scripts:
18249 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18250 my_sed_long_arg='1s/^-[^=]*=//'
18252 # func_opt_split
18253 func_opt_split ()
18255 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18256 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18259 # func_lo2o object
18260 func_lo2o ()
18262 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18265 # func_xform libobj-or-source
18266 func_xform ()
18268 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18271 # func_arith arithmetic-term...
18272 func_arith ()
18274 func_arith_result=`expr "$@"`
18277 # func_len string
18278 # STRING may not start with a hyphen.
18279 func_len ()
18281 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18284 _LT_EOF
18285 esac
18287 case $lt_shell_append in
18288 yes)
18289 cat << \_LT_EOF >> "$cfgfile"
18291 # func_append var value
18292 # Append VALUE to the end of shell variable VAR.
18293 func_append ()
18295 eval "$1+=\$2"
18297 _LT_EOF
18300 cat << \_LT_EOF >> "$cfgfile"
18302 # func_append var value
18303 # Append VALUE to the end of shell variable VAR.
18304 func_append ()
18306 eval "$1=\$$1\$2"
18309 _LT_EOF
18311 esac
18314 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18315 || (rm -f "$cfgfile"; exit 1)
18317 mv -f "$cfgfile" "$ofile" ||
18318 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18319 chmod +x "$ofile"
18322 cat <<_LT_EOF >> "$ofile"
18324 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18326 # The linker used to build libraries.
18327 LD=$lt_LD_CXX
18329 # How to create reloadable object files.
18330 reload_flag=$lt_reload_flag_CXX
18331 reload_cmds=$lt_reload_cmds_CXX
18333 # Commands used to build an old-style archive.
18334 old_archive_cmds=$lt_old_archive_cmds_CXX
18336 # A language specific compiler.
18337 CC=$lt_compiler_CXX
18339 # Is the compiler the GNU compiler?
18340 with_gcc=$GCC_CXX
18342 # Compiler flag to turn off builtin functions.
18343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18345 # How to pass a linker flag through the compiler.
18346 wl=$lt_lt_prog_compiler_wl_CXX
18348 # Additional compiler flags for building library objects.
18349 pic_flag=$lt_lt_prog_compiler_pic_CXX
18351 # Compiler flag to prevent dynamic linking.
18352 link_static_flag=$lt_lt_prog_compiler_static_CXX
18354 # Does compiler simultaneously support -c and -o options?
18355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18357 # Whether or not to add -lc for building shared libraries.
18358 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18360 # Whether or not to disallow shared libs when runtime libs are static.
18361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18363 # Compiler flag to allow reflexive dlopens.
18364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18366 # Compiler flag to generate shared objects directly from archives.
18367 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18369 # Whether the compiler copes with passing no objects directly.
18370 compiler_needs_object=$lt_compiler_needs_object_CXX
18372 # Create an old-style archive from a shared archive.
18373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18375 # Create a temporary old-style archive to link instead of a shared archive.
18376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18378 # Commands used to build a shared archive.
18379 archive_cmds=$lt_archive_cmds_CXX
18380 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18382 # Commands used to build a loadable module if different from building
18383 # a shared archive.
18384 module_cmds=$lt_module_cmds_CXX
18385 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18387 # Whether we are building with GNU ld or not.
18388 with_gnu_ld=$lt_with_gnu_ld_CXX
18390 # Flag that allows shared libraries with undefined symbols to be built.
18391 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18393 # Flag that enforces no undefined symbols.
18394 no_undefined_flag=$lt_no_undefined_flag_CXX
18396 # Flag to hardcode \$libdir into a binary during linking.
18397 # This must work even if \$libdir does not exist
18398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18400 # If ld is used when linking, flag to hardcode \$libdir into a binary
18401 # during linking. This must work even if \$libdir does not exist.
18402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18404 # Whether we need a single "-rpath" flag with a separated argument.
18405 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18408 # DIR into the resulting binary.
18409 hardcode_direct=$hardcode_direct_CXX
18411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18412 # DIR into the resulting binary and the resulting library dependency is
18413 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18414 # library is relocated.
18415 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18417 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18418 # into the resulting binary.
18419 hardcode_minus_L=$hardcode_minus_L_CXX
18421 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18422 # into the resulting binary.
18423 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18425 # Set to "yes" if building a shared library automatically hardcodes DIR
18426 # into the library and all subsequent libraries and executables linked
18427 # against it.
18428 hardcode_automatic=$hardcode_automatic_CXX
18430 # Set to yes if linker adds runtime paths of dependent libraries
18431 # to runtime path list.
18432 inherit_rpath=$inherit_rpath_CXX
18434 # Whether libtool must link a program against all its dependency libraries.
18435 link_all_deplibs=$link_all_deplibs_CXX
18437 # Fix the shell variable \$srcfile for the compiler.
18438 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18440 # Set to "yes" if exported symbols are required.
18441 always_export_symbols=$always_export_symbols_CXX
18443 # The commands to list exported symbols.
18444 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18446 # Symbols that should not be listed in the preloaded symbols.
18447 exclude_expsyms=$lt_exclude_expsyms_CXX
18449 # Symbols that must always be exported.
18450 include_expsyms=$lt_include_expsyms_CXX
18452 # Commands necessary for linking programs (against libraries) with templates.
18453 prelink_cmds=$lt_prelink_cmds_CXX
18455 # Specify filename containing input files.
18456 file_list_spec=$lt_file_list_spec_CXX
18458 # How to hardcode a shared library path into an executable.
18459 hardcode_action=$hardcode_action_CXX
18461 # The directories searched by this compiler when creating a shared library.
18462 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18464 # Dependencies to place before and after the objects being linked to
18465 # create a shared library.
18466 predep_objects=$lt_predep_objects_CXX
18467 postdep_objects=$lt_postdep_objects_CXX
18468 predeps=$lt_predeps_CXX
18469 postdeps=$lt_postdeps_CXX
18471 # The library search path used internally by the compiler when linking
18472 # a shared library.
18473 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18475 # ### END LIBTOOL TAG CONFIG: CXX
18476 _LT_EOF
18479 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18480 s!`test -f '$<' || echo '$(srcdir)/'`!!
18481 _EOF
18482 sed -f vpsed$$ $ac_file > tmp$$
18483 mv tmp$$ $ac_file
18484 rm vpsed$$
18485 echo 'MULTISUBDIR =' >> $ac_file
18486 ml_norecursion=yes
18487 . ${multi_basedir}/config-ml.in
18488 { ml_norecursion=; unset ml_norecursion;}
18491 esac
18492 done # for ac_tag
18495 as_fn_exit 0
18496 _ACEOF
18497 ac_clean_files=$ac_clean_files_save
18499 test $ac_write_fail = 0 ||
18500 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18503 # configure is writing to config.log, and then calls config.status.
18504 # config.status does its own redirection, appending to config.log.
18505 # Unfortunately, on DOS this fails, as config.log is still kept open
18506 # by configure, so config.status won't be able to write to it; its
18507 # output is simply discarded. So we exec the FD to /dev/null,
18508 # effectively closing config.log, so it can be properly (re)opened and
18509 # appended to by config.status. When coming back to configure, we
18510 # need to make the FD available again.
18511 if test "$no_create" != yes; then
18512 ac_cs_success=:
18513 ac_config_status_args=
18514 test "$silent" = yes &&
18515 ac_config_status_args="$ac_config_status_args --quiet"
18516 exec 5>/dev/null
18517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18518 exec 5>>config.log
18519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18520 # would make configure fail if this is the last instruction.
18521 $ac_cs_success || as_fn_exit 1
18523 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18525 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}