[PATCH 2/2] S/390: Fix expectation in mrecord-mcount test for 31-bit
[official-gcc.git] / libvtv / configure
blobbfdf34954e4e1eb9146f2f7db47a19a230cd376f
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_static
644 enable_shared
645 lt_host_flags
646 CXXCPP
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 OBJDUMP
653 LN_S
655 ac_ct_DUMPBIN
656 DUMPBIN
658 FGREP
660 LIBTOOL
661 RANLIB
664 CCASFLAGS
665 CCAS
666 am__fastdepCXX_FALSE
667 am__fastdepCXX_TRUE
668 CXXDEPMODE
669 ac_ct_CXX
670 CXXFLAGS
672 toolexeclibdir
673 toolexecdir
674 toplevel_srcdir
675 toplevel_builddir
676 libvtv_srcdir
677 libvtv_builddir
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 am__nodep
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 DEPDIR
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 ENABLE_VTABLE_VERIFY_FALSE
719 ENABLE_VTABLE_VERIFY_TRUE
720 EGREP
721 GREP
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
730 LIBSTDCXX_RAW_CXX_LDFLAGS
731 LIBSTDCXX_RAW_CXX_CXXFLAGS
732 target_noncanonical
733 target_os
734 target_vendor
735 target_cpu
736 target
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 multi_basedir
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_multilib
788 enable_version_specific_runtime_libs
789 enable_vtable_verify
790 enable_dependency_tracking
791 enable_silent_rules
792 enable_maintainer_mode
793 enable_shared
794 enable_static
795 with_pic
796 enable_fast_install
797 with_gnu_ld
798 enable_libtool_lock
799 enable_cet
800 with_gcc_major_version_only
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
811 CXXCPP'
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
862 ac_prev=
863 ac_dashdash=
864 for ac_option
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
873 case $ac_option in
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
877 esac
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
883 ac_dashdash=yes ;;
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
902 --config-cache | -C)
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 esac
1220 done
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1304 /^X\(\/\/\)$/{
1305 s//\1/
1308 /^X\(\/\).*/{
1309 s//\1/
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1317 else
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1407 cat <<\_ACEOF
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1418 _ACEOF
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1424 esac
1425 cat <<\_ACEOF
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-multilib build many library versions (default)
1432 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1433 --enable-vtable-verify Enable vtable verification feature
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-static[=PKGS] build static libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-cet enable Intel CET in target libraries [default=no]
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-pic try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1456 --with-gcc-major-version-only
1457 use only GCC major number in filesystem paths
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CPP C preprocessor
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1470 CXXCPP C++ preprocessor
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to the package provider.
1476 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1477 General help using GNU software: <http://www.gnu.org/gethelp/>.
1478 _ACEOF
1479 ac_status=$?
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 GNU Vtable Verification Runtime Library configure 1.0
1541 generated by GNU Autoconf 2.69
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1585 ac_retval=1
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 }; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1622 ac_retval=1
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1627 } # ac_fn_c_try_cpp
1629 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632 # the include files in INCLUDES and setting the cache variable VAR
1633 # accordingly.
1634 ac_fn_c_check_header_mongrel ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if eval \${$3+:} false; then :
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 else
1647 # Is the header compilable?
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649 $as_echo_n "checking $2 usability... " >&6; }
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656 ac_header_compiler=yes
1657 else
1658 ac_header_compiler=no
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662 $as_echo "$ac_header_compiler" >&6; }
1664 # Is the header present?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666 $as_echo_n "checking $2 presence... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_cpp "$LINENO"; then :
1672 ac_header_preproc=yes
1673 else
1674 ac_header_preproc=no
1676 rm -f conftest.err conftest.i conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678 $as_echo "$ac_header_preproc" >&6; }
1680 # So? What about this header?
1681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1682 yes:no: )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 no:yes:* )
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1692 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1696 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 esac
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1705 else
1706 eval "$3=\$ac_header_compiler"
1708 eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 } # ac_fn_c_check_header_mongrel
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=$ac_status
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_c_try_run
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 } # ac_fn_c_check_header_compile
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 test -x conftest$ac_exeext
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=1
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1833 } # ac_fn_c_try_link
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1863 #undef $2
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1880 main ()
1882 return $2 ();
1884 return 0;
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_func
1902 # ac_fn_cxx_try_compile LINENO
1903 # ----------------------------
1904 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_cxx_try_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 rm -f conftest.$ac_objext
1909 if { { ac_try="$ac_compile"
1910 case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_compile") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && {
1925 test -z "$ac_cxx_werror_flag" ||
1926 test ! -s conftest.err
1927 } && test -s conftest.$ac_objext; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 ac_retval=1
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_cxx_try_compile
1940 # ac_fn_cxx_try_cpp LINENO
1941 # ------------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_cxx_try_cpp ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } > conftest.i && {
1962 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=1
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1975 } # ac_fn_cxx_try_cpp
1977 # ac_fn_cxx_try_link LINENO
1978 # -------------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_link ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext conftest$ac_exeext
1984 if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>conftest.err
1992 ac_status=$?
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_cxx_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest$ac_exeext && {
2003 test "$cross_compiling" = yes ||
2004 test -x conftest$ac_exeext
2005 }; then :
2006 ac_retval=0
2007 else
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 ac_retval=1
2013 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015 # interfere with the next link command; also delete a directory that is
2016 # left behind by Apple's compiler. We do this before executing the actions.
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2021 } # ac_fn_cxx_try_link
2022 cat >config.log <<_ACEOF
2023 This file contains any messages produced by compilers while
2024 running configure, to aid debugging if configure makes a mistake.
2026 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
2027 generated by GNU Autoconf 2.69. Invocation command line was
2029 $ $0 $@
2031 _ACEOF
2032 exec 5>>config.log
2034 cat <<_ASUNAME
2035 ## --------- ##
2036 ## Platform. ##
2037 ## --------- ##
2039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2051 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2056 _ASUNAME
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 $as_echo "PATH: $as_dir"
2064 done
2065 IFS=$as_save_IFS
2067 } >&5
2069 cat >&5 <<_ACEOF
2072 ## ----------- ##
2073 ## Core tests. ##
2074 ## ----------- ##
2076 _ACEOF
2079 # Keep a trace of the command line.
2080 # Strip out --no-create and --no-recursion so they do not pile up.
2081 # Strip out --silent because we don't want to record it for future runs.
2082 # Also quote any args containing shell meta-characters.
2083 # Make two passes to allow for proper duplicate-argument suppression.
2084 ac_configure_args=
2085 ac_configure_args0=
2086 ac_configure_args1=
2087 ac_must_keep_next=false
2088 for ac_pass in 1 2
2090 for ac_arg
2092 case $ac_arg in
2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095 | -silent | --silent | --silen | --sile | --sil)
2096 continue ;;
2097 *\'*)
2098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 esac
2100 case $ac_pass in
2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103 as_fn_append ac_configure_args1 " '$ac_arg'"
2104 if test $ac_must_keep_next = true; then
2105 ac_must_keep_next=false # Got value, back to normal.
2106 else
2107 case $ac_arg in
2108 *=* | --config-cache | -C | -disable-* | --disable-* \
2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111 | -with-* | --with-* | -without-* | --without-* | --x)
2112 case "$ac_configure_args0 " in
2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114 esac
2116 -* ) ac_must_keep_next=true ;;
2117 esac
2119 as_fn_append ac_configure_args " '$ac_arg'"
2121 esac
2122 done
2123 done
2124 { ac_configure_args0=; unset ac_configure_args0;}
2125 { ac_configure_args1=; unset ac_configure_args1;}
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log. We remove comments because anyway the quotes in there
2129 # would cause problems or look ugly.
2130 # WARNING: Use '\'' to represent an apostrophe within the trap.
2131 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132 trap 'exit_status=$?
2133 # Save into config.log some information that might help in debugging.
2135 echo
2137 $as_echo "## ---------------- ##
2138 ## Cache variables. ##
2139 ## ---------------- ##"
2140 echo
2141 # The following way of writing the cache mishandles newlines in values,
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in #(
2146 *${as_nl}*)
2147 case $ac_var in #(
2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150 esac
2151 case $ac_var in #(
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2155 esac ;;
2156 esac
2157 done
2158 (set) 2>&1 |
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2161 sed -n \
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164 ;; #(
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 esac |
2169 sort
2171 echo
2173 $as_echo "## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##"
2176 echo
2177 for ac_var in $ac_subst_vars
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 $as_echo "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2187 if test -n "$ac_subst_files"; then
2188 $as_echo "## ------------------- ##
2189 ## File substitutions. ##
2190 ## ------------------- ##"
2191 echo
2192 for ac_var in $ac_subst_files
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2203 if test -s confdefs.h; then
2204 $as_echo "## ----------- ##
2205 ## confdefs.h. ##
2206 ## ----------- ##"
2207 echo
2208 cat confdefs.h
2209 echo
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2227 $as_echo "/* confdefs.h */" > confdefs.h
2229 # Predefined preprocessor variables.
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2233 _ACEOF
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237 _ACEOF
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2241 _ACEOF
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_STRING "$PACKAGE_STRING"
2245 _ACEOF
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249 _ACEOF
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_URL "$PACKAGE_URL"
2253 _ACEOF
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2258 ac_site_file1=NONE
2259 ac_site_file2=NONE
2260 if test -n "$CONFIG_SITE"; then
2261 # We do not want a PATH search for config.site.
2262 case $CONFIG_SITE in #((
2263 -*) ac_site_file1=./$CONFIG_SITE;;
2264 */*) ac_site_file1=$CONFIG_SITE;;
2265 *) ac_site_file1=./$CONFIG_SITE;;
2266 esac
2267 elif test "x$prefix" != xNONE; then
2268 ac_site_file1=$prefix/share/config.site
2269 ac_site_file2=$prefix/etc/config.site
2270 else
2271 ac_site_file1=$ac_default_prefix/share/config.site
2272 ac_site_file2=$ac_default_prefix/etc/config.site
2274 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276 test "x$ac_site_file" = xNONE && continue
2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280 sed 's/^/| /' "$ac_site_file" >&5
2281 . "$ac_site_file" \
2282 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 as_fn_error $? "failed to load site script $ac_site_file
2285 See \`config.log' for more details" "$LINENO" 5; }
2287 done
2289 if test -r "$cache_file"; then
2290 # Some versions of bash will fail to source /dev/null (special files
2291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294 $as_echo "$as_me: loading cache $cache_file" >&6;}
2295 case $cache_file in
2296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297 *) . "./$cache_file";;
2298 esac
2300 else
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302 $as_echo "$as_me: creating cache $cache_file" >&6;}
2303 >$cache_file
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2315 set,)
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2319 ,set)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,);;
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 # differences in whitespace do not lead to failure.
2327 ac_old_val_w=`echo x $ac_old_val`
2328 ac_new_val_w=`echo x $ac_new_val`
2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332 ac_cache_corrupted=:
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336 eval $ac_var=\$ac_old_val
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2339 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2341 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2342 fi;;
2343 esac
2344 # Pass precious variables to config.status.
2345 if test "$ac_new_set" = set; then
2346 case $ac_new_val in
2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 *) ac_arg=$ac_var=$ac_new_val ;;
2349 esac
2350 case " $ac_configure_args " in
2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353 esac
2355 done
2356 if $ac_cache_corrupted; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363 ## -------------------- ##
2364 ## Main body of script. ##
2365 ## -------------------- ##
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2377 #AC_INIT(package-unused, version-unused, libvtv)
2380 # Default to --enable-multilib
2381 # Check whether --enable-multilib was given.
2382 if test "${enable_multilib+set}" = set; then :
2383 enableval=$enable_multilib; case "$enableval" in
2384 yes) multilib=yes ;;
2385 no) multilib=no ;;
2386 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2387 esac
2388 else
2389 multilib=yes
2393 # We may get other options which we leave undocumented:
2394 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2395 # See config-ml.in if you want the gory details.
2397 if test "$srcdir" = "."; then
2398 if test "$with_target_subdir" != "."; then
2399 multi_basedir="$srcdir/$with_multisrctop../.."
2400 else
2401 multi_basedir="$srcdir/$with_multisrctop.."
2403 else
2404 multi_basedir="$srcdir/.."
2408 # Even if the default multilib is not a cross compilation,
2409 # it may be that some of the other multilibs are.
2410 if test $cross_compiling = no && test $multilib = yes \
2411 && test "x${with_multisubdir}" != x ; then
2412 cross_compiling=maybe
2415 ac_config_commands="$ac_config_commands default-1"
2418 # -------
2419 # Options
2420 # -------
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2422 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2423 # Check whether --enable-version-specific-runtime-libs was given.
2424 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2425 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2426 yes) version_specific_libs=yes ;;
2427 no) version_specific_libs=no ;;
2428 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2429 esac
2430 else
2431 version_specific_libs=no
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2435 $as_echo "$version_specific_libs" >&6; }
2437 # Do not delete or change the following two lines. For why, see
2438 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2439 ac_aux_dir=
2440 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2441 if test -f "$ac_dir/install-sh"; then
2442 ac_aux_dir=$ac_dir
2443 ac_install_sh="$ac_aux_dir/install-sh -c"
2444 break
2445 elif test -f "$ac_dir/install.sh"; then
2446 ac_aux_dir=$ac_dir
2447 ac_install_sh="$ac_aux_dir/install.sh -c"
2448 break
2449 elif test -f "$ac_dir/shtool"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/shtool install -c"
2452 break
2454 done
2455 if test -z "$ac_aux_dir"; then
2456 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2459 # These three variables are undocumented and unsupported,
2460 # and are intended to be withdrawn in a future Autoconf release.
2461 # They can cause serious problems if a builder's source tree is in a directory
2462 # whose full name contains unusual characters.
2463 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2464 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2465 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2468 # Make sure we can run config.sub.
2469 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2470 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2473 $as_echo_n "checking build system type... " >&6; }
2474 if ${ac_cv_build+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 ac_build_alias=$build_alias
2478 test "x$ac_build_alias" = x &&
2479 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2480 test "x$ac_build_alias" = x &&
2481 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2482 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2487 $as_echo "$ac_cv_build" >&6; }
2488 case $ac_cv_build in
2489 *-*-*) ;;
2490 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2491 esac
2492 build=$ac_cv_build
2493 ac_save_IFS=$IFS; IFS='-'
2494 set x $ac_cv_build
2495 shift
2496 build_cpu=$1
2497 build_vendor=$2
2498 shift; shift
2499 # Remember, the first character of IFS is used to create $*,
2500 # except with old shells:
2501 build_os=$*
2502 IFS=$ac_save_IFS
2503 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2507 $as_echo_n "checking host system type... " >&6; }
2508 if ${ac_cv_host+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test "x$host_alias" = x; then
2512 ac_cv_host=$ac_cv_build
2513 else
2514 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2520 $as_echo "$ac_cv_host" >&6; }
2521 case $ac_cv_host in
2522 *-*-*) ;;
2523 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2524 esac
2525 host=$ac_cv_host
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_host
2528 shift
2529 host_cpu=$1
2530 host_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 host_os=$*
2535 IFS=$ac_save_IFS
2536 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2540 $as_echo_n "checking target system type... " >&6; }
2541 if ${ac_cv_target+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test "x$target_alias" = x; then
2545 ac_cv_target=$ac_cv_host
2546 else
2547 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2553 $as_echo "$ac_cv_target" >&6; }
2554 case $ac_cv_target in
2555 *-*-*) ;;
2556 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2557 esac
2558 target=$ac_cv_target
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_target
2561 shift
2562 target_cpu=$1
2563 target_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 target_os=$*
2568 IFS=$ac_save_IFS
2569 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2572 # The aliases save the names the user supplied, while $host etc.
2573 # will get canonicalized.
2574 test -n "$target_alias" &&
2575 test "$program_prefix$program_suffix$program_transform_name" = \
2576 NONENONEs,x,x, &&
2577 program_prefix=${target_alias}-
2579 target_alias=${target_alias-$host_alias}
2581 case ${build_alias} in
2582 "") build_noncanonical=${build} ;;
2583 *) build_noncanonical=${build_alias} ;;
2584 esac
2586 case ${host_alias} in
2587 "") host_noncanonical=${build_noncanonical} ;;
2588 *) host_noncanonical=${host_alias} ;;
2589 esac
2591 case ${target_alias} in
2592 "") target_noncanonical=${host_noncanonical} ;;
2593 *) target_noncanonical=${target_alias} ;;
2594 esac
2600 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2601 -I\$(top_builddir)/../libstdc++-v3/include \
2602 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2603 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2604 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2605 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2610 # Expand $ac_aux_dir to an absolute path.
2611 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2640 done
2641 done
2642 IFS=$as_save_IFS
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2657 if test -z "$ac_cv_prog_CC"; then
2658 ac_ct_CC=$CC
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_ac_ct_CC="gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2680 done
2681 done
2682 IFS=$as_save_IFS
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2695 if test "x$ac_ct_CC" = x; then
2696 CC=""
2697 else
2698 case $cross_compiling:$ac_tool_warned in
2699 yes:)
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702 ac_tool_warned=yes ;;
2703 esac
2704 CC=$ac_ct_CC
2706 else
2707 CC="$ac_cv_prog_CC"
2710 if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_CC="${ac_tool_prefix}cc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2733 done
2734 done
2735 IFS=$as_save_IFS
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2751 if test -z "$CC"; then
2752 # Extract the first word of "cc", so it can be a program name with args.
2753 set dummy cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 ac_prog_rejected=no
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771 ac_prog_rejected=yes
2772 continue
2774 ac_cv_prog_CC="cc"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2778 done
2779 done
2780 IFS=$as_save_IFS
2782 if test $ac_prog_rejected = yes; then
2783 # We found a bogon in the path, so make sure we never use it.
2784 set dummy $ac_cv_prog_CC
2785 shift
2786 if test $# != 0; then
2787 # We chose a different compiler from the bogus one.
2788 # However, it has the same basename, so the bogon will be chosen
2789 # first if we set CC to just the basename; use the full file name.
2790 shift
2791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in cl.exe
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2834 IFS=$as_save_IFS
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$CC" && break
2849 done
2851 if test -z "$CC"; then
2852 ac_ct_CC=$CC
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2876 done
2877 done
2878 IFS=$as_save_IFS
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2892 test -n "$ac_ct_CC" && break
2893 done
2895 if test "x$ac_ct_CC" = x; then
2896 CC=""
2897 else
2898 case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2903 esac
2904 CC=$ac_ct_CC
2911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details" "$LINENO" 5; }
2916 # Provide some information about the compiler.
2917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2918 set X $ac_compile
2919 ac_compiler=$2
2920 for ac_option in --version -v -V -qversion; do
2921 { { ac_try="$ac_compiler $ac_option >&5"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2929 ac_status=$?
2930 if test -s conftest.err; then
2931 sed '10a\
2932 ... rest of stderr output deleted ...
2933 10q' conftest.err >conftest.er1
2934 cat conftest.er1 >&5
2936 rm -f conftest.er1 conftest.err
2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }
2939 done
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2945 main ()
2949 return 0;
2951 _ACEOF
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2956 # of exeext.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958 $as_echo_n "checking whether the C compiler works... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2964 ac_rmfiles=
2965 for ac_file in $ac_files
2967 case $ac_file in
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970 esac
2971 done
2972 rm -f $ac_rmfiles
2974 if { { ac_try="$ac_link_default"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link_default") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; then :
2985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2989 # Autoconf.
2990 for ac_file in $ac_files ''
2992 test -f "$ac_file" || continue
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2996 [ab].out )
2997 # We found the default executable, but exeext='' is most
2998 # certainly right.
2999 break;;
3000 *.* )
3001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002 then :; else
3003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 # We set ac_cv_exeext here because the later test for it is not
3006 # safe: cross compilers may not add the suffix if given an `-o'
3007 # argument, so we may need to know it at that point already.
3008 # Even if this section looks crufty: it has the advantage of
3009 # actually working.
3010 break;;
3012 break;;
3013 esac
3014 done
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3017 else
3018 ac_file=''
3020 if test -z "$ac_file"; then :
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error 77 "C compiler cannot create executables
3029 See \`config.log' for more details" "$LINENO" 5; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 ac_exeext=$ac_cv_exeext
3040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043 $as_echo_n "checking for suffix of executables... " >&6; }
3044 if { { ac_try="$ac_link"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3052 ac_status=$?
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3057 # work properly (i.e., refer to `conftest.exe'), while it won't with
3058 # `rm'.
3059 for ac_file in conftest.exe conftest conftest.*; do
3060 test -f "$ac_file" || continue
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064 break;;
3065 * ) break;;
3066 esac
3067 done
3068 else
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details" "$LINENO" 5; }
3074 rm -f conftest conftest$ac_cv_exeext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076 $as_echo "$ac_cv_exeext" >&6; }
3078 rm -f conftest.$ac_ext
3079 EXEEXT=$ac_cv_exeext
3080 ac_exeext=$EXEEXT
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083 #include <stdio.h>
3085 main ()
3087 FILE *f = fopen ("conftest.out", "w");
3088 return ferror (f) || fclose (f) != 0;
3091 return 0;
3093 _ACEOF
3094 ac_clean_files="$ac_clean_files conftest.out"
3095 # Check that the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098 $as_echo_n "checking whether we are cross compiling... " >&6; }
3099 if test "$cross_compiling" != yes; then
3100 { { ac_try="$ac_link"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link") 2>&5
3108 ac_status=$?
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }
3111 if { ac_try='./conftest$ac_cv_exeext'
3112 { { case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_try") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; }; then
3122 cross_compiling=no
3123 else
3124 if test "$cross_compiling" = maybe; then
3125 cross_compiling=yes
3126 else
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details" "$LINENO" 5; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136 $as_echo "$cross_compiling" >&6; }
3138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if ${ac_cv_objext+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3149 main ()
3153 return 0;
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175 done
3176 else
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details" "$LINENO" 5; }
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3190 ac_objext=$OBJEXT
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if ${ac_cv_c_compiler_gnu+:} false; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3200 main ()
3202 #ifndef __GNUC__
3203 choke me
3204 #endif
3207 return 0;
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211 ac_compiler_gnu=yes
3212 else
3213 ac_compiler_gnu=no
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3222 GCC=yes
3223 else
3224 GCC=
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if ${ac_cv_prog_cc_g+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3235 ac_cv_prog_cc_g=no
3236 CFLAGS="-g"
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3241 main ()
3245 return 0;
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_cv_prog_cc_g=yes
3250 else
3251 CFLAGS=""
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3265 else
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 CFLAGS="-g"
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3276 return 0;
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280 ac_cv_prog_cc_g=yes
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3295 CFLAGS="-g -O2"
3296 else
3297 CFLAGS="-g"
3299 else
3300 if test "$GCC" = yes; then
3301 CFLAGS="-O2"
3302 else
3303 CFLAGS=
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if ${ac_cv_prog_cc_c89+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_cv_prog_cc_c89=no
3312 ac_save_CC=$CC
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315 #include <stdarg.h>
3316 #include <stdio.h>
3317 struct stat;
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3322 char **p;
3323 int i;
3325 return p[i];
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3329 char *s;
3330 va_list v;
3331 va_start (v,p);
3332 s = g (p, va_arg (v,int));
3333 va_end (v);
3334 return s;
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3338 function prototypes and stuff, but not '\xHH' hex character constants.
3339 These don't provoke an error unfortunately, instead are silently treated
3340 as 'x'. The following induces an error, until -std is added to get
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3342 array size at least. It's necessary to write '\x00'==0 to get something
3343 that's true only with -std. */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347 inside strings and character constants. */
3348 #define FOO(x) 'x'
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3351 int test (int i, double x);
3352 struct s1 {int (*f) (int a);};
3353 struct s2 {int (*f) (double a);};
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 int argc;
3356 char **argv;
3358 main ()
3360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3362 return 0;
3364 _ACEOF
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3368 CC="$ac_save_CC $ac_arg"
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_cv_prog_cc_c89=$ac_arg
3372 rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
3374 done
3375 rm -f conftest.$ac_ext
3376 CC=$ac_save_CC
3379 # AC_CACHE_VAL
3380 case "x$ac_cv_prog_cc_c89" in
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383 $as_echo "none needed" >&6; } ;;
3384 xno)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386 $as_echo "unsupported" >&6; } ;;
3388 CC="$CC $ac_cv_prog_cc_c89"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391 esac
3392 if test "x$ac_cv_prog_cc_c89" != xno; then :
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3408 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3409 if ${am_cv_prog_cc_c_o+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 # Make sure it works both with $CC and with simple cc.
3424 # Following AC_PROG_CC_C_O, we do the test twice because some
3425 # compilers refuse to overwrite an existing .o file with -o,
3426 # though they will create one.
3427 am_cv_prog_cc_c_o=yes
3428 for am_i in 1 2; do
3429 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3430 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } \
3434 && test -f conftest2.$ac_objext; then
3435 : OK
3436 else
3437 am_cv_prog_cc_c_o=no
3438 break
3440 done
3441 rm -f core conftest*
3442 unset am_i
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3445 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3446 if test "$am_cv_prog_cc_c_o" != yes; then
3447 # Losing compiler, so override with the script.
3448 # FIXME: It is wrong to rewrite CC.
3449 # But if we don't then we get into trouble of one sort or another.
3450 # A longer-term fix would be to have automake use am__CC in this case,
3451 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3452 CC="$am_aux_dir/compile $CC"
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3471 CPP=
3473 if test -z "$CPP"; then
3474 if ${ac_cv_prog_CPP+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3480 ac_preproc_ok=false
3481 for ac_c_preproc_warn_flag in '' yes
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491 #ifdef __STDC__
3492 # include <limits.h>
3493 #else
3494 # include <assert.h>
3495 #endif
3496 Syntax error
3497 _ACEOF
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3500 else
3501 # Broken: fails on valid input.
3502 continue
3504 rm -f conftest.err conftest.i conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3511 _ACEOF
3512 if ac_fn_c_try_cpp "$LINENO"; then :
3513 # Broken: success on invalid input.
3514 continue
3515 else
3516 # Passes both tests.
3517 ac_preproc_ok=:
3518 break
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3522 done
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.i conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then :
3526 break
3529 done
3530 ac_cv_prog_CPP=$CPP
3533 CPP=$ac_cv_prog_CPP
3534 else
3535 ac_cv_prog_CPP=$CPP
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538 $as_echo "$CPP" >&6; }
3539 ac_preproc_ok=false
3540 for ac_c_preproc_warn_flag in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #ifdef __STDC__
3551 # include <limits.h>
3552 #else
3553 # include <assert.h>
3554 #endif
3555 Syntax error
3556 _ACEOF
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3559 else
3560 # Broken: fails on valid input.
3561 continue
3563 rm -f conftest.err conftest.i conftest.$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <ac_nonexistent.h>
3570 _ACEOF
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3572 # Broken: success on invalid input.
3573 continue
3574 else
3575 # Passes both tests.
3576 ac_preproc_ok=:
3577 break
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3581 done
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then :
3586 else
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details" "$LINENO" 5; }
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3602 if ${ac_cv_path_GREP+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -z "$GREP"; then
3606 ac_path_GREP_found=false
3607 # Loop through the user's path and test for each of PROGNAME-LIST
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_prog in grep ggrep; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3616 as_fn_executable_p "$ac_path_GREP" || continue
3617 # Check for GNU ac_path_GREP and select it if it is found.
3618 # Check for GNU $ac_path_GREP
3619 case `"$ac_path_GREP" --version 2>&1` in
3620 *GNU*)
3621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3623 ac_count=0
3624 $as_echo_n 0123456789 >"conftest.in"
3625 while :
3627 cat "conftest.in" "conftest.in" >"conftest.tmp"
3628 mv "conftest.tmp" "conftest.in"
3629 cp "conftest.in" "conftest.nl"
3630 $as_echo 'GREP' >> "conftest.nl"
3631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633 as_fn_arith $ac_count + 1 && ac_count=$as_val
3634 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635 # Best one so far, save it but keep looking for a better one
3636 ac_cv_path_GREP="$ac_path_GREP"
3637 ac_path_GREP_max=$ac_count
3639 # 10*(2^10) chars as input seems more than enough
3640 test $ac_count -gt 10 && break
3641 done
3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3643 esac
3645 $ac_path_GREP_found && break 3
3646 done
3647 done
3648 done
3649 IFS=$as_save_IFS
3650 if test -z "$ac_cv_path_GREP"; then
3651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3653 else
3654 ac_cv_path_GREP=$GREP
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659 $as_echo "$ac_cv_path_GREP" >&6; }
3660 GREP="$ac_cv_path_GREP"
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664 $as_echo_n "checking for egrep... " >&6; }
3665 if ${ac_cv_path_EGREP+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669 then ac_cv_path_EGREP="$GREP -E"
3670 else
3671 if test -z "$EGREP"; then
3672 ac_path_EGREP_found=false
3673 # Loop through the user's path and test for each of PROGNAME-LIST
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_prog in egrep; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3682 as_fn_executable_p "$ac_path_EGREP" || continue
3683 # Check for GNU ac_path_EGREP and select it if it is found.
3684 # Check for GNU $ac_path_EGREP
3685 case `"$ac_path_EGREP" --version 2>&1` in
3686 *GNU*)
3687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3689 ac_count=0
3690 $as_echo_n 0123456789 >"conftest.in"
3691 while :
3693 cat "conftest.in" "conftest.in" >"conftest.tmp"
3694 mv "conftest.tmp" "conftest.in"
3695 cp "conftest.in" "conftest.nl"
3696 $as_echo 'EGREP' >> "conftest.nl"
3697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699 as_fn_arith $ac_count + 1 && ac_count=$as_val
3700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701 # Best one so far, save it but keep looking for a better one
3702 ac_cv_path_EGREP="$ac_path_EGREP"
3703 ac_path_EGREP_max=$ac_count
3705 # 10*(2^10) chars as input seems more than enough
3706 test $ac_count -gt 10 && break
3707 done
3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3709 esac
3711 $ac_path_EGREP_found && break 3
3712 done
3713 done
3714 done
3715 IFS=$as_save_IFS
3716 if test -z "$ac_cv_path_EGREP"; then
3717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3719 else
3720 ac_cv_path_EGREP=$EGREP
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726 $as_echo "$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731 $as_echo_n "checking for ANSI C header files... " >&6; }
3732 if ${ac_cv_header_stdc+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 #include <stdlib.h>
3738 #include <stdarg.h>
3739 #include <string.h>
3740 #include <float.h>
3743 main ()
3747 return 0;
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_header_stdc=yes
3752 else
3753 ac_cv_header_stdc=no
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761 #include <string.h>
3763 _ACEOF
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 $EGREP "memchr" >/dev/null 2>&1; then :
3767 else
3768 ac_cv_header_stdc=no
3770 rm -f conftest*
3774 if test $ac_cv_header_stdc = yes; then
3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778 #include <stdlib.h>
3780 _ACEOF
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "free" >/dev/null 2>&1; then :
3784 else
3785 ac_cv_header_stdc=no
3787 rm -f conftest*
3791 if test $ac_cv_header_stdc = yes; then
3792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793 if test "$cross_compiling" = yes; then :
3795 else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <ctype.h>
3799 #include <stdlib.h>
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3803 #else
3804 # define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809 #endif
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3813 main ()
3815 int i;
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3819 return 2;
3820 return 0;
3822 _ACEOF
3823 if ac_fn_c_try_run "$LINENO"; then :
3825 else
3826 ac_cv_header_stdc=no
3828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829 conftest.$ac_objext conftest.beam conftest.$ac_ext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835 $as_echo "$ac_cv_header_stdc" >&6; }
3836 if test $ac_cv_header_stdc = yes; then
3838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844 inttypes.h stdint.h unistd.h
3845 do :
3846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3850 cat >>confdefs.h <<_ACEOF
3851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852 _ACEOF
3856 done
3860 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3861 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3862 MINIX=yes
3863 else
3864 MINIX=
3868 if test "$MINIX" = yes; then
3870 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3873 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3876 $as_echo "#define _MINIX 1" >>confdefs.h
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3883 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3889 # define __EXTENSIONS__ 1
3890 $ac_includes_default
3892 main ()
3896 return 0;
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_safe_to_define___extensions__=yes
3901 else
3902 ac_cv_safe_to_define___extensions__=no
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3907 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3908 test $ac_cv_safe_to_define___extensions__ = yes &&
3909 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3911 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3913 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3915 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3917 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3921 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3923 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3924 # Check whether --enable-vtable-verify was given.
3925 if test "${enable_vtable_verify+set}" = set; then :
3926 enableval=$enable_vtable_verify; case "$enableval" in
3927 yes) enable_vtable_verify=yes ;;
3928 no) enable_vtable_verify=no ;;
3929 *) enable_vtable_verify=no;;
3930 esac
3931 else
3932 enable_vtable_verify=no
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3936 $as_echo "$enable_vtable_verify" >&6; }
3938 # See if supported.
3939 unset VTV_SUPPORTED
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3941 $as_echo_n "checking for host support for vtable verification... " >&6; }
3942 . ${srcdir}/configure.tgt
3943 case ${host} in
3944 *-*-solaris2*)
3945 # libvtv requires init priority support, which depends on the linker
3946 # used on Solaris.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3948 $as_echo_n "checking for init priority support... " >&6; }
3949 if ${libvtv_cv_init_priority+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3957 main ()
3959 void ip (void) __attribute__ ((constructor (1)));
3961 return 0;
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 libgcc_cv_init_priority=yes
3966 else
3967 libgcc_cv_init_priority=no
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3972 $as_echo "$libvtv_cv_init_priority" >&6; }
3973 if test x$libvtv_cv_init_priority = xno; then
3974 VTV_SUPPORTED=no
3976 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3977 # configure.tgt restricting to libvtv to Solaris 11+.
3979 esac
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3981 $as_echo "$VTV_SUPPORTED" >&6; }
3983 # Decide if it's usable.
3984 use_vtable_verify=no
3985 if test "x$VTV_SUPPORTED" = "xyes"; then
3986 if test "x$enable_vtable_verify" = "xyes"; then
3987 use_vtable_verify=yes
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3989 $as_echo "$as_me: using vtable verification" >&6;}
3992 if test $use_vtable_verify = yes; then
3993 ENABLE_VTABLE_VERIFY_TRUE=
3994 ENABLE_VTABLE_VERIFY_FALSE='#'
3995 else
3996 ENABLE_VTABLE_VERIFY_TRUE='#'
3997 ENABLE_VTABLE_VERIFY_FALSE=
4001 am__api_version='1.15'
4003 # Find a good install program. We prefer a C program (faster),
4004 # so one script is as good as another. But avoid the broken or
4005 # incompatible versions:
4006 # SysV /etc/install, /usr/sbin/install
4007 # SunOS /usr/etc/install
4008 # IRIX /sbin/install
4009 # AIX /bin/install
4010 # AmigaOS /C/install, which installs bootblocks on floppy discs
4011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4014 # OS/2's system install, which has a completely different semantic
4015 # ./install, which can be erroneously created by make from ./install.sh.
4016 # Reject install programs that cannot install multiple files.
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4018 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4019 if test -z "$INSTALL"; then
4020 if ${ac_cv_path_install+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 # Account for people who put trailing slashes in PATH elements.
4029 case $as_dir/ in #((
4030 ./ | .// | /[cC]/* | \
4031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4032 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4033 /usr/ucb/* ) ;;
4035 # OSF1 and SCO ODT 3.0 have their own names for install.
4036 # Don't use installbsd from OSF since it installs stuff as root
4037 # by default.
4038 for ac_prog in ginstall scoinst install; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4041 if test $ac_prog = install &&
4042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4043 # AIX install. It has an incompatible calling convention.
4045 elif test $ac_prog = install &&
4046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047 # program-specific install script used by HP pwplus--don't use.
4049 else
4050 rm -rf conftest.one conftest.two conftest.dir
4051 echo one > conftest.one
4052 echo two > conftest.two
4053 mkdir conftest.dir
4054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4055 test -s conftest.one && test -s conftest.two &&
4056 test -s conftest.dir/conftest.one &&
4057 test -s conftest.dir/conftest.two
4058 then
4059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4060 break 3
4064 done
4065 done
4067 esac
4069 done
4070 IFS=$as_save_IFS
4072 rm -rf conftest.one conftest.two conftest.dir
4075 if test "${ac_cv_path_install+set}" = set; then
4076 INSTALL=$ac_cv_path_install
4077 else
4078 # As a last resort, use the slow shell script. Don't cache a
4079 # value for INSTALL within a source directory, because that will
4080 # break other packages using the cache if that directory is
4081 # removed, or if the value is a relative name.
4082 INSTALL=$ac_install_sh
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4086 $as_echo "$INSTALL" >&6; }
4088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4089 # It thinks the first close brace ends the variable substitution.
4090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4097 $as_echo_n "checking whether build environment is sane... " >&6; }
4098 # Reject unsafe characters in $srcdir or the absolute working directory
4099 # name. Accept space and tab only in the latter.
4100 am_lf='
4102 case `pwd` in
4103 *[\\\"\#\$\&\'\`$am_lf]*)
4104 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4105 esac
4106 case $srcdir in
4107 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4108 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4109 esac
4111 # Do 'set' in a subshell so we don't clobber the current shell's
4112 # arguments. Must try -L first in case configure is actually a
4113 # symlink; some systems play weird games with the mod time of symlinks
4114 # (eg FreeBSD returns the mod time of the symlink's containing
4115 # directory).
4116 if (
4117 am_has_slept=no
4118 for am_try in 1 2; do
4119 echo "timestamp, slept: $am_has_slept" > conftest.file
4120 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4121 if test "$*" = "X"; then
4122 # -L didn't work.
4123 set X `ls -t "$srcdir/configure" conftest.file`
4125 if test "$*" != "X $srcdir/configure conftest.file" \
4126 && test "$*" != "X conftest.file $srcdir/configure"; then
4128 # If neither matched, then we have a broken ls. This can happen
4129 # if, for instance, CONFIG_SHELL is bash and it inherits a
4130 # broken ls alias from the environment. This has actually
4131 # happened. Such a system could not be considered "sane".
4132 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4133 alias in your environment" "$LINENO" 5
4135 if test "$2" = conftest.file || test $am_try -eq 2; then
4136 break
4138 # Just in case.
4139 sleep 1
4140 am_has_slept=yes
4141 done
4142 test "$2" = conftest.file
4144 then
4145 # Ok.
4147 else
4148 as_fn_error $? "newly created file is older than distributed files!
4149 Check your system clock" "$LINENO" 5
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4152 $as_echo "yes" >&6; }
4153 # If we didn't sleep, we still need to ensure time stamps of config.status and
4154 # generated files are strictly newer.
4155 am_sleep_pid=
4156 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4157 ( sleep 1 ) &
4158 am_sleep_pid=$!
4161 rm -f conftest.file
4163 test "$program_prefix" != NONE &&
4164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4165 # Use a double $ so make ignores it.
4166 test "$program_suffix" != NONE &&
4167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4168 # Double any \ or $.
4169 # By default was `s,x,x', remove it if useless.
4170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4173 if test x"${MISSING+set}" != xset; then
4174 case $am_aux_dir in
4175 *\ * | *\ *)
4176 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4178 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4179 esac
4181 # Use eval to expand $SHELL
4182 if eval "$MISSING --is-lightweight"; then
4183 am_missing_run="$MISSING "
4184 else
4185 am_missing_run=
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4187 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4190 if test x"${install_sh+set}" != xset; then
4191 case $am_aux_dir in
4192 *\ * | *\ *)
4193 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4195 install_sh="\${SHELL} $am_aux_dir/install-sh"
4196 esac
4199 # Installed binaries are usually stripped using 'strip' when the user
4200 # run "make install-strip". However 'strip' might not be the right
4201 # tool to use in cross-compilation environments, therefore Automake
4202 # will honor the 'STRIP' environment variable to overrule this program.
4203 if test "$cross_compiling" != no; then
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}strip; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_STRIP+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$STRIP"; then
4213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4226 done
4227 done
4228 IFS=$as_save_IFS
4232 STRIP=$ac_cv_prog_STRIP
4233 if test -n "$STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4235 $as_echo "$STRIP" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4243 if test -z "$ac_cv_prog_STRIP"; then
4244 ac_ct_STRIP=$STRIP
4245 # Extract the first word of "strip", so it can be a program name with args.
4246 set dummy strip; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -n "$ac_ct_STRIP"; then
4253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_ac_ct_STRIP="strip"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4266 done
4267 done
4268 IFS=$as_save_IFS
4272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4273 if test -n "$ac_ct_STRIP"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4275 $as_echo "$ac_ct_STRIP" >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4281 if test "x$ac_ct_STRIP" = x; then
4282 STRIP=":"
4283 else
4284 case $cross_compiling:$ac_tool_warned in
4285 yes:)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288 ac_tool_warned=yes ;;
4289 esac
4290 STRIP=$ac_ct_STRIP
4292 else
4293 STRIP="$ac_cv_prog_STRIP"
4297 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4300 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4301 if test -z "$MKDIR_P"; then
4302 if ${ac_cv_path_mkdir+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in mkdir gmkdir; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4313 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4314 'mkdir (GNU coreutils) '* | \
4315 'mkdir (coreutils) '* | \
4316 'mkdir (fileutils) '4.1*)
4317 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4318 break 3;;
4319 esac
4320 done
4321 done
4322 done
4323 IFS=$as_save_IFS
4327 test -d ./--version && rmdir ./--version
4328 if test "${ac_cv_path_mkdir+set}" = set; then
4329 MKDIR_P="$ac_cv_path_mkdir -p"
4330 else
4331 # As a last resort, use the slow shell script. Don't cache a
4332 # value for MKDIR_P within a source directory, because that will
4333 # break other packages using the cache if that directory is
4334 # removed, or if the value is a relative name.
4335 MKDIR_P="$ac_install_sh -d"
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4339 $as_echo "$MKDIR_P" >&6; }
4341 for ac_prog in gawk mawk nawk awk
4343 # Extract the first word of "$ac_prog", so it can be a program name with args.
4344 set dummy $ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_AWK+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$AWK"; then
4351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_AWK="$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4364 done
4365 done
4366 IFS=$as_save_IFS
4370 AWK=$ac_cv_prog_AWK
4371 if test -n "$AWK"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4373 $as_echo "$AWK" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4380 test -n "$AWK" && break
4381 done
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4384 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4385 set x ${MAKE-make}
4386 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4387 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 cat >conftest.make <<\_ACEOF
4391 SHELL = /bin/sh
4392 all:
4393 @echo '@@@%%%=$(MAKE)=@@@%%%'
4394 _ACEOF
4395 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4396 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4397 *@@@%%%=?*=@@@%%%*)
4398 eval ac_cv_prog_make_${ac_make}_set=yes;;
4400 eval ac_cv_prog_make_${ac_make}_set=no;;
4401 esac
4402 rm -f conftest.make
4404 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4406 $as_echo "yes" >&6; }
4407 SET_MAKE=
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 SET_MAKE="MAKE=${MAKE-make}"
4414 rm -rf .tst 2>/dev/null
4415 mkdir .tst 2>/dev/null
4416 if test -d .tst; then
4417 am__leading_dot=.
4418 else
4419 am__leading_dot=_
4421 rmdir .tst 2>/dev/null
4423 DEPDIR="${am__leading_dot}deps"
4425 ac_config_commands="$ac_config_commands depfiles"
4428 am_make=${MAKE-make}
4429 cat > confinc << 'END'
4430 am__doit:
4431 @echo this is the am__doit target
4432 .PHONY: am__doit
4434 # If we don't find an include directive, just comment out the code.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4436 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4437 am__include="#"
4438 am__quote=
4439 _am_result=none
4440 # First try GNU make style include.
4441 echo "include confinc" > confmf
4442 # Ignore all kinds of additional output from 'make'.
4443 case `$am_make -s -f confmf 2> /dev/null` in #(
4444 *the\ am__doit\ target*)
4445 am__include=include
4446 am__quote=
4447 _am_result=GNU
4449 esac
4450 # Now try BSD make style include.
4451 if test "$am__include" = "#"; then
4452 echo '.include "confinc"' > confmf
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=BSD
4459 esac
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4464 $as_echo "$_am_result" >&6; }
4465 rm -f confinc confmf
4467 # Check whether --enable-dependency-tracking was given.
4468 if test "${enable_dependency_tracking+set}" = set; then :
4469 enableval=$enable_dependency_tracking;
4472 if test "x$enable_dependency_tracking" != xno; then
4473 am_depcomp="$ac_aux_dir/depcomp"
4474 AMDEPBACKSLASH='\'
4475 am__nodep='_no'
4477 if test "x$enable_dependency_tracking" != xno; then
4478 AMDEP_TRUE=
4479 AMDEP_FALSE='#'
4480 else
4481 AMDEP_TRUE='#'
4482 AMDEP_FALSE=
4486 # Check whether --enable-silent-rules was given.
4487 if test "${enable_silent_rules+set}" = set; then :
4488 enableval=$enable_silent_rules;
4491 case $enable_silent_rules in # (((
4492 yes) AM_DEFAULT_VERBOSITY=0;;
4493 no) AM_DEFAULT_VERBOSITY=1;;
4494 *) AM_DEFAULT_VERBOSITY=1;;
4495 esac
4496 am_make=${MAKE-make}
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4498 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4499 if ${am_cv_make_support_nested_variables+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if $as_echo 'TRUE=$(BAR$(V))
4503 BAR0=false
4504 BAR1=true
4506 am__doit:
4507 @$(TRUE)
4508 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4509 am_cv_make_support_nested_variables=yes
4510 else
4511 am_cv_make_support_nested_variables=no
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4515 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4516 if test $am_cv_make_support_nested_variables = yes; then
4517 AM_V='$(V)'
4518 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4519 else
4520 AM_V=$AM_DEFAULT_VERBOSITY
4521 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4523 AM_BACKSLASH='\'
4525 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4526 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4527 # is not polluted with repeated "-I."
4528 am__isrc=' -I$(srcdir)'
4529 # test to see if srcdir already configured
4530 if test -f $srcdir/config.status; then
4531 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4535 # test whether we have cygpath
4536 if test -z "$CYGPATH_W"; then
4537 if (cygpath --version) >/dev/null 2>/dev/null; then
4538 CYGPATH_W='cygpath -w'
4539 else
4540 CYGPATH_W=echo
4545 # Define the identity of the package.
4546 PACKAGE='libvtv'
4547 VERSION='1.0'
4550 cat >>confdefs.h <<_ACEOF
4551 #define PACKAGE "$PACKAGE"
4552 _ACEOF
4555 cat >>confdefs.h <<_ACEOF
4556 #define VERSION "$VERSION"
4557 _ACEOF
4559 # Some tools Automake needs.
4561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4575 # For better backward compatibility. To be removed once Automake 1.9.x
4576 # dies out for good. For more background, see:
4577 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4578 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4579 mkdir_p='$(MKDIR_P)'
4581 # We need awk for the "check" target (and possibly the TAP driver). The
4582 # system "awk" is bad on some platforms.
4583 # Always define AMTAR for backward compatibility. Yes, it's still used
4584 # in the wild :-( We should find a proper way to deprecate it ...
4585 AMTAR='$${TAR-tar}'
4588 # We'll loop over all known methods to create a tar archive until one works.
4589 _am_tools='gnutar pax cpio none'
4591 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4597 depcc="$CC" am_compiler_list=
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4600 $as_echo_n "checking dependency style of $depcc... " >&6; }
4601 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4605 # We make a subdir and do the tests there. Otherwise we can end up
4606 # making bogus files that we don't know about and never remove. For
4607 # instance it was reported that on HP-UX the gcc test will end up
4608 # making a dummy file named 'D' -- because '-MD' means "put the output
4609 # in D".
4610 rm -rf conftest.dir
4611 mkdir conftest.dir
4612 # Copy depcomp to subdir because otherwise we won't find it if we're
4613 # using a relative directory.
4614 cp "$am_depcomp" conftest.dir
4615 cd conftest.dir
4616 # We will build objects and dependencies in a subdirectory because
4617 # it helps to detect inapplicable dependency modes. For instance
4618 # both Tru64's cc and ICC support -MD to output dependencies as a
4619 # side effect of compilation, but ICC will put the dependencies in
4620 # the current directory while Tru64 will put them in the object
4621 # directory.
4622 mkdir sub
4624 am_cv_CC_dependencies_compiler_type=none
4625 if test "$am_compiler_list" = ""; then
4626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4628 am__universal=false
4629 case " $depcc " in #(
4630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4631 esac
4633 for depmode in $am_compiler_list; do
4634 # Setup a source with many dependencies, because some compilers
4635 # like to wrap large dependency lists on column 80 (with \), and
4636 # we should not choose a depcomp mode which is confused by this.
4638 # We need to recreate these files for each test, as the compiler may
4639 # overwrite some of them when testing with obscure command lines.
4640 # This happens at least with the AIX C compiler.
4641 : > sub/conftest.c
4642 for i in 1 2 3 4 5 6; do
4643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4644 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4645 # Solaris 10 /bin/sh.
4646 echo '/* dummy */' > sub/conftst$i.h
4647 done
4648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4650 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4651 # mode. It turns out that the SunPro C++ compiler does not properly
4652 # handle '-M -o', and we need to detect this. Also, some Intel
4653 # versions had trouble with output in subdirs.
4654 am__obj=sub/conftest.${OBJEXT-o}
4655 am__minus_obj="-o $am__obj"
4656 case $depmode in
4657 gcc)
4658 # This depmode causes a compiler race in universal mode.
4659 test "$am__universal" = false || continue
4661 nosideeffect)
4662 # After this tag, mechanisms are not by side-effect, so they'll
4663 # only be used when explicitly requested.
4664 if test "x$enable_dependency_tracking" = xyes; then
4665 continue
4666 else
4667 break
4670 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4671 # This compiler won't grok '-c -o', but also, the minuso test has
4672 # not run yet. These depmodes are late enough in the game, and
4673 # so weak that their functioning should not be impacted.
4674 am__obj=conftest.${OBJEXT-o}
4675 am__minus_obj=
4677 none) break ;;
4678 esac
4679 if depmode=$depmode \
4680 source=sub/conftest.c object=$am__obj \
4681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4683 >/dev/null 2>conftest.err &&
4684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4688 # icc doesn't choke on unknown options, it will just issue warnings
4689 # or remarks (even with -Werror). So we grep stderr for any message
4690 # that says an option was ignored or not supported.
4691 # When given -MP, icc 7.0 and 7.1 complain thusly:
4692 # icc: Command line warning: ignoring option '-M'; no argument required
4693 # The diagnosis changed in icc 8.0:
4694 # icc: Command line remark: option '-MP' not supported
4695 if (grep 'ignoring option' conftest.err ||
4696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4697 am_cv_CC_dependencies_compiler_type=$depmode
4698 break
4701 done
4703 cd ..
4704 rm -rf conftest.dir
4705 else
4706 am_cv_CC_dependencies_compiler_type=none
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4711 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4712 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4715 test "x$enable_dependency_tracking" != xno \
4716 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4717 am__fastdepCC_TRUE=
4718 am__fastdepCC_FALSE='#'
4719 else
4720 am__fastdepCC_TRUE='#'
4721 am__fastdepCC_FALSE=
4726 # POSIX will say in a future version that running "rm -f" with no argument
4727 # is OK; and we want to be able to make that assumption in our Makefile
4728 # recipes. So use an aggressive probe to check that the usage we want is
4729 # actually supported "in the wild" to an acceptable degree.
4730 # See automake bug#10828.
4731 # To make any issue more visible, cause the running configure to be aborted
4732 # by default if the 'rm' program in use doesn't match our expectations; the
4733 # user can still override this though.
4734 if rm -f && rm -fr && rm -rf; then : OK; else
4735 cat >&2 <<'END'
4736 Oops!
4738 Your 'rm' program seems unable to run without file operands specified
4739 on the command line, even when the '-f' option is present. This is contrary
4740 to the behaviour of most rm programs out there, and not conforming with
4741 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4743 Please tell bug-automake@gnu.org about your system, including the value
4744 of your $PATH and any error possibly output before this message. This
4745 can help us improve future automake versions.
4748 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4749 echo 'Configuration will proceed anyway, since you have set the' >&2
4750 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4751 echo >&2
4752 else
4753 cat >&2 <<'END'
4754 Aborting the configuration process, to ensure you take notice of the issue.
4756 You can download and install GNU coreutils to get an 'rm' implementation
4757 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4759 If you want to complete the configuration process using your problematic
4760 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4761 to "yes", and re-run configure.
4764 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4770 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4771 # Check whether --enable-maintainer-mode was given.
4772 if test "${enable_maintainer_mode+set}" = set; then :
4773 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4774 else
4775 USE_MAINTAINER_MODE=no
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4779 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4780 if test $USE_MAINTAINER_MODE = yes; then
4781 MAINTAINER_MODE_TRUE=
4782 MAINTAINER_MODE_FALSE='#'
4783 else
4784 MAINTAINER_MODE_TRUE='#'
4785 MAINTAINER_MODE_FALSE=
4788 MAINT=$MAINTAINER_MODE_TRUE
4794 # These need to be absolute paths, yet at the same time need to
4795 # canonicalize only relative paths, because then amd will not unmount
4796 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4797 libvtv_builddir=`${PWDCMD-pwd}`
4798 case $srcdir in
4799 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4800 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4801 esac
4802 toplevel_builddir=${libvtv_builddir}/..
4803 toplevel_srcdir=${libvtv_srcdir}/..
4810 # Calculate toolexeclibdir
4811 # Also toolexecdir, though it's only used in toolexeclibdir
4812 case ${version_specific_libs} in
4813 yes)
4814 # Need the gcc compiler version to know where to install libraries
4815 # and header files if --enable-version-specific-runtime-libs option
4816 # is selected.
4817 toolexecdir='$(libdir)/gcc/$(target_alias)'
4818 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4821 if test -n "$with_cross_host" &&
4822 test x"$with_cross_host" != x"no"; then
4823 # Install a library built with a cross compiler in tooldir, not libdir.
4824 toolexecdir='$(exec_prefix)/$(target_alias)'
4825 toolexeclibdir='$(toolexecdir)/lib'
4826 else
4827 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4828 toolexeclibdir='$(libdir)'
4830 multi_os_directory=`$CC -print-multi-os-directory`
4831 case $multi_os_directory in
4832 .) ;; # Avoid trailing /.
4833 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4834 esac
4836 esac
4841 for ac_func in __secure_getenv
4842 do :
4843 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4844 if test "x$ac_cv_func___secure_getenv" = xyes; then :
4845 cat >>confdefs.h <<_ACEOF
4846 #define HAVE___SECURE_GETENV 1
4847 _ACEOF
4850 done
4854 for ac_func in secure_getenv
4855 do :
4856 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4857 if test "x$ac_cv_func_secure_getenv" = xyes; then :
4858 cat >>confdefs.h <<_ACEOF
4859 #define HAVE_SECURE_GETENV 1
4860 _ACEOF
4863 done
4866 for ac_func in getexecname __fortify_fail
4867 do :
4868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4871 cat >>confdefs.h <<_ACEOF
4872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4873 _ACEOF
4876 done
4879 # Check for programs.
4882 ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_CC+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$CC"; then
4896 ac_cv_prog_CC="$CC" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4909 done
4910 done
4911 IFS=$as_save_IFS
4915 CC=$ac_cv_prog_CC
4916 if test -n "$CC"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918 $as_echo "$CC" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4926 if test -z "$ac_cv_prog_CC"; then
4927 ac_ct_CC=$CC
4928 # Extract the first word of "gcc", so it can be a program name with args.
4929 set dummy gcc; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$ac_ct_CC"; then
4936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_prog_ac_ct_CC="gcc"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4949 done
4950 done
4951 IFS=$as_save_IFS
4955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4956 if test -n "$ac_ct_CC"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4958 $as_echo "$ac_ct_CC" >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4964 if test "x$ac_ct_CC" = x; then
4965 CC=""
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973 CC=$ac_ct_CC
4975 else
4976 CC="$ac_cv_prog_CC"
4979 if test -z "$CC"; then
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}cc; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_CC+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$CC"; then
4989 ac_cv_prog_CC="$CC" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_CC="${ac_tool_prefix}cc"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5002 done
5003 done
5004 IFS=$as_save_IFS
5008 CC=$ac_cv_prog_CC
5009 if test -n "$CC"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5011 $as_echo "$CC" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5020 if test -z "$CC"; then
5021 # Extract the first word of "cc", so it can be a program name with args.
5022 set dummy cc; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_CC+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$CC"; then
5029 ac_cv_prog_CC="$CC" # Let the user override the test.
5030 else
5031 ac_prog_rejected=no
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5040 ac_prog_rejected=yes
5041 continue
5043 ac_cv_prog_CC="cc"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5047 done
5048 done
5049 IFS=$as_save_IFS
5051 if test $ac_prog_rejected = yes; then
5052 # We found a bogon in the path, so make sure we never use it.
5053 set dummy $ac_cv_prog_CC
5054 shift
5055 if test $# != 0; then
5056 # We chose a different compiler from the bogus one.
5057 # However, it has the same basename, so the bogon will be chosen
5058 # first if we set CC to just the basename; use the full file name.
5059 shift
5060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5065 CC=$ac_cv_prog_CC
5066 if test -n "$CC"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5068 $as_echo "$CC" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5076 if test -z "$CC"; then
5077 if test -n "$ac_tool_prefix"; then
5078 for ac_prog in cl.exe
5080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_CC+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5107 CC=$ac_cv_prog_CC
5108 if test -n "$CC"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110 $as_echo "$CC" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5117 test -n "$CC" && break
5118 done
5120 if test -z "$CC"; then
5121 ac_ct_CC=$CC
5122 for ac_prog in cl.exe
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$ac_ct_CC"; then
5132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_ac_ct_CC="$ac_prog"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5152 if test -n "$ac_ct_CC"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5154 $as_echo "$ac_ct_CC" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 test -n "$ac_ct_CC" && break
5162 done
5164 if test "x$ac_ct_CC" = x; then
5165 CC=""
5166 else
5167 case $cross_compiling:$ac_tool_warned in
5168 yes:)
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5172 esac
5173 CC=$ac_ct_CC
5180 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error $? "no acceptable C compiler found in \$PATH
5183 See \`config.log' for more details" "$LINENO" 5; }
5185 # Provide some information about the compiler.
5186 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5187 set X $ac_compile
5188 ac_compiler=$2
5189 for ac_option in --version -v -V -qversion; do
5190 { { ac_try="$ac_compiler $ac_option >&5"
5191 case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194 esac
5195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5196 $as_echo "$ac_try_echo"; } >&5
5197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5198 ac_status=$?
5199 if test -s conftest.err; then
5200 sed '10a\
5201 ... rest of stderr output deleted ...
5202 10q' conftest.err >conftest.er1
5203 cat conftest.er1 >&5
5205 rm -f conftest.er1 conftest.err
5206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5207 test $ac_status = 0; }
5208 done
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5211 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5212 if ${ac_cv_c_compiler_gnu+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5219 main ()
5221 #ifndef __GNUC__
5222 choke me
5223 #endif
5226 return 0;
5228 _ACEOF
5229 if ac_fn_c_try_compile "$LINENO"; then :
5230 ac_compiler_gnu=yes
5231 else
5232 ac_compiler_gnu=no
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5240 if test $ac_compiler_gnu = yes; then
5241 GCC=yes
5242 else
5243 GCC=
5245 ac_test_CFLAGS=${CFLAGS+set}
5246 ac_save_CFLAGS=$CFLAGS
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5249 if ${ac_cv_prog_cc_g+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 ac_save_c_werror_flag=$ac_c_werror_flag
5253 ac_c_werror_flag=yes
5254 ac_cv_prog_cc_g=no
5255 CFLAGS="-g"
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5260 main ()
5264 return 0;
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"; then :
5268 ac_cv_prog_cc_g=yes
5269 else
5270 CFLAGS=""
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5275 main ()
5279 return 0;
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5284 else
5285 ac_c_werror_flag=$ac_save_c_werror_flag
5286 CFLAGS="-g"
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5291 main ()
5295 return 0;
5297 _ACEOF
5298 if ac_fn_c_try_compile "$LINENO"; then :
5299 ac_cv_prog_cc_g=yes
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 ac_c_werror_flag=$ac_save_c_werror_flag
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5309 $as_echo "$ac_cv_prog_cc_g" >&6; }
5310 if test "$ac_test_CFLAGS" = set; then
5311 CFLAGS=$ac_save_CFLAGS
5312 elif test $ac_cv_prog_cc_g = yes; then
5313 if test "$GCC" = yes; then
5314 CFLAGS="-g -O2"
5315 else
5316 CFLAGS="-g"
5318 else
5319 if test "$GCC" = yes; then
5320 CFLAGS="-O2"
5321 else
5322 CFLAGS=
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5327 if ${ac_cv_prog_cc_c89+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 ac_cv_prog_cc_c89=no
5331 ac_save_CC=$CC
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <stdarg.h>
5335 #include <stdio.h>
5336 struct stat;
5337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5338 struct buf { int x; };
5339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340 static char *e (p, i)
5341 char **p;
5342 int i;
5344 return p[i];
5346 static char *f (char * (*g) (char **, int), char **p, ...)
5348 char *s;
5349 va_list v;
5350 va_start (v,p);
5351 s = g (p, va_arg (v,int));
5352 va_end (v);
5353 return s;
5356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5357 function prototypes and stuff, but not '\xHH' hex character constants.
5358 These don't provoke an error unfortunately, instead are silently treated
5359 as 'x'. The following induces an error, until -std is added to get
5360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5361 array size at least. It's necessary to write '\x00'==0 to get something
5362 that's true only with -std. */
5363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366 inside strings and character constants. */
5367 #define FOO(x) 'x'
5368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5370 int test (int i, double x);
5371 struct s1 {int (*f) (int a);};
5372 struct s2 {int (*f) (double a);};
5373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374 int argc;
5375 char **argv;
5377 main ()
5379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5381 return 0;
5383 _ACEOF
5384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5387 CC="$ac_save_CC $ac_arg"
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_prog_cc_c89=$ac_arg
5391 rm -f core conftest.err conftest.$ac_objext
5392 test "x$ac_cv_prog_cc_c89" != "xno" && break
5393 done
5394 rm -f conftest.$ac_ext
5395 CC=$ac_save_CC
5398 # AC_CACHE_VAL
5399 case "x$ac_cv_prog_cc_c89" in
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402 $as_echo "none needed" >&6; } ;;
5403 xno)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5405 $as_echo "unsupported" >&6; } ;;
5407 CC="$CC $ac_cv_prog_cc_c89"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5409 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5410 esac
5411 if test "x$ac_cv_prog_cc_c89" != xno; then :
5415 ac_ext=c
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5427 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5428 if ${am_cv_prog_cc_c_o+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5435 main ()
5439 return 0;
5441 _ACEOF
5442 # Make sure it works both with $CC and with simple cc.
5443 # Following AC_PROG_CC_C_O, we do the test twice because some
5444 # compilers refuse to overwrite an existing .o file with -o,
5445 # though they will create one.
5446 am_cv_prog_cc_c_o=yes
5447 for am_i in 1 2; do
5448 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5449 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } \
5453 && test -f conftest2.$ac_objext; then
5454 : OK
5455 else
5456 am_cv_prog_cc_c_o=no
5457 break
5459 done
5460 rm -f core conftest*
5461 unset am_i
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5464 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5465 if test "$am_cv_prog_cc_c_o" != yes; then
5466 # Losing compiler, so override with the script.
5467 # FIXME: It is wrong to rewrite CC.
5468 # But if we don't then we get into trouble of one sort or another.
5469 # A longer-term fix would be to have automake use am__CC in this case,
5470 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5471 CC="$am_aux_dir/compile $CC"
5473 ac_ext=c
5474 ac_cpp='$CPP $CPPFLAGS'
5475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5480 ac_ext=cpp
5481 ac_cpp='$CXXCPP $CPPFLAGS'
5482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5485 if test -z "$CXX"; then
5486 if test -n "$CCC"; then
5487 CXX=$CCC
5488 else
5489 if test -n "$ac_tool_prefix"; then
5490 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_CXX+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$CXX"; then
5500 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5513 done
5514 done
5515 IFS=$as_save_IFS
5519 CXX=$ac_cv_prog_CXX
5520 if test -n "$CXX"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5522 $as_echo "$CXX" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5529 test -n "$CXX" && break
5530 done
5532 if test -z "$CXX"; then
5533 ac_ct_CXX=$CXX
5534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5536 # Extract the first word of "$ac_prog", so it can be a program name with args.
5537 set dummy $ac_prog; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$ac_ct_CXX"; then
5544 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_ac_ct_CXX="$ac_prog"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5557 done
5558 done
5559 IFS=$as_save_IFS
5563 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5564 if test -n "$ac_ct_CXX"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5566 $as_echo "$ac_ct_CXX" >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 test -n "$ac_ct_CXX" && break
5574 done
5576 if test "x$ac_ct_CXX" = x; then
5577 CXX="g++"
5578 else
5579 case $cross_compiling:$ac_tool_warned in
5580 yes:)
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583 ac_tool_warned=yes ;;
5584 esac
5585 CXX=$ac_ct_CXX
5591 # Provide some information about the compiler.
5592 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5593 set X $ac_compile
5594 ac_compiler=$2
5595 for ac_option in --version -v -V -qversion; do
5596 { { ac_try="$ac_compiler $ac_option >&5"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5602 $as_echo "$ac_try_echo"; } >&5
5603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5604 ac_status=$?
5605 if test -s conftest.err; then
5606 sed '10a\
5607 ... rest of stderr output deleted ...
5608 10q' conftest.err >conftest.er1
5609 cat conftest.er1 >&5
5611 rm -f conftest.er1 conftest.err
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }
5614 done
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5617 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5618 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5625 main ()
5627 #ifndef __GNUC__
5628 choke me
5629 #endif
5632 return 0;
5634 _ACEOF
5635 if ac_fn_cxx_try_compile "$LINENO"; then :
5636 ac_compiler_gnu=yes
5637 else
5638 ac_compiler_gnu=no
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5645 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5646 if test $ac_compiler_gnu = yes; then
5647 GXX=yes
5648 else
5649 GXX=
5651 ac_test_CXXFLAGS=${CXXFLAGS+set}
5652 ac_save_CXXFLAGS=$CXXFLAGS
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5654 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5655 if ${ac_cv_prog_cxx_g+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5659 ac_cxx_werror_flag=yes
5660 ac_cv_prog_cxx_g=no
5661 CXXFLAGS="-g"
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5666 main ()
5670 return 0;
5672 _ACEOF
5673 if ac_fn_cxx_try_compile "$LINENO"; then :
5674 ac_cv_prog_cxx_g=yes
5675 else
5676 CXXFLAGS=""
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5681 main ()
5685 return 0;
5687 _ACEOF
5688 if ac_fn_cxx_try_compile "$LINENO"; then :
5690 else
5691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5692 CXXFLAGS="-g"
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5697 main ()
5701 return 0;
5703 _ACEOF
5704 if ac_fn_cxx_try_compile "$LINENO"; then :
5705 ac_cv_prog_cxx_g=yes
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5715 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5716 if test "$ac_test_CXXFLAGS" = set; then
5717 CXXFLAGS=$ac_save_CXXFLAGS
5718 elif test $ac_cv_prog_cxx_g = yes; then
5719 if test "$GXX" = yes; then
5720 CXXFLAGS="-g -O2"
5721 else
5722 CXXFLAGS="-g"
5724 else
5725 if test "$GXX" = yes; then
5726 CXXFLAGS="-O2"
5727 else
5728 CXXFLAGS=
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737 depcc="$CXX" am_compiler_list=
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5740 $as_echo_n "checking dependency style of $depcc... " >&6; }
5741 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5745 # We make a subdir and do the tests there. Otherwise we can end up
5746 # making bogus files that we don't know about and never remove. For
5747 # instance it was reported that on HP-UX the gcc test will end up
5748 # making a dummy file named 'D' -- because '-MD' means "put the output
5749 # in D".
5750 rm -rf conftest.dir
5751 mkdir conftest.dir
5752 # Copy depcomp to subdir because otherwise we won't find it if we're
5753 # using a relative directory.
5754 cp "$am_depcomp" conftest.dir
5755 cd conftest.dir
5756 # We will build objects and dependencies in a subdirectory because
5757 # it helps to detect inapplicable dependency modes. For instance
5758 # both Tru64's cc and ICC support -MD to output dependencies as a
5759 # side effect of compilation, but ICC will put the dependencies in
5760 # the current directory while Tru64 will put them in the object
5761 # directory.
5762 mkdir sub
5764 am_cv_CXX_dependencies_compiler_type=none
5765 if test "$am_compiler_list" = ""; then
5766 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5768 am__universal=false
5769 case " $depcc " in #(
5770 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5771 esac
5773 for depmode in $am_compiler_list; do
5774 # Setup a source with many dependencies, because some compilers
5775 # like to wrap large dependency lists on column 80 (with \), and
5776 # we should not choose a depcomp mode which is confused by this.
5778 # We need to recreate these files for each test, as the compiler may
5779 # overwrite some of them when testing with obscure command lines.
5780 # This happens at least with the AIX C compiler.
5781 : > sub/conftest.c
5782 for i in 1 2 3 4 5 6; do
5783 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5784 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5785 # Solaris 10 /bin/sh.
5786 echo '/* dummy */' > sub/conftst$i.h
5787 done
5788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5790 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5791 # mode. It turns out that the SunPro C++ compiler does not properly
5792 # handle '-M -o', and we need to detect this. Also, some Intel
5793 # versions had trouble with output in subdirs.
5794 am__obj=sub/conftest.${OBJEXT-o}
5795 am__minus_obj="-o $am__obj"
5796 case $depmode in
5797 gcc)
5798 # This depmode causes a compiler race in universal mode.
5799 test "$am__universal" = false || continue
5801 nosideeffect)
5802 # After this tag, mechanisms are not by side-effect, so they'll
5803 # only be used when explicitly requested.
5804 if test "x$enable_dependency_tracking" = xyes; then
5805 continue
5806 else
5807 break
5810 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5811 # This compiler won't grok '-c -o', but also, the minuso test has
5812 # not run yet. These depmodes are late enough in the game, and
5813 # so weak that their functioning should not be impacted.
5814 am__obj=conftest.${OBJEXT-o}
5815 am__minus_obj=
5817 none) break ;;
5818 esac
5819 if depmode=$depmode \
5820 source=sub/conftest.c object=$am__obj \
5821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5822 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5823 >/dev/null 2>conftest.err &&
5824 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5825 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5826 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5828 # icc doesn't choke on unknown options, it will just issue warnings
5829 # or remarks (even with -Werror). So we grep stderr for any message
5830 # that says an option was ignored or not supported.
5831 # When given -MP, icc 7.0 and 7.1 complain thusly:
5832 # icc: Command line warning: ignoring option '-M'; no argument required
5833 # The diagnosis changed in icc 8.0:
5834 # icc: Command line remark: option '-MP' not supported
5835 if (grep 'ignoring option' conftest.err ||
5836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5837 am_cv_CXX_dependencies_compiler_type=$depmode
5838 break
5841 done
5843 cd ..
5844 rm -rf conftest.dir
5845 else
5846 am_cv_CXX_dependencies_compiler_type=none
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5851 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5852 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5855 test "x$enable_dependency_tracking" != xno \
5856 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5857 am__fastdepCXX_TRUE=
5858 am__fastdepCXX_FALSE='#'
5859 else
5860 am__fastdepCXX_TRUE='#'
5861 am__fastdepCXX_FALSE=
5872 # Newer automakes demand CCAS and CCASFLAGS.
5873 : ${CCAS='$(CC)'}
5874 : ${CCASFLAGS='$(CFLAGS)'}
5878 if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5880 set dummy ${ac_tool_prefix}as; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_AS+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -n "$AS"; then
5887 ac_cv_prog_AS="$AS" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896 ac_cv_prog_AS="${ac_tool_prefix}as"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5900 done
5901 done
5902 IFS=$as_save_IFS
5906 AS=$ac_cv_prog_AS
5907 if test -n "$AS"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5909 $as_echo "$AS" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5917 if test -z "$ac_cv_prog_AS"; then
5918 ac_ct_AS=$AS
5919 # Extract the first word of "as", so it can be a program name with args.
5920 set dummy as; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$ac_ct_AS"; then
5927 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936 ac_cv_prog_ac_ct_AS="as"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5940 done
5941 done
5942 IFS=$as_save_IFS
5946 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5947 if test -n "$ac_ct_AS"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5949 $as_echo "$ac_ct_AS" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5955 if test "x$ac_ct_AS" = x; then
5956 AS=""
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5963 esac
5964 AS=$ac_ct_AS
5966 else
5967 AS="$ac_cv_prog_AS"
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}ar; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if ${ac_cv_prog_AR+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if test -n "$AR"; then
5979 ac_cv_prog_AR="$AR" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_AR="${ac_tool_prefix}ar"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5992 done
5993 done
5994 IFS=$as_save_IFS
5998 AR=$ac_cv_prog_AR
5999 if test -n "$AR"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6001 $as_echo "$AR" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6009 if test -z "$ac_cv_prog_AR"; then
6010 ac_ct_AR=$AR
6011 # Extract the first word of "ar", so it can be a program name with args.
6012 set dummy ar; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$ac_ct_AR"; then
6019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_AR="ar"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6038 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6039 if test -n "$ac_ct_AR"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6041 $as_echo "$ac_ct_AR" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6047 if test "x$ac_ct_AR" = x; then
6048 AR=""
6049 else
6050 case $cross_compiling:$ac_tool_warned in
6051 yes:)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054 ac_tool_warned=yes ;;
6055 esac
6056 AR=$ac_ct_AR
6058 else
6059 AR="$ac_cv_prog_AR"
6062 if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6064 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_RANLIB+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$RANLIB"; then
6071 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6084 done
6085 done
6086 IFS=$as_save_IFS
6090 RANLIB=$ac_cv_prog_RANLIB
6091 if test -n "$RANLIB"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6093 $as_echo "$RANLIB" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6101 if test -z "$ac_cv_prog_RANLIB"; then
6102 ac_ct_RANLIB=$RANLIB
6103 # Extract the first word of "ranlib", so it can be a program name with args.
6104 set dummy ranlib; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$ac_ct_RANLIB"; then
6111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_RANLIB="ranlib"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6126 IFS=$as_save_IFS
6130 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6131 if test -n "$ac_ct_RANLIB"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6133 $as_echo "$ac_ct_RANLIB" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6139 if test "x$ac_ct_RANLIB" = x; then
6140 RANLIB=":"
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143 yes:)
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146 ac_tool_warned=yes ;;
6147 esac
6148 RANLIB=$ac_ct_RANLIB
6150 else
6151 RANLIB="$ac_cv_prog_RANLIB"
6155 # Configure libtool
6156 enable_dlopen=yes
6160 case `pwd` in
6161 *\ * | *\ *)
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6163 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6164 esac
6168 macro_version='2.2.7a'
6169 macro_revision='1.3134'
6183 ltmain="$ac_aux_dir/ltmain.sh"
6185 # Backslashify metacharacters that are still active within
6186 # double-quoted strings.
6187 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6189 # Same as above, but do not quote variable references.
6190 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6192 # Sed substitution to delay expansion of an escaped shell variable in a
6193 # double_quote_subst'ed string.
6194 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6196 # Sed substitution to delay expansion of an escaped single quote.
6197 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6199 # Sed substitution to avoid accidental globbing in evaled expressions
6200 no_glob_subst='s/\*/\\\*/g'
6202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6203 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6204 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6207 $as_echo_n "checking how to print strings... " >&6; }
6208 # Test print first, because it will be a builtin if present.
6209 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6210 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6211 ECHO='print -r --'
6212 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6213 ECHO='printf %s\n'
6214 else
6215 # Use this function as a fallback that always works.
6216 func_fallback_echo ()
6218 eval 'cat <<_LTECHO_EOF
6220 _LTECHO_EOF'
6222 ECHO='func_fallback_echo'
6225 # func_echo_all arg...
6226 # Invoke $ECHO with all args, space-separated.
6227 func_echo_all ()
6229 $ECHO ""
6232 case "$ECHO" in
6233 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6234 $as_echo "printf" >&6; } ;;
6235 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6236 $as_echo "print -r" >&6; } ;;
6237 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6238 $as_echo "cat" >&6; } ;;
6239 esac
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6255 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6256 if ${ac_cv_path_SED+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6260 for ac_i in 1 2 3 4 5 6 7; do
6261 ac_script="$ac_script$as_nl$ac_script"
6262 done
6263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6264 { ac_script=; unset ac_script;}
6265 if test -z "$SED"; then
6266 ac_path_SED_found=false
6267 # Loop through the user's path and test for each of PROGNAME-LIST
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_prog in sed gsed; do
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6276 as_fn_executable_p "$ac_path_SED" || continue
6277 # Check for GNU ac_path_SED and select it if it is found.
6278 # Check for GNU $ac_path_SED
6279 case `"$ac_path_SED" --version 2>&1` in
6280 *GNU*)
6281 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6283 ac_count=0
6284 $as_echo_n 0123456789 >"conftest.in"
6285 while :
6287 cat "conftest.in" "conftest.in" >"conftest.tmp"
6288 mv "conftest.tmp" "conftest.in"
6289 cp "conftest.in" "conftest.nl"
6290 $as_echo '' >> "conftest.nl"
6291 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6293 as_fn_arith $ac_count + 1 && ac_count=$as_val
6294 if test $ac_count -gt ${ac_path_SED_max-0}; then
6295 # Best one so far, save it but keep looking for a better one
6296 ac_cv_path_SED="$ac_path_SED"
6297 ac_path_SED_max=$ac_count
6299 # 10*(2^10) chars as input seems more than enough
6300 test $ac_count -gt 10 && break
6301 done
6302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6303 esac
6305 $ac_path_SED_found && break 3
6306 done
6307 done
6308 done
6309 IFS=$as_save_IFS
6310 if test -z "$ac_cv_path_SED"; then
6311 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6313 else
6314 ac_cv_path_SED=$SED
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6319 $as_echo "$ac_cv_path_SED" >&6; }
6320 SED="$ac_cv_path_SED"
6321 rm -f conftest.sed
6323 test -z "$SED" && SED=sed
6324 Xsed="$SED -e 1s/^X//"
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6337 $as_echo_n "checking for fgrep... " >&6; }
6338 if ${ac_cv_path_FGREP+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6342 then ac_cv_path_FGREP="$GREP -F"
6343 else
6344 if test -z "$FGREP"; then
6345 ac_path_FGREP_found=false
6346 # Loop through the user's path and test for each of PROGNAME-LIST
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_prog in fgrep; do
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6355 as_fn_executable_p "$ac_path_FGREP" || continue
6356 # Check for GNU ac_path_FGREP and select it if it is found.
6357 # Check for GNU $ac_path_FGREP
6358 case `"$ac_path_FGREP" --version 2>&1` in
6359 *GNU*)
6360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6362 ac_count=0
6363 $as_echo_n 0123456789 >"conftest.in"
6364 while :
6366 cat "conftest.in" "conftest.in" >"conftest.tmp"
6367 mv "conftest.tmp" "conftest.in"
6368 cp "conftest.in" "conftest.nl"
6369 $as_echo 'FGREP' >> "conftest.nl"
6370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6372 as_fn_arith $ac_count + 1 && ac_count=$as_val
6373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6374 # Best one so far, save it but keep looking for a better one
6375 ac_cv_path_FGREP="$ac_path_FGREP"
6376 ac_path_FGREP_max=$ac_count
6378 # 10*(2^10) chars as input seems more than enough
6379 test $ac_count -gt 10 && break
6380 done
6381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6382 esac
6384 $ac_path_FGREP_found && break 3
6385 done
6386 done
6387 done
6388 IFS=$as_save_IFS
6389 if test -z "$ac_cv_path_FGREP"; then
6390 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6392 else
6393 ac_cv_path_FGREP=$FGREP
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6399 $as_echo "$ac_cv_path_FGREP" >&6; }
6400 FGREP="$ac_cv_path_FGREP"
6403 test -z "$GREP" && GREP=grep
6423 # Check whether --with-gnu-ld was given.
6424 if test "${with_gnu_ld+set}" = set; then :
6425 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6426 else
6427 with_gnu_ld=no
6430 ac_prog=ld
6431 if test "$GCC" = yes; then
6432 # Check if gcc -print-prog-name=ld gives a path.
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6434 $as_echo_n "checking for ld used by $CC... " >&6; }
6435 case $host in
6436 *-*-mingw*)
6437 # gcc leaves a trailing carriage return which upsets mingw
6438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6441 esac
6442 case $ac_prog in
6443 # Accept absolute paths.
6444 [\\/]* | ?:[\\/]*)
6445 re_direlt='/[^/][^/]*/\.\./'
6446 # Canonicalize the pathname of ld
6447 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6448 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6449 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6450 done
6451 test -z "$LD" && LD="$ac_prog"
6454 # If it fails, then pretend we aren't using GCC.
6455 ac_prog=ld
6458 # If it is relative, then search for the first ld in PATH.
6459 with_gnu_ld=unknown
6461 esac
6462 elif test "$with_gnu_ld" = yes; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6464 $as_echo_n "checking for GNU ld... " >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6467 $as_echo_n "checking for non-GNU ld... " >&6; }
6469 if ${lt_cv_path_LD+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 if test -z "$LD"; then
6473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6474 for ac_dir in $PATH; do
6475 IFS="$lt_save_ifs"
6476 test -z "$ac_dir" && ac_dir=.
6477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6478 lt_cv_path_LD="$ac_dir/$ac_prog"
6479 # Check to see if the program is GNU ld. I'd rather use --version,
6480 # but apparently some variants of GNU ld only accept -v.
6481 # Break only if it was the GNU/non-GNU ld that we prefer.
6482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6483 *GNU* | *'with BFD'*)
6484 test "$with_gnu_ld" != no && break
6487 test "$with_gnu_ld" != yes && break
6489 esac
6491 done
6492 IFS="$lt_save_ifs"
6493 else
6494 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6498 LD="$lt_cv_path_LD"
6499 if test -n "$LD"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6501 $as_echo "$LD" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6506 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6508 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6509 if ${lt_cv_prog_gnu_ld+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6513 case `$LD -v 2>&1 </dev/null` in
6514 *GNU* | *'with BFD'*)
6515 lt_cv_prog_gnu_ld=yes
6518 lt_cv_prog_gnu_ld=no
6520 esac
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6523 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6524 with_gnu_ld=$lt_cv_prog_gnu_ld
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6535 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6536 if ${lt_cv_path_NM+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 if test -n "$NM"; then
6540 # Let the user override the test.
6541 lt_cv_path_NM="$NM"
6542 else
6543 lt_nm_to_check="${ac_tool_prefix}nm"
6544 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6545 lt_nm_to_check="$lt_nm_to_check nm"
6547 for lt_tmp_nm in $lt_nm_to_check; do
6548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6549 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6550 IFS="$lt_save_ifs"
6551 test -z "$ac_dir" && ac_dir=.
6552 tmp_nm="$ac_dir/$lt_tmp_nm"
6553 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6554 # Check to see if the nm accepts a BSD-compat flag.
6555 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6556 # nm: unknown option "B" ignored
6557 # Tru64's nm complains that /dev/null is an invalid object file
6558 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6559 */dev/null* | *'Invalid file or object type'*)
6560 lt_cv_path_NM="$tmp_nm -B"
6561 break
6564 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6565 */dev/null*)
6566 lt_cv_path_NM="$tmp_nm -p"
6567 break
6570 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6571 continue # so that we can try to find one that supports BSD flags
6573 esac
6575 esac
6577 done
6578 IFS="$lt_save_ifs"
6579 done
6580 : ${lt_cv_path_NM=no}
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6584 $as_echo "$lt_cv_path_NM" >&6; }
6585 if test "$lt_cv_path_NM" != "no"; then
6586 NM="$lt_cv_path_NM"
6587 else
6588 # Didn't find any BSD compatible name lister, look for dumpbin.
6589 if test -n "$DUMPBIN"; then :
6590 # Let the user override the test.
6591 else
6592 if test -n "$ac_tool_prefix"; then
6593 for ac_prog in dumpbin "link -dump"
6595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_DUMPBIN+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$DUMPBIN"; then
6603 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6616 done
6617 done
6618 IFS=$as_save_IFS
6622 DUMPBIN=$ac_cv_prog_DUMPBIN
6623 if test -n "$DUMPBIN"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6625 $as_echo "$DUMPBIN" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6632 test -n "$DUMPBIN" && break
6633 done
6635 if test -z "$DUMPBIN"; then
6636 ac_ct_DUMPBIN=$DUMPBIN
6637 for ac_prog in dumpbin "link -dump"
6639 # Extract the first word of "$ac_prog", so it can be a program name with args.
6640 set dummy $ac_prog; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 if test -n "$ac_ct_DUMPBIN"; then
6647 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6660 done
6661 done
6662 IFS=$as_save_IFS
6666 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6667 if test -n "$ac_ct_DUMPBIN"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6669 $as_echo "$ac_ct_DUMPBIN" >&6; }
6670 else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6676 test -n "$ac_ct_DUMPBIN" && break
6677 done
6679 if test "x$ac_ct_DUMPBIN" = x; then
6680 DUMPBIN=":"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 DUMPBIN=$ac_ct_DUMPBIN
6692 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6693 *COFF*)
6694 DUMPBIN="$DUMPBIN -symbols"
6697 DUMPBIN=:
6699 esac
6702 if test "$DUMPBIN" != ":"; then
6703 NM="$DUMPBIN"
6706 test -z "$NM" && NM=nm
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6714 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6715 if ${lt_cv_nm_interface+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 lt_cv_nm_interface="BSD nm"
6719 echo "int some_variable = 0;" > conftest.$ac_ext
6720 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6721 (eval "$ac_compile" 2>conftest.err)
6722 cat conftest.err >&5
6723 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6724 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6725 cat conftest.err >&5
6726 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6727 cat conftest.out >&5
6728 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6729 lt_cv_nm_interface="MS dumpbin"
6731 rm -f conftest*
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6734 $as_echo "$lt_cv_nm_interface" >&6; }
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6737 $as_echo_n "checking whether ln -s works... " >&6; }
6738 LN_S=$as_ln_s
6739 if test "$LN_S" = "ln -s"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6741 $as_echo "yes" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6744 $as_echo "no, using $LN_S" >&6; }
6747 # find the maximum length of command line arguments
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6749 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6750 if ${lt_cv_sys_max_cmd_len+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6754 teststring="ABCD"
6756 case $build_os in
6757 msdosdjgpp*)
6758 # On DJGPP, this test can blow up pretty badly due to problems in libc
6759 # (any single argument exceeding 2000 bytes causes a buffer overrun
6760 # during glob expansion). Even if it were fixed, the result of this
6761 # check would be larger than it should be.
6762 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6765 gnu*)
6766 # Under GNU Hurd, this test is not required because there is
6767 # no limit to the length of command line arguments.
6768 # Libtool will interpret -1 as no limit whatsoever
6769 lt_cv_sys_max_cmd_len=-1;
6772 cygwin* | mingw* | cegcc*)
6773 # On Win9x/ME, this test blows up -- it succeeds, but takes
6774 # about 5 minutes as the teststring grows exponentially.
6775 # Worse, since 9x/ME are not pre-emptively multitasking,
6776 # you end up with a "frozen" computer, even though with patience
6777 # the test eventually succeeds (with a max line length of 256k).
6778 # Instead, let's just punt: use the minimum linelength reported by
6779 # all of the supported platforms: 8192 (on NT/2K/XP).
6780 lt_cv_sys_max_cmd_len=8192;
6783 mint*)
6784 # On MiNT this can take a long time and run out of memory.
6785 lt_cv_sys_max_cmd_len=8192;
6788 amigaos*)
6789 # On AmigaOS with pdksh, this test takes hours, literally.
6790 # So we just punt and use a minimum line length of 8192.
6791 lt_cv_sys_max_cmd_len=8192;
6794 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6795 # This has been around since 386BSD, at least. Likely further.
6796 if test -x /sbin/sysctl; then
6797 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6798 elif test -x /usr/sbin/sysctl; then
6799 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6800 else
6801 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6803 # And add a safety zone
6804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6808 interix*)
6809 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6810 lt_cv_sys_max_cmd_len=196608
6813 osf*)
6814 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6815 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6816 # nice to cause kernel panics so lets avoid the loop below.
6817 # First set a reasonable default.
6818 lt_cv_sys_max_cmd_len=16384
6820 if test -x /sbin/sysconfig; then
6821 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6822 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6823 esac
6826 sco3.2v5*)
6827 lt_cv_sys_max_cmd_len=102400
6829 sysv5* | sco5v6* | sysv4.2uw2*)
6830 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6831 if test -n "$kargmax"; then
6832 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6833 else
6834 lt_cv_sys_max_cmd_len=32768
6838 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6839 if test -n "$lt_cv_sys_max_cmd_len"; then
6840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6842 else
6843 # Make teststring a little bigger before we do anything with it.
6844 # a 1K string should be a reasonable start.
6845 for i in 1 2 3 4 5 6 7 8 ; do
6846 teststring=$teststring$teststring
6847 done
6848 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6849 # If test is not a shell built-in, we'll probably end up computing a
6850 # maximum length that is only half of the actual maximum length, but
6851 # we can't tell.
6852 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6853 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6854 test $i != 17 # 1/2 MB should be enough
6856 i=`expr $i + 1`
6857 teststring=$teststring$teststring
6858 done
6859 # Only check the string length outside the loop.
6860 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6861 teststring=
6862 # Add a significant safety factor because C++ compilers can tack on
6863 # massive amounts of additional arguments before passing them to the
6864 # linker. It appears as though 1/2 is a usable value.
6865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6868 esac
6872 if test -n $lt_cv_sys_max_cmd_len ; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6874 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6877 $as_echo "none" >&6; }
6879 max_cmd_len=$lt_cv_sys_max_cmd_len
6886 : ${CP="cp -f"}
6887 : ${MV="mv -f"}
6888 : ${RM="rm -f"}
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6891 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6892 # Try some XSI features
6893 xsi_shell=no
6894 ( _lt_dummy="a/b/c"
6895 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6896 = c,a/b,, \
6897 && eval 'test $(( 1 + 1 )) -eq 2 \
6898 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6899 && xsi_shell=yes
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6901 $as_echo "$xsi_shell" >&6; }
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6905 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6906 lt_shell_append=no
6907 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6908 >/dev/null 2>&1 \
6909 && lt_shell_append=yes
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6911 $as_echo "$lt_shell_append" >&6; }
6914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6915 lt_unset=unset
6916 else
6917 lt_unset=false
6924 # test EBCDIC or ASCII
6925 case `echo X|tr X '\101'` in
6926 A) # ASCII based system
6927 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6928 lt_SP2NL='tr \040 \012'
6929 lt_NL2SP='tr \015\012 \040\040'
6931 *) # EBCDIC based system
6932 lt_SP2NL='tr \100 \n'
6933 lt_NL2SP='tr \r\n \100\100'
6935 esac
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6946 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6947 if ${lt_cv_ld_reload_flag+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 lt_cv_ld_reload_flag='-r'
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6953 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6954 reload_flag=$lt_cv_ld_reload_flag
6955 case $reload_flag in
6956 "" | " "*) ;;
6957 *) reload_flag=" $reload_flag" ;;
6958 esac
6959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6960 case $host_os in
6961 darwin*)
6962 if test "$GCC" = yes; then
6963 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6964 else
6965 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6968 esac
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_OBJDUMP+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$OBJDUMP"; then
6987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7006 OBJDUMP=$ac_cv_prog_OBJDUMP
7007 if test -n "$OBJDUMP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7009 $as_echo "$OBJDUMP" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7017 if test -z "$ac_cv_prog_OBJDUMP"; then
7018 ac_ct_OBJDUMP=$OBJDUMP
7019 # Extract the first word of "objdump", so it can be a program name with args.
7020 set dummy 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_ac_ct_OBJDUMP+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test -n "$ac_ct_OBJDUMP"; then
7027 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="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 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7047 if test -n "$ac_ct_OBJDUMP"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7049 $as_echo "$ac_ct_OBJDUMP" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7055 if test "x$ac_ct_OBJDUMP" = x; then
7056 OBJDUMP="false"
7057 else
7058 case $cross_compiling:$ac_tool_warned in
7059 yes:)
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062 ac_tool_warned=yes ;;
7063 esac
7064 OBJDUMP=$ac_ct_OBJDUMP
7066 else
7067 OBJDUMP="$ac_cv_prog_OBJDUMP"
7070 test -z "$OBJDUMP" && OBJDUMP=objdump
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7081 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7082 if ${lt_cv_deplibs_check_method+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 lt_cv_file_magic_cmd='$MAGIC_CMD'
7086 lt_cv_file_magic_test_file=
7087 lt_cv_deplibs_check_method='unknown'
7088 # Need to set the preceding variable on all platforms that support
7089 # interlibrary dependencies.
7090 # 'none' -- dependencies not supported.
7091 # `unknown' -- same as none, but documents that we really don't know.
7092 # 'pass_all' -- all dependencies passed with no checks.
7093 # 'test_compile' -- check by making test program.
7094 # 'file_magic [[regex]]' -- check by looking for files in library path
7095 # which responds to the $file_magic_cmd with a given extended regex.
7096 # If you have `file' or equivalent on your system and you're not sure
7097 # whether `pass_all' will *always* work, you probably want this one.
7099 case $host_os in
7100 aix[4-9]*)
7101 lt_cv_deplibs_check_method=pass_all
7104 beos*)
7105 lt_cv_deplibs_check_method=pass_all
7108 bsdi[45]*)
7109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7110 lt_cv_file_magic_cmd='/usr/bin/file -L'
7111 lt_cv_file_magic_test_file=/shlib/libc.so
7114 cygwin*)
7115 # func_win32_libid is a shell function defined in ltmain.sh
7116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7117 lt_cv_file_magic_cmd='func_win32_libid'
7120 mingw* | pw32*)
7121 # Base MSYS/MinGW do not provide the 'file' command needed by
7122 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7123 # unless we find 'file', for example because we are cross-compiling.
7124 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7125 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7127 lt_cv_file_magic_cmd='func_win32_libid'
7128 else
7129 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7130 lt_cv_file_magic_cmd='$OBJDUMP -f'
7134 cegcc*)
7135 # use the weaker test based on 'objdump'. See mingw*.
7136 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7137 lt_cv_file_magic_cmd='$OBJDUMP -f'
7140 darwin* | rhapsody*)
7141 lt_cv_deplibs_check_method=pass_all
7144 freebsd* | dragonfly*)
7145 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7146 case $host_cpu in
7147 i*86 )
7148 # Not sure whether the presence of OpenBSD here was a mistake.
7149 # Let's accept both of them until this is cleared up.
7150 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7151 lt_cv_file_magic_cmd=/usr/bin/file
7152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7154 esac
7155 else
7156 lt_cv_deplibs_check_method=pass_all
7160 gnu*)
7161 lt_cv_deplibs_check_method=pass_all
7164 haiku*)
7165 lt_cv_deplibs_check_method=pass_all
7168 hpux10.20* | hpux11*)
7169 lt_cv_file_magic_cmd=/usr/bin/file
7170 case $host_cpu in
7171 ia64*)
7172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7173 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7175 hppa*64*)
7176 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]'
7177 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7181 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7183 esac
7186 interix[3-9]*)
7187 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7191 irix5* | irix6* | nonstopux*)
7192 case $LD in
7193 *-32|*"-32 ") libmagic=32-bit;;
7194 *-n32|*"-n32 ") libmagic=N32;;
7195 *-64|*"-64 ") libmagic=64-bit;;
7196 *) libmagic=never-match;;
7197 esac
7198 lt_cv_deplibs_check_method=pass_all
7201 # This must be Linux ELF.
7202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7203 lt_cv_deplibs_check_method=pass_all
7206 netbsd*)
7207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7209 else
7210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7214 newos6*)
7215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7216 lt_cv_file_magic_cmd=/usr/bin/file
7217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7220 *nto* | *qnx*)
7221 lt_cv_deplibs_check_method=pass_all
7224 openbsd*)
7225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7227 else
7228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7232 osf3* | osf4* | osf5*)
7233 lt_cv_deplibs_check_method=pass_all
7236 rdos*)
7237 lt_cv_deplibs_check_method=pass_all
7240 solaris*)
7241 lt_cv_deplibs_check_method=pass_all
7244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7245 lt_cv_deplibs_check_method=pass_all
7248 sysv4 | sysv4.3*)
7249 case $host_vendor in
7250 motorola)
7251 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]'
7252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7254 ncr)
7255 lt_cv_deplibs_check_method=pass_all
7257 sequent)
7258 lt_cv_file_magic_cmd='/bin/file'
7259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7261 sni)
7262 lt_cv_file_magic_cmd='/bin/file'
7263 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7264 lt_cv_file_magic_test_file=/lib/libc.so
7266 siemens)
7267 lt_cv_deplibs_check_method=pass_all
7270 lt_cv_deplibs_check_method=pass_all
7272 esac
7275 tpf*)
7276 lt_cv_deplibs_check_method=pass_all
7278 esac
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7282 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7283 file_magic_cmd=$lt_cv_file_magic_cmd
7284 deplibs_check_method=$lt_cv_deplibs_check_method
7285 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7298 if test -n "$ac_tool_prefix"; then
7299 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}ar; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if ${ac_cv_prog_AR+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -n "$AR"; then
7307 ac_cv_prog_AR="$AR" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316 ac_cv_prog_AR="${ac_tool_prefix}ar"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7320 done
7321 done
7322 IFS=$as_save_IFS
7326 AR=$ac_cv_prog_AR
7327 if test -n "$AR"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7329 $as_echo "$AR" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7337 if test -z "$ac_cv_prog_AR"; then
7338 ac_ct_AR=$AR
7339 # Extract the first word of "ar", so it can be a program name with args.
7340 set dummy ar; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 if test -n "$ac_ct_AR"; then
7347 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_ac_ct_AR="ar"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7360 done
7361 done
7362 IFS=$as_save_IFS
7366 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7367 if test -n "$ac_ct_AR"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7369 $as_echo "$ac_ct_AR" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7375 if test "x$ac_ct_AR" = x; then
7376 AR="false"
7377 else
7378 case $cross_compiling:$ac_tool_warned in
7379 yes:)
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384 AR=$ac_ct_AR
7386 else
7387 AR="$ac_cv_prog_AR"
7390 test -z "$AR" && AR=ar
7391 test -z "$AR_FLAGS" && AR_FLAGS=cru
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}strip; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_STRIP+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$STRIP"; then
7412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7425 done
7426 done
7427 IFS=$as_save_IFS
7431 STRIP=$ac_cv_prog_STRIP
7432 if test -n "$STRIP"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7434 $as_echo "$STRIP" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7442 if test -z "$ac_cv_prog_STRIP"; then
7443 ac_ct_STRIP=$STRIP
7444 # Extract the first word of "strip", so it can be a program name with args.
7445 set dummy strip; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$ac_ct_STRIP"; then
7452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_STRIP="strip"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7465 done
7466 done
7467 IFS=$as_save_IFS
7471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7472 if test -n "$ac_ct_STRIP"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7474 $as_echo "$ac_ct_STRIP" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7480 if test "x$ac_ct_STRIP" = x; then
7481 STRIP=":"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned=yes ;;
7488 esac
7489 STRIP=$ac_ct_STRIP
7491 else
7492 STRIP="$ac_cv_prog_STRIP"
7495 test -z "$STRIP" && STRIP=:
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_RANLIB+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$RANLIB"; then
7511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7524 done
7525 done
7526 IFS=$as_save_IFS
7530 RANLIB=$ac_cv_prog_RANLIB
7531 if test -n "$RANLIB"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7533 $as_echo "$RANLIB" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7541 if test -z "$ac_cv_prog_RANLIB"; then
7542 ac_ct_RANLIB=$RANLIB
7543 # Extract the first word of "ranlib", so it can be a program name with args.
7544 set dummy ranlib; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 if test -n "$ac_ct_RANLIB"; then
7551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_ac_ct_RANLIB="ranlib"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7564 done
7565 done
7566 IFS=$as_save_IFS
7570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7571 if test -n "$ac_ct_RANLIB"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7573 $as_echo "$ac_ct_RANLIB" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7579 if test "x$ac_ct_RANLIB" = x; then
7580 RANLIB=":"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588 RANLIB=$ac_ct_RANLIB
7590 else
7591 RANLIB="$ac_cv_prog_RANLIB"
7594 test -z "$RANLIB" && RANLIB=:
7601 # Determine commands to create old-style static archives.
7602 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7603 old_postinstall_cmds='chmod 644 $oldlib'
7604 old_postuninstall_cmds=
7606 if test -n "$RANLIB"; then
7607 case $host_os in
7608 openbsd*)
7609 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7612 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7614 esac
7615 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7618 case $host_os in
7619 darwin*)
7620 lock_old_archive_extraction=yes ;;
7622 lock_old_archive_extraction=no ;;
7623 esac
7663 # If no C compiler was specified, use CC.
7664 LTCC=${LTCC-"$CC"}
7666 # If no C compiler flags were specified, use CFLAGS.
7667 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7669 # Allow CC to be a program name with arguments.
7670 compiler=$CC
7673 # Check for command to grab the raw symbol name followed by C symbol from nm.
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7675 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7676 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7680 # These are sane defaults that work on at least a few old systems.
7681 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7683 # Character class describing NM global symbol codes.
7684 symcode='[BCDEGRST]'
7686 # Regexp to match symbols that can be accessed directly from C.
7687 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7689 # Define system-specific variables.
7690 case $host_os in
7691 aix*)
7692 symcode='[BCDT]'
7694 cygwin* | mingw* | pw32* | cegcc*)
7695 symcode='[ABCDGISTW]'
7697 hpux*)
7698 if test "$host_cpu" = ia64; then
7699 symcode='[ABCDEGRST]'
7702 irix* | nonstopux*)
7703 symcode='[BCDEGRST]'
7705 osf*)
7706 symcode='[BCDEGQRST]'
7708 solaris*)
7709 symcode='[BDRT]'
7711 sco3.2v5*)
7712 symcode='[DT]'
7714 sysv4.2uw2*)
7715 symcode='[DT]'
7717 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7718 symcode='[ABDT]'
7720 sysv4)
7721 symcode='[DFNSTU]'
7723 esac
7725 # If we're using GNU nm, then use its standard symbol codes.
7726 case `$NM -V 2>&1` in
7727 *GNU* | *'with BFD'*)
7728 symcode='[ABCDGIRSTW]' ;;
7729 esac
7731 # Transform an extracted symbol line into a proper C declaration.
7732 # Some systems (esp. on ia64) link data and code symbols differently,
7733 # so use this general approach.
7734 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7736 # Transform an extracted symbol line into symbol name and symbol address
7737 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7738 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'"
7740 # Handle CRLF in mingw tool chain
7741 opt_cr=
7742 case $build_os in
7743 mingw*)
7744 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7746 esac
7748 # Try without a prefix underscore, then with it.
7749 for ac_symprfx in "" "_"; do
7751 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7752 symxfrm="\\1 $ac_symprfx\\2 \\2"
7754 # Write the raw and C identifiers.
7755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7756 # Fake it for dumpbin and say T for any non-static function
7757 # and D for any global variable.
7758 # Also find C++ and __fastcall symbols from MSVC++,
7759 # which start with @ or ?.
7760 lt_cv_sys_global_symbol_pipe="$AWK '"\
7761 " {last_section=section; section=\$ 3};"\
7762 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7763 " \$ 0!~/External *\|/{next};"\
7764 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7765 " {if(hide[section]) next};"\
7766 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7767 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7768 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7769 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7770 " ' prfx=^$ac_symprfx"
7771 else
7772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7775 # Check to see that the pipe works correctly.
7776 pipe_works=no
7778 rm -f conftest*
7779 cat > conftest.$ac_ext <<_LT_EOF
7780 #ifdef __cplusplus
7781 extern "C" {
7782 #endif
7783 char nm_test_var;
7784 void nm_test_func(void);
7785 void nm_test_func(void){}
7786 #ifdef __cplusplus
7788 #endif
7789 int main(){nm_test_var='a';nm_test_func();return(0);}
7790 _LT_EOF
7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7793 (eval $ac_compile) 2>&5
7794 ac_status=$?
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 # Now try to grab the symbols.
7798 nlist=conftest.nm
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7800 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7801 ac_status=$?
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; } && test -s "$nlist"; then
7804 # Try sorting and uniquifying the output.
7805 if sort "$nlist" | uniq > "$nlist"T; then
7806 mv -f "$nlist"T "$nlist"
7807 else
7808 rm -f "$nlist"T
7811 # Make sure that we snagged all the symbols we need.
7812 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7813 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7814 cat <<_LT_EOF > conftest.$ac_ext
7815 #ifdef __cplusplus
7816 extern "C" {
7817 #endif
7819 _LT_EOF
7820 # Now generate the symbol file.
7821 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7823 cat <<_LT_EOF >> conftest.$ac_ext
7825 /* The mapping between symbol names and symbols. */
7826 const struct {
7827 const char *name;
7828 void *address;
7830 lt__PROGRAM__LTX_preloaded_symbols[] =
7832 { "@PROGRAM@", (void *) 0 },
7833 _LT_EOF
7834 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7835 cat <<\_LT_EOF >> conftest.$ac_ext
7836 {0, (void *) 0}
7839 /* This works around a problem in FreeBSD linker */
7840 #ifdef FREEBSD_WORKAROUND
7841 static const void *lt_preloaded_setup() {
7842 return lt__PROGRAM__LTX_preloaded_symbols;
7844 #endif
7846 #ifdef __cplusplus
7848 #endif
7849 _LT_EOF
7850 # Now try linking the two files.
7851 mv conftest.$ac_objext conftstm.$ac_objext
7852 lt_save_LIBS="$LIBS"
7853 lt_save_CFLAGS="$CFLAGS"
7854 LIBS="conftstm.$ac_objext"
7855 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7857 (eval $ac_link) 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7861 pipe_works=yes
7863 LIBS="$lt_save_LIBS"
7864 CFLAGS="$lt_save_CFLAGS"
7865 else
7866 echo "cannot find nm_test_func in $nlist" >&5
7868 else
7869 echo "cannot find nm_test_var in $nlist" >&5
7871 else
7872 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7874 else
7875 echo "$progname: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7878 rm -rf conftest* conftst*
7880 # Do not use the global_symbol_pipe unless it works.
7881 if test "$pipe_works" = yes; then
7882 break
7883 else
7884 lt_cv_sys_global_symbol_pipe=
7886 done
7890 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7891 lt_cv_sys_global_symbol_to_cdecl=
7893 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7895 $as_echo "failed" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7898 $as_echo "ok" >&6; }
7922 # Check whether --enable-libtool-lock was given.
7923 if test "${enable_libtool_lock+set}" = set; then :
7924 enableval=$enable_libtool_lock;
7927 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7929 # Some flags need to be propagated to the compiler or linker for good
7930 # libtool support.
7931 case $host in
7932 ia64-*-hpux*)
7933 # Find out which ABI we are using.
7934 echo 'int i;' > conftest.$ac_ext
7935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7937 ac_status=$?
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 case `/usr/bin/file conftest.$ac_objext` in
7941 *ELF-32*)
7942 HPUX_IA64_MODE="32"
7944 *ELF-64*)
7945 HPUX_IA64_MODE="64"
7947 esac
7949 rm -rf conftest*
7951 *-*-irix6*)
7952 # Find out which ABI we are using.
7953 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7955 (eval $ac_compile) 2>&5
7956 ac_status=$?
7957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958 test $ac_status = 0; }; then
7959 if test "$lt_cv_prog_gnu_ld" = yes; then
7960 case `/usr/bin/file conftest.$ac_objext` in
7961 *32-bit*)
7962 LD="${LD-ld} -melf32bsmip"
7964 *N32*)
7965 LD="${LD-ld} -melf32bmipn32"
7967 *64-bit*)
7968 LD="${LD-ld} -melf64bmip"
7970 esac
7971 else
7972 case `/usr/bin/file conftest.$ac_objext` in
7973 *32-bit*)
7974 LD="${LD-ld} -32"
7976 *N32*)
7977 LD="${LD-ld} -n32"
7979 *64-bit*)
7980 LD="${LD-ld} -64"
7982 esac
7985 rm -rf conftest*
7988 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7989 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7990 # Find out which ABI we are using.
7991 echo 'int i;' > conftest.$ac_ext
7992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7993 (eval $ac_compile) 2>&5
7994 ac_status=$?
7995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7996 test $ac_status = 0; }; then
7997 case `/usr/bin/file conftest.o` in
7998 *32-bit*)
7999 case $host in
8000 x86_64-*kfreebsd*-gnu)
8001 LD="${LD-ld} -m elf_i386_fbsd"
8003 x86_64-*linux*)
8004 case `/usr/bin/file conftest.o` in
8005 *x86-64*)
8006 LD="${LD-ld} -m elf32_x86_64"
8009 LD="${LD-ld} -m elf_i386"
8011 esac
8013 powerpc64le-*linux*)
8014 LD="${LD-ld} -m elf32lppclinux"
8016 powerpc64-*linux*)
8017 LD="${LD-ld} -m elf32ppclinux"
8019 s390x-*linux*)
8020 LD="${LD-ld} -m elf_s390"
8022 sparc64-*linux*)
8023 LD="${LD-ld} -m elf32_sparc"
8025 esac
8027 *64-bit*)
8028 case $host in
8029 x86_64-*kfreebsd*-gnu)
8030 LD="${LD-ld} -m elf_x86_64_fbsd"
8032 x86_64-*linux*)
8033 LD="${LD-ld} -m elf_x86_64"
8035 powerpcle-*linux*)
8036 LD="${LD-ld} -m elf64lppc"
8038 powerpc-*linux*)
8039 LD="${LD-ld} -m elf64ppc"
8041 s390*-*linux*|s390*-*tpf*)
8042 LD="${LD-ld} -m elf64_s390"
8044 sparc*-*linux*)
8045 LD="${LD-ld} -m elf64_sparc"
8047 esac
8049 esac
8051 rm -rf conftest*
8054 *-*-sco3.2v5*)
8055 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8056 SAVE_CFLAGS="$CFLAGS"
8057 CFLAGS="$CFLAGS -belf"
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8059 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8060 if ${lt_cv_cc_needs_belf+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 ac_ext=c
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8073 main ()
8077 return 0;
8079 _ACEOF
8080 if ac_fn_c_try_link "$LINENO"; then :
8081 lt_cv_cc_needs_belf=yes
8082 else
8083 lt_cv_cc_needs_belf=no
8085 rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 ac_ext=c
8088 ac_cpp='$CPP $CPPFLAGS'
8089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8095 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8096 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8098 CFLAGS="$SAVE_CFLAGS"
8101 sparc*-*solaris*)
8102 # Find out which ABI we are using.
8103 echo 'int i;' > conftest.$ac_ext
8104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8105 (eval $ac_compile) 2>&5
8106 ac_status=$?
8107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8108 test $ac_status = 0; }; then
8109 case `/usr/bin/file conftest.o` in
8110 *64-bit*)
8111 case $lt_cv_prog_gnu_ld in
8112 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8114 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8115 LD="${LD-ld} -64"
8118 esac
8120 esac
8122 rm -rf conftest*
8124 esac
8126 need_locks="$enable_libtool_lock"
8129 case $host_os in
8130 rhapsody* | darwin*)
8131 if test -n "$ac_tool_prefix"; then
8132 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8133 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 if test -n "$DSYMUTIL"; then
8140 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8153 done
8154 done
8155 IFS=$as_save_IFS
8159 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8160 if test -n "$DSYMUTIL"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8162 $as_echo "$DSYMUTIL" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8170 if test -z "$ac_cv_prog_DSYMUTIL"; then
8171 ac_ct_DSYMUTIL=$DSYMUTIL
8172 # Extract the first word of "dsymutil", so it can be a program name with args.
8173 set dummy dsymutil; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$ac_ct_DSYMUTIL"; then
8180 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8199 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8200 if test -n "$ac_ct_DSYMUTIL"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8202 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8208 if test "x$ac_ct_DSYMUTIL" = x; then
8209 DSYMUTIL=":"
8210 else
8211 case $cross_compiling:$ac_tool_warned in
8212 yes:)
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215 ac_tool_warned=yes ;;
8216 esac
8217 DSYMUTIL=$ac_ct_DSYMUTIL
8219 else
8220 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8223 if test -n "$ac_tool_prefix"; then
8224 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8225 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_prog_NMEDIT+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 if test -n "$NMEDIT"; then
8232 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8245 done
8246 done
8247 IFS=$as_save_IFS
8251 NMEDIT=$ac_cv_prog_NMEDIT
8252 if test -n "$NMEDIT"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8254 $as_echo "$NMEDIT" >&6; }
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8262 if test -z "$ac_cv_prog_NMEDIT"; then
8263 ac_ct_NMEDIT=$NMEDIT
8264 # Extract the first word of "nmedit", so it can be a program name with args.
8265 set dummy nmedit; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 if test -n "$ac_ct_NMEDIT"; then
8272 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8285 done
8286 done
8287 IFS=$as_save_IFS
8291 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8292 if test -n "$ac_ct_NMEDIT"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8294 $as_echo "$ac_ct_NMEDIT" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8300 if test "x$ac_ct_NMEDIT" = x; then
8301 NMEDIT=":"
8302 else
8303 case $cross_compiling:$ac_tool_warned in
8304 yes:)
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8307 ac_tool_warned=yes ;;
8308 esac
8309 NMEDIT=$ac_ct_NMEDIT
8311 else
8312 NMEDIT="$ac_cv_prog_NMEDIT"
8315 if test -n "$ac_tool_prefix"; then
8316 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8317 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_prog_LIPO+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 if test -n "$LIPO"; then
8324 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8337 done
8338 done
8339 IFS=$as_save_IFS
8343 LIPO=$ac_cv_prog_LIPO
8344 if test -n "$LIPO"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8346 $as_echo "$LIPO" >&6; }
8347 else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8354 if test -z "$ac_cv_prog_LIPO"; then
8355 ac_ct_LIPO=$LIPO
8356 # Extract the first word of "lipo", so it can be a program name with args.
8357 set dummy lipo; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 if test -n "$ac_ct_LIPO"; then
8364 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_prog_ac_ct_LIPO="lipo"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8377 done
8378 done
8379 IFS=$as_save_IFS
8383 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8384 if test -n "$ac_ct_LIPO"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8386 $as_echo "$ac_ct_LIPO" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8392 if test "x$ac_ct_LIPO" = x; then
8393 LIPO=":"
8394 else
8395 case $cross_compiling:$ac_tool_warned in
8396 yes:)
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399 ac_tool_warned=yes ;;
8400 esac
8401 LIPO=$ac_ct_LIPO
8403 else
8404 LIPO="$ac_cv_prog_LIPO"
8407 if test -n "$ac_tool_prefix"; then
8408 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8409 set dummy ${ac_tool_prefix}otool; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if ${ac_cv_prog_OTOOL+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 if test -n "$OTOOL"; then
8416 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8429 done
8430 done
8431 IFS=$as_save_IFS
8435 OTOOL=$ac_cv_prog_OTOOL
8436 if test -n "$OTOOL"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8438 $as_echo "$OTOOL" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8446 if test -z "$ac_cv_prog_OTOOL"; then
8447 ac_ct_OTOOL=$OTOOL
8448 # Extract the first word of "otool", so it can be a program name with args.
8449 set dummy otool; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 if test -n "$ac_ct_OTOOL"; then
8456 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_ac_ct_OTOOL="otool"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8469 done
8470 done
8471 IFS=$as_save_IFS
8475 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8476 if test -n "$ac_ct_OTOOL"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8478 $as_echo "$ac_ct_OTOOL" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8484 if test "x$ac_ct_OTOOL" = x; then
8485 OTOOL=":"
8486 else
8487 case $cross_compiling:$ac_tool_warned in
8488 yes:)
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8491 ac_tool_warned=yes ;;
8492 esac
8493 OTOOL=$ac_ct_OTOOL
8495 else
8496 OTOOL="$ac_cv_prog_OTOOL"
8499 if test -n "$ac_tool_prefix"; then
8500 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8501 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if ${ac_cv_prog_OTOOL64+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 if test -n "$OTOOL64"; then
8508 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8521 done
8522 done
8523 IFS=$as_save_IFS
8527 OTOOL64=$ac_cv_prog_OTOOL64
8528 if test -n "$OTOOL64"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8530 $as_echo "$OTOOL64" >&6; }
8531 else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8538 if test -z "$ac_cv_prog_OTOOL64"; then
8539 ac_ct_OTOOL64=$OTOOL64
8540 # Extract the first word of "otool64", so it can be a program name with args.
8541 set dummy otool64; ac_word=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 if test -n "$ac_ct_OTOOL64"; then
8548 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8549 else
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_ac_ct_OTOOL64="otool64"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8561 done
8562 done
8563 IFS=$as_save_IFS
8567 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8568 if test -n "$ac_ct_OTOOL64"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8570 $as_echo "$ac_ct_OTOOL64" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8576 if test "x$ac_ct_OTOOL64" = x; then
8577 OTOOL64=":"
8578 else
8579 case $cross_compiling:$ac_tool_warned in
8580 yes:)
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8583 ac_tool_warned=yes ;;
8584 esac
8585 OTOOL64=$ac_ct_OTOOL64
8587 else
8588 OTOOL64="$ac_cv_prog_OTOOL64"
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8618 $as_echo_n "checking for -single_module linker flag... " >&6; }
8619 if ${lt_cv_apple_cc_single_mod+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 lt_cv_apple_cc_single_mod=no
8623 if test -z "${LT_MULTI_MODULE}"; then
8624 # By default we will add the -single_module flag. You can override
8625 # by either setting the environment variable LT_MULTI_MODULE
8626 # non-empty at configure time, or by adding -multi_module to the
8627 # link flags.
8628 rm -rf libconftest.dylib*
8629 echo "int foo(void){return 1;}" > conftest.c
8630 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8631 -dynamiclib -Wl,-single_module conftest.c" >&5
8632 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8633 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8634 _lt_result=$?
8635 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8636 lt_cv_apple_cc_single_mod=yes
8637 else
8638 cat conftest.err >&5
8640 rm -rf libconftest.dylib*
8641 rm -f conftest.*
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8645 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8647 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8648 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 lt_cv_ld_exported_symbols_list=no
8652 save_LDFLAGS=$LDFLAGS
8653 echo "_main" > conftest.sym
8654 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8659 main ()
8663 return 0;
8665 _ACEOF
8666 if ac_fn_c_try_link "$LINENO"; then :
8667 lt_cv_ld_exported_symbols_list=yes
8668 else
8669 lt_cv_ld_exported_symbols_list=no
8671 rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673 LDFLAGS="$save_LDFLAGS"
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8677 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8679 $as_echo_n "checking for -force_load linker flag... " >&6; }
8680 if ${lt_cv_ld_force_load+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 lt_cv_ld_force_load=no
8684 cat > conftest.c << _LT_EOF
8685 int forced_loaded() { return 2;}
8686 _LT_EOF
8687 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8688 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8689 echo "$AR cru libconftest.a conftest.o" >&5
8690 $AR cru libconftest.a conftest.o 2>&5
8691 cat > conftest.c << _LT_EOF
8692 int main() { return 0;}
8693 _LT_EOF
8694 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8695 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8696 _lt_result=$?
8697 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8698 lt_cv_ld_force_load=yes
8699 else
8700 cat conftest.err >&5
8702 rm -f conftest.err libconftest.a conftest conftest.c
8703 rm -rf conftest.dSYM
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8707 $as_echo "$lt_cv_ld_force_load" >&6; }
8708 case $host_os in
8709 rhapsody* | darwin1.[012])
8710 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8711 darwin1.*)
8712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8713 darwin*) # darwin 5.x on
8714 # if running on 10.5 or later, the deployment target defaults
8715 # to the OS version, if on x86, and 10.4, the deployment
8716 # target defaults to 10.4. Don't you love it?
8717 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8718 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8719 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8720 10.[012][,.]*)
8721 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8722 10.*)
8723 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8724 esac
8726 esac
8727 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8728 _lt_dar_single_mod='$single_module'
8730 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8731 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8732 else
8733 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8735 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8736 _lt_dsymutil='~$DSYMUTIL $lib || :'
8737 else
8738 _lt_dsymutil=
8741 esac
8743 for ac_header in dlfcn.h
8744 do :
8745 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8747 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8748 cat >>confdefs.h <<_ACEOF
8749 #define HAVE_DLFCN_H 1
8750 _ACEOF
8754 done
8761 # Set options
8766 enable_win32_dll=no
8769 # Check whether --enable-shared was given.
8770 if test "${enable_shared+set}" = set; then :
8771 enableval=$enable_shared; p=${PACKAGE-default}
8772 case $enableval in
8773 yes) enable_shared=yes ;;
8774 no) enable_shared=no ;;
8776 enable_shared=no
8777 # Look at the argument we got. We use all the common list separators.
8778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8779 for pkg in $enableval; do
8780 IFS="$lt_save_ifs"
8781 if test "X$pkg" = "X$p"; then
8782 enable_shared=yes
8784 done
8785 IFS="$lt_save_ifs"
8787 esac
8788 else
8789 enable_shared=yes
8800 # Check whether --enable-static was given.
8801 if test "${enable_static+set}" = set; then :
8802 enableval=$enable_static; p=${PACKAGE-default}
8803 case $enableval in
8804 yes) enable_static=yes ;;
8805 no) enable_static=no ;;
8807 enable_static=no
8808 # Look at the argument we got. We use all the common list separators.
8809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8810 for pkg in $enableval; do
8811 IFS="$lt_save_ifs"
8812 if test "X$pkg" = "X$p"; then
8813 enable_static=yes
8815 done
8816 IFS="$lt_save_ifs"
8818 esac
8819 else
8820 enable_static=yes
8832 # Check whether --with-pic was given.
8833 if test "${with_pic+set}" = set; then :
8834 withval=$with_pic; pic_mode="$withval"
8835 else
8836 pic_mode=default
8840 test -z "$pic_mode" && pic_mode=default
8848 # Check whether --enable-fast-install was given.
8849 if test "${enable_fast_install+set}" = set; then :
8850 enableval=$enable_fast_install; p=${PACKAGE-default}
8851 case $enableval in
8852 yes) enable_fast_install=yes ;;
8853 no) enable_fast_install=no ;;
8855 enable_fast_install=no
8856 # Look at the argument we got. We use all the common list separators.
8857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8858 for pkg in $enableval; do
8859 IFS="$lt_save_ifs"
8860 if test "X$pkg" = "X$p"; then
8861 enable_fast_install=yes
8863 done
8864 IFS="$lt_save_ifs"
8866 esac
8867 else
8868 enable_fast_install=yes
8881 # This can be used to rebuild libtool when needed
8882 LIBTOOL_DEPS="$ltmain"
8884 # Always use our own libtool.
8885 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8912 test -z "$LN_S" && LN_S="ln -s"
8927 if test -n "${ZSH_VERSION+set}" ; then
8928 setopt NO_GLOB_SUBST
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8932 $as_echo_n "checking for objdir... " >&6; }
8933 if ${lt_cv_objdir+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 rm -f .libs 2>/dev/null
8937 mkdir .libs 2>/dev/null
8938 if test -d .libs; then
8939 lt_cv_objdir=.libs
8940 else
8941 # MS-DOS does not allow filenames that begin with a dot.
8942 lt_cv_objdir=_libs
8944 rmdir .libs 2>/dev/null
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8947 $as_echo "$lt_cv_objdir" >&6; }
8948 objdir=$lt_cv_objdir
8954 cat >>confdefs.h <<_ACEOF
8955 #define LT_OBJDIR "$lt_cv_objdir/"
8956 _ACEOF
8961 case $host_os in
8962 aix3*)
8963 # AIX sometimes has problems with the GCC collect2 program. For some
8964 # reason, if we set the COLLECT_NAMES environment variable, the problems
8965 # vanish in a puff of smoke.
8966 if test "X${COLLECT_NAMES+set}" != Xset; then
8967 COLLECT_NAMES=
8968 export COLLECT_NAMES
8971 esac
8973 # Global variables:
8974 ofile=libtool
8975 can_build_shared=yes
8977 # All known linkers require a `.a' archive for static linking (except MSVC,
8978 # which needs '.lib').
8979 libext=a
8981 with_gnu_ld="$lt_cv_prog_gnu_ld"
8983 old_CC="$CC"
8984 old_CFLAGS="$CFLAGS"
8986 # Set sane defaults for various variables
8987 test -z "$CC" && CC=cc
8988 test -z "$LTCC" && LTCC=$CC
8989 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8990 test -z "$LD" && LD=ld
8991 test -z "$ac_objext" && ac_objext=o
8993 for cc_temp in $compiler""; do
8994 case $cc_temp in
8995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8997 \-*) ;;
8998 *) break;;
8999 esac
9000 done
9001 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9004 # Only perform the check for file, if the check method requires it
9005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9006 case $deplibs_check_method in
9007 file_magic*)
9008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9010 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9011 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 case $MAGIC_CMD in
9015 [\\/*] | ?:[\\/]*)
9016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9019 lt_save_MAGIC_CMD="$MAGIC_CMD"
9020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9022 for ac_dir in $ac_dummy; do
9023 IFS="$lt_save_ifs"
9024 test -z "$ac_dir" && ac_dir=.
9025 if test -f $ac_dir/${ac_tool_prefix}file; then
9026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9027 if test -n "$file_magic_test_file"; then
9028 case $deplibs_check_method in
9029 "file_magic "*)
9030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9033 $EGREP "$file_magic_regex" > /dev/null; then
9035 else
9036 cat <<_LT_EOF 1>&2
9038 *** Warning: the command libtool uses to detect shared libraries,
9039 *** $file_magic_cmd, produces output that libtool cannot recognize.
9040 *** The result is that libtool may fail to recognize shared libraries
9041 *** as such. This will affect the creation of libtool libraries that
9042 *** depend on shared libraries, but programs linked with such libtool
9043 *** libraries will work regardless of this problem. Nevertheless, you
9044 *** may want to report the problem to your system manager and/or to
9045 *** bug-libtool@gnu.org
9047 _LT_EOF
9048 fi ;;
9049 esac
9051 break
9053 done
9054 IFS="$lt_save_ifs"
9055 MAGIC_CMD="$lt_save_MAGIC_CMD"
9057 esac
9060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9061 if test -n "$MAGIC_CMD"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9063 $as_echo "$MAGIC_CMD" >&6; }
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9073 if test -z "$lt_cv_path_MAGIC_CMD"; then
9074 if test -n "$ac_tool_prefix"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9076 $as_echo_n "checking for file... " >&6; }
9077 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 case $MAGIC_CMD in
9081 [\\/*] | ?:[\\/]*)
9082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9085 lt_save_MAGIC_CMD="$MAGIC_CMD"
9086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9088 for ac_dir in $ac_dummy; do
9089 IFS="$lt_save_ifs"
9090 test -z "$ac_dir" && ac_dir=.
9091 if test -f $ac_dir/file; then
9092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9093 if test -n "$file_magic_test_file"; then
9094 case $deplibs_check_method in
9095 "file_magic "*)
9096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9099 $EGREP "$file_magic_regex" > /dev/null; then
9101 else
9102 cat <<_LT_EOF 1>&2
9104 *** Warning: the command libtool uses to detect shared libraries,
9105 *** $file_magic_cmd, produces output that libtool cannot recognize.
9106 *** The result is that libtool may fail to recognize shared libraries
9107 *** as such. This will affect the creation of libtool libraries that
9108 *** depend on shared libraries, but programs linked with such libtool
9109 *** libraries will work regardless of this problem. Nevertheless, you
9110 *** may want to report the problem to your system manager and/or to
9111 *** bug-libtool@gnu.org
9113 _LT_EOF
9114 fi ;;
9115 esac
9117 break
9119 done
9120 IFS="$lt_save_ifs"
9121 MAGIC_CMD="$lt_save_MAGIC_CMD"
9123 esac
9126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9127 if test -n "$MAGIC_CMD"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9129 $as_echo "$MAGIC_CMD" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9136 else
9137 MAGIC_CMD=:
9143 esac
9145 # Use C for the default configuration in the libtool script
9147 lt_save_CC="$CC"
9148 ac_ext=c
9149 ac_cpp='$CPP $CPPFLAGS'
9150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9155 # Source file extension for C test sources.
9156 ac_ext=c
9158 # Object file extension for compiled C test sources.
9159 objext=o
9160 objext=$objext
9162 # Code to be used in simple compile tests
9163 lt_simple_compile_test_code="int some_variable = 0;"
9165 # Code to be used in simple link tests
9166 lt_simple_link_test_code='int main(){return(0);}'
9174 # If no C compiler was specified, use CC.
9175 LTCC=${LTCC-"$CC"}
9177 # If no C compiler flags were specified, use CFLAGS.
9178 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9180 # Allow CC to be a program name with arguments.
9181 compiler=$CC
9183 # Save the default compiler, since it gets overwritten when the other
9184 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9185 compiler_DEFAULT=$CC
9187 # save warnings/boilerplate of simple test code
9188 ac_outfile=conftest.$ac_objext
9189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9191 _lt_compiler_boilerplate=`cat conftest.err`
9192 $RM conftest*
9194 ac_outfile=conftest.$ac_objext
9195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9197 _lt_linker_boilerplate=`cat conftest.err`
9198 $RM -r conftest*
9201 ## CAVEAT EMPTOR:
9202 ## There is no encapsulation within the following macros, do not change
9203 ## the running order or otherwise move them around unless you know exactly
9204 ## what you are doing...
9205 if test -n "$compiler"; then
9207 lt_prog_compiler_no_builtin_flag=
9209 if test "$GCC" = yes; then
9210 case $cc_basename in
9211 nvcc*)
9212 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9214 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9215 esac
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9218 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9219 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 lt_cv_prog_compiler_rtti_exceptions=no
9223 ac_outfile=conftest.$ac_objext
9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225 lt_compiler_flag="-fno-rtti -fno-exceptions"
9226 # Insert the option either (1) after the last *FLAGS variable, or
9227 # (2) before a word containing "conftest.", or (3) at the end.
9228 # Note that $ac_compile itself does not contain backslashes and begins
9229 # with a dollar sign (not a hyphen), so the echo should work correctly.
9230 # The option is referenced via a variable to avoid confusing sed.
9231 lt_compile=`echo "$ac_compile" | $SED \
9232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9234 -e 's:$: $lt_compiler_flag:'`
9235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9236 (eval "$lt_compile" 2>conftest.err)
9237 ac_status=$?
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 if (exit $ac_status) && test -s "$ac_outfile"; then
9241 # The compiler can only warn and ignore the option if not recognized
9242 # So say no if there are warnings other than the usual output.
9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9246 lt_cv_prog_compiler_rtti_exceptions=yes
9249 $RM conftest*
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9253 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9255 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9256 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9257 else
9268 lt_prog_compiler_wl=
9269 lt_prog_compiler_pic=
9270 lt_prog_compiler_static=
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9273 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9275 if test "$GCC" = yes; then
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_static='-static'
9279 case $host_os in
9280 aix*)
9281 # All AIX code is PIC.
9282 if test "$host_cpu" = ia64; then
9283 # AIX 5 now supports IA64 processor
9284 lt_prog_compiler_static='-Bstatic'
9286 lt_prog_compiler_pic='-fPIC'
9289 amigaos*)
9290 case $host_cpu in
9291 powerpc)
9292 # see comment about AmigaOS4 .so support
9293 lt_prog_compiler_pic='-fPIC'
9295 m68k)
9296 # FIXME: we need at least 68020 code to build shared libraries, but
9297 # adding the `-m68020' flag to GCC prevents building anything better,
9298 # like `-m68040'.
9299 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9301 esac
9304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9305 # PIC is the default for these OSes.
9308 mingw* | cygwin* | pw32* | os2* | cegcc*)
9309 # This hack is so that the source file can tell whether it is being
9310 # built for inclusion in a dll (and should export symbols for example).
9311 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9312 # (--disable-auto-import) libraries
9313 lt_prog_compiler_pic='-DDLL_EXPORT'
9316 darwin* | rhapsody*)
9317 # PIC is the default on this platform
9318 # Common symbols not allowed in MH_DYLIB files
9319 lt_prog_compiler_pic='-fno-common'
9322 haiku*)
9323 # PIC is the default for Haiku.
9324 # The "-static" flag exists, but is broken.
9325 lt_prog_compiler_static=
9328 hpux*)
9329 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9330 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9331 # sets the default TLS model and affects inlining.
9332 case $host_cpu in
9333 hppa*64*)
9334 # +Z the default
9337 lt_prog_compiler_pic='-fPIC'
9339 esac
9342 interix[3-9]*)
9343 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9344 # Instead, we relocate shared libraries at runtime.
9347 msdosdjgpp*)
9348 # Just because we use GCC doesn't mean we suddenly get shared libraries
9349 # on systems that don't support them.
9350 lt_prog_compiler_can_build_shared=no
9351 enable_shared=no
9354 *nto* | *qnx*)
9355 # QNX uses GNU C++, but need to define -shared option too, otherwise
9356 # it will coredump.
9357 lt_prog_compiler_pic='-fPIC -shared'
9360 sysv4*MP*)
9361 if test -d /usr/nec; then
9362 lt_prog_compiler_pic=-Kconform_pic
9367 lt_prog_compiler_pic='-fPIC'
9369 esac
9371 case $cc_basename in
9372 nvcc*) # Cuda Compiler Driver 2.2
9373 lt_prog_compiler_wl='-Xlinker '
9374 lt_prog_compiler_pic='-Xcompiler -fPIC'
9376 esac
9377 else
9378 # PORTME Check for flag to pass linker flags through the system compiler.
9379 case $host_os in
9380 aix*)
9381 lt_prog_compiler_wl='-Wl,'
9382 if test "$host_cpu" = ia64; then
9383 # AIX 5 now supports IA64 processor
9384 lt_prog_compiler_static='-Bstatic'
9385 else
9386 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9390 mingw* | cygwin* | pw32* | os2* | cegcc*)
9391 # This hack is so that the source file can tell whether it is being
9392 # built for inclusion in a dll (and should export symbols for example).
9393 lt_prog_compiler_pic='-DDLL_EXPORT'
9396 hpux9* | hpux10* | hpux11*)
9397 lt_prog_compiler_wl='-Wl,'
9398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9399 # not for PA HP-UX.
9400 case $host_cpu in
9401 hppa*64*|ia64*)
9402 # +Z the default
9405 lt_prog_compiler_pic='+Z'
9407 esac
9408 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9409 lt_prog_compiler_static='${wl}-a ${wl}archive'
9412 irix5* | irix6* | nonstopux*)
9413 lt_prog_compiler_wl='-Wl,'
9414 # PIC (with -KPIC) is the default.
9415 lt_prog_compiler_static='-non_shared'
9418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9419 case $cc_basename in
9420 # old Intel for x86_64 which still supported -KPIC.
9421 ecc*)
9422 lt_prog_compiler_wl='-Wl,'
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-static'
9426 # icc used to be incompatible with GCC.
9427 # ICC 10 doesn't accept -KPIC any more.
9428 icc* | ifort*)
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fPIC'
9431 lt_prog_compiler_static='-static'
9433 # Lahey Fortran 8.1.
9434 lf95*)
9435 lt_prog_compiler_wl='-Wl,'
9436 lt_prog_compiler_pic='--shared'
9437 lt_prog_compiler_static='--static'
9439 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9440 # Portland Group compilers (*not* the Pentium gcc compiler,
9441 # which looks to be a dead project)
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_pic='-fpic'
9444 lt_prog_compiler_static='-Bstatic'
9446 ccc*)
9447 lt_prog_compiler_wl='-Wl,'
9448 # All Alpha code is PIC.
9449 lt_prog_compiler_static='-non_shared'
9451 xl* | bgxl* | bgf* | mpixl*)
9452 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9453 lt_prog_compiler_wl='-Wl,'
9454 lt_prog_compiler_pic='-qpic'
9455 lt_prog_compiler_static='-qstaticlink'
9458 case `$CC -V 2>&1 | sed 5q` in
9459 *Sun\ F* | *Sun*Fortran*)
9460 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9461 lt_prog_compiler_pic='-KPIC'
9462 lt_prog_compiler_static='-Bstatic'
9463 lt_prog_compiler_wl=''
9465 *Sun\ C*)
9466 # Sun C 5.9
9467 lt_prog_compiler_pic='-KPIC'
9468 lt_prog_compiler_static='-Bstatic'
9469 lt_prog_compiler_wl='-Wl,'
9471 esac
9473 esac
9476 newsos6)
9477 lt_prog_compiler_pic='-KPIC'
9478 lt_prog_compiler_static='-Bstatic'
9481 *nto* | *qnx*)
9482 # QNX uses GNU C++, but need to define -shared option too, otherwise
9483 # it will coredump.
9484 lt_prog_compiler_pic='-fPIC -shared'
9487 osf3* | osf4* | osf5*)
9488 lt_prog_compiler_wl='-Wl,'
9489 # All OSF/1 code is PIC.
9490 lt_prog_compiler_static='-non_shared'
9493 rdos*)
9494 lt_prog_compiler_static='-non_shared'
9497 solaris*)
9498 lt_prog_compiler_pic='-KPIC'
9499 lt_prog_compiler_static='-Bstatic'
9500 case $cc_basename in
9501 f77* | f90* | f95*)
9502 lt_prog_compiler_wl='-Qoption ld ';;
9504 lt_prog_compiler_wl='-Wl,';;
9505 esac
9508 sunos4*)
9509 lt_prog_compiler_wl='-Qoption ld '
9510 lt_prog_compiler_pic='-PIC'
9511 lt_prog_compiler_static='-Bstatic'
9514 sysv4 | sysv4.2uw2* | sysv4.3*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-KPIC'
9517 lt_prog_compiler_static='-Bstatic'
9520 sysv4*MP*)
9521 if test -d /usr/nec ;then
9522 lt_prog_compiler_pic='-Kconform_pic'
9523 lt_prog_compiler_static='-Bstatic'
9527 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='-KPIC'
9530 lt_prog_compiler_static='-Bstatic'
9533 unicos*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_can_build_shared=no
9538 uts4*)
9539 lt_prog_compiler_pic='-pic'
9540 lt_prog_compiler_static='-Bstatic'
9544 lt_prog_compiler_can_build_shared=no
9546 esac
9549 case $host_os in
9550 # For platforms which do not support PIC, -DPIC is meaningless:
9551 *djgpp*)
9552 lt_prog_compiler_pic=
9555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9557 esac
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9559 $as_echo "$lt_prog_compiler_pic" >&6; }
9567 # Check to make sure the PIC flag actually works.
9569 if test -n "$lt_prog_compiler_pic"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9571 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9572 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 lt_cv_prog_compiler_pic_works=no
9576 ac_outfile=conftest.$ac_objext
9577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9578 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9579 # Insert the option either (1) after the last *FLAGS variable, or
9580 # (2) before a word containing "conftest.", or (3) at the end.
9581 # Note that $ac_compile itself does not contain backslashes and begins
9582 # with a dollar sign (not a hyphen), so the echo should work correctly.
9583 # The option is referenced via a variable to avoid confusing sed.
9584 lt_compile=`echo "$ac_compile" | $SED \
9585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9587 -e 's:$: $lt_compiler_flag:'`
9588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9589 (eval "$lt_compile" 2>conftest.err)
9590 ac_status=$?
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 if (exit $ac_status) && test -s "$ac_outfile"; then
9594 # The compiler can only warn and ignore the option if not recognized
9595 # So say no if there are warnings other than the usual output.
9596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9598 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler_pic_works=yes
9602 $RM conftest*
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9606 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9608 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9609 case $lt_prog_compiler_pic in
9610 "" | " "*) ;;
9611 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9612 esac
9613 else
9614 lt_prog_compiler_pic=
9615 lt_prog_compiler_can_build_shared=no
9626 # Check to make sure the static flag actually works.
9628 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9630 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9631 if ${lt_cv_prog_compiler_static_works+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 lt_cv_prog_compiler_static_works=no
9635 save_LDFLAGS="$LDFLAGS"
9636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9639 # The linker can only warn and ignore the option if not recognized
9640 # So say no if there are warnings
9641 if test -s conftest.err; then
9642 # Append any errors to the config.log.
9643 cat conftest.err 1>&5
9644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9646 if diff conftest.exp conftest.er2 >/dev/null; then
9647 lt_cv_prog_compiler_static_works=yes
9649 else
9650 lt_cv_prog_compiler_static_works=yes
9653 $RM -r conftest*
9654 LDFLAGS="$save_LDFLAGS"
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9658 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9660 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9662 else
9663 lt_prog_compiler_static=
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9674 if ${lt_cv_prog_compiler_c_o+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 lt_cv_prog_compiler_c_o=no
9678 $RM -r conftest 2>/dev/null
9679 mkdir conftest
9680 cd conftest
9681 mkdir out
9682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9684 lt_compiler_flag="-o out/conftest2.$ac_objext"
9685 # Insert the option either (1) after the last *FLAGS variable, or
9686 # (2) before a word containing "conftest.", or (3) at the end.
9687 # Note that $ac_compile itself does not contain backslashes and begins
9688 # with a dollar sign (not a hyphen), so the echo should work correctly.
9689 lt_compile=`echo "$ac_compile" | $SED \
9690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9692 -e 's:$: $lt_compiler_flag:'`
9693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9694 (eval "$lt_compile" 2>out/conftest.err)
9695 ac_status=$?
9696 cat out/conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9699 then
9700 # The compiler can only warn and ignore the option if not recognized
9701 # So say no if there are warnings
9702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9705 lt_cv_prog_compiler_c_o=yes
9708 chmod u+w . 2>&5
9709 $RM conftest*
9710 # SGI C++ compiler will create directory out/ii_files/ for
9711 # template instantiation
9712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9713 $RM out/* && rmdir out
9714 cd ..
9715 $RM -r conftest
9716 $RM conftest*
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9720 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9729 if ${lt_cv_prog_compiler_c_o+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 lt_cv_prog_compiler_c_o=no
9733 $RM -r conftest 2>/dev/null
9734 mkdir conftest
9735 cd conftest
9736 mkdir out
9737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9739 lt_compiler_flag="-o out/conftest2.$ac_objext"
9740 # Insert the option either (1) after the last *FLAGS variable, or
9741 # (2) before a word containing "conftest.", or (3) at the end.
9742 # Note that $ac_compile itself does not contain backslashes and begins
9743 # with a dollar sign (not a hyphen), so the echo should work correctly.
9744 lt_compile=`echo "$ac_compile" | $SED \
9745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9747 -e 's:$: $lt_compiler_flag:'`
9748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9749 (eval "$lt_compile" 2>out/conftest.err)
9750 ac_status=$?
9751 cat out/conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9754 then
9755 # The compiler can only warn and ignore the option if not recognized
9756 # So say no if there are warnings
9757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9760 lt_cv_prog_compiler_c_o=yes
9763 chmod u+w . 2>&5
9764 $RM conftest*
9765 # SGI C++ compiler will create directory out/ii_files/ for
9766 # template instantiation
9767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9768 $RM out/* && rmdir out
9769 cd ..
9770 $RM -r conftest
9771 $RM conftest*
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9775 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9780 hard_links="nottested"
9781 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9782 # do not overwrite the value of need_locks provided by the user
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9784 $as_echo_n "checking if we can lock with hard links... " >&6; }
9785 hard_links=yes
9786 $RM conftest*
9787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9788 touch conftest.a
9789 ln conftest.a conftest.b 2>&5 || hard_links=no
9790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9792 $as_echo "$hard_links" >&6; }
9793 if test "$hard_links" = no; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9795 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9796 need_locks=warn
9798 else
9799 need_locks=no
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9808 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9810 runpath_var=
9811 allow_undefined_flag=
9812 always_export_symbols=no
9813 archive_cmds=
9814 archive_expsym_cmds=
9815 compiler_needs_object=no
9816 enable_shared_with_static_runtimes=no
9817 export_dynamic_flag_spec=
9818 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9819 hardcode_automatic=no
9820 hardcode_direct=no
9821 hardcode_direct_absolute=no
9822 hardcode_libdir_flag_spec=
9823 hardcode_libdir_flag_spec_ld=
9824 hardcode_libdir_separator=
9825 hardcode_minus_L=no
9826 hardcode_shlibpath_var=unsupported
9827 inherit_rpath=no
9828 link_all_deplibs=unknown
9829 module_cmds=
9830 module_expsym_cmds=
9831 old_archive_from_new_cmds=
9832 old_archive_from_expsyms_cmds=
9833 thread_safe_flag_spec=
9834 whole_archive_flag_spec=
9835 # include_expsyms should be a list of space-separated symbols to be *always*
9836 # included in the symbol list
9837 include_expsyms=
9838 # exclude_expsyms can be an extended regexp of symbols to exclude
9839 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9840 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9841 # as well as any symbol that contains `d'.
9842 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9843 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9844 # platforms (ab)use it in PIC code, but their linkers get confused if
9845 # the symbol is explicitly referenced. Since portable code cannot
9846 # rely on this symbol name, it's probably fine to never include it in
9847 # preloaded symbol tables.
9848 # Exclude shared library initialization/finalization symbols.
9849 extract_expsyms_cmds=
9851 case $host_os in
9852 cygwin* | mingw* | pw32* | cegcc*)
9853 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9854 # When not using gcc, we currently assume that we are using
9855 # Microsoft Visual C++.
9856 if test "$GCC" != yes; then
9857 with_gnu_ld=no
9860 interix*)
9861 # we just hope/assume this is gcc and not c89 (= MSVC++)
9862 with_gnu_ld=yes
9864 openbsd*)
9865 with_gnu_ld=no
9867 esac
9869 ld_shlibs=yes
9871 # On some targets, GNU ld is compatible enough with the native linker
9872 # that we're better off using the native interface for both.
9873 lt_use_gnu_ld_interface=no
9874 if test "$with_gnu_ld" = yes; then
9875 case $host_os in
9876 aix*)
9877 # The AIX port of GNU ld has always aspired to compatibility
9878 # with the native linker. However, as the warning in the GNU ld
9879 # block says, versions before 2.19.5* couldn't really create working
9880 # shared libraries, regardless of the interface used.
9881 case `$LD -v 2>&1` in
9882 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9883 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9884 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9886 lt_use_gnu_ld_interface=yes
9888 esac
9891 lt_use_gnu_ld_interface=yes
9893 esac
9896 if test "$lt_use_gnu_ld_interface" = yes; then
9897 # If archive_cmds runs LD, not CC, wlarc should be empty
9898 wlarc='${wl}'
9900 # Set some defaults for GNU ld with shared library support. These
9901 # are reset later if shared libraries are not supported. Putting them
9902 # here allows them to be overridden if necessary.
9903 runpath_var=LD_RUN_PATH
9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905 export_dynamic_flag_spec='${wl}--export-dynamic'
9906 # ancient GNU ld didn't support --whole-archive et. al.
9907 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9908 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9909 else
9910 whole_archive_flag_spec=
9912 supports_anon_versioning=no
9913 case `$LD -v 2>&1` in
9914 *GNU\ gold*) supports_anon_versioning=yes ;;
9915 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9916 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9917 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9918 *\ 2.11.*) ;; # other 2.11 versions
9919 *) supports_anon_versioning=yes ;;
9920 esac
9922 # See if GNU ld supports shared libraries.
9923 case $host_os in
9924 aix[3-9]*)
9925 # On AIX/PPC, the GNU linker is very broken
9926 if test "$host_cpu" != ia64; then
9927 ld_shlibs=no
9928 cat <<_LT_EOF 1>&2
9930 *** Warning: the GNU linker, at least up to release 2.19, is reported
9931 *** to be unable to reliably create shared libraries on AIX.
9932 *** Therefore, libtool is disabling shared libraries support. If you
9933 *** really care for shared libraries, you may want to install binutils
9934 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9935 *** You will then need to restart the configuration process.
9937 _LT_EOF
9941 amigaos*)
9942 case $host_cpu in
9943 powerpc)
9944 # see comment about AmigaOS4 .so support
9945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9946 archive_expsym_cmds=''
9948 m68k)
9949 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)'
9950 hardcode_libdir_flag_spec='-L$libdir'
9951 hardcode_minus_L=yes
9953 esac
9956 beos*)
9957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9958 allow_undefined_flag=unsupported
9959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9960 # support --undefined. This deserves some investigation. FIXME
9961 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962 else
9963 ld_shlibs=no
9967 cygwin* | mingw* | pw32* | cegcc*)
9968 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9969 # as there is no search path for DLLs.
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 export_dynamic_flag_spec='${wl}--export-all-symbols'
9972 allow_undefined_flag=unsupported
9973 always_export_symbols=no
9974 enable_shared_with_static_runtimes=yes
9975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9977 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9979 # If the export-symbols file already is a .def file (1st line
9980 # is EXPORTS), use it as is; otherwise, prepend...
9981 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9982 cp $export_symbols $output_objdir/$soname.def;
9983 else
9984 echo EXPORTS > $output_objdir/$soname.def;
9985 cat $export_symbols >> $output_objdir/$soname.def;
9987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9988 else
9989 ld_shlibs=no
9993 haiku*)
9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995 link_all_deplibs=yes
9998 interix[3-9]*)
9999 hardcode_direct=no
10000 hardcode_shlibpath_var=no
10001 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10002 export_dynamic_flag_spec='${wl}-E'
10003 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10004 # Instead, shared libraries are loaded at an image base (0x10000000 by
10005 # default) and relocated if they conflict, which is a slow very memory
10006 # consuming and fragmenting process. To avoid this, we pick a random,
10007 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10008 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10009 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10010 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'
10013 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10014 tmp_diet=no
10015 if test "$host_os" = linux-dietlibc; then
10016 case $cc_basename in
10017 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10018 esac
10020 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10021 && test "$tmp_diet" = no
10022 then
10023 tmp_addflag=' $pic_flag'
10024 tmp_sharedflag='-shared'
10025 case $cc_basename,$host_cpu in
10026 pgcc*) # Portland Group C compiler
10027 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'
10028 tmp_addflag=' $pic_flag'
10030 pgf77* | pgf90* | pgf95* | pgfortran*)
10031 # Portland Group f77 and f90 compilers
10032 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'
10033 tmp_addflag=' $pic_flag -Mnomain' ;;
10034 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10035 tmp_addflag=' -i_dynamic' ;;
10036 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10037 tmp_addflag=' -i_dynamic -nofor_main' ;;
10038 ifc* | ifort*) # Intel Fortran compiler
10039 tmp_addflag=' -nofor_main' ;;
10040 lf95*) # Lahey Fortran 8.1
10041 whole_archive_flag_spec=
10042 tmp_sharedflag='--shared' ;;
10043 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10044 tmp_sharedflag='-qmkshrobj'
10045 tmp_addflag= ;;
10046 nvcc*) # Cuda Compiler Driver 2.2
10047 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'
10048 compiler_needs_object=yes
10050 esac
10051 case `$CC -V 2>&1 | sed 5q` in
10052 *Sun\ C*) # Sun C 5.9
10053 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'
10054 compiler_needs_object=yes
10055 tmp_sharedflag='-G' ;;
10056 *Sun\ F*) # Sun Fortran 8.3
10057 tmp_sharedflag='-G' ;;
10058 esac
10059 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 if test "x$supports_anon_versioning" = xyes; then
10062 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10064 echo "local: *; };" >> $output_objdir/$libname.ver~
10065 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10068 case $cc_basename in
10069 xlf* | bgf* | bgxlf* | mpixlf*)
10070 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10071 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10072 hardcode_libdir_flag_spec=
10073 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10074 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10075 if test "x$supports_anon_versioning" = xyes; then
10076 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10078 echo "local: *; };" >> $output_objdir/$libname.ver~
10079 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10082 esac
10083 else
10084 ld_shlibs=no
10088 netbsd*)
10089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10090 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10091 wlarc=
10092 else
10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10098 solaris*)
10099 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10100 ld_shlibs=no
10101 cat <<_LT_EOF 1>&2
10103 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10104 *** create shared libraries on Solaris systems. Therefore, libtool
10105 *** is disabling shared libraries support. We urge you to upgrade GNU
10106 *** binutils to release 2.9.1 or newer. Another option is to modify
10107 *** your PATH or compiler configuration so that the native linker is
10108 *** used, and then restart.
10110 _LT_EOF
10111 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10114 else
10115 ld_shlibs=no
10119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10120 case `$LD -v 2>&1` in
10121 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10122 ld_shlibs=no
10123 cat <<_LT_EOF 1>&2
10125 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10126 *** reliably create shared libraries on SCO systems. Therefore, libtool
10127 *** is disabling shared libraries support. We urge you to upgrade GNU
10128 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10129 *** your PATH or compiler configuration so that the native linker is
10130 *** used, and then restart.
10132 _LT_EOF
10135 # For security reasons, it is highly recommended that you always
10136 # use absolute paths for naming shared libraries, and exclude the
10137 # DT_RUNPATH tag from executables and libraries. But doing so
10138 # requires that you compile everything twice, which is a pain.
10139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10143 else
10144 ld_shlibs=no
10147 esac
10150 sunos4*)
10151 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10152 wlarc=
10153 hardcode_direct=yes
10154 hardcode_shlibpath_var=no
10158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10161 else
10162 ld_shlibs=no
10165 esac
10167 if test "$ld_shlibs" = no; then
10168 runpath_var=
10169 hardcode_libdir_flag_spec=
10170 export_dynamic_flag_spec=
10171 whole_archive_flag_spec=
10173 else
10174 # PORTME fill in a description of your system's linker (not GNU ld)
10175 case $host_os in
10176 aix3*)
10177 allow_undefined_flag=unsupported
10178 always_export_symbols=yes
10179 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'
10180 # Note: this linker hardcodes the directories in LIBPATH if there
10181 # are no directories specified by -L.
10182 hardcode_minus_L=yes
10183 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10184 # Neither direct hardcoding nor static linking is supported with a
10185 # broken collect2.
10186 hardcode_direct=unsupported
10190 aix[4-9]*)
10191 if test "$host_cpu" = ia64; then
10192 # On IA64, the linker does run time linking by default, so we don't
10193 # have to do anything special.
10194 aix_use_runtimelinking=no
10195 exp_sym_flag='-Bexport'
10196 no_entry_flag=""
10197 else
10198 # If we're using GNU nm, then we don't want the "-C" option.
10199 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10200 # Also, AIX nm treats weak defined symbols like other global
10201 # defined symbols, whereas GNU nm marks them as "W".
10202 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10203 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'
10204 else
10205 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'
10207 aix_use_runtimelinking=no
10209 # Test if we are trying to use run time linking or normal
10210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10211 # need to do runtime linking.
10212 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10213 for ld_flag in $LDFLAGS; do
10214 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10215 aix_use_runtimelinking=yes
10216 break
10218 done
10220 esac
10222 exp_sym_flag='-bexport'
10223 no_entry_flag='-bnoentry'
10226 # When large executables or shared objects are built, AIX ld can
10227 # have problems creating the table of contents. If linking a library
10228 # or program results in "error TOC overflow" add -mminimal-toc to
10229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10232 archive_cmds=''
10233 hardcode_direct=yes
10234 hardcode_direct_absolute=yes
10235 hardcode_libdir_separator=':'
10236 link_all_deplibs=yes
10237 file_list_spec='${wl}-f,'
10239 if test "$GCC" = yes; then
10240 case $host_os in aix4.[012]|aix4.[012].*)
10241 # We only want to do this on AIX 4.2 and lower, the check
10242 # below for broken collect2 doesn't work under 4.3+
10243 collect2name=`${CC} -print-prog-name=collect2`
10244 if test -f "$collect2name" &&
10245 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10246 then
10247 # We have reworked collect2
10249 else
10250 # We have old collect2
10251 hardcode_direct=unsupported
10252 # It fails to find uninstalled libraries when the uninstalled
10253 # path is not listed in the libpath. Setting hardcode_minus_L
10254 # to unsupported forces relinking
10255 hardcode_minus_L=yes
10256 hardcode_libdir_flag_spec='-L$libdir'
10257 hardcode_libdir_separator=
10260 esac
10261 shared_flag='-shared'
10262 if test "$aix_use_runtimelinking" = yes; then
10263 shared_flag="$shared_flag "'${wl}-G'
10265 else
10266 # not using gcc
10267 if test "$host_cpu" = ia64; then
10268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10269 # chokes on -Wl,-G. The following line is correct:
10270 shared_flag='-G'
10271 else
10272 if test "$aix_use_runtimelinking" = yes; then
10273 shared_flag='${wl}-G'
10274 else
10275 shared_flag='${wl}-bM:SRE'
10280 export_dynamic_flag_spec='${wl}-bexpall'
10281 # It seems that -bexpall does not export symbols beginning with
10282 # underscore (_), so it is better to generate a list of symbols to export.
10283 always_export_symbols=yes
10284 if test "$aix_use_runtimelinking" = yes; then
10285 # Warning - without using the other runtime loading flags (-brtl),
10286 # -berok will link without error, but may produce a broken library.
10287 allow_undefined_flag='-berok'
10288 # Determine the default libpath from the value encoded in an
10289 # empty executable.
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10294 main ()
10298 return 0;
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10303 lt_aix_libpath_sed='
10304 /Import File Strings/,/^$/ {
10305 /^0/ {
10306 s/^0 *\(.*\)$/\1/
10310 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10311 # Check for a 64-bit object if we didn't find anything.
10312 if test -z "$aix_libpath"; then
10313 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10321 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"
10322 else
10323 if test "$host_cpu" = ia64; then
10324 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10325 allow_undefined_flag="-z nodefs"
10326 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"
10327 else
10328 # Determine the default libpath from the value encoded in an
10329 # empty executable.
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10334 main ()
10338 return 0;
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10343 lt_aix_libpath_sed='
10344 /Import File Strings/,/^$/ {
10345 /^0/ {
10346 s/^0 *\(.*\)$/\1/
10350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10351 # Check for a 64-bit object if we didn't find anything.
10352 if test -z "$aix_libpath"; then
10353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10356 rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10361 # Warning - without using the other run time loading flags,
10362 # -berok will link without error, but may produce a broken library.
10363 no_undefined_flag=' ${wl}-bernotok'
10364 allow_undefined_flag=' ${wl}-berok'
10365 if test "$with_gnu_ld" = yes; then
10366 # We only use this code for GNU lds that support --whole-archive.
10367 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10368 else
10369 # Exported symbols can be pulled into shared objects from archives
10370 whole_archive_flag_spec='$convenience'
10372 archive_cmds_need_lc=yes
10373 # This is similar to how AIX traditionally builds its shared libraries.
10374 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'
10379 amigaos*)
10380 case $host_cpu in
10381 powerpc)
10382 # see comment about AmigaOS4 .so support
10383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384 archive_expsym_cmds=''
10386 m68k)
10387 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)'
10388 hardcode_libdir_flag_spec='-L$libdir'
10389 hardcode_minus_L=yes
10391 esac
10394 bsdi[45]*)
10395 export_dynamic_flag_spec=-rdynamic
10398 cygwin* | mingw* | pw32* | cegcc*)
10399 # When not using gcc, we currently assume that we are using
10400 # Microsoft Visual C++.
10401 # hardcode_libdir_flag_spec is actually meaningless, as there is
10402 # no search path for DLLs.
10403 hardcode_libdir_flag_spec=' '
10404 allow_undefined_flag=unsupported
10405 # Tell ltmain to make .lib files, not .a files.
10406 libext=lib
10407 # Tell ltmain to make .dll files, not .so files.
10408 shrext_cmds=".dll"
10409 # FIXME: Setting linknames here is a bad hack.
10410 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10411 # The linker will automatically build a .lib file if we build a DLL.
10412 old_archive_from_new_cmds='true'
10413 # FIXME: Should let the user specify the lib program.
10414 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10415 fix_srcfile_path='`cygpath -w "$srcfile"`'
10416 enable_shared_with_static_runtimes=yes
10419 darwin* | rhapsody*)
10422 archive_cmds_need_lc=no
10423 hardcode_direct=no
10424 hardcode_automatic=yes
10425 hardcode_shlibpath_var=unsupported
10426 if test "$lt_cv_ld_force_load" = "yes"; then
10427 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\"`'
10428 else
10429 whole_archive_flag_spec=''
10431 link_all_deplibs=yes
10432 allow_undefined_flag="$_lt_dar_allow_undefined"
10433 case $cc_basename in
10434 ifort*) _lt_dar_can_shared=yes ;;
10435 *) _lt_dar_can_shared=$GCC ;;
10436 esac
10437 if test "$_lt_dar_can_shared" = "yes"; then
10438 output_verbose_link_cmd=func_echo_all
10439 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10440 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10441 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10442 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}"
10444 else
10445 ld_shlibs=no
10450 dgux*)
10451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_libdir_flag_spec='-L$libdir'
10453 hardcode_shlibpath_var=no
10456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10457 # support. Future versions do this automatically, but an explicit c++rt0.o
10458 # does not break anything, and helps significantly (at the cost of a little
10459 # extra space).
10460 freebsd2.2*)
10461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10462 hardcode_libdir_flag_spec='-R$libdir'
10463 hardcode_direct=yes
10464 hardcode_shlibpath_var=no
10467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10468 freebsd2.*)
10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10470 hardcode_direct=yes
10471 hardcode_minus_L=yes
10472 hardcode_shlibpath_var=no
10475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10476 freebsd* | dragonfly*)
10477 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10478 hardcode_libdir_flag_spec='-R$libdir'
10479 hardcode_direct=yes
10480 hardcode_shlibpath_var=no
10483 hpux9*)
10484 if test "$GCC" = yes; then
10485 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'
10486 else
10487 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'
10489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10490 hardcode_libdir_separator=:
10491 hardcode_direct=yes
10493 # hardcode_minus_L: Not really in the search PATH,
10494 # but as the default location of the library.
10495 hardcode_minus_L=yes
10496 export_dynamic_flag_spec='${wl}-E'
10499 hpux10*)
10500 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10501 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10502 else
10503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10505 if test "$with_gnu_ld" = no; then
10506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10507 hardcode_libdir_flag_spec_ld='+b $libdir'
10508 hardcode_libdir_separator=:
10509 hardcode_direct=yes
10510 hardcode_direct_absolute=yes
10511 export_dynamic_flag_spec='${wl}-E'
10512 # hardcode_minus_L: Not really in the search PATH,
10513 # but as the default location of the library.
10514 hardcode_minus_L=yes
10518 hpux11*)
10519 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10520 case $host_cpu in
10521 hppa*64*)
10522 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10524 ia64*)
10525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10528 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10530 esac
10531 else
10532 case $host_cpu in
10533 hppa*64*)
10534 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10536 ia64*)
10537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10541 # Older versions of the 11.00 compiler do not understand -b yet
10542 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10544 $as_echo_n "checking if $CC understands -b... " >&6; }
10545 if ${lt_cv_prog_compiler__b+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 lt_cv_prog_compiler__b=no
10549 save_LDFLAGS="$LDFLAGS"
10550 LDFLAGS="$LDFLAGS -b"
10551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10553 # The linker can only warn and ignore the option if not recognized
10554 # So say no if there are warnings
10555 if test -s conftest.err; then
10556 # Append any errors to the config.log.
10557 cat conftest.err 1>&5
10558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10560 if diff conftest.exp conftest.er2 >/dev/null; then
10561 lt_cv_prog_compiler__b=yes
10563 else
10564 lt_cv_prog_compiler__b=yes
10567 $RM -r conftest*
10568 LDFLAGS="$save_LDFLAGS"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10572 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10574 if test x"$lt_cv_prog_compiler__b" = xyes; then
10575 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10576 else
10577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10581 esac
10583 if test "$with_gnu_ld" = no; then
10584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10585 hardcode_libdir_separator=:
10587 case $host_cpu in
10588 hppa*64*|ia64*)
10589 hardcode_direct=no
10590 hardcode_shlibpath_var=no
10593 hardcode_direct=yes
10594 hardcode_direct_absolute=yes
10595 export_dynamic_flag_spec='${wl}-E'
10597 # hardcode_minus_L: Not really in the search PATH,
10598 # but as the default location of the library.
10599 hardcode_minus_L=yes
10601 esac
10605 irix5* | irix6* | nonstopux*)
10606 if test "$GCC" = yes; then
10607 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'
10608 # Try to use the -exported_symbol ld option, if it does not
10609 # work, assume that -exports_file does not work either and
10610 # implicitly export all symbols.
10611 save_LDFLAGS="$LDFLAGS"
10612 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 int foo(void) {}
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618 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'
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LDFLAGS="$save_LDFLAGS"
10624 else
10625 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'
10626 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'
10628 archive_cmds_need_lc='no'
10629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10630 hardcode_libdir_separator=:
10631 inherit_rpath=yes
10632 link_all_deplibs=yes
10635 netbsd*)
10636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10638 else
10639 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10641 hardcode_libdir_flag_spec='-R$libdir'
10642 hardcode_direct=yes
10643 hardcode_shlibpath_var=no
10646 newsos6)
10647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648 hardcode_direct=yes
10649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10650 hardcode_libdir_separator=:
10651 hardcode_shlibpath_var=no
10654 *nto* | *qnx*)
10657 openbsd*)
10658 if test -f /usr/libexec/ld.so; then
10659 hardcode_direct=yes
10660 hardcode_shlibpath_var=no
10661 hardcode_direct_absolute=yes
10662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10666 export_dynamic_flag_spec='${wl}-E'
10667 else
10668 case $host_os in
10669 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10671 hardcode_libdir_flag_spec='-R$libdir'
10674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10677 esac
10679 else
10680 ld_shlibs=no
10684 os2*)
10685 hardcode_libdir_flag_spec='-L$libdir'
10686 hardcode_minus_L=yes
10687 allow_undefined_flag=unsupported
10688 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'
10689 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10692 osf3*)
10693 if test "$GCC" = yes; then
10694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10695 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'
10696 else
10697 allow_undefined_flag=' -expect_unresolved \*'
10698 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'
10700 archive_cmds_need_lc='no'
10701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10702 hardcode_libdir_separator=:
10705 osf4* | osf5*) # as osf3* with the addition of -msym flag
10706 if test "$GCC" = yes; then
10707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10708 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'
10709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10710 else
10711 allow_undefined_flag=' -expect_unresolved \*'
10712 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'
10713 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~
10714 $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'
10716 # Both c and cxx compiler support -rpath directly
10717 hardcode_libdir_flag_spec='-rpath $libdir'
10719 archive_cmds_need_lc='no'
10720 hardcode_libdir_separator=:
10723 solaris*)
10724 no_undefined_flag=' -z defs'
10725 if test "$GCC" = yes; then
10726 wlarc='${wl}'
10727 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10729 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10730 else
10731 case `$CC -V 2>&1` in
10732 *"Compilers 5.0"*)
10733 wlarc=''
10734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10739 wlarc='${wl}'
10740 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10742 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10744 esac
10746 hardcode_libdir_flag_spec='-R$libdir'
10747 hardcode_shlibpath_var=no
10748 case $host_os in
10749 solaris2.[0-5] | solaris2.[0-5].*) ;;
10751 # The compiler driver will combine and reorder linker options,
10752 # but understands `-z linker_flag'. GCC discards it without `$wl',
10753 # but is careful enough not to reorder.
10754 # Supported since Solaris 2.6 (maybe 2.5.1?)
10755 if test "$GCC" = yes; then
10756 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10757 else
10758 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10761 esac
10762 link_all_deplibs=yes
10765 sunos4*)
10766 if test "x$host_vendor" = xsequent; then
10767 # Use $CC to link under sequent, because it throws in some extra .o
10768 # files that make .init and .fini sections work.
10769 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10770 else
10771 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_libdir_flag_spec='-L$libdir'
10774 hardcode_direct=yes
10775 hardcode_minus_L=yes
10776 hardcode_shlibpath_var=no
10779 sysv4)
10780 case $host_vendor in
10781 sni)
10782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10783 hardcode_direct=yes # is this really true???
10785 siemens)
10786 ## LD is ld it makes a PLAMLIB
10787 ## CC just makes a GrossModule.
10788 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10789 reload_cmds='$CC -r -o $output$reload_objs'
10790 hardcode_direct=no
10792 motorola)
10793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10794 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10796 esac
10797 runpath_var='LD_RUN_PATH'
10798 hardcode_shlibpath_var=no
10801 sysv4.3*)
10802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10803 hardcode_shlibpath_var=no
10804 export_dynamic_flag_spec='-Bexport'
10807 sysv4*MP*)
10808 if test -d /usr/nec; then
10809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10810 hardcode_shlibpath_var=no
10811 runpath_var=LD_RUN_PATH
10812 hardcode_runpath_var=yes
10813 ld_shlibs=yes
10817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10818 no_undefined_flag='${wl}-z,text'
10819 archive_cmds_need_lc=no
10820 hardcode_shlibpath_var=no
10821 runpath_var='LD_RUN_PATH'
10823 if test "$GCC" = yes; then
10824 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 else
10827 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10828 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10832 sysv5* | sco3.2v5* | sco5v6*)
10833 # Note: We can NOT use -z defs as we might desire, because we do not
10834 # link with -lc, and that would cause any symbols used from libc to
10835 # always be unresolved, which means just about no library would
10836 # ever link correctly. If we're not using GNU ld we use -z text
10837 # though, which does catch some bad symbols but isn't as heavy-handed
10838 # as -z defs.
10839 no_undefined_flag='${wl}-z,text'
10840 allow_undefined_flag='${wl}-z,nodefs'
10841 archive_cmds_need_lc=no
10842 hardcode_shlibpath_var=no
10843 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10844 hardcode_libdir_separator=':'
10845 link_all_deplibs=yes
10846 export_dynamic_flag_spec='${wl}-Bexport'
10847 runpath_var='LD_RUN_PATH'
10849 if test "$GCC" = yes; then
10850 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10852 else
10853 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 uts4*)
10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 hardcode_shlibpath_var=no
10865 ld_shlibs=no
10867 esac
10869 if test x$host_vendor = xsni; then
10870 case $host in
10871 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10872 export_dynamic_flag_spec='${wl}-Blargedynsym'
10874 esac
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10879 $as_echo "$ld_shlibs" >&6; }
10880 test "$ld_shlibs" = no && can_build_shared=no
10882 with_gnu_ld=$with_gnu_ld
10899 # Do we need to explicitly link libc?
10901 case "x$archive_cmds_need_lc" in
10902 x|xyes)
10903 # Assume -lc should be added
10904 archive_cmds_need_lc=yes
10906 if test "$enable_shared" = yes && test "$GCC" = yes; then
10907 case $archive_cmds in
10908 *'~'*)
10909 # FIXME: we may have to deal with multi-command sequences.
10911 '$CC '*)
10912 # Test whether the compiler implicitly links with -lc since on some
10913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10914 # to ld, don't add -lc before -lgcc.
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10916 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10917 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 $RM conftest*
10921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10924 (eval $ac_compile) 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10927 test $ac_status = 0; } 2>conftest.err; then
10928 soname=conftest
10929 lib=conftest
10930 libobjs=conftest.$ac_objext
10931 deplibs=
10932 wl=$lt_prog_compiler_wl
10933 pic_flag=$lt_prog_compiler_pic
10934 compiler_flags=-v
10935 linker_flags=-v
10936 verstring=
10937 output_objdir=.
10938 libname=conftest
10939 lt_save_allow_undefined_flag=$allow_undefined_flag
10940 allow_undefined_flag=
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10942 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; }
10946 then
10947 lt_cv_archive_cmds_need_lc=no
10948 else
10949 lt_cv_archive_cmds_need_lc=yes
10951 allow_undefined_flag=$lt_save_allow_undefined_flag
10952 else
10953 cat conftest.err 1>&5
10955 $RM conftest*
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10959 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10960 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10962 esac
10965 esac
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11124 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11126 if test "$GCC" = yes; then
11127 case $host_os in
11128 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11129 *) lt_awk_arg="/^libraries:/" ;;
11130 esac
11131 case $host_os in
11132 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11133 *) lt_sed_strip_eq="s,=/,/,g" ;;
11134 esac
11135 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11136 case $lt_search_path_spec in
11137 *\;*)
11138 # if the path contains ";" then we assume it to be the separator
11139 # otherwise default to the standard path separator (i.e. ":") - it is
11140 # assumed that no part of a normal pathname contains ";" but that should
11141 # okay in the real world where ";" in dirpaths is itself problematic.
11142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11147 esac
11148 # Ok, now we have the path, separated by spaces, we can step through it
11149 # and add multilib dir if necessary.
11150 lt_tmp_lt_search_path_spec=
11151 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11152 for lt_sys_path in $lt_search_path_spec; do
11153 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11155 else
11156 test -d "$lt_sys_path" && \
11157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11159 done
11160 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11161 BEGIN {RS=" "; FS="/|\n";} {
11162 lt_foo="";
11163 lt_count=0;
11164 for (lt_i = NF; lt_i > 0; lt_i--) {
11165 if ($lt_i != "" && $lt_i != ".") {
11166 if ($lt_i == "..") {
11167 lt_count++;
11168 } else {
11169 if (lt_count == 0) {
11170 lt_foo="/" $lt_i lt_foo;
11171 } else {
11172 lt_count--;
11177 if (lt_foo != "") { lt_freq[lt_foo]++; }
11178 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11180 # AWK program above erroneously prepends '/' to C:/dos/paths
11181 # for these hosts.
11182 case $host_os in
11183 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11184 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11185 esac
11186 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11187 else
11188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11190 library_names_spec=
11191 libname_spec='lib$name'
11192 soname_spec=
11193 shrext_cmds=".so"
11194 postinstall_cmds=
11195 postuninstall_cmds=
11196 finish_cmds=
11197 finish_eval=
11198 shlibpath_var=
11199 shlibpath_overrides_runpath=unknown
11200 version_type=none
11201 dynamic_linker="$host_os ld.so"
11202 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11203 need_lib_prefix=unknown
11204 hardcode_into_libs=no
11206 # when you set need_version to no, make sure it does not cause -set_version
11207 # flags to be left without arguments
11208 need_version=unknown
11210 case $host_os in
11211 aix3*)
11212 version_type=linux
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11214 shlibpath_var=LIBPATH
11216 # AIX 3 has no versioning support, so we append a major version to the name.
11217 soname_spec='${libname}${release}${shared_ext}$major'
11220 aix[4-9]*)
11221 version_type=linux
11222 need_lib_prefix=no
11223 need_version=no
11224 hardcode_into_libs=yes
11225 if test "$host_cpu" = ia64; then
11226 # AIX 5 supports IA64
11227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 else
11230 # With GCC up to 2.95.x, collect2 would create an import file
11231 # for dependence libraries. The import file would start with
11232 # the line `#! .'. This would cause the generated library to
11233 # depend on `.', always an invalid library. This was fixed in
11234 # development snapshots of GCC prior to 3.0.
11235 case $host_os in
11236 aix4 | aix4.[01] | aix4.[01].*)
11237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11238 echo ' yes '
11239 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11241 else
11242 can_build_shared=no
11245 esac
11246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11247 # soname into executable. Probably we can add versioning support to
11248 # collect2, so additional links can be useful in future.
11249 if test "$aix_use_runtimelinking" = yes; then
11250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11251 # instead of lib<name>.a to let people know that these are not
11252 # typical AIX shared libraries.
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 else
11255 # We preserve .a as extension for shared libraries through AIX4.2
11256 # and later when we are not doing run time linking.
11257 library_names_spec='${libname}${release}.a $libname.a'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11260 shlibpath_var=LIBPATH
11264 amigaos*)
11265 case $host_cpu in
11266 powerpc)
11267 # Since July 2007 AmigaOS4 officially supports .so libraries.
11268 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 m68k)
11272 library_names_spec='$libname.ixlibrary $libname.a'
11273 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11274 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'
11276 esac
11279 beos*)
11280 library_names_spec='${libname}${shared_ext}'
11281 dynamic_linker="$host_os ld.so"
11282 shlibpath_var=LIBRARY_PATH
11285 bsdi[45]*)
11286 version_type=linux
11287 need_version=no
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11294 # the default ld.so.conf also contains /usr/contrib/lib and
11295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11296 # libtool to hard-code these into programs
11299 cygwin* | mingw* | pw32* | cegcc*)
11300 version_type=windows
11301 shrext_cmds=".dll"
11302 need_version=no
11303 need_lib_prefix=no
11305 case $GCC,$host_os in
11306 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11307 library_names_spec='$libname.dll.a'
11308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11309 postinstall_cmds='base_file=`basename \${file}`~
11310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11311 dldir=$destdir/`dirname \$dlpath`~
11312 test -d \$dldir || mkdir -p \$dldir~
11313 $install_prog $dir/$dlname \$dldir/$dlname~
11314 chmod a+x \$dldir/$dlname~
11315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11319 dlpath=$dir/\$dldll~
11320 $RM \$dlpath'
11321 shlibpath_overrides_runpath=yes
11323 case $host_os in
11324 cygwin*)
11325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11330 mingw* | cegcc*)
11331 # MinGW DLLs use traditional 'lib' prefix
11332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11334 pw32*)
11335 # pw32 DLLs use 'pw' prefix rather than 'lib'
11336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11338 esac
11342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11344 esac
11345 dynamic_linker='Win32 ld.exe'
11346 # FIXME: first we should search . and the directory the executable is in
11347 shlibpath_var=PATH
11350 darwin* | rhapsody*)
11351 dynamic_linker="$host_os dyld"
11352 version_type=darwin
11353 need_lib_prefix=no
11354 need_version=no
11355 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11356 soname_spec='${libname}${release}${major}$shared_ext'
11357 shlibpath_overrides_runpath=yes
11358 shlibpath_var=DYLD_LIBRARY_PATH
11359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11361 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11362 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11365 dgux*)
11366 version_type=linux
11367 need_lib_prefix=no
11368 need_version=no
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 shlibpath_var=LD_LIBRARY_PATH
11374 freebsd* | dragonfly*)
11375 # DragonFly does not have aout. When/if they implement a new
11376 # versioning mechanism, adjust this.
11377 if test -x /usr/bin/objformat; then
11378 objformat=`/usr/bin/objformat`
11379 else
11380 case $host_os in
11381 freebsd[23].*) objformat=aout ;;
11382 *) objformat=elf ;;
11383 esac
11385 version_type=freebsd-$objformat
11386 case $version_type in
11387 freebsd-elf*)
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11389 need_version=no
11390 need_lib_prefix=no
11392 freebsd-*)
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11394 need_version=yes
11396 esac
11397 shlibpath_var=LD_LIBRARY_PATH
11398 case $host_os in
11399 freebsd2.*)
11400 shlibpath_overrides_runpath=yes
11402 freebsd3.[01]* | freebsdelf3.[01]*)
11403 shlibpath_overrides_runpath=yes
11404 hardcode_into_libs=yes
11406 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11407 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11408 shlibpath_overrides_runpath=no
11409 hardcode_into_libs=yes
11411 *) # from 4.6 on, and DragonFly
11412 shlibpath_overrides_runpath=yes
11413 hardcode_into_libs=yes
11415 esac
11418 gnu*)
11419 version_type=linux
11420 need_lib_prefix=no
11421 need_version=no
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 hardcode_into_libs=yes
11428 haiku*)
11429 version_type=linux
11430 need_lib_prefix=no
11431 need_version=no
11432 dynamic_linker="$host_os runtime_loader"
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes
11437 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11438 hardcode_into_libs=yes
11441 hpux9* | hpux10* | hpux11*)
11442 # Give a soname corresponding to the major version so that dld.sl refuses to
11443 # link against other versions.
11444 version_type=sunos
11445 need_lib_prefix=no
11446 need_version=no
11447 case $host_cpu in
11448 ia64*)
11449 shrext_cmds='.so'
11450 hardcode_into_libs=yes
11451 dynamic_linker="$host_os dld.so"
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 if test "X$HPUX_IA64_MODE" = X32; then
11457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11458 else
11459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11463 hppa*64*)
11464 shrext_cmds='.sl'
11465 hardcode_into_libs=yes
11466 dynamic_linker="$host_os dld.sl"
11467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11475 shrext_cmds='.sl'
11476 dynamic_linker="$host_os dld.sl"
11477 shlibpath_var=SHLIB_PATH
11478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11482 esac
11483 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11484 postinstall_cmds='chmod 555 $lib'
11485 # or fails outright, so override atomically:
11486 install_override_mode=555
11489 interix[3-9]*)
11490 version_type=linux
11491 need_lib_prefix=no
11492 need_version=no
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=no
11498 hardcode_into_libs=yes
11501 irix5* | irix6* | nonstopux*)
11502 case $host_os in
11503 nonstopux*) version_type=nonstopux ;;
11505 if test "$lt_cv_prog_gnu_ld" = yes; then
11506 version_type=linux
11507 else
11508 version_type=irix
11509 fi ;;
11510 esac
11511 need_lib_prefix=no
11512 need_version=no
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11515 case $host_os in
11516 irix5* | nonstopux*)
11517 libsuff= shlibsuff=
11520 case $LD in # libtool.m4 will add one of these switches to LD
11521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11522 libsuff= shlibsuff= libmagic=32-bit;;
11523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11524 libsuff=32 shlibsuff=N32 libmagic=N32;;
11525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11527 *) libsuff= shlibsuff= libmagic=never-match;;
11528 esac
11530 esac
11531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11532 shlibpath_overrides_runpath=no
11533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11535 hardcode_into_libs=yes
11538 # No shared lib support for Linux oldld, aout, or coff.
11539 linux*oldld* | linux*aout* | linux*coff*)
11540 dynamic_linker=no
11543 # This must be Linux ELF.
11544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11545 version_type=linux
11546 need_lib_prefix=no
11547 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=no
11554 # Some binutils ld are patched to set DT_RUNPATH
11555 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 lt_cv_shlibpath_overrides_runpath=no
11559 save_LDFLAGS=$LDFLAGS
11560 save_libdir=$libdir
11561 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11562 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11567 main ()
11571 return 0;
11573 _ACEOF
11574 if ac_fn_c_try_link "$LINENO"; then :
11575 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11576 lt_cv_shlibpath_overrides_runpath=yes
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LDFLAGS=$save_LDFLAGS
11582 libdir=$save_libdir
11586 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11588 # This implies no fast_install, which is unacceptable.
11589 # Some rework will be needed to allow for fast_install
11590 # before this can be enabled.
11591 hardcode_into_libs=yes
11593 # Append ld.so.conf contents to the search path
11594 if test -f /etc/ld.so.conf; then
11595 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' ' '`
11596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11599 # We used to test for /lib/ld.so.1 and disable shared libraries on
11600 # powerpc, because MkLinux only supported shared libraries with the
11601 # GNU dynamic linker. Since this was broken with cross compilers,
11602 # most powerpc-linux boxes support dynamic linking these days and
11603 # people can always --disable-shared, the test was removed, and we
11604 # assume the GNU/Linux dynamic linker is in use.
11605 dynamic_linker='GNU/Linux ld.so'
11608 netbsd*)
11609 version_type=sunos
11610 need_lib_prefix=no
11611 need_version=no
11612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11615 dynamic_linker='NetBSD (a.out) ld.so'
11616 else
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 dynamic_linker='NetBSD ld.elf_so'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=yes
11623 hardcode_into_libs=yes
11626 newsos6)
11627 version_type=linux
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 shlibpath_overrides_runpath=yes
11633 *nto* | *qnx*)
11634 version_type=qnx
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11641 hardcode_into_libs=yes
11642 dynamic_linker='ldqnx.so'
11645 openbsd*)
11646 version_type=sunos
11647 sys_lib_dlsearch_path_spec="/usr/lib"
11648 need_lib_prefix=no
11649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11650 case $host_os in
11651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11652 *) need_version=no ;;
11653 esac
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11658 case $host_os in
11659 openbsd2.[89] | openbsd2.[89].*)
11660 shlibpath_overrides_runpath=no
11663 shlibpath_overrides_runpath=yes
11665 esac
11666 else
11667 shlibpath_overrides_runpath=yes
11671 os2*)
11672 libname_spec='$name'
11673 shrext_cmds=".dll"
11674 need_lib_prefix=no
11675 library_names_spec='$libname${shared_ext} $libname.a'
11676 dynamic_linker='OS/2 ld.exe'
11677 shlibpath_var=LIBPATH
11680 osf3* | osf4* | osf5*)
11681 version_type=osf
11682 need_lib_prefix=no
11683 need_version=no
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11691 rdos*)
11692 dynamic_linker=no
11695 solaris*)
11696 version_type=linux
11697 need_lib_prefix=no
11698 need_version=no
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 shlibpath_overrides_runpath=yes
11703 hardcode_into_libs=yes
11704 # ldd complains unless libraries are executable
11705 postinstall_cmds='chmod +x $lib'
11708 sunos4*)
11709 version_type=sunos
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=yes
11714 if test "$with_gnu_ld" = yes; then
11715 need_lib_prefix=no
11717 need_version=yes
11720 sysv4 | sysv4.3*)
11721 version_type=linux
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 case $host_vendor in
11726 sni)
11727 shlibpath_overrides_runpath=no
11728 need_lib_prefix=no
11729 runpath_var=LD_RUN_PATH
11731 siemens)
11732 need_lib_prefix=no
11734 motorola)
11735 need_lib_prefix=no
11736 need_version=no
11737 shlibpath_overrides_runpath=no
11738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11740 esac
11743 sysv4*MP*)
11744 if test -d /usr/nec ;then
11745 version_type=linux
11746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11747 soname_spec='$libname${shared_ext}.$major'
11748 shlibpath_var=LD_LIBRARY_PATH
11752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11753 version_type=freebsd-elf
11754 need_lib_prefix=no
11755 need_version=no
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath=yes
11760 hardcode_into_libs=yes
11761 if test "$with_gnu_ld" = yes; then
11762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11763 else
11764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11765 case $host_os in
11766 sco3.2v5*)
11767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11769 esac
11771 sys_lib_dlsearch_path_spec='/usr/lib'
11774 tpf*)
11775 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11776 version_type=linux
11777 need_lib_prefix=no
11778 need_version=no
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=no
11782 hardcode_into_libs=yes
11785 uts4*)
11786 version_type=linux
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11793 dynamic_linker=no
11795 esac
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11797 $as_echo "$dynamic_linker" >&6; }
11798 test "$dynamic_linker" = no && can_build_shared=no
11800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11801 if test "$GCC" = yes; then
11802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11809 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11904 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11905 hardcode_action=
11906 if test -n "$hardcode_libdir_flag_spec" ||
11907 test -n "$runpath_var" ||
11908 test "X$hardcode_automatic" = "Xyes" ; then
11910 # We can hardcode non-existent directories.
11911 if test "$hardcode_direct" != no &&
11912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11913 # have to relink, otherwise we might link with an installed library
11914 # when we should be linking with a yet-to-be-installed one
11915 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11916 test "$hardcode_minus_L" != no; then
11917 # Linking always hardcodes the temporary library directory.
11918 hardcode_action=relink
11919 else
11920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11921 hardcode_action=immediate
11923 else
11924 # We cannot hardcode anything, or else we can only hardcode existing
11925 # directories.
11926 hardcode_action=unsupported
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11929 $as_echo "$hardcode_action" >&6; }
11931 if test "$hardcode_action" = relink ||
11932 test "$inherit_rpath" = yes; then
11933 # Fast installation is not supported
11934 enable_fast_install=no
11935 elif test "$shlibpath_overrides_runpath" = yes ||
11936 test "$enable_shared" = no; then
11937 # Fast installation is not necessary
11938 enable_fast_install=needless
11946 if test "x$enable_dlopen" != xyes; then
11947 enable_dlopen=unknown
11948 enable_dlopen_self=unknown
11949 enable_dlopen_self_static=unknown
11950 else
11951 lt_cv_dlopen=no
11952 lt_cv_dlopen_libs=
11954 case $host_os in
11955 beos*)
11956 lt_cv_dlopen="load_add_on"
11957 lt_cv_dlopen_libs=
11958 lt_cv_dlopen_self=yes
11961 mingw* | pw32* | cegcc*)
11962 lt_cv_dlopen="LoadLibrary"
11963 lt_cv_dlopen_libs=
11966 cygwin*)
11967 lt_cv_dlopen="dlopen"
11968 lt_cv_dlopen_libs=
11971 darwin*)
11972 # if libdl is installed we need to link against it
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11974 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11975 if ${ac_cv_lib_dl_dlopen+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-ldl $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char dlopen ();
11991 main ()
11993 return dlopen ();
11995 return 0;
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"; then :
11999 ac_cv_lib_dl_dlopen=yes
12000 else
12001 ac_cv_lib_dl_dlopen=no
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12008 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12009 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12011 else
12013 lt_cv_dlopen="dyld"
12014 lt_cv_dlopen_libs=
12015 lt_cv_dlopen_self=yes
12022 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12023 if test "x$ac_cv_func_shl_load" = xyes; then :
12024 lt_cv_dlopen="shl_load"
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12027 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12028 if ${ac_cv_lib_dld_shl_load+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 ac_check_lib_save_LIBS=$LIBS
12032 LIBS="-ldld $LIBS"
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12036 /* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12039 #ifdef __cplusplus
12040 extern "C"
12041 #endif
12042 char shl_load ();
12044 main ()
12046 return shl_load ();
12048 return 0;
12050 _ACEOF
12051 if ac_fn_c_try_link "$LINENO"; then :
12052 ac_cv_lib_dld_shl_load=yes
12053 else
12054 ac_cv_lib_dld_shl_load=no
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058 LIBS=$ac_check_lib_save_LIBS
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12061 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12062 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12063 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12064 else
12065 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12066 if test "x$ac_cv_func_dlopen" = xyes; then :
12067 lt_cv_dlopen="dlopen"
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12070 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12071 if ${ac_cv_lib_dl_dlopen+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-ldl $LIBS"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12079 /* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 char dlopen ();
12087 main ()
12089 return dlopen ();
12091 return 0;
12093 _ACEOF
12094 if ac_fn_c_try_link "$LINENO"; then :
12095 ac_cv_lib_dl_dlopen=yes
12096 else
12097 ac_cv_lib_dl_dlopen=no
12099 rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12104 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12105 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12109 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12110 if ${ac_cv_lib_svld_dlopen+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 ac_check_lib_save_LIBS=$LIBS
12114 LIBS="-lsvld $LIBS"
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12121 #ifdef __cplusplus
12122 extern "C"
12123 #endif
12124 char dlopen ();
12126 main ()
12128 return dlopen ();
12130 return 0;
12132 _ACEOF
12133 if ac_fn_c_try_link "$LINENO"; then :
12134 ac_cv_lib_svld_dlopen=yes
12135 else
12136 ac_cv_lib_svld_dlopen=no
12138 rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12143 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12144 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12146 else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12148 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12149 if ${ac_cv_lib_dld_dld_link+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-ldld $LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char dld_link ();
12165 main ()
12167 return dld_link ();
12169 return 0;
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_dld_dld_link=yes
12174 else
12175 ac_cv_lib_dld_dld_link=no
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12182 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12183 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12184 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12203 esac
12205 if test "x$lt_cv_dlopen" != xno; then
12206 enable_dlopen=yes
12207 else
12208 enable_dlopen=no
12211 case $lt_cv_dlopen in
12212 dlopen)
12213 save_CPPFLAGS="$CPPFLAGS"
12214 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12216 save_LDFLAGS="$LDFLAGS"
12217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12219 save_LIBS="$LIBS"
12220 LIBS="$lt_cv_dlopen_libs $LIBS"
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12223 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12224 if ${lt_cv_dlopen_self+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 if test "$cross_compiling" = yes; then :
12228 lt_cv_dlopen_self=cross
12229 else
12230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12231 lt_status=$lt_dlunknown
12232 cat > conftest.$ac_ext <<_LT_EOF
12233 #line 12233 "configure"
12234 #include "confdefs.h"
12236 #if HAVE_DLFCN_H
12237 #include <dlfcn.h>
12238 #endif
12240 #include <stdio.h>
12242 #ifdef RTLD_GLOBAL
12243 # define LT_DLGLOBAL RTLD_GLOBAL
12244 #else
12245 # ifdef DL_GLOBAL
12246 # define LT_DLGLOBAL DL_GLOBAL
12247 # else
12248 # define LT_DLGLOBAL 0
12249 # endif
12250 #endif
12252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12253 find out it does not work in some platform. */
12254 #ifndef LT_DLLAZY_OR_NOW
12255 # ifdef RTLD_LAZY
12256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12257 # else
12258 # ifdef DL_LAZY
12259 # define LT_DLLAZY_OR_NOW DL_LAZY
12260 # else
12261 # ifdef RTLD_NOW
12262 # define LT_DLLAZY_OR_NOW RTLD_NOW
12263 # else
12264 # ifdef DL_NOW
12265 # define LT_DLLAZY_OR_NOW DL_NOW
12266 # else
12267 # define LT_DLLAZY_OR_NOW 0
12268 # endif
12269 # endif
12270 # endif
12271 # endif
12272 #endif
12274 /* When -fvisbility=hidden is used, assume the code has been annotated
12275 correspondingly for the symbols needed. */
12276 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12277 void fnord () __attribute__((visibility("default")));
12278 #endif
12280 void fnord () { int i=42; }
12281 int main ()
12283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12284 int status = $lt_dlunknown;
12286 if (self)
12288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12289 else
12291 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12292 else puts (dlerror ());
12294 /* dlclose (self); */
12296 else
12297 puts (dlerror ());
12299 return status;
12301 _LT_EOF
12302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12303 (eval $ac_link) 2>&5
12304 ac_status=$?
12305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12306 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12307 (./conftest; exit; ) >&5 2>/dev/null
12308 lt_status=$?
12309 case x$lt_status in
12310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12312 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12313 esac
12314 else :
12315 # compilation failed
12316 lt_cv_dlopen_self=no
12319 rm -fr conftest*
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12324 $as_echo "$lt_cv_dlopen_self" >&6; }
12326 if test "x$lt_cv_dlopen_self" = xyes; then
12327 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12329 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12330 if ${lt_cv_dlopen_self_static+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 if test "$cross_compiling" = yes; then :
12334 lt_cv_dlopen_self_static=cross
12335 else
12336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12337 lt_status=$lt_dlunknown
12338 cat > conftest.$ac_ext <<_LT_EOF
12339 #line 12339 "configure"
12340 #include "confdefs.h"
12342 #if HAVE_DLFCN_H
12343 #include <dlfcn.h>
12344 #endif
12346 #include <stdio.h>
12348 #ifdef RTLD_GLOBAL
12349 # define LT_DLGLOBAL RTLD_GLOBAL
12350 #else
12351 # ifdef DL_GLOBAL
12352 # define LT_DLGLOBAL DL_GLOBAL
12353 # else
12354 # define LT_DLGLOBAL 0
12355 # endif
12356 #endif
12358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12359 find out it does not work in some platform. */
12360 #ifndef LT_DLLAZY_OR_NOW
12361 # ifdef RTLD_LAZY
12362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12363 # else
12364 # ifdef DL_LAZY
12365 # define LT_DLLAZY_OR_NOW DL_LAZY
12366 # else
12367 # ifdef RTLD_NOW
12368 # define LT_DLLAZY_OR_NOW RTLD_NOW
12369 # else
12370 # ifdef DL_NOW
12371 # define LT_DLLAZY_OR_NOW DL_NOW
12372 # else
12373 # define LT_DLLAZY_OR_NOW 0
12374 # endif
12375 # endif
12376 # endif
12377 # endif
12378 #endif
12380 /* When -fvisbility=hidden is used, assume the code has been annotated
12381 correspondingly for the symbols needed. */
12382 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12383 void fnord () __attribute__((visibility("default")));
12384 #endif
12386 void fnord () { int i=42; }
12387 int main ()
12389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12390 int status = $lt_dlunknown;
12392 if (self)
12394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12395 else
12397 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12398 else puts (dlerror ());
12400 /* dlclose (self); */
12402 else
12403 puts (dlerror ());
12405 return status;
12407 _LT_EOF
12408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12409 (eval $ac_link) 2>&5
12410 ac_status=$?
12411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12412 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12413 (./conftest; exit; ) >&5 2>/dev/null
12414 lt_status=$?
12415 case x$lt_status in
12416 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12417 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12418 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12419 esac
12420 else :
12421 # compilation failed
12422 lt_cv_dlopen_self_static=no
12425 rm -fr conftest*
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12430 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12433 CPPFLAGS="$save_CPPFLAGS"
12434 LDFLAGS="$save_LDFLAGS"
12435 LIBS="$save_LIBS"
12437 esac
12439 case $lt_cv_dlopen_self in
12440 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12441 *) enable_dlopen_self=unknown ;;
12442 esac
12444 case $lt_cv_dlopen_self_static in
12445 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12446 *) enable_dlopen_self_static=unknown ;;
12447 esac
12466 striplib=
12467 old_striplib=
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12469 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12470 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12471 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12472 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474 $as_echo "yes" >&6; }
12475 else
12476 # FIXME - insert some real tests, host_os isn't really good enough
12477 case $host_os in
12478 darwin*)
12479 if test -n "$STRIP" ; then
12480 striplib="$STRIP -x"
12481 old_striplib="$STRIP -S"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12493 esac
12507 # Report which library types will actually be built
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12509 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12511 $as_echo "$can_build_shared" >&6; }
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12514 $as_echo_n "checking whether to build shared libraries... " >&6; }
12515 test "$can_build_shared" = "no" && enable_shared=no
12517 # On AIX, shared libraries and static libraries use the same namespace, and
12518 # are all built from PIC.
12519 case $host_os in
12520 aix3*)
12521 test "$enable_shared" = yes && enable_static=no
12522 if test -n "$RANLIB"; then
12523 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12524 postinstall_cmds='$RANLIB $lib'
12528 aix[4-9]*)
12529 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12530 test "$enable_shared" = yes && enable_static=no
12533 esac
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12535 $as_echo "$enable_shared" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12538 $as_echo_n "checking whether to build static libraries... " >&6; }
12539 # Make sure either enable_shared or enable_static is yes.
12540 test "$enable_shared" = yes || enable_static=yes
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12542 $as_echo "$enable_static" >&6; }
12548 ac_ext=c
12549 ac_cpp='$CPP $CPPFLAGS'
12550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12554 CC="$lt_save_CC"
12556 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12557 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12558 (test "X$CXX" != "Xg++"))) ; then
12559 ac_ext=cpp
12560 ac_cpp='$CXXCPP $CPPFLAGS'
12561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12565 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12566 if test -z "$CXXCPP"; then
12567 if ${ac_cv_prog_CXXCPP+:} false; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 # Double quotes because CXXCPP needs to be expanded
12571 for CXXCPP in "$CXX -E" "/lib/cpp"
12573 ac_preproc_ok=false
12574 for ac_cxx_preproc_warn_flag in '' yes
12576 # Use a header file that comes with gcc, so configuring glibc
12577 # with a fresh cross-compiler works.
12578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12579 # <limits.h> exists even on freestanding compilers.
12580 # On the NeXT, cc -E runs the code through the compiler's parser,
12581 # not just through cpp. "Syntax error" is here to catch this case.
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584 #ifdef __STDC__
12585 # include <limits.h>
12586 #else
12587 # include <assert.h>
12588 #endif
12589 Syntax error
12590 _ACEOF
12591 if ac_fn_cxx_try_cpp "$LINENO"; then :
12593 else
12594 # Broken: fails on valid input.
12595 continue
12597 rm -f conftest.err conftest.i conftest.$ac_ext
12599 # OK, works on sane cases. Now check whether nonexistent headers
12600 # can be detected and how.
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603 #include <ac_nonexistent.h>
12604 _ACEOF
12605 if ac_fn_cxx_try_cpp "$LINENO"; then :
12606 # Broken: success on invalid input.
12607 continue
12608 else
12609 # Passes both tests.
12610 ac_preproc_ok=:
12611 break
12613 rm -f conftest.err conftest.i conftest.$ac_ext
12615 done
12616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12617 rm -f conftest.i conftest.err conftest.$ac_ext
12618 if $ac_preproc_ok; then :
12619 break
12622 done
12623 ac_cv_prog_CXXCPP=$CXXCPP
12626 CXXCPP=$ac_cv_prog_CXXCPP
12627 else
12628 ac_cv_prog_CXXCPP=$CXXCPP
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12631 $as_echo "$CXXCPP" >&6; }
12632 ac_preproc_ok=false
12633 for ac_cxx_preproc_warn_flag in '' yes
12635 # Use a header file that comes with gcc, so configuring glibc
12636 # with a fresh cross-compiler works.
12637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12638 # <limits.h> exists even on freestanding compilers.
12639 # On the NeXT, cc -E runs the code through the compiler's parser,
12640 # not just through cpp. "Syntax error" is here to catch this case.
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #ifdef __STDC__
12644 # include <limits.h>
12645 #else
12646 # include <assert.h>
12647 #endif
12648 Syntax error
12649 _ACEOF
12650 if ac_fn_cxx_try_cpp "$LINENO"; then :
12652 else
12653 # Broken: fails on valid input.
12654 continue
12656 rm -f conftest.err conftest.i conftest.$ac_ext
12658 # OK, works on sane cases. Now check whether nonexistent headers
12659 # can be detected and how.
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 #include <ac_nonexistent.h>
12663 _ACEOF
12664 if ac_fn_cxx_try_cpp "$LINENO"; then :
12665 # Broken: success on invalid input.
12666 continue
12667 else
12668 # Passes both tests.
12669 ac_preproc_ok=:
12670 break
12672 rm -f conftest.err conftest.i conftest.$ac_ext
12674 done
12675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12676 rm -f conftest.i conftest.err conftest.$ac_ext
12677 if $ac_preproc_ok; then :
12679 else
12680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12682 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12683 See \`config.log' for more details" "$LINENO" 5; }
12686 ac_ext=c
12687 ac_cpp='$CPP $CPPFLAGS'
12688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12692 else
12693 _lt_caught_CXX_error=yes
12696 ac_ext=cpp
12697 ac_cpp='$CXXCPP $CPPFLAGS'
12698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12702 archive_cmds_need_lc_CXX=no
12703 allow_undefined_flag_CXX=
12704 always_export_symbols_CXX=no
12705 archive_expsym_cmds_CXX=
12706 compiler_needs_object_CXX=no
12707 export_dynamic_flag_spec_CXX=
12708 hardcode_direct_CXX=no
12709 hardcode_direct_absolute_CXX=no
12710 hardcode_libdir_flag_spec_CXX=
12711 hardcode_libdir_flag_spec_ld_CXX=
12712 hardcode_libdir_separator_CXX=
12713 hardcode_minus_L_CXX=no
12714 hardcode_shlibpath_var_CXX=unsupported
12715 hardcode_automatic_CXX=no
12716 inherit_rpath_CXX=no
12717 module_cmds_CXX=
12718 module_expsym_cmds_CXX=
12719 link_all_deplibs_CXX=unknown
12720 old_archive_cmds_CXX=$old_archive_cmds
12721 reload_flag_CXX=$reload_flag
12722 reload_cmds_CXX=$reload_cmds
12723 no_undefined_flag_CXX=
12724 whole_archive_flag_spec_CXX=
12725 enable_shared_with_static_runtimes_CXX=no
12727 # Source file extension for C++ test sources.
12728 ac_ext=cpp
12730 # Object file extension for compiled C++ test sources.
12731 objext=o
12732 objext_CXX=$objext
12734 # No sense in running all these tests if we already determined that
12735 # the CXX compiler isn't working. Some variables (like enable_shared)
12736 # are currently assumed to apply to all compilers on this platform,
12737 # and will be corrupted by setting them based on a non-working compiler.
12738 if test "$_lt_caught_CXX_error" != yes; then
12739 # Code to be used in simple compile tests
12740 lt_simple_compile_test_code="int some_variable = 0;"
12742 # Code to be used in simple link tests
12743 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12752 # If no C compiler was specified, use CC.
12753 LTCC=${LTCC-"$CC"}
12755 # If no C compiler flags were specified, use CFLAGS.
12756 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12758 # Allow CC to be a program name with arguments.
12759 compiler=$CC
12762 # save warnings/boilerplate of simple test code
12763 ac_outfile=conftest.$ac_objext
12764 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12765 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12766 _lt_compiler_boilerplate=`cat conftest.err`
12767 $RM conftest*
12769 ac_outfile=conftest.$ac_objext
12770 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12771 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12772 _lt_linker_boilerplate=`cat conftest.err`
12773 $RM -r conftest*
12776 # Allow CC to be a program name with arguments.
12777 lt_save_CC=$CC
12778 lt_save_LD=$LD
12779 lt_save_GCC=$GCC
12780 GCC=$GXX
12781 lt_save_with_gnu_ld=$with_gnu_ld
12782 lt_save_path_LD=$lt_cv_path_LD
12783 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12784 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12785 else
12786 $as_unset lt_cv_prog_gnu_ld
12788 if test -n "${lt_cv_path_LDCXX+set}"; then
12789 lt_cv_path_LD=$lt_cv_path_LDCXX
12790 else
12791 $as_unset lt_cv_path_LD
12793 test -z "${LDCXX+set}" || LD=$LDCXX
12794 CC=${CXX-"c++"}
12795 compiler=$CC
12796 compiler_CXX=$CC
12797 for cc_temp in $compiler""; do
12798 case $cc_temp in
12799 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12800 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12801 \-*) ;;
12802 *) break;;
12803 esac
12804 done
12805 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12808 if test -n "$compiler"; then
12809 # We don't want -fno-exception when compiling C++ code, so set the
12810 # no_builtin_flag separately
12811 if test "$GXX" = yes; then
12812 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12813 else
12814 lt_prog_compiler_no_builtin_flag_CXX=
12817 if test "$GXX" = yes; then
12818 # Set up default GNU C++ configuration
12822 # Check whether --with-gnu-ld was given.
12823 if test "${with_gnu_ld+set}" = set; then :
12824 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12825 else
12826 with_gnu_ld=no
12829 ac_prog=ld
12830 if test "$GCC" = yes; then
12831 # Check if gcc -print-prog-name=ld gives a path.
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12833 $as_echo_n "checking for ld used by $CC... " >&6; }
12834 case $host in
12835 *-*-mingw*)
12836 # gcc leaves a trailing carriage return which upsets mingw
12837 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12839 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12840 esac
12841 case $ac_prog in
12842 # Accept absolute paths.
12843 [\\/]* | ?:[\\/]*)
12844 re_direlt='/[^/][^/]*/\.\./'
12845 # Canonicalize the pathname of ld
12846 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12847 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12848 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12849 done
12850 test -z "$LD" && LD="$ac_prog"
12853 # If it fails, then pretend we aren't using GCC.
12854 ac_prog=ld
12857 # If it is relative, then search for the first ld in PATH.
12858 with_gnu_ld=unknown
12860 esac
12861 elif test "$with_gnu_ld" = yes; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12863 $as_echo_n "checking for GNU ld... " >&6; }
12864 else
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12866 $as_echo_n "checking for non-GNU ld... " >&6; }
12868 if ${lt_cv_path_LD+:} false; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 if test -z "$LD"; then
12872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12873 for ac_dir in $PATH; do
12874 IFS="$lt_save_ifs"
12875 test -z "$ac_dir" && ac_dir=.
12876 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12877 lt_cv_path_LD="$ac_dir/$ac_prog"
12878 # Check to see if the program is GNU ld. I'd rather use --version,
12879 # but apparently some variants of GNU ld only accept -v.
12880 # Break only if it was the GNU/non-GNU ld that we prefer.
12881 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12882 *GNU* | *'with BFD'*)
12883 test "$with_gnu_ld" != no && break
12886 test "$with_gnu_ld" != yes && break
12888 esac
12890 done
12891 IFS="$lt_save_ifs"
12892 else
12893 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12897 LD="$lt_cv_path_LD"
12898 if test -n "$LD"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12900 $as_echo "$LD" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12905 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12907 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12908 if ${lt_cv_prog_gnu_ld+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12912 case `$LD -v 2>&1 </dev/null` in
12913 *GNU* | *'with BFD'*)
12914 lt_cv_prog_gnu_ld=yes
12917 lt_cv_prog_gnu_ld=no
12919 esac
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12922 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12923 with_gnu_ld=$lt_cv_prog_gnu_ld
12931 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12932 # archiving commands below assume that GNU ld is being used.
12933 if test "$with_gnu_ld" = yes; then
12934 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935 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'
12937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12940 # If archive_cmds runs LD, not CC, wlarc should be empty
12941 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12942 # investigate it a little bit more. (MM)
12943 wlarc='${wl}'
12945 # ancient GNU ld didn't support --whole-archive et. al.
12946 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12947 $GREP 'no-whole-archive' > /dev/null; then
12948 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12949 else
12950 whole_archive_flag_spec_CXX=
12952 else
12953 with_gnu_ld=no
12954 wlarc=
12956 # A generic and very simple default shared library creation
12957 # command for GNU C++ for the case where it uses the native
12958 # linker, instead of GNU ld. If possible, this setting should
12959 # overridden to take advantage of the native linker features on
12960 # the platform it is being used on.
12961 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12964 # Commands to make compiler produce verbose output that lists
12965 # what "hidden" libraries, object files and flags are used when
12966 # linking a shared library.
12967 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12969 else
12970 GXX=no
12971 with_gnu_ld=no
12972 wlarc=
12975 # PORTME: fill in a description of your system's C++ link characteristics
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12977 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12978 ld_shlibs_CXX=yes
12979 case $host_os in
12980 aix3*)
12981 # FIXME: insert proper C++ library support
12982 ld_shlibs_CXX=no
12984 aix[4-9]*)
12985 if test "$host_cpu" = ia64; then
12986 # On IA64, the linker does run time linking by default, so we don't
12987 # have to do anything special.
12988 aix_use_runtimelinking=no
12989 exp_sym_flag='-Bexport'
12990 no_entry_flag=""
12991 else
12992 aix_use_runtimelinking=no
12994 # Test if we are trying to use run time linking or normal
12995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12996 # need to do runtime linking.
12997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12998 for ld_flag in $LDFLAGS; do
12999 case $ld_flag in
13000 *-brtl*)
13001 aix_use_runtimelinking=yes
13002 break
13004 esac
13005 done
13007 esac
13009 exp_sym_flag='-bexport'
13010 no_entry_flag='-bnoentry'
13013 # When large executables or shared objects are built, AIX ld can
13014 # have problems creating the table of contents. If linking a library
13015 # or program results in "error TOC overflow" add -mminimal-toc to
13016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13019 archive_cmds_CXX=''
13020 hardcode_direct_CXX=yes
13021 hardcode_direct_absolute_CXX=yes
13022 hardcode_libdir_separator_CXX=':'
13023 link_all_deplibs_CXX=yes
13024 file_list_spec_CXX='${wl}-f,'
13026 if test "$GXX" = yes; then
13027 case $host_os in aix4.[012]|aix4.[012].*)
13028 # We only want to do this on AIX 4.2 and lower, the check
13029 # below for broken collect2 doesn't work under 4.3+
13030 collect2name=`${CC} -print-prog-name=collect2`
13031 if test -f "$collect2name" &&
13032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13033 then
13034 # We have reworked collect2
13036 else
13037 # We have old collect2
13038 hardcode_direct_CXX=unsupported
13039 # It fails to find uninstalled libraries when the uninstalled
13040 # path is not listed in the libpath. Setting hardcode_minus_L
13041 # to unsupported forces relinking
13042 hardcode_minus_L_CXX=yes
13043 hardcode_libdir_flag_spec_CXX='-L$libdir'
13044 hardcode_libdir_separator_CXX=
13046 esac
13047 shared_flag='-shared'
13048 if test "$aix_use_runtimelinking" = yes; then
13049 shared_flag="$shared_flag "'${wl}-G'
13051 else
13052 # not using gcc
13053 if test "$host_cpu" = ia64; then
13054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13055 # chokes on -Wl,-G. The following line is correct:
13056 shared_flag='-G'
13057 else
13058 if test "$aix_use_runtimelinking" = yes; then
13059 shared_flag='${wl}-G'
13060 else
13061 shared_flag='${wl}-bM:SRE'
13066 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13067 # It seems that -bexpall does not export symbols beginning with
13068 # underscore (_), so it is better to generate a list of symbols to
13069 # export.
13070 always_export_symbols_CXX=yes
13071 if test "$aix_use_runtimelinking" = yes; then
13072 # Warning - without using the other runtime loading flags (-brtl),
13073 # -berok will link without error, but may produce a broken library.
13074 allow_undefined_flag_CXX='-berok'
13075 # Determine the default libpath from the value encoded in an empty
13076 # executable.
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13081 main ()
13085 return 0;
13087 _ACEOF
13088 if ac_fn_cxx_try_link "$LINENO"; then :
13090 lt_aix_libpath_sed='
13091 /Import File Strings/,/^$/ {
13092 /^0/ {
13093 s/^0 *\(.*\)$/\1/
13097 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13098 # Check for a 64-bit object if we didn't find anything.
13099 if test -z "$aix_libpath"; then
13100 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13103 rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13107 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13109 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"
13110 else
13111 if test "$host_cpu" = ia64; then
13112 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13113 allow_undefined_flag_CXX="-z nodefs"
13114 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"
13115 else
13116 # Determine the default libpath from the value encoded in an
13117 # empty executable.
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13122 main ()
13126 return 0;
13128 _ACEOF
13129 if ac_fn_cxx_try_link "$LINENO"; then :
13131 lt_aix_libpath_sed='
13132 /Import File Strings/,/^$/ {
13133 /^0/ {
13134 s/^0 *\(.*\)$/\1/
13138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13139 # Check for a 64-bit object if we didn't find anything.
13140 if test -z "$aix_libpath"; then
13141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13148 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13149 # Warning - without using the other run time loading flags,
13150 # -berok will link without error, but may produce a broken library.
13151 no_undefined_flag_CXX=' ${wl}-bernotok'
13152 allow_undefined_flag_CXX=' ${wl}-berok'
13153 if test "$with_gnu_ld" = yes; then
13154 # We only use this code for GNU lds that support --whole-archive.
13155 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13156 else
13157 # Exported symbols can be pulled into shared objects from archives
13158 whole_archive_flag_spec_CXX='$convenience'
13160 archive_cmds_need_lc_CXX=yes
13161 # This is similar to how AIX traditionally builds its shared
13162 # libraries.
13163 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'
13168 beos*)
13169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13170 allow_undefined_flag_CXX=unsupported
13171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13172 # support --undefined. This deserves some investigation. FIXME
13173 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174 else
13175 ld_shlibs_CXX=no
13179 chorus*)
13180 case $cc_basename in
13182 # FIXME: insert proper C++ library support
13183 ld_shlibs_CXX=no
13185 esac
13188 cygwin* | mingw* | pw32* | cegcc*)
13189 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13190 # as there is no search path for DLLs.
13191 hardcode_libdir_flag_spec_CXX='-L$libdir'
13192 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13193 allow_undefined_flag_CXX=unsupported
13194 always_export_symbols_CXX=no
13195 enable_shared_with_static_runtimes_CXX=yes
13197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13198 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'
13199 # If the export-symbols file already is a .def file (1st line
13200 # is EXPORTS), use it as is; otherwise, prepend...
13201 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13202 cp $export_symbols $output_objdir/$soname.def;
13203 else
13204 echo EXPORTS > $output_objdir/$soname.def;
13205 cat $export_symbols >> $output_objdir/$soname.def;
13207 $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'
13208 else
13209 ld_shlibs_CXX=no
13212 darwin* | rhapsody*)
13215 archive_cmds_need_lc_CXX=no
13216 hardcode_direct_CXX=no
13217 hardcode_automatic_CXX=yes
13218 hardcode_shlibpath_var_CXX=unsupported
13219 if test "$lt_cv_ld_force_load" = "yes"; then
13220 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\"`'
13221 else
13222 whole_archive_flag_spec_CXX=''
13224 link_all_deplibs_CXX=yes
13225 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13226 case $cc_basename in
13227 ifort*) _lt_dar_can_shared=yes ;;
13228 *) _lt_dar_can_shared=$GCC ;;
13229 esac
13230 if test "$_lt_dar_can_shared" = "yes"; then
13231 output_verbose_link_cmd=func_echo_all
13232 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13233 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13234 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13235 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}"
13236 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13237 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13238 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}"
13241 else
13242 ld_shlibs_CXX=no
13247 dgux*)
13248 case $cc_basename in
13249 ec++*)
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13253 ghcx*)
13254 # Green Hills C++ Compiler
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13259 # FIXME: insert proper C++ library support
13260 ld_shlibs_CXX=no
13262 esac
13265 freebsd2.*)
13266 # C++ shared libraries reported to be fairly broken before
13267 # switch to ELF
13268 ld_shlibs_CXX=no
13271 freebsd-elf*)
13272 archive_cmds_need_lc_CXX=no
13275 freebsd* | dragonfly*)
13276 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13277 # conventions
13278 ld_shlibs_CXX=yes
13281 gnu*)
13284 haiku*)
13285 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286 link_all_deplibs_CXX=yes
13289 hpux9*)
13290 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13291 hardcode_libdir_separator_CXX=:
13292 export_dynamic_flag_spec_CXX='${wl}-E'
13293 hardcode_direct_CXX=yes
13294 hardcode_minus_L_CXX=yes # Not in the search PATH,
13295 # but as the default
13296 # location of the library.
13298 case $cc_basename in
13299 CC*)
13300 # FIXME: insert proper C++ library support
13301 ld_shlibs_CXX=no
13303 aCC*)
13304 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'
13305 # Commands to make compiler produce verbose output that lists
13306 # what "hidden" libraries, object files and flags are used when
13307 # linking a shared library.
13309 # There doesn't appear to be a way to prevent this compiler from
13310 # explicitly linking system object files so we need to strip them
13311 # from the output so that they don't get included in the library
13312 # dependencies.
13313 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"'
13316 if test "$GXX" = yes; then
13317 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'
13318 else
13319 # FIXME: insert proper C++ library support
13320 ld_shlibs_CXX=no
13323 esac
13326 hpux10*|hpux11*)
13327 if test $with_gnu_ld = no; then
13328 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13329 hardcode_libdir_separator_CXX=:
13331 case $host_cpu in
13332 hppa*64*|ia64*)
13335 export_dynamic_flag_spec_CXX='${wl}-E'
13337 esac
13339 case $host_cpu in
13340 hppa*64*|ia64*)
13341 hardcode_direct_CXX=no
13342 hardcode_shlibpath_var_CXX=no
13345 hardcode_direct_CXX=yes
13346 hardcode_direct_absolute_CXX=yes
13347 hardcode_minus_L_CXX=yes # Not in the search PATH,
13348 # but as the default
13349 # location of the library.
13351 esac
13353 case $cc_basename in
13354 CC*)
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13358 aCC*)
13359 case $host_cpu in
13360 hppa*64*)
13361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13363 ia64*)
13364 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369 esac
13370 # Commands to make compiler produce verbose output that lists
13371 # what "hidden" libraries, object files and flags are used when
13372 # linking a shared library.
13374 # There doesn't appear to be a way to prevent this compiler from
13375 # explicitly linking system object files so we need to strip them
13376 # from the output so that they don't get included in the library
13377 # dependencies.
13378 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"'
13381 if test "$GXX" = yes; then
13382 if test $with_gnu_ld = no; then
13383 case $host_cpu in
13384 hppa*64*)
13385 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13387 ia64*)
13388 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13391 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'
13393 esac
13395 else
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13400 esac
13403 interix[3-9]*)
13404 hardcode_direct_CXX=no
13405 hardcode_shlibpath_var_CXX=no
13406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13407 export_dynamic_flag_spec_CXX='${wl}-E'
13408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13409 # Instead, shared libraries are loaded at an image base (0x10000000 by
13410 # default) and relocated if they conflict, which is a slow very memory
13411 # consuming and fragmenting process. To avoid this, we pick a random,
13412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13414 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'
13415 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'
13417 irix5* | irix6*)
13418 case $cc_basename in
13419 CC*)
13420 # SGI C++
13421 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'
13423 # Archives containing C++ object files must be created using
13424 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13425 # necessary to make sure instantiated templates are included
13426 # in the archive.
13427 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13430 if test "$GXX" = yes; then
13431 if test "$with_gnu_ld" = no; then
13432 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'
13433 else
13434 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'
13437 link_all_deplibs_CXX=yes
13439 esac
13440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13441 hardcode_libdir_separator_CXX=:
13442 inherit_rpath_CXX=yes
13445 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13446 case $cc_basename in
13447 KCC*)
13448 # Kuck and Associates, Inc. (KAI) C++ Compiler
13450 # KCC will only create a shared library if the output file
13451 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13452 # to its proper name (with version) after linking.
13453 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'
13454 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'
13455 # Commands to make compiler produce verbose output that lists
13456 # what "hidden" libraries, object files and flags are used when
13457 # linking a shared library.
13459 # There doesn't appear to be a way to prevent this compiler from
13460 # explicitly linking system object files so we need to strip them
13461 # from the output so that they don't get included in the library
13462 # dependencies.
13463 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"'
13465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13468 # Archives containing C++ object files must be created using
13469 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13470 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13472 icpc* | ecpc* )
13473 # Intel C++
13474 with_gnu_ld=yes
13475 # version 8.0 and above of icpc choke on multiply defined symbols
13476 # if we add $predep_objects and $postdep_objects, however 7.1 and
13477 # earlier do not add the objects themselves.
13478 case `$CC -V 2>&1` in
13479 *"Version 7."*)
13480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13481 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'
13483 *) # Version 8.0 or newer
13484 tmp_idyn=
13485 case $host_cpu in
13486 ia64*) tmp_idyn=' -i_dynamic';;
13487 esac
13488 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13489 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'
13491 esac
13492 archive_cmds_need_lc_CXX=no
13493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13495 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13497 pgCC* | pgcpp*)
13498 # Portland Group C++ compiler
13499 case `$CC -V` in
13500 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13501 prelink_cmds_CXX='tpldir=Template.dir~
13502 rm -rf $tpldir~
13503 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13504 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13505 old_archive_cmds_CXX='tpldir=Template.dir~
13506 rm -rf $tpldir~
13507 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13508 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13509 $RANLIB $oldlib'
13510 archive_cmds_CXX='tpldir=Template.dir~
13511 rm -rf $tpldir~
13512 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13513 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13514 archive_expsym_cmds_CXX='tpldir=Template.dir~
13515 rm -rf $tpldir~
13516 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13517 $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'
13519 *) # Version 6 and above use weak symbols
13520 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13521 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'
13523 esac
13525 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13526 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13527 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'
13529 cxx*)
13530 # Compaq C++
13531 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532 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'
13534 runpath_var=LD_RUN_PATH
13535 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13536 hardcode_libdir_separator_CXX=:
13538 # Commands to make compiler produce verbose output that lists
13539 # what "hidden" libraries, object files and flags are used when
13540 # linking a shared library.
13542 # There doesn't appear to be a way to prevent this compiler from
13543 # explicitly linking system object files so we need to strip them
13544 # from the output so that they don't get included in the library
13545 # dependencies.
13546 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'
13548 xl* | mpixl* | bgxl*)
13549 # IBM XL 8.0 on PPC, with GNU ld
13550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13552 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13553 if test "x$supports_anon_versioning" = xyes; then
13554 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13556 echo "local: *; };" >> $output_objdir/$libname.ver~
13557 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13561 case `$CC -V 2>&1 | sed 5q` in
13562 *Sun\ C*)
13563 # Sun C++ 5.9
13564 no_undefined_flag_CXX=' -zdefs'
13565 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13566 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'
13567 hardcode_libdir_flag_spec_CXX='-R$libdir'
13568 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'
13569 compiler_needs_object_CXX=yes
13571 # Not sure whether something based on
13572 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13573 # would be better.
13574 output_verbose_link_cmd='func_echo_all'
13576 # Archives containing C++ object files must be created using
13577 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13578 # necessary to make sure instantiated templates are included
13579 # in the archive.
13580 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13582 esac
13584 esac
13587 lynxos*)
13588 # FIXME: insert proper C++ library support
13589 ld_shlibs_CXX=no
13592 m88k*)
13593 # FIXME: insert proper C++ library support
13594 ld_shlibs_CXX=no
13597 mvs*)
13598 case $cc_basename in
13599 cxx*)
13600 # FIXME: insert proper C++ library support
13601 ld_shlibs_CXX=no
13604 # FIXME: insert proper C++ library support
13605 ld_shlibs_CXX=no
13607 esac
13610 netbsd*)
13611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13612 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13613 wlarc=
13614 hardcode_libdir_flag_spec_CXX='-R$libdir'
13615 hardcode_direct_CXX=yes
13616 hardcode_shlibpath_var_CXX=no
13618 # Workaround some broken pre-1.5 toolchains
13619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13622 *nto* | *qnx*)
13623 ld_shlibs_CXX=yes
13626 openbsd2*)
13627 # C++ shared libraries are fairly broken
13628 ld_shlibs_CXX=no
13631 openbsd*)
13632 if test -f /usr/libexec/ld.so; then
13633 hardcode_direct_CXX=yes
13634 hardcode_shlibpath_var_CXX=no
13635 hardcode_direct_absolute_CXX=yes
13636 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13639 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13640 export_dynamic_flag_spec_CXX='${wl}-E'
13641 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13643 output_verbose_link_cmd=func_echo_all
13644 else
13645 ld_shlibs_CXX=no
13649 osf3* | osf4* | osf5*)
13650 case $cc_basename in
13651 KCC*)
13652 # Kuck and Associates, Inc. (KAI) C++ Compiler
13654 # KCC will only create a shared library if the output file
13655 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13656 # to its proper name (with version) after linking.
13657 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'
13659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13660 hardcode_libdir_separator_CXX=:
13662 # Archives containing C++ object files must be created using
13663 # the KAI C++ compiler.
13664 case $host in
13665 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13666 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13667 esac
13669 RCC*)
13670 # Rational C++ 2.4.1
13671 # FIXME: insert proper C++ library support
13672 ld_shlibs_CXX=no
13674 cxx*)
13675 case $host in
13676 osf3*)
13677 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13678 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'
13679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13682 allow_undefined_flag_CXX=' -expect_unresolved \*'
13683 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'
13684 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13685 echo "-hidden">> $lib.exp~
13686 $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~
13687 $RM $lib.exp'
13688 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13690 esac
13692 hardcode_libdir_separator_CXX=:
13694 # Commands to make compiler produce verbose output that lists
13695 # what "hidden" libraries, object files and flags are used when
13696 # linking a shared library.
13698 # There doesn't appear to be a way to prevent this compiler from
13699 # explicitly linking system object files so we need to strip them
13700 # from the output so that they don't get included in the library
13701 # dependencies.
13702 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"'
13705 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13706 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13707 case $host in
13708 osf3*)
13709 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'
13712 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'
13714 esac
13716 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13717 hardcode_libdir_separator_CXX=:
13719 # Commands to make compiler produce verbose output that lists
13720 # what "hidden" libraries, object files and flags are used when
13721 # linking a shared library.
13722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13724 else
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13729 esac
13732 psos*)
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13737 sunos4*)
13738 case $cc_basename in
13739 CC*)
13740 # Sun C++ 4.x
13741 # FIXME: insert proper C++ library support
13742 ld_shlibs_CXX=no
13744 lcc*)
13745 # Lucid
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13750 # FIXME: insert proper C++ library support
13751 ld_shlibs_CXX=no
13753 esac
13756 solaris*)
13757 case $cc_basename in
13758 CC*)
13759 # Sun C++ 4.2, 5.x and Centerline C++
13760 archive_cmds_need_lc_CXX=yes
13761 no_undefined_flag_CXX=' -zdefs'
13762 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13763 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13764 $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'
13766 hardcode_libdir_flag_spec_CXX='-R$libdir'
13767 hardcode_shlibpath_var_CXX=no
13768 case $host_os in
13769 solaris2.[0-5] | solaris2.[0-5].*) ;;
13771 # The compiler driver will combine and reorder linker options,
13772 # but understands `-z linker_flag'.
13773 # Supported since Solaris 2.6 (maybe 2.5.1?)
13774 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13776 esac
13777 link_all_deplibs_CXX=yes
13779 output_verbose_link_cmd='func_echo_all'
13781 # Archives containing C++ object files must be created using
13782 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13783 # necessary to make sure instantiated templates are included
13784 # in the archive.
13785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13787 gcx*)
13788 # Green Hills C++ Compiler
13789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13791 # The C++ compiler must be used to create the archive.
13792 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13795 # GNU C++ compiler with Solaris linker
13796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13797 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13798 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13799 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13800 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13801 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13803 # Commands to make compiler produce verbose output that lists
13804 # what "hidden" libraries, object files and flags are used when
13805 # linking a shared library.
13806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13807 else
13808 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13809 # platform.
13810 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13811 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13812 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13814 # Commands to make compiler produce verbose output that lists
13815 # what "hidden" libraries, object files and flags are used when
13816 # linking a shared library.
13817 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13820 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13821 case $host_os in
13822 solaris2.[0-5] | solaris2.[0-5].*) ;;
13824 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13826 esac
13829 esac
13832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13833 no_undefined_flag_CXX='${wl}-z,text'
13834 archive_cmds_need_lc_CXX=no
13835 hardcode_shlibpath_var_CXX=no
13836 runpath_var='LD_RUN_PATH'
13838 case $cc_basename in
13839 CC*)
13840 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13844 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13847 esac
13850 sysv5* | sco3.2v5* | sco5v6*)
13851 # Note: We can NOT use -z defs as we might desire, because we do not
13852 # link with -lc, and that would cause any symbols used from libc to
13853 # always be unresolved, which means just about no library would
13854 # ever link correctly. If we're not using GNU ld we use -z text
13855 # though, which does catch some bad symbols but isn't as heavy-handed
13856 # as -z defs.
13857 no_undefined_flag_CXX='${wl}-z,text'
13858 allow_undefined_flag_CXX='${wl}-z,nodefs'
13859 archive_cmds_need_lc_CXX=no
13860 hardcode_shlibpath_var_CXX=no
13861 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13862 hardcode_libdir_separator_CXX=':'
13863 link_all_deplibs_CXX=yes
13864 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13865 runpath_var='LD_RUN_PATH'
13867 case $cc_basename in
13868 CC*)
13869 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13872 '"$old_archive_cmds_CXX"
13873 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13874 '"$reload_cmds_CXX"
13877 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13878 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13880 esac
13883 tandem*)
13884 case $cc_basename in
13885 NCC*)
13886 # NonStop-UX NCC 3.20
13887 # FIXME: insert proper C++ library support
13888 ld_shlibs_CXX=no
13891 # FIXME: insert proper C++ library support
13892 ld_shlibs_CXX=no
13894 esac
13897 vxworks*)
13898 # FIXME: insert proper C++ library support
13899 ld_shlibs_CXX=no
13903 # FIXME: insert proper C++ library support
13904 ld_shlibs_CXX=no
13906 esac
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13909 $as_echo "$ld_shlibs_CXX" >&6; }
13910 test "$ld_shlibs_CXX" = no && can_build_shared=no
13912 GCC_CXX="$GXX"
13913 LD_CXX="$LD"
13915 ## CAVEAT EMPTOR:
13916 ## There is no encapsulation within the following macros, do not change
13917 ## the running order or otherwise move them around unless you know exactly
13918 ## what you are doing...
13919 # Dependencies to place before and after the object being linked:
13920 predep_objects_CXX=
13921 postdep_objects_CXX=
13922 predeps_CXX=
13923 postdeps_CXX=
13924 compiler_lib_search_path_CXX=
13926 cat > conftest.$ac_ext <<_LT_EOF
13927 class Foo
13929 public:
13930 Foo (void) { a = 0; }
13931 private:
13932 int a;
13934 _LT_EOF
13936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13937 (eval $ac_compile) 2>&5
13938 ac_status=$?
13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940 test $ac_status = 0; }; then
13941 # Parse the compiler output and extract the necessary
13942 # objects, libraries and library flags.
13944 # Sentinel used to keep track of whether or not we are before
13945 # the conftest object file.
13946 pre_test_object_deps_done=no
13948 for p in `eval "$output_verbose_link_cmd"`; do
13949 case $p in
13951 -L* | -R* | -l*)
13952 # Some compilers place space between "-{L,R}" and the path.
13953 # Remove the space.
13954 if test $p = "-L" ||
13955 test $p = "-R"; then
13956 prev=$p
13957 continue
13958 else
13959 prev=
13962 if test "$pre_test_object_deps_done" = no; then
13963 case $p in
13964 -L* | -R*)
13965 # Internal compiler library paths should come after those
13966 # provided the user. The postdeps already come after the
13967 # user supplied libs so there is no need to process them.
13968 if test -z "$compiler_lib_search_path_CXX"; then
13969 compiler_lib_search_path_CXX="${prev}${p}"
13970 else
13971 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13974 # The "-l" case would never come before the object being
13975 # linked, so don't bother handling this case.
13976 esac
13977 else
13978 if test -z "$postdeps_CXX"; then
13979 postdeps_CXX="${prev}${p}"
13980 else
13981 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13986 *.$objext)
13987 # This assumes that the test object file only shows up
13988 # once in the compiler output.
13989 if test "$p" = "conftest.$objext"; then
13990 pre_test_object_deps_done=yes
13991 continue
13994 if test "$pre_test_object_deps_done" = no; then
13995 if test -z "$predep_objects_CXX"; then
13996 predep_objects_CXX="$p"
13997 else
13998 predep_objects_CXX="$predep_objects_CXX $p"
14000 else
14001 if test -z "$postdep_objects_CXX"; then
14002 postdep_objects_CXX="$p"
14003 else
14004 postdep_objects_CXX="$postdep_objects_CXX $p"
14009 *) ;; # Ignore the rest.
14011 esac
14012 done
14014 # Clean up.
14015 rm -f a.out a.exe
14016 else
14017 echo "libtool.m4: error: problem compiling CXX test program"
14020 $RM -f confest.$objext
14022 # PORTME: override above test on systems where it is broken
14023 case $host_os in
14024 interix[3-9]*)
14025 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14026 # hack all around it, let's just trust "g++" to DTRT.
14027 predep_objects_CXX=
14028 postdep_objects_CXX=
14029 postdeps_CXX=
14032 linux*)
14033 case `$CC -V 2>&1 | sed 5q` in
14034 *Sun\ C*)
14035 # Sun C++ 5.9
14037 # The more standards-conforming stlport4 library is
14038 # incompatible with the Cstd library. Avoid specifying
14039 # it if it's in CXXFLAGS. Ignore libCrun as
14040 # -library=stlport4 depends on it.
14041 case " $CXX $CXXFLAGS " in
14042 *" -library=stlport4 "*)
14043 solaris_use_stlport4=yes
14045 esac
14047 if test "$solaris_use_stlport4" != yes; then
14048 postdeps_CXX='-library=Cstd -library=Crun'
14051 esac
14054 solaris*)
14055 case $cc_basename in
14056 CC*)
14057 # The more standards-conforming stlport4 library is
14058 # incompatible with the Cstd library. Avoid specifying
14059 # it if it's in CXXFLAGS. Ignore libCrun as
14060 # -library=stlport4 depends on it.
14061 case " $CXX $CXXFLAGS " in
14062 *" -library=stlport4 "*)
14063 solaris_use_stlport4=yes
14065 esac
14067 # Adding this requires a known-good setup of shared libraries for
14068 # Sun compiler versions before 5.6, else PIC objects from an old
14069 # archive will be linked into the output, leading to subtle bugs.
14070 if test "$solaris_use_stlport4" != yes; then
14071 postdeps_CXX='-library=Cstd -library=Crun'
14074 esac
14076 esac
14079 case " $postdeps_CXX " in
14080 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14081 esac
14082 compiler_lib_search_dirs_CXX=
14083 if test -n "${compiler_lib_search_path_CXX}"; then
14084 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14117 lt_prog_compiler_wl_CXX=
14118 lt_prog_compiler_pic_CXX=
14119 lt_prog_compiler_static_CXX=
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14122 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14124 # C++ specific cases for pic, static, wl, etc.
14125 if test "$GXX" = yes; then
14126 lt_prog_compiler_wl_CXX='-Wl,'
14127 lt_prog_compiler_static_CXX='-static'
14129 case $host_os in
14130 aix*)
14131 # All AIX code is PIC.
14132 if test "$host_cpu" = ia64; then
14133 # AIX 5 now supports IA64 processor
14134 lt_prog_compiler_static_CXX='-Bstatic'
14136 lt_prog_compiler_pic_CXX='-fPIC'
14139 amigaos*)
14140 case $host_cpu in
14141 powerpc)
14142 # see comment about AmigaOS4 .so support
14143 lt_prog_compiler_pic_CXX='-fPIC'
14145 m68k)
14146 # FIXME: we need at least 68020 code to build shared libraries, but
14147 # adding the `-m68020' flag to GCC prevents building anything better,
14148 # like `-m68040'.
14149 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14151 esac
14154 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14155 # PIC is the default for these OSes.
14157 mingw* | cygwin* | os2* | pw32* | cegcc*)
14158 # This hack is so that the source file can tell whether it is being
14159 # built for inclusion in a dll (and should export symbols for example).
14160 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14161 # (--disable-auto-import) libraries
14162 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14164 darwin* | rhapsody*)
14165 # PIC is the default on this platform
14166 # Common symbols not allowed in MH_DYLIB files
14167 lt_prog_compiler_pic_CXX='-fno-common'
14169 *djgpp*)
14170 # DJGPP does not support shared libraries at all
14171 lt_prog_compiler_pic_CXX=
14173 haiku*)
14174 # PIC is the default for Haiku.
14175 # The "-static" flag exists, but is broken.
14176 lt_prog_compiler_static_CXX=
14178 interix[3-9]*)
14179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14180 # Instead, we relocate shared libraries at runtime.
14182 sysv4*MP*)
14183 if test -d /usr/nec; then
14184 lt_prog_compiler_pic_CXX=-Kconform_pic
14187 hpux*)
14188 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14189 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14190 # sets the default TLS model and affects inlining.
14191 case $host_cpu in
14192 hppa*64*)
14195 lt_prog_compiler_pic_CXX='-fPIC'
14197 esac
14199 *qnx* | *nto*)
14200 # QNX uses GNU C++, but need to define -shared option too, otherwise
14201 # it will coredump.
14202 lt_prog_compiler_pic_CXX='-fPIC -shared'
14205 lt_prog_compiler_pic_CXX='-fPIC'
14207 esac
14208 else
14209 case $host_os in
14210 aix[4-9]*)
14211 # All AIX code is PIC.
14212 if test "$host_cpu" = ia64; then
14213 # AIX 5 now supports IA64 processor
14214 lt_prog_compiler_static_CXX='-Bstatic'
14215 else
14216 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14219 chorus*)
14220 case $cc_basename in
14221 cxch68*)
14222 # Green Hills C++ Compiler
14223 # _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"
14225 esac
14227 dgux*)
14228 case $cc_basename in
14229 ec++*)
14230 lt_prog_compiler_pic_CXX='-KPIC'
14232 ghcx*)
14233 # Green Hills C++ Compiler
14234 lt_prog_compiler_pic_CXX='-pic'
14238 esac
14240 freebsd* | dragonfly*)
14241 # FreeBSD uses GNU C++
14243 hpux9* | hpux10* | hpux11*)
14244 case $cc_basename in
14245 CC*)
14246 lt_prog_compiler_wl_CXX='-Wl,'
14247 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14248 if test "$host_cpu" != ia64; then
14249 lt_prog_compiler_pic_CXX='+Z'
14252 aCC*)
14253 lt_prog_compiler_wl_CXX='-Wl,'
14254 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14255 case $host_cpu in
14256 hppa*64*|ia64*)
14257 # +Z the default
14260 lt_prog_compiler_pic_CXX='+Z'
14262 esac
14266 esac
14268 interix*)
14269 # This is c89, which is MS Visual C++ (no shared libs)
14270 # Anyone wants to do a port?
14272 irix5* | irix6* | nonstopux*)
14273 case $cc_basename in
14274 CC*)
14275 lt_prog_compiler_wl_CXX='-Wl,'
14276 lt_prog_compiler_static_CXX='-non_shared'
14277 # CC pic flag -KPIC is the default.
14281 esac
14283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14284 case $cc_basename in
14285 KCC*)
14286 # KAI C++ Compiler
14287 lt_prog_compiler_wl_CXX='--backend -Wl,'
14288 lt_prog_compiler_pic_CXX='-fPIC'
14290 ecpc* )
14291 # old Intel C++ for x86_64 which still supported -KPIC.
14292 lt_prog_compiler_wl_CXX='-Wl,'
14293 lt_prog_compiler_pic_CXX='-KPIC'
14294 lt_prog_compiler_static_CXX='-static'
14296 icpc* )
14297 # Intel C++, used to be incompatible with GCC.
14298 # ICC 10 doesn't accept -KPIC any more.
14299 lt_prog_compiler_wl_CXX='-Wl,'
14300 lt_prog_compiler_pic_CXX='-fPIC'
14301 lt_prog_compiler_static_CXX='-static'
14303 pgCC* | pgcpp*)
14304 # Portland Group C++ compiler
14305 lt_prog_compiler_wl_CXX='-Wl,'
14306 lt_prog_compiler_pic_CXX='-fpic'
14307 lt_prog_compiler_static_CXX='-Bstatic'
14309 cxx*)
14310 # Compaq C++
14311 # Make sure the PIC flag is empty. It appears that all Alpha
14312 # Linux and Compaq Tru64 Unix objects are PIC.
14313 lt_prog_compiler_pic_CXX=
14314 lt_prog_compiler_static_CXX='-non_shared'
14316 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14317 # IBM XL 8.0, 9.0 on PPC and BlueGene
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 lt_prog_compiler_pic_CXX='-qpic'
14320 lt_prog_compiler_static_CXX='-qstaticlink'
14323 case `$CC -V 2>&1 | sed 5q` in
14324 *Sun\ C*)
14325 # Sun C++ 5.9
14326 lt_prog_compiler_pic_CXX='-KPIC'
14327 lt_prog_compiler_static_CXX='-Bstatic'
14328 lt_prog_compiler_wl_CXX='-Qoption ld '
14330 esac
14332 esac
14334 lynxos*)
14336 m88k*)
14338 mvs*)
14339 case $cc_basename in
14340 cxx*)
14341 lt_prog_compiler_pic_CXX='-W c,exportall'
14345 esac
14347 netbsd*)
14349 *qnx* | *nto*)
14350 # QNX uses GNU C++, but need to define -shared option too, otherwise
14351 # it will coredump.
14352 lt_prog_compiler_pic_CXX='-fPIC -shared'
14354 osf3* | osf4* | osf5*)
14355 case $cc_basename in
14356 KCC*)
14357 lt_prog_compiler_wl_CXX='--backend -Wl,'
14359 RCC*)
14360 # Rational C++ 2.4.1
14361 lt_prog_compiler_pic_CXX='-pic'
14363 cxx*)
14364 # Digital/Compaq C++
14365 lt_prog_compiler_wl_CXX='-Wl,'
14366 # Make sure the PIC flag is empty. It appears that all Alpha
14367 # Linux and Compaq Tru64 Unix objects are PIC.
14368 lt_prog_compiler_pic_CXX=
14369 lt_prog_compiler_static_CXX='-non_shared'
14373 esac
14375 psos*)
14377 solaris*)
14378 case $cc_basename in
14379 CC*)
14380 # Sun C++ 4.2, 5.x and Centerline C++
14381 lt_prog_compiler_pic_CXX='-KPIC'
14382 lt_prog_compiler_static_CXX='-Bstatic'
14383 lt_prog_compiler_wl_CXX='-Qoption ld '
14385 gcx*)
14386 # Green Hills C++ Compiler
14387 lt_prog_compiler_pic_CXX='-PIC'
14391 esac
14393 sunos4*)
14394 case $cc_basename in
14395 CC*)
14396 # Sun C++ 4.x
14397 lt_prog_compiler_pic_CXX='-pic'
14398 lt_prog_compiler_static_CXX='-Bstatic'
14400 lcc*)
14401 # Lucid
14402 lt_prog_compiler_pic_CXX='-pic'
14406 esac
14408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14409 case $cc_basename in
14410 CC*)
14411 lt_prog_compiler_wl_CXX='-Wl,'
14412 lt_prog_compiler_pic_CXX='-KPIC'
14413 lt_prog_compiler_static_CXX='-Bstatic'
14415 esac
14417 tandem*)
14418 case $cc_basename in
14419 NCC*)
14420 # NonStop-UX NCC 3.20
14421 lt_prog_compiler_pic_CXX='-KPIC'
14425 esac
14427 vxworks*)
14430 lt_prog_compiler_can_build_shared_CXX=no
14432 esac
14435 case $host_os in
14436 # For platforms which do not support PIC, -DPIC is meaningless:
14437 *djgpp*)
14438 lt_prog_compiler_pic_CXX=
14441 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14443 esac
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14445 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14450 # Check to make sure the PIC flag actually works.
14452 if test -n "$lt_prog_compiler_pic_CXX"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14454 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14455 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458 lt_cv_prog_compiler_pic_works_CXX=no
14459 ac_outfile=conftest.$ac_objext
14460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14461 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14462 # Insert the option either (1) after the last *FLAGS variable, or
14463 # (2) before a word containing "conftest.", or (3) at the end.
14464 # Note that $ac_compile itself does not contain backslashes and begins
14465 # with a dollar sign (not a hyphen), so the echo should work correctly.
14466 # The option is referenced via a variable to avoid confusing sed.
14467 lt_compile=`echo "$ac_compile" | $SED \
14468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14470 -e 's:$: $lt_compiler_flag:'`
14471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14472 (eval "$lt_compile" 2>conftest.err)
14473 ac_status=$?
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 if (exit $ac_status) && test -s "$ac_outfile"; then
14477 # The compiler can only warn and ignore the option if not recognized
14478 # So say no if there are warnings other than the usual output.
14479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14482 lt_cv_prog_compiler_pic_works_CXX=yes
14485 $RM conftest*
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14489 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14491 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14492 case $lt_prog_compiler_pic_CXX in
14493 "" | " "*) ;;
14494 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14495 esac
14496 else
14497 lt_prog_compiler_pic_CXX=
14498 lt_prog_compiler_can_build_shared_CXX=no
14506 # Check to make sure the static flag actually works.
14508 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14510 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14511 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14512 $as_echo_n "(cached) " >&6
14513 else
14514 lt_cv_prog_compiler_static_works_CXX=no
14515 save_LDFLAGS="$LDFLAGS"
14516 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14517 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14519 # The linker can only warn and ignore the option if not recognized
14520 # So say no if there are warnings
14521 if test -s conftest.err; then
14522 # Append any errors to the config.log.
14523 cat conftest.err 1>&5
14524 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14526 if diff conftest.exp conftest.er2 >/dev/null; then
14527 lt_cv_prog_compiler_static_works_CXX=yes
14529 else
14530 lt_cv_prog_compiler_static_works_CXX=yes
14533 $RM -r conftest*
14534 LDFLAGS="$save_LDFLAGS"
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14538 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14540 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14542 else
14543 lt_prog_compiler_static_CXX=
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14550 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14551 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 lt_cv_prog_compiler_c_o_CXX=no
14555 $RM -r conftest 2>/dev/null
14556 mkdir conftest
14557 cd conftest
14558 mkdir out
14559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14561 lt_compiler_flag="-o out/conftest2.$ac_objext"
14562 # Insert the option either (1) after the last *FLAGS variable, or
14563 # (2) before a word containing "conftest.", or (3) at the end.
14564 # Note that $ac_compile itself does not contain backslashes and begins
14565 # with a dollar sign (not a hyphen), so the echo should work correctly.
14566 lt_compile=`echo "$ac_compile" | $SED \
14567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14569 -e 's:$: $lt_compiler_flag:'`
14570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14571 (eval "$lt_compile" 2>out/conftest.err)
14572 ac_status=$?
14573 cat out/conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14576 then
14577 # The compiler can only warn and ignore the option if not recognized
14578 # So say no if there are warnings
14579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14582 lt_cv_prog_compiler_c_o_CXX=yes
14585 chmod u+w . 2>&5
14586 $RM conftest*
14587 # SGI C++ compiler will create directory out/ii_files/ for
14588 # template instantiation
14589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14590 $RM out/* && rmdir out
14591 cd ..
14592 $RM -r conftest
14593 $RM conftest*
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14597 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14603 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 lt_cv_prog_compiler_c_o_CXX=no
14607 $RM -r conftest 2>/dev/null
14608 mkdir conftest
14609 cd conftest
14610 mkdir out
14611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14613 lt_compiler_flag="-o out/conftest2.$ac_objext"
14614 # Insert the option either (1) after the last *FLAGS variable, or
14615 # (2) before a word containing "conftest.", or (3) at the end.
14616 # Note that $ac_compile itself does not contain backslashes and begins
14617 # with a dollar sign (not a hyphen), so the echo should work correctly.
14618 lt_compile=`echo "$ac_compile" | $SED \
14619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14621 -e 's:$: $lt_compiler_flag:'`
14622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14623 (eval "$lt_compile" 2>out/conftest.err)
14624 ac_status=$?
14625 cat out/conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14628 then
14629 # The compiler can only warn and ignore the option if not recognized
14630 # So say no if there are warnings
14631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14634 lt_cv_prog_compiler_c_o_CXX=yes
14637 chmod u+w . 2>&5
14638 $RM conftest*
14639 # SGI C++ compiler will create directory out/ii_files/ for
14640 # template instantiation
14641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14642 $RM out/* && rmdir out
14643 cd ..
14644 $RM -r conftest
14645 $RM conftest*
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14649 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14654 hard_links="nottested"
14655 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14656 # do not overwrite the value of need_locks provided by the user
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14658 $as_echo_n "checking if we can lock with hard links... " >&6; }
14659 hard_links=yes
14660 $RM conftest*
14661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14662 touch conftest.a
14663 ln conftest.a conftest.b 2>&5 || hard_links=no
14664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14666 $as_echo "$hard_links" >&6; }
14667 if test "$hard_links" = no; then
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14669 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14670 need_locks=warn
14672 else
14673 need_locks=no
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14679 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14681 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14682 case $host_os in
14683 aix[4-9]*)
14684 # If we're using GNU nm, then we don't want the "-C" option.
14685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14686 # Also, AIX nm treats weak defined symbols like other global defined
14687 # symbols, whereas GNU nm marks them as "W".
14688 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14689 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'
14690 else
14691 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'
14694 pw32*)
14695 export_symbols_cmds_CXX="$ltdll_cmds"
14697 cygwin* | mingw* | cegcc*)
14698 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'
14701 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14703 esac
14704 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14707 $as_echo "$ld_shlibs_CXX" >&6; }
14708 test "$ld_shlibs_CXX" = no && can_build_shared=no
14710 with_gnu_ld_CXX=$with_gnu_ld
14718 # Do we need to explicitly link libc?
14720 case "x$archive_cmds_need_lc_CXX" in
14721 x|xyes)
14722 # Assume -lc should be added
14723 archive_cmds_need_lc_CXX=yes
14725 if test "$enable_shared" = yes && test "$GCC" = yes; then
14726 case $archive_cmds_CXX in
14727 *'~'*)
14728 # FIXME: we may have to deal with multi-command sequences.
14730 '$CC '*)
14731 # Test whether the compiler implicitly links with -lc since on some
14732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14733 # to ld, don't add -lc before -lgcc.
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14735 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14736 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 $RM conftest*
14740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14743 (eval $ac_compile) 2>&5
14744 ac_status=$?
14745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14746 test $ac_status = 0; } 2>conftest.err; then
14747 soname=conftest
14748 lib=conftest
14749 libobjs=conftest.$ac_objext
14750 deplibs=
14751 wl=$lt_prog_compiler_wl_CXX
14752 pic_flag=$lt_prog_compiler_pic_CXX
14753 compiler_flags=-v
14754 linker_flags=-v
14755 verstring=
14756 output_objdir=.
14757 libname=conftest
14758 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14759 allow_undefined_flag_CXX=
14760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14761 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14762 ac_status=$?
14763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14764 test $ac_status = 0; }
14765 then
14766 lt_cv_archive_cmds_need_lc_CXX=no
14767 else
14768 lt_cv_archive_cmds_need_lc_CXX=yes
14770 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14771 else
14772 cat conftest.err 1>&5
14774 $RM conftest*
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14778 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14779 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14781 esac
14784 esac
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14850 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14852 library_names_spec=
14853 libname_spec='lib$name'
14854 soname_spec=
14855 shrext_cmds=".so"
14856 postinstall_cmds=
14857 postuninstall_cmds=
14858 finish_cmds=
14859 finish_eval=
14860 shlibpath_var=
14861 shlibpath_overrides_runpath=unknown
14862 version_type=none
14863 dynamic_linker="$host_os ld.so"
14864 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14865 need_lib_prefix=unknown
14866 hardcode_into_libs=no
14868 # when you set need_version to no, make sure it does not cause -set_version
14869 # flags to be left without arguments
14870 need_version=unknown
14872 case $host_os in
14873 aix3*)
14874 version_type=linux
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14876 shlibpath_var=LIBPATH
14878 # AIX 3 has no versioning support, so we append a major version to the name.
14879 soname_spec='${libname}${release}${shared_ext}$major'
14882 aix[4-9]*)
14883 version_type=linux
14884 need_lib_prefix=no
14885 need_version=no
14886 hardcode_into_libs=yes
14887 if test "$host_cpu" = ia64; then
14888 # AIX 5 supports IA64
14889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 else
14892 # With GCC up to 2.95.x, collect2 would create an import file
14893 # for dependence libraries. The import file would start with
14894 # the line `#! .'. This would cause the generated library to
14895 # depend on `.', always an invalid library. This was fixed in
14896 # development snapshots of GCC prior to 3.0.
14897 case $host_os in
14898 aix4 | aix4.[01] | aix4.[01].*)
14899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14900 echo ' yes '
14901 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14903 else
14904 can_build_shared=no
14907 esac
14908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14909 # soname into executable. Probably we can add versioning support to
14910 # collect2, so additional links can be useful in future.
14911 if test "$aix_use_runtimelinking" = yes; then
14912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14913 # instead of lib<name>.a to let people know that these are not
14914 # typical AIX shared libraries.
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 else
14917 # We preserve .a as extension for shared libraries through AIX4.2
14918 # and later when we are not doing run time linking.
14919 library_names_spec='${libname}${release}.a $libname.a'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14922 shlibpath_var=LIBPATH
14926 amigaos*)
14927 case $host_cpu in
14928 powerpc)
14929 # Since July 2007 AmigaOS4 officially supports .so libraries.
14930 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 m68k)
14934 library_names_spec='$libname.ixlibrary $libname.a'
14935 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14936 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'
14938 esac
14941 beos*)
14942 library_names_spec='${libname}${shared_ext}'
14943 dynamic_linker="$host_os ld.so"
14944 shlibpath_var=LIBRARY_PATH
14947 bsdi[45]*)
14948 version_type=linux
14949 need_version=no
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14956 # the default ld.so.conf also contains /usr/contrib/lib and
14957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14958 # libtool to hard-code these into programs
14961 cygwin* | mingw* | pw32* | cegcc*)
14962 version_type=windows
14963 shrext_cmds=".dll"
14964 need_version=no
14965 need_lib_prefix=no
14967 case $GCC,$host_os in
14968 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14969 library_names_spec='$libname.dll.a'
14970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14971 postinstall_cmds='base_file=`basename \${file}`~
14972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14973 dldir=$destdir/`dirname \$dlpath`~
14974 test -d \$dldir || mkdir -p \$dldir~
14975 $install_prog $dir/$dlname \$dldir/$dlname~
14976 chmod a+x \$dldir/$dlname~
14977 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14978 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14981 dlpath=$dir/\$dldll~
14982 $RM \$dlpath'
14983 shlibpath_overrides_runpath=yes
14985 case $host_os in
14986 cygwin*)
14987 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14988 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14991 mingw* | cegcc*)
14992 # MinGW DLLs use traditional 'lib' prefix
14993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14995 pw32*)
14996 # pw32 DLLs use 'pw' prefix rather than 'lib'
14997 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14999 esac
15003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15005 esac
15006 dynamic_linker='Win32 ld.exe'
15007 # FIXME: first we should search . and the directory the executable is in
15008 shlibpath_var=PATH
15011 darwin* | rhapsody*)
15012 dynamic_linker="$host_os dyld"
15013 version_type=darwin
15014 need_lib_prefix=no
15015 need_version=no
15016 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15017 soname_spec='${libname}${release}${major}$shared_ext'
15018 shlibpath_overrides_runpath=yes
15019 shlibpath_var=DYLD_LIBRARY_PATH
15020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15025 dgux*)
15026 version_type=linux
15027 need_lib_prefix=no
15028 need_version=no
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 shlibpath_var=LD_LIBRARY_PATH
15034 freebsd* | dragonfly*)
15035 # DragonFly does not have aout. When/if they implement a new
15036 # versioning mechanism, adjust this.
15037 if test -x /usr/bin/objformat; then
15038 objformat=`/usr/bin/objformat`
15039 else
15040 case $host_os in
15041 freebsd[23].*) objformat=aout ;;
15042 *) objformat=elf ;;
15043 esac
15045 version_type=freebsd-$objformat
15046 case $version_type in
15047 freebsd-elf*)
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15049 need_version=no
15050 need_lib_prefix=no
15052 freebsd-*)
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15054 need_version=yes
15056 esac
15057 shlibpath_var=LD_LIBRARY_PATH
15058 case $host_os in
15059 freebsd2.*)
15060 shlibpath_overrides_runpath=yes
15062 freebsd3.[01]* | freebsdelf3.[01]*)
15063 shlibpath_overrides_runpath=yes
15064 hardcode_into_libs=yes
15066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15068 shlibpath_overrides_runpath=no
15069 hardcode_into_libs=yes
15071 *) # from 4.6 on, and DragonFly
15072 shlibpath_overrides_runpath=yes
15073 hardcode_into_libs=yes
15075 esac
15078 gnu*)
15079 version_type=linux
15080 need_lib_prefix=no
15081 need_version=no
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 hardcode_into_libs=yes
15088 haiku*)
15089 version_type=linux
15090 need_lib_prefix=no
15091 need_version=no
15092 dynamic_linker="$host_os runtime_loader"
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LIBRARY_PATH
15096 shlibpath_overrides_runpath=yes
15097 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15098 hardcode_into_libs=yes
15101 hpux9* | hpux10* | hpux11*)
15102 # Give a soname corresponding to the major version so that dld.sl refuses to
15103 # link against other versions.
15104 version_type=sunos
15105 need_lib_prefix=no
15106 need_version=no
15107 case $host_cpu in
15108 ia64*)
15109 shrext_cmds='.so'
15110 hardcode_into_libs=yes
15111 dynamic_linker="$host_os dld.so"
15112 shlibpath_var=LD_LIBRARY_PATH
15113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 if test "X$HPUX_IA64_MODE" = X32; then
15117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15118 else
15119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15123 hppa*64*)
15124 shrext_cmds='.sl'
15125 hardcode_into_libs=yes
15126 dynamic_linker="$host_os dld.sl"
15127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15135 shrext_cmds='.sl'
15136 dynamic_linker="$host_os dld.sl"
15137 shlibpath_var=SHLIB_PATH
15138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 soname_spec='${libname}${release}${shared_ext}$major'
15142 esac
15143 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15144 postinstall_cmds='chmod 555 $lib'
15145 # or fails outright, so override atomically:
15146 install_override_mode=555
15149 interix[3-9]*)
15150 version_type=linux
15151 need_lib_prefix=no
15152 need_version=no
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=no
15158 hardcode_into_libs=yes
15161 irix5* | irix6* | nonstopux*)
15162 case $host_os in
15163 nonstopux*) version_type=nonstopux ;;
15165 if test "$lt_cv_prog_gnu_ld" = yes; then
15166 version_type=linux
15167 else
15168 version_type=irix
15169 fi ;;
15170 esac
15171 need_lib_prefix=no
15172 need_version=no
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15175 case $host_os in
15176 irix5* | nonstopux*)
15177 libsuff= shlibsuff=
15180 case $LD in # libtool.m4 will add one of these switches to LD
15181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15182 libsuff= shlibsuff= libmagic=32-bit;;
15183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15184 libsuff=32 shlibsuff=N32 libmagic=N32;;
15185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15187 *) libsuff= shlibsuff= libmagic=never-match;;
15188 esac
15190 esac
15191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15192 shlibpath_overrides_runpath=no
15193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15195 hardcode_into_libs=yes
15198 # No shared lib support for Linux oldld, aout, or coff.
15199 linux*oldld* | linux*aout* | linux*coff*)
15200 dynamic_linker=no
15203 # This must be Linux ELF.
15204 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=no
15214 # Some binutils ld are patched to set DT_RUNPATH
15215 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 lt_cv_shlibpath_overrides_runpath=no
15219 save_LDFLAGS=$LDFLAGS
15220 save_libdir=$libdir
15221 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15222 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15227 main ()
15231 return 0;
15233 _ACEOF
15234 if ac_fn_cxx_try_link "$LINENO"; then :
15235 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15236 lt_cv_shlibpath_overrides_runpath=yes
15239 rm -f core conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
15241 LDFLAGS=$save_LDFLAGS
15242 libdir=$save_libdir
15246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15248 # This implies no fast_install, which is unacceptable.
15249 # Some rework will be needed to allow for fast_install
15250 # before this can be enabled.
15251 hardcode_into_libs=yes
15253 # Append ld.so.conf contents to the search path
15254 if test -f /etc/ld.so.conf; then
15255 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' ' '`
15256 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15259 # We used to test for /lib/ld.so.1 and disable shared libraries on
15260 # powerpc, because MkLinux only supported shared libraries with the
15261 # GNU dynamic linker. Since this was broken with cross compilers,
15262 # most powerpc-linux boxes support dynamic linking these days and
15263 # people can always --disable-shared, the test was removed, and we
15264 # assume the GNU/Linux dynamic linker is in use.
15265 dynamic_linker='GNU/Linux ld.so'
15268 netbsd*)
15269 version_type=sunos
15270 need_lib_prefix=no
15271 need_version=no
15272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15275 dynamic_linker='NetBSD (a.out) ld.so'
15276 else
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 dynamic_linker='NetBSD ld.elf_so'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 shlibpath_overrides_runpath=yes
15283 hardcode_into_libs=yes
15286 newsos6)
15287 version_type=linux
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=yes
15293 *nto* | *qnx*)
15294 version_type=qnx
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=no
15301 hardcode_into_libs=yes
15302 dynamic_linker='ldqnx.so'
15305 openbsd*)
15306 version_type=sunos
15307 sys_lib_dlsearch_path_spec="/usr/lib"
15308 need_lib_prefix=no
15309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15310 case $host_os in
15311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15312 *) need_version=no ;;
15313 esac
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15318 case $host_os in
15319 openbsd2.[89] | openbsd2.[89].*)
15320 shlibpath_overrides_runpath=no
15323 shlibpath_overrides_runpath=yes
15325 esac
15326 else
15327 shlibpath_overrides_runpath=yes
15331 os2*)
15332 libname_spec='$name'
15333 shrext_cmds=".dll"
15334 need_lib_prefix=no
15335 library_names_spec='$libname${shared_ext} $libname.a'
15336 dynamic_linker='OS/2 ld.exe'
15337 shlibpath_var=LIBPATH
15340 osf3* | osf4* | osf5*)
15341 version_type=osf
15342 need_lib_prefix=no
15343 need_version=no
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15351 rdos*)
15352 dynamic_linker=no
15355 solaris*)
15356 version_type=linux
15357 need_lib_prefix=no
15358 need_version=no
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 shlibpath_overrides_runpath=yes
15363 hardcode_into_libs=yes
15364 # ldd complains unless libraries are executable
15365 postinstall_cmds='chmod +x $lib'
15368 sunos4*)
15369 version_type=sunos
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=yes
15374 if test "$with_gnu_ld" = yes; then
15375 need_lib_prefix=no
15377 need_version=yes
15380 sysv4 | sysv4.3*)
15381 version_type=linux
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 shlibpath_var=LD_LIBRARY_PATH
15385 case $host_vendor in
15386 sni)
15387 shlibpath_overrides_runpath=no
15388 need_lib_prefix=no
15389 runpath_var=LD_RUN_PATH
15391 siemens)
15392 need_lib_prefix=no
15394 motorola)
15395 need_lib_prefix=no
15396 need_version=no
15397 shlibpath_overrides_runpath=no
15398 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15400 esac
15403 sysv4*MP*)
15404 if test -d /usr/nec ;then
15405 version_type=linux
15406 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15407 soname_spec='$libname${shared_ext}.$major'
15408 shlibpath_var=LD_LIBRARY_PATH
15412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15413 version_type=freebsd-elf
15414 need_lib_prefix=no
15415 need_version=no
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes
15420 hardcode_into_libs=yes
15421 if test "$with_gnu_ld" = yes; then
15422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15423 else
15424 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15425 case $host_os in
15426 sco3.2v5*)
15427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15429 esac
15431 sys_lib_dlsearch_path_spec='/usr/lib'
15434 tpf*)
15435 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15436 version_type=linux
15437 need_lib_prefix=no
15438 need_version=no
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=no
15442 hardcode_into_libs=yes
15445 uts4*)
15446 version_type=linux
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 shlibpath_var=LD_LIBRARY_PATH
15453 dynamic_linker=no
15455 esac
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15457 $as_echo "$dynamic_linker" >&6; }
15458 test "$dynamic_linker" = no && can_build_shared=no
15460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15461 if test "$GCC" = yes; then
15462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15465 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15466 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15469 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15511 hardcode_action_CXX=
15512 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15513 test -n "$runpath_var_CXX" ||
15514 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15516 # We can hardcode non-existent directories.
15517 if test "$hardcode_direct_CXX" != no &&
15518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15519 # have to relink, otherwise we might link with an installed library
15520 # when we should be linking with a yet-to-be-installed one
15521 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15522 test "$hardcode_minus_L_CXX" != no; then
15523 # Linking always hardcodes the temporary library directory.
15524 hardcode_action_CXX=relink
15525 else
15526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15527 hardcode_action_CXX=immediate
15529 else
15530 # We cannot hardcode anything, or else we can only hardcode existing
15531 # directories.
15532 hardcode_action_CXX=unsupported
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15535 $as_echo "$hardcode_action_CXX" >&6; }
15537 if test "$hardcode_action_CXX" = relink ||
15538 test "$inherit_rpath_CXX" = yes; then
15539 # Fast installation is not supported
15540 enable_fast_install=no
15541 elif test "$shlibpath_overrides_runpath" = yes ||
15542 test "$enable_shared" = no; then
15543 # Fast installation is not necessary
15544 enable_fast_install=needless
15553 fi # test -n "$compiler"
15555 CC=$lt_save_CC
15556 LDCXX=$LD
15557 LD=$lt_save_LD
15558 GCC=$lt_save_GCC
15559 with_gnu_ld=$lt_save_with_gnu_ld
15560 lt_cv_path_LDCXX=$lt_cv_path_LD
15561 lt_cv_path_LD=$lt_save_path_LD
15562 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15563 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15564 fi # test "$_lt_caught_CXX_error" != yes
15566 ac_ext=c
15567 ac_cpp='$CPP $CPPFLAGS'
15568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15584 ac_config_commands="$ac_config_commands libtool"
15589 # Only expand once:
15595 case $host in
15596 *-cygwin* | *-mingw*)
15597 # 'host' will be top-level target in the case of a target lib,
15598 # we must compare to with_cross_host to decide if this is a native
15599 # or cross-compiler and select where to install dlls appropriately.
15600 if test -n "$with_cross_host" &&
15601 test x"$with_cross_host" != x"no"; then
15602 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15603 else
15604 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15608 lt_host_flags=
15610 esac
15617 # For libtool versioning info, format is CURRENT:REVISION:AGE
15618 libtool_VERSION=1:0:0
15621 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15623 # Add CET specific flags if Intel CET is enabled.
15624 # Check whether --enable-cet was given.
15625 if test "${enable_cet+set}" = set; then :
15626 enableval=$enable_cet;
15627 case "$enableval" in
15628 yes|no|auto) ;;
15629 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
15630 esac
15632 else
15633 enable_cet=no
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15638 $as_echo_n "checking for CET support... " >&6; }
15640 case "$host" in
15641 i[34567]86-*-linux* | x86_64-*-linux*)
15642 case "$enable_cet" in
15643 auto)
15644 # Check if target supports multi-byte NOPs
15645 # and if assembler supports CET insn.
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15650 main ()
15653 #if !defined(__SSE2__)
15654 #error target does not support multi-byte NOPs
15655 #else
15656 asm ("setssbsy");
15657 #endif
15660 return 0;
15662 _ACEOF
15663 if ac_fn_c_try_compile "$LINENO"; then :
15664 enable_cet=yes
15665 else
15666 enable_cet=no
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 yes)
15671 # Check if assembler supports CET.
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15676 main ()
15678 asm ("setssbsy");
15680 return 0;
15682 _ACEOF
15683 if ac_fn_c_try_compile "$LINENO"; then :
15685 else
15686 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
15688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15690 esac
15693 enable_cet=no
15695 esac
15696 if test x$enable_cet = xyes; then
15697 CET_FLAGS="-fcf-protection -mshstk"
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15699 $as_echo "yes" >&6; }
15700 else
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15702 $as_echo "no" >&6; }
15705 XCFLAGS="$XCFLAGS $CET_FLAGS"
15709 if test "${multilib}" = "yes"; then
15710 multilib_arg="--enable-multilib"
15711 else
15712 multilib_arg=
15715 ac_config_files="$ac_config_files Makefile"
15718 if test "x$VTV_SUPPORTED" = "xyes"; then
15719 ac_config_files="$ac_config_files testsuite/Makefile"
15723 case "$target_os" in
15724 cygwin*|mingw32*)
15725 vtv_cygmin="yes"
15728 vtv_cygmin="no"
15730 esac
15732 if test $vtv_cygmin = yes; then
15733 VTV_CYGMIN_TRUE=
15734 VTV_CYGMIN_FALSE='#'
15735 else
15736 VTV_CYGMIN_TRUE='#'
15737 VTV_CYGMIN_FALSE=
15741 for ac_func in _obstack_begin
15742 do :
15743 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15744 if test "x$ac_cv_func__obstack_begin" = xyes; then :
15745 cat >>confdefs.h <<_ACEOF
15746 #define HAVE__OBSTACK_BEGIN 1
15747 _ACEOF
15750 done
15752 if test $ac_cv_func__obstack_begin = no; then
15753 VTV_NO_OBSTACK_TRUE=
15754 VTV_NO_OBSTACK_FALSE='#'
15755 else
15756 VTV_NO_OBSTACK_TRUE='#'
15757 VTV_NO_OBSTACK_FALSE=
15761 # Determine what GCC version number to use in filesystem paths.
15763 get_gcc_base_ver="cat"
15765 # Check whether --with-gcc-major-version-only was given.
15766 if test "${with_gcc_major_version_only+set}" = set; then :
15767 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15768 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
15776 cat >confcache <<\_ACEOF
15777 # This file is a shell script that caches the results of configure
15778 # tests run on this system so they can be shared between configure
15779 # scripts and configure runs, see configure's option --config-cache.
15780 # It is not useful on other systems. If it contains results you don't
15781 # want to keep, you may remove or edit it.
15783 # config.status only pays attention to the cache file if you give it
15784 # the --recheck option to rerun configure.
15786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15788 # following values.
15790 _ACEOF
15792 # The following way of writing the cache mishandles newlines in values,
15793 # but we know of no workaround that is simple, portable, and efficient.
15794 # So, we kill variables containing newlines.
15795 # Ultrix sh set writes to stderr and can't be redirected directly,
15796 # and sets the high bit in the cache file unless we assign to the vars.
15798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15799 eval ac_val=\$$ac_var
15800 case $ac_val in #(
15801 *${as_nl}*)
15802 case $ac_var in #(
15803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15805 esac
15806 case $ac_var in #(
15807 _ | IFS | as_nl) ;; #(
15808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15809 *) { eval $ac_var=; unset $ac_var;} ;;
15810 esac ;;
15811 esac
15812 done
15814 (set) 2>&1 |
15815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15816 *${as_nl}ac_space=\ *)
15817 # `set' does not quote correctly, so add quotes: double-quote
15818 # substitution turns \\\\ into \\, and sed turns \\ into \.
15819 sed -n \
15820 "s/'/'\\\\''/g;
15821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15822 ;; #(
15824 # `set' quotes correctly as required by POSIX, so do not add quotes.
15825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15827 esac |
15828 sort
15830 sed '
15831 /^ac_cv_env_/b end
15832 t clear
15833 :clear
15834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15835 t end
15836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15837 :end' >>confcache
15838 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15839 if test -w "$cache_file"; then
15840 if test "x$cache_file" != "x/dev/null"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15842 $as_echo "$as_me: updating cache $cache_file" >&6;}
15843 if test ! -f "$cache_file" || test -h "$cache_file"; then
15844 cat confcache >"$cache_file"
15845 else
15846 case $cache_file in #(
15847 */* | ?:*)
15848 mv -f confcache "$cache_file"$$ &&
15849 mv -f "$cache_file"$$ "$cache_file" ;; #(
15851 mv -f confcache "$cache_file" ;;
15852 esac
15855 else
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15857 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15860 rm -f confcache
15862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15863 # Let make expand exec_prefix.
15864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15866 # Transform confdefs.h into DEFS.
15867 # Protect against shell expansion while executing Makefile rules.
15868 # Protect against Makefile macro expansion.
15870 # If the first sed substitution is executed (which looks for macros that
15871 # take arguments), then branch to the quote section. Otherwise,
15872 # look for a macro that doesn't take arguments.
15873 ac_script='
15874 :mline
15875 /\\$/{
15877 s,\\\n,,
15878 b mline
15880 t clear
15881 :clear
15882 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15883 t quote
15884 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15885 t quote
15886 b any
15887 :quote
15888 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15889 s/\[/\\&/g
15890 s/\]/\\&/g
15891 s/\$/$$/g
15893 :any
15896 s/^\n//
15897 s/\n/ /g
15901 DEFS=`sed -n "$ac_script" confdefs.h`
15904 ac_libobjs=
15905 ac_ltlibobjs=
15907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15908 # 1. Remove the extension, and $U if already installed.
15909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15910 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15912 # will be set to the directory where LIBOBJS objects are built.
15913 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15914 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15915 done
15916 LIBOBJS=$ac_libobjs
15918 LTLIBOBJS=$ac_ltlibobjs
15921 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15922 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15926 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15927 if test -n "$am_sleep_pid"; then
15928 # Hide warnings about reused PIDs.
15929 wait $am_sleep_pid 2>/dev/null
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15932 $as_echo "done" >&6; }
15933 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15934 as_fn_error $? "conditional \"AMDEP\" was never defined.
15935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15937 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15938 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15941 if test -n "$EXEEXT"; then
15942 am__EXEEXT_TRUE=
15943 am__EXEEXT_FALSE='#'
15944 else
15945 am__EXEEXT_TRUE='#'
15946 am__EXEEXT_FALSE=
15949 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15950 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15953 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15954 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15957 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15958 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
15959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15961 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
15962 as_fn_error $? "conditional \"VTV_NO_OBSTACK\" was never defined.
15963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15966 : "${CONFIG_STATUS=./config.status}"
15967 ac_write_fail=0
15968 ac_clean_files_save=$ac_clean_files
15969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15971 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15972 as_write_fail=0
15973 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15974 #! $SHELL
15975 # Generated by $as_me.
15976 # Run this file to recreate the current configuration.
15977 # Compiler output produced by configure, useful for debugging
15978 # configure, is in config.log if it exists.
15980 debug=false
15981 ac_cs_recheck=false
15982 ac_cs_silent=false
15984 SHELL=\${CONFIG_SHELL-$SHELL}
15985 export SHELL
15986 _ASEOF
15987 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15988 ## -------------------- ##
15989 ## M4sh Initialization. ##
15990 ## -------------------- ##
15992 # Be more Bourne compatible
15993 DUALCASE=1; export DUALCASE # for MKS sh
15994 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15995 emulate sh
15996 NULLCMD=:
15997 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15998 # is contrary to our usage. Disable this feature.
15999 alias -g '${1+"$@"}'='"$@"'
16000 setopt NO_GLOB_SUBST
16001 else
16002 case `(set -o) 2>/dev/null` in #(
16003 *posix*) :
16004 set -o posix ;; #(
16005 *) :
16007 esac
16011 as_nl='
16013 export as_nl
16014 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16015 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16016 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16017 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16018 # Prefer a ksh shell builtin over an external printf program on Solaris,
16019 # but without wasting forks for bash or zsh.
16020 if test -z "$BASH_VERSION$ZSH_VERSION" \
16021 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16022 as_echo='print -r --'
16023 as_echo_n='print -rn --'
16024 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16025 as_echo='printf %s\n'
16026 as_echo_n='printf %s'
16027 else
16028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16029 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16030 as_echo_n='/usr/ucb/echo -n'
16031 else
16032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16033 as_echo_n_body='eval
16034 arg=$1;
16035 case $arg in #(
16036 *"$as_nl"*)
16037 expr "X$arg" : "X\\(.*\\)$as_nl";
16038 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16039 esac;
16040 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16042 export as_echo_n_body
16043 as_echo_n='sh -c $as_echo_n_body as_echo'
16045 export as_echo_body
16046 as_echo='sh -c $as_echo_body as_echo'
16049 # The user is always right.
16050 if test "${PATH_SEPARATOR+set}" != set; then
16051 PATH_SEPARATOR=:
16052 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16053 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16054 PATH_SEPARATOR=';'
16059 # IFS
16060 # We need space, tab and new line, in precisely that order. Quoting is
16061 # there to prevent editors from complaining about space-tab.
16062 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16063 # splitting by setting IFS to empty value.)
16064 IFS=" "" $as_nl"
16066 # Find who we are. Look in the path if we contain no directory separator.
16067 as_myself=
16068 case $0 in #((
16069 *[\\/]* ) as_myself=$0 ;;
16070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071 for as_dir in $PATH
16073 IFS=$as_save_IFS
16074 test -z "$as_dir" && as_dir=.
16075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16076 done
16077 IFS=$as_save_IFS
16080 esac
16081 # We did not find ourselves, most probably we were run as `sh COMMAND'
16082 # in which case we are not to be found in the path.
16083 if test "x$as_myself" = x; then
16084 as_myself=$0
16086 if test ! -f "$as_myself"; then
16087 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16088 exit 1
16091 # Unset variables that we do not need and which cause bugs (e.g. in
16092 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16093 # suppresses any "Segmentation fault" message there. '((' could
16094 # trigger a bug in pdksh 5.2.14.
16095 for as_var in BASH_ENV ENV MAIL MAILPATH
16096 do eval test x\${$as_var+set} = xset \
16097 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16098 done
16099 PS1='$ '
16100 PS2='> '
16101 PS4='+ '
16103 # NLS nuisances.
16104 LC_ALL=C
16105 export LC_ALL
16106 LANGUAGE=C
16107 export LANGUAGE
16109 # CDPATH.
16110 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16113 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16114 # ----------------------------------------
16115 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16116 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16117 # script with STATUS, using 1 if that was 0.
16118 as_fn_error ()
16120 as_status=$1; test $as_status -eq 0 && as_status=1
16121 if test "$4"; then
16122 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16123 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16125 $as_echo "$as_me: error: $2" >&2
16126 as_fn_exit $as_status
16127 } # as_fn_error
16130 # as_fn_set_status STATUS
16131 # -----------------------
16132 # Set $? to STATUS, without forking.
16133 as_fn_set_status ()
16135 return $1
16136 } # as_fn_set_status
16138 # as_fn_exit STATUS
16139 # -----------------
16140 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16141 as_fn_exit ()
16143 set +e
16144 as_fn_set_status $1
16145 exit $1
16146 } # as_fn_exit
16148 # as_fn_unset VAR
16149 # ---------------
16150 # Portably unset VAR.
16151 as_fn_unset ()
16153 { eval $1=; unset $1;}
16155 as_unset=as_fn_unset
16156 # as_fn_append VAR VALUE
16157 # ----------------------
16158 # Append the text in VALUE to the end of the definition contained in VAR. Take
16159 # advantage of any shell optimizations that allow amortized linear growth over
16160 # repeated appends, instead of the typical quadratic growth present in naive
16161 # implementations.
16162 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16163 eval 'as_fn_append ()
16165 eval $1+=\$2
16167 else
16168 as_fn_append ()
16170 eval $1=\$$1\$2
16172 fi # as_fn_append
16174 # as_fn_arith ARG...
16175 # ------------------
16176 # Perform arithmetic evaluation on the ARGs, and store the result in the
16177 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16178 # must be portable across $(()) and expr.
16179 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16180 eval 'as_fn_arith ()
16182 as_val=$(( $* ))
16184 else
16185 as_fn_arith ()
16187 as_val=`expr "$@" || test $? -eq 1`
16189 fi # as_fn_arith
16192 if expr a : '\(a\)' >/dev/null 2>&1 &&
16193 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16194 as_expr=expr
16195 else
16196 as_expr=false
16199 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16200 as_basename=basename
16201 else
16202 as_basename=false
16205 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16206 as_dirname=dirname
16207 else
16208 as_dirname=false
16211 as_me=`$as_basename -- "$0" ||
16212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16213 X"$0" : 'X\(//\)$' \| \
16214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16215 $as_echo X/"$0" |
16216 sed '/^.*\/\([^/][^/]*\)\/*$/{
16217 s//\1/
16220 /^X\/\(\/\/\)$/{
16221 s//\1/
16224 /^X\/\(\/\).*/{
16225 s//\1/
16228 s/.*/./; q'`
16230 # Avoid depending upon Character Ranges.
16231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16234 as_cr_digits='0123456789'
16235 as_cr_alnum=$as_cr_Letters$as_cr_digits
16237 ECHO_C= ECHO_N= ECHO_T=
16238 case `echo -n x` in #(((((
16239 -n*)
16240 case `echo 'xy\c'` in
16241 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16242 xy) ECHO_C='\c';;
16243 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16244 ECHO_T=' ';;
16245 esac;;
16247 ECHO_N='-n';;
16248 esac
16250 rm -f conf$$ conf$$.exe conf$$.file
16251 if test -d conf$$.dir; then
16252 rm -f conf$$.dir/conf$$.file
16253 else
16254 rm -f conf$$.dir
16255 mkdir conf$$.dir 2>/dev/null
16257 if (echo >conf$$.file) 2>/dev/null; then
16258 if ln -s conf$$.file conf$$ 2>/dev/null; then
16259 as_ln_s='ln -s'
16260 # ... but there are two gotchas:
16261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16263 # In both cases, we have to default to `cp -pR'.
16264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16265 as_ln_s='cp -pR'
16266 elif ln conf$$.file conf$$ 2>/dev/null; then
16267 as_ln_s=ln
16268 else
16269 as_ln_s='cp -pR'
16271 else
16272 as_ln_s='cp -pR'
16274 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16275 rmdir conf$$.dir 2>/dev/null
16278 # as_fn_mkdir_p
16279 # -------------
16280 # Create "$as_dir" as a directory, including parents if necessary.
16281 as_fn_mkdir_p ()
16284 case $as_dir in #(
16285 -*) as_dir=./$as_dir;;
16286 esac
16287 test -d "$as_dir" || eval $as_mkdir_p || {
16288 as_dirs=
16289 while :; do
16290 case $as_dir in #(
16291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16292 *) as_qdir=$as_dir;;
16293 esac
16294 as_dirs="'$as_qdir' $as_dirs"
16295 as_dir=`$as_dirname -- "$as_dir" ||
16296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16297 X"$as_dir" : 'X\(//\)[^/]' \| \
16298 X"$as_dir" : 'X\(//\)$' \| \
16299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16300 $as_echo X"$as_dir" |
16301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16302 s//\1/
16305 /^X\(\/\/\)[^/].*/{
16306 s//\1/
16309 /^X\(\/\/\)$/{
16310 s//\1/
16313 /^X\(\/\).*/{
16314 s//\1/
16317 s/.*/./; q'`
16318 test -d "$as_dir" && break
16319 done
16320 test -z "$as_dirs" || eval "mkdir $as_dirs"
16321 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16324 } # as_fn_mkdir_p
16325 if mkdir -p . 2>/dev/null; then
16326 as_mkdir_p='mkdir -p "$as_dir"'
16327 else
16328 test -d ./-p && rmdir ./-p
16329 as_mkdir_p=false
16333 # as_fn_executable_p FILE
16334 # -----------------------
16335 # Test if FILE is an executable regular file.
16336 as_fn_executable_p ()
16338 test -f "$1" && test -x "$1"
16339 } # as_fn_executable_p
16340 as_test_x='test -x'
16341 as_executable_p=as_fn_executable_p
16343 # Sed expression to map a string onto a valid CPP name.
16344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16346 # Sed expression to map a string onto a valid variable name.
16347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16350 exec 6>&1
16351 ## ----------------------------------- ##
16352 ## Main body of $CONFIG_STATUS script. ##
16353 ## ----------------------------------- ##
16354 _ASEOF
16355 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16358 # Save the log message, to keep $0 and so on meaningful, and to
16359 # report actual input values of CONFIG_FILES etc. instead of their
16360 # values after options handling.
16361 ac_log="
16362 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16363 generated by GNU Autoconf 2.69. Invocation command line was
16365 CONFIG_FILES = $CONFIG_FILES
16366 CONFIG_HEADERS = $CONFIG_HEADERS
16367 CONFIG_LINKS = $CONFIG_LINKS
16368 CONFIG_COMMANDS = $CONFIG_COMMANDS
16369 $ $0 $@
16371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16374 _ACEOF
16376 case $ac_config_files in *"
16377 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16378 esac
16382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16383 # Files that config.status was made for.
16384 config_files="$ac_config_files"
16385 config_commands="$ac_config_commands"
16387 _ACEOF
16389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16390 ac_cs_usage="\
16391 \`$as_me' instantiates files and other configuration actions
16392 from templates according to the current configuration. Unless the files
16393 and actions are specified as TAGs, all are instantiated by default.
16395 Usage: $0 [OPTION]... [TAG]...
16397 -h, --help print this help, then exit
16398 -V, --version print version number and configuration settings, then exit
16399 --config print configuration, then exit
16400 -q, --quiet, --silent
16401 do not print progress messages
16402 -d, --debug don't remove temporary files
16403 --recheck update $as_me by reconfiguring in the same conditions
16404 --file=FILE[:TEMPLATE]
16405 instantiate the configuration file FILE
16407 Configuration files:
16408 $config_files
16410 Configuration commands:
16411 $config_commands
16413 Report bugs to the package provider.
16414 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16415 General help using GNU software: <http://www.gnu.org/gethelp/>."
16417 _ACEOF
16418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16419 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16420 ac_cs_version="\\
16421 GNU Vtable Verification Runtime Library config.status 1.0
16422 configured by $0, generated by GNU Autoconf 2.69,
16423 with options \\"\$ac_cs_config\\"
16425 Copyright (C) 2012 Free Software Foundation, Inc.
16426 This config.status script is free software; the Free Software Foundation
16427 gives unlimited permission to copy, distribute and modify it."
16429 ac_pwd='$ac_pwd'
16430 srcdir='$srcdir'
16431 INSTALL='$INSTALL'
16432 MKDIR_P='$MKDIR_P'
16433 AWK='$AWK'
16434 test -n "\$AWK" || AWK=awk
16435 _ACEOF
16437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16438 # The default lists apply if the user does not specify any file.
16439 ac_need_defaults=:
16440 while test $# != 0
16442 case $1 in
16443 --*=?*)
16444 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16445 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16446 ac_shift=:
16448 --*=)
16449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16450 ac_optarg=
16451 ac_shift=:
16454 ac_option=$1
16455 ac_optarg=$2
16456 ac_shift=shift
16458 esac
16460 case $ac_option in
16461 # Handling of the options.
16462 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16463 ac_cs_recheck=: ;;
16464 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16465 $as_echo "$ac_cs_version"; exit ;;
16466 --config | --confi | --conf | --con | --co | --c )
16467 $as_echo "$ac_cs_config"; exit ;;
16468 --debug | --debu | --deb | --de | --d | -d )
16469 debug=: ;;
16470 --file | --fil | --fi | --f )
16471 $ac_shift
16472 case $ac_optarg in
16473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16474 '') as_fn_error $? "missing file argument" ;;
16475 esac
16476 as_fn_append CONFIG_FILES " '$ac_optarg'"
16477 ac_need_defaults=false;;
16478 --he | --h | --help | --hel | -h )
16479 $as_echo "$ac_cs_usage"; exit ;;
16480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16481 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16482 ac_cs_silent=: ;;
16484 # This is an error.
16485 -*) as_fn_error $? "unrecognized option: \`$1'
16486 Try \`$0 --help' for more information." ;;
16488 *) as_fn_append ac_config_targets " $1"
16489 ac_need_defaults=false ;;
16491 esac
16492 shift
16493 done
16495 ac_configure_extra_args=
16497 if $ac_cs_silent; then
16498 exec 6>/dev/null
16499 ac_configure_extra_args="$ac_configure_extra_args --silent"
16502 _ACEOF
16503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16504 if \$ac_cs_recheck; then
16505 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16506 shift
16507 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16508 CONFIG_SHELL='$SHELL'
16509 export CONFIG_SHELL
16510 exec "\$@"
16513 _ACEOF
16514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16515 exec 5>>config.log
16517 echo
16518 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16519 ## Running $as_me. ##
16520 _ASBOX
16521 $as_echo "$ac_log"
16522 } >&5
16524 _ACEOF
16525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16527 # INIT-COMMANDS
16530 srcdir="$srcdir"
16531 host="$host"
16532 target="$target"
16533 with_multisubdir="$with_multisubdir"
16534 with_multisrctop="$with_multisrctop"
16535 with_target_subdir="$with_target_subdir"
16536 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16537 multi_basedir="$multi_basedir"
16538 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16539 CC="$CC"
16540 CXX="$CXX"
16541 GFORTRAN="$GFORTRAN"
16542 GDC="$GDC"
16543 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16546 # The HP-UX ksh and POSIX shell print the target directory to stdout
16547 # if CDPATH is set.
16548 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16550 sed_quote_subst='$sed_quote_subst'
16551 double_quote_subst='$double_quote_subst'
16552 delay_variable_subst='$delay_variable_subst'
16553 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16554 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16555 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16556 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16557 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16558 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16559 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16560 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16561 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16562 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16563 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16564 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16565 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16566 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16567 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16568 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16569 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16570 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16571 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16572 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16573 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16574 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16575 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16576 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16577 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16578 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16579 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16580 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16581 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16582 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16583 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16584 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16585 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16586 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16587 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16588 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16589 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16590 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16591 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16592 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16593 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16594 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16595 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16596 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16597 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16598 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16599 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16600 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16601 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"`'
16602 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16603 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16604 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16605 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16606 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16607 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16608 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16609 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16610 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16611 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16612 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16613 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16614 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16615 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16616 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16617 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16618 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16619 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16620 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16621 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16622 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16623 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16624 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16625 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16626 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16627 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16628 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16629 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16630 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16631 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16632 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16633 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16634 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16635 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16636 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16637 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16638 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16639 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16640 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16641 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16642 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16643 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16644 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16645 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16646 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16647 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16648 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16649 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16650 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16651 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16652 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16653 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16654 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16655 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16656 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16657 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16658 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16659 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16660 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16661 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16662 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16663 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16664 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16665 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16666 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16667 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16668 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16669 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16670 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16671 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16672 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16673 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16674 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16675 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16676 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16677 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16678 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16679 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16680 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16681 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16682 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16683 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16684 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16685 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16686 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16687 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16688 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16689 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16690 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16691 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16692 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16693 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16694 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16695 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16696 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16697 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16698 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16699 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16700 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16701 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16702 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16703 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16704 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16705 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16706 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16707 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16708 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16709 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16710 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16711 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16712 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16713 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16714 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16715 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16716 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16717 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16718 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16719 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16720 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16721 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16722 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16723 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16724 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16725 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16726 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16727 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16729 LTCC='$LTCC'
16730 LTCFLAGS='$LTCFLAGS'
16731 compiler='$compiler_DEFAULT'
16733 # A function that is used when there is no print builtin or printf.
16734 func_fallback_echo ()
16736 eval 'cat <<_LTECHO_EOF
16738 _LTECHO_EOF'
16741 # Quote evaled strings.
16742 for var in SHELL \
16743 ECHO \
16744 SED \
16745 GREP \
16746 EGREP \
16747 FGREP \
16748 LD \
16749 NM \
16750 LN_S \
16751 lt_SP2NL \
16752 lt_NL2SP \
16753 reload_flag \
16754 OBJDUMP \
16755 deplibs_check_method \
16756 file_magic_cmd \
16757 AR \
16758 AR_FLAGS \
16759 STRIP \
16760 RANLIB \
16761 CC \
16762 CFLAGS \
16763 compiler \
16764 lt_cv_sys_global_symbol_pipe \
16765 lt_cv_sys_global_symbol_to_cdecl \
16766 lt_cv_sys_global_symbol_to_c_name_address \
16767 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16768 lt_prog_compiler_no_builtin_flag \
16769 lt_prog_compiler_wl \
16770 lt_prog_compiler_pic \
16771 lt_prog_compiler_static \
16772 lt_cv_prog_compiler_c_o \
16773 need_locks \
16774 DSYMUTIL \
16775 NMEDIT \
16776 LIPO \
16777 OTOOL \
16778 OTOOL64 \
16779 shrext_cmds \
16780 export_dynamic_flag_spec \
16781 whole_archive_flag_spec \
16782 compiler_needs_object \
16783 with_gnu_ld \
16784 allow_undefined_flag \
16785 no_undefined_flag \
16786 hardcode_libdir_flag_spec \
16787 hardcode_libdir_flag_spec_ld \
16788 hardcode_libdir_separator \
16789 fix_srcfile_path \
16790 exclude_expsyms \
16791 include_expsyms \
16792 file_list_spec \
16793 variables_saved_for_relink \
16794 libname_spec \
16795 library_names_spec \
16796 soname_spec \
16797 install_override_mode \
16798 finish_eval \
16799 old_striplib \
16800 striplib \
16801 compiler_lib_search_dirs \
16802 predep_objects \
16803 postdep_objects \
16804 predeps \
16805 postdeps \
16806 compiler_lib_search_path \
16807 LD_CXX \
16808 reload_flag_CXX \
16809 compiler_CXX \
16810 lt_prog_compiler_no_builtin_flag_CXX \
16811 lt_prog_compiler_wl_CXX \
16812 lt_prog_compiler_pic_CXX \
16813 lt_prog_compiler_static_CXX \
16814 lt_cv_prog_compiler_c_o_CXX \
16815 export_dynamic_flag_spec_CXX \
16816 whole_archive_flag_spec_CXX \
16817 compiler_needs_object_CXX \
16818 with_gnu_ld_CXX \
16819 allow_undefined_flag_CXX \
16820 no_undefined_flag_CXX \
16821 hardcode_libdir_flag_spec_CXX \
16822 hardcode_libdir_flag_spec_ld_CXX \
16823 hardcode_libdir_separator_CXX \
16824 fix_srcfile_path_CXX \
16825 exclude_expsyms_CXX \
16826 include_expsyms_CXX \
16827 file_list_spec_CXX \
16828 compiler_lib_search_dirs_CXX \
16829 predep_objects_CXX \
16830 postdep_objects_CXX \
16831 predeps_CXX \
16832 postdeps_CXX \
16833 compiler_lib_search_path_CXX; do
16834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16835 *[\\\\\\\`\\"\\\$]*)
16836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16841 esac
16842 done
16844 # Double-quote double-evaled strings.
16845 for var in reload_cmds \
16846 old_postinstall_cmds \
16847 old_postuninstall_cmds \
16848 old_archive_cmds \
16849 extract_expsyms_cmds \
16850 old_archive_from_new_cmds \
16851 old_archive_from_expsyms_cmds \
16852 archive_cmds \
16853 archive_expsym_cmds \
16854 module_cmds \
16855 module_expsym_cmds \
16856 export_symbols_cmds \
16857 prelink_cmds \
16858 postinstall_cmds \
16859 postuninstall_cmds \
16860 finish_cmds \
16861 sys_lib_search_path_spec \
16862 sys_lib_dlsearch_path_spec \
16863 reload_cmds_CXX \
16864 old_archive_cmds_CXX \
16865 old_archive_from_new_cmds_CXX \
16866 old_archive_from_expsyms_cmds_CXX \
16867 archive_cmds_CXX \
16868 archive_expsym_cmds_CXX \
16869 module_cmds_CXX \
16870 module_expsym_cmds_CXX \
16871 export_symbols_cmds_CXX \
16872 prelink_cmds_CXX; do
16873 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16874 *[\\\\\\\`\\"\\\$]*)
16875 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16878 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16880 esac
16881 done
16883 ac_aux_dir='$ac_aux_dir'
16884 xsi_shell='$xsi_shell'
16885 lt_shell_append='$lt_shell_append'
16887 # See if we are running on zsh, and set the options which allow our
16888 # commands through without removal of \ escapes INIT.
16889 if test -n "\${ZSH_VERSION+set}" ; then
16890 setopt NO_GLOB_SUBST
16894 PACKAGE='$PACKAGE'
16895 VERSION='$VERSION'
16896 TIMESTAMP='$TIMESTAMP'
16897 RM='$RM'
16898 ofile='$ofile'
16905 _ACEOF
16907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16909 # Handling of arguments.
16910 for ac_config_target in $ac_config_targets
16912 case $ac_config_target in
16913 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16914 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16915 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16916 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16917 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16919 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16920 esac
16921 done
16924 # If the user did not use the arguments to specify the items to instantiate,
16925 # then the envvar interface is used. Set only those that are not.
16926 # We use the long form for the default assignment because of an extremely
16927 # bizarre bug on SunOS 4.1.3.
16928 if $ac_need_defaults; then
16929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16933 # Have a temporary directory for convenience. Make it in the build tree
16934 # simply because there is no reason against having it here, and in addition,
16935 # creating and moving files from /tmp can sometimes cause problems.
16936 # Hook for its removal unless debugging.
16937 # Note that there is a small window in which the directory will not be cleaned:
16938 # after its creation but before its name has been assigned to `$tmp'.
16939 $debug ||
16941 tmp= ac_tmp=
16942 trap 'exit_status=$?
16943 : "${ac_tmp:=$tmp}"
16944 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16946 trap 'as_fn_exit 1' 1 2 13 15
16948 # Create a (secure) tmp directory for tmp files.
16951 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16952 test -d "$tmp"
16953 } ||
16955 tmp=./conf$$-$RANDOM
16956 (umask 077 && mkdir "$tmp")
16957 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16958 ac_tmp=$tmp
16960 # Set up the scripts for CONFIG_FILES section.
16961 # No need to generate them if there are no CONFIG_FILES.
16962 # This happens for instance with `./config.status config.h'.
16963 if test -n "$CONFIG_FILES"; then
16966 ac_cr=`echo X | tr X '\015'`
16967 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16968 # But we know of no other shell where ac_cr would be empty at this
16969 # point, so we can use a bashism as a fallback.
16970 if test "x$ac_cr" = x; then
16971 eval ac_cr=\$\'\\r\'
16973 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16974 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16975 ac_cs_awk_cr='\\r'
16976 else
16977 ac_cs_awk_cr=$ac_cr
16980 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16981 _ACEOF
16985 echo "cat >conf$$subs.awk <<_ACEOF" &&
16986 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16987 echo "_ACEOF"
16988 } >conf$$subs.sh ||
16989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16990 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16991 ac_delim='%!_!# '
16992 for ac_last_try in false false false false false :; do
16993 . ./conf$$subs.sh ||
16994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16996 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16997 if test $ac_delim_n = $ac_delim_num; then
16998 break
16999 elif $ac_last_try; then
17000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17001 else
17002 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17004 done
17005 rm -f conf$$subs.sh
17007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17008 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17009 _ACEOF
17010 sed -n '
17012 s/^/S["/; s/!.*/"]=/
17015 s/^[^!]*!//
17016 :repl
17017 t repl
17018 s/'"$ac_delim"'$//
17019 t delim
17022 s/\(.\{148\}\)..*/\1/
17023 t more1
17024 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17027 b repl
17028 :more1
17029 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17032 s/.\{148\}//
17033 t nl
17034 :delim
17036 s/\(.\{148\}\)..*/\1/
17037 t more2
17038 s/["\\]/\\&/g; s/^/"/; s/$/"/
17041 :more2
17042 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17045 s/.\{148\}//
17046 t delim
17047 ' <conf$$subs.awk | sed '
17048 /^[^""]/{
17050 s/\n//
17052 ' >>$CONFIG_STATUS || ac_write_fail=1
17053 rm -f conf$$subs.awk
17054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17055 _ACAWK
17056 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17057 for (key in S) S_is_set[key] = 1
17058 FS = "\a"
17062 line = $ 0
17063 nfields = split(line, field, "@")
17064 substed = 0
17065 len = length(field[1])
17066 for (i = 2; i < nfields; i++) {
17067 key = field[i]
17068 keylen = length(key)
17069 if (S_is_set[key]) {
17070 value = S[key]
17071 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17072 len += length(value) + length(field[++i])
17073 substed = 1
17074 } else
17075 len += 1 + keylen
17078 print line
17081 _ACAWK
17082 _ACEOF
17083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17085 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17086 else
17088 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17089 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17090 _ACEOF
17092 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17093 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17094 # trailing colons and then remove the whole line if VPATH becomes empty
17095 # (actually we leave an empty line to preserve line numbers).
17096 if test "x$srcdir" = x.; then
17097 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17099 s///
17100 s/^/:/
17101 s/[ ]*$/:/
17102 s/:\$(srcdir):/:/g
17103 s/:\${srcdir}:/:/g
17104 s/:@srcdir@:/:/g
17105 s/^:*//
17106 s/:*$//
17108 s/\(=[ ]*\).*/\1/
17110 s/\n//
17111 s/^[^=]*=[ ]*$//
17115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116 fi # test -n "$CONFIG_FILES"
17119 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17120 shift
17121 for ac_tag
17123 case $ac_tag in
17124 :[FHLC]) ac_mode=$ac_tag; continue;;
17125 esac
17126 case $ac_mode$ac_tag in
17127 :[FHL]*:*);;
17128 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17129 :[FH]-) ac_tag=-:-;;
17130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17131 esac
17132 ac_save_IFS=$IFS
17133 IFS=:
17134 set x $ac_tag
17135 IFS=$ac_save_IFS
17136 shift
17137 ac_file=$1
17138 shift
17140 case $ac_mode in
17141 :L) ac_source=$1;;
17142 :[FH])
17143 ac_file_inputs=
17144 for ac_f
17146 case $ac_f in
17147 -) ac_f="$ac_tmp/stdin";;
17148 *) # Look for the file first in the build tree, then in the source tree
17149 # (if the path is not absolute). The absolute path cannot be DOS-style,
17150 # because $ac_f cannot contain `:'.
17151 test -f "$ac_f" ||
17152 case $ac_f in
17153 [\\/$]*) false;;
17154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17155 esac ||
17156 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17157 esac
17158 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17159 as_fn_append ac_file_inputs " '$ac_f'"
17160 done
17162 # Let's still pretend it is `configure' which instantiates (i.e., don't
17163 # use $as_me), people would be surprised to read:
17164 # /* config.h. Generated by config.status. */
17165 configure_input='Generated from '`
17166 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17167 `' by configure.'
17168 if test x"$ac_file" != x-; then
17169 configure_input="$ac_file. $configure_input"
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17171 $as_echo "$as_me: creating $ac_file" >&6;}
17173 # Neutralize special characters interpreted by sed in replacement strings.
17174 case $configure_input in #(
17175 *\&* | *\|* | *\\* )
17176 ac_sed_conf_input=`$as_echo "$configure_input" |
17177 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17178 *) ac_sed_conf_input=$configure_input;;
17179 esac
17181 case $ac_tag in
17182 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17184 esac
17186 esac
17188 ac_dir=`$as_dirname -- "$ac_file" ||
17189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17190 X"$ac_file" : 'X\(//\)[^/]' \| \
17191 X"$ac_file" : 'X\(//\)$' \| \
17192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17193 $as_echo X"$ac_file" |
17194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17195 s//\1/
17198 /^X\(\/\/\)[^/].*/{
17199 s//\1/
17202 /^X\(\/\/\)$/{
17203 s//\1/
17206 /^X\(\/\).*/{
17207 s//\1/
17210 s/.*/./; q'`
17211 as_dir="$ac_dir"; as_fn_mkdir_p
17212 ac_builddir=.
17214 case "$ac_dir" in
17215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17217 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17218 # A ".." for each directory in $ac_dir_suffix.
17219 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17220 case $ac_top_builddir_sub in
17221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17223 esac ;;
17224 esac
17225 ac_abs_top_builddir=$ac_pwd
17226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17227 # for backward compatibility:
17228 ac_top_builddir=$ac_top_build_prefix
17230 case $srcdir in
17231 .) # We are building in place.
17232 ac_srcdir=.
17233 ac_top_srcdir=$ac_top_builddir_sub
17234 ac_abs_top_srcdir=$ac_pwd ;;
17235 [\\/]* | ?:[\\/]* ) # Absolute name.
17236 ac_srcdir=$srcdir$ac_dir_suffix;
17237 ac_top_srcdir=$srcdir
17238 ac_abs_top_srcdir=$srcdir ;;
17239 *) # Relative name.
17240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17241 ac_top_srcdir=$ac_top_build_prefix$srcdir
17242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17243 esac
17244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17247 case $ac_mode in
17250 # CONFIG_FILE
17253 case $INSTALL in
17254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17256 esac
17257 ac_MKDIR_P=$MKDIR_P
17258 case $MKDIR_P in
17259 [\\/$]* | ?:[\\/]* ) ;;
17260 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17261 esac
17262 _ACEOF
17264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17265 # If the template does not know about datarootdir, expand it.
17266 # FIXME: This hack should be removed a few years after 2.60.
17267 ac_datarootdir_hack=; ac_datarootdir_seen=
17268 ac_sed_dataroot='
17269 /datarootdir/ {
17273 /@datadir@/p
17274 /@docdir@/p
17275 /@infodir@/p
17276 /@localedir@/p
17277 /@mandir@/p'
17278 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17279 *datarootdir*) ac_datarootdir_seen=yes;;
17280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17282 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17283 _ACEOF
17284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17285 ac_datarootdir_hack='
17286 s&@datadir@&$datadir&g
17287 s&@docdir@&$docdir&g
17288 s&@infodir@&$infodir&g
17289 s&@localedir@&$localedir&g
17290 s&@mandir@&$mandir&g
17291 s&\\\${datarootdir}&$datarootdir&g' ;;
17292 esac
17293 _ACEOF
17295 # Neutralize VPATH when `$srcdir' = `.'.
17296 # Shell code in configure.ac might set extrasub.
17297 # FIXME: do we really want to maintain this feature?
17298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17299 ac_sed_extra="$ac_vpsub
17300 $extrasub
17301 _ACEOF
17302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17305 s|@configure_input@|$ac_sed_conf_input|;t t
17306 s&@top_builddir@&$ac_top_builddir_sub&;t t
17307 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17308 s&@srcdir@&$ac_srcdir&;t t
17309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17310 s&@top_srcdir@&$ac_top_srcdir&;t t
17311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17312 s&@builddir@&$ac_builddir&;t t
17313 s&@abs_builddir@&$ac_abs_builddir&;t t
17314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17315 s&@INSTALL@&$ac_INSTALL&;t t
17316 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17317 $ac_datarootdir_hack
17319 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17320 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17322 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17323 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17324 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17325 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17327 which seems to be undefined. Please make sure it is defined" >&5
17328 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17329 which seems to be undefined. Please make sure it is defined" >&2;}
17331 rm -f "$ac_tmp/stdin"
17332 case $ac_file in
17333 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17334 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17335 esac \
17336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17340 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17341 $as_echo "$as_me: executing $ac_file commands" >&6;}
17343 esac
17346 case $ac_file$ac_mode in
17347 "default-1":C)
17348 # Only add multilib support code if we just rebuilt the top-level
17349 # Makefile.
17350 case " $CONFIG_FILES " in
17351 *" Makefile "*)
17352 ac_file=Makefile . ${multi_basedir}/config-ml.in
17354 esac ;;
17355 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17356 # Older Autoconf quotes --file arguments for eval, but not when files
17357 # are listed without --file. Let's play safe and only enable the eval
17358 # if we detect the quoting.
17359 case $CONFIG_FILES in
17360 *\'*) eval set x "$CONFIG_FILES" ;;
17361 *) set x $CONFIG_FILES ;;
17362 esac
17363 shift
17364 for mf
17366 # Strip MF so we end up with the name of the file.
17367 mf=`echo "$mf" | sed -e 's/:.*$//'`
17368 # Check whether this is an Automake generated Makefile or not.
17369 # We used to match only the files named 'Makefile.in', but
17370 # some people rename them; so instead we look at the file content.
17371 # Grep'ing the first line is not enough: some people post-process
17372 # each Makefile.in and add a new line on top of each file to say so.
17373 # Grep'ing the whole file is not good either: AIX grep has a line
17374 # limit of 2048, but all sed's we know have understand at least 4000.
17375 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17376 dirpart=`$as_dirname -- "$mf" ||
17377 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17378 X"$mf" : 'X\(//\)[^/]' \| \
17379 X"$mf" : 'X\(//\)$' \| \
17380 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17381 $as_echo X"$mf" |
17382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17383 s//\1/
17386 /^X\(\/\/\)[^/].*/{
17387 s//\1/
17390 /^X\(\/\/\)$/{
17391 s//\1/
17394 /^X\(\/\).*/{
17395 s//\1/
17398 s/.*/./; q'`
17399 else
17400 continue
17402 # Extract the definition of DEPDIR, am__include, and am__quote
17403 # from the Makefile without running 'make'.
17404 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17405 test -z "$DEPDIR" && continue
17406 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17407 test -z "$am__include" && continue
17408 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17409 # Find all dependency output files, they are included files with
17410 # $(DEPDIR) in their names. We invoke sed twice because it is the
17411 # simplest approach to changing $(DEPDIR) to its actual value in the
17412 # expansion.
17413 for file in `sed -n "
17414 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17415 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17416 # Make sure the directory exists.
17417 test -f "$dirpart/$file" && continue
17418 fdir=`$as_dirname -- "$file" ||
17419 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17420 X"$file" : 'X\(//\)[^/]' \| \
17421 X"$file" : 'X\(//\)$' \| \
17422 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17423 $as_echo X"$file" |
17424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17425 s//\1/
17428 /^X\(\/\/\)[^/].*/{
17429 s//\1/
17432 /^X\(\/\/\)$/{
17433 s//\1/
17436 /^X\(\/\).*/{
17437 s//\1/
17440 s/.*/./; q'`
17441 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17442 # echo "creating $dirpart/$file"
17443 echo '# dummy' > "$dirpart/$file"
17444 done
17445 done
17448 "libtool":C)
17450 # See if we are running on zsh, and set the options which allow our
17451 # commands through without removal of \ escapes.
17452 if test -n "${ZSH_VERSION+set}" ; then
17453 setopt NO_GLOB_SUBST
17456 cfgfile="${ofile}T"
17457 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17458 $RM "$cfgfile"
17460 cat <<_LT_EOF >> "$cfgfile"
17461 #! $SHELL
17463 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17464 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17466 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17468 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17469 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17470 # Written by Gordon Matzigkeit, 1996
17472 # This file is part of GNU Libtool.
17474 # GNU Libtool is free software; you can redistribute it and/or
17475 # modify it under the terms of the GNU General Public License as
17476 # published by the Free Software Foundation; either version 2 of
17477 # the License, or (at your option) any later version.
17479 # As a special exception to the GNU General Public License,
17480 # if you distribute this file as part of a program or library that
17481 # is built using GNU Libtool, you may include this file under the
17482 # same distribution terms that you use for the rest of that program.
17484 # GNU Libtool is distributed in the hope that it will be useful,
17485 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17486 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17487 # GNU General Public License for more details.
17489 # You should have received a copy of the GNU General Public License
17490 # along with GNU Libtool; see the file COPYING. If not, a copy
17491 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17492 # obtained by writing to the Free Software Foundation, Inc.,
17493 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17496 # The names of the tagged configurations supported by this script.
17497 available_tags="CXX "
17499 # ### BEGIN LIBTOOL CONFIG
17501 # Which release of libtool.m4 was used?
17502 macro_version=$macro_version
17503 macro_revision=$macro_revision
17505 # Whether or not to build shared libraries.
17506 build_libtool_libs=$enable_shared
17508 # Whether or not to build static libraries.
17509 build_old_libs=$enable_static
17511 # What type of objects to build.
17512 pic_mode=$pic_mode
17514 # Whether or not to optimize for fast installation.
17515 fast_install=$enable_fast_install
17517 # Shell to use when invoking shell scripts.
17518 SHELL=$lt_SHELL
17520 # An echo program that protects backslashes.
17521 ECHO=$lt_ECHO
17523 # The host system.
17524 host_alias=$host_alias
17525 host=$host
17526 host_os=$host_os
17528 # The build system.
17529 build_alias=$build_alias
17530 build=$build
17531 build_os=$build_os
17533 # A sed program that does not truncate output.
17534 SED=$lt_SED
17536 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17537 Xsed="\$SED -e 1s/^X//"
17539 # A grep program that handles long lines.
17540 GREP=$lt_GREP
17542 # An ERE matcher.
17543 EGREP=$lt_EGREP
17545 # A literal string matcher.
17546 FGREP=$lt_FGREP
17548 # A BSD- or MS-compatible name lister.
17549 NM=$lt_NM
17551 # Whether we need soft or hard links.
17552 LN_S=$lt_LN_S
17554 # What is the maximum length of a command?
17555 max_cmd_len=$max_cmd_len
17557 # Object file suffix (normally "o").
17558 objext=$ac_objext
17560 # Executable file suffix (normally "").
17561 exeext=$exeext
17563 # whether the shell understands "unset".
17564 lt_unset=$lt_unset
17566 # turn spaces into newlines.
17567 SP2NL=$lt_lt_SP2NL
17569 # turn newlines into spaces.
17570 NL2SP=$lt_lt_NL2SP
17572 # An object symbol dumper.
17573 OBJDUMP=$lt_OBJDUMP
17575 # Method to check whether dependent libraries are shared objects.
17576 deplibs_check_method=$lt_deplibs_check_method
17578 # Command to use when deplibs_check_method == "file_magic".
17579 file_magic_cmd=$lt_file_magic_cmd
17581 # The archiver.
17582 AR=$lt_AR
17583 AR_FLAGS=$lt_AR_FLAGS
17585 # A symbol stripping program.
17586 STRIP=$lt_STRIP
17588 # Commands used to install an old-style archive.
17589 RANLIB=$lt_RANLIB
17590 old_postinstall_cmds=$lt_old_postinstall_cmds
17591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17593 # Whether to use a lock for old archive extraction.
17594 lock_old_archive_extraction=$lock_old_archive_extraction
17596 # A C compiler.
17597 LTCC=$lt_CC
17599 # LTCC compiler flags.
17600 LTCFLAGS=$lt_CFLAGS
17602 # Take the output of nm and produce a listing of raw symbols and C names.
17603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17605 # Transform the output of nm in a proper C declaration.
17606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17608 # Transform the output of nm in a C name address pair.
17609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17611 # Transform the output of nm in a C name address pair when lib prefix is needed.
17612 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17614 # The name of the directory that contains temporary libtool files.
17615 objdir=$objdir
17617 # Used to examine libraries when file_magic_cmd begins with "file".
17618 MAGIC_CMD=$MAGIC_CMD
17620 # Must we lock files when doing compilation?
17621 need_locks=$lt_need_locks
17623 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17624 DSYMUTIL=$lt_DSYMUTIL
17626 # Tool to change global to local symbols on Mac OS X.
17627 NMEDIT=$lt_NMEDIT
17629 # Tool to manipulate fat objects and archives on Mac OS X.
17630 LIPO=$lt_LIPO
17632 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17633 OTOOL=$lt_OTOOL
17635 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17636 OTOOL64=$lt_OTOOL64
17638 # Old archive suffix (normally "a").
17639 libext=$libext
17641 # Shared library suffix (normally ".so").
17642 shrext_cmds=$lt_shrext_cmds
17644 # The commands to extract the exported symbol list from a shared archive.
17645 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17647 # Variables whose values should be saved in libtool wrapper scripts and
17648 # restored at link time.
17649 variables_saved_for_relink=$lt_variables_saved_for_relink
17651 # Do we need the "lib" prefix for modules?
17652 need_lib_prefix=$need_lib_prefix
17654 # Do we need a version for libraries?
17655 need_version=$need_version
17657 # Library versioning type.
17658 version_type=$version_type
17660 # Shared library runtime path variable.
17661 runpath_var=$runpath_var
17663 # Shared library path variable.
17664 shlibpath_var=$shlibpath_var
17666 # Is shlibpath searched before the hard-coded library search path?
17667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17669 # Format of library name prefix.
17670 libname_spec=$lt_libname_spec
17672 # List of archive names. First name is the real one, the rest are links.
17673 # The last name is the one that the linker finds with -lNAME
17674 library_names_spec=$lt_library_names_spec
17676 # The coded name of the library, if different from the real name.
17677 soname_spec=$lt_soname_spec
17679 # Permission mode override for installation of shared libraries.
17680 install_override_mode=$lt_install_override_mode
17682 # Command to use after installation of a shared archive.
17683 postinstall_cmds=$lt_postinstall_cmds
17685 # Command to use after uninstallation of a shared archive.
17686 postuninstall_cmds=$lt_postuninstall_cmds
17688 # Commands used to finish a libtool library installation in a directory.
17689 finish_cmds=$lt_finish_cmds
17691 # As "finish_cmds", except a single script fragment to be evaled but
17692 # not shown.
17693 finish_eval=$lt_finish_eval
17695 # Whether we should hardcode library paths into libraries.
17696 hardcode_into_libs=$hardcode_into_libs
17698 # Compile-time system search path for libraries.
17699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17701 # Run-time system search path for libraries.
17702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17704 # Whether dlopen is supported.
17705 dlopen_support=$enable_dlopen
17707 # Whether dlopen of programs is supported.
17708 dlopen_self=$enable_dlopen_self
17710 # Whether dlopen of statically linked programs is supported.
17711 dlopen_self_static=$enable_dlopen_self_static
17713 # Commands to strip libraries.
17714 old_striplib=$lt_old_striplib
17715 striplib=$lt_striplib
17718 # The linker used to build libraries.
17719 LD=$lt_LD
17721 # How to create reloadable object files.
17722 reload_flag=$lt_reload_flag
17723 reload_cmds=$lt_reload_cmds
17725 # Commands used to build an old-style archive.
17726 old_archive_cmds=$lt_old_archive_cmds
17728 # A language specific compiler.
17729 CC=$lt_compiler
17731 # Is the compiler the GNU compiler?
17732 with_gcc=$GCC
17734 # Compiler flag to turn off builtin functions.
17735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17737 # How to pass a linker flag through the compiler.
17738 wl=$lt_lt_prog_compiler_wl
17740 # Additional compiler flags for building library objects.
17741 pic_flag=$lt_lt_prog_compiler_pic
17743 # Compiler flag to prevent dynamic linking.
17744 link_static_flag=$lt_lt_prog_compiler_static
17746 # Does compiler simultaneously support -c and -o options?
17747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17749 # Whether or not to add -lc for building shared libraries.
17750 build_libtool_need_lc=$archive_cmds_need_lc
17752 # Whether or not to disallow shared libs when runtime libs are static.
17753 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17755 # Compiler flag to allow reflexive dlopens.
17756 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17758 # Compiler flag to generate shared objects directly from archives.
17759 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17761 # Whether the compiler copes with passing no objects directly.
17762 compiler_needs_object=$lt_compiler_needs_object
17764 # Create an old-style archive from a shared archive.
17765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17767 # Create a temporary old-style archive to link instead of a shared archive.
17768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17770 # Commands used to build a shared archive.
17771 archive_cmds=$lt_archive_cmds
17772 archive_expsym_cmds=$lt_archive_expsym_cmds
17774 # Commands used to build a loadable module if different from building
17775 # a shared archive.
17776 module_cmds=$lt_module_cmds
17777 module_expsym_cmds=$lt_module_expsym_cmds
17779 # Whether we are building with GNU ld or not.
17780 with_gnu_ld=$lt_with_gnu_ld
17782 # Flag that allows shared libraries with undefined symbols to be built.
17783 allow_undefined_flag=$lt_allow_undefined_flag
17785 # Flag that enforces no undefined symbols.
17786 no_undefined_flag=$lt_no_undefined_flag
17788 # Flag to hardcode \$libdir into a binary during linking.
17789 # This must work even if \$libdir does not exist
17790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17792 # If ld is used when linking, flag to hardcode \$libdir into a binary
17793 # during linking. This must work even if \$libdir does not exist.
17794 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17796 # Whether we need a single "-rpath" flag with a separated argument.
17797 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17799 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17800 # DIR into the resulting binary.
17801 hardcode_direct=$hardcode_direct
17803 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17804 # DIR into the resulting binary and the resulting library dependency is
17805 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17806 # library is relocated.
17807 hardcode_direct_absolute=$hardcode_direct_absolute
17809 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17810 # into the resulting binary.
17811 hardcode_minus_L=$hardcode_minus_L
17813 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17814 # into the resulting binary.
17815 hardcode_shlibpath_var=$hardcode_shlibpath_var
17817 # Set to "yes" if building a shared library automatically hardcodes DIR
17818 # into the library and all subsequent libraries and executables linked
17819 # against it.
17820 hardcode_automatic=$hardcode_automatic
17822 # Set to yes if linker adds runtime paths of dependent libraries
17823 # to runtime path list.
17824 inherit_rpath=$inherit_rpath
17826 # Whether libtool must link a program against all its dependency libraries.
17827 link_all_deplibs=$link_all_deplibs
17829 # Fix the shell variable \$srcfile for the compiler.
17830 fix_srcfile_path=$lt_fix_srcfile_path
17832 # Set to "yes" if exported symbols are required.
17833 always_export_symbols=$always_export_symbols
17835 # The commands to list exported symbols.
17836 export_symbols_cmds=$lt_export_symbols_cmds
17838 # Symbols that should not be listed in the preloaded symbols.
17839 exclude_expsyms=$lt_exclude_expsyms
17841 # Symbols that must always be exported.
17842 include_expsyms=$lt_include_expsyms
17844 # Commands necessary for linking programs (against libraries) with templates.
17845 prelink_cmds=$lt_prelink_cmds
17847 # Specify filename containing input files.
17848 file_list_spec=$lt_file_list_spec
17850 # How to hardcode a shared library path into an executable.
17851 hardcode_action=$hardcode_action
17853 # The directories searched by this compiler when creating a shared library.
17854 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17856 # Dependencies to place before and after the objects being linked to
17857 # create a shared library.
17858 predep_objects=$lt_predep_objects
17859 postdep_objects=$lt_postdep_objects
17860 predeps=$lt_predeps
17861 postdeps=$lt_postdeps
17863 # The library search path used internally by the compiler when linking
17864 # a shared library.
17865 compiler_lib_search_path=$lt_compiler_lib_search_path
17867 # ### END LIBTOOL CONFIG
17869 _LT_EOF
17871 case $host_os in
17872 aix3*)
17873 cat <<\_LT_EOF >> "$cfgfile"
17874 # AIX sometimes has problems with the GCC collect2 program. For some
17875 # reason, if we set the COLLECT_NAMES environment variable, the problems
17876 # vanish in a puff of smoke.
17877 if test "X${COLLECT_NAMES+set}" != Xset; then
17878 COLLECT_NAMES=
17879 export COLLECT_NAMES
17881 _LT_EOF
17883 esac
17886 ltmain="$ac_aux_dir/ltmain.sh"
17889 # We use sed instead of cat because bash on DJGPP gets confused if
17890 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17891 # text mode, it properly converts lines to CR/LF. This bash problem
17892 # is reportedly fixed, but why not run on old versions too?
17893 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17894 || (rm -f "$cfgfile"; exit 1)
17896 case $xsi_shell in
17897 yes)
17898 cat << \_LT_EOF >> "$cfgfile"
17900 # func_dirname file append nondir_replacement
17901 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17902 # otherwise set result to NONDIR_REPLACEMENT.
17903 func_dirname ()
17905 case ${1} in
17906 */*) func_dirname_result="${1%/*}${2}" ;;
17907 * ) func_dirname_result="${3}" ;;
17908 esac
17911 # func_basename file
17912 func_basename ()
17914 func_basename_result="${1##*/}"
17917 # func_dirname_and_basename file append nondir_replacement
17918 # perform func_basename and func_dirname in a single function
17919 # call:
17920 # dirname: Compute the dirname of FILE. If nonempty,
17921 # add APPEND to the result, otherwise set result
17922 # to NONDIR_REPLACEMENT.
17923 # value returned in "$func_dirname_result"
17924 # basename: Compute filename of FILE.
17925 # value retuned in "$func_basename_result"
17926 # Implementation must be kept synchronized with func_dirname
17927 # and func_basename. For efficiency, we do not delegate to
17928 # those functions but instead duplicate the functionality here.
17929 func_dirname_and_basename ()
17931 case ${1} in
17932 */*) func_dirname_result="${1%/*}${2}" ;;
17933 * ) func_dirname_result="${3}" ;;
17934 esac
17935 func_basename_result="${1##*/}"
17938 # func_stripname prefix suffix name
17939 # strip PREFIX and SUFFIX off of NAME.
17940 # PREFIX and SUFFIX must not contain globbing or regex special
17941 # characters, hashes, percent signs, but SUFFIX may contain a leading
17942 # dot (in which case that matches only a dot).
17943 func_stripname ()
17945 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17946 # positional parameters, so assign one to ordinary parameter first.
17947 func_stripname_result=${3}
17948 func_stripname_result=${func_stripname_result#"${1}"}
17949 func_stripname_result=${func_stripname_result%"${2}"}
17952 # func_opt_split
17953 func_opt_split ()
17955 func_opt_split_opt=${1%%=*}
17956 func_opt_split_arg=${1#*=}
17959 # func_lo2o object
17960 func_lo2o ()
17962 case ${1} in
17963 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17964 *) func_lo2o_result=${1} ;;
17965 esac
17968 # func_xform libobj-or-source
17969 func_xform ()
17971 func_xform_result=${1%.*}.lo
17974 # func_arith arithmetic-term...
17975 func_arith ()
17977 func_arith_result=$(( $* ))
17980 # func_len string
17981 # STRING may not start with a hyphen.
17982 func_len ()
17984 func_len_result=${#1}
17987 _LT_EOF
17989 *) # Bourne compatible functions.
17990 cat << \_LT_EOF >> "$cfgfile"
17992 # func_dirname file append nondir_replacement
17993 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17994 # otherwise set result to NONDIR_REPLACEMENT.
17995 func_dirname ()
17997 # Extract subdirectory from the argument.
17998 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17999 if test "X$func_dirname_result" = "X${1}"; then
18000 func_dirname_result="${3}"
18001 else
18002 func_dirname_result="$func_dirname_result${2}"
18006 # func_basename file
18007 func_basename ()
18009 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18013 # func_stripname prefix suffix name
18014 # strip PREFIX and SUFFIX off of NAME.
18015 # PREFIX and SUFFIX must not contain globbing or regex special
18016 # characters, hashes, percent signs, but SUFFIX may contain a leading
18017 # dot (in which case that matches only a dot).
18018 # func_strip_suffix prefix name
18019 func_stripname ()
18021 case ${2} in
18022 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18023 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18024 esac
18027 # sed scripts:
18028 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18029 my_sed_long_arg='1s/^-[^=]*=//'
18031 # func_opt_split
18032 func_opt_split ()
18034 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18035 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18038 # func_lo2o object
18039 func_lo2o ()
18041 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18044 # func_xform libobj-or-source
18045 func_xform ()
18047 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18050 # func_arith arithmetic-term...
18051 func_arith ()
18053 func_arith_result=`expr "$@"`
18056 # func_len string
18057 # STRING may not start with a hyphen.
18058 func_len ()
18060 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18063 _LT_EOF
18064 esac
18066 case $lt_shell_append in
18067 yes)
18068 cat << \_LT_EOF >> "$cfgfile"
18070 # func_append var value
18071 # Append VALUE to the end of shell variable VAR.
18072 func_append ()
18074 eval "$1+=\$2"
18076 _LT_EOF
18079 cat << \_LT_EOF >> "$cfgfile"
18081 # func_append var value
18082 # Append VALUE to the end of shell variable VAR.
18083 func_append ()
18085 eval "$1=\$$1\$2"
18088 _LT_EOF
18090 esac
18093 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18094 || (rm -f "$cfgfile"; exit 1)
18096 mv -f "$cfgfile" "$ofile" ||
18097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18098 chmod +x "$ofile"
18101 cat <<_LT_EOF >> "$ofile"
18103 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18105 # The linker used to build libraries.
18106 LD=$lt_LD_CXX
18108 # How to create reloadable object files.
18109 reload_flag=$lt_reload_flag_CXX
18110 reload_cmds=$lt_reload_cmds_CXX
18112 # Commands used to build an old-style archive.
18113 old_archive_cmds=$lt_old_archive_cmds_CXX
18115 # A language specific compiler.
18116 CC=$lt_compiler_CXX
18118 # Is the compiler the GNU compiler?
18119 with_gcc=$GCC_CXX
18121 # Compiler flag to turn off builtin functions.
18122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18124 # How to pass a linker flag through the compiler.
18125 wl=$lt_lt_prog_compiler_wl_CXX
18127 # Additional compiler flags for building library objects.
18128 pic_flag=$lt_lt_prog_compiler_pic_CXX
18130 # Compiler flag to prevent dynamic linking.
18131 link_static_flag=$lt_lt_prog_compiler_static_CXX
18133 # Does compiler simultaneously support -c and -o options?
18134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18136 # Whether or not to add -lc for building shared libraries.
18137 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18139 # Whether or not to disallow shared libs when runtime libs are static.
18140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18142 # Compiler flag to allow reflexive dlopens.
18143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18145 # Compiler flag to generate shared objects directly from archives.
18146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18148 # Whether the compiler copes with passing no objects directly.
18149 compiler_needs_object=$lt_compiler_needs_object_CXX
18151 # Create an old-style archive from a shared archive.
18152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18154 # Create a temporary old-style archive to link instead of a shared archive.
18155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18157 # Commands used to build a shared archive.
18158 archive_cmds=$lt_archive_cmds_CXX
18159 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18161 # Commands used to build a loadable module if different from building
18162 # a shared archive.
18163 module_cmds=$lt_module_cmds_CXX
18164 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18166 # Whether we are building with GNU ld or not.
18167 with_gnu_ld=$lt_with_gnu_ld_CXX
18169 # Flag that allows shared libraries with undefined symbols to be built.
18170 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18172 # Flag that enforces no undefined symbols.
18173 no_undefined_flag=$lt_no_undefined_flag_CXX
18175 # Flag to hardcode \$libdir into a binary during linking.
18176 # This must work even if \$libdir does not exist
18177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18179 # If ld is used when linking, flag to hardcode \$libdir into a binary
18180 # during linking. This must work even if \$libdir does not exist.
18181 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18183 # Whether we need a single "-rpath" flag with a separated argument.
18184 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18186 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18187 # DIR into the resulting binary.
18188 hardcode_direct=$hardcode_direct_CXX
18190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18191 # DIR into the resulting binary and the resulting library dependency is
18192 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18193 # library is relocated.
18194 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18196 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18197 # into the resulting binary.
18198 hardcode_minus_L=$hardcode_minus_L_CXX
18200 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18201 # into the resulting binary.
18202 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18204 # Set to "yes" if building a shared library automatically hardcodes DIR
18205 # into the library and all subsequent libraries and executables linked
18206 # against it.
18207 hardcode_automatic=$hardcode_automatic_CXX
18209 # Set to yes if linker adds runtime paths of dependent libraries
18210 # to runtime path list.
18211 inherit_rpath=$inherit_rpath_CXX
18213 # Whether libtool must link a program against all its dependency libraries.
18214 link_all_deplibs=$link_all_deplibs_CXX
18216 # Fix the shell variable \$srcfile for the compiler.
18217 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18219 # Set to "yes" if exported symbols are required.
18220 always_export_symbols=$always_export_symbols_CXX
18222 # The commands to list exported symbols.
18223 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18225 # Symbols that should not be listed in the preloaded symbols.
18226 exclude_expsyms=$lt_exclude_expsyms_CXX
18228 # Symbols that must always be exported.
18229 include_expsyms=$lt_include_expsyms_CXX
18231 # Commands necessary for linking programs (against libraries) with templates.
18232 prelink_cmds=$lt_prelink_cmds_CXX
18234 # Specify filename containing input files.
18235 file_list_spec=$lt_file_list_spec_CXX
18237 # How to hardcode a shared library path into an executable.
18238 hardcode_action=$hardcode_action_CXX
18240 # The directories searched by this compiler when creating a shared library.
18241 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18243 # Dependencies to place before and after the objects being linked to
18244 # create a shared library.
18245 predep_objects=$lt_predep_objects_CXX
18246 postdep_objects=$lt_postdep_objects_CXX
18247 predeps=$lt_predeps_CXX
18248 postdeps=$lt_postdeps_CXX
18250 # The library search path used internally by the compiler when linking
18251 # a shared library.
18252 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18254 # ### END LIBTOOL TAG CONFIG: CXX
18255 _LT_EOF
18258 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18259 s!`test -f '$<' || echo '$(srcdir)/'`!!
18260 _EOF
18261 sed -f vpsed$$ $ac_file > tmp$$
18262 mv tmp$$ $ac_file
18263 rm vpsed$$
18264 echo 'MULTISUBDIR =' >> $ac_file
18265 ml_norecursion=yes
18266 . ${multi_basedir}/config-ml.in
18267 { ml_norecursion=; unset ml_norecursion;}
18270 esac
18271 done # for ac_tag
18274 as_fn_exit 0
18275 _ACEOF
18276 ac_clean_files=$ac_clean_files_save
18278 test $ac_write_fail = 0 ||
18279 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18282 # configure is writing to config.log, and then calls config.status.
18283 # config.status does its own redirection, appending to config.log.
18284 # Unfortunately, on DOS this fails, as config.log is still kept open
18285 # by configure, so config.status won't be able to write to it; its
18286 # output is simply discarded. So we exec the FD to /dev/null,
18287 # effectively closing config.log, so it can be properly (re)opened and
18288 # appended to by config.status. When coming back to configure, we
18289 # need to make the FD available again.
18290 if test "$no_create" != yes; then
18291 ac_cs_success=:
18292 ac_config_status_args=
18293 test "$silent" = yes &&
18294 ac_config_status_args="$ac_config_status_args --quiet"
18295 exec 5>/dev/null
18296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18297 exec 5>>config.log
18298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18299 # would make configure fail if this is the last instruction.
18300 $ac_cs_success || as_fn_exit 1
18302 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18304 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}